{"_id":"@material/top-app-bar","_rev":"1694-3bddb46c2abeba6d7074b7048bf343ac","name":"@material/top-app-bar","description":"The Material Components for the web top app bar component","dist-tags":{"next":"4.0.0-alpha.0","nightly":"12.0.0-nightly.778a0e8a.0","latest":"14.0.0","canary":"15.0.0-canary.423edc3dc.0"},"versions":{"0.32.0":{"name":"@material/top-app-bar","version":"0.32.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"Apache-2.0","_id":"@material/top-app-bar@0.32.0","maintainers":[{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"amsheehan","email":"alex.m.sheehan@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"629ece0dd8548554263e44802657f6aa1f681565","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.32.0.tgz","fileCount":14,"integrity":"sha512-zdL70MN10Hd1831o0xdGGAASemY4ht2Wz2juANaK3fCf9uvv2UFouS8eJa4BX16rHenIzwrffuA1EKn96RauaQ==","signatures":[{"sig":"MEUCIGOo17sEQHDRaEK4sHpALUjOwzCbsn4hENN/olbE2bU4AiEAjWE6HGA0CIlv0c5cgNAkyejeZwv48+tduQUNNGLC3Zg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":163590},"_npmUser":{"name":"patrickrodee","email":"prodee@google.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"5.5.1","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"8.7.0","dependencies":{"@material/rtl":"^0.30.0","@material/base":"^0.29.0","@material/theme":"^0.30.0","@material/ripple":"^0.32.0","@material/animation":"^0.25.0","@material/elevation":"^0.28.0","@material/typography":"^0.28.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.32.0_1520287733038_0.2986720569058834","host":"s3://npm-registry-packages"}},"0.33.0":{"name":"@material/top-app-bar","version":"0.33.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"Apache-2.0","_id":"@material/top-app-bar@0.33.0","maintainers":[{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"amsheehan","email":"alex.m.sheehan@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"12aee8dce404f39c1058a91bc9a2bd95e1d19097","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.33.0.tgz","fileCount":15,"integrity":"sha512-DimkiYMDIiaufjwkU8lNK+ay6v9ZUsk8lhmsvCKcyx0wukK/zQgLXeaKrlDayOo3lKQRodqrDH6xakRxp3P28w==","signatures":[{"sig":"MEUCIQC1lnwE6ZRYAbAlMdsXqdxrtJsSv29Z+g06uHfsFqt+jAIgBraSjOAQsVlARrcJ69q72HuxUR9bepe3pl/okpf590A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":171449},"_npmUser":{"name":"williamernest","email":"williamernest@google.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"5.6.0","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"9.4.0","dependencies":{"@material/rtl":"^0.33.0","@material/base":"^0.29.0","@material/theme":"^0.33.0","@material/ripple":"^0.33.0","@material/animation":"^0.25.0","@material/elevation":"^0.28.0","@material/typography":"^0.28.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.33.0_1521477613910_0.36613535063563174","host":"s3://npm-registry-packages"}},"0.34.0":{"name":"@material/top-app-bar","version":"0.34.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"Apache-2.0","_id":"@material/top-app-bar@0.34.0","maintainers":[{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"amsheehan","email":"alex.m.sheehan@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e38e44c177e1141f83d402a257d8c4a5ee339f01","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.34.0.tgz","fileCount":14,"integrity":"sha512-gYTqPmw4+pUWzM+iGsG8KcjBUeS2zbbp0EMt1MHKxIztTh/Vufsjk3U3nPCrtUEqXqeIxN2cmPgNTk2tqM7XLA==","signatures":[{"sig":"MEUCIDUaOZDGKtu0WFdxpfmILah9kLXPxfRH7eaQWE8F7/imAiEAs3S62cSx1Lr8dGsqIVnexZQqZeIHZ+y603HxjT8VoX8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":171031},"_npmUser":{"name":"acdvorak","email":"acdvorak@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"5.6.0","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"8.11.0","dependencies":{"@material/rtl":"^0.34.0","@material/base":"^0.34.0","@material/theme":"^0.34.0","@material/ripple":"^0.34.0","@material/animation":"^0.34.0","@material/elevation":"^0.34.0","@material/typography":"^0.34.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.34.0_1522705930618_0.7460411478760232","host":"s3://npm-registry-packages"}},"0.34.1":{"name":"@material/top-app-bar","version":"0.34.1","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"Apache-2.0","_id":"@material/top-app-bar@0.34.1","maintainers":[{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"amsheehan","email":"alex.m.sheehan@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1b1d5f7682318703208e0a541fa1bee6980f6c67","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.34.1.tgz","fileCount":14,"integrity":"sha512-fh7gDBB4J8N/tUf9jOg+R4EARr9wST6PcaUQtJKSgwMXfPYB3K9bfDGAd36L9OAUPLFTwhyVhiW01rLKCbJEqg==","signatures":[{"sig":"MEQCICTsM68ht1VmqRp10bGJPD1PKtEOhz2huy+5kZ83E60UAiBu3wSkSTkRawT16y/W5wQ8qjDlsJ4XXmWappq4/9vNKg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":171429},"_npmUser":{"name":"acdvorak","email":"acdvorak@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"5.6.0","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"8.11.0","dependencies":{"@material/rtl":"^0.34.0","@material/base":"^0.34.0","@material/theme":"^0.34.0","@material/ripple":"^0.34.1","@material/animation":"^0.34.0","@material/elevation":"^0.34.0","@material/typography":"^0.34.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.34.1_1522798792953_0.24175750251345884","host":"s3://npm-registry-packages"}},"0.35.0":{"name":"@material/top-app-bar","version":"0.35.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"Apache-2.0","_id":"@material/top-app-bar@0.35.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6b1f2d37210337a6da13672562b5a86bb79d20c9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.35.0.tgz","fileCount":16,"integrity":"sha512-dwmWp5OhiAI3lIeelz7cesILGfkIBFxRBfhC+u4K95VH8tae0qbLXf8aSkVyRUN3rEMMy/Zl7q4AwQVxdtvhow==","signatures":[{"sig":"MEQCIHWQUDv/j7Cqzs5NLJ31coCbQFIsr93QUF1lOTtxmLraAiBHph16dlCXRkWsYJ5ZONwyZfNwU8VDW8mx0ZXluCtKSw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":207448,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa3mD9CRA9TVsSAnZWagAAWFgP/ifvljw6nKBzOoB38ZPc\nz0g3O/tA7mQFlGTGTfriNHBleygmlgwdBy7/eiXuZrjDWs0mC8qQ8aGt0V9l\n407LJNf9bvoKhOfkRT4u1KRFhvlvXt5Yf9AMde0T7gY7cDDMAAW3/lzZ/QeK\n/JfEc1Mh05ni7rpFq2obohvZKW0Ddf3pRvHSlj5biRras8/6XjI/T5loERw5\n/lJjWQL47lTVRgZjwljRlHSXfFaVI/iKuMj0dbWSgl1EKT4ZAJzxtIARL9rS\nwBBczLP0mdH0zVwoy+cL+qhxleC1pcyPFdRsdFxMqpQd0aWo4qp8JBeRP+zW\n7GuJwktH8rTfhyWMFmHAttajDbr67J+/0NOjVT+PcYdgBfXiI2Q/ckMSdXt2\nJ6TLYfQI2rrVpLJmmJftNkjNoNzHGqAZP5ZTGSnY/Pngs6rTQ2LORUtGBQdw\nMWrugWVgut0io3I86l0b1fPTKmrKAPjZbyyT0RFjw95Ue9iXq46+WDb1vlmT\ndi3yY4lpOKB3FeuitKQl4UvFDX51+QmgLYisrceqMN17J0ZYqAmFPy1chrka\n+GBvbQL3mvaZLzwI3hoDpAePsxMSNHsy5kSUObCuCEBIHhk4uBsNyNAyDBdY\nc6BG9SpTV3jBN71PVMxrjRHRRBO39lewWNlrYhk35l56lO/Ny8bzvkuuHImt\nkw+s\r\n=1gZ1\r\n-----END PGP SIGNATURE-----\r\n"},"readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components-web.appspot.com/top-app-bar.html\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\" width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/guidelines/components/toolbars.html\">Material Design guidelines: Toolbars</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components-web.appspot.com/top-app-bar.html\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__navigation-icon\">menu</a>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\nTop app bars can accommodate multiple action items on the opposite side of the navigation icon:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__navigation-icon\">menu</a>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__action-item\" aria-label=\"Download\" alt=\"Download\">file_download</a>\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__action-item\" aria-label=\"Print this page\" alt=\"Print this page\">print</a>\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__action-item\" aria-label=\"Bookmark this page\" alt=\"Bookmark this page\">bookmark</a>\n    </section>\n  </div>\n</header>\n```\n\nTop app bars can be fixed at the top of the page:\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__navigation-icon\">menu</a>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\nShort top app bars should only be used with one action item:\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__navigation-icon\">menu</a>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__action-item\" aria-label=\"Bookmark this page\" alt=\"Bookmark this page\">bookmark</a>\n    </section>\n  </div>\n</header>\n```\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__navigation-icon\">menu</a>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"top-app-bar\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__icon\" aria-label=\"Bookmark this page\" alt=\"Bookmark this page\">bookmark</a>\n    </section>\n  </div>\n</header>\n```\n\n### JavaScript\n\n```js\n  // Instantiation\n  var topAppBarElement = document.querySelector('#topAppBar');\n  var topAppBar = mdc.topAppBar.MDCTopAppBar.attachTo(topAppBarElement);\n\n  // Listen for navigation icon events\n  topAppBarElement.addEventListener('MDCTopAppBar:nav', function () {\n    // do something\n  });\n```\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-border-radius($border-radius)` | Sets the `border-bottom-radius` property on the action item side. Used only for the short top app bar when collapsed.\n\n### `MDCTopAppBar`\n\nSee [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n#### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`registerNavigationIconInteractionHandler(evtType: string, handler: EventListener) => void` | Registers an event listener on the native navigation icon element for a given event.\n`deregisterNavigationIconInteractionHandler(evtType: string, handler: EventListener) => void` | Deregisters an event listener on the native navigation icon element for a given event.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n`registerScrollHandler(handler) => void` | Registers a handler to be called when user scrolls. Our default implementation adds the handler as a listener to the window's `scroll` event.\n`deregisterScrollHandler(handler) => void` | Unregisters a handler to be called when user scrolls. Our default implementation removes the handler as a listener to the window's `scroll` event.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n","_npmUser":{"name":"bonniez","email":"bonniez@google.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"5.6.0","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"8.7.0","dependencies":{"@material/rtl":"^0.35.0","@material/base":"^0.35.0","@material/theme":"^0.35.0","@material/ripple":"^0.35.0","@material/animation":"^0.34.0","@material/elevation":"^0.35.0","@material/typography":"^0.35.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.35.0_1524523260730_0.3172809009393318","host":"s3://npm-registry-packages"}},"0.35.1":{"name":"@material/top-app-bar","version":"0.35.1","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"Apache-2.0","_id":"@material/top-app-bar@0.35.1","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"380e68d1d70224594870a294ad4a78a641977b34","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.35.1.tgz","fileCount":16,"integrity":"sha512-KtmbsH2B6voZ6iokBS41eCe0ULPfwOuptjfH0joOk5OCg++l4Vw9mVEreks14YDC4BKLYdpe/gNGii4hk18AMA==","signatures":[{"sig":"MEQCIANuxWtjCadtpNW+FlDUHKMuwOJNAfEW/Fnlb7DyMoJ7AiAXENgvPSWkItRFIaw22Rw6dgNBRdTsbNUEsgcFjRNnkg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":207846,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa63ZcCRA9TVsSAnZWagAAudkP/2rSrl47JGp0taSAkENs\n95GNm9sbQ3Ioa7YuWJPnBgTRlKulSd+IpdvOLz9rLbeETO9W8qQGkKD6LpD/\nPJbX7RVTZgyCeNfxt/TFI61oE4dQQIj66XElUngr1ujsCjRzA3OIwtTTiiyg\nGyotwiYp/ZiW53mMMHXJcRcqMlOw8KqfhMMcHF4V/UK4Ti99oBT7CEPXyiHN\nV4pvdtHYflL9gTKQRCAToYsZBUMwLwjtZv74afb1EeJN6EPiSnd4RBMMjyAb\nhqasYHiXZ31Ylwgw3rSmok/P/1GKsM8oTCcENGrtp21DmWTSq4YpY3oMn24X\nW0NMzobzvUlctFaKPxlZFyD2xUFuqaHdcEE81v62UQzOLZ7KBblzASCmcBJB\nUYQ3XQnufuQof662PzjjZz+io92SfgEJKbzIf1c7gbytiOO6BDBvK8d23lca\nNGUQmsy5RWQRQG8ZPL5BCx73CySp2cgcwQ7V2JAs466y2kBe4T8izjd5yu4z\nIgBywhM0FKqEPmw5L1ywDHTXNmm6LoP8JCREC+4hZzrkbQY0RP20xSc0oM2H\n75guUg4TGg7BdI/XIkZgfeuk/nstSdLfALymIjwsYk51/dIo/BvexchYwL/9\nyXz4n5t61AG46N0FmNNiEJl4ZCDIE577FwaR7Zu+HdWvVz9E1lJK304kRvFx\n8cDM\r\n=vc4Q\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.0.0","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"8.1.4","dependencies":{"@material/rtl":"^0.35.0","@material/base":"^0.35.0","@material/theme":"^0.35.0","@material/ripple":"^0.35.0","@material/animation":"^0.34.0","@material/elevation":"^0.35.0","@material/typography":"^0.35.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.35.1_1525380699155_0.048134783976610196","host":"s3://npm-registry-packages"}},"0.35.2":{"name":"@material/top-app-bar","version":"0.35.2","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"Apache-2.0","_id":"@material/top-app-bar@0.35.2","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7c3f48e01cecb00f6857e8f8d1047dee01d52561","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.35.2.tgz","fileCount":16,"integrity":"sha512-PAI0GNabPwSyCv3dYvbQw71TlbSnmyXDaAmi138oa8ueGOrgP5MJNrSzTryzZY4XrMdnR5dKqbZL5OxpdjxFVw==","signatures":[{"sig":"MEUCIQCsbngN/yIWx3t6RcriENxDiCWNjgm6Pmpqtl3C0pYIAgIgJXPaISj/dyj798S3DFzOOgsm9EOKBmizonBx9l4xaOU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":207992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbA0ARCRA9TVsSAnZWagAA90sP/icVAwru30fvuiW8DUDz\nsTsZO0hGq/3wF+miiM1AchXlPjiZ5UBWqBsemOzFgM1Lou6zD0PlvjuPo9rj\nB9Fj8Dl8eI7qPhHbnNxRFO25P1ipbO9cC12rQS83d4xdotCkV8QttByXHUiv\nKuI4RpyIiUA9MpDrDd3et7URQyZSSxTnbVw0ZVtKl+Z5w+kUTnL7TPi9Ef1y\nNXLoYJM16AyhwjHiP1exvQB7sb0ZLvVP1CvkaG1yuFcy8O+kTiX/zef1lXW2\niMyFaRX2BUD1DnFcI5JfKbAmdrtzk2qso1HoUOiyugqPn61OHdjA75Tv9eyr\nhbN2Ypsb/xWa+2DOOMiYK2FqpRe2jPp+sVbragI2iIyE0mqTtcZLLDm5i+Gm\nReo5diROomKshm3HgsS+NqOA8WjcZfPPk9aUZ13W0e6OSLHROOHIXZMiLBsp\n4EW1x4aSzFjUv1ZacNphhqoZnK0IAqdcYCbpAJgtmTjUcv8LiO6Kpv4jLm+l\nYOO62lJgZKPU3nPIc9fNX0lkvxWgw2M0vSBpT/pHV5l4iaLoEXlcAGGr0OFm\nWBOWaKYAdpg4nYaiRcI/2LKJ+8H7+JNbPC62Ry9YeoQc4zod4gPxJoTOqsx/\nCb/sFgAzmP7mGEuafpRPijzJQzctC/906gpGD1wKOxk8kMfH1NuWZ843jKqw\nYS9Q\r\n=1ZWI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.0.1","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"8.11.1","dependencies":{"@material/rtl":"^0.35.0","@material/base":"^0.35.0","@material/theme":"^0.35.0","@material/ripple":"^0.35.0","@material/animation":"^0.34.0","@material/elevation":"^0.35.0","@material/typography":"^0.35.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.35.2_1526939664391_0.832278689360272","host":"s3://npm-registry-packages"}},"0.36.0-0":{"name":"@material/top-app-bar","version":"0.36.0-0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"Apache-2.0","_id":"@material/top-app-bar@0.36.0-0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3b6a98d631e44a485627ff5c8dcbce431bcc63e8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.36.0-0.tgz","fileCount":16,"integrity":"sha512-/cM2cc7Pe316gx06pVzedjW2c1lptBWYXNwS+rk1noS3qTWT3CvqnfH8CgQRM+EpUb5r0ObaxmzhQxbc6Vuizg==","signatures":[{"sig":"MEUCID8eS7WscpvKzamEcs32slwIHKM7G6uVEByP1uxOa92WAiEA4NmaO+9MdCZ0vZE60kO7ZCQNuxFV26a4qCKUpOVifgc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":207890,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbDXCOCRA9TVsSAnZWagAA44cP/2YmJi+bq23bEqp5N8mE\nFXoQrUQZlhp4SFGpf90AsMMWQBpc429fDXQvWMVzUnF3K8csrcpRSosIzL7A\nlyLNMvV2UvRrpBxzZRCcONghAQrH7X4evGp7XwgUSwvwd/dIcz4evcdYO50a\nZUqb1/efAwqxV0QSlVQlMcmja/INDiE3Tl0FX+7i9KJFf4YnjLZ0s9kgVtDs\nrdGnjfzA8hmKx+Rn19uSdlq/eUARUdZX7H8QjS4Qq8TI3OXScF/s9CTrhqnO\nlnob4+MjAqlPR9ibPPKUpMY9HQeNK82FiNRyCQf7JhifNBz6Z6PExttwbwhm\nNH8DlZ5rqUOENm12Qy/lMGbIAjs07CFGXTF3GrlIg75qbmXIO3M6l9+unt7P\nzcei4BaxmlCiKNdq5SydB3GlZcXCvk65weBm8FvZClMgR0YD2NWCKaTXKldN\nLpLWOfOKADXI6/MRmt2sqCaE8IvuYOWd0pUEJ/so6LqyR2cDHTT9e6GFOLGX\nJZ5WVgy8j81MvabZBQikFTpctlZLcqYoZ3HiQZ4/tXXMQJyX9q5E6NveisJB\nNyRMpoV2YEQQ702Ufl2XBMtfMJarFTF1PMsNleKV1zsTJY7R2SxwhjV16mOz\nnix7cYLuUlXJ6571Bfp6zOgVK/nAhjWj5nO64yVI9ZegeqJrF0kT87OfEbHI\nj8LM\r\n=zZzB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.0.1","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"8.11.1","dependencies":{"@material/rtl":"^0.35.0","@material/base":"^0.35.0","@material/theme":"^0.35.0","@material/ripple":"^0.36.0-0","@material/animation":"^0.34.0","@material/elevation":"^0.35.0","@material/typography":"^0.35.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.36.0-0_1527607438036_0.34687840268848613","host":"s3://npm-registry-packages"}},"0.36.0":{"name":"@material/top-app-bar","version":"0.36.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"Apache-2.0","_id":"@material/top-app-bar@0.36.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1b6acb3c1a8c2fde941dbd571407a3ccce1fc77e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.36.0.tgz","fileCount":16,"integrity":"sha512-hw6Rnow8gW3vY7R2ZqjRKUdoIlvZFGUL8QMqj1m6GGI6WGb/rVn37zYGUduagUNeaGPVD1TDUNTWx/ayZ9xE4Q==","signatures":[{"sig":"MEYCIQDoJBZI8pc2JFFYOWWhShjWekQWKaiE4KS00YQrPmXWxwIhAOtO+W7RRhRqCULURHDJRoNI6YAw/sR6plxwVptxnZ0Q","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":207885,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbFVz7CRA9TVsSAnZWagAAELQP+wdAL+9PJeKTcmKdKdMw\n/QnQd2PO2IC3R7J6ZPBIKgmUytDoBEBih7hmb1EkcLT5vO5R661P3QEURuBn\nBPvJhrfEbxvUl8tYzv1ueT5IvA0xwgzDnmK3FCd69vxm3ecpyaPm4LujmNSx\nWIf2XLBBPxwHW7H3bMCOGYq5hHA5Fq+Ds5D2LgwhAnpq3H2lgufbUOR4m833\nLt7PS7r71yh/6//nzOy/MxYV/FkTSUTur+DjtbLZ3T4Z5wNlzABCS4xlXeob\nw1ohSDl/Vp4eksaW3ikkux2hGzfa2paRC4qdYkkU5Bxv1pSGnjxJ04XaZz/Y\nGMIVsB8XlwHzmB9zk+zZJllZiXK4TwpoP1Yq8TkuHZe+iJePpYuydDUVQS7V\nNa0MPqX9SrLGcqRQChftpnY+d2j5Cvf7r+AAm7tNMKM9usbIFOrYuJdpfEwN\nGWW0hXnJaa7yURt/AmMxUHo9gCV+8I11ankiqRFXkrihyojc2rptKLyIxJlh\nCFKlNK0HhmZ0n7pHcfiB7qtjbDgFejQsbhoSnerVwlCIpm/J/iVmjCBwZsgh\nSq4a+OmHmSwBKZkYV1RST2pK1aySkFB43fhHGv3f9UWd0gBFmSY+3qTb6FS+\nepp8WH2kwjPdOwGBuV8Pfrds5Nxc5cr3QkdT8wdnEvgPW/ORc/jSxfvKRSvw\nac6/\r\n=yK7w\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.0.1","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"8.11.1","dependencies":{"@material/rtl":"^0.36.0","@material/base":"^0.35.0","@material/theme":"^0.35.0","@material/ripple":"^0.36.0","@material/animation":"^0.34.0","@material/elevation":"^0.35.0","@material/typography":"^0.35.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.36.0_1528126714175_0.28891240341331237","host":"s3://npm-registry-packages"}},"0.36.1":{"name":"@material/top-app-bar","version":"0.36.1","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"Apache-2.0","_id":"@material/top-app-bar@0.36.1","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2b80bac73b6eb426efee9ba3f676084fefcd19fb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.36.1.tgz","fileCount":16,"integrity":"sha512-sGN5ypqMS3VJqbZw+hshCTD2nos0Ub5KPNgGilOdOIQ83jD42BV+K2pIJF6OBdrxYCms+uwUNFLSabu9fhgJxA==","signatures":[{"sig":"MEYCIQDlq5WJqRjnlsqZS62b0OwaLt/TKy+LphVz1BX47+OV6wIhAPFE69BoomT+/aMaIDix0hADMVRi1eerMtJ3/5pYkNJL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":207885,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbJ9KACRA9TVsSAnZWagAA4rEP/iaPT7bzr2wK5Of18fG5\nnh7AMkrXUiOOKGJfifBgGACY9H7qFsd1k2n1i4Z5DLIo3pw/2qSLw2Y7/S4s\ntMQudJ68bUyBaJufx5yRWEtJhuP7VndtQzzqWYIt8fTz3/+2a7+b6u3B8PPm\nJsiSLSCe8mBmGDwVqA7Al+XyEPOLWZQfpuf2z2XlC8Y1NVmKxsSMyJ8qC+mh\nf2f2kjaZx64NAT8Q9zgY0+x1L2gcpJwvnwS2Z3xt7o/cSIyOPZzhUkgwRnyo\njgr1fTqYz6lIbW5+NTNtwGTtEDlPe0s65pUnb9Sf3wuunG7NU16xKQyikQQE\nlmpaQ3DpaOqw2LF5OWk1dn3Bx+TEb71fUji4b7RtTls97Jfhf0tq381ratud\nHip1sIxl/EbazBTLfA8SCvPY4lJA3pY+FYPR4QiWmC6zj4sfN4gtVdRP24dE\nPNJ/rIh+6woMbFVffy9i+FGhTE08hQBejbbZkVcLlsL3p8VA2Q0Mz2cD/YPg\nnJXjZxdrVUgGC7pYzIsmaH8L8/GWgqVedU38S+45MgW1YWpCNrzUjIR+QhVg\nIi/t3CjaGOOtM9bbbEedzBKf0E60vKbSz0cpA+UzpC1aQN09yzJca0fDydX8\nGkeLybFRroCCq53EjAglTxbhZYEu+KbejbYyIRu9eiJlM14FEhHRzQPqBCVF\nTh0x\r\n=Lucv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.0.1","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"8.11.1","dependencies":{"@material/rtl":"^0.36.0","@material/base":"^0.35.0","@material/theme":"^0.35.0","@material/ripple":"^0.36.0","@material/animation":"^0.34.0","@material/elevation":"^0.36.1","@material/typography":"^0.35.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.36.1_1529336447457_0.2591966937514676","host":"s3://npm-registry-packages"}},"0.37.0":{"name":"@material/top-app-bar","version":"0.37.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"Apache-2.0","_id":"@material/top-app-bar@0.37.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8c5cf5266988beea283e390b0335c15cb6b2d4d5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.37.0.tgz","fileCount":16,"integrity":"sha512-6SZGJyhdxJSs1Mb1peX2mrtK14f2jQzQLazfPc1KkjTZfSYnaRno3i3/HyZvUb5FKOXCRjlxrhejAk9f8dqItw==","signatures":[{"sig":"MEYCIQCK8JrJOP3KNLrcftomK+uLUH0gUYgcpWkx3vB2SoZxFwIhANSUJckDrQQARgJoggecMNilr9y9F2FiSqMB8qeUkFjL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":209264,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbOqPICRA9TVsSAnZWagAAsNIQAI/ow3l6BoDpth3eJVtZ\nslDvc5+duWRRukTpe7RW5JGe7w9ppWTMqIr8m5N/GxQtNrAtT//hjVIZ4hBB\nx08CLk/NPw9TC4wGvUZyrytq9KxExZQdHeghXK/Z5DQhCNBHpKtQOpGdUJm+\nrVUd/Zrq12qtiPsvXcH1XPDYycFJAhv0tkkqYLLAYfHln0kqmr9bqL/iAt5o\n3Caf8pmpgwSFL/WyrWjdyrt+MKF0XjUWs1mvGDdxV9JNMKNPORtMlQPJVkLX\nfGBnPWwkvhDrOQNDkisQvyAlTQGLhKm43BzRyxLH122ZcnB1lbsx9kDuYlR1\nRiAmXKgmTrhARp9XPko1FMNL04Owd8ibJaHmicwG5FK5+OM/OHSoR2IsvbWJ\niFCvjPgFrlvJbQlvPgn0Egxi13lLtG+prWKr/0Nt7Rv7n96qC0FlK3ydLnTx\n13FULxwrMywZnwqV9Dtv1Ex96GM45tOLRieQKug7FwViD/jQINLUCJYhN9ZR\nNXfG19BCkVn6QGal+Bwy3j/wLcJhGVHWcoVLLdu8iOr0HWvj1kZeGWM7TSkE\nys8fzrxcT0qGPISAyAMYd+jdFfPuIvXakW2yQfUl85nTemajsA7N3Zuu1g/d\n9aMNs+pHirgGwQFXW2+yIjg1TTU6TE91ESTyvKExYZ9YMQOxS2MNpXKTWUof\nS987\r\n=QSw1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.0.1","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"8.11.1","dependencies":{"@material/rtl":"^0.36.0","@material/base":"^0.35.0","@material/theme":"^0.35.0","@material/ripple":"^0.37.0","@material/animation":"^0.34.0","@material/elevation":"^0.36.1","@material/typography":"^0.35.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.37.0_1530569672174_0.6294905211018622","host":"s3://npm-registry-packages"}},"0.37.1":{"name":"@material/top-app-bar","version":"0.37.1","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"Apache-2.0","_id":"@material/top-app-bar@0.37.1","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b9e669ffb823465594c374448196d182b3c0f132","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.37.1.tgz","fileCount":16,"integrity":"sha512-tITFhLRdD6RX0dHF4qa+ptZlmm+JrIej9MlSp1STeSmWERVaPG0JAK4NruAp+dnPKLTET3uG7Dh6UByxHh2X4A==","signatures":[{"sig":"MEQCIEDXEFrpmokKVTPAq+TwfdCyilGI7v+AYoxCMPATja2IAiBn96REP8MzzNtwQU6txL8SeQOV8OzchPLqTkCvcgNZCA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":209369,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbTQwBCRA9TVsSAnZWagAAgjcQAI/zL5npqhuMZ/5BUWrx\nHPDyQKFS9IlN0PKFvWdoa6od/RkFXpPtwz46pKZuNy+Ak5BYQQbPBFPUknVU\n40mzJvOo3aod+kIe4QqmEzjhgt7sgcShKrcCBMLfztRLMdGEqQVXcJtnMd8w\nqhh7uK0wsZk2Z92vBWQC9KefDGc6FeF2G8FPoKEGlA2rKTe7iYOzKIh339pz\n2pzyr20Q06DZA6VvM5ZyY8R/XlPAGvnHQnVDq97/9d9wbAmDdeopZXNWF/Cz\n8w9TrioxWRlwuy/de1KxPXRaLNqr2gZPFilaeteaUoswx1ZynaM+PHtY3/4w\nU42ECIviY0pyzBNRMIqRJSAugs7GBcYMGhucLrYpQgXlRXqEurgP3+QN8CJZ\nG/ef6YwsGkeHEjMaGiJqzwSL2NlkU+PZ5NlM/XdOcBug9bUK/ez1ZNt6CWex\nxi97Aj6HH4IMCxmwNeq9Ofm9uD4OySfVFEZrzFWrQeNMR8NVgOI/BOJbpd+V\nN6vLfYBUJa1ccSR/Nc98txYhqUV4GfXA8YJeY7Q42hIrbEYLPxNJOgYmQAlV\nxe3sP5j1kGLC6EN+g+13KTvRYchdktP08UvNJVRysWPbCXLPlTryQ5lOuz7n\n+2lxPXDs3linOpYxTX+gdKDVTM7CRsx8Pk97og7iT+Dem4r91HToNxg+khIj\n0cIc\r\n=T9l8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.2.0","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"10.3.0","dependencies":{"@material/rtl":"^0.36.0","@material/base":"^0.35.0","@material/theme":"^0.35.0","@material/ripple":"^0.37.1","@material/animation":"^0.34.0","@material/elevation":"^0.36.1","@material/typography":"^0.37.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.37.1_1531775992773_0.12171051910114139","host":"s3://npm-registry-packages"}},"0.38.0":{"name":"@material/top-app-bar","version":"0.38.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"Apache-2.0","_id":"@material/top-app-bar@0.38.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5b7f15885e458211dc7b52d65011914704a8ea27","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.38.0.tgz","fileCount":16,"integrity":"sha512-BwNiNyAmlelZFHHxdxR/sfJBTdOnaoinrUXE8Q42/l1ybWXXAixHM9bGOkpD+cIny0kjWpCfYj/cn5FVFT7sfg==","signatures":[{"sig":"MEUCIQCxenaJ6fb3XB8EXJZEYO+k6JIW3LmKh2LoTZSYfQO35gIgOCNJWXylO3OhDFWjbCL9dyXC6kNRQd5dnI9RSFWC4mU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":209593,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbX0XXCRA9TVsSAnZWagAAnX0P+gL7+lU9ITBiUPCtFAU3\nFQreiv7CbkWes6kTllhFVKT6iIMpj19V8Thpn+ylD/pHgSn4ulsQNepg16Xj\neMafykoomM0J7hqN3Zq26lMgMiDHDDjRDE5+visd/4CO2gibqNw6QOsx4pMK\nvY0FD5nXNwlRPrBDXsLbk2PFvZhRdQ0FVyaeCzWkKN3uGD0mdskqdjzQfwRP\nMFVpbyqkkrdf7ZTMieIjH7TYNi24cjCsz/E0mCGNXTDzh6rsx6pOoRLkITt4\nE5fVU6I6MYzS+3RZuXRSWmOJcr2A1lDpvFxlGAA4ubBOWy4Rl4nj0OSfeU/S\n+6IYN6Lpnn3xP+rPtpQS+KdpiunlQ5nsV4fc67owefezeycgEMdWaMn++Mkp\naoXBpLkaTPixgK/5iulMdLK6tJMMosd3gh69Sjk9PetYDpmjQU01g9Q0Ojch\nOurqGg2B+qFdAgV6yzLLlJi//KelzsnP96nw2y8OOpq8eNjiSPpT5YiQscSA\n6poOmLN6zYck08fYbvuXyjIhSs7AkzohS85ignsW8mICBF8CnWs2OngdsAg6\nfDy26uFeKY8WrdGcWT7tHVDXHqHqAHLhCcLQxmhJOYdxo5m6p9ffs81/qFsl\ntG9GSP9eW0xApctQAhzOco2eHFlEO4QaEwjk+U607NQRtfdVgAOT9dyX8bsQ\nkcmS\r\n=UMFN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"acdvorak","email":"acdvorak@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.2.0","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"9.11.1","dependencies":{"@material/rtl":"^0.36.0","@material/base":"^0.35.0","@material/theme":"^0.38.0","@material/ripple":"^0.38.0","@material/animation":"^0.34.0","@material/elevation":"^0.38.0","@material/typography":"^0.38.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.38.0_1532970454970_0.1597743069452009","host":"s3://npm-registry-packages"}},"0.38.1":{"name":"@material/top-app-bar","version":"0.38.1","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"Apache-2.0","_id":"@material/top-app-bar@0.38.1","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e3dd6fa59c9510c99d311840272f6b93fca62e08","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.38.1.tgz","fileCount":16,"integrity":"sha512-rnjYLgzPVpTwsBSQiimZt5YvxuN/+D+rRm00gJmlvUCmkYyq63ItycHkydSf4vCIo0tzuoyHoQS9dgVq1UUCqQ==","signatures":[{"sig":"MEUCIQDQ+uejBBc7eJtoANfAWF1kQCEz0K1Gn2K0Uy1A0Lw6ZgIgAQ0uOM1Xy9lZTDAFAR4L9/ugpL134KWp+NC7o9jDa4U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":209926,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbcex7CRA9TVsSAnZWagAASQwP/2346e34y+i3ugcDiGUh\nT5Wa38uUJbJ3eOSAremr/4FTrXFGkxqSNWJ90FqLP7dFQ5bj6HLSCqSXfRcD\nhEuoCROxtyzRav1AGRg5KHQ2CL3r+MQBimv/BXWxWh+UgVOLZOqiij3p/IKW\nQumgU/djRPpGLCGTeu24OpaMG5VD19CjkTcTip9WsIZz2N8mJ39Teyh88haR\n+9vvPndWrFGdLi70LTNsLvLo3wOkjEfiX8uRXP1ePHs8KGqVVO2vtGblMJoQ\nJFs4BtjVgxi34iRn+k55rBj1/AA0z24WK4eQ+3hv55cCX0rPbJgZ7qpjHqxq\nI9HyTFflghlZSLs9JHgVbuwo7z86FUBKieVy+PWaW++hScyNjXr/51x95/U2\nxjlzI/VGp4R/7WkKfBh1tfI3t3XQZ5drtHVdfiuxn2oW9Qw7PMWsvOMN7mK2\nSaHlGvys9BrzLhKIAMDOqZUpY3ELBmA1utKgeCUJUxVeM8etMf72RZDHJT/4\npv+RJ4sbSpFwskNPzzJHHuVQ6uVNDnw8I7fIwwlyef1k7m9852PL+OOiDYmi\nuSILEB+6IYKXrYp9GWsvnT6ij4qyvi5617koBYRUDFNnZU8m7BgkuXYOLdgO\nfSsU7uVHjhoPGhKG32aECtF5wp1gDKO4lqQsyCaSM5t0AfJNgQya4OpMwN/D\nbnGk\r\n=k0Nm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.2.0","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"8.11.1","dependencies":{"@material/rtl":"^0.36.0","@material/base":"^0.35.0","@material/theme":"^0.38.0","@material/ripple":"^0.38.1","@material/animation":"^0.34.0","@material/elevation":"^0.38.0","@material/typography":"^0.38.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.38.1_1534192762511_0.5812534027699776","host":"s3://npm-registry-packages"}},"0.39.0-0":{"name":"@material/top-app-bar","version":"0.39.0-0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"Apache-2.0","_id":"@material/top-app-bar@0.39.0-0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5c6c209f3d5f5c3584cf7923df1e0710f0974dcd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.39.0-0.tgz","fileCount":16,"integrity":"sha512-1v6XbTq2k6UnNcFusux1l7lMk7U0nfpIop5ncrCG6nJAytX2jY3pYV1n5geBrVBDeF+iSYtSTgACM9p6Gnpjkw==","signatures":[{"sig":"MEUCIQDVsOIYOB1mEXfKz/kH5t/7r2ToDcxv2XqxeHhybcQPewIgXmpMCG4uDzM//t6MQkB9CLzS48PA2LK79pRhz62+laE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":209930,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdZVSCRA9TVsSAnZWagAAK1UP/3uv0ha/AMjSu1OVeokH\nz+8HLu2vA5AjmbEXGV73cPUiAOcS+lZ0eoGI2NUSZk7xj/LCqbgMKaj5qL4B\no8kxc+yJZg0nK9Y4bzXm+EtmMpDeunn1NXbCVRj5Lccd2HaX3jjIsfCJD9TB\nXSFrMg3l/cV7KdPSeetPMQk2zDDs08tZCfXksKBRgovvnzX9Dqz4rtNqPekU\nJXymsvupXMRCPG9JXU1J1yhSh+S5AxQ6E1iwTP/ijacQCBZvh5ii7gJj2/PJ\nwjNigNZGvEKCLiAZ++in5hvVHZd721X7cvEJJ3CcttzBqEBGC8+43b/J9P94\nKeKyLpQKLigQx5BX5/RbYpaBSi52dVEVZy0MDlSmBIbKxF/Ss1DjtxjLACNx\nWDfy3XIktz09JTBpEjXdLlT7aDHhX1n0qGm9e7IiAb5yr5+iFJQ3PxoaJiwz\nZXPdMA86C9JqdJxP6N5OJoFWN2f/2/Bf/BDAEXCRt9aUJLJNd3NMKEcyHGzn\nhW54rb5mtGuMIwPfftRDOg1wz73JxnN06fJqSrV2+ZQkv/cinLfgrltN51yo\noghE8IUDEbPMFG0N4UhxIPcYWkY2OQjbVoExzAFON0ZgOSD4UBPYTyNjH+sU\nfvI7VBg1fut5apFl4eX2B2E9B4GHMSLwnMZyTCn2pViJne+abkFXJt/47Lys\naww5\r\n=/kYm\r\n-----END PGP SIGNATURE-----\r\n"},"readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__navigation-icon\">menu</a>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar/index';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon.\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__navigation-icon\">menu</a>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__action-item\" aria-label=\"Download\" alt=\"Download\">file_download</a>\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__action-item\" aria-label=\"Print this page\" alt=\"Print this page\">print</a>\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__action-item\" aria-label=\"Bookmark this page\" alt=\"Bookmark this page\">bookmark</a>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__navigation-icon\">menu</a>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__action-item\" aria-label=\"Bookmark this page\" alt=\"Bookmark this page\">bookmark</a>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both prominent and dense, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-border-radius($border-radius)` | Sets the `border-bottom-radius` property on the action item side. Used only for the short top app bar when collapsed.\n\n## `MDCTopAppBar` Properties and Methods\n\nMDCTopAppBar does not contain any properties or methods aside from those inherited from MDCComponent.\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`registerNavigationIconInteractionHandler(evtType: string, handler: EventListener) => void` | Registers an event listener on the native navigation icon element for a given event.\n`deregisterNavigationIconInteractionHandler(evtType: string, handler: EventListener) => void` | Deregisters an event listener on the native navigation icon element for a given event.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n`registerScrollHandler(handler) => void` | Registers a handler to be called when user scrolls. Our default implementation adds the handler as a listener to the window's `scroll` event.\n`deregisterScrollHandler(handler) => void` | Unregisters a handler to be called when user scrolls. Our default implementation removes the handler as a listener to the window's `scroll` event.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n\n### Foundations: `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nThe foundations do not contain any public properties or methods aside from those inherited from MDCFoundation.\n","_npmUser":{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.4.0","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"8.11.1","dependencies":{"@material/rtl":"^0.36.0","@material/base":"^0.35.0","@material/theme":"^0.38.0","@material/ripple":"^0.38.1","@material/animation":"^0.34.0","@material/elevation":"^0.38.0","@material/typography":"^0.39.0-0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.39.0-0_1534432593892_0.9477726108215105","host":"s3://npm-registry-packages"}},"0.39.0":{"name":"@material/top-app-bar","version":"0.39.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@0.39.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3ca73119076051ade11158946ddacd7429a6c2ab","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.39.0.tgz","fileCount":16,"integrity":"sha512-3fxM78SNZW3NFHrHSNL5/LsiqBw7n4Ok+3ceEspoGcgxx/NNaVr4tFnQDP+drqCWwe8laHzngFu10FykRVv2Ug==","signatures":[{"sig":"MEUCIE2muFzu4Yz6ZlqSJotuFvHH2K556fX4rXtTTwOnSVysAiEAvPpIt5mZBsHWHd/jrTpzox8sjh9yNh/EriwwSsNWQPg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":225296,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhDevCRA9TVsSAnZWagAAz0MQAJyM7zi9c16MyJdNq8b7\n6390eaNlIB3UFmb3Qmg+HDn2LuVkNyFbUR18m1ZfGQj9AI9FAdkeuFD3vyiU\nE4l0+rw935igTD20bCl0IOomIuMwj/QjwhAYAqGehgZIi9F9ByO/TV9OTrfV\nVkkWYAxG7OJwSD2Q2RdbJsMS3FKQN50EupNLurEDVj53VB3bDdMlFPP/GYlh\nmF0ySxXgEWXauL4EJRl5Y8n2KQj5c+RoxYyYOFaYWiMHOtCZnDwFFhe4Sy7V\nqNGqgzIIuI4Rarqima/lnIL5Oq5YG9AhJXZAfXJzabMc0vhpIMKFLWx63aQl\nEes3E98S4iuBidKgFcLJs/62q5z3MWpx1yU69lEGtPL8f2GCXaXpqljUjifg\n3lkhSbo7sipMaTYy1kjkEwXUy2DxdTiCW3rrqvWMHA8RDwHdaG8eEi4Osboy\nzOIT/oxKyQIqCVElDN5HP/SfuBQInZmFXd1g+UQI48H792X9TPZNT3fl347S\nH5DhrcOPLBdiJq6zv9nZ4cSk4YI7V3rXEOXTzyVDKdmkUkSs0a5YgmDmu8XL\njGfrQ3L3vChHFsdCwW45zCg/uyeJn6bHuV8owb5oWoCEiZnMIKf0Mh5TL4yO\nh2HTTKlmM6pVhgTiveCOgrD5pBH3sKSnOL26mmFp3pcRFVwX1EwJxgBTldbP\nVD15\r\n=h65X\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"williamernest","email":"williamernest@google.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.3.0","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"9.4.0","dependencies":{"@material/rtl":"^0.39.0","@material/base":"^0.39.0","@material/theme":"^0.39.0","@material/ripple":"^0.39.0","@material/animation":"^0.39.0","@material/elevation":"^0.39.0","@material/typography":"^0.39.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.39.0_1535391662723_0.816439022871889","host":"s3://npm-registry-packages"}},"0.39.1":{"name":"@material/top-app-bar","version":"0.39.1","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@0.39.1","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"97a74aa9bedee13662fd7de03257fcc0588f9192","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.39.1.tgz","fileCount":16,"integrity":"sha512-LYVa8jAvKpF3R63BA9XYu+3LQ1jjvSiddjsZ8stz6oXdTqc18/wXREdpWCn2n1UIKjp++w90HJCWnmJX7jfCqQ==","signatures":[{"sig":"MEUCIQC8cSXIiZPeQdh/CXJRtuE9xtvMGMj05G2Z71DvgPgGqQIgAZeVXY7kAKz9d1bzEC6ounUgWblAaImakEt3LfGT6ek=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":225296,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbibTxCRA9TVsSAnZWagAAMyUP/16xXhSkMtWph2wkxKl9\n36t3Inipt0sXpsy84qn7AqzXWkA8eUg4EUtsqwqB8XMefR/jYIs6DSHpMlVB\nI+xXED8tdNmcgz45KxcUR+uJMBB+qSm1pyZY2IA416LdPhAyoBodTA8DvBw5\nRKzSnAQ1aYK8ZiCAu2cd7vTKXldTrdsRvboPLPWT/ALcStakEiwTe6rI2qXj\nLjVXVFRorZgou89fBBuOEzu7BsdsPLg+K96GL8t1ereEF+Nb1WbnJO7L0hg0\n2//oIYLz7qz/yo7JUuflKSi5CzBX8QGibkC7hxN5Y1apffWPxMaYRmIS8YuN\nPluhqkUckeHIgfrSIO4Q/FJ9zDKot9OZy5by8Ht/m+fCbH6ujhWSgkI5IvG4\nZp8rEUIf/1YmtUbNw+tORxqm0qwDXsa3rt9OgA+at0fesnedcuGM67w3GS6R\n5mYo4OfstY45UArfrtdC6yx1CI3d1pPj7MNmrZOwqXJSKpRY5D7iWslaACiw\nJfI2xg9d5tqmav/AGFAdZbkcOOF81Uy8rNCzgk/wKCv3Y+vsiK933gQpHK+e\nOi//f6kiUIsNPQ4vYFayJuz2dGre2ycdMUI1ORsg1Qtjd9nrPda6+VauSOhF\nUilCLmlQXn0g9wljcY7X3ZfnWVwbtZY51puC/SpucZiWb+/mVwfmfkalxO2q\naiEo\r\n=RhuQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"williamernest","email":"williamernest@google.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.3.0","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"9.4.0","dependencies":{"@material/rtl":"^0.39.1","@material/base":"^0.39.0","@material/theme":"^0.39.1","@material/ripple":"^0.39.1","@material/animation":"^0.39.0","@material/elevation":"^0.39.1","@material/typography":"^0.39.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.39.1_1535751408895_0.32599458127385095","host":"s3://npm-registry-packages"}},"0.39.2":{"name":"@material/top-app-bar","version":"0.39.2","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@0.39.2","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"975ec93f9c001b296266122926944f161416a612","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.39.2.tgz","fileCount":16,"integrity":"sha512-1twV3nSjQGPOmrCLxunWPIexUeuCilsGRn9r+m4qq5vHv3vilGU3Jg1f7lf3QAGDHrVobYx3tg2k/K89EX8Gpg==","signatures":[{"sig":"MEUCIG/bJgr9/fKxgbuossMfgzwqFzxEqbJUfGSX70egKUeLAiEA1tghpzQdw3uB6M1gLGNmPnnSNBTMDy9LZtKlXoiMz00=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":225665,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbl/N9CRA9TVsSAnZWagAA8YkP/jGN54gQMn1Mg8Z6Scrc\nXCJqcAsR/we6QUpnsr1diOTH6oa3pwsEN6EptDsheDJDuGYx3pzRfx/Hw//v\nkG4bDklADcsd24b+faQmQR52DT0sOMGMfel84RUl/hP7O3lwnpYP4OEuoCFP\nFVY7hsyMDCxkRx21Kr+kBiDrn1MhQLm+tG1lDOXTo6t3AN1xmARP2O19FhFm\nqIIAr8abiDb5mAeqKynYAqFUn93uSCKGBsy6WZBXHLbWFu/fuwkSiiBK6Fus\n9rN6P2Z9nVXNAG/V8jWdnMZvOsmdh/SmJfdjvAQZRooc8xj56czqe2djStRl\n8Pv8mK0Kh9nKu/3/Jtu2rQkEfFXZO07mKFWJ6HOJjjMS6TRSpaDN7q3E4UFh\nYRB4frdvDeD5fvV0arlKs4GhFPg7fJNlZUGvOaggshTAYWMuM6CHCj9m57lW\nyNVwI6+FDmpja1b/1n89hRSEukYxt61MppIwsb7Y5PG4ywx/lRuwfC+MDC5G\nMVkFH/R6YDe/ky/3skwyXp4BuRwkIRSre6Ja/Tgkb/TZ91NxtOSbszFW68MH\ntCppSvhIF7dig+mq+Dyf2qz6yK42rGzzvI5h2GXB5/488GzXPyvKK2Bd9Rpw\nowGURqaCKHB16bqoasOQSrgD1QeUwucWZcoVjZP/UstYsKKUnOu8JinelEun\nRpls\r\n=AsLb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"williamernest","email":"williamernest@google.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.3.0","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"9.4.0","dependencies":{"@material/rtl":"^0.39.1","@material/base":"^0.39.0","@material/theme":"^0.39.1","@material/ripple":"^0.39.2","@material/animation":"^0.39.0","@material/elevation":"^0.39.1","@material/typography":"^0.39.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.39.2_1536684924932_0.18115467135360097","host":"s3://npm-registry-packages"}},"0.39.3":{"name":"@material/top-app-bar","version":"0.39.3","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@0.39.3","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d49a1a91836f4ed9df89defa4469cd46523b2e94","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.39.3.tgz","fileCount":16,"integrity":"sha512-GLq0NuBVMZpHWZJa8gpevk5oIj7nIVQFDuqI4IG7MfG1kuwn5Qzf5Zj/ZX5d2NwLGb5K/+7CvvrgD9TwWK/C8A==","signatures":[{"sig":"MEYCIQDqPGNasyxl0nv9DJS/UgcCat0maTJX3ja376AAYe9PyAIhAPBsKcWoRogH8WPEpteKqKYigk0+gIohrW3MD9BBoZBf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":225665,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbl/kXCRA9TVsSAnZWagAAIC8P/jZbVQUn4Cid644XvdPf\n3o2c0lBhDORuRBN3VIXRzpQFYS33gr2BBfk+y3+CYMXJ0VgNbIjGL4+3WGYk\nDCdNO/DnLMY6zdIX1nTLfAF1FngQY+vokg6AcQLFvIsiTlJZVfc/eTRwlL5x\neY24FjyQZm/tIrMVA9knfXLrJs7nh80dpvDSEXhZPkv04bZAOTHg+3VNvB4V\npBttxu4WZETBODtGdV5WRKmaMfTEiFPhDm2Phh5bbwWjo8nDTVIoyN08ZwRT\nXt9HhjpJpxlnFfLPi7qrVll51nt0lhrrZy6cDoYgNOiaAKOI0LGnG57s6VTo\nB4Z1QbRFfrH+KxFVLifZgFH/HFkNFnBbB2uyoqm2THi6PYFvRB1M87enyPkR\nsFcyrbZdID4H+vkPQbzOfeBxX0wZ2w2q8dfIs/Okn3WWFWw1oqgXEx80nhoZ\n/ndc0jaMvPnDS007LeNXYKqaw4cqp3zzpqevypK3Tp4q/5cZhp6KmbxZJdft\nbHjI0f6j1jy8I7dtjCGMdgFj+iraA2FRbDAGx8yFVPwU5ftbpLCz2/fC5/78\nLbIl+cn852uywunjaNDOSVw9fo6K6isNWt3vB3wjkrF69wGrZiENROAHzxg6\naJr2AgmhJTiypOF2a9cuoN2YgzlOP4yHoU1W9c7Vln3bSEru0kSSkUiVbH4l\nQjuo\r\n=VFFY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"williamernest","email":"williamernest@google.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.3.0","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"9.4.0","dependencies":{"@material/rtl":"^0.39.1","@material/base":"^0.39.0","@material/theme":"^0.39.1","@material/ripple":"^0.39.3","@material/animation":"^0.39.0","@material/elevation":"^0.39.1","@material/typography":"^0.39.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.39.3_1536686359246_0.6896140760754166","host":"s3://npm-registry-packages"}},"0.40.0":{"name":"@material/top-app-bar","version":"0.40.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@0.40.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1f5665c1c7e29fd2b9452d56eb64297dfb485351","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.40.0.tgz","fileCount":16,"integrity":"sha512-fzTN2hO47SuT1XwQBnGIEtR6SgPSqOW6HSFALoTaLdf3CqIEFK0PE1nOs1wipH/zkBNLV4V9sPrHtUPvaqqQAg==","signatures":[{"sig":"MEUCIQCDI6tMhcNpdetK94i4mg+JQH/tseU+vuI0gsck+BQV/wIgVOpiimWk4D6eJ3Iv3Z6muwpnGP+tR+Jyn+Hh2DIuAJM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":226194,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbqUK0CRA9TVsSAnZWagAAnfoP/A6bitNmuaMPQs7Pwi/E\nv55CMuWwkkj1D6eXKunmjVFCFxQrMB2yQRuIPGrbVeWl5O/tN29DPai7t7il\nQD02/ZAt7ctOhHgAYTgRmFWjxjRzaO0vrgCAcH0HbO4QxKSq35gOe8tz11/R\nkyhtX0lty2vMsfUKSj0Ks88qKXH/BlrKOKbhR8QdbN2VeJl/CNXRFtikYPGp\nQiYhcybHA7q7gsF6jjcj7bOKFiLXPgzRaq2wUydMK1MgFx/RgueXGV1KCXCb\n58I5swlPReSqWsRwjgPCjUUQiETOWDBy0t4FhRyZJb6uUWgiElKyLRvXOrnW\n+iBHY6u/8BYpXULg8f1jNobgyTT2fk3QtG0cs/C5GatwkPTX0pnvdRWZxfSA\nZxcSMi2WOe8MWAPYbh+OzRN83y+v/0KvbGebwlWpYsOLqkaaOgpqNof7aL85\n0pSFfIA5TF8oCLWc5k/Pkr81bgHBv/Ihwyrvn78gBg5PLACXKZun1zWcFtyb\nmx1GKKioSokAu6KbNglEPdXJoH/V0eqj0bQ1Ru0T7FrplwmBzrytza41A9uA\nE7kOTDYN8vk7MCB/dIi0+j38Kw7oPF8jercQT4eay8vpi3WisKvRvTJ8b/nF\nTuDdOnRenhxYxGeeHxTuGY2Uhf+X2FDrnTonAnaWWIaoQimX10fuHvvp+lJR\nfJaO\r\n=HNGr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.4.1","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"10.9.0","dependencies":{"@material/rtl":"^0.39.1","@material/base":"^0.39.0","@material/shape":"^0.40.0","@material/theme":"^0.40.0","@material/ripple":"^0.40.0","@material/animation":"^0.39.0","@material/elevation":"^0.40.0","@material/typography":"^0.39.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.40.0_1537819312883_0.6685394945805123","host":"s3://npm-registry-packages"}},"0.40.1":{"name":"@material/top-app-bar","version":"0.40.1","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@0.40.1","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"923523a803818e1e29b237b974c64c9f66746f29","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.40.1.tgz","fileCount":16,"integrity":"sha512-77/Z9Y94HuLZBkmiLgtpMukpuw921X+IAVaWgvLq0XuDSKq06eLfiUBBUmQf358gLQ6go3M+Zfv1sTVDHqvFAA==","signatures":[{"sig":"MEYCIQDO035nQLwVxHRDlqNDfRTFdA2hXQ4+QddefiZlha0JPQIhAOBnCcBlir47rgXdB8iZ2UfTCf4dMy9H4ZPIT0ta/6rY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":226575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbu8QeCRA9TVsSAnZWagAAJNwP/RN/sbv8es0JeT+2yjqi\nyMB+TDfsleWgaHv8X2+NfvHlAQ9xNZWzMkDy4utfxn3FH7w4nJQyz6/deu58\nH8ZP9N077ENDdA+k2z6Z/apVuafK33Bh2TpodDYANqIxa5AbcxJiaw8WAhj/\nB0BoMdKTlE9MSZ6NeFQNFC9fkf/BYpgdKqnrai+DkXesumXwrEBjIdv2VlnS\nqZPK0ORujNaCf+33DhFmBKs8CI972EiOxHrWVFp9YV85YCYasa93Ddpc+Uqt\n2uzOj8aawjbKxFOoWQm95y1CO3kBjXhHzpqbq3meEZIWsUxflN7q2wPL3zj8\nbgnjk0VdjADCu56sjFaZ+L349lLqSRhErX07BkzLiWW2UZDQ4JADaVHnthMO\ntIchlBc+XdGsDy8Zi/MrddJtsd64yx/yh7NOyn/BpDrebXxDYG9C3f/BxIFz\nM4MIGR/1WuIGqaZMwikcgNJTrDhoBqrAoJTq0dQ6yfR0ukJT771vB0d+EAM9\n2c8Wg2Wg2l4Zjf5E9zrMwdppmJZlSa8YzhGj2I6SI0ovwbe2xrTTViyjnZ7v\nVi5erZ3qsgt/SL3mfsLwpWAzma7ilN9qR3svf8uXnYItQMcJtsyNTLo3iM0R\n5ATvLoHqFEWZ7i7VRURco1mUwU9Nbi0kLo7Vf/liLuaZzp1i4/UbqCpZQKCr\nTmQ5\r\n=7wEH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"acdvorak","email":"acdvorak@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.4.1","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"9.11.1","dependencies":{"@material/rtl":"^0.40.1","@material/base":"^0.40.1","@material/shape":"^0.40.1","@material/theme":"^0.40.1","@material/ripple":"^0.40.1","@material/animation":"^0.40.1","@material/elevation":"^0.40.1","@material/typography":"^0.40.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.40.1_1539032094163_0.15557932518075046","host":"s3://npm-registry-packages"}},"0.41.0":{"name":"@material/top-app-bar","version":"0.41.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@0.41.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"03a63bb044ad405c7abafa2e335809aa5dddcccb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.41.0.tgz","fileCount":16,"integrity":"sha512-U3MK6pdzyfXC3zttsrEYihzR7aRqnKM3w2MWRwI0iub/lFygVOSa4qQfaJhwjz9TTyxB8tdtZOXBpEVDsH+xmA==","signatures":[{"sig":"MEQCIGoMMPPxfzH9LUZTLggeQust0+7DASdJfS+XXrnSIIX3AiBdcSwVzmUH9Q70LeuJf+eUaUUuupKHDMPQs23zTyUJhA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":226639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb12v8CRA9TVsSAnZWagAAe5sP/j8nzLL07LagpuE7YrBL\nsJhlSybbasciIh25DgMTl8PEruGUqtz+YKVSvU8uxBqbOrADNBFfYkeOTRVt\nNZ+aumt2Exvw30vGlsRRAL+wRK3bMk3VmlEWwOh+K/GMiGuSMKWGox0dfBNU\nYlVSnkB3pa8gmCHZ2lYO6z3FkXV7KBywvNRvRvDIFI3vNkf+elXzGQROas2J\nt3U0t/+enFMcZtfXQwvWatwj/OYjAVeGFxIpEUGaqvA9i6pa29rc7hXFkXRN\nuK2PTWfC/hGZ5zEiCNpiPs5E7ZkFNRaoI7f4XUoxgLY8kslWFjBNO0kGTog2\nYAlmbv7I0lkQyVKrEseYuhINOsg6bW+XVsB18gGUZJ75IpVl0J5StLVBP8Yb\nnBEe3iATstLy4xH7CoowCutW0j1n6rFJGMu2ajQk0xDPFx+C0pm72bFHJNxG\ncusJeQ3aGoV2fVpvku7D84FPbZsSV9w6NUfa8FDewtOTyKV0DFV1j1+XjT4G\nmrclG5ylVHJff4It4lpqNMGYZN6/eLqqU+DClaFaTMLbMfiHtdsgwBKr8Jxw\n3OapKeAyXrONk63PUXdUDXhAEt7qRBvf66atB3gplwDqnM9KLxMVElqOKct8\nB+l+Py+97WnPx2Kxg8oUo6h6Hth8/iBg69mRj84LLOBIsfaJs79e34VVKFB1\ndGay\r\n=+Sap\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","_npmUser":{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.4.0","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"8.11.1","dependencies":{"@material/rtl":"^0.40.1","@material/base":"^0.41.0","@material/shape":"^0.41.0","@material/theme":"^0.41.0","@material/ripple":"^0.41.0","@material/animation":"^0.41.0","@material/elevation":"^0.41.0","@material/typography":"^0.41.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.41.0_1540844540102_0.25262827014276534","host":"s3://npm-registry-packages"}},"0.42.0":{"name":"@material/top-app-bar","version":"0.42.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@0.42.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fe699bfc07fc465c9860953241ddcbf73d5920b1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.42.0.tgz","fileCount":16,"integrity":"sha512-/ifxQpUZLUJu7i0HTahXxqfG3MuA90CR+cwsyNkTdJOHqjoKJSGBA8FnkyN5v7XQ5/ujrONy/P/QO+g8mzVEAw==","signatures":[{"sig":"MEYCIQDitO1hd+3eCCoEgvWYoaFSkhdvsD2zBLKUNk7ogRx1lAIhAKRFR5Utk6kXkEgdE4kqMy1hIs6NlDRUIWlcIfkmbdmy","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":226177,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcBwXLCRA9TVsSAnZWagAArSsP/RY8jGLsv84ZZN+4ckV6\nnRNrHN+CE7ZoMVy3tz4GG+2KixpS6e60qTGDCZMsjxggUEXE24kkSrusmCrf\nCJPaWdO5Wx+oabVSmceTv0tlLg13kl0Mvi15I7R2R2uGpLCqMq7wQVcY91sW\nbD0HIXSxmIhzCeqwfSEEeWC3nfXWws5D1HVimvIlHJGJwDdU6/f3tZQLF5r2\njc69ln89ANHKt2uVjpUbZ8L0VbmF/LkqVMYToSoPB+QnWY3DyRGxfxsuCYew\nFa3Cm6SQvoV4g3s/iNvO0woLCvNr4k9wZ3Hfnk//SfixEkThIhAXyEyF1rRs\nEVE/FEC1XLSozGlMt+a7Rjv6OuaYJhXmeIFupSEdHY85TN5xUCW2Jc4auU6/\ny7i+lGYbKZVbEgkc1M6xWoZno62a38m3kTe+mOm9QaOVt04qxjim26hCLVQ0\nzhkK15d8ykKb232JHFBIG9VVqPZK/2csDB4ZCgbHfbaEMzPYtY+WWyJJZrXE\nzFTRdxXqVuaxa+LWqdKglvYzmw75uyOVZjW50LYuS0pO4GhyQAP2vSQOV88f\nEz5OM4kMpr0LYIzUp3vKv+uJPbQRvraSUf75r995ok72A7HrJ2oZ7FreilQs\nBPioRZmvKCLDT4CiatgAf3vo6GwuigF2XvuxeI1JfaowCavEB1d9J9AbioDW\neb2l\r\n=z/r1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","_npmUser":{"name":"williamernest","email":"williamernest@google.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.4.1","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"10.13.0","dependencies":{"@material/rtl":"^0.42.0","@material/base":"^0.41.0","@material/shape":"^0.42.0","@material/theme":"^0.41.0","@material/ripple":"^0.42.0","@material/animation":"^0.41.0","@material/elevation":"^0.41.0","@material/typography":"^0.42.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.42.0_1543964107008_0.16139095351510235","host":"s3://npm-registry-packages"}},"0.43.0":{"name":"@material/top-app-bar","version":"0.43.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@0.43.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"79dc8e17d92c03b4f3e699a0062496b2108c4e00","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.43.0.tgz","fileCount":20,"integrity":"sha512-/+/KTvIsuOqlNKtCXYghuTsNokXcICGLdtpQqvUa5fbOcYALIYjWexpXRwTq6SyTJIpoZOotB8Ytcl1l4FB2Dg==","signatures":[{"sig":"MEUCIErUPwya+ezRmtO4cnSEELBnc89b2ZGZS17Qzo5lQSbdAiEA2NyUDyGX8XgLIU9TRnEXFDf40MSmTOwQj3tKk1UMqbs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":663710,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcM61JCRA9TVsSAnZWagAAuEUP/jUnulwuljQQRYQDJF2w\nuLpiTV9KEJeVCR9pV1khaDF53/MuhN5XTbMVbOck01e3DIWwpk9kb+KWQuSg\nPl+eP/4TI++JcdlcBoWJ+84pRKuEB8qar068uVAAAglFBVaJ7dc5Jg8DQb2y\nMbpelHzeVtffk9S5skGCxqEd9FrTNYS7G6psN971/jx01G4cBKpJfUN792GQ\nJfrCObu/ZcMUsC5Eyib6BHWQ4p4JCQiWPT/Q0baFXf5r6G+CIvTD1vE93iPS\nuroFS/yrsOgaYBJBvXTwQuJuk0YStwF939u7iV1M4xcQHc9f1uU/R6TdjbE+\no1L8lR749eYDyA/8w31mDtbmIlIhztcPojUr0WJfw2/59MfCx0eFlAXCUVPL\nH+8WClsLfPJIvb8MjPC364/Y4eFnHFTovpLgefITMzl/ye1gUKAJ46ccqCF2\nqg3GJa2yIIAWVEKnVbchie9WvAli4LKBcLuBsLAU5Wbs++9m0cIEFqrYQmMX\nEyHD7cTSpJn7ULJ3SAK8+d7W2ND86W8iIKiPqy2iGncw4hULxrdGAJLyG3k4\njZX3dPQELW1Q2uH084nqOjgdrBoiEvbaW4sBuCWXR0XOAxGG6R7/PDicei35\n/dn5lcVZ9xgXi7GmBAiF2bZeHFxbID/Dl1zTpA+7jB1bThIl1RJVFOmBM12K\nwIBz\r\n=11lQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","_npmUser":{"name":"acdvorak","email":"acdvorak@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.4.1","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"10.14.2","dependencies":{"@material/rtl":"^0.42.0","@material/base":"^0.41.0","@material/shape":"^0.43.0","@material/theme":"^0.43.0","@material/ripple":"^0.43.0","@material/animation":"^0.41.0","@material/elevation":"^0.43.0","@material/typography":"^0.43.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.43.0_1546890568415_0.8422889289885824","host":"s3://npm-registry-packages"}},"0.44.0":{"name":"@material/top-app-bar","version":"0.44.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@0.44.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2495c7f9567568fb961ccced24f479c4806a72af","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.44.0.tgz","fileCount":20,"integrity":"sha512-tf0yXQJARYs8UPaH8oo3LnsSHEiur7Zm8Fc3hv3F0gNRRaZYBjwsMQMVbZZaWoQCWskMALyntBg+Fo18zdgDxw==","signatures":[{"sig":"MEYCIQCMiHo70BBHBkrKDM3ije+zwYSFQqR7QfyDUztRtLY+6wIhAMRREpJRF+P70JKppdwQNFiRlbptYw/pXJSYFZ5VXa8b","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":675631,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWINXCRA9TVsSAnZWagAAlsUP/jpSPJB+KGKUOOpl3Nsj\nItEoVMeR7mDKblMUuMwOD/Q8OOGYi7SJ6fv+i7moKJAx8F7eoQsShSpDIdmr\neOdytSs99etU9gw09RH8748AAADhHg09qkxtC6G1/OnbCYRFj2/PPXPM/g8s\nKePtVMqwVK1dtTRQejw+Ky8HgyM+lRwcgIxiboNFyQscvdZBZyNszX2f0tuw\n1OZwdH/9O4ZFngKnNtpPIxdZGWVFjPtZEQ9ycAu0iWG8p2bhMiei4jJvRvmt\nqfuHStWuR6SnO3tSW/BnHYiQrVYt4Xeh0yxbSm5ygOw+ZsWPPGt8zvOBZVIz\nBrEuFmgmh6QcNNkG1iEWse+4ifoNP/5XZLbxwwA8P8o4pjmX4Rxa1BbIu2Fg\nG5mAiOm6p7jJJib59Vxr5IuJvRZ/B6nMiO0cQ136xl8H0hcgsr7iYIa0htgA\nyLCC6cAsl4JDODo5NB80aKR3Kz+OtlJvmb14PlO280QTR/CXbXHX6kTjW8SB\neSqQnegF5qVGZUu5SSe1XpFxMSqrPqWOZZ4jGK8t3Zp8S120G1kVhNXXj0VG\nDKXJxugO5AwYVdu/N3DITUsuGDo58ItnRfDAj06lc/opWRpjUg4puC1i66PJ\nux9PjFj72HwjzXa2hpFmStalBnMyMbKVngBzE7zd18ugyH0yj2p6pXwlUlfi\nUt9U\r\n=LGSy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.4.1","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"10.12.0","dependencies":{"@material/rtl":"^0.42.0","@material/base":"^0.41.0","@material/shape":"^0.43.0","@material/theme":"^0.43.0","@material/ripple":"^0.44.0","@material/animation":"^0.41.0","@material/elevation":"^0.44.0","@material/typography":"^0.44.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.44.0_1549304662374_0.8419013178911208","host":"s3://npm-registry-packages"}},"0.44.1":{"name":"@material/top-app-bar","version":"0.44.1","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@0.44.1","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"016caeb0cbb8cea65290af702ad95956eba5d4af","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-0.44.1.tgz","fileCount":20,"integrity":"sha512-RyRfKEO8qoOmrxoFPFgX3msM+TfFKHPgxRPVnaffIcQzi/0ALeB6qFcxGphZxAeK+/8q+kaNtDhBb9ay12VAIA==","signatures":[{"sig":"MEYCIQClJx+nVzBBeHFrzqAEEvkWtoNoI72TYtEAkf8r8FCk2wIhAKkDi2ZR37y9BgvfjCMCwxccP2b5yaOTMTGr0pvxRKDi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":675631,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbIstCRA9TVsSAnZWagAAdKYP/1qa0KdN6MrWEdiLzLi3\nIv+npl94cMPNCBo+GgOOrGk0wSmtrQ0eA3j4wjI7k+m6PNgQypEUHbSd72Zx\nWHxn5SLLNZbEl0eN9xo9p8+ktHifxj/r30HSA7BAvaXJ7cmI9sOMXxtXUUzo\n1TEl/n9SwOS+7ZuSGIXhvJElQBKxiL3JRDb6qPlNq9QNrwqhSXwbEGl+Vhqw\n568QHW0oD0LftdKgXh3NL486zmk74iVwEJax7YUWZyWo/+5vyXOptEvCGLPD\no2AlXEJ+yXLnXgcPRe/05dcpJzePQf9bjqR+gk/isMuDgTenVypFZTJldsvZ\nWY4EEFwRkikvUqg/dNApIdrBZlAYDj0rkwCrxMrt25IRiTBe4idNKXIPIUSO\nqP24FCbVFKmpAZwCKz+c0Sex8tD6k/dQDeTdSeaCxBH8w/7E7QTvVrAwer/N\nxvWtxQWoWrOlD33X6XwUTpJhL17Jkmo9nqhFlS4l0v0pmpqNMGwxJgMW3b5B\njEs2y8F5kZJkYGaPXBKQyObDiqbHjA0B+fyOksmB3Khm2PmmnwCnA8GrvSIM\ngKQ3rDyaTZQu3VfNXQESxxU8g96uLaFCi/rcFjkiAtlZZQ6s9FQFvVrtEzgz\nLAcA+1C6qefjCCTuHYv2uqTXh/X06h9VCoAO/D/qYgG7NUfY+ZGhj218i3nD\no/1R\r\n=jQd9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","_npmUser":{"name":"acdvorak","email":"acdvorak@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.8.0","description":"The Material Components for the web top app bar component","directories":{},"_nodeVersion":"10.14.2","dependencies":{"@material/rtl":"^0.42.0","@material/base":"^0.41.0","@material/shape":"^0.44.1","@material/theme":"^0.43.0","@material/ripple":"^0.44.1","@material/animation":"^0.41.0","@material/elevation":"^0.44.1","@material/typography":"^0.44.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_0.44.1_1550617389130_0.5167142005315848","host":"s3://npm-registry-packages"}},"1.0.0-0":{"name":"@material/top-app-bar","version":"1.0.0-0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@1.0.0-0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a1f48013b44bb394da7547ef2ac3628aef5e9102","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-1.0.0-0.tgz","fileCount":38,"integrity":"sha512-gMWjJg6E+XVYXWvntZ0IIEw5xPQW5PTssZqkd5u1RHXWLYEZsyobr/5wH2CyYZUT69UqCPQSWbJ8fA4jdnXjqg==","signatures":[{"sig":"MEUCIC6dera7iqqG3Tlw3AwCDwLONtQ0FNY0B6uZj+z/Wc/fAiEAs1FSbjZeVwlis9LxL7SJnzy5A4Py+c3JzEpGMCHZIqM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":805117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdyR+CRA9TVsSAnZWagAAkhEP/RBQgL5I+8eDBInYhhiI\nzuZZaaX2RHe35/IAlcwXyWVJquOtTaNXC8ZUzD3Q4T9qNrpE6Zr5NPE3YEDJ\ntY9JEA20biOcbd3wlMVH8SQY5o2X16mPI45P8vLY58UpxxBRRiGggIV4D9Oy\ntodygFynJVezspJLxkiXaQeMdXxEPLgvGJK4prmLu1ip4Nb37vMhjfYb6jm8\n9cmSrYQ0Jns0g8sSYZGmVoc3yBdmRiSTt5IJFDikzA4ERCZyXfFTHfqRRbDZ\nmI5mJi1gDtgIKYfv4F00kInpXURw/JN4oNpvTHwwenvu6KOUSpn6m1XZzcfM\nhpbPzkHIKl9KyiN5D6NIFvmjtKxqNcOijlRZa2jdUENbAIsWcTM0eqBGMOCE\nRvFSQx6lseMxGge+aGDxJWAw9ifdlN1NqAwXYnP1wmIRKDjOk9dfXy+5XFYO\nPF/8oOQKrlDpBfk7btQp2vJSttcwroz+/q1J/81PqtXrm22naSiuO3bNUTkm\nB/cWWTwDIjmDhWJmfy+DBVONVNrsgMShz/423ZhtLLkeRArTcm0o8vUH88vW\niNngVPwgNq7qL71L9Nn4LkTbChRy2CH2JDNF914ISshCjLOZnk07OtTu/sEZ\n2CT6bIh3npP5ypMFp9jtkI6ZmGIQXi+4TDK9hxxMTEMliHoZKcgXP/iDrbRP\nWZFw\r\n=5smt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__navigation-icon\">menu</a>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar/index';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon.\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__navigation-icon\">menu</a>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__action-item\" aria-label=\"Download\" alt=\"Download\">file_download</a>\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__action-item\" aria-label=\"Print this page\" alt=\"Print this page\">print</a>\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__action-item\" aria-label=\"Bookmark this page\" alt=\"Bookmark this page\">bookmark</a>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__navigation-icon\">menu</a>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__action-item\" aria-label=\"Bookmark this page\" alt=\"Bookmark this page\">bookmark</a>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both prominent and dense, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`registerNavigationIconInteractionHandler(evtType: string, handler: EventListener) => void` | Registers an event listener on the native navigation icon element for a given event.\n`deregisterNavigationIconInteractionHandler(evtType: string, handler: EventListener) => void` | Deregisters an event listener on the native navigation icon element for a given event.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n`registerScrollHandler(handler) => void` | Registers a handler to be called when user scrolls. Our default implementation adds the handler as a listener to the window's `scroll` event.\n`deregisterScrollHandler(handler) => void` | Unregisters a handler to be called when user scrolls. Our default implementation removes the handler as a listener to the window's `scroll` event.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n\n### Foundations: `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nMethod Signature | Description\n--- | ---\n`initScrollHandler(handler: function) => void` | Registers a scroll handler on a specific target element.\n`destroyScrollHandler(handler: function) => void` | Deregisters the current scroll handler set by the foundation.\n","_npmUser":{"name":"acdvorak","email":"acdvorak@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.8.0","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.14.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"^0.42.0","@material/base":"^1.0.0-0","@material/shape":"^1.0.0-0","@material/theme":"^1.0.0-0","@material/ripple":"^1.0.0-0","@material/animation":"^1.0.0-0","@material/elevation":"^1.0.0-0","@material/typography":"^1.0.0-0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_1.0.0-0_1551311998210_0.9814475767103634","host":"s3://npm-registry-packages"}},"1.0.0-1":{"name":"@material/top-app-bar","version":"1.0.0-1","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@1.0.0-1","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"518511d9e96cfb0f6d57bf7ff98e18809682de73","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-1.0.0-1.tgz","fileCount":38,"integrity":"sha512-YVJxvuI+3gk+TkWO+EmvkvXRrqfnK1qM9Vsht9bqQt4NXtLKfY/SJILN8P5zLQOTDC1nMCB8yPnt1xIaoSREbg==","signatures":[{"sig":"MEUCIH+g96X9eodUwYQlUNP28ZrNaH/l8+U/Lc1zI1sbdQerAiEA1Tytz4JdPRV3cWgaiDcBXMmHtqxgd0sC+jkoA+8768Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":805243,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcfbXZCRA9TVsSAnZWagAAaZsP/0GI/drUaYOltJHl81Uu\nXIKa9IVy0feFW1SBwCnYLmC+DjBO/RTlIr2eEnprhsmHiZmCDgHNlOWBLa/L\nC/EFGzOZ/voxROuqHQ6SS9R5vR+0m3vTo2IZT1x33WUUOdzDoRYgpky/rOJS\n4BrT7q6y/JAE7wuM5ZwaWmYrH0qZNwFlg890NuhzGk6/lWt8W7rca8VgZ6H1\nT3/fHJD6ixiP4fiviv1Kq8GPmQNS+nE39qo7xibMCPX83gUf5bS6fn09inEc\nsTsOw3DgqPJFTXdfSHxajCtcXi3zcKIC7hI1Dh+mx5yEVc4LbKhZe0v+Zz4r\nCMOGTYwKN2E1/bAmAcMA5emjYe6AtfF3+aGZWzFB1h62A/TDUVaAAcvsrkVD\nqJKJILwCqV15Xf63LoyhSxvuOnCFDe98C08cFaRkXw+QYRP4JIX7678y/zXo\nTImUd5gUCUZqgwW9HZ4E0XS5n80G6iI8YlpjmPp8p/P2VZAbBu38ionB9ibf\n9D+1iamLLE1PpoXHpQfeHOKwUMHAKAuF7LCf7BS5HWArpZWn0MeF6vCrsT9k\nn+04aRfsWzFbaglarzKdUKHkU5d9ALhy1atronu9uQws/cLdIOquWTx9YOtL\nGiZLXHBl1Lu+H5qQ4+Npejr1A1rbJS5JOLWHcjNL9ElfaWem+yjk663KkUIh\nn5Gn\r\n=DHXk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__navigation-icon\">menu</a>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar/index';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon.\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__navigation-icon\">menu</a>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__action-item\" aria-label=\"Download\" alt=\"Download\">file_download</a>\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__action-item\" aria-label=\"Print this page\" alt=\"Print this page\">print</a>\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__action-item\" aria-label=\"Bookmark this page\" alt=\"Bookmark this page\">bookmark</a>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__navigation-icon\">menu</a>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <a href=\"#\" class=\"material-icons mdc-top-app-bar__action-item\" aria-label=\"Bookmark this page\" alt=\"Bookmark this page\">bookmark</a>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both prominent and dense, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`registerNavigationIconInteractionHandler(evtType: string, handler: EventListener) => void` | Registers an event listener on the native navigation icon element for a given event.\n`deregisterNavigationIconInteractionHandler(evtType: string, handler: EventListener) => void` | Deregisters an event listener on the native navigation icon element for a given event.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n`registerScrollHandler(handler) => void` | Registers a handler to be called when user scrolls. Our default implementation adds the handler as a listener to the window's `scroll` event.\n`deregisterScrollHandler(handler) => void` | Unregisters a handler to be called when user scrolls. Our default implementation removes the handler as a listener to the window's `scroll` event.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n\n### Foundations: `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nMethod Signature | Description\n--- | ---\n`initScrollHandler(handler: function) => void` | Registers a scroll handler on a specific target element.\n`destroyScrollHandler(handler: function) => void` | Deregisters the current scroll handler set by the foundation.\n","_npmUser":{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.7.0","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.9.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^0.42.0","@material/base":"^1.0.0-1","@material/shape":"^1.0.0-1","@material/theme":"^1.0.0-1","@material/ripple":"^1.0.0-1","@material/animation":"^1.0.0-1","@material/elevation":"^1.0.0-1","@material/typography":"^1.0.0-1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_1.0.0-1_1551742424957_0.9866247118115044","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@material/top-app-bar","version":"1.0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@1.0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6151f5fb563b2ac3e2b923ae0c4ad37c239e1ea2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-1.0.0.tgz","fileCount":38,"integrity":"sha512-3EzNl3h+gu7TkeMJPC0CwH6ClV0+oxY0+64tFY5KYQaZxzi+zFjcVOVu/BEK56iYXXOhAprKQgw0/raBpu1n9g==","signatures":[{"sig":"MEUCIQDLyDZrHhyG4IUZkBoWMmW67+EiVqXckMIRtESEZQf+twIgYs0/6KZCfFcyorMExcL6+JZAbTe3L4DMCfOlNPsIbIM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":805227,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcgDbUCRA9TVsSAnZWagAAHSUP/3yxC3xJCPVNk+MOCjIi\nUL/hWWnQijaXQ1ANe5vwqLZdSmINkx1gK8DXXr+T2re7X6/Cqrvp8y00EFl4\nBI+64j7txv1p+w3YBYBfGyFodmUYoWBLqChz0ByMskmF3rTRDiQTVBr2vg3R\nwuQlkF1DfbtCcekpiIZnskvyraLEjFv0iaJ7vLVgnwB2u+cgGau5qsvRRq4x\nF/xpg41sK3FNjX8j5dCk4a4bvF+S2MR1NPN6tqR/Gc0BL/yajRyHa9PKSboC\n9XrSmX73SGlTRjEMzEbz8mSO8j13+8Y6f9dT/D4WAbDZUUHoxu+WO5s2DAjd\nN/Vgn9EWWapDivY4OmGkt75Jl5L3twzSajfAlbEOCln92IAbalqx/KSyjKmO\nFgBKLtezFeZVHx7V8uvL/Fgt9AwH2HttRFp9rnxzHKbRMvUfPrforTeZStPy\ntqCmePzcvNf+zL5dI1l+cQ3ukz8/vPPzad384PGpxLp5gzJzODv5IY01+wor\naVfVfhp2HWDF6z4dEymz788yucrrv4ksUUpLtdgGxp+VWQ4wiY8XH+Yku91I\nV6tziyeTNG9EpVkbqc6fHb7brEpZaZBzFDmnpvV4Fd/9g+Z8XfLaqVn64xxE\npQO5hV03P41PoT2DBwpeHbiSEOHyuHQ3qmEauhft7Uvt1ZzIqoYB+hO9khEs\nxc2W\r\n=GxW1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","_npmUser":{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.7.0","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.9.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^0.42.0","@material/base":"^1.0.0","@material/shape":"^1.0.0","@material/theme":"^1.0.0","@material/ripple":"^1.0.0","@material/animation":"^1.0.0","@material/elevation":"^1.0.0","@material/typography":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_1.0.0_1551906515060_0.9978392229605111","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@material/top-app-bar","version":"1.0.1","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@1.0.1","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f225cbc20926a9f707ec2bca6b0973f0da79df51","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-1.0.1.tgz","fileCount":38,"integrity":"sha512-CaKp9e6fF//kNd+42OBXetCpuCjBWRkdSKrBqKDzjC9Vi7WItFFCDtJvxz1++zcvWikngk6unYy0CLG9GDPRew==","signatures":[{"sig":"MEYCIQC33M83UeP+w+D0NydP6MdjsyR/O0TsA3TPAHg67FZYBAIhALiTOTSIEkDy1zaaDsBCxdri3Ryg6yzwzdOtzCdDzHaw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":659317,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchtw0CRA9TVsSAnZWagAAAhkP/2TrQLKKdVjSj1CvYwxW\nXKC8wZv7wXkRX+LNU/WZN7kcLPKxOwYorsxROzG9/KOKYs2vw+X531XBkEn1\nb4awDFQJI4tAmQZwvBtigNlUZ5CblKDmAYKu1jSVMWN6PdQDKgNkw/qWx0Z4\nXTl0rPVTiohxiG0Gb569zXa4xx5h8LlSJB/ound+1OBd5Na8CTonAbCG3D9I\nkk4A+f6VlEVKcdZzM6RdezvIv6hqI7dfCVDke91gIyeGk8YIBh5xIow9i5GT\ncERvdPTaXOV99yblbquWg5hrztx+UT+nlC+klVEctA8ZmYDNqm37GG/MPNu/\nNnlkOFQbNdN7aIYw+4aLeVa6zilb33/3dyt41H+aX1nfsWwbILrk4GoGZqOV\n+O5l0CA+27zt7jAXceotJ6bYq0mfN12bHT+8luMSHIt998TP4Hr3rDkvebOb\nyCL58xHgF9UbsfOQB0wQ+tF5EaYYPCura3Hi5e2LEfBMefzU5bucLiQxseq6\n34HyBhTMq6l6dhaHIOp9RjBlNXI+ugC7nG4djrZZIXu7+Da7iT8LLjlpz6m4\n0W/9C1b6gzuL2pSQIP36bB+EcjvfW0KCfzKuIVDdtUF1acovTW6PkKUL0On6\nnQkBJ1pvKiIkRi2a9iuYRyHxbyLrvTYMzOifPtUDrKFOS0JHuMN6Hu88xTdu\nOrhY\r\n=e1NF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","_npmUser":{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.9.0","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.15.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"^0.42.0","@material/base":"^1.0.0","@material/shape":"^1.0.0","@material/theme":"^1.0.0","@material/ripple":"^1.0.1","@material/animation":"^1.0.0","@material/elevation":"^1.0.0","@material/typography":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_1.0.1_1552342067543_0.8930793208581096","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@material/top-app-bar","version":"1.1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@1.1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2b3412dd5eeba8b24a46ab184e17e68fa0693581","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-1.1.0.tgz","fileCount":38,"integrity":"sha512-fxVKFolNzPG4+LqH8GUxDKfjRZtQNDYX8sGD6c2pKbk1tigyiAGBO/Py31RQQkbAdCKPdmnanGJK2gewaUdw4g==","signatures":[{"sig":"MEQCIET+2XEzGJmFCWm5XdHJ5HpDKZvwertAJEHYBoQtKoZhAiBRbGkb8GDSKwlF0N1WMk4p6T6prBVoEQ20sjDh+SViXg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":660095,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcmnzcCRA9TVsSAnZWagAAudsP/1UTEpX9Ng6/gTzacG4j\n5/zg8+eh097C+9PQGG4JrET4V/U+p18GXnZUAdbasxXKYW/dcoA0o3tQvAQ7\nKOoQJG8ntrOvN1nCPcaqGZwdWB43O9L68gZVassKp7NejZ9FzS9rmPIGZEnb\nV54JvPh0byn2mkmqkFG0n5UnIS1vOvb1NYfq2xfuQqqmngW6pObN4MUdHBNE\nW7HSn0D/0txdDdXdSYKEhilrOhRRD4UBPhXFSJEbld27Hel9iQpoFaqpoH4Y\nhYNxAy1ICUEmVQyKHRp+qnKG6haT9Is3tQwW9AwruI+qLHWqSl0IfFjUTbje\n85Fpt6gOlX4AorEBB5pHaj5Iu+N4Ox0YdTLRnI98Tc5dUsnkGW1zQ6BZieFd\n0w6FeSBuk56JgjB1CIpcNsCxWxXo/sT/1TgAYlJYsZ+RkIHR4Atzq7bYWgNE\nY4zEPaM7WU+rx5V9hVoRaCsJQdhnkMNAs8GgC/B7kqG2UhBCh4JAYDaNzH97\n2kVhjk88m71IV2v7bLhupkw6B1IRuj37NBe1bZXpIU8FRbiUcqrOj6gqBeqK\nkLnPJ6q7/r5S77ZoZqvIUsPo+Lne4YODcaOjHSaSdq1TwGuxv5ENydIZNMbM\n09VycEnuI55LJrIapBMqCmAIDhbN2BSvpX2mTEoME/KxvOHZauYT8jtEAKo6\nNl7+\r\n=9PjK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","_npmUser":{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.9.0","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.15.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"^0.42.0","@material/base":"^1.0.0","@material/shape":"^1.0.0","@material/theme":"^1.1.0","@material/ripple":"^1.1.0","@material/animation":"^1.0.0","@material/elevation":"^1.1.0","@material/typography":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_1.1.0_1553628379826_0.6766433383825026","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@material/top-app-bar","version":"1.1.1","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@1.1.1","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a7a339fbb49fcd11a6362ca9b301fac4e28398c4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-1.1.1.tgz","fileCount":38,"integrity":"sha512-UZ2aHB+lzI+ddy/Hcy61hvNbSZBLArgWwVtA1r4UvQAlvht0Zl85jCj1vs+GM+qxbMFfXFet2q0n5p4ykk9v7g==","signatures":[{"sig":"MEQCIFCeeYrTOmHdOvsZoMNyF3krc+kdgYerDrEE+yzVsftlAiBQxE5VRhWQ+GYx+8Ep0ydEtc0NnaDMn7fI+4N30hNVrA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":660095,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcq6uTCRA9TVsSAnZWagAAkPoP/R+fjhpzTc7t36rz/0FF\nYECltFiR4Jp8IADARYRApcKbDCGQNZ/VlbOuKEp2JPX+6kFx5E6dUOugDecj\n6zVBcP16TrdeCbZOrVXn70ds+zIu5ePSC8U5eIeLn7CgAY/9EF8jGUwtwWN8\nuv8Y2z/m7LsMmsesEEZSYIB0ciI3XC/pD0A8Bu9tgW+zB9P82/qc+6BLhEmG\npV2xnj0ptO3DutNTmhf9s5Rc9YsbHbHE0Vz3dH9HnB/p9BnUVpPr+Dj3Cb4g\nAUO6+36zDWdyhJKrv5Ittztdo16H8whiKd/DRzWGMqa930iLOmVCDb5tLIu4\nMHhBsyB/YHlKCOVThKa1Lin+qo9JvuD2WMatNrApFt3HdmguuVSHNKutQ2uz\n1uEtOjWjrrmROvuodcBqlzT2r8a2GMLG415yBWNzqT0Ca7qg/5b1mfx4Bchw\n/ATBaQ6dcnAhheQ0rRjkZAGb6V5bMQ7nUU4wJnJiz/xt7rOjSpwXSepToH4M\nbBfkJ4F4ydB+ZbierD8/l7M0hy4TyYl2vusJr8zo1OKqjCjG3lidY2WzYElB\n7lrHy79SOoXaohnolHEas7o38NXZhTzU7GpwRJxXydxFOOs8jMf13/ZsDZTo\n3Yg3+dSmJgZX5HWwHNSrdmEyHUKkYtpzLLWLFi4HBpEAoU6G4/ft+JU4JIyZ\nNA2z\r\n=3CTq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.5.0","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"11.9.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^0.42.0","@material/base":"^1.0.0","@material/shape":"^1.1.1","@material/theme":"^1.1.0","@material/ripple":"^1.1.0","@material/animation":"^1.0.0","@material/elevation":"^1.1.0","@material/typography":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_1.1.1_1554754450788_0.1248105479367363","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@material/top-app-bar","version":"2.0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@2.0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"24562c2768303c3438791d7f23edbeb1f0f987ed","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-2.0.0.tgz","fileCount":38,"integrity":"sha512-Itw1PAdfRIpF55/rWb4as7vK9J7Bdmsh1eEG578EhYhmzpkePr8B0zBZ+OOs7vYK7KXnrQ3X6tGB095bEIDkWA==","signatures":[{"sig":"MEYCIQCd8R0hml9HKFKSuJEY8qsHH+PU3hwrkAaCAipFDiIk4gIhAPVXhn4Sp2ndy2Abgp+Ol8ek9vHIwiL7/zj+3HZ2OLg9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":735887,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcxzcHCRA9TVsSAnZWagAAaGAP/3jXbwYqmLcsu9m0o8rk\nsADLcpHd7FQ/Zgg4IbxuRxqDg8bDFWXWy849OglEP/QJcc9SspcCGpx4DnaX\nGxUbHB2ZVCLO9DCtBAQRS1eG1jj+SkVQbOtwuLA+zztN+qQIuPQtIbF/RGN6\nUCbM0tRZ1gakrgp/yF5bZPG6VZqhtD3+Hdogw6JBr0c4sJTbFqTpTdVaUBTH\nNp9BUwThtyOrIVkdk7fNPWZ5HN8/7a6QVhwjGjmpfRi7tUneB6Mz3/RjbWob\ncMDvX9szeLYO19s4QXVUko0gSuFUUUPQlAzcRPPA2l9NDEMUWihlAHIOPx61\nkoL1oBhHbZvxI8a7ygVckeAAuwFrKWA0NNuQnj1Wi8BmZSbRo4RF3R2OIkSx\nUpZhs2+TXmPkZDqtb9LZuTeJtVqYkGaHyAfD9d1+k2Lf9MRmjc55PPTTL1p9\nW1a6NL3wx2UQ2v63qqffD5GreQ8j9Ymy2Y8GPA2INfXpeE4ubAfdwc1GXD/+\nTSCU53+h9enMv6g332GQBWvNtrkylgLTFWaX2ms4VF/Bictlg7ncaScIxnq/\nRWzAT6LySGq9BELaSjcIOuOGkUQ/iw+1EILzoFmsQ5+YSSxRKuwXls532FP8\nEwQGxk4MMGO2p/8fNSj34RFD+IkDHlVbj5+agSo1Ot4R1USVY5awogGDAW02\neNJT\r\n=L0yI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","_npmUser":{"name":"moog16","email":"mattgoo@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.8.0","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.13.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^0.42.0","@material/base":"^1.0.0","@material/shape":"^1.1.1","@material/theme":"^1.1.0","@material/ripple":"^2.0.0","@material/animation":"^1.0.0","@material/elevation":"^1.1.0","@material/typography":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_2.0.0_1556559623143_0.8557642649961286","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"@material/top-app-bar","version":"2.1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@2.1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"59bdb1365510acfd2485c111939732e87ba29d07","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-2.1.0.tgz","fileCount":38,"integrity":"sha512-wr/x+CrdscOIznNJj/w65P8hyi3sLBv9pX0+Ia1LJKpBwK16h29xWZAWwBQD6yzdr42/QvU5OiMcYg0bPikHGA==","signatures":[{"sig":"MEUCIQDI29e/uQqECtQcfuBvb5ru7tj9ZO8Y1s0i1kvqRn3j/AIgTd4TEGKGvss7Sz+wHXbcsgQjmZpqkOUDSodmvJTct4Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":735887,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc0FPWCRA9TVsSAnZWagAAwVsP/20r2wPvACF4OfCBuhul\nVZDfgSsHIlpajvT7U6DgDFuEX69XJ+K1VaGtWew/E04d8JuVrsDezOURs2Jj\nTE7IVOxlj0YYGAZao+xjRZbElA3FoTNMVUv6VVbROwDdHyfhm8IM4i53baLg\nABjE9uDm08l5YLuQQFtd51XQU7TCBYpB3QCYxDDs16nObXAWU3wVK4ldeRSI\nw/nKYVhKZQigfgckeK2bjQPJw9S9BKzj9GV5UO7z0GgJtfP0nOpOD8QDLJ9n\niC7k9YYx7xKUiwVpmpL02tabE5PM+qKSQyT+DCcn92mlgzTnYHhSuUFzW4Sc\n2wWFpoAWBxjcMKjhLOeUjrpUzjDbB4bJhBUGymxfuBA7I5lOA/XKNz/HSfbd\n1ncuslFxX1pCx8K4VOhfoBlelL3ShnP+zcqS/eCy9nARRwpn4wqzSZeV7xzs\nB/zmIZXJYZdFi5Ypb8cXjJxglpGqyAymopHbptNhLQdfpR+7+4DTpocuUOgG\neOrZWHya64V0+mV8Hqh4XYmqZz7YedzmcimdlPV1GNcTiaixBEiHWdh5yq5R\nPO48gyZftt76tqoc6KzZuZ6xxMgel41iYqUlIit8hyAIS6FiFfLLnZSnExI+\nKK6XIIeVLaYcvm8I92bt1u7avFPMslFQscKjuaRAkMvcsYMj6PzjBK1/JBED\n/4xM\r\n=Om83\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.5.0","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"11.9.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^0.42.0","@material/base":"^1.0.0","@material/shape":"^1.1.1","@material/theme":"^1.1.0","@material/ripple":"^2.0.0","@material/animation":"^1.0.0","@material/elevation":"^1.1.0","@material/typography":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_2.1.0_1557156821707_0.5531209320874182","host":"s3://npm-registry-packages"}},"2.1.1":{"name":"@material/top-app-bar","version":"2.1.1","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@2.1.1","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"490499f29ffa899dc70cbec834ae98cdf3806057","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-2.1.1.tgz","fileCount":38,"integrity":"sha512-i32LkVeMXSH8xmZ2h746Dpovhw+iHCQNYRl7ugLBSshnTmoOD3IZsCnSTRtFuGjjW/8X/kDY3aCxpfpRyHLKzg==","signatures":[{"sig":"MEQCIEdDsxBKfW3vquR/sm6QViEEI4suPrdm+zw8N3tKNQXdAiB+LznfufC9NpXMoZG+Esloa6XTvt80LDn9M1RjjmjGFw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":735735,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc1bQMCRA9TVsSAnZWagAA2SsP/RUdaLt2Gqbom792whu8\nmgNuNREHAdBCn+oIqwVdzkpXvsHi0nNuCf0STDTbDB/LqSepHVPGQ5SoNZnS\nzyi7fUkGRDLzZFQI19OqjKzYRLNWMQnY0X3LcAGBNV1OUEYOmeXnnYIaxuy1\nnjNuvoaevqtmCwxX1tl8BtgeExaLOR4oZbKzpPBi/ap+XgB2HIFBYSrBobsM\nixSFbi90W3vrN2BckDkgtZ9zD8d+HPNqwK2bBQqsBlY11WC9hhulQ14OPC6b\nMBnWOb/v3gBbOkrV3pX63ez0jQ34hzSBPass2uLEe4YIoW2AOuVwpgBT6zqW\nOcnzHaLevZiVSCCna/KOHNRAJaLfNfbypDN77XXXYcDJbKMlFrv9+cOL5/Zx\nhL6w68H/f/9bLE3vkpIBNxvQKysARkYx9CevseCH3eJECZvjJa7U45Nw5hKZ\nWdlXM+igWxsTlSDKb/gB38iYIb90elbRDH6ahl1esXVmZxJTtaMyDUn41flE\nqz5va+d14uC0CUMMJ/6YYOdgPXIFdLNmtL5/Q9M+avPwQ5HSOAUHOl5Cqtq3\nYRDvN8svVu/c04L9zK0CtB/ve0bVEXW/bawZF1iNEztdT0L1KuDl0jAKuQWn\nw8zD4AOC7cp3W7+G/DS0jxqRT1wSQD/8OEsS55lZo+gMUrehvUlkKXEasNpq\nS3Bw\r\n=JD0o\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.5.0","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"11.9.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^0.42.0","@material/base":"^1.0.0","@material/shape":"^1.1.1","@material/theme":"^1.1.0","@material/ripple":"^2.1.1","@material/animation":"^1.0.0","@material/elevation":"^1.1.0","@material/typography":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_2.1.1_1557509131355_0.11053836136252526","host":"s3://npm-registry-packages"}},"2.3.0":{"name":"@material/top-app-bar","version":"2.3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@2.3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"59805864b3693cd54e2d96c6f2981221e51f9e0e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-2.3.0.tgz","fileCount":38,"integrity":"sha512-Y62htWToLGABuxHbFYZxHrR99uVAQa7kdlix7tB7h4J5C/SIIKe9plRMh5e0mqhGf006okrAS0h8J+6KM4hh0Q==","signatures":[{"sig":"MEUCIQChohsH/pNniaXnQ1yNEtG7K9+VYKdCJh2sqDjDorl13gIgZb2Qj9qxKEZGoiGYnil2MqMaGk/3d4Dv8uUgOexc3Lw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":737957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc7ab6CRA9TVsSAnZWagAA0uoP/jYLew9xCMjdnjNIQtuY\nnLRFQiVL/xFZ0RCGr+Pax6qDHP0cBMFIZ++OK08zKLzmnxCNYP6Tct+Ff047\nCeumPvwNYpReq0S+iDmC3PbYO5Y5w+rdJzJR8TrdYJozWg8888PlV+3t1wIs\neOQKvLJrK+M2l1z4wPYfgWlV4OWhLjxbnxo7nxqdU/k+iXXNqMSSHz9WS4I0\n97AdtqL2CrTGI7PdeYIC4IVa9zVizniid6MDvd0CBjFVWYAXW5SZ5MayNeKH\nhqzwaM9cs8YjcjnjmEP/6D3U6hxlKsbHst1VFIPRDvwYkHVtZ/CYVZED+1iU\npSaYDGgiDTXCSb/Mt7+9vm+V5l423oGsZRqkawGeHFNDLAAI0VEhSyzIvngD\nam8Z8y0bOdKoUbhhc2xUMx8svv206eAQQGnnH6BrWPZsJd+TxFfgR4hmkIvn\n/Q0rszCkziwo89QFNeSdbNnrwMsPeereS5L5lPs+WTdsyHzChIyGrQZf11Gp\np9C+dGgh5JopXg+wOlmgunknNc5gRY4yn0GdzPsD8CTyoey5kDYVLGfEovCO\nJgTdgBYyzz2lY0BfkR/tjEGSLKzGYOnNvO5G5dpzvGXZvhu2+7KA+0XZgtS+\nWNa6Btc6C0ZHj33Kmqh8ZjBTuCRKjCuv8aqnZumxvz+pwKQiK8dnV8RFA3ES\nLri6\r\n=AYIs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","_npmUser":{"name":"moog16","email":"mattgoo@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"6.8.0","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.13.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^0.42.0","@material/base":"^1.0.0","@material/shape":"^1.1.1","@material/theme":"^1.1.0","@material/ripple":"^2.3.0","@material/animation":"^1.0.0","@material/elevation":"^1.1.0","@material/typography":"^2.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_2.3.0_1559078649832_0.9776880069370393","host":"s3://npm-registry-packages"}},"3.0.0-alpha.0":{"name":"@material/top-app-bar","version":"3.0.0-alpha.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@3.0.0-alpha.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"678ea4fed54a96abc9a6efcdfa992ee457e8df3e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-3.0.0-alpha.0.tgz","fileCount":39,"integrity":"sha512-yxpSoqS/JeSMIiKJyCf33PUw53eIiEYWWrby7BI1AwkporHA5qh4plFSPSVA3Ml1DuXSBnd3izJHm2VhN83L5Q==","signatures":[{"sig":"MEQCIGsWDWRfvREs3sx/YiAZmucC+/UXlqG4NVZBKjkaJlyoAiAS9SWbl4R2GWBzYGuuLyw5Vp5M0J4nLhRlI/6QHS7rmQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":737624,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAHp0CRA9TVsSAnZWagAA+bEP/0bIsr9ZCWW6xQX6LvII\n3c9r7B1MOOgprZXjpXhu1Ga5yueNr6K6k1n0dcq3xyKcFa3RK4Pvz1gyDArG\nVvxnZhm4HMHrZZA8NUaJuNUqVL9BMCWOrUfMqvtn00272KS0AFIF66clJrnE\ncYadvOlBNj64la1F990o+szLjpKuIUxhip709Wy5V/mHXNMMU1s3bF/Po+/o\nEuNonN8Yxtm4yFL2snKKquEh71Q2DR3jJIwUCIV3Fpso5a6b9YYe2sKYM2Gn\nLMFd0NKpaculwFIr4h4y//+XJWbB+LvL0/QPhsa2xN/3f9JVz4s7eWnQssL1\nOpuDdrn4SdDntukVC3KpFhx62vF7aWVHeJ7r063JCqaD8bpWei0L8FYIBwyf\n8dNpBIWjnNbPGVpBRlzYKdMWnYd69rKKpIqW1dhRLU64gbTIHtHYCfA2jRLr\nuK0Nyg9izxDPFOrh3Ky5bWo6/tkLY3TIljI2xCx0y41PNyxoWKva6CDK5zxs\nQTq3WwftGlGvq0CY6hmtES+Wqie3o8kjWbTlQsTj7q4yQ0nyPOzg+IPbISlP\nfUIxu1NpKMDu2nwiqTiIw+VkW6mEQxWMAPe2uMK4l76K2kmVWtaC1YJq1F8L\nbAG2c5RmR6Q4fpXRchiBq3PryBoc3ifkVRRUgGg9Sv5HuZ1lM4pLWskg6duS\n1nnN\r\n=6bY2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public properties:\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"094e507fcfb488303e5adec97f7f985b30e8567e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v11.9.0+x64 (darwin)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"11.9.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^0.42.0","@material/base":"^1.0.0","@material/shape":"^3.0.0-alpha.0","@material/theme":"^3.0.0-alpha.0","@material/ripple":"^3.0.0-alpha.0","@material/animation":"^1.0.0","@material/elevation":"^3.0.0-alpha.0","@material/typography":"^3.0.0-alpha.0","@material/icon-button":"^3.0.0-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_3.0.0-alpha.0_1560312435850_0.717288943353205","host":"s3://npm-registry-packages"}},"3.0.0-alpha.1":{"name":"@material/top-app-bar","version":"3.0.0-alpha.1","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@3.0.0-alpha.1","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ca8385b5734183d66ecd21f20e969e4420475402","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-3.0.0-alpha.1.tgz","fileCount":39,"integrity":"sha512-oRYkpZ5GdU/x6eIe80hlnKhsmiNt/CfP+Sa/RItVGdH9DAw/kzJubvr45g1POkpfnoREsug4RY7df6NX6eCNog==","signatures":[{"sig":"MEYCIQCMhzBGhO+ID9AdTqmjr1UnakxI8fm2FE6wYKllLq9GhAIhAMzed67Z6r1BX4WMrAHdNXIJI+VmQwXbcrwfE5WL+FaZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":712743,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAUxKCRA9TVsSAnZWagAAA9sP/2PrnH2RNcR8OElaEARW\ns515i2vKmx9+og0IT51q2ovh4MshEhTd8zjybcFCbWyl8Sg4pdDROKcAprdQ\nqpWw+PJkdlRbXXKpjR611yiXAG1snIzdyuJL1co1lK+CKH8h9o5lqDokQShN\nHKNhVG4oSqLWhmR1wNML/RObNI4H/o9dtUtUZQDkNn6mc3YOU6L5tqNMQ/dy\nrDgroOj/dp291yHyo/ODOsfkBLdnmn6M3vH6Zte31eF0bTbYRsyD4NFkV453\nmLw4VgYExLchVpk4P9Ymt3I48RKAOxn527eVn+CyqqQoTO7RuXmtBmQA+jpe\nBMoGJ35ZF8r7qmh1bk+b1JPKJiHJ8Idiz5fI85lh09KZ9vnUoOS8Z2NSZQ7t\nvORiwsMnOdnUrQRe9fpXVdayCUn0iJcxixSo2XPN5AyQq8hFilPdw4sVksBE\nKRmGt76G+aG+8EujPsOs/ZcLSE1K/RhmvWXGfPm/FVY8qNL2opQodVapwPLs\n3B0loW7uZpmB+lxKVmlZS3XkDlM1pQh0t5UEW5XatJW+1DCk/nT4JlgJq2Nt\nLuNLDdEJC7pMZTLyde6zI95aiWiG3oUw7JXjoFH3OXxtPQcdm67RGUTPBOD9\nuNp8zx21PKbJuZ4AawOSsjAe4QAySh5W2UR+rpmEXs7hdQ8WpDzP+vvQPllf\np8IN\r\n=AO7b\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public properties:\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dae97b98c21bb93075a9688cf1f9076a4fe5a85d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v11.9.0+x64 (darwin)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"11.9.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^0.42.0","@material/base":"^1.0.0","@material/shape":"^3.0.0-alpha.1","@material/theme":"^3.0.0-alpha.1","@material/ripple":"^3.0.0-alpha.1","@material/animation":"^1.0.0","@material/elevation":"^3.0.0-alpha.1","@material/typography":"^3.0.0-alpha.1","@material/icon-button":"^3.0.0-alpha.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_3.0.0-alpha.1_1560366153512_0.49689105333289096","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@material/top-app-bar","version":"3.0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@3.0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f1b87afb2553abfc2fe1176115ce8873b8518808","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-3.0.0.tgz","fileCount":40,"integrity":"sha512-m0VQCrpwsCIJ53b+shZNr7jDYZEKYHsqZW//Ry1dQKF8paghMshHJ95GcmlylZ/UOV/jLDWDgJjLye2qOHJS6Q==","signatures":[{"sig":"MEYCIQCDBxDdcH1mf8WRFX0AzyvpYIQvr36r81JRraWjLKA8ZQIhALHS4eFY3u9yWFBeWLyt1EdmHrHbplDCYmf7EEpLbk7z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":720569,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdEp/9CRA9TVsSAnZWagAAUAAP/1dNY15/+pi/miI3g463\nkAMZVp3Hk6o7e75VkjjrfpS0umOa3/B8Njf74HzQRskF4Tx3QY1YOekhbaBh\npYXp6p5fegqva6Cz8S3TSta4JSUa1+PX9YDxOrwpTjETOc5O1OzGl2NR/y1E\nHrxY62V/aryySyX6W5DVqJXbhaJUaWJ9DJkt6vVA92zrKG5oMngPv2ZNGPhd\nsLPf1u7hlCbHU4aG68s7IUvNrqQwFR9Q3YEr/GuNLqE/r6jj6mM0HOjSuKHN\nxot1u/jIioVR7/Ohj0Fr8YHZCBX+FH1iCOwW3WNDGl4R4UoU0hXabTO1u+I0\nYfz5CsQTmLVPhcLNEi3/fapRduodQb75y61jXyw3pi7ilEoriir6MJTwAtuR\nl7MTb868qA+PtTmyqyW7eAnlM4YPvY6q4cGG9HweBRFEdbJsDuzRe2FnW9Dr\n3eBQYcd45J+LetvD23QWsSnL6xFO2rZxReTtpoCGcTiaFjkUOtr/pOjwQOuO\n5EPySIssc6R2zv9g0XR4fjPWFDynTJWzG1+AtNR3YDY8dZPGU89GPGw3PXZN\nJh1yrADzikj0c88OUd1QBzgvGGGOzR/zxcSzjVSynRPDzIxtHAmQOUmbQWAg\n9mYevobVtpf8w985DRRoTJm7jqm3uIb8vtC7NtlPn87m4T2YwagOchiGNOVh\nmzBt\r\n=Ekr5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","gitHead":"747f6ed544e3a3bb3fde71ceaa51359f2212bfb9","_npmUser":{"name":"moog16","email":"mattgoo@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.13.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.13.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^3.0.0","@material/base":"^3.0.0","@material/shape":"^3.0.0","@material/theme":"^3.0.0","@material/ripple":"^3.0.0","@material/animation":"^3.0.0","@material/elevation":"^3.0.0","@material/typography":"^3.0.0","@material/icon-button":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_3.0.0_1561501692614_0.3831591137310191","host":"s3://npm-registry-packages"}},"3.1.0-alpha.0":{"name":"@material/top-app-bar","version":"3.1.0-alpha.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@3.1.0-alpha.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"dffc50f92ccd32ba8f3bc2ec715d68c67e21bea5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-3.1.0-alpha.0.tgz","fileCount":39,"integrity":"sha512-cLZ4rSeiVI9j44Jwy15RBuNaaVaVyhyph7GRJJ2PrtQAfmbwkRQBsALn+g24jYh3qJi936W5tazICBxJNoItqQ==","signatures":[{"sig":"MEUCIDDgkHRBKLISBu/7UA6++eDcR3a9UVo2+peU2u9QxbsTAiEA9pVhi3QyXx3MuuS6pXtfqIm7t8mdwGOKnizR0hFNMpc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":433205,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLdE8CRA9TVsSAnZWagAA9b8QAI01R34jaGp6rauRH4Au\njpwoZOh4mT9rjs/mgLMDcHQrV5j0TRnTOgnNurz0c+aT6nLL7J1+oX0wGrDW\nzS+GDM2i9AvDlylKL1zmzRAm6OM4VvPHlOrlzDijgqwNzeekienrp+aMHn06\nzweN2kkhkQ1oXdcUy8EtPB1r5uGdo7hc2VfcWbo4sHu/L4z3YET933qNVe0u\n91SWyc9nBXOzRurFDVlvyyN6A6EYwLC4Jo2ISlzzZgbE+msRfOB8oKAQIcjG\nMOKifzIBaSpXk89laK4vAqf5hgr2ktHy7yAbJJw7QrzdA/fBqxfXcYXgk/FP\nIJvfapJRulzT/3kgNM/YWs3Q7HyMxmadd/+xyK2oGPbhiHGydW9pFDK//hUU\njDiym41Wg+wJTEsjwMzwW/365QHCu/1Ze8ersKy8/cDTdFFWsiQsaJ+KH+/7\nCkTKM+hIse4iIOsPudTE1hMwjveCY8QhrzkUxzVDvY2239kHUen23WgASAg3\n7TIZRXVtw+n8c106kylshqSjk0h6Ag4x90PqWuC04lY32blXwdKWPuOoGk7Z\ncAbYOeNQcZdNdwSz/YBlBnJNyZ4Z56lmbOpxmE68O7u8WnkK4hGJLVMHWymR\n0m+5B8KZ2GeGbjYg5AhtxfFo14OmYU8gJ4AcND+n/CgqxlD5bYTfl1OJ1dHk\nzYZh\r\n=gAKa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public properties:\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"42b485550d87a4c3328a07847b4070d15f09af8f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"8.16.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^3.0.0","@material/base":"^3.0.0","@material/shape":"^3.0.0","@material/theme":"^3.1.0-alpha.0","@material/ripple":"^3.1.0-alpha.0","@material/animation":"^3.0.0","@material/elevation":"^3.1.0-alpha.0","@material/typography":"^3.0.0","@material/icon-button":"^3.1.0-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_3.1.0-alpha.0_1563283771513_0.2590462057223055","host":"s3://npm-registry-packages"}},"3.1.0":{"name":"@material/top-app-bar","version":"3.1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@3.1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1610dac4d85263195ccca55d8a362453cf9ceca2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-3.1.0.tgz","fileCount":39,"integrity":"sha512-wqxcLFmIOflvQN/g3VZacPrWOy2bCtxXYKdIAIfmfnLs8+ahO5DYzI+Y57eumIVTQUVc8PXAMMiUoWiWQ1/dRQ==","signatures":[{"sig":"MEQCIDzDa9jB2/55/NLXRcc+7dhQKllszEkFhlR/J5R5tpTsAiBxkz+8ooB3t27Jw7bsZ085IPBrTZ40ucBwn0VZmAClgA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":433389,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdNjKSCRA9TVsSAnZWagAAFEsP/is6FNNlunzx78PCSugO\ndJN5Mq8Q9zkdHzieC15f4z1kfsp7XhAq5pjrXQMNrdJOdDWSxApcrDDGaAyJ\nLyhfGuVTfs98ceiNwjG8p46ei96O+wAOkNKzmOrSC6X5uUz0EWrYl5BZ6+zU\n9f5VSY/9ELwQtWVOanAhfWx4KJkaxdK++B1iWd+9T2P4CWXG66Oa5dJmpP5e\nPjcXE8Ztt7AI1+3b28eUsRAf39ETGI2oeaq62rWnJ5s/guhTJaDE2NNbsvFA\nJPsAAZQrGITdambZN0j2J4W2ZHVx8aqA8oYCe0+TT92DthAfcl9biBU42lbs\ngM1YSza/v7+ifAAdGhjC007WVY9bt+0Und5PT/FtBAhQNSCGyxifEhmIHsey\nSlGtZ4iIp5rYu0Ngov/7vBl1WIRGmCed3Wy6mNUHRdp2/pOB6hBUcKdiA/zD\nm2dSICSBrHFDahzvnC+UJvujDVSJsYmQbmHgd5e90+liKVxsAR6J6lvTBOZU\n7pZlqbshYTyCTc37T7SWTAxANgnkEDvEKZS4KGzFojt9KiGpp2QLp3AxWsw5\n4lhat83ZXk9VOS0L7W+mIeRJNrUtL4BL7gyOzPPp5GLVMKP5wvT1wipyhmZ8\npeq5s63oInzIyHKKrQwz/f8hY65EGAwlrI5jg5wfQ7XqFWcLqjd+xe2psITP\nIfme\r\n=Qsrn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","gitHead":"6b7e616da1a1ca53df2253f6207642739e13b5dc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"8.16.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^3.1.0","@material/base":"^3.1.0","@material/shape":"^3.1.0","@material/theme":"^3.1.0","@material/ripple":"^3.1.0","@material/animation":"^3.1.0","@material/elevation":"^3.1.0","@material/typography":"^3.1.0","@material/icon-button":"^3.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_3.1.0_1563832977268_0.4535296142350329","host":"s3://npm-registry-packages"}},"4.0.0-alpha.0":{"name":"@material/top-app-bar","version":"4.0.0-alpha.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-alpha.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"lynnjepsen+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"20bf8b863b941305e37d3312071291d58d5c3694","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-alpha.0.tgz","fileCount":39,"integrity":"sha512-S9s7hylxetAf09PpM0V9FQI/W7bP6urR5bhBkNPR3q5w7qmqNs8jBtILDg2Ex962rVuY4QhHRAlbiNv0F0lS0w==","signatures":[{"sig":"MEYCIQD6+MM+R8mZer+pjRUriq0OctB78TC3ZdQ447uLYX4gJwIhAM9I4crpT9jKcBpBV8kO4IQaLTtmfuChXDY05wczPoGW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":438152,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSz4kCRA9TVsSAnZWagAAUNcP/1ASCh+3HBjbGs0gd/TP\n4WBdl9w1Y1gj3h1LDWkGE/LYoJcYFQRZLEr/7uKTRkE0u0GCp1Z5bUcCwnbJ\nFjRvaTlYvLPua9lnaPDoaL5NPRomVCFd+R20IyVhl8r7E47cpsVENmdKkB4v\nqCBnOYeAmtBE+OIjSq+P5tvtTR27rgky6yZVMmHDPKylOyb7q85BqMZDD/aW\nl+Ym2evG5+fpj6WKAmJ3FqtOsL9/8+h19CjXAIp0YO/b4I70fDvNwWzv/pcl\nId6ccrXNbzqhnhqtSyrOFmsBDCDxQP3J1DHPQ2v8nXRTUTOeHQrMek3CXCTH\nJYcQv1gdPa4q35v+H+2TUsAt675xc2pW9NNE1d0nWl4Tv+WQocGum3o+g5DN\nMUZS+8qm4KVRqmBQ3QBJppoBaJ6/d3t0Izj1Lge8/+/33OHxF6jbc5w7H/ep\nTwOvA0wbybtKKDrmGWS+MEG1pnw07GkXfv+C/REXb5ub+2y83U+bVIeowTGe\nYNdMQ0jfcjbq8os7Rl49WMN53A+A/F7MotYkW2OIthgrph04C1Pn2L+CCooA\npgw3Vhz+kXQ3OOKr1L7GuAE5NFi1vYw3fX3aAkJLr1kua9T1rTfa3bH6zONt\nWkMvsk+oeHX+o05VdM8FjR2QmVQYAJQziU9Yx60s0iLdWduCgpJPMHbKB4zN\nj3I3\r\n=S2wK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public properties:\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"184b37f65b79a260f2835bd44e422dab2402d937","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"8.16.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^4.0.0-alpha.0","@material/base":"^4.0.0-alpha.0","@material/shape":"^4.0.0-alpha.0","@material/theme":"^4.0.0-alpha.0","@material/ripple":"^4.0.0-alpha.0","@material/animation":"^4.0.0-alpha.0","@material/elevation":"^4.0.0-alpha.0","@material/typography":"^4.0.0-alpha.0","@material/icon-button":"^4.0.0-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-alpha.0_1565212196066_0.6619546709073838","host":"s3://npm-registry-packages"}},"4.0.0-canary.0":{"name":"@material/top-app-bar","version":"4.0.0-canary.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1ba76fafe773871b8b6fbbe94175b853604396b0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.0.tgz","fileCount":39,"integrity":"sha512-EWyJvTUmzDhiVxxUTp3ECNsgXk+KPj7PLC0ghe52zO/GTzZyVwtEGHMFAPzZIwa1IghRlqplR20gqgw0FvFyiA==","signatures":[{"sig":"MEUCIDDgX9HguM0dOnmuSYRfszM4pZrcZYkVQTqB49fgj44PAiEA2VRAnSWAogJ6VsL5ARPhWFT1deIyRGyo43uP6A3Anew=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447127,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdcJEzCRA9TVsSAnZWagAA8uwP+wWdULtJJShu4rcF8BWq\nbQO3D293HXpfoJT9FUZIB12zW79DSJrAJNh2KhncmnTNh5oNWjItdPrzFcov\n8wEZLmMEpkAG7rW+TPgU6qNUkH4zRyXMKGvfMQvsM+JY3oEDCJO4pENEmgEv\n2XILOSDeQ7nqRRT5TD7nvedPCMDsAhoyRYfgIMqlbNzZBS/8z8tYQD9eCwCo\nLvfnWsTYnKWEWTMEM+0eLwqDvW8jV+E6eKYvcvZF6ayFz6IwFzFpuKJfhOBA\n3PWhDXYnu61Gvjlelb135F6ID2l85/cSteSz9E9CVQpsFx9ojcZnb5AJGHlY\na14EhX5Vz7s0DkiA8/aAk8ovV0WYa324k8piXypSm4qw2gum44h671Rp+sgH\nV0jvfLWBfyFcwBba8pNGpyrz0qPIkjj7oLfYO3y0sijtQzV5U2sKSjAEfe7+\naQ3uhcQmInS6jsTBT+r9T1bSiHMWSLxaGh3oPsD21ro1rjngX8CIX4T8y8Mj\nS4JDREg0OD/jlrh6beJ3X8LNlskARDfv2TtkVppxGmHj+H5A0DMhIiQMeoVl\nEZLpWzv024jmo+IKBHL9ZhzfP74JT+TvtNR8adNwy1LN7r/HCo8USSXO5/NU\nfeEPR3bwyIEB8+jlouqDQ2FaU1XVjuHNq8NzSOwkXM2+jqWq5gMCAksGO2lQ\n2XPs\r\n=o6bU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a9e69493144f4246efe28a958126afc2fedebd60","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"8.16.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^4.0.0-canary.0","@material/base":"^4.0.0-canary.0","@material/shape":"^4.0.0-canary.0","@material/theme":"^4.0.0-canary.0","@material/ripple":"^4.0.0-canary.0","@material/animation":"^4.0.0-canary.0","@material/elevation":"^4.0.0-canary.0","@material/typography":"^4.0.0-canary.0","@material/icon-button":"^4.0.0-canary.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.0_1567658291124_0.39162362618722635","host":"s3://npm-registry-packages"}},"4.0.0-canary.1":{"name":"@material/top-app-bar","version":"4.0.0-canary.1","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.1","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"faefac82c833fd63f6d324da73a94e784c11e248","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.1.tgz","fileCount":39,"integrity":"sha512-D7ZXThjNHd59Mdpv6aix+nSg/tr7PHZB0m2TbJSrqYj8nz3N2Wnc8rMy/FkuDSd84ywNytBiWHbA1Q0T1K42dA==","signatures":[{"sig":"MEQCICmVpzaBLbU+jn8uRkg1gZzxp87HxVUkAEJ0zsJs7MjSAiAC3nC4swvGcgeBGehltiL0aexbHYkUDm9XS4nOwRoWNg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":448206,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddrQzCRA9TVsSAnZWagAAXvoQAIkqA7Ml7R0KfFmx8khh\n5oT3yado54a6dq0lZtfn80R0HCl5Z+zc2TgV+auFxKc0C/sBq2akSF+jfcxf\nlfZxF7XAuWBY5a1QhslHGM7i+QOPKOFh92UsK8iGAi7FQwLKRxueKyYdP/Sm\ndktrQy3qNErh6P/bhucUn2w1Xl5D/SnojeLujRA3+tRhh3kv4i3CE8GoXqT1\nKfaWEUkKQG5A973oywGEqerv0Sr7sVATtGlGSjMQqGa9WrMHp0YHldor/lnj\nVh/a8wbpVMjLZZ84Ds20Z9zzLHCFREUFDUltAFVoru7RqU3lLsKQIw6JVS5Q\nDJpJhdHQOOXB/wvJLiQA3yeAOgDdh5Bc2MY4ML2Na6SCalql77HQxFbbrK/k\n4YLlITTB+10qk8sG8I3BoGc7Xb1kWodD37N+lrt0Z5yUscyBISFSt3HWiwNV\nOlwrFPV3UoEwpfFrl3ldr1jSB2mtU9IwMOOMW9aG0J1CqhwSec0rOwhRR9qC\n1sc6ArfknIdklSAVkncNtjGaDVVPte6CqnPgSwT+/Dd75IwEp58JLY/uBrR3\nATzZIciM3LkhzgCraz9VYTMD/NMkgvCkVkunhodC4fgYKVg0Y9cWNyH7/The\n9hCJcXIZ29OKhDofFDm2AYPGk/uyH1tGWDtxKVQb3WdPG3Xe8XpN2zX5zSUi\nZslo\r\n=NRLJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"edc72a4d7d6a61d61620fd05a80e2491e518bccf","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"8.16.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^4.0.0-canary.1","@material/base":"^4.0.0-canary.1","@material/shape":"^4.0.0-canary.1","@material/theme":"^4.0.0-canary.1","@material/ripple":"^4.0.0-canary.1","@material/animation":"^4.0.0-canary.1","@material/elevation":"^4.0.0-canary.1","@material/typography":"^4.0.0-canary.1","@material/icon-button":"^4.0.0-canary.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.1_1568060466849_0.06077650110263488","host":"s3://npm-registry-packages"}},"3.2.0":{"name":"@material/top-app-bar","version":"3.2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@3.2.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2bc50bd30d782bacf29fe9a65b5644aca1fd2cf0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-3.2.0.tgz","fileCount":39,"integrity":"sha512-p3PuCIbg0uDveS30D1R8/fcwqeTMXe4oRFnB6Z5Wlej0NySi6038i+TPsHtgYLCR3QpVThnkVch37zyXcNpQoQ==","signatures":[{"sig":"MEQCIFZ13vUnqg5OcJ2ohaEE+9UAtQq33ped2fo5GM8eYV84AiA0qm2AAPwc3q15IIsC97QRLmo3twcmBDLRge0biQ/gTw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":443238,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJder5vCRA9TVsSAnZWagAA91UQAJML75ap9iozpVEb/OPJ\nNfKo2uOCcxO4T8nTbdnqO5QTtONhbQnhRgr7UhLNqxG8KeDUcgIsctAKKTEW\n6B+HcZhAR55TUtyNJAZgORJ/CudNHiJDwlMLRh8EiWw+2dLni3G2OxE2833P\nSFQGM9Sc2AaxMz7AXcXNmJcUFhm3XSarXRG/rDqlGkSHZ0JYyn7HDyc5gWpd\ndmO564yWKi6zzH43HA09Ij85chGlyGRj+Oe4pE4gLGx/o1DIkYu/LnctRDJ5\nqxHxqYU4usuUzhzkmS/ORRbEHTrg7LHZ9R+hTEeTCJeMV/luwP94uaUCpxjd\neXV8q0OIswTSL5x7NsWxg7FsjKDN+DRyGaPUYpALLnova22/+BvuKndUrdjK\nB97HMBDFtYY6cz/gdtZr/MdBY52r7NSjUJ3wEksKYgNncaaAM1dqkZgmeVFl\nlGlPehLQh5QkiMPDpugf3eaAg9TzAZpzY9+De+SRLgQUITl2mZcGkAgX75Yf\nUyoTbgPb1Z1CnYZ3UgNd64hmStZvzIKeqNcer6C5OCnUjxqwtfuSfOUAbY4n\nmFZe5B8aXnG1z2MXGHAPkyCaGN6Fl/9tGeAg/XuJDBFm3SUlEVpOEmfHs7Rc\nQ53r8SwZ+UYJ3gpzWsodH5wkgV7zDfXjpp9a3o7LmPGHLb/hTaGGi7A+pCiI\nKAJV\r\n=4+FK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","gitHead":"abf67305fa705591abea3972006a18ab5fac7f63","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"8.16.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^3.2.0","@material/base":"^3.1.0","@material/shape":"^3.1.0","@material/theme":"^3.1.0","@material/ripple":"^3.2.0","@material/animation":"^3.1.0","@material/elevation":"^3.1.0","@material/typography":"^3.1.0","@material/icon-button":"^3.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_3.2.0_1568325231082_0.14956986342519119","host":"s3://npm-registry-packages"}},"4.0.0-canary.79d881baf.0":{"name":"@material/top-app-bar","version":"4.0.0-canary.79d881baf.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.79d881baf.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7ff12eb43d512f2cb2f0c3c8223bd4b7a986858d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.79d881baf.0.tgz","fileCount":39,"integrity":"sha512-OeoJvGcri4YbKlrCsIz8lme5rEWfLw7PxJm4MIZ27vJ7qxH2JD/fFgywl0+ZE1KSXCDrIrePEvbHhBTztz2m4A==","signatures":[{"sig":"MEQCIGMXb5cIE0x+lhKtRXlawlkFdPXADjnYNVsQvjV1w9AYAiAP8Tw/h8ZJ5+OzcUGgyxWVK0zkzFAIUVVY9dHy0wW0Uw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":450207,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdev1CCRA9TVsSAnZWagAAk5wP/jy8ShH33IlfHOjksABd\nYZuOaKFHDT4Iq4G07ugwPEaXqwvMGUmtCMmfWj6luPBdCNYniC5DHzy4JosD\nyCBEA8ybYT8JWS9ng/6OmOjoDlM6EE9S5ZxtEmfC2zOurHanZTbcLBQ2VTDU\nsWmXYqdp8QvBIvQK6Yhr89hfLBSfYlS1mJRhwpkKNDF+0jz6QIvaJ9jnJeuV\nLlxCQ3exF8BRzub+BCaERHnbD7u8HpygsI/rZo87XNn8X/uj6CnbioHJXtmZ\n7wJiKVvCcmUzgmxgvQ83tEj7rXdPFAkPBFyyncF3GHhGANOJBOYwYky3U1cg\noltQNsfrhM8I9LzQqmbrSyAk0ICBm/sabuQYekjw9AEOfoXN4fhTxNsYZkUO\nBreBZrRkWyqB0kd9vg8oeF8/OaIDzhGBzu4NVcqzAEMVDCo4lFYd5LA12h7L\nO0Ooy+phad/28oFXKhkfAqGr6vkcte1RpR0mjZlvGX3fcg2ZZNuk2O1b0UtL\nTJoimLXNkSntSt+sQwXcbwiV/eSJ5/nqa1Qj6jBzWm9jFY+H2AY4WYi7b1Un\nrf+65ggYRNh7G0RUW3mwSgMr3riF2rT7/OIxjadPzejnSDx+Fgv9ZwAes8pS\nNdxAAwehTynti/0Fyigk1x/HboiOj3lCdpZul9wZHsNB1saDoEe+gQqd3eii\nRkOU\r\n=Csby\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"756806a2389389441b5b3c130de02948130d96b9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v12.10.0+x64 (darwin)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"12.10.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^4.0.0-canary.79d881baf.0","@material/base":"^4.0.0-canary.79d881baf.0","@material/shape":"^4.0.0-canary.79d881baf.0","@material/theme":"^4.0.0-canary.79d881baf.0","@material/ripple":"^4.0.0-canary.79d881baf.0","@material/animation":"^4.0.0-canary.79d881baf.0","@material/elevation":"^4.0.0-canary.79d881baf.0","@material/typography":"^4.0.0-canary.79d881baf.0","@material/icon-button":"^4.0.0-canary.79d881baf.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.79d881baf.0_1568341313707_0.9523543913284009","host":"s3://npm-registry-packages"}},"4.0.0-canary.e851d4f40.0":{"name":"@material/top-app-bar","version":"4.0.0-canary.e851d4f40.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.e851d4f40.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ee10c0ae76cd9af32bde80372aaf7c88d78f5f85","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.e851d4f40.0.tgz","fileCount":39,"integrity":"sha512-hDKOnZ3LBy2nFF3mbh3F2TBRRhZCMI/UiyRAs0GPs/mrcVgU7awGisiGyGuAaffHMcApmQ22S7ddkL0guweNMQ==","signatures":[{"sig":"MEUCIE0feRHNXTehs+5sVQcDpcReHb/alRBtL4x2c7VVl9jgAiEAm7LUvoiN3dyViKGuPMoEOqslzkptamTeO7/8Oei3u2Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":451943,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdexYSCRA9TVsSAnZWagAA5jIP/RqaLxO3uYChVCwsjcZT\nAOqu5nr45el9G70dDUQ/4Uo+ggsJgejJFyjEaw8AVw96fSEzNXKOTLXaan0f\n3YdcRoW4H4PX8Hzf6NFJj28APZh6Q/0VhN5rriRpU5nXedXcJbYUGWJzAfQq\nfrduUCpDlXy0Z8ZfiZjUhlgaaf7kS552Up8ADy2cfU9Ncml6LvmvU3Wd5fcG\n8AmU/jqeCmMbBQd7AXwCXcAK6FxB8UPOs8sepbhzE/wzsskdfjN4U+yrss6N\nq+djSvYDe1RfgzJxD7jglIFfxqFWp5U2cZrJAMV88OvwrhaNgSwMistjoWyq\nh+Hz8LxECZe3ndyc4rjqvnrEpun8vOsYXdKZdR6ELW6VC3cCYAkiTGM3cbkr\nRKBgEiou/oCQYW69RZ6AC4QTDxQ4WVA+AwONdQGYu0iQPTv6Pprso6l6x6aF\neL7k9h2RLGN5VKNFmTjqrOnIM0D9nZgppX+hrJZg5/UoInbC3anG3a/vnX6w\nx+GCsEnoeP0ArChyRX3HODFSp+xh5qX2GAYFiHCo1HlZ8DbYW9DRkC6LDaL3\ni66Oo/Id2LYHIm5ybF6ZDKT+bF9Ra/aQg0zH6sxXiUTOSqf5jkYULhJeV2Oz\ng/4R2+GjE+YrOKlkTcF3+E+ym/suuwmKyrIQ0HPfdh/Kbh922tpJ6v5Z2RZA\n8QS2\r\n=rTNq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"353401bd143fdc2b4a85abf330176228e21dfe13","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v12.10.0+x64 (darwin)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"12.10.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^4.0.0-canary.e851d4f40.0","@material/base":"^4.0.0-canary.e851d4f40.0","@material/shape":"^4.0.0-canary.e851d4f40.0","@material/theme":"^4.0.0-canary.e851d4f40.0","@material/ripple":"^4.0.0-canary.e851d4f40.0","@material/animation":"^4.0.0-canary.e851d4f40.0","@material/elevation":"^4.0.0-canary.e851d4f40.0","@material/typography":"^4.0.0-canary.e851d4f40.0","@material/icon-button":"^4.0.0-canary.e851d4f40.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.e851d4f40.0_1568347666278_0.0346653554789742","host":"s3://npm-registry-packages"}},"4.0.0-canary.905884690.0":{"name":"@material/top-app-bar","version":"4.0.0-canary.905884690.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.905884690.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b51f60665642bc0cf6791cede92c962f70fb278e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.905884690.0.tgz","fileCount":39,"integrity":"sha512-AnHaU91IqqMllyIDEcI2QVAOH/nQUCzQbTa2qMHXuiovaBQFEKzLYh6sUe6YlC+LTD8U0/mH/O7dKcczTMqOyg==","signatures":[{"sig":"MEUCIHoqAbj5vXX1pTiIX07AauKrEeN1QnFEGdbuqNdV5oX/AiEAtrHQ056pQ8CQkit611XNXeoHmDzwFNU6CNE9MGCJNd4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":452160,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdgB9OCRA9TVsSAnZWagAAdDUP/3Wbctk0Yuk9kBu09cNF\n6SaNCYNoM/DGKIrxu5bdO3aZ59iCHL6p4lgP/oCQoGM5YruJJnu+i4CwcREx\n7Z6XTNL/u2nweEusRNAcWV2BSN4UK3g9uoBROJQCkJgqu3/OLT2s4C/V249q\nCAPDaA6h+VmZCWbkgXcCzM9SeJ4LvbL9LXmPDzgntIZYGew8r3i0Wt0MiXZx\nlOjTbVmQsbB1rrOTqVIt14z8Vg+kLfNp1rPwn4E0beqwinSvGp1fuYe0NVkK\nnTxgPXK/ypL/DNGYxTwItWmdGOwjXqXrG0/HzoJ6fyFkJnEE2E9DSTEVT8dC\nGshA3hGdUCilK0SdjcF6fRA1SZ24+e7kNyU2w4E9W3rh9Wc9hTGTnnIYrRJr\nm5OE8jM6JGxT18a91eo+HftX855YIrzyZ4hSXzoP6ntgVxrTqeeh6li1So/t\nlcvA32f9Eyosk1GR8LZ121tHfpOs2vn1oIHHy49MlY+J2q+3fUWW2T4R8BQx\n3IyeqQZxjAkTFQfxjGtgU/7Qkd4pcr/4NO8/aWe8Alh12067LF9DEVPu09Sb\nP7ckXUNLeamhiK9jG1KBrSjxmUWoB9OtA71kgbdrchqIlUAy65J2JFc/cR0L\nqtawicyIwErCOP+sugolygPEGIjNbyaJO7vt7eaevZSCAOEhwJLozrlRJrDb\ndUpG\r\n=64R4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"df7fbf65943b1227b1bf145a2774abe7710b1e30","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.16.3+x64 (darwin)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.16.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"^4.0.0-canary.905884690.0","@material/base":"^4.0.0-canary.905884690.0","@material/shape":"^4.0.0-canary.905884690.0","@material/theme":"^4.0.0-canary.905884690.0","@material/ripple":"^4.0.0-canary.905884690.0","@material/animation":"^4.0.0-canary.905884690.0","@material/elevation":"^4.0.0-canary.905884690.0","@material/typography":"^4.0.0-canary.905884690.0","@material/icon-button":"^4.0.0-canary.905884690.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.905884690.0_1568677710318_0.5493403781509758","host":"s3://npm-registry-packages"}},"4.0.0-canary.199534d61.0":{"name":"@material/top-app-bar","version":"4.0.0-canary.199534d61.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.199534d61.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bb650e3c19d3513743e2c84c3909ccaf9c747cd1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.199534d61.0.tgz","fileCount":39,"integrity":"sha512-9i06UKta0cgdSjflJeGsxNTk5DHv/dQVO59Il+fWkh6mYZNYWDHQgujaUYzkgmqsrwN5IGExMMgJJbE0bXVHVQ==","signatures":[{"sig":"MEYCIQDWWg7vHbGisHnZuQdRfcep5IKhTJ5+go+etVMXZXLUQQIhAPxK/50dfCgKsdwuX5StXwii01zgj4F4E6OECnojhE8j","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":452377,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdjlvMCRA9TVsSAnZWagAAS40P/1wt3MffEvofWxbR+d8O\nOXQMxP7tS2+KHIItHQ53M6+oR7NcpJw+2+5fUEyG5OLo3XvpfqndkTdc/qRO\n9QPQp+b90iT3Y40EtA/HbJR4JZuffdPt/SghR8S+Nzi+eb6Vj5LF0uXI0Gn8\nGtJsqKYK7e5OI9j17dVbPrYuYMzJdXdfEY6jL9O3f0gG/hX3XJ/YzNurskFt\nMp8aDH5YK4Pf3iMS3DH2wgDdLMQ2c6BAGa59kCw1xZyWHnegecCsiUI0+mYf\n3IE/g/bPjHrmK5PocS3vwcX4/SlQljzMUbMtF4XOV/3PGVjQOUyahVxdYpCu\nhpPj3/Cc8mO78NBB5DS93tE4m8KJ8x0DnG/qX8BDU++niEhoJRunl98Chn2s\nzeWzN0ZEnruKYK2gCFAR+htXrbfT24+b0a/Gse5PbHa7jwOlI6fGXA6iIuqz\nuypP9X2W5s7UZpQNCWLhHTacmZ7MQTYcDCJhR/j4BQlceysyCigPvG49y0ux\nwHivuRVb90AQ8UUWDdGi/7T3BHZzT/ofXXVlmCrCbnV3ycVpAkeIlyZkmk0O\n4+7JaLuRgrLu+ytPzgBFZixxceKJh2Rx0t8VI3VJaPFi7lH0tni6oTqFBamR\nyCqrA+L3DkhonGURcyuLDgL0VKChfXBtnqO6i/p4lOdx9i9jZDtIzju59LMb\n+9Ey\r\n=GTFT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c35810420b70c99e38a1438e1fd44e4bb84e21be","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.16.3+x64 (darwin)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.16.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"^4.0.0-canary.199534d61.0","@material/base":"^4.0.0-canary.199534d61.0","@material/shape":"^4.0.0-canary.199534d61.0","@material/theme":"^4.0.0-canary.199534d61.0","@material/ripple":"^4.0.0-canary.199534d61.0","@material/animation":"^4.0.0-canary.199534d61.0","@material/elevation":"^4.0.0-canary.199534d61.0","@material/typography":"^4.0.0-canary.199534d61.0","@material/icon-button":"^4.0.0-canary.199534d61.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.199534d61.0_1569610699909_0.9644405753041994","host":"s3://npm-registry-packages"}},"4.0.0-canary.22d7ad2fb.0":{"name":"@material/top-app-bar","version":"4.0.0-canary.22d7ad2fb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.22d7ad2fb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"53fe5e5785d93ea0553f3867ed1821f470841fb2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.22d7ad2fb.0.tgz","fileCount":39,"integrity":"sha512-OBwCJjltl/DsdIhZrtP38C2x7FpmhsfE4bDaCuTb2LWHsSFahLs7WEc6QWGVPUkSqqY8OZJOVqe7CQTIRUcKtg==","signatures":[{"sig":"MEUCIDuzlMh8UebkkxxLfNnbJUi/MweeE6dcVIhs6sU/6EpMAiEAp9Y7aue/NcNpkOpUeFWnz6Qtn84xsjCswUP49yRJqWU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":453340,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdphafCRA9TVsSAnZWagAA4RQP/i2NuL7hAVGypQfejdEi\nUBG5a169ZPpzsfYcWXgZAXV3n9EBSIzFE6XZ+4+jcK/v5xNLsOHUzX5D1eDq\nyId174N3sAjy4cUISbnHhA0uPmw5hXqDfhxkXloCwr+o0YwIe2YTYNdGD+vm\nCbpH+jdnOvZnZrb29JDYpQ9DfbiQGlaJ+IsdO8aeThnK1C8shDvwTw8F38Nx\nIBWK4B97cjN/HBu60SPd4Ma9cHTJ2E1BtG1RVc7yWkmvMSUxwAUQxZC7ersF\nOK7jpUOH2+EAxqDYYQ8JW8TrCmHsKSU3X9frbs9x+EH6nAKFOubRPltHFuc8\nJ5tgmmjPvdnA/pj1ZXs4NmHLMUFk7JX9ydQYANFakNe8j2WgJr0uHZBKEWyg\n+Zqvm0b5nu5AlCLztzirHRenaPMahg6v6c69tIUaKAR2wWeOkRheKMw5u9jr\nRPkn23FFq+mo3M0axYdqWEZg/nCNVEp5SCOiX67NyFUdyKAsaRcGcSB+0tAL\nKJG60eAPrL0Hn7Fa1chvN3gdc0uvxju2GqcrOhX8MziCt5kmcn+ToSvudyH4\nypKyL0QzuW4+vWwVyXSM91WGneHLdR1YZhQgaCUM4nYfgkNQvkdOj+Fv5Cl1\nAynTV8U0JEyOl8TYuF9CCUMAofqcObt+QWVtYTtaW7QYmtECY/cCif8AUqbL\nAmvf\r\n=2diJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bdc05bd56f8cbc11face1f0f2787fdb17f450fe3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.16.3+x64 (darwin)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.16.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"^4.0.0-canary.22d7ad2fb.0","@material/base":"^4.0.0-canary.22d7ad2fb.0","@material/shape":"^4.0.0-canary.22d7ad2fb.0","@material/theme":"^4.0.0-canary.22d7ad2fb.0","@material/ripple":"^4.0.0-canary.22d7ad2fb.0","@material/animation":"^4.0.0-canary.22d7ad2fb.0","@material/elevation":"^4.0.0-canary.22d7ad2fb.0","@material/typography":"^4.0.0-canary.22d7ad2fb.0","@material/icon-button":"^4.0.0-canary.22d7ad2fb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.22d7ad2fb.0_1571165854538_0.489290978238238","host":"s3://npm-registry-packages"}},"4.0.0-canary.735147131.0":{"name":"@material/top-app-bar","version":"4.0.0-canary.735147131.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.735147131.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d31d0f29c129a34417f3d77cc947f01069f296d9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.735147131.0.tgz","fileCount":39,"integrity":"sha512-o3UimmHeL6gtxcH1AT7PoOlP9OuZOriAcr0rar3gh6tt6PTTkSJMKUfi4hK7W7cx64J6CrX1SldUzYkb+lNNcg==","signatures":[{"sig":"MEYCIQCvNUKPZLCLkAJDMeeC+FToXYC858ewvTPddKvtmPtTdwIhAM2y1y5z6sC/9ZR6QZXMP9db+6sIEvv6yVkhi+XU022F","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":455573,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpnE0CRA9TVsSAnZWagAAPFIQAJ292KvCxO4YO75OXCq+\nFCVN+Hy5XCre4bdjHd8yD/B/zOOIMxKIto1/WJkhdcbZK3onwLXBKDUuEzil\nvfdxfwh4pflRHaevqhgqbtDEpd4E5SwRn5MWmNt1L4R+A2RBNpuy646HZNtg\nQOxt+/nPtLTZoGJG6/wKcbdrWdFQh2myAK0gs1j3EjNkyY4why0bnm4tGFUP\nD6DXM/3ouEnJZOAnCFaoSaqrcly4WhRqY5Ino0s/Lv1Zn2KGKIGA+E/2aCNG\nkr1EDoQD2B6FnAPZMj7z7rblhmL6x3RZUaBsZWJg7Btbt4tfmELy/AbQbGqa\noiKskDobd2X+QOzUP/6qmqEFj2HI8owjneLcSHJmeOTY4UQDOAV4HJJNVmIy\nCLQAnYoW0aFj0CaovXC0iKdp41gQj5UBFLSQj+24m4W8gGLv6xiJZmkvJH5R\nW8fLmcN0L195w0yJsblF9idpF+OCA8mXyUQTuxoOeIFnGo+FMbFNw9N70yMD\nZfPWuoicRpHBUwo1/a50UzBKrdQ6T1I4scr1ufop64PRZ9QreqpJeFdyaG0i\nmptaPLFt+6sa+cRED+/njQM5JMy2/FevR4ydR5tPpetu0zC+CSdqh9OZx5p+\n2QCK7h8eybgPp1aEPO5FshUd56CYU10GU7HbtxA3SNn9DeBrrcslKq7smmUT\n3V0B\r\n=7/m+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d7bebbe119e39bd973d398066f5601862aface5d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.16.3+x64 (darwin)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.16.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"4.0.0-canary.735147131.0","@material/base":"4.0.0-canary.735147131.0","@material/shape":"4.0.0-canary.735147131.0","@material/theme":"4.0.0-canary.735147131.0","@material/ripple":"4.0.0-canary.735147131.0","@material/animation":"4.0.0-canary.735147131.0","@material/elevation":"4.0.0-canary.735147131.0","@material/typography":"4.0.0-canary.735147131.0","@material/icon-button":"4.0.0-canary.735147131.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.735147131.0_1571189043733_0.6961858053956145","host":"s3://npm-registry-packages"}},"4.0.0-canary.062ade5c0.0":{"name":"@material/top-app-bar","version":"4.0.0-canary.062ade5c0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.062ade5c0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"04f8b6a68aff4d0354a29ff956c15f8cc57b6587","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.062ade5c0.0.tgz","fileCount":39,"integrity":"sha512-Wziuj37CAc8UbEE2JrpJfe/GfjhlzZ3VZkVteOzzB8A84OG9Vk6FiVALM7j6X/fTBeWYzjJ06TgEMYqVRXaYQw==","signatures":[{"sig":"MEUCIQCkHZMUAvn/gP+ojcyd7sfyP8crLjPHgFPUhhP4Qdv1dAIgR4znhwIP0z4JUxiUkijMjVHS8ZEcPPAHHpPljnxpKcA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":455790,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdp72FCRA9TVsSAnZWagAAWg4P/1usbxD35fjdb3IVIQXF\nqnbonpJ1R49aTZ7duevt8PmbLWVywrpO7CrR5zmRL52J3KFz7GBQlfSI+/sd\nLOqqLIntaBHd9uihBJGWqWfsaP+2rhr8mZldduaTt/3Idrpf6fglN6Dg4Uuh\nnbXbXtlRBTfTjzlYU/n7zRQosiyUzgppsdA21jmfqWtN/l11LVpEqQLF8h1Z\n9SCHtx3N6EShxw7fn6r4zjljHQqkagNV2SCwRK+Qz+1SwA5sj3MwYdCaBmr5\nvcxItzX+5xznWK9UlMQFmj9p3DQrfjl/IHwZqguOANn9OibyWhD9i0k6eS0D\nGPRORRYsblA0bIxK+pH8Uv3qfGZVlxcUA/xN4Ej6DSuhOPXZ7wAZxuoZI5d/\nXPOOzSm4BHrv8fIwkHpwQRO1Fuo0QT+tARA3AwLqUS8GAuOjhOSgNfn79F7x\ncheq0xLnQMno1WftC424mf9R//K/8EwZ54USCM1aTmi+h/rCjFPiKUoi43XM\n/twvoorV/atITrRWxSTLNnll8o20E7M0vGOeNAQktIQFykLKvP8o6qDAzH06\nlYATuHkbDZqTSCosLd2eHWiu+RCDeouVZSsfIru9sxdhURFrzRiu+67lMUje\nPtx46KfiEKbIkJs4uYpxwUampLAuR3o7FSgTDireLttegyecjaEvIFKRK3Uj\nNMvj\r\n=2Vp8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e2025b4ba4d9837dcc1063934417df1eefaf29ec","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.16.3+x64 (darwin)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.16.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"4.0.0-canary.062ade5c0.0","@material/base":"4.0.0-canary.062ade5c0.0","@material/shape":"4.0.0-canary.062ade5c0.0","@material/theme":"4.0.0-canary.062ade5c0.0","@material/ripple":"4.0.0-canary.062ade5c0.0","@material/animation":"4.0.0-canary.062ade5c0.0","@material/elevation":"4.0.0-canary.062ade5c0.0","@material/typography":"4.0.0-canary.062ade5c0.0","@material/icon-button":"4.0.0-canary.062ade5c0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.062ade5c0.0_1571274117252_0.15206355955348316","host":"s3://npm-registry-packages"}},"4.0.0-canary.774ad4f8.0":{"name":"@material/top-app-bar","version":"4.0.0-canary.774ad4f8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.774ad4f8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"470a0483659185b05f3f9d8cef3b6f7c075f711c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.774ad4f8.0.tgz","fileCount":39,"integrity":"sha512-OBm1EJdnVLRznEg/gRkctK5pBRUQ25n7ihcCO54re3j6j1BO4oHj4i4+ScJtIP8HURb/JAfNS8VyueZGHjDNbQ==","signatures":[{"sig":"MEUCIGqxb45/KX0vtOujZL6n28zX6IBIruuNgpO1ySrhtUnuAiEAryAjjWQcaoYRNko/moxeQDfqS5cfnaqIEq0A7asEZnM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447292,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdp+h6CRA9TVsSAnZWagAAbysP/2C9TVkvHtaOS6HRdnD8\npgfH2nE6rW8aWvCjlg0jlmSnXe6pSRO0ho0qhhqB4j9ZEDify6OlfPmdJduv\n6Pzkwle7py0ynkA2Jss0CLdoNm5pA6HA/JSzL8Gqmz9/vpY+JsOyLUShIIr6\nOWZLbXjVaQYO2ief7ni1LaX6TpUiw7shcjg1ulx+rNLFeh8QxfHIN7orcIhd\nxuWCA5deFPLp2cqS0eLA56d5L0yEzZrMj/IHnmAUyYTuqhYt5M3E27oP8hcA\nimpl4T5r0GoVsIwvtlG4ODNaqG3nRM2MD0g/7txXnRk3SmUFHYoePCSEuNgt\n08k7GOioLz62UODQIAiyd70NlpruCVR11NKoXFWvc7kJIfXbJti/d1XTgR5t\nVIIRGH4iKm7nhFtIafuQ7J1U7o2a9cjAX+O1PNwyyiHpC2M8hq+lXPiejsOD\npbOL9AIe7HgAI/5r3KRMGDGM10hOTbhtib6USO5kz67qGjmsktA4P98nUtii\ntDp5D+gRoGQ0fsF14tqxDIvx8W/X9sJPpvOKYvHszFDQsBMOT8uuweamLoNk\nJulpKyUdsjQwRMHQZ/gG9K3s88kE0/ljF42o4DgagcWEhI/S9xRVf92hYuYR\nQEjH1CMyMO81Vw2HOFFvww2yAP682Yu0nTxcKRf6Qly5gowpwVjgAOCHcIJv\n8t8d\r\n=2hUW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"66607256fd6f9e4fe92319b094d8476583109bac","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.16.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.16.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"4.0.0-canary.774ad4f8.0","@material/base":"4.0.0-canary.774ad4f8.0","@material/shape":"4.0.0-canary.774ad4f8.0","@material/theme":"4.0.0-canary.774ad4f8.0","@material/ripple":"4.0.0-canary.774ad4f8.0","@material/animation":"4.0.0-canary.774ad4f8.0","@material/elevation":"4.0.0-canary.774ad4f8.0","@material/typography":"4.0.0-canary.774ad4f8.0","@material/icon-button":"4.0.0-canary.774ad4f8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.774ad4f8.0_1571285113921_0.9068495983195815","host":"s3://npm-registry-packages"}},"4.0.0-canary.5916d18c.0":{"name":"@material/top-app-bar","version":"4.0.0-canary.5916d18c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.5916d18c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2203d0cc8e67c5ec0f475704a75f54e2fb52fa8f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.5916d18c.0.tgz","fileCount":39,"integrity":"sha512-WJozo61WDn19yOaVJmKBdZVfiLpJ9nU1PM7DBgLMJs3wH9stNi9Zh2HotEF5xi8CGJiBHF/BGE6Sny+GoQxdNg==","signatures":[{"sig":"MEYCIQD3o8pv+6Lv8UA1PxUkrMf6V8KbcvXlYaXZisJkyDVECwIhALbfdsvrYbiT7mwaHTfEiOD0CfhW/PnmaPFum+n4YFy+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447424,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdqhvuCRA9TVsSAnZWagAAKDMP/A7Uu3wlE2+enIJZbCAI\nQL6ytxlreLLifEQ6EtRt/Rc/679FeaekocUNRDVU2yKGNd2KkMIw0D8H8GVp\nv/paH4THxH/6abb1g5rILfCZWNEQwk2odFLn2aJmn9tysCWbBPfZhhJPmW6m\neTEetlI/frsqAlfNwK4BCsUVs27W3iaOfDq03mMPviMuJMZd0kX6D4BHaN7j\nHrXmjbJ26Iq+br6dkp4WSwuhtUVLHIxY20NLNUf2lr8+3gTZeBiaf89WZmbj\nXFR1mk6SNsoRFgPDW7sZTREaN498titCTiqHqrRnFuuFI9jz6AZ1btJrmIzO\n590RXMyGq9a9Q9YY5HwGJHm0KpjI8eeugdAig2QWgUnxsl8Eeqt9hYk0VF2u\n3GazTDEzil1L/nSRvj3pPbMt0sIld4GMmM2QtKNOSaTexSypdExKMCVVgu6p\nTLT1bNy8YIGl1u9Ey7gUJM1BfJE825GVxUk/GaadinOmTy9suxIq762UFVN8\nY0kt4T/2WBW0Z+YHBh6gw4e5ipr4/SWfuY4qTne9oPZUXkwAC8+ddRzOZf+Z\np4cIEd6wSplP55tJYQF0bhjUziPRAwf3wI+XUBLm9vN9Plq5u7CMS5p94Bug\nJvazqyTMwyf5Fzqh/Ey9wz7drQX/4/gr+2ryWweFTZJRWdAKgSCkCsLq7FgR\na19F\r\n=/fd4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e3338b891c5ab3207ef8340a75490415e30e313a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.16.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.16.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"4.0.0-canary.5916d18c.0","@material/base":"4.0.0-canary.5916d18c.0","@material/shape":"4.0.0-canary.5916d18c.0","@material/theme":"4.0.0-canary.5916d18c.0","@material/ripple":"4.0.0-canary.5916d18c.0","@material/animation":"4.0.0-canary.5916d18c.0","@material/elevation":"4.0.0-canary.5916d18c.0","@material/typography":"4.0.0-canary.5916d18c.0","@material/icon-button":"4.0.0-canary.5916d18c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.5916d18c.0_1571429358202_0.918409014927932","host":"s3://npm-registry-packages"}},"4.0.0-canary.d4141c95.0":{"name":"@material/top-app-bar","version":"4.0.0-canary.d4141c95.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.d4141c95.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"dc6a669407c38f30c78d7d01bd1b537a6cfde451","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.d4141c95.0.tgz","fileCount":39,"integrity":"sha512-ZPyqZAJnHku59mwz+rRXuU7ftdu4aYTbPfmbJKbtZC2MHI/YIwa3+JhuddwBGzK3QuZUAli7TR0hVBB4ozIWDg==","signatures":[{"sig":"MEYCIQDdgGt5ymXEBbXgMtSlpanP+EzL7hrsi1Ol9Vre2WxiJAIhAIBM5yNsTVcI8fElMpdVBgXEycJb4ff9B5vOIsxXTQu0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdsQCuCRA9TVsSAnZWagAAfO8P/RoSLj7NtItyuiRjzr9G\n2hXuhs4R2uTQqscLfoRWQ1/9J0ScM5d90tosnlYFE2YlNw6LMSaQkzQi6ZV9\n6QkBQjUr38QRfCXsDTxTAHYxg4FkcNTnohqdQJdcfuAzb5qBvDfysVYgeR0D\ncJIUziHsYE2Y7GSPAurD8qkTplXRGGcApzPS6lXJINAI+rLeK/+ETyxfwegu\naO8lVnvy9HQGQVwKZ/EKNKqS7kLSJy4S+QprcN+y+fP21HtJrODMnWGDVITt\n94W7rCzj6dvrLVWwyArOkN4mLmrQ6vpqEubGsx1yNQpF0lqfMVzK7kL0DYkP\neW9RWsqHPiDz9vgVfXBd7BcKnPz8ZpTJjhZRo6RFWPSscn22p/E7d82WTtub\nGuiQWUwfi1qfq3EdGdXbHiJrfd+UQ3hUP6bTrMzj+ryzQgxubzW2i2KPM/qj\nGNOWmwlhJr4ZZJuK6cC1jbetZHscg3aA3nDIByGRBuGS3JSkCH4hjzit4jpD\ntxZ7gHYZDjTPQpSutMECQ+PRXsD3in8n2GwC7zXJyYkPT5cU4seJq4FvRfve\nN/Z1KyisiaZd6XdReT23jXnxd8YmrpQvBDJC7ifM9FEal+eeiC3v1Ld29MNN\n9//kgibP9UQjCN9Sbjm4PWyxTUugIDjMq1P43BzipT7KQgsApdf4t9vUuHIX\nkDRJ\r\n=7Hyr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"10ba5eadec617b7fd2711c838dbbff788d6f209b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"4.0.0-canary.d4141c95.0","@material/base":"4.0.0-canary.d4141c95.0","@material/shape":"4.0.0-canary.d4141c95.0","@material/theme":"4.0.0-canary.d4141c95.0","@material/ripple":"4.0.0-canary.d4141c95.0","@material/animation":"4.0.0-canary.d4141c95.0","@material/elevation":"4.0.0-canary.d4141c95.0","@material/typography":"4.0.0-canary.d4141c95.0","@material/icon-button":"4.0.0-canary.d4141c95.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.d4141c95.0_1571881134182_0.5059350301677301","host":"s3://npm-registry-packages"}},"4.0.0-canary.2b878b3e.0":{"name":"@material/top-app-bar","version":"4.0.0-canary.2b878b3e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.2b878b3e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"03cd73e6e84a412d6c7a9b7f6c738fd0a0a18a67","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.2b878b3e.0.tgz","fileCount":39,"integrity":"sha512-U817HPxKcDqrSonXHbP4RWE4ph3rw5yHSO9o6l8rSgWh1gyrm6m7/QBLl2V+L07/JB/waxOgJ1cqo6AJFSnnAA==","signatures":[{"sig":"MEQCIAQdnfUK9SB/dcxif9miFch/dnseSe5KNGeZ7csnwlaAAiAlH8gGGwicfCjDiwHJUbPxqPJKvjPo23bRmhQZpuEsIg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdslnRCRA9TVsSAnZWagAAd6wP/3IjsfWqDyejLOmI3YbO\nHP66++PYx5U7lHU6RucMyDGkH6JxOqzrlOdQ7whY14EA9GpFl2KQeXZQ19O5\nPgw1nrRSy43UeAywvYJHvk7fxz2EKR7WyNCsnmCRIm3sqCE19nBxO0vx1s7m\nWyUqkZjvi38tJ5qAPMsRozgmPKRkIPgl54UNssxK8X+oRP2nDQ8lyeRo90q/\nLf2eyOjZwhl/ak3rAexQO2IbRk5RnnDbFxjuiWRmGS7Fn4ebB7oSdPFDRUip\nasx9zwhyxAhdJpu/+0YPsQ+QAReYXvTQbVZpKX9BmQJ1UDSaOPLFCMwyzE5a\nlPNCipnUlVEApjhKuscXPZCEvdIF1qcOtnmsu+e8ymrygScC2bLKTRIAIubm\nEpFub8PT4nube3+rQJ6TqYH6HRO7BNNQVWoDeFyKYUD0S2V+j9f/1+9KhVuJ\nc2OOdh7E9B8wb0S/UwByDysnGm3IYcQlS1xVO+WTCa3+l+CBiX/Tv98tVcRS\nXemrvbSnLBuG8L14KOhEcn1yY9BVeh+7kow9nucVCJ/+FplTw1z18WhmOUKz\nimigPGuafYvjV9PC+XzyLe5eP8vt7i/IXw+SF5zhz9zcr517zPFAjI/nlY2+\n9Fk7jXchZ/6p5fk/UKH4ABau6tNOaKsU3r/JhiWP7IATDOaBN1l+fKEHCy5M\nTnTp\r\n=SWZl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"29ace6a085b0e37c6546b4613abba6356aa82430","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"4.0.0-canary.2b878b3e.0","@material/base":"4.0.0-canary.2b878b3e.0","@material/shape":"4.0.0-canary.2b878b3e.0","@material/theme":"4.0.0-canary.2b878b3e.0","@material/ripple":"4.0.0-canary.2b878b3e.0","@material/animation":"4.0.0-canary.2b878b3e.0","@material/elevation":"4.0.0-canary.2b878b3e.0","@material/typography":"4.0.0-canary.2b878b3e.0","@material/icon-button":"4.0.0-canary.2b878b3e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.2b878b3e.0_1571969488818_0.4369313192386277","host":"s3://npm-registry-packages"}},"4.0.0-canary.b06c0efe.0":{"name":"@material/top-app-bar","version":"4.0.0-canary.b06c0efe.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.b06c0efe.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3243b1b0d2cb0ae9eafcee3122f5a55161a65df5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.b06c0efe.0.tgz","fileCount":39,"integrity":"sha512-UvD+aw4wTel9t25SzuBP8qcWsR6C8j6hpAIDpTO8L+c6GweVM4UVNI5aSQ6jOpjcCnx+qPnJ0avZIEhs+jJVRA==","signatures":[{"sig":"MEUCIQC9HvQ6wCqCp2CAGijTVaIs/ssOK1MH+rH3oHC7AmR0zgIgDSQynhsFfuTOJA7SPHDKzWcUPXFATSGuQREmHIFJh2g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447242,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJds6LwCRA9TVsSAnZWagAAQI4QAJ4vGJ++Fy1YDgFZXWiL\nAHiZe4QRMNrAsqWNTtLU7DqopmCAzC+YYnZoTOscOtO70h6xOWGoFvIg83U1\nq40dd+6//ClT9kVp1fCA5AD6uqK6ip3P7Ha62S3hoL4B30vowuc9DnKU3NSS\n8BjILiaB6gX0j1xBqkthZ6ygSy1tn8MG2iLEjjpp4ATW4IZfD2w34NEXF8Dn\nAnCncxT5eS2Rdt7oODjAcfbG0AidZGpELdpU3f6RifxXzvaQn/cpkTnau8N5\nJwUbIb5VJm/sTzzqH3N2d/1vEq8rE7b7VZmoF6qfsD8RFKph4PrQhOu/MjEl\nZCLOIc2yyI8L8dECSeHvQlcYSJF0QbxdqFkR5MBeMMypjU/LDgIwO0/RdXUb\nP+oomsGxFRRWAtfaSsj5FIsisHbOPHMHKNC5bFlP5k99fhurWhdb++3omOBU\n2W5ze4Rp36eA/ZS0775cpHwY0nb+Y/cdhv04Q651QrEFNZXimgOjL19Teh3M\njicjjFVx30iaFPqz0cy8sKewd1/QNpTn4HlTYvnNllWyeBdL67hNkHTePwRc\nlSoF1fpNLH7tfIvvJe1mdb5dy64v1+3/jlXIw7rk1YeNXVrI3/i6WPlg76oc\nrIauIrrKPKoMMMZL/FAAZb/mMxUzj0uSMx0G+oVVd0uWR/+6+R9qSphn79uZ\nLSE5\r\n=3zDP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"023500a209a10669d135ecd0a8f00995f84b135b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"4.0.0-canary.b06c0efe.0","@material/base":"4.0.0-canary.b06c0efe.0","@material/shape":"4.0.0-canary.b06c0efe.0","@material/theme":"4.0.0-canary.b06c0efe.0","@material/ripple":"4.0.0-canary.b06c0efe.0","@material/animation":"4.0.0-canary.b06c0efe.0","@material/elevation":"4.0.0-canary.b06c0efe.0","@material/typography":"4.0.0-canary.b06c0efe.0","@material/icon-button":"4.0.0-canary.b06c0efe.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.b06c0efe.0_1572053744376_0.6035150797412883","host":"s3://npm-registry-packages"}},"4.0.0-canary.01628efa.0":{"name":"@material/top-app-bar","version":"4.0.0-canary.01628efa.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.01628efa.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"602554c3a8c01b0dc125fc0810bd59cbdbe3f72c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.01628efa.0.tgz","fileCount":39,"integrity":"sha512-7iU5bDwSrXboARFTdh9av8B9MTWibF2dgeg+0KCxR6OcteLIrO0esVV8Uh/S/tmpzDD02Cd7ghHHxtTL8zS8Iw==","signatures":[{"sig":"MEUCIFL6ebr0A9WIcc2yynH6G4VrxiK1dOg1nsTn7s+J6fIxAiEAykT/1jMWVziiMCV9fQCs675K+0KWjPUEgb/IijiyqOQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdt4HfCRA9TVsSAnZWagAAiqAP/RMFYM8LkL7kMw8QT8GV\nZ0cnKtAXv7MBqv8IV+zCK2gwo6aZHpkEhOFTyLzM2JwIj4V5YYYtAMDXB2xU\n7lWiJepgZiX9PlMbgBPV4vm+1+M62UmbGVnOB0u4eaWsm5QmcL3gp8+VjRbd\n+SqCXijkcCYBHWZ6w4charBM1ZZ+xXpSViw1TiMVfRP4mqnQWE3pMgCnP0Ih\nZGw0sLBijrRu8mBqb7QKYwRfbjgp4y/mKIun3u1WZ0yhzZwS/v/y0N492LkA\n+kA6OzVi/zyUN3IQlgBJmqxzri0lqS+wFi7g/S/5q2FVgX6URzpPZ/aBIYDJ\nignMLPVn9ehMgZvFHdBz90gJVT3xmMBouNBF31vA9M9NiTlXXgxWDKsf8Nzs\nEUIBf7f/xY0VA1KFE9efz0Dpjk+0AXCDA7RjFfrv6bkvgbl0EC2BxczTGdg1\nWpGKKPIs5D+bhfT0ZGGjq5gEU3hKpWQsFtQnMuibGs8szqHSJFvHs7Zt6HUm\nGe29TFFs79aGc2/qPBz80XTx6ztNHn60xSUPhkUhN0cCW7MZyNKpYGjNGo/A\nnpgLtxeIW8Btmpv08PR7AMEMCWScRjUpJPIvKuigMX+EEnNWma1LNKwcqW9V\naPoOU7hlP8Hl6+wRhffi+JRfzMCWl0xWqlqnDbqAp1Qa6VPhZiM+taaWOket\n/Wus\r\n=KkjN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d736a6d7c49f31b52dc64101effcb7cb18ca6cc1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"4.0.0-canary.01628efa.0","@material/base":"4.0.0-canary.01628efa.0","@material/shape":"4.0.0-canary.01628efa.0","@material/theme":"4.0.0-canary.01628efa.0","@material/ripple":"4.0.0-canary.01628efa.0","@material/animation":"4.0.0-canary.01628efa.0","@material/elevation":"4.0.0-canary.01628efa.0","@material/typography":"4.0.0-canary.01628efa.0","@material/icon-button":"4.0.0-canary.01628efa.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.01628efa.0_1572307423451_0.40955350046321226","host":"s3://npm-registry-packages"}},"4.0.0-canary.b5c6d66b.0":{"name":"@material/top-app-bar","version":"4.0.0-canary.b5c6d66b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.b5c6d66b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c653a62baf6f4a5b2c01361643e03c58791d15fe","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.b5c6d66b.0.tgz","fileCount":39,"integrity":"sha512-YCWf1INrw/vcUxScvmbqkaI6cNwHE3xj8sVEfUk68pJWVhSb6N/TKPY8S1EHcMcOq5QCvVk+HdnXmqQ6shJJlg==","signatures":[{"sig":"MEQCICXWK10RYBBn7Gp5A64D2nTD2Evp24FzAsro2gKBZjP/AiADG7vA7f5du6tx+3GkMPw8f7Dg1wEDA1GZK5Bx4mk0ww==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447417,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduH2OCRA9TVsSAnZWagAA3FcP/26U8VRUBCSMA+jubyz9\nbk+zBu5aJ8ITx9ZTwIUJtHWjqkawaiKx//GiY0+3y4In9P2h8htLRRidaayz\nenJ/sK5FjFLk8sNjrKQ0vIdlLlZ/M4N/5WYtlf7orrERzw8kx985LFSspR/R\nLVU2fOEZjaH5VE4TWwzgBeLxJGmN6aiGghbc82e92WB3egnKgo87TNepiGzo\npr91KOeqG6e8zmAjEVJFYNA9twXBhJQO2yps0EO6QP8uKIi+Qsz4cyqrG/1j\nymQiMWebrPsGDt2JP3DHrtsf++fVPnMJKRpIHBal0Zexo1dQDujvBqTA+ki1\njmYM2iQqYdKYwzqU2HIHDgR7/eZ64DX2v57fjtSn7P6b9LgXn2rVh8efru5e\ntuB0aZCMPu/3PWUlMgUujoBGkAp8pw/Pmlkk2Pp+7J5JJm3as+yRVfVi1tQy\naplBenSGW9mirZ5vn1PDg1GDUCTJqhrHtqftZBUOQMKJY4F7lzAVA8Vr00nC\nbc8ivaNtP4NMEBUVedi0HHaIg2iWUmheJJpUeGQ1T+33s09aWMJ0lvIN2Vy7\na/SmojiecpNU58uUN4g/XMUUqOqKVOxTcZ9t30/zitWjqfBNBxaUTMIrSMH3\nDRianb6pKINoOs+12lT6T2lTzuTrWuPdxW5F2kxsA64WpVMYQRGkg/DBNSNB\nyiVc\r\n=tDwU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a29efb24799035b1ee49295daebf1ae46a92b529","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"4.0.0-canary.b5c6d66b.0","@material/base":"4.0.0-canary.b5c6d66b.0","@material/shape":"4.0.0-canary.b5c6d66b.0","@material/theme":"4.0.0-canary.b5c6d66b.0","@material/ripple":"4.0.0-canary.b5c6d66b.0","@material/animation":"4.0.0-canary.b5c6d66b.0","@material/elevation":"4.0.0-canary.b5c6d66b.0","@material/typography":"4.0.0-canary.b5c6d66b.0","@material/icon-button":"4.0.0-canary.b5c6d66b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.b5c6d66b.0_1572371854500_0.08202067286912729","host":"s3://npm-registry-packages"}},"4.0.0-canary.cdf858ea.0":{"name":"@material/top-app-bar","version":"4.0.0-canary.cdf858ea.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.cdf858ea.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2b339b038a30ec6fc5f8dedb4453cc8771ab2370","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.cdf858ea.0.tgz","fileCount":39,"integrity":"sha512-lPDOs5qbzm0HkoNo5AOF/eC7aXE2bBGrjbb01Jb2r13REXDZAwXKzy/90bOO7zbkXQm1YswvgG1egWXEB3pIvw==","signatures":[{"sig":"MEYCIQDEBc9dGITdV92FulFO7+dy7ykNEQM1gNUWumvdldHQcwIhAPb3HcnJRc18adw7+A0cqLPQtSFhbqUiFgUsYITl5JQO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447242,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdvHKDCRA9TVsSAnZWagAAS0gP+QGruzbEYn672TTIiAaA\nBZG9kZcJOHKhUmbnQzB+RnhEThiZZGyDiK+Itw6V9m5R/V/j1QbipsU4wUvG\nQ8fZD7IsQK6raXfBaWBZbM+N/MPG1igAPwCOgxG7+q2zjYzXzgdnVn8cq7z+\nWsekbRrziDk+sHSHtsdOTDrcPrfp75qU5bewH0W52/hNiiBJwPE7LQ6TY5Z2\nyfwTCyHSLVcGPv0S7mgz05d0sGF7m+/H2U6hRi5mVbQ6zUOZzpz1pSW8vM+h\no8zt+NjME1L9Rk+rfgEDEfa3O4KnoSya55Wp/SSKINqsjSEswKMyhILymjB1\ny7PMMm3sV6/Oewpbp0quhFRRxLzFgIw3o+glOqnWW4sP8v+/ifPqCI2yJx7E\nrSlZO+vOqOo93mVK5A1dK2XbZUXqPN0rC81oQTov2fXoQLCmVrRfIB0xJTiD\nrtmZTRuRykenH0IwoK5iJV3hOJDL3ZYZdvkKBvLz0aHvr26dtSqRBXbYBbVy\n6Y+lWY0mSSfJ+QkzdBBU69OOV6Sh8T5dz87BedLfcrn5zDzuXBMZzwBN1iwj\nIxSJpoYfwRWBl2UGsNYEbtfzCTVsZBKeV4hYZIYxHwHqEV/TQYRXOlczDTXh\nZ4VcFLLN91iA2F2XlsbRCUIbgtWTpaTIxoasAndRkDkiVOzAIQnoH3B0R6G2\nzT2E\r\n=3x06\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"436b9be1155a7b7c0fd4aefe795809bcebe8dfda","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"4.0.0-canary.cdf858ea.0","@material/base":"4.0.0-canary.cdf858ea.0","@material/shape":"4.0.0-canary.cdf858ea.0","@material/theme":"4.0.0-canary.cdf858ea.0","@material/ripple":"4.0.0-canary.cdf858ea.0","@material/animation":"4.0.0-canary.cdf858ea.0","@material/elevation":"4.0.0-canary.cdf858ea.0","@material/typography":"4.0.0-canary.cdf858ea.0","@material/icon-button":"4.0.0-canary.cdf858ea.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.cdf858ea.0_1572631171549_0.9586893873048108","host":"s3://npm-registry-packages"}},"4.0.0-canary.719b57e1.0":{"name":"@material/top-app-bar","version":"4.0.0-canary.719b57e1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.719b57e1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5afa41543e004b4a7fc1da6e525a7e77a9b1633d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.719b57e1.0.tgz","fileCount":39,"integrity":"sha512-dKp+knBh1ETVkTX2Y8KjiH6gPI4eYUZsRmVmv+VElGaykNEF9SXUZ1OPfPAOz84lKEuZfHxsncy2aAai9BfV6A==","signatures":[{"sig":"MEYCIQDVIiGuYDmKcIDQ9ITdBkMh2TOw4cs21FhrPDjAYA5jhgIhAJ6UszbcQd9K8H7T7AWHC2PoYQlvt0SFL0WTK1j5hPRm","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447433,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdvI9FCRA9TVsSAnZWagAAabIP/RWvxzcmjqzZ2iL0AEzd\nAZSCmnbieg0SM5K73w7/+lJ6IWeFpkZe+kngUYR0O8rmz+t3BySsMqvpfwAZ\n7ozkQJ+7bZJMfe+WSWjAMOj/xB7BLxCBtUgQZ3p8Jk9ma2I9UnE3r3VlGN+w\nP7V44FE4RPu1UGGKoXI8fuEUrqXhARvZ0YjvJnqYgFJP8seW5FX4cR8GC57k\n1tUQpmn3jYNrcYoWmJ7CvAV5TXmi2aVmGAQucvdYdLpeLX7uvc0W1Fcav8xT\nLGZPo9At9zPX1IteRi3Ha8yPy2ATr2FhQ6/ELJ65m6IKk6ByAWlxyZz/qOZf\nWSSsws9ixX5a3HDtY4OsJATTHP4T+t9e47KG4gQt74ik3LstpQy+ukvWYtv9\n4BziknW27nEvkIxgAZENswSz+6nOQq/ymYDC46OIwGFwSESjKaE5HZaeWY22\n30p3pVmHbfUwO/RQ2qK8etkbgzsJfiu5/fGpEpfAFphnhJ75sGXp9um1hPAV\nN18R932tN50ILzfzs5sZVfYSjuGze+WaWCH42Kn8QVjSIxbsbvz/8hIX0PM+\nQbfgCdHuwkzXivd8cuV2ek4f+6vgpeHFRGwmtesR3MCT1Co/K51xQw2cA5Xk\nztFmfkK8qyYmotKg3rbs48Xw421MgGSVpgKghIlYh+EKcd8HqEPl3oCy8apE\ncc7g\r\n=itJZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4184aa06e4862418697a150eaf45a13500e1c4ff","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"4.0.0-canary.719b57e1.0","@material/base":"4.0.0-canary.719b57e1.0","@material/shape":"4.0.0-canary.719b57e1.0","@material/theme":"4.0.0-canary.719b57e1.0","@material/ripple":"4.0.0-canary.719b57e1.0","@material/animation":"4.0.0-canary.719b57e1.0","@material/elevation":"4.0.0-canary.719b57e1.0","@material/typography":"4.0.0-canary.719b57e1.0","@material/icon-button":"4.0.0-canary.719b57e1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.719b57e1.0_1572638533010_0.7304878372038732","host":"s3://npm-registry-packages"}},"4.0.0-canary.97cbbdc2.0":{"name":"@material/top-app-bar","version":"4.0.0-canary.97cbbdc2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.97cbbdc2.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"446191386ae99fb246bc34ab84189bce3c1cdd30","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.97cbbdc2.0.tgz","fileCount":39,"integrity":"sha512-oU3twelhSbbA+7hDQJoyZSDUP6/wQD3Y7bAwvODFTKo3vJUHT8XZc+gOQwBz8DwrV6HLzkl3wHW1tnGGsavDhw==","signatures":[{"sig":"MEYCIQCQeof8AnSLfntUxxNbY13yqDK+Df/TsbLK8GeyeUcrNgIhAM9ENhAUjCD3149141m9Hd427PCv5ojqkbh3/0yIwmQE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdvJXACRA9TVsSAnZWagAALjQP/A+rCkkCCz/vlKiR0gkj\nhcvvj3XDRYM/Bm7nWFKmY3SU83QnUreui7yHMmvwnXexfP9WzKupFKPU2N0j\nEDo9E/quecUMVFWyqUwWx+ymaf45ymQskwKs2tL7a66b5fAj6BeqzexHG0Ih\nlrrj28hiAdOE4zY23nmCf/qST8lWr6u8YmjkrglUxXuj1hKyM/Fz7n5IYpBt\nk1h4dkfDrROhz7/BfT4h9FGE3Vejul0ZqvU5P38PAh6CFlAHaDLvtJo58mb8\nd9BGI0+pYxNI1d3J7AH/t1SygISDwoAA8M4uUDGP2Xgn9arlVU41dIXdVK5h\nyoQDslyR14trD6NGYYSOqEt/7fKdXEV9J3oJYZI+toENdanFIZz3816RaQ6i\ngV20ijNywE0GpNqJfeYsuyfg8LO3DflWYGc9988T7BLNqdM2YMWbbrx4tfW/\nXNU4x951inaePvDfFeaJOW87W8nNGF4X9y3R2TH/+k19Mf8eAy/WWkvASVMZ\njiStEaBQmevC1GWxiKA5ltU4bJrW7861y2jeyqWnzjftV/TcPlpm66WObQw4\nVfB0k3rcAQTBc/kV9+XBpiAo3fWAmUuNelHvmq2mzbfX16Mc4tISufIxDyFn\n3d/nZaM7E3+PDu4tUkkXc38AXUkBwfkQA9dpJ8Gtr+mfi/Uz1JwzpsIUY00V\nMLL6\r\n=AFsI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"49d37bbcdfa0f5872581945f58c03e62abb97090","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"4.0.0-canary.97cbbdc2.0","@material/base":"4.0.0-canary.97cbbdc2.0","@material/shape":"4.0.0-canary.97cbbdc2.0","@material/theme":"4.0.0-canary.97cbbdc2.0","@material/ripple":"4.0.0-canary.97cbbdc2.0","@material/animation":"4.0.0-canary.97cbbdc2.0","@material/elevation":"4.0.0-canary.97cbbdc2.0","@material/typography":"4.0.0-canary.97cbbdc2.0","@material/icon-button":"4.0.0-canary.97cbbdc2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.97cbbdc2.0_1572640192296_0.8614264195734105","host":"s3://npm-registry-packages"}},"4.0.0-canary.8e36b3b7.0":{"name":"@material/top-app-bar","version":"4.0.0-canary.8e36b3b7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.8e36b3b7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"85207cbe347039a1a408a61400fef01c937e47b1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.8e36b3b7.0.tgz","fileCount":39,"integrity":"sha512-3nkiZeTLw5n25TU+yaxxeqDwB2PY4W0YhJLjlEiZfEp/BYuK06kU0gvYnQQDIfuGQ5mLE4b5hGJthke9DKeaCA==","signatures":[{"sig":"MEYCIQC39JlIqCklNGfqRgCb/54B7V3Sev8Jg7FwI8G7ASxhCQIhAJwmxs5EwqvEUDjxIgZPoNt00AoXnH7YTlZJGhe7smuD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447242,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdvJ1RCRA9TVsSAnZWagAA9LUP/3t3owWIsGzwKkp0p6jv\n1AAEf01v6x7eaT0RgVWzmx9zcnQnIsAZ48hnh+X+YXEKqLhiHPswF069Lf2s\nwWv5seBa6BluwgbSeuobq1dJ8MTvpnAYR0OfQSSvj+s1dZetNEQhEQTJ0aYQ\nAcultKIm/pVgYb1Z6ZlHWJerfeGCJ703S1IVPMgVoJ7ncVMclrnrzp/DtN6P\n2C8ipGdgxqNTBZoaLKnrvyS2hGnPg/36uIV4mOnhCxxVZkIfltEs2jceDFHW\nM7mxFbCzShYhzEIcsrWEqq2cuuJH3w4HbgSJoykd4EploLxm9QMD18afIgam\nSk7S7y93QuoJa7qm6XSdBaVURpvP+ASL27+AhB6qEbaNFP29rtBzc6hC8wG9\nRQTRmbs9hro9mnU8Ept1Qf78vjId5TOvGiiEiYS9Ts5JOwwaEfp8tyZlBTtU\nR1Pv8jzEdXgDI4jL5La/sEKD343LB1XovbpNp3tug5IVFrhQ9X7CoyEqoLFZ\nmBfx3HX5zIT8Dp49BeSLGsJtIiynz91vqWsk4VUxzEdcEI2vc9N49RXfNEpj\nvYJT/1oPN/gI5fszcmdrXN2Wnl2DrIj6wMa5YF9apzQykUWXNAD218ZOlC0x\n09nq88w8biPWZmk/7W5wHP/IBG9AVy5juGtgLWbsuUKrU39NW1WmQBwz8Nuq\nQCRX\r\n=WcP4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"62f51968b94685823af7942f779c63658f2b0350","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"4.0.0-canary.8e36b3b7.0","@material/base":"4.0.0-canary.8e36b3b7.0","@material/shape":"4.0.0-canary.8e36b3b7.0","@material/theme":"4.0.0-canary.8e36b3b7.0","@material/ripple":"4.0.0-canary.8e36b3b7.0","@material/animation":"4.0.0-canary.8e36b3b7.0","@material/elevation":"4.0.0-canary.8e36b3b7.0","@material/typography":"4.0.0-canary.8e36b3b7.0","@material/icon-button":"4.0.0-canary.8e36b3b7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.8e36b3b7.0_1572642129294_0.5839672404596865","host":"s3://npm-registry-packages"}},"4.0.0-canary.62d3a09b.0":{"name":"@material/top-app-bar","version":"4.0.0-canary.62d3a09b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0-canary.62d3a09b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ece444893ff04bf09dbbc1b0895c730d15749571","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0-canary.62d3a09b.0.tgz","fileCount":39,"integrity":"sha512-QN84waSBG3/euihhjHWWSfDM1PI/G4dadiHsMOgvCKBvfQieWjIz8A5Kib16IeOI240bsS62lQ0nPUAWEo2u2g==","signatures":[{"sig":"MEQCIH7cdDuRxAlVnHwwrz7VyobiTkYNmfFLSs8mhaupsylXAiBFb9EqJsvfxDEelE1IyrnkldzXzUHUzr+JtBLvkgtF1g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447242,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdvJ+DCRA9TVsSAnZWagAAolIQAJ4++lu4tmc9oH6G/R+h\nMku304kIiJ53j+w8zJeESoZAFg2RtUAhqv7DjftnrkzDKsjDT3k5zO9k1zg2\npIgGjcmu4N0ENiEspkHVjGWBIBaWB4NhHWA7tBjuhWQTuB5c3vLXbeEFcB+T\nhc4vXtqj8WHqJquBvvkF3ewbFczzKi4+BMBsLy7vHXWQW2l/h5DcEXOVuVxf\nFIq4U1isJvrqhScGKmGYZp/XPsfLIrL/tWKpMsAXIJvsl3bnLHQvYWY6hLAM\nHeGR5glriF94vyP0Qv7aBxUAv/bctDKMkB8+sJBegNot+mb/ll/9AKwfU1sj\n4WpnHS5hzbvhSYde5TqMU7siGgEtUlfHps9aJxOfUd7HYuGXg/XfidcY9kSh\n5plB75PwQtAax4Gw+19auXqvsq6e+s+9KjwhBeUvYq/w5tJI8Yz0lX2OHxP1\nyvTGwMg2KZ8oj1Uzn/0yKA1j3cnUXv8XdtfJblTcgV+6cYDe0eFtFcUbhxQb\nMCAkYF2cxRo6VKYbgQl/+xI7LWc7Ico0WZFR4utnLzYOwuCyIFKHB/KLc5tb\nBOUNd0a5okNyhN0mRB/ZGJWCC8TX0oAn08CbDAL9qYzAuGiA7wtLteIkhGo5\nbHvkDscs84WijKNRlb4Q7i4/gTQWrOobyYVxtlTyPeHdx+1eg7yOu4xGMGIL\nM4Hj\r\n=1MrI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e00a9686a58b0fd5ec957d4008b6674dafd4dad2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"4.0.0-canary.62d3a09b.0","@material/base":"4.0.0-canary.62d3a09b.0","@material/shape":"4.0.0-canary.62d3a09b.0","@material/theme":"4.0.0-canary.62d3a09b.0","@material/ripple":"4.0.0-canary.62d3a09b.0","@material/animation":"4.0.0-canary.62d3a09b.0","@material/elevation":"4.0.0-canary.62d3a09b.0","@material/typography":"4.0.0-canary.62d3a09b.0","@material/icon-button":"4.0.0-canary.62d3a09b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0-canary.62d3a09b.0_1572642690903_0.7829969839878146","host":"s3://npm-registry-packages"}},"4.0.0":{"name":"@material/top-app-bar","version":"4.0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@4.0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f59d3c4a4fcb6e2ed7cc78e3642a751c62265b95","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-4.0.0.tgz","fileCount":39,"integrity":"sha512-5IK7fA8c9dyfRngYLMp5gkoyE4iqdTSpMI1brn1pkPbxqym5ibXIHt808pIdOMv7liW+Bf5pVkuvnyjF8Xi+Ww==","signatures":[{"sig":"MEUCIQDpsqzFXEOxOAHmwYs/EYHfxCWcWuRuxzaaA0elMg9h2AIgNysJEw+pg7wM5flBX9Ng8rw4vRA07EVrJAiKPQ8jT1U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":455738,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdvcb4CRA9TVsSAnZWagAA17oP/j/55rUoe8fY8ZSnbYRg\nbUPaEx1DzcVy9GozZSLIubByzJ/Qz30ghl7T7iggJdr7DLwRIsqZjkPOx913\ny/HklQWNb2ZNq8tKJOPp2qydDHsnqN2MJRgnom8j3olMmJqMtEJ+ZBvMzPFk\nn2ul7Du3qqtoRcCMsUkusy6kpoZipTHJP8JAjrGmNUbbNk2ZaAiTNhvTVT2T\nHQ8d1i2DszxTmUMq20hr/sIHO44OXLqrAMCy94Vm3j1NRxP7p/FIb6tYTUpP\nKNydcEiAG/wqhbJ2wRICY23QO2572ZgddDpTOcLaL2JHHAVEpFaPHHje4uWN\nptBunH1emkAPWMee4OTWOE73vjF2iuimkpTrZvKSAeVSJ+ycxVm/nckw1x0r\n+PsP3IXJJGoKe/nIbk8HGFJTPH6962grAunGVjr8+lhdEAoLVFw9JWpp8tXJ\nRtZUjweKjGTeXCiH/PMKKAavQChEcIx9d5pOh/zyq/zCXtk0mT4k8j0noWFJ\ny9zFdOBvQHZjcJWMiu/oJx7EKYP5seetoYwL8rbwCv1dxe13NPKMr379G+4z\nr0MAHq4FuEUTMb/q+GgY4xMQWONMA1UfNtqvWJtssqSmz4mUq9w7VBt1xN/r\n9knlYPlLZuqnSxzHsxkpdwu2VzcmcYtrfl0uwhK4rR6fM0ExkSbK6xIQaw9Z\nXBYg\r\n=1G15\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","gitHead":"8fcbb009cd3b5cc004b302613dd55ab4b5d6ef72","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.16.3+x64 (darwin)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.16.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"^4.0.0","@material/base":"^4.0.0","@material/shape":"^4.0.0","@material/theme":"^4.0.0","@material/ripple":"^4.0.0","@material/animation":"^4.0.0","@material/elevation":"^4.0.0","@material/typography":"^4.0.0","@material/icon-button":"^4.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_4.0.0_1572718327876_0.13719370225679195","host":"s3://npm-registry-packages"}},"5.0.0-canary.b5eb51e94.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.b5eb51e94.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.b5eb51e94.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e98f833a1397fd46e59e473943c2860addb24434","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.b5eb51e94.0.tgz","fileCount":39,"integrity":"sha512-7iigIaFSHYPXZlyHYXOT2s+j+IaV06Yq7+E4nPvvCv/QJ5jboYpqiKu9Y/54OYHw73UYJHwzrg9Dz4nXQS8RnA==","signatures":[{"sig":"MEUCIHJaVp+N5yCR6Jh5uMaB4GiQL5kTo2x7m6SVNcwviDE0AiEAjedCN1GaFtT4UVPHMshRxIK2OvIUk/8s7SzZc5D23JI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxGOvCRA9TVsSAnZWagAAAysQAKB6adU99bldIoUFdJvU\ncp17sUIrZkFoF/WUkxCW1PGWHYogXfHnALcofdEJAR+/TD5oPJJb+FT03nvG\nyoxf1kibmrrXsFTrqKkYrS0Wag0uVF9Ttv/lY6Z+WtEr5aUfOC98Wr/E1rw9\nNVeGzam6sQlDPvi1Jp5AUlqsQpLcOIfhUkQW44Y4XFd/EpCMdL/d3iwqp4sm\njZj8fsd+J+ZRr+fbdtEAMlMd/myql7ogCOdp7iMO0QuHXmvHdHQNlZ9rboHJ\nvfJfy3QMpUwkxGXCGwPwIaOu/EbO4pv7eMnoNrX8BwGx7taBuYJG1TG/h+gs\njikVYKLYYEjSJ3jldLRCXyCmluXVEy6J2nfqDMt2LqPL9kxrUI/2dqIROjto\n8eKQ3cdRC7D6alXdb8EoiSsEy8Z+kNvU8JRsRhTVBuYWsqViHyYo9M2ivIlp\nWhPEhD8Y4RxplIyWlQqIaaKuUG96QKhOhJEmN6xfYj2fmQANqNP8iWbb5ltE\nuA4G20Tng6Mm3ssi3v/N4l8xgqPdxga57OZ8CXrj0EBarmqwipD8DnuI/i5D\nF4bcy8LXu3cjVIlIr84EreJ9l5b4D2V+5OEqYr4nLR/rNlwbBhnF1rsHYs8U\nM69XWLx2SmD5g6i3h431IpScg/JRrp601N+UHqs3HbgpEdPgL2Hm/SIIn2Dh\nPNnM\r\n=4v4t\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7e8d43f563cf6b162c2aed47d2a006564994e4d2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.b5eb51e94.0","@material/base":"5.0.0-canary.b5eb51e94.0","@material/shape":"5.0.0-canary.b5eb51e94.0","@material/theme":"5.0.0-canary.b5eb51e94.0","@material/ripple":"5.0.0-canary.b5eb51e94.0","@material/animation":"5.0.0-canary.b5eb51e94.0","@material/elevation":"5.0.0-canary.b5eb51e94.0","@material/typography":"5.0.0-canary.b5eb51e94.0","@material/icon-button":"5.0.0-canary.b5eb51e94.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.b5eb51e94.0_1573151662736_0.8272568276363441","host":"s3://npm-registry-packages"}},"5.0.0-canary.58500806e.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.58500806e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.58500806e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"66a34de7bfd2d14ab3a72ea9b53ac1bfd7c74779","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.58500806e.0.tgz","fileCount":39,"integrity":"sha512-soHF/ZXKgLHZoMNCCCSh5T7PIxMBgkoK37221UvE12nHSwq3Hyhq5kr2rqyvneDzUBHpXyyjztCqj+egIq//tA==","signatures":[{"sig":"MEUCIATa9HOug23/iUqk5GqiVmUzhQIbDfSQzuR/eZHPkKbBAiEAuyTEx4upaQ+T1I7+ELBKq/bEQsYFgknDM8U6jTFzoJo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxYt4CRA9TVsSAnZWagAA4kYP/iRI5BlT7HrSQtCzmCsT\nT/fqlii9nKm1IZ8E/OUpau1pfJCAkV9Sey8BR1Y/8C2A3mGW+T7fWvKXUzk/\n70E/25X08PH9dImPUL/BM+SaR9msrd6OrZgN/VEwCC+UKSLsRNfmiH0gEEbt\n3BxrIR4LbHHiw0fEm9B51Mv7eBEuhmjd03e0tS1OMSVpfes3f9+c5VhL/9IZ\npSXToM2a6lmxEaBozsSqe1xZFg+c/hTFRPqZtpArThGBKfJFPmgXLDjFtOk0\nOUJQgL0I7t0WtoTtXL2CpFCrM2msu0VlTJQtQuIeG+RPmhGK4X1w1tKJVxc+\n/SbXzyJ2ddSBwuHg5KhLf5fVCrcxG8S3CNYcxQDF3aRw+DdyM3kjAgGYOnCj\nWnNyVEOKS9tzqelIvxCA0bGK6kTSj5HXWJpzbLBgG+u0kuamTsGqCAkMYRGZ\nXNQvRo5QNcX+ttp5rWFN0eUBFQnDaVJ899WuL+iTWZHVauTEMkq2zKbzCOZx\n9jtcw37AlmSuIT+eWg5Vdik6hBxCozKEep4AqGLHlR9d/m+JiaYfU0K5SlAl\nhXQG2QS/N0bsWzudrnsexy9j9tkov7Vxl+6/X874yF7TI9L3nzhcsUWnZUUJ\njAHmG3KmatxdPE+kA2eEtvo0YTcx4UNvuawtPOGUd2kuGDz/qq2X+WHMjHDW\nXp09\r\n=NPfj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b155f26dba1f11e3c9d7d0fe036cca6da8b37a3c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.58500806e.0","@material/base":"5.0.0-canary.58500806e.0","@material/shape":"5.0.0-canary.58500806e.0","@material/theme":"5.0.0-canary.58500806e.0","@material/ripple":"5.0.0-canary.58500806e.0","@material/animation":"5.0.0-canary.58500806e.0","@material/elevation":"5.0.0-canary.58500806e.0","@material/typography":"5.0.0-canary.58500806e.0","@material/icon-button":"5.0.0-canary.58500806e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.58500806e.0_1573227383806_0.7366701688288586","host":"s3://npm-registry-packages"}},"5.0.0-canary.66299b646.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.66299b646.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.66299b646.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c04dce55709319e3e5917efa4219464b2be4018a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.66299b646.0.tgz","fileCount":39,"integrity":"sha512-wto7IUjwrVcrQSI/PkT+dB/WwavWIC3WhkjZ8aGK59suVha0Krw2CHO/p+91XfJ897eJRxxVrSV7t2XLnufFxA==","signatures":[{"sig":"MEUCIGhbT5aFPE+ybwOHPmWm029ANk5iY4y5BMDIKBTrAjenAiEA3JLh0fNA4NRKcg8CkAQR4mX8IlmOVftqeUb3uw5uVwE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxdFNCRA9TVsSAnZWagAAz1QP/2BuWIhWqn97z61NH20D\nhPFGIFtjB9WUll+pWeH+UMscu1WbetptBprLej4Z1KQGHg8qD3ohmw81JSTG\ndRKFQWH3kq5zWs8UHD//qjyTlpjQ8h7HpXKWartm6GCOZ0IhuyfuI5EjSsJ5\n1rM0f2U+/3m++TaNSwG9chmfC+rXCmpufRQBkg/5f4ywy3PCZR8JIi2nPhjj\nuUesB6z01akjRJTQB/wU/KFAHjOu/UnzVCJqlzTC4lQTUORhYDazSdd7tQee\nHEbjCVpvZpsDGMU5OBecLsp3G5tnJevrS5Oy7DMAQ3P2+S8n4up74IRkg3pp\nGDkGbV/nc/b/b/8THmJaTt80BuecOWYdEpQQ1IpyUh3lA9OQUaUZ3iH5R1Mf\nWDH+Gp79k9dteKivhStCedYYeEVGfmtFsrv3B446SoHNA/jclfLkbs63QjrN\nHPP2ILlKVWYKyJgDmHq+Tyz76wzyq0r1nTNc+PbkkdawKH7ZYhkLRXJvM5rt\nPgBYqCJeAyu1S6HlkwdXlNM7Ch9Gunf7rM9XZWl7vT0vpfiq4l/gnBJlwFIs\nlfvCENGHp4A4TcAwQBQb7ARvpeUF2mWrZS02/81fqf6uJ16KmlgmQ5NKD1UP\nAi8NbcGbxj5LB1Xuy+gYMLeTFBEV2YtjBGCCwOSDs9mjxb4OMReUGH52kEfo\nFR8O\r\n=A77n\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4bcc7c183ed18cfdcbaf564e317231824ea91b6b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.66299b646.0","@material/base":"5.0.0-canary.66299b646.0","@material/shape":"5.0.0-canary.66299b646.0","@material/theme":"5.0.0-canary.66299b646.0","@material/ripple":"5.0.0-canary.66299b646.0","@material/animation":"5.0.0-canary.66299b646.0","@material/elevation":"5.0.0-canary.66299b646.0","@material/typography":"5.0.0-canary.66299b646.0","@material/icon-button":"5.0.0-canary.66299b646.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.66299b646.0_1573245261331_0.598457402732254","host":"s3://npm-registry-packages"}},"5.0.0-canary.821871e04.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.821871e04.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.821871e04.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a5fed36fc8410d283dcedb380f25af6b63aaaa15","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.821871e04.0.tgz","fileCount":39,"integrity":"sha512-qgRFslHtS+VIin9DButrXplwxCWk/5I85coOZw8bUFXW5/mf57CO0AAs0hIqqIgwbqS/HcuLYI1yDsigshKj7w==","signatures":[{"sig":"MEQCICEZ5f+W5wNlWvNh8FK0kUaG0DZy3DZYwW+8URIVYpPCAiA7CiDDfUvDu239KHOgcDkdJUlg5hrYcqhzITwmtbgGog==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxd4UCRA9TVsSAnZWagAAj74P/21Ip31w9KmGyYiHqRvy\nqnJlOh29dH5VFrcTC/1SsQOCl/uUYXlwZTpIkrZXJPNVbhngMoLKINVG12it\nGrmh6Col+QSjWf+SlMvH2SeLToszgJSzjVCdY68g9crplCGDug9Fa2PRDL1G\naQmjz3Lf+qs7c8+iPjwhKMzu/mbEXfouhpjtCJX5gtDcPQEqNj8vhQZ8fbn+\nEJxtgSqMng6rdUPxvWSsIPDfSGZweUSTAUJ6KW+qhLsuhxFpS7buC5FD7ing\ns3n5o1dJohYDh/lmyhvcpsVFtHFqFpwu9Sq+9QvVA7GnEOv0touUwssxk8hY\nFXjqHYbFMHjFlgV08avjUoVHuQ1qG66XhPdX3jijgb2QZ9KZRcv8dCPBbSGM\nZwulK1rvbBFL1meZgQcBpZ2Vo/myBJ4sKk+6X6fSVGbtaPQzfVjEVqoDCk0I\nyuPSVIoyLOd/nQ7H4qh1G5Dm3hteW9zGODohXgFRJov30axVjZ5pKDAYMGtf\nmYhx6ul1M8mds0vTQ5spAYE5qkU0lm5kTO13ayG6K0dONThH6Kv9jC+TAZLs\nMxIkIqLxECQPCGJATH1b2kJMdzC+K3DYoJQH3qM2iiiPCNBHG8vhOSft1Gc4\nyapVLZqGt84Vtm+KqRRI+L1AHstFbz9XykvV/RZ4Ph2Xr1Cdr4k2E+hmnAK4\nejm0\r\n=fNvp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"20a91d4645dd0fd2db7a61459d752f390e050899","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.821871e04.0","@material/base":"5.0.0-canary.821871e04.0","@material/shape":"5.0.0-canary.821871e04.0","@material/theme":"5.0.0-canary.821871e04.0","@material/ripple":"5.0.0-canary.821871e04.0","@material/animation":"5.0.0-canary.821871e04.0","@material/elevation":"5.0.0-canary.821871e04.0","@material/typography":"5.0.0-canary.821871e04.0","@material/icon-button":"5.0.0-canary.821871e04.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.821871e04.0_1573248531859_0.8180211031759141","host":"s3://npm-registry-packages"}},"5.0.0-canary.491fddc31.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.491fddc31.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.491fddc31.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3956a11b3272f123faed3f325d6968f05737beb4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.491fddc31.0.tgz","fileCount":39,"integrity":"sha512-6Ogk6zwsdXFpxCw/ZdrEWEgxVLOygXpUtgh+pVzyulaXhwL7F5TwF7HDv6PliudJCpdzxkOl4QWzjeulayym4g==","signatures":[{"sig":"MEQCIEN/aZc2jQmFgkUYD+Zo3auE9E1LF5kRqWBO5Lj38c47AiAaizp4m9qQplYheyPD6mFZqoNNKJwJ0dqWMcUeCEmWQA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxec7CRA9TVsSAnZWagAA7/wP/0gDTk+9H6OiXh6r8LZr\nxwZSzPMOqC3VncUk8m5mkwxB5FqfBloHaYfxCssn4t7gmV0jxkBXWFkYnbKS\nKnSgX9IrK6aM9ElTBSYYfFpHttcDkiZFH31hNsg/qa8OXUoQa6uqnzNpeUoB\nIMSE9vqQZBstrsv+oyl/wQohCX0cD/cUSdb4xUQ9JtwOeWF++x2dW8BTc9ew\np/us9zsPob80Y/dCvuMHFIykRqfMs6cSuRI7yW3c6cz0twR9X5R+gp/l2zLZ\nfxIavp15eud3IWAkd2hy0NpACk5uZrZf9nP2AQaz/ikqbSM23soiYVQlF23A\nFGUuRH0fY8mfqW6fTV9PN29vNf/GYWWdHfDX8QgmbVbifZf3pFTZh2VrfaQ/\nSj6I1CLnALFrM1G9MqijOB887FBBHXw04E0RwvCD/zIWNUJ9z1s/bPdcIhHk\nORZ+D6bhZedrlVm/00mN7lu1v6cl60vOrQ4pFa2Bu1rvu7jgRNHAhOvZW8jC\nOk4HVmQdpYTD6ahnwppEwhIP5cxOhaneHiPVd11joEURIhbn5YwNwwTz53az\n5fcdmI0RIknlrFiyurIa26LqudO0O4CORbVpasNj1Shuun/xcx6iTZLB3xsP\nbeiv9Kv7zR1tp/J6O9x6GP5d2wJDJCe4ed6b4WO4GVv1xfRQDWB0fH+gRj0F\nBaQj\r\n=m/NX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"36ec62985e32e24263ca2d444e04a01d98ba02eb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.491fddc31.0","@material/base":"5.0.0-canary.491fddc31.0","@material/shape":"5.0.0-canary.491fddc31.0","@material/theme":"5.0.0-canary.491fddc31.0","@material/ripple":"5.0.0-canary.491fddc31.0","@material/animation":"5.0.0-canary.491fddc31.0","@material/elevation":"5.0.0-canary.491fddc31.0","@material/typography":"5.0.0-canary.491fddc31.0","@material/icon-button":"5.0.0-canary.491fddc31.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.491fddc31.0_1573250875416_0.0647016617160443","host":"s3://npm-registry-packages"}},"5.0.0-canary.b0cecf145.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.b0cecf145.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.b0cecf145.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cee5119ae12e0022ed42e79e05d313fd6adca2c8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.b0cecf145.0.tgz","fileCount":39,"integrity":"sha512-hfV46vH2KeUUxoiS0qN0xSCp5pEbOW49Eu3fM2WOUjNaqhqQnRmCC/dCsTIJLRH7oVeXA9swcxOGO/lah/WZjw==","signatures":[{"sig":"MEUCIDp/DXZCpyVoIbR8vJaSpJsEDyPiovgNP02c+m2PhXW0AiEA2x8Yyei7FHMkmYr3QZQ8ZLUbrn55WnNakl6/oNFU8pM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxwizCRA9TVsSAnZWagAAEBMP/35DMY7k/zAi2CRBo/XX\nAP+XF9i1dZJyjheQfE7uvyJb/0x0DqBW6hfJKZrokTsZexOpy9lxVEtidz8w\nrRjD8Rey91MgVl0OQOM2mzw2QAlC7hDkyYJcGiIkbs7j290IG6jVOmlKOEU7\n8TmmpsmUOCVONMWf9eVL94wDnFR8PYVZvVnuaqFtfNfMTQ930XDd9cjh+C7+\ntoY8XwiGbU63ZnzKnIgPbPtKUFoJC8CQSI6vGGtjyKToEUats1CRnOv3QJln\nvro8YCBTmG55Kzz+XsVUZ/7XR/PNqsL0akD3DYASp1Xp89e0r9u/ccDnCeKL\n75qLwWGwR2fYJItt7ANZ73y5BEIaXcecirjehEn8sAmpKRV5yfL2sQwv66Di\nB2VaMDZBKE1AWiSmA9NODC5tkFok5dJP1byseUdyaFvT+ZPm966sSgLWl4VO\nZpTwmk5uUC45jeKmDo480rgHl+0x0QT+cJmxlQiwzI0xwwhXcCLSlvgA2P5S\nzGAOfdga179+Jc2UM1/pUpLZW7wuZZxBC7Mlml0KXw6P8OfJkxpQGUUAW3bg\nD0Wxb5RNwZd7uv47/ARvVRXjH58VjIFsSYLdEgB8L5lv6/Yt7SblhIlGHunu\nIvSvxKNjxT+jb1IS0Pnur+2QyqCUD5UR6lYqSItSkALG0jhIucMdImgUMhMp\nLOqg\r\n=rJZ3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c20143ddd0d46da106e793fe5b768b628d433923","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.b0cecf145.0","@material/base":"5.0.0-canary.b0cecf145.0","@material/shape":"5.0.0-canary.b0cecf145.0","@material/theme":"5.0.0-canary.b0cecf145.0","@material/ripple":"5.0.0-canary.b0cecf145.0","@material/animation":"5.0.0-canary.b0cecf145.0","@material/elevation":"5.0.0-canary.b0cecf145.0","@material/typography":"5.0.0-canary.b0cecf145.0","@material/icon-button":"5.0.0-canary.b0cecf145.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.b0cecf145.0_1573324979249_0.49022909925208635","host":"s3://npm-registry-packages"}},"5.0.0-canary.afe0dd1bc.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.afe0dd1bc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.afe0dd1bc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3c7aca1d5440e0ff5cd41fd419c25aa4eb4fa88b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.afe0dd1bc.0.tgz","fileCount":39,"integrity":"sha512-fTPWZX/MhvyEXNdjS+r4Bj9j9PWceckFAjvBXt06aVN4gMyP4tPXRej0MybaVtFECmx8ZrJ68iZknCNfVMs+YA==","signatures":[{"sig":"MEUCIDHOdEk7KzE5AqlyvSoH4X4FJ+suuD7rutMNMErsX2IXAiEA2Tlp1/HG3hDzcAGknh+VQHgemCkii+5bD5kHo91qNPg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyYBvCRA9TVsSAnZWagAAohYP/12w7ksO+DOfNFKQlBnL\n9UloTha6aw29f20k6CLXOLK3dI3Z11gNZBnObU78pQ8yrHAqSg4DHIZ8OK+U\ncZxqApdpIk+lle9DTz8NxGUXCm9wU+SWIhWa1Rvz79RMXl1s5pL6r1vNFGFF\nxNeEhsulvgMMRQHHmERjWfNmIDhpf+hIyA60XdsLg8uN8AqHuc0UZv5PGZLh\nwUr6rvyi0Hexs1jy/s491dqiQ/sTg/0cyn1pgpRLKMdTb7KVKKbbP1v1FsdK\n2ZJbZ7qYoy1sHd7O4GZQtUiW7FRwuuo0KStioXPZUxFE+P3CzkkiqvkAxm/r\nFdccduqNo+oYh0GKxBniab2lRoEuaQZOtrnA+MsyhD5p7C6Ye8L89mDPvlBZ\nCiT9H8qJpqlPjSyShqUyiAVnwR6xkp1YHWFnNQhKQTcw2BblpDhC42J6FLWX\nn0BXkB6hyBMnu3YK6iF2uKlKJTYRTJUOb4x4Qr+LXfFWJ6wGZtST+KKN/rx9\nrc0cnVUtuk3TkvI5V+rtEjzeeek64l35RIP3upBcmUu8tkX4j9oBezGCXZVg\nUMCldc6CLpYcLatfFqsB5qj7y2hZ6acOR+Wzb90bz+2KBVulbBPivZk1l3IS\nbs0scadXhnemg6mo0wUVGS22hLDm/WeX3AVcNVYhMOaQdUm5PtEu0IbLXnut\nJbfG\r\n=KjTh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3bacd69fa765f810b8bf40608eaa3aa2df12bdce","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.afe0dd1bc.0","@material/base":"5.0.0-canary.afe0dd1bc.0","@material/shape":"5.0.0-canary.afe0dd1bc.0","@material/theme":"5.0.0-canary.afe0dd1bc.0","@material/ripple":"5.0.0-canary.afe0dd1bc.0","@material/animation":"5.0.0-canary.afe0dd1bc.0","@material/elevation":"5.0.0-canary.afe0dd1bc.0","@material/typography":"5.0.0-canary.afe0dd1bc.0","@material/icon-button":"5.0.0-canary.afe0dd1bc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.afe0dd1bc.0_1573486703577_0.2441245749431591","host":"s3://npm-registry-packages"}},"5.0.0-canary.b4cfdc40b.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.b4cfdc40b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.b4cfdc40b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"81cb136ebd401245d87ec3164b32ec0e1b34168b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.b4cfdc40b.0.tgz","fileCount":39,"integrity":"sha512-9doUh3CIlIRaGj0Ddf+e3jkTj1vtr6/08Tn3X3JB6SaFi7sF83wkaAwJmj/ghZfjwpzwJyIVQcXV+ySUQJolqw==","signatures":[{"sig":"MEUCIQDQhZ/2YlUWc6/+uYH95QJyw7J7cPAbxi0dAb9dvmeM0AIgSQB10auyUl2DScBuWKqEegG4ok8HY83AJ9VZ0hEvhek=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":453341,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzXngCRA9TVsSAnZWagAAcvQP/0SSCKgTO4Rvlx334sS/\nb5aXl9cbXkqV9BjXoCy1jjDkImRbK51kd+JHa4C1HcLRXIuktOUDxWnT0l+L\nZveQV3OBW1mQmGaTbqPkOMwZSeoz/Fbc55teX5F2YgfpSygCgdiMVovD46/2\nOrE1Rpx0xxgwtraf8dLAmcTcT5uLO0M/gD2Rs5zNpSa9Pg4I0vQUfbN61SRT\nyJas3mX3srkmmHFI5QAgN8kbO+SBkVfhF/zEBnGkINzxVuwTNUo23Ia9i8QJ\nicCa2KrquPBDd8AEBo9GxlYO3D8MnJsAtWbQzeCvdy7WtlccZPPYLjCoq5z2\nnnXaZM3pwEoUXGGrndajiqDTcpJ25lNedZzBMFLRyObZkxAKNI6Ktgpv9A6N\nujq+g+f4vDkRjVnioB/mUNei3s7y/zeWvNLJzqAyHvdy2GBvdILbpXrAXuu7\n45EeJ1HPGg/T1Uke/P6uGYAEPr6PIcMGl6PLF8DQmyM3/VbuTWDWo6qt+D31\n8tvHbdHxm79mODiiXta/K95U3QlQTfVIuUxQ8ZoU+JbnJ/Ov9I+43vYRSK3Q\n0yXzlDn/469Sij4+q6/DTCInhbltGG3+0jt34oyuOySRoRPae5zxHUiuG5bL\nAj6MqfD2XpWhj2+vIuF2TFvZi60JwuHhz8IfQ8ybToW01tBWuRTrajALvZQY\nKIhN\r\n=cPiJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2a81ebd1a573a096ffb378bd1ce7bc223a3cb54d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.b4cfdc40b.0","@material/base":"5.0.0-canary.b4cfdc40b.0","@material/shape":"5.0.0-canary.b4cfdc40b.0","@material/theme":"5.0.0-canary.b4cfdc40b.0","@material/ripple":"5.0.0-canary.b4cfdc40b.0","@material/animation":"5.0.0-canary.b4cfdc40b.0","@material/elevation":"5.0.0-canary.b4cfdc40b.0","@material/typography":"5.0.0-canary.b4cfdc40b.0","@material/icon-button":"5.0.0-canary.b4cfdc40b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.b4cfdc40b.0_1573747167915_0.44043221725387016","host":"s3://npm-registry-packages"}},"5.0.0-canary.525989b5d.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.525989b5d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.525989b5d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5b1fe36dfa4e99a49a75ae3254baa3a1eaef2879","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.525989b5d.0.tgz","fileCount":39,"integrity":"sha512-68raZogH1S1VrS5A2itetT7ee3smwKpXKdLmbIDPNtZ/2TOExGZH3o/6MgvkdqG3CDFLyIhb/bb8cLPwDUrhfQ==","signatures":[{"sig":"MEUCIQDeTk7neEppRk1RzvNLPr8bwKCFyoQUvt+e1m8ft6Xn7gIgRhaKLumDGMALkOWR+4kE7TcaZYBk2XDmFiHRIpnyK9I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":453341,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzePUCRA9TVsSAnZWagAA/JMP/1e7+cU3uPP5TcuK9AiD\nV2/Fhy/JyQT6P3KvQbtNZhrOoGz9zE1+y0BCevAC+jApeQdkRoO751OAZzLZ\n3JsQgoIYCg+gf+zYR77zU+vat7EQWNIx07W/2zAEXpPg4POeBTIaW3JKzpIb\nnJc8g5T60xNQLjTEP6bP3Fbkp2tnidvp0uaFI9tqjl4RPmtvWR9Kq8maUT4A\n6rx+pAofunq/Gp79FN1wSVHQPfkUio4TetoquV5nuWBCFJBKXbBLcQy7bqfL\nsl+LG+whaTzaF5qq+4kxq89rXf0fSoAr6HQehfIYcvQcsNK414pTTINvEnPb\nn5qgoBlthkkP7CIX1JNN4A1Uj6cuZpF5PWP0aTNS427YDxM+ngWbaxb6/xam\ndJ/n9feBYibZpnVTVR9Q4OXPDjPywgY5SFiYLGQ8r6rBW4EmAMPnGiOJEvRV\ngLNVsHj47edjx9Z2lLHXOzfbdsfUTdKaDu2yzMu8Oqj43h+fAdcQZ5MuDEZn\nr/8Iuzctd2C/DQAYJy7cEcNRWMfKcUZH2eIDu1Hdmrfy7EiZjKnj3NnnQLnA\nLy6j0J5wWEJSJEZ5iTJs7BCLFUoPAYtDafYa615VyxnUBbty6eR7jeyppgoy\nLbVIL+Dv3wrSIQaIHz2fEMDtlz5VEJXq8Q5uk6ygMp9zu3WHMt0+55pGro+4\nk6iv\r\n=NAGH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2fcf375cfb22882468cdbfe126d349a996b450ad","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.525989b5d.0","@material/base":"5.0.0-canary.525989b5d.0","@material/shape":"5.0.0-canary.525989b5d.0","@material/theme":"5.0.0-canary.525989b5d.0","@material/ripple":"5.0.0-canary.525989b5d.0","@material/animation":"5.0.0-canary.525989b5d.0","@material/elevation":"5.0.0-canary.525989b5d.0","@material/typography":"5.0.0-canary.525989b5d.0","@material/icon-button":"5.0.0-canary.525989b5d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.525989b5d.0_1573774292132_0.33027513712335277","host":"s3://npm-registry-packages"}},"5.0.0-canary.7084b403a.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.7084b403a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.7084b403a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4e4f6286692cd727d024001d8fec2840a42fce7d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.7084b403a.0.tgz","fileCount":39,"integrity":"sha512-sezTQ08YjwAle5AIJcGwAlPg0J7Ks6PmI1n4vE6TsLrQwZDqCbcRiD73sP04OS+OORf6P2bsd2r1JkH9OfH0vA==","signatures":[{"sig":"MEUCIQCijEFDuVzR4PAsIBDX6yINsh+T47lwsssLSREvHddaDwIgUWdn2esOOnGvgEChjgGjgUEAoxe61mbxl2U1KSdsdIA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":453341,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzforCRA9TVsSAnZWagAAzRgP/2wPvLeU4S2Hyxl6CV1J\neMvCPiMdfDJNGLuKrCs8DiFOnSudUYTfs/vrDwjOKJXd2/aH5HAtPdoWaGlV\nmRGO6sFjLZjKum5n5C7huBDQ5fRH8JIZQyoMH3ArT18a0HYC6qspTfF9X+CN\nembO2X4K7LLlIHSiuAGbeuLoPvblc/rDtKFMeU+lqVXsesxoPlJjKYjw7Kqr\nzXTXvjq0/XqwKvT+EDBf52GDtgoMuRkyWf8yDGOR6Z7zmnkefxGedmQ4QJwA\nhCm8uzhowidFpYZv1SjK9hKRrYbsQjXZb8NaiR1iIX9NUBdfDe7oLkmrMYVu\nzl13Y+oLf1zkkMi51o0qzBKRDZ4ovB8KFSj1lJFubJkrx8hsKVIanWSIGv8g\nnuHfw7g4aEd1yfOcTzFlN/dz64Fc4W5gLvixoQVsVIAhMJXC/RgzlEBguDlf\nns2Mor7c7f0EATtobIgKeAvr0pJkHMLac4q0OMrXLIR2DQJPnuSwTaIgTELv\nlpl5RBXgMX2ujQOYJg2Rp2Vi7DHk/S1EtVuCQKRRyi42nq3wUFp3Xf7ixGRy\n3uEdIeiRrFenpevPiopfNFOgFBrT31HGWn0bgbVylNpGau0zgpETrBH5EKtC\nINWsD+e6QKIZ0j68U1h+6MUwVqsJXEwHmIVu137xmIq5BOEwLY1nDp2ub7rQ\nIMah\r\n=qX3q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6a82bd7664073498cf25876314019948f3295c87","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.7084b403a.0","@material/base":"5.0.0-canary.7084b403a.0","@material/shape":"5.0.0-canary.7084b403a.0","@material/theme":"5.0.0-canary.7084b403a.0","@material/ripple":"5.0.0-canary.7084b403a.0","@material/animation":"5.0.0-canary.7084b403a.0","@material/elevation":"5.0.0-canary.7084b403a.0","@material/typography":"5.0.0-canary.7084b403a.0","@material/icon-button":"5.0.0-canary.7084b403a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.7084b403a.0_1573780010911_0.030923148947201495","host":"s3://npm-registry-packages"}},"5.0.0-canary.3cbee6dac.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.3cbee6dac.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.3cbee6dac.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7a75a937aefe6506a23639480eac12b66f2c1c08","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.3cbee6dac.0.tgz","fileCount":39,"integrity":"sha512-2+Vlnnoom5SEEF5tJyOVy0sc0qvzjC7s+9GKNmSE6d7tUw/NGQ31RUN/t0fHTO34hJb1dVOxIusVNs6DqED+zg==","signatures":[{"sig":"MEUCIQC8IddY60hnbk080zuV2lqAjkqMlblREbcPf+j1eHtW/AIgYw3AFY42QYAYrSkyqA3Z6oh90hP8RPa/ELClsjPZrW4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":453363,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzye6CRA9TVsSAnZWagAA1QAP/31uGLGMCv8FOhhtOTvo\n2LI85jyNMZAkgns24r92PxTmrf3BlZR/eNaByts5sdNlea5z4cdS7GFW+kFZ\nqVPe081ro8AYxmuAVuUiP4nC2ekv5rGWPOTkh4Hy9L3PZKM++Mn5xxgRducW\ne2rty5FeiWdbNZ+MfVzDaM2hCdVurwCakjOcGDulrtGYtfWEUjIkrzo43Joc\nvjmH//FB7InByxmsAhllsfSC4TCzpLMUqS72tUMIiHWCKsz6zTjmxJWO8lzb\nK4kEgoVIIhNgqjesPvbIqdCRgGLEwJbwt2/000GGDz4HIGTFG1apSpiQ/Jil\nveng1hvAPFxxpKg+/a1xDWaAYLOz9BcbUgRK/SImKWtGJskoqFq66xrXux54\nLLk5OmrkneyMqLcQgYHSPtGimOENjJxmL3PdLxQqhK1AJQ17vqIT85LEbIiw\nTkR2WuakUoI8Plczgo1/mqsI+PjpzIac94a0gVMhkL4TMjpxwPSPzfHfNoCr\n+dA702sIX9+uh9r4DP1MQdgWTz+N+0yT/fJg76ObWl8vXgn+nbf8S4VUFnjh\npE6LRyRiHyx2P1+F9vLlL5+2EkZFJRGzUHs8WMZrW8lWF8IjVBa/ELbXcX5O\nAUt2Q3svpB4Bxgvmm0vzZyNNkmHCLMj+ekqqQrbp83rX8L7CXIiVmfLEoEUx\nMeb4\r\n=nxV7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5ae37026c572ffe6707702e535533859ddc81a48","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.3cbee6dac.0","@material/base":"5.0.0-canary.3cbee6dac.0","@material/shape":"5.0.0-canary.3cbee6dac.0","@material/theme":"5.0.0-canary.3cbee6dac.0","@material/ripple":"5.0.0-canary.3cbee6dac.0","@material/animation":"5.0.0-canary.3cbee6dac.0","@material/elevation":"5.0.0-canary.3cbee6dac.0","@material/typography":"5.0.0-canary.3cbee6dac.0","@material/icon-button":"5.0.0-canary.3cbee6dac.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.3cbee6dac.0_1573857209616_0.9603349312651712","host":"s3://npm-registry-packages"}},"5.0.0-canary.591a6ad44.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.591a6ad44.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.591a6ad44.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e54d46c45c7318979726f38d08dcf4a23cdaa725","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.591a6ad44.0.tgz","fileCount":39,"integrity":"sha512-AXNMC7wFGYLSAeEzwFGc4VvXXLt9LoHPeCtxQXpC7l+hOKI/4pfMw4ysVJTuddgkNtvL3HNcNj5Yjx/7I7W2/g==","signatures":[{"sig":"MEUCICbUYitznFVxCIw2MevmjxkXsx0cv75uHNr6zfHiZnspAiEAvZ2+QKodzzyDZAxTYecsj40hgZGPGJyZB8OVsNdl1Mo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":453363,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd0y36CRA9TVsSAnZWagAAIdkP/3j4p1rlC7y7jStsUzIy\nCkL76VmkrGXbS1SPdofJAleFLmpqe0HsyfqtQvGNojk02Wjx/2g1ZfJ8iBNi\nCn71plZR+g9PKqS/AC9pMubJF+ao8TcRpxU6n+z+d3CjAhhruYeL+SU+WXH+\n5rnV88dQVw/E/171ZdPd2tOT7F24tfDbvjkXLLhbZK1OByQSczmOqvgp1Ib8\nzFTs57Lx2Fl7BcqrjWGjLYMDzjwrUlEoSpCSAyFfYVo7JH/jKQuJWBy8w1r3\nKyC7RCsy7omuDVMTGj7gAymg7nYqSoOtZScGQODSvnDDoKkWW4RqM0xZ6QKb\nQ5m+sYaTvqk0pbaFK5PBJbH7vu0GFqi1kXucW2pmt8UD8aJlDEwzPBzt5X/H\nQE+HPInRAh8RkfttxgpCqqEtRS9MyhBwUB/AY+SO3Vq29iYWGVI5mYmQTqzG\nofQ0mUA+tXeZ27WJ8jDAyxm7XcdYQ7CUwNsaxufogFT068Jcuh2O3Eb0eof4\nRKnqGpoMbkVYtL6/XbhE5yWPnxZVBFgi/2bxwngucskflEPD4ZL8ZWo7jw4p\nlFv50sm+yOruXRoBITCL+EXOKsGfbNbDW3AAdrNKdVc32PpjAT8NBMvpuMpr\ne51ceJoQqCGLLo7cHa9DCJQBdyXZ4uBtZkGgmRxm78NhvhhaXvMqdY09LeX6\no9kp\r\n=AxS4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b5469bc1cbdcbb7c9926006be2d2a65c3211c220","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.591a6ad44.0","@material/base":"5.0.0-canary.591a6ad44.0","@material/shape":"5.0.0-canary.591a6ad44.0","@material/theme":"5.0.0-canary.591a6ad44.0","@material/ripple":"5.0.0-canary.591a6ad44.0","@material/animation":"5.0.0-canary.591a6ad44.0","@material/elevation":"5.0.0-canary.591a6ad44.0","@material/typography":"5.0.0-canary.591a6ad44.0","@material/icon-button":"5.0.0-canary.591a6ad44.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.591a6ad44.0_1574120953957_0.8076212127261728","host":"s3://npm-registry-packages"}},"5.0.0-canary.5729943ba.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.5729943ba.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.5729943ba.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bb4dc7f496c28dfa7581c8d608338221f7cdc454","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.5729943ba.0.tgz","fileCount":39,"integrity":"sha512-INAhzUbXEBKPkPaY7roStBc763ciScomLiP0fwQIzK24hUUEW2TDIt72L1N+65BIK6Z0mJrmayXOe311QiZKMA==","signatures":[{"sig":"MEYCIQD0ZeJTJWNcBod2mSLVP6d5Kbq9Hc4r7cTvkJGF7NFKOQIhAJ73rMdMB2TSCMGyIhOiDWia5FRvyP9qALYav58UN7JK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":453363,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1M0ECRA9TVsSAnZWagAAAooQAIAg+l7INDvw4zpSSLBL\nSfvfa5RDGUT3hPsWDd9GJqffw9ORYgkUEZdxQXP8Q579dafq4xp8OZ/cWkUV\nePql7BM9BPFuBdMi0zaE6o+9Bi/c25iMwJbkEdCblVhbk7YFBLb5LqNAyO3j\niaNi/Y7Jri2O4tIgWLySjocJsWWUaHeN9GlTIMI5t5q/IJ+uVYFF+cG5D//z\nU7mazPbKkzFaebyKEY6M5MRUrcKa2u1UyF9fH31VNXPW9tE93lC/hkkL3nLR\nchR/tNPhGCY7jgoIwpy0yzvsCl8QUwoLbzk0AnJqrP4zjRYQQ3lrSLfT3bSy\nF4Hl8vMKn/PQSHDMmbBDI46scNXMq4QQOwK0YS5HZSqLq89ozcN+23ocvMEw\nN22ZvAZ0hC2stHp+MlGqE57wR1k/YLdwJv5eQylMON583fUFJ7EcbPtWb9ZP\nBJtfUeJSqLG4LpqJO6d1mkN+F9KJ6OFlhWImtNraOgRXqnIHNlPJdug/MNk0\nGKgWAaadPFjM64z5OOnQotpg91bMp7wX2e8rTDXGx3BtKWC3/xC6SNHzmRJF\n1Y1k/vYbW7j5Bt39P2f0E5i66MNOdc+Nm3Xmo72rjwm15pV4MCaAOa0m/pUV\nCDd+iWjnq2PyN3y/9W8IsIpbyLlqnc4a1jeXrj2Yx8BpCr9IwvfgWfnrmJcA\nBrgG\r\n=OynO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d49cf0658a3964963bb2b39b2e3a010615c815fe","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.5729943ba.0","@material/base":"5.0.0-canary.5729943ba.0","@material/shape":"5.0.0-canary.5729943ba.0","@material/theme":"5.0.0-canary.5729943ba.0","@material/ripple":"5.0.0-canary.5729943ba.0","@material/animation":"5.0.0-canary.5729943ba.0","@material/elevation":"5.0.0-canary.5729943ba.0","@material/typography":"5.0.0-canary.5729943ba.0","@material/icon-button":"5.0.0-canary.5729943ba.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.5729943ba.0_1574227203671_0.6416111891653349","host":"s3://npm-registry-packages"}},"5.0.0-canary.e89750dc7.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.e89750dc7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.e89750dc7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d6885dd0d646b2032dee4040ed8cc1d50fd55dbb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.e89750dc7.0.tgz","fileCount":39,"integrity":"sha512-0Vs/Lgty6cjG8w7G5KMrHXe25kak8poaRFONKrPA1iZVUzY28vsKgOTr8+wWKXKAChr1h12iXfQ4rqwH6pzgVg==","signatures":[{"sig":"MEUCIFKLJ5rAZRe7a/oBmE9f3cD/7lfNVVoLQjHupO3zeEFpAiEAhy67JKZZEuANZNlX5JEXOUOdyrVrHd2hiFi8uP0rbKY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":443769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3dsZCRA9TVsSAnZWagAALb8P/1SieIVcK8bs3oxS4UnV\n5BFtI8Y8oSjEC2X7RUl8Du2XEsYGHxygiubSlF9QmRiwWz6fS2N+fIsN2V4M\n0Y3DuSKCjmn2Jfj76nkGot6JUjptmQIb+564ALOfI4mgwKPbeyFL3m+8vHR5\nNdiQaiV64HleLtIEdCiufpeAjk2Blt6Q4+kdfrwB0OXHYwES66ulS0yT6RKM\nxAVkJjbRsXvy+J5heXwb4iKsIshOcM4twP204LYmvu/F2Pj7temrpiDKAFjf\n6R9Bs8BnpzfCovmW+qZfwYk/uWS8L1s6obvoRzMDpxXMA18qfdTldydExeLG\ngLWQip4upLRXLmnK0wfa+8FqUH1En22xCxvmpVrgJnqa8Z/0Xne6BmFgvRq3\nO0ZINC3/QbWFSPNqeKljN/JJwWZePf4OlgL6DPOCahpGgrOP3hF8UY3qVLIf\nj6pN4WVOuvvtluZCbnjZX86/8r8xnb6hEO2IaxoZfk1WdSJY0x48zpzw6xA1\n98nLm5S16ct0gmWxAhIExsWFJcLNzOaPTM8vyJPsigsUffv9M7vZxLj1RI/R\nHd85chMzStM3j9W1NhMIgptH0OwppIQF5vDx5OiRL/9nClFLAbK765A6L7ic\npGRY4ueFt6okfUaeJ6o8M2pfnUTlw3JmCujrZXACQcODn3MporwFjnAk15Q8\nEY5R\r\n=UuAg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2a166b3e817207f685f4b112635eeb21f5ef0789","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.e89750dc7.0","@material/base":"5.0.0-canary.e89750dc7.0","@material/shape":"5.0.0-canary.e89750dc7.0","@material/theme":"5.0.0-canary.e89750dc7.0","@material/ripple":"5.0.0-canary.e89750dc7.0","@material/animation":"5.0.0-canary.e89750dc7.0","@material/elevation":"5.0.0-canary.e89750dc7.0","@material/typography":"5.0.0-canary.e89750dc7.0","@material/icon-button":"5.0.0-canary.e89750dc7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.e89750dc7.0_1574820632913_0.5684749404439207","host":"s3://npm-registry-packages"}},"5.0.0-canary.3e560b33a.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.3e560b33a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.3e560b33a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e860c1ce2ccf5d44bcd1ccb956677969ccc723be","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.3e560b33a.0.tgz","fileCount":39,"integrity":"sha512-0UB47vsQVma82rTWpVwLk99KnYYLcmgWjFO6MZhV1fdvNN0ymmFQTRBO4ZJQwb5rkNvVf0rQAgJLTf9AWVuoow==","signatures":[{"sig":"MEYCIQCUXr0aC9VC7nAT4yRwsdI0htCiDVW6w319z+yxQuVyJgIhAJRhhqt7fBl9juMAFzeB/4xqOrfIl7nlhpONVUQ4CnX1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":443769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3dtICRA9TVsSAnZWagAAIcQP/361Fg8senX6Aevm3b2C\nBrA4Vz+gHNZCtEteMwAxhL6dNGc66eRx/hH3rhBcF0RLSvYga68gsItlggJo\nVQMBTsH8W9tz20eo3qPjJMWG9+1KRfnvK5tuvZq6fgNdZFnofUDrlFKNdy8q\n4Pykz8fPyigLAXDvtgtLT8PrfZFeSWvB5dSm/enIcrQRrVfZO0aHuallmcW4\nuWgp1T46GtT8kFMopqEAe5A4swYEZn7Vndp/SQic+ndvVr5c1CC02/ZF9Jcs\n1h82ory0FyEGA+Qy/Cuv4jk8POmTl2KAS9mJXK4kG5iQWoTYpikpMyq/YcP/\n5JwdbqPzk4k8HJJtoCb8Y+tutcyA+WmoDCYRZzsJvNIqNhomdYbuHqRNzvW+\nrGiX7ufEimzF/O/xPTFUv361zLc5ZZGSXZZzHMo+QYr73d4GwdBjIxNQTFks\nfgaso4547C3hU51B3FasZfM8I81Z7d0D9tuRVB6acuA6AWCpBjEYp0m2g6YY\nJZ41yCjijR/+VOOA6Afw+FqclXhv3IZnAwZls87PYXI5luqo3Htq2zF6ispN\nOfFwoEMkmBzswvavXC7SQUmeHrGGEsmJpOig64MEVYOVFBPmCvQFDyq5vnHS\nXC0aMV0F1ySML+IJV8Ebig8CdtCJMEkv03fYovKN8rlED5sRVJP9b1NRFLsi\nJR1f\r\n=Mi2g\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a86efd68e1e91c0cae784ad70b0e36c13c923dba","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.3e560b33a.0","@material/base":"5.0.0-canary.3e560b33a.0","@material/shape":"5.0.0-canary.3e560b33a.0","@material/theme":"5.0.0-canary.3e560b33a.0","@material/ripple":"5.0.0-canary.3e560b33a.0","@material/animation":"5.0.0-canary.3e560b33a.0","@material/elevation":"5.0.0-canary.3e560b33a.0","@material/typography":"5.0.0-canary.3e560b33a.0","@material/icon-button":"5.0.0-canary.3e560b33a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.3e560b33a.0_1574820679763_0.38263570298468563","host":"s3://npm-registry-packages"}},"5.0.0-canary.7fd17ce5e.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.7fd17ce5e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.7fd17ce5e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3e68e55ec0ab32af2916fcd60c2766be99d9b81c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.7fd17ce5e.0.tgz","fileCount":39,"integrity":"sha512-y9yRV89bOt3frVZMpzu9ANEKZbVTsqBdaIENFlmptiuhQOz/ZBqnLQIC+ocd+5N8rUh+paK2oWFOWyduQQx47Q==","signatures":[{"sig":"MEUCIQCsMV4+W2jouKTP98UVev1BmqX4dnpkt00FA8NJL2KSRwIgWBwEXR/2qix7N/SZTCOXZLWwJfFbpOswkTZbmE3hGl4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":443769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3dtfCRA9TVsSAnZWagAAN5UP/jic0f4Wm44zqUQqMIIV\n/YfdlmaGmeqNNA+Y1okVnjyMgCPKMnqoJaVOcrkjpT8LGK0DucHzUTGQQK1h\neHw3omUybEG4+XKr0JTQ13SPC+6seevCQRe8PBb2XqDDjlmRTfKcvnu8/zES\ngNAEYco4C/c4ZsMFcdQCc8kiY3plzuMXRHAnGcV6Dhn+VLmZIzjEpI7A5mUt\nUNDbiHlpbRAgGlvxFm5K2CXg5hZuxeDkwe2OOLoFHPbSHmAW6UOP0v5lSEnn\nOlxc5kvFxbKtIgVy3l5lLQmC2Hks9CxiBsMUTiztdm3z/YwnIfht/MkXDzTh\nSx36lngJYaGiATWMqVVY7FOwG+WF5WOCQwEUjqJiEb5tJd8vNf+/OnACWS/a\nvQRh62Yh3puSKzWztTHXylRfkh/EhsIL9afallnFkWg8vl/cPIHL79y6VAfl\niixIOMuXBT9Y+R3vEBDyQun9aSPSnJwNhMPBg9QbK1BmSLQyZCxRdI3tSo7e\noqBM83eW9DL3CMHwnn/bZiy860knEm/AsqOeiNvCpKBUOA5BNOZc4YhzYcrY\n6QsF/YLcOWuOPwImREE0TIQop4sfOjaDzCENn5uwXEvUOZzLFhgm24M3IIE1\n1MsM8xsXnAxGKKlnwbofw4BNmUBEwq8IYAtAgrRCPFM3rxLROp1etHA0W730\nNfmG\r\n=q20a\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e798e5bcdab4c998c88b2bde71412b2d38dfb262","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.7fd17ce5e.0","@material/base":"5.0.0-canary.7fd17ce5e.0","@material/shape":"5.0.0-canary.7fd17ce5e.0","@material/theme":"5.0.0-canary.7fd17ce5e.0","@material/ripple":"5.0.0-canary.7fd17ce5e.0","@material/animation":"5.0.0-canary.7fd17ce5e.0","@material/elevation":"5.0.0-canary.7fd17ce5e.0","@material/typography":"5.0.0-canary.7fd17ce5e.0","@material/icon-button":"5.0.0-canary.7fd17ce5e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.7fd17ce5e.0_1574820702668_0.6437015853063863","host":"s3://npm-registry-packages"}},"5.0.0-canary.ec729683b.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.ec729683b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.ec729683b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d6aac091082c4f18a296ced3c2db89897c64b5c1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.ec729683b.0.tgz","fileCount":39,"integrity":"sha512-a837XDadpPLyLg8h1PNO3A5PdTPR5pn96E09Ev+R8DzKri/oS8lyxDXL62tkhZJMyEMjQ9b53ki1wlUGeF1eSg==","signatures":[{"sig":"MEUCIA+or3UGHn8r9TwUybpVQmk4X7I4c3oeMlz9j6N40WnvAiEA9Vb3UWi/AMZT2OEiQ0sLD3OSUIKmDXfv8ubbIyRF4Cc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":443769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3pyLCRA9TVsSAnZWagAAd+0P+QEAhGHx2GvEKArEEEQF\nhK9KWZ96HUInA8CN5tKd22gSnv6AXAdrVklHKuYcWEBKImKfOVcANuflzp+J\nLZbgWL/vPV0ExJIwqi8i26LPdTqf0SIKxsm2b2f2hhXp0fu40qxC/25q63Xl\nlL6DgMmg2msVwU4E+9nRxxxC7slUNEswpDX1idAVxq4qPzcMBsw4zWLZeysP\n6hr3HSNjkciiX8ZtelkSBjqLluOmPeq11y2Wmr4phooIdgbNSTCVqldaYwaO\n/8rn0dKEpVz4MH7/xfPECECIinb8t5i0b68T/bxnIQ2Mu2ol+taF2cn7/Ukf\nLlmPwomzflqrGfblFUaIvYIC7jKTG9iplLC7DqXSZuKUPevdhGFjnQdKmZ6u\niWx0f9JQ+vk2eCgVT1KOTzd02aIuZI9CIpmnJAJoG0ewbaGQBhKJ4h2UUr+4\nCBx0azZUHFzc9BK/WiG4uJEV7LiIpOVmPcI/sWq8fYTVeCZceZ9MkHd96FIT\nWxnyE5cqH0GdHkbtg7/CbR2/Ch5QKkIAkiFIDsR6N1UshotDS7VHaslIALq7\nV9S7FhN97Hcy8Bh4cAdbe6frvdGTcoTJAHZMA09n6TuDfhzZFbYNPmQwVbKM\nz6WqQu19gQo1BrnvWjHqFIzAaKRuFeiKq5ezbYfbTSLW6Cw4mlnCa2TCfg/V\nFYYY\r\n=byNp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"919526f37cd7606c0de4cc409ed4c1ead34b60eb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.ec729683b.0","@material/base":"5.0.0-canary.ec729683b.0","@material/shape":"5.0.0-canary.ec729683b.0","@material/theme":"5.0.0-canary.ec729683b.0","@material/ripple":"5.0.0-canary.ec729683b.0","@material/animation":"5.0.0-canary.ec729683b.0","@material/elevation":"5.0.0-canary.ec729683b.0","@material/typography":"5.0.0-canary.ec729683b.0","@material/icon-button":"5.0.0-canary.ec729683b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.ec729683b.0_1574870154857_0.03252183410637577","host":"s3://npm-registry-packages"}},"5.0.0-canary.b8bc4a26e.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.b8bc4a26e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.b8bc4a26e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"aefab63a9047a4537cce147e54edee4cb3f22bd8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.b8bc4a26e.0.tgz","fileCount":39,"integrity":"sha512-KH8ltjRgm3Qk2T+2LlkAsdxGH92qf+ZfeD60L7M6xzsDJPw+RDTyyvkkpXhXQ9ZLwIi9VFabELFYHgNwxFf9BA==","signatures":[{"sig":"MEUCIQCBJP0NM6oq8dsVpwzRUf4q/uKgkugXYlPW4LxRxu0LnQIgZwnvfzO7+KzJ1DoBzgtlljs6tAinxcATFAmHkGoRxXo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":443769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3svGCRA9TVsSAnZWagAAQ+gP/1j/XLaa0eLJO6Iv13/g\nlipPqfyxii6N+od6m9oh2dCFhHZTejBQT/i91q8xEI06kLDvcVV5j1Vzcm7x\nEHG+hXd5p0QtMDcg1ZE3Qma5k1nucv7uB0TarAbpMtugs31CmlD0IgXD0OFa\nMVJhgNjypKbaN96/h3Kr1ALccDa8GYZZb7RQBnJNtdMVDWGI6OmQFVlR00q7\n0hOTKfIhb7Ne6ZHFEGtFkWLMVjmmEdwQXb/nHWXhnrFIzY/n5dbBAQLc8y47\n+2D6l83um2pG20MUuzMq8oRhsOAS/UxkwdzsDsYgn36B60iPd9AscQ3P/7PP\nP3yyfFVY7MxRXijhcvdkX8OH8fJVUFwljhJRgduMvKFfqCDg8EEqSHdGTbFT\nZlDf4ZhDXaXZcgciWcfIJ7xre39vPbbW5G+g0N3rk91JBAO1C3BDylGjWv+J\nUQRmZRjTbnXBbbBhoFbtGlFkNcsd9aekoO6L98FxjtJaqKmzR4VjGDwqfWl0\njN0x3xB+bJ6nINE0yQpSBfYDNftIZnKqAzZ2nn0dYACCPiyjBe6X5AS8hKdH\ntiFgpQS5AK0hByG4mOcnYQdriMxKrqJbRgKpN8ghlEdhKcjWa41QKFRlLCFq\nq/0/vExdYSY36ZSUk83j/oO+UIIQt2UcGI7+koIc16SXn9t+/dQOEWzh2sVh\nKGMy\r\n=PxRx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d04615df572bbbf2ab2eeb76ea45696d0a40563c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.b8bc4a26e.0","@material/base":"5.0.0-canary.b8bc4a26e.0","@material/shape":"5.0.0-canary.b8bc4a26e.0","@material/theme":"5.0.0-canary.b8bc4a26e.0","@material/ripple":"5.0.0-canary.b8bc4a26e.0","@material/animation":"5.0.0-canary.b8bc4a26e.0","@material/elevation":"5.0.0-canary.b8bc4a26e.0","@material/typography":"5.0.0-canary.b8bc4a26e.0","@material/icon-button":"5.0.0-canary.b8bc4a26e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.b8bc4a26e.0_1574882245815_0.7719800348717623","host":"s3://npm-registry-packages"}},"5.0.0-canary.f978109c3.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.f978109c3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.f978109c3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1cb2fe894870fc9d8895790b1b5b1964e84fbadc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.f978109c3.0.tgz","fileCount":39,"integrity":"sha512-toSW8jWIcakxnwHMT8ocPBZ/moLIsY9fZuj3FTvs6PzrJruZxj5xMKc7JcDyHYFIpynqk025c23ZTLiwI+LNRA==","signatures":[{"sig":"MEYCIQCO2bAdt6qySJbxvE3qUf9pufnGf2GxFRl/+cEoFpA6cQIhAJifupbKPI6RZuxsL7Nsj7bHG0jI71HP4EVaEHd/5cRW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":443769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5UT6CRA9TVsSAnZWagAANHsP/jGHQcChR0ZsD7hBeXDz\nKvpoPkhO77nwe6zqwCQs8VPwvbrjxE7yC1ZQpMyOvKXfSVgHoteLvOsOYU39\nxViNKL+tphlouJa7Shbk1t8nfJmcB606AsQlmpVEFs0INEzgN80v0ib+JqXq\nGGsYK+dq5jQcwTcD38Kr65LnYU8eQ+YfGGtmfosNAmSYXf0InPTq+86ea9uO\n2pXe0IX3+jCE4MvO1uH4oEoAlKC/Kwwkrc9k1YSU1y9f4xXXeDTPy3CLhJG+\n4VYJy9AI1voE2h3KGyYf0e03aQNgYohzv0+BjYox0keMOwcfwhzO+4ASc/MX\n9XRDNtSulvAobtp7Z/O1dvu1pt+6/sqNDbiCYGv748cswkTOD6ylW08ZTvSg\nkJiG5Be9gCstq8izeepcjfSjkWQd5J2uhSh4XlKgzwhws/mVAK1D/zXY0w9H\nGkeQdWdJOKx7a9cefM9l2idJxY6O3B/iJx9Bw0jtynTEks9IQUqVvgoj44MH\namiBG1wD17dyevs9zXDr7rpFeOGDIIVmVfQkDOQUIFoKkQHj7HspamK7xfHF\nYMO/z7C9p+OFGUPs/YWUuA+Q6pz6EkEAJ/bLOs+md/8O2ViymV5D7Nq1MGAF\nkoiXPtQJPDb2DOvJ/zXcKUHibUhuanCDNTuoh6zWV8T379msNCtyutXar0ND\nz9vZ\r\n=Rr4R\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"27bb2072dd0bc0aec40da3282431f7513467bbd8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.f978109c3.0","@material/base":"5.0.0-canary.f978109c3.0","@material/shape":"5.0.0-canary.f978109c3.0","@material/theme":"5.0.0-canary.f978109c3.0","@material/ripple":"5.0.0-canary.f978109c3.0","@material/animation":"5.0.0-canary.f978109c3.0","@material/elevation":"5.0.0-canary.f978109c3.0","@material/typography":"5.0.0-canary.f978109c3.0","@material/icon-button":"5.0.0-canary.f978109c3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.f978109c3.0_1575306489536_0.6710403309566739","host":"s3://npm-registry-packages"}},"5.0.0-canary.ad9dfe706.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.ad9dfe706.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.ad9dfe706.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cc2c70c82820808db23839aea9d2ca07fb797ca4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.ad9dfe706.0.tgz","fileCount":39,"integrity":"sha512-rWmjrF7Yg6vLjFb4tJBAETUdDOnBaEePykN2APoBm2r0cqVLCVsYEv2gbcsGpcdypQPlMJ9QATh3TTVfXtJHIA==","signatures":[{"sig":"MEUCIQDu/3XCyHx9lRN9LyqBKSTa5R7CHocOEE9OK8JtrD7UjwIgW4GbIxuhJxHa9KkdXeN5P8txDRqikgvQ+ujYqM81r88=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":443769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5u1bCRA9TVsSAnZWagAAyZ8QAIpRLruL8/YX3fGIfdK8\nUqaC1xPfWyVDSBh1eo3F5KPaTWpL9qINFjVWNG+DjZ5QVlpcPaUqq/xHuoBf\ndHLAEgPpkc/JahzL7IqR6d6RVVQW8kGVBSNpctQUhmqh8fbN9llCncToqnpj\njutfAGZ78jOi05vW+Wg9WHOxb3sm67HbcY1aTWBvAS3HJu/3M+ju1bKwgIxS\nZ0am34E8GckuPK2pOn5/C4/Beh44O6z+f6syJ5wYZuOkhT8w5oCuYRJF7Jwa\nYWCluLuSIp7QL1jtQ7YrsL+pvUyjzZR4UR1aQ2Gd9t33QOq5ZkhClqs91+ye\nf/nltvlQx2UEgUwD1LwoO1PNxeEBeqIaFG3LYjvYFF6ZhbsaqpaCeXqc76w3\nGYZMruiCtDx+t1ySgBUxyUGtmP3aPbY7zgrW2qCNiPs/mIUUKSY6Q0VJ83Ny\nBMSLH26CQSqlAXghCS6EAO+kGGTZHDUAewBwcxUSaLw+L6cyozoqXNbB56B3\nNjhRO4NvE5Nx5oAv0uLoZ6t3VW01eNO1XftdY4S1uHw2ZAX076q+Pp4Rxeag\nvFQQG4PIyTpxvGmM/76gxNIVthUAQVIfBgMin8ON24c4Jtl/FdD6TtUFkW10\nGIW7ouOn6Q2tOl/KH8yuuqnH3mRUtSoPw5zzyokwzevjV3J04OjAY2x09Y6r\nsFFB\r\n=Xrle\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ded1665c7a532bca8466d5bc100026f56ea99715","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.ad9dfe706.0","@material/base":"5.0.0-canary.ad9dfe706.0","@material/shape":"5.0.0-canary.ad9dfe706.0","@material/theme":"5.0.0-canary.ad9dfe706.0","@material/ripple":"5.0.0-canary.ad9dfe706.0","@material/animation":"5.0.0-canary.ad9dfe706.0","@material/elevation":"5.0.0-canary.ad9dfe706.0","@material/typography":"5.0.0-canary.ad9dfe706.0","@material/icon-button":"5.0.0-canary.ad9dfe706.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.ad9dfe706.0_1575415130563_0.6470955594989227","host":"s3://npm-registry-packages"}},"5.0.0-canary.5e45d77f3.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.5e45d77f3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.5e45d77f3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cd1f669c4d71731800587c3edc63aecb4946188d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.5e45d77f3.0.tgz","fileCount":39,"integrity":"sha512-yRx8lwgs6gst0Lh9I+KXuz5mW6j0VXoV/cALawpmp+kKg7jWIMkmGPkR5CX4zSX9+rhuMje6t/EkiFuAxoHj8A==","signatures":[{"sig":"MEQCIEmv5YileZ9xDmEzbvxjoYA00ewCOj4gV5qxs7FZQQQ8AiAyq/rEIcq2d3yd0qVXr4QJxwHjn+SwDwfc88rpz7sdgg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":443769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5u3LCRA9TVsSAnZWagAAnCgP+wcXmVBgjReZWEB/ge+l\nFvLtVmjH6WVGu/6HTWh4/asi6ft934GZvK+AVHSKHKvfV6nKE+iZmLvJ7UAt\nxJTft8hW653KHUymiXPWD8PUlSy6gGSEvNzTI+mezkWMsADjltEajPC1S1b+\nXfFAri8naz1FqLPiHB+KHqThuyzITpec4uOGvoD70ZylYlbwJczX3WmAG5T5\nCh4UUd+3TfsPqJsk9ixO4ZjwGk36BSG206znL4lZU94Kwy2fmSRc7U3PnBjb\nR+QR44il0lpafdzNx+kAJd/M6nb7CYZdUxSR3OGIKtVsOorMShhyNUk8MLwo\nTAkuWpJ19L4W3zZXJ/O5/5n9+B78R2TboFE3pW9Fxm0/s/zBlyHIYQ1IaAiq\ngbp0VTzhN3c0ZjHW71e5s0Y9jebWkcXE8+w+tKdJ0LGl0Qx9G4eH5NMIVcHl\nx/+cevWqIgdmrLF+9SLtOz563oa9MyDXa5rGepOQ3Gm9fKhDwiat9vzj57OQ\nkawWLQMpKGnRFA2lUPZdpTpvmeZO21sNSNokvbb2mjzemcjUWvjWZGM/YBFc\neQqSYtstLKdpiOmSg0xEnf3CMScNkdo9hH7yetHAIYaWAttzDHMS7J3VNPda\n+PZod7FQJTp2d/egmRuzwCH10r7Rqw9+vW+FYN0h/QjwtTx2XSVQWXfCZh7w\nlyEm\r\n=4IhM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d7a20a5fb792fe297fffc09187b6dd3859babcd2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.5e45d77f3.0","@material/base":"5.0.0-canary.5e45d77f3.0","@material/shape":"5.0.0-canary.5e45d77f3.0","@material/theme":"5.0.0-canary.5e45d77f3.0","@material/ripple":"5.0.0-canary.5e45d77f3.0","@material/animation":"5.0.0-canary.5e45d77f3.0","@material/elevation":"5.0.0-canary.5e45d77f3.0","@material/typography":"5.0.0-canary.5e45d77f3.0","@material/icon-button":"5.0.0-canary.5e45d77f3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.5e45d77f3.0_1575415243083_0.17080848754396882","host":"s3://npm-registry-packages"}},"5.0.0-canary.d10e8cdf3.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.d10e8cdf3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.d10e8cdf3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"866a6374b0e71702e78c919988beb079aefc7dd4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.d10e8cdf3.0.tgz","fileCount":39,"integrity":"sha512-oUnBQvBLD/UQEGypBYBTOQ2KzxWd4cZPyvguF46Sc0ZHLSMnPzEPN9vRGMC9rH1rHD8cIQTUTY6wjmabRD+LeA==","signatures":[{"sig":"MEUCIBpQxq1kypPNwWE6ppw0nqS5HpKRJkEZluOCc8xeg3w6AiEAw5gbt+nK5450Y3311jGUcLguT68zuZhPFJWBTaf8gPE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":443769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5u3mCRA9TVsSAnZWagAAH4wQAIehKXRGtbNmKKmZjjYq\nlRuX6150jx2AdaOkmWyVvKABckIXUjQp/iyXC/i/XAxAJFOuKifda2qGstFp\nqfg47T1TnvAUGEgNy+116OGzPgLMG2QfvUYKHpexaGlQGj1yz9WYEakSvFsJ\nrTG7CTklIq6YPiiyTSp7VG/GFa4EKtxkMsnvNhXneHoHkJyLZww4dCKCQV4A\nVaJx9D7pDKV1sFj1bG1wr5QdsfZ5SL2wv7Wpqgm1hv7dpfoh3qxS3ZbLAXte\nRkFLscsFXgoAwsLMAMeE85zwFqh2hwCOcB0uLQWh0IxadLj48ASNKYxyg3tE\nBFMGt7qtKT1Z+l9nkmLHwcM+Ttb1KVXNr3c+k7b9SDOKxUSqmWZztsNme8ru\nj/gO8FFIodh9Grrgmg2X7qJAU+RRJ/ZWpqI+1PFmUP/e43tzBEmJvPX2GBOE\njJzFszN4po6jjbnfi2IkYyw/EzNISSTPLspvZ1B0appl2oxEKx8vRn/vKP1p\nA6kA9OH2xK92Z58KWfSfzZQ6IhwNQ/6laOdu0VLoV1SvpSzXab4OQuEK5Uz3\nYIBLIaNRt1zVzkHj5JENuuOFDhj723iQ6hn/zOskAvT7CBH0z1OXLUVMkxei\nOhdsUxUcTY1xwRL19ZrhiJoZpJUKlsiHsnlDjtn+oPL35/j0JtX/uEDP1mCt\npgcq\r\n=Pz8G\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"855cf0e11682e4f0f44f50292556ce39ae2824a3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.d10e8cdf3.0","@material/base":"5.0.0-canary.d10e8cdf3.0","@material/shape":"5.0.0-canary.d10e8cdf3.0","@material/theme":"5.0.0-canary.d10e8cdf3.0","@material/ripple":"5.0.0-canary.d10e8cdf3.0","@material/animation":"5.0.0-canary.d10e8cdf3.0","@material/elevation":"5.0.0-canary.d10e8cdf3.0","@material/typography":"5.0.0-canary.d10e8cdf3.0","@material/icon-button":"5.0.0-canary.d10e8cdf3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.d10e8cdf3.0_1575415269953_0.913197715982554","host":"s3://npm-registry-packages"}},"5.0.0-canary.a5dbd8a2a.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.a5dbd8a2a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.a5dbd8a2a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0e60eb93e98f339d044d6853417176874faf2d73","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.a5dbd8a2a.0.tgz","fileCount":39,"integrity":"sha512-eZfrS89hINLwjtMPlWg0ehc1Qk9DyuARzYIUbgGTOo7KUUW5yctCC045cRtAwugmwhQUtiI7e4YSYUn6YIe8Mw==","signatures":[{"sig":"MEUCIC7IbXtlqzt/yoBoa10d3D+aaHtcw184bRRgB3p2sXtLAiEAsmspuR/o8Y4F2OeUKe99D+WtiY/OcmdFw+qOqHPiOw4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":443769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5vYBCRA9TVsSAnZWagAApnsP/2FBYy9fCrh+wos0msvb\npATb9GKpg23Oq1/lSLNJUGRolz3RiJeS5ICDj9xzWOp++vg/zlxZJFbXi9zl\nUrVZs/1G4/zzJrv+rTRy+MDpTg5zOVXF3ni4z0EZL21UBKt96Kh3aZlVSOH0\n6F2JJNsXFvYoQ4mqC31tas7sWu+rYzcUucRwHGgv/hihuTBYBH2wH3L4FvMJ\nuexfJqKjT0jF/rZj8LyPObWxi2qABTV7td0yI5WQ/SAj0dUr8o3J96Co4tVm\npebDhRzBE6aFRnX++0i9PtNcgkFAWIt1CauQ6NhUXi/39zvpXh1H51vp+dcc\nDFOfvevFc0P/y37etyRCdpKVZQu0AKDB2B/28umsSP4qLaDVMQpG5pcoC2nq\ne4N/2NdKueVh/Apz59zWYMehfBn+sHOH19BoBy1wpNIK7ARbOqzVO+JUWwfX\nmDn+YJM4TBYBHszVKhFA9Krqm4h6Hyc4QoRySMGRA8bbGyhBEvJWLS+ivMUe\n4vOyVMx2NWcIyUC1GTp1TzEaqE+8/2zMeTVsTZwsl1zs1Q7LZwD9S5CK9fwW\n7hAUp7gR8FV78NtNklAAHjutIGK8oaa+PLl3AKxZduACJ+xnLBdag0gxmud2\ndhkDdz2ejEMgxFB7L+9jnmVpyS8KxiiQfzM20QOb4kGMolwBJpAP3oGi+hYl\n6u/3\r\n=HZNx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8a67c95c393a733414be4fc008baf7637a9509b2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.a5dbd8a2a.0","@material/base":"5.0.0-canary.a5dbd8a2a.0","@material/shape":"5.0.0-canary.a5dbd8a2a.0","@material/theme":"5.0.0-canary.a5dbd8a2a.0","@material/ripple":"5.0.0-canary.a5dbd8a2a.0","@material/animation":"5.0.0-canary.a5dbd8a2a.0","@material/elevation":"5.0.0-canary.a5dbd8a2a.0","@material/typography":"5.0.0-canary.a5dbd8a2a.0","@material/icon-button":"5.0.0-canary.a5dbd8a2a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.a5dbd8a2a.0_1575417344866_0.003457096745679067","host":"s3://npm-registry-packages"}},"5.0.0-canary.ba879b68b.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.ba879b68b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.ba879b68b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5cfb34722df229b024a60df7b8f2d889df7d3da4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.ba879b68b.0.tgz","fileCount":39,"integrity":"sha512-dgwsZn9h6zfJ1O64dCZbNGL1UwTfGJ+cshm3KUePMOG4uWO62aFuiCuedhUw8QdjYgE5qNX48Zc85ru1TMIIug==","signatures":[{"sig":"MEUCIQCUgGrl8coP+uHKzzdXLKZ+cn6hMwXwxy6U5nHMRhCMsAIgEbkffuI36+wIpBnqFENbHgmt1A13MQsZTNmWr91RE1Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd6BW8CRA9TVsSAnZWagAA5R8QAJMsZh+AO859eejU6KL1\nGDRsrlfZRYXqoLRtdhWUDFSlDCxIoRQ3A7hAuAn3poQV9UCU7DI5GQqcKZ8P\nyWiqm34Dj4QZiHZgkoJZsbmYiO9OZNufWK7zzj8AAK1AbZb4rwKDUFYBWXVi\ndegbRagzLqNkHHy9mOxMd/e+faAr4Nm/9apfq12krYlyAitslm3vEEGNBFCa\nv+iupH7jkSXSfKCXY7D/B7WFc96uPSKznZeF4IvmmQfHIVVdgb54zD86wTiv\ntRHN0sAfhxRsqjhh+l5xqHX6YEXdTWx5HY0hUkoLnbG5bRJkZHCC8LxvRuNR\n62ZdtDrLRA9lbtH4VOyCt1E36QsT4ViodlGXG9eN826cdAhfSxGWIv+/70Yv\n0t4xZxzWh1fmVjsZ8PFJRZxt6mbv5T4jpCjLxuPhD/lZlytRutWpEkCxQ9MJ\nqBUA5cfcbW7SfPbfbR17kzV0d2lUugvJuEVqPGXron2C0gDkpgYH5DrBorAw\n3bhlh/eGbrpidLM/X7BIQ7OblblDf9JhObyz6Njts+WWod7N3DHYAOLmH+Ui\n97lETh3cJWggWgLTwFQlOX7NeoryoUtNOvnYME5/V9R+nN/tBGCmCSjrMch4\nu5smH7KLcjYZI96tDIR/ZpaZQwU34h8ATNdaUJi/6NgxATmuGxDGRuK11yBF\noj6W\r\n=7nTL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"83bad042ea5d5cc8b93df88a1d4730099550bc6d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.ba879b68b.0","@material/base":"5.0.0-canary.ba879b68b.0","@material/shape":"5.0.0-canary.ba879b68b.0","@material/theme":"5.0.0-canary.ba879b68b.0","@material/ripple":"5.0.0-canary.ba879b68b.0","@material/animation":"5.0.0-canary.ba879b68b.0","@material/elevation":"5.0.0-canary.ba879b68b.0","@material/typography":"5.0.0-canary.ba879b68b.0","@material/icon-button":"5.0.0-canary.ba879b68b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.ba879b68b.0_1575491004229_0.13175993999991187","host":"s3://npm-registry-packages"}},"5.0.0-canary.aa0eba489.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.aa0eba489.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.aa0eba489.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c8667cf45179144386553f48ffe6241ef0cbee66","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.aa0eba489.0.tgz","fileCount":39,"integrity":"sha512-Siz7VOjE2edtkvZtVqJCO/Yw+5piUQMAp+Ub0mJBZ1WF0n0VgTSPYvy8falagyWfHhBFthkzom91Q7Cq0UsGEg==","signatures":[{"sig":"MEQCIAXgSREh6KaBe7PJv038eZeCAOv29PqttSOzB54ukqWxAiBN5K9B1s2lpszSY9kcihErUWJ/9BaBqtHVrMOhK3QmGQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd6bYTCRA9TVsSAnZWagAAY4AP/jYvcscX99YulgBCO7GE\nZeXTIiZXJtKpOuI2jQ0466AcA1zSkzJvoJjD0LAsQGNb19dssuILHDHQF/zQ\n7FtQfjFo9abRE9l/trSUn9tc6GSNB+Qwf04TFN/6OUiisoGcvcA4uDs4UoYb\neeTO2ULFFsuu9CSVJc1B6vIdVTAn2CZ4CseuiW2OREk9k6NsBNR3L0Wq4fy5\nfEmb24mbWkMI+Gwv/k5hCWmhPUXhL03RcX4qyhvKCe3lHaN0hUim3OTIvLD3\nLjasO+IR8/oJ+2FPl8beySIFVk4yvHYyOoUMtoTCz8EgU9cukaXgoqP/tiRD\n7j4CV3EsymDJLj75j0wUWqKe31ZbX8LbRwjkKSuzLkxfPzG1VEtm6MJQ9D7A\nVZRfP/5vzFA/+R0nUqAK+rZbneh1QDSZzwNucp7mov3WSZTbBGUUH7nr/8qz\nroTDNj5s8dW7qRKNnb3Desd+BEdXp6RKPAH8DTuN6u4+9HRF/xppczoSZXwy\n92lCRnrjgvyJ/HAzDHSybrz+MSYCbDNq6EGFydWGubjLCFgXHAjFUi3tSXs4\nQpMMqfBqIE6XRPyVONiaG0syfg+xCCOT1c9ecNcbFfsBGN5pNnHhMMPqepNd\nprA2KidLOMbkVmopH5vigzZTQqLKdZFiWmg+CAxMWU0T+ThrtwCWg427q9hv\n1/+U\r\n=IGge\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"50ef06854f8319df2975cafcb0b8c94fc399f155","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.aa0eba489.0","@material/base":"5.0.0-canary.aa0eba489.0","@material/shape":"5.0.0-canary.aa0eba489.0","@material/theme":"5.0.0-canary.aa0eba489.0","@material/ripple":"5.0.0-canary.aa0eba489.0","@material/animation":"5.0.0-canary.aa0eba489.0","@material/elevation":"5.0.0-canary.aa0eba489.0","@material/typography":"5.0.0-canary.aa0eba489.0","@material/icon-button":"5.0.0-canary.aa0eba489.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.aa0eba489.0_1575597587199_0.695937910544413","host":"s3://npm-registry-packages"}},"5.0.0-canary.cb7b71a86.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.cb7b71a86.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.cb7b71a86.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c747a9410717bac290a5b99999d9136107eb4d93","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.cb7b71a86.0.tgz","fileCount":39,"integrity":"sha512-r7Vmw2LJQNAEzz5M7y8OPGsSg3uHpfyz31TYY1LIxVFlAu7uEYisbWa128/Tca7NYh5hXNqkrL9x4YTrALXMUg==","signatures":[{"sig":"MEUCIQDXNupNeqb2tcDhO1cHQZh4lbRVAPikaz0y7Af2yKwFUwIgCy+wwu7zEDZP2LqcL6d7kgbazuFEwif8YKPGjqe88Fo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd6uq5CRA9TVsSAnZWagAArcQP/iwZjPwuywDrpDQzWQNC\nBvTo8vkVu9JJxc0m10lHo5LMF2dJeyPifKGwmJ4jJx8XZyGkD+NKhMVeRGNK\nLgUQJCgpkuy5v3QfcUWfR7O8L9wZ1ze7OnbbHJe1C/fPQ7HwWcINtsnu/zot\nJECMP4GI54Ph2MmBw36TkAiU3kxRa4oYWARRL7DsCnfa9FGhTaX1jHwoG7I1\n4Dv4W3AURCsXvcdXlJD78KYfx3ID8ovdo/iqB4WgWKGO1x83TPtj+1H0BN6z\nOeWLfK9B/gcsIruPFv7gCxvQJcRBtIPLkIg8JE8u2j2d9fnl51u1W87FHsPK\nvoWGPPVekzzvI409H1QorPTe4k0vvH+3MeXitCyuUsLKli3Pjliy04rDpH9k\nVFMPmtQ3cnfUrrMi7i8UyhXZxvWWZyu8Sz4f0DI9HV/zKHTLvjj8Ok12gAWM\nFFFU+PBvkEG9VwLC0lEaczAGQ7mLMV12ASkmMu8PMZAAQK+SIe0G3+0UutZ4\nI7g0l/okjXiZ4PsLsSTuS0joa4do9H7gqbQBmTD9n3vWs5prMmlmQv8Kt4HG\nkzztdyyab5iAnvr9IqMPF/OZI1qBsz897Yy3ex0kKu6ww8MvSveXyFTlpMV/\nIK5tm1z8nxOpIHSXaIkyXxHGbB42UAj8DEgEsrQ20rJXz8N0h8muMxA7+gtH\nLyXL\r\n=8gho\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2866cdc43c0ae69bc09927b490f0805ca21adfcb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.cb7b71a86.0","@material/base":"5.0.0-canary.cb7b71a86.0","@material/shape":"5.0.0-canary.cb7b71a86.0","@material/theme":"5.0.0-canary.cb7b71a86.0","@material/ripple":"5.0.0-canary.cb7b71a86.0","@material/animation":"5.0.0-canary.cb7b71a86.0","@material/elevation":"5.0.0-canary.cb7b71a86.0","@material/typography":"5.0.0-canary.cb7b71a86.0","@material/icon-button":"5.0.0-canary.cb7b71a86.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.cb7b71a86.0_1575676600256_0.7126381607686647","host":"s3://npm-registry-packages"}},"5.0.0-canary.50f110a6c.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.50f110a6c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.50f110a6c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"30010d7576b7d734c3a18deef8c48cebad326d67","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.50f110a6c.0.tgz","fileCount":39,"integrity":"sha512-UkwrdvjxEj1f95p8st9xsvfNfInssQopirEB6rUGpnTCHOIgczGnFkJpBW7BHR5mJHqYFhBYUsABAkX+79OZmA==","signatures":[{"sig":"MEQCIFhYi5sl/jst4VSn7l9v4jTHwMYMh2z37VoNehafjY0qAiBn483Rr/LKT8/Lx0TFjDtfelKhBtaPLMbfTOz1odcq6w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd788vCRA9TVsSAnZWagAAhUsP/0rwHJZtW6121FImIKvt\nC6iFAQ5x+rpR1KYGaEk6YIqqgNzqkpGr0xwNZfdPaFwfqZ2vGH99fWdrDnwY\nmaT3qmXTF5bULuEHQeRS6jtaVBiG8+q7Mln6Ej1GZp/ldZT3bvOXSMNnkEns\nbe33wnjOnWdlmfXsU8kbOfUdF7I2Vd56kElC8b5E7zAAOAvn1zOPtdaVla6z\nYp1LPaJe6sAzcFqJElGjHAyaFU5KaLc/P0NeZll0NXCyYis1TJbR0pufLjqk\nQPo/+PzrjK3Gbego6q3GvW9E9uwDTQUVm7ctxXIyG2rTxc6/yYIbOjdwnYK6\n91cu/fqiCljyrKotsLXaYqgxlHj8eHNqj9h+BaA5DxAk66cWQIAzDk2riUyv\nPuZNbF8C7xr6oA5fxcNSITlNMiytNMzpH02tIe2CwbcjUw/NFfsaudpGZ2tE\n8LVdF5lDgvj9wLXCyBesdymYTcAyCGjGmgwUrSu/SUBFqhmHztfK1E6/OlN1\nFrsAKFgQtvY9yPQUqHm73LdXbX5MaTv0XuOV7yzfnWl7TdfvNkXkEEw4keRf\naDIWbnK/7Lf52dVxFcUvKF5H2BbN/bfpj3smJKU/T6Yhq4K/SuS00r63QYm/\nLetM2lzTig3Mo7alOw7L8WYTw3A/ff6Pjb6xMXjKBpKbeM90UnR6a5/inz+M\nIrj1\r\n=bXqE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"84e9b8113e75730b3079c429f751cf857a866b51","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.50f110a6c.0","@material/base":"5.0.0-canary.50f110a6c.0","@material/shape":"5.0.0-canary.50f110a6c.0","@material/theme":"5.0.0-canary.50f110a6c.0","@material/ripple":"5.0.0-canary.50f110a6c.0","@material/animation":"5.0.0-canary.50f110a6c.0","@material/elevation":"5.0.0-canary.50f110a6c.0","@material/typography":"5.0.0-canary.50f110a6c.0","@material/icon-button":"5.0.0-canary.50f110a6c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.50f110a6c.0_1575997231568_0.08281864300887909","host":"s3://npm-registry-packages"}},"5.0.0-canary.878a08b7c.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.878a08b7c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.878a08b7c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9903568560fc0e9578e6b54ed4a55084f4d0339e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.878a08b7c.0.tgz","fileCount":39,"integrity":"sha512-doe29bMfa4pCKCIM+MZ0IDPooEY52AGMnemX7gDPCtx4F+RLsoGx8+/JwNIT3Yln4bmzzylNFLExrv9D5iZVXw==","signatures":[{"sig":"MEQCIBuUtIheUfa/TBUam+VOfQ22DJYD81NHeZml3+xGKrIgAiAzbslNOPaSEslPfbBHMHrztsQPZ21aHZhdTdjC+BzG4g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd8U7DCRA9TVsSAnZWagAASfgP/2JOyH/xEE6xYgbGxG7S\nujKMGOuMxPfPb/QMYQ6rjKN17vkYS9p84CNhsFlTEB57yTj5rkc004fFWwAj\nfXW1ujRkNFBA+5rvZEaI/DZpv7AVWoPk7TEKt+oq4Lm9bakc5/u4C+jGWUBm\nJmoC4f4wXrswoZ2ac1WEJpsfIuRzw1urT/vSbKQ9kyJcJmKqBcDqu23zsOS8\nc2F5rvnxC8+rE7Q0PkApm0huVzKjwMJAnxon9XlDjpCY3UC8mf1YXwusr7ac\nF99YeOkEja0lrRw90zp013D1jrpWO+9RDRzMvsK2yz2stmTJ97bPoXsP54VO\n0ajJKgKHCc3fRCHchr9jXo5eTGWnWZhPcUDCfiYiCn7ln5m1bBFDtlNqc1Rw\nZvw1xRp4JQmJp8eBXclA8WthBFi7ys3VhiD9gFQWukWB4pcFrHMtB/iOG72N\nyZnnIuAg7J44yjAH/pZXMv+PYfw8oNylScujmQ2cKE5twtQ6aD/vfO31jFnX\nz8J+YFfEsR9tVObWUttIz6b10Ogp9Lyw9UAM7W+jueJ2bK29g5BQMOI3nDlZ\nW0hr9cxvcPvqrhB0Qmw92qHirdyQhU//jAYrwgbaAMIGEFcNUpcwieWrvIKa\nc8Wqy/UN96Se2WMaprJ9JyQ6LoFlFeYdYokvryJYUrwdwwge4l3eUaPxbtmB\na2oT\r\n=D3fV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"13bdf58f09c0e231663da8e8e9856d7a442efad5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.878a08b7c.0","@material/base":"5.0.0-canary.878a08b7c.0","@material/shape":"5.0.0-canary.878a08b7c.0","@material/theme":"5.0.0-canary.878a08b7c.0","@material/ripple":"5.0.0-canary.878a08b7c.0","@material/animation":"5.0.0-canary.878a08b7c.0","@material/elevation":"5.0.0-canary.878a08b7c.0","@material/typography":"5.0.0-canary.878a08b7c.0","@material/icon-button":"5.0.0-canary.878a08b7c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.878a08b7c.0_1576095427255_0.33824528506838214","host":"s3://npm-registry-packages"}},"5.0.0-canary.397905b4e.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.397905b4e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.397905b4e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"656122a2ff2feca9029d565aac78322daa148e11","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.397905b4e.0.tgz","fileCount":39,"integrity":"sha512-FAmHvvC+fuw0bciFshv02j6ochuarn2EkCpEGEgjXBB2+hd5VnGspL1x2mNph55Lp+/QVLX29y0EeHkN1Sd1LA==","signatures":[{"sig":"MEUCICRvM6fpTkvUXG8PevvcrKOZkEqvMm5x9YAfWzjR4+oNAiEAy3Xhj+LsF6Ogz7WkRq5ogBipXRxyDz15e609JQ0U1FY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd8apfCRA9TVsSAnZWagAA8jQP/jK0fVChNsUpVZ3dkVLR\niEQEMAEoFpcit7/IABLAMv0/qZjYwOcX8ixR6z35SMMiY0/OUR31BMSQSsG1\nUQX8xZVJfOTS2BP0m/Bz8oI/Kk0s70a7Uilyi0+/hen94JO5VDE4uBmBhB+V\nE/lX3b10EUlebcQXLdda9FmcJT7d6BrQQu5ccOTnRBwwHri77LEc3dvUbVbp\njR7rxZkwbP9hes+OS6/SKt2wzKikTAlgTKeIaqUcdyl4uu5FWqCE2Zj58c6W\nkPCJNwdWW0OQcxeWogN7/EmrNPIPWhLisO1vAn+/FwfAiDMTfeUjxlIT2JTB\n1o/iwxpE9r79mGb8PFpwNxczUZcOb6ihLFSNDWGkQYGnForRV15rZm4bgv47\nIcxx0/Aaib1ckAsrghuCIYip0VtKyM1GVV6Ljky9y045ViPKke5osQquEZps\nU3SWxg7I9VUn6rwODMvC9T7bttvqEYwA2YqnZDGe52/DQZH6znNqjPUAnLvc\niTKNeNjgudqlWKDlowwlaQgUo7pLe+WEAbbEJ7RR9nvLTGAT3J1wdygY1BuL\ndVIh7ZrCz7KzYzRkDwbtNGXcJpxn8A1a+6rwsZYnXNNf56BcksHJ3uYMl80M\nTFkc6mFp/ADXJsvwbTYHDjucimXOQ9Ttu2GC60w/pzybXM46eOBTOuzWjpHB\nX+4o\r\n=X6TV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"43ff8b8aaa48d3a31fc6835290f1ea1822301146","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.397905b4e.0","@material/base":"5.0.0-canary.397905b4e.0","@material/shape":"5.0.0-canary.397905b4e.0","@material/theme":"5.0.0-canary.397905b4e.0","@material/ripple":"5.0.0-canary.397905b4e.0","@material/animation":"5.0.0-canary.397905b4e.0","@material/elevation":"5.0.0-canary.397905b4e.0","@material/typography":"5.0.0-canary.397905b4e.0","@material/icon-button":"5.0.0-canary.397905b4e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.397905b4e.0_1576118878910_0.30568770129052036","host":"s3://npm-registry-packages"}},"5.0.0-canary.1fbf5bd1d.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.1fbf5bd1d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.1fbf5bd1d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"28715fe449313cd631b6ebaed00c005e5b189681","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.1fbf5bd1d.0.tgz","fileCount":39,"integrity":"sha512-C5vbfwpPM74WgDpgyaXFd1Sl0zirDoNjy8/p9Rkzv5Mc08oYYHslmRbXrBGu+v0WXgmnsh8lNDp3nV7BQvns8w==","signatures":[{"sig":"MEQCID5jQVQ6lnZL5N0WbFK/zbqRT/q96V83qWtY70oEx95JAiAaBSj/BDacQlCto9dmOlc+dG9cKTW9wJKa9HozCJW2rg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd8o4uCRA9TVsSAnZWagAAf/8P/31/hEmBmTqLyYJcD4fU\n0QQ9Fk5ReK9Xm6Lrc394lWW0JhjlD6xpX67FZka9sjQc/uCWMxjRMi9fJxWh\nAq8N1bJpipVf6qrlK5YoiliezXHVRofOtt7ujPeqxsZS7RhqplhwdtxCliGQ\nxms9kr+oz8AF0DfipPiW1qkR54Jo2cjDFQj1eG7oQufzKoZbLHF8wWM4NbTL\n9XQyyMMjtWXjwYRc11/cOwcUiOT5Hs96cfpogVtDbxp37v3ZNCwg8xejy11r\n+lN6q2kmme4D95xa4U3p1ENBD1HqMZ/N3Ejxz7+omJA67XGZ6wYEdf/Xd2wN\n3Cakev0UQGM+zsxetkcCULdq7NnsOy6VeC7cpLK1F38hqGYq3ra3csyMOg0N\njazO6ceBllqcXtY05OA8eAZ/NLkoSvcsTEIk+7IPNRQS0C0j4kNvPen5Nod2\nPHSPJlYc/iCik1XHpRCwQaBEHwPyKxWZaPwgMWSDJecYNMJDYRUr710BV+Kt\n/EsdkIYOIqJbY3eKwzqj0/11vHSCSDTVtBt5NeitF7OtLBPYqDvwfiDJH7+q\ncXaObN9umoMuvYy6vyY6Hcw2U8vnFqZ40zGCtAosLjCMwCpm3mGAgGLBdxEI\nxbBut4bdvyQNd+Dv2Ja7BPD+YU93fg9/bcB5AeIUFhpUdGIEVnIZ9Wn+ZFgq\nINQi\r\n=eSb7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d1aaf5edd2a8bfd34d05df3e3c52dec6affd6812","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.1fbf5bd1d.0","@material/base":"5.0.0-canary.1fbf5bd1d.0","@material/shape":"5.0.0-canary.1fbf5bd1d.0","@material/theme":"5.0.0-canary.1fbf5bd1d.0","@material/ripple":"5.0.0-canary.1fbf5bd1d.0","@material/animation":"5.0.0-canary.1fbf5bd1d.0","@material/elevation":"5.0.0-canary.1fbf5bd1d.0","@material/typography":"5.0.0-canary.1fbf5bd1d.0","@material/icon-button":"5.0.0-canary.1fbf5bd1d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.1fbf5bd1d.0_1576177198168_0.8032200707611867","host":"s3://npm-registry-packages"}},"5.0.0-canary.b723dfa78.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.b723dfa78.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.b723dfa78.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ff6093cba65ff89ecb9abf527628a5cc05123e6a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.b723dfa78.0.tgz","fileCount":39,"integrity":"sha512-+kDHURMx+yCaw/DdaqkhCbGas7criipoy1GnC5OODI5PGeVByEr2GnQi+r1JegBQDF6MhjzNR8mZX4r5tz5XfA==","signatures":[{"sig":"MEYCIQDuIfIHFe/RxsFcbpgjF4baT3X4YkffKvKv+DcGxcPtVgIhAMmPVdm/llZaaS7++75RD9lOnRFHewbpI2QfZ0vRN391","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd8p7LCRA9TVsSAnZWagAAz/4P/3KXaBQA85I6jq/2Yvrd\nZ8MJUEzyAtJLR2cYz2OZm8WqJPdHONB9fjvUq173vROnk5Zd1LmX+H168Lz7\nmsXwO10n4Ra/9pbzcdWrYvH5C9ffmuK6S0tQ2TtwclJHHXMvOwkqnz8rkN3D\nVFnuCLW8GBIvCJOCAs0xEL2f8pRDymaAdlf1YA2eYTRb0Jot2MbXLNJVIHlv\nMXBI3AckahtOw3AtcH4FbpJ9bUsTbVSpk+ivzxSaESSfvo6hIrEDqMglK3DB\nxmTS4Buz5ae6zVqC/i65YVzaLxzHtD7QhszdfXCrE4Huv+tvGn3IxCSpqEw6\nBA99ZUn8z261VsSAAZJTeQJ5+gidt3GieXsGc2AOQ0icy//NcMCDilS5ooQU\ntMFedOuSUel53OnQ2C0wxCUpuc71a21/XIonMJ6/Tf2A7goCin8r0irNIxSJ\njmWT3K2GdkuD5LJmAb4qsP3a7dg6P76Hf5n+XPrZsYgs3WRNOy0dpUpWLQBW\nCVIl9WHMyxgowE2yYV2hSg0ZrSMTOFGrh/UMora/5i2MhIEWpTC0TyjnzdGA\nfdjzgBdO9u5pmHG8F7k6H2wvBFvZkxg0JUkHyNwOzICRIwEtkAbf4NM+8/JF\nZ5xF05UZSuA7GKLhv8UWYwgsugzDc0CKSy6uLtooKrza27qaTnqFLbAkC3Lc\nqnV+\r\n=yojj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"643046d4c1ac458ec8eb1623c5951b3c9a17d2d0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.b723dfa78.0","@material/base":"5.0.0-canary.b723dfa78.0","@material/shape":"5.0.0-canary.b723dfa78.0","@material/theme":"5.0.0-canary.b723dfa78.0","@material/ripple":"5.0.0-canary.b723dfa78.0","@material/animation":"5.0.0-canary.b723dfa78.0","@material/elevation":"5.0.0-canary.b723dfa78.0","@material/typography":"5.0.0-canary.b723dfa78.0","@material/icon-button":"5.0.0-canary.b723dfa78.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.b723dfa78.0_1576181450992_0.8190066137483811","host":"s3://npm-registry-packages"}},"5.0.0-canary.1c494e567.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.1c494e567.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.1c494e567.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2d95e7f774d9fb5b5043294a17cebfc00cf4c0fd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.1c494e567.0.tgz","fileCount":39,"integrity":"sha512-3jmbsNWau2X8761xlu9RaGk+ZRU1ew6qswY0urPURK+7srraGAw03KrCMH/AKZ+/irl5k+R+/W9rVtroICTOoA==","signatures":[{"sig":"MEYCIQCt3dXjKYJpKHlRcgj7WNdRBKMaXUd4s5rp2A9lrhOGbgIhAOQDepDdvzUYKs2teL5wXRhH2xheUrllKJ4UTAT7cm2G","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd8s9MCRA9TVsSAnZWagAAfQ0P/jMfpOJ8/Dy8WQS61Krx\nOQE23CmBCWXEjz3dsGeWcxpEutZhsp0wcPiAbenfsPWsZCWNTabM5LFTkWvo\nJXFX2iz5gY9eheViSE6chAgNWEOASuJnymMJmDjNsN4/g21KruomOa3nWRDb\nHFAlyu0kcKzqNfAUQbbcAfiOLw/j2HD5+FW6LXBrARBZ4bB8J+cEXC+9AotM\nn36JwW3oNu3ItFsd1GOhhdTUZ4+xTlWwXFeJdZmPjxCMhdhIjZxZt15o1IKc\nkWtBml9B9R8bDPugxo0bcx3ZAqqoCY6akL2yB1Q87KLha40GP9QRsODkbf9U\nThsaYNveUfSbs/cSFrSLnsFfps163KGksxI+NSs/++QxJflEAnGBBguF6JaL\nnWwyBKp/6oYPsKfUPodIGLiaJqnvl4Ak/ADcDZUbyCztfYvhXEiavPiMTtyT\nhi+OEbs4XhI6zEBBG670EOEdhaYeO7AJhNp89xzL1BebAUcigSETb+x4iWFB\nAOUwy8E9GLnJt/u6BlnJ9OeWqG5TjClme9/h+Kqp1UzD73bRodS+VV2n6/hU\nnJjh6sawPb0U1qESH2VL2UHkEMgDvcugdh1dMNhv6nTRGhs11sojItUh109U\nCQ+wXpbSVmfqhekcGHbruqjA4vOrvdNofNjXRQplHKhCutXiPR/Dvk8XrS0N\nTCzF\r\n=GDIs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d7e01eeb35d8a54be431b39b46b389f3b26262e7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.1c494e567.0","@material/base":"5.0.0-canary.1c494e567.0","@material/shape":"5.0.0-canary.1c494e567.0","@material/theme":"5.0.0-canary.1c494e567.0","@material/ripple":"5.0.0-canary.1c494e567.0","@material/animation":"5.0.0-canary.1c494e567.0","@material/elevation":"5.0.0-canary.1c494e567.0","@material/typography":"5.0.0-canary.1c494e567.0","@material/icon-button":"5.0.0-canary.1c494e567.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.1c494e567.0_1576193867616_0.8091162168887893","host":"s3://npm-registry-packages"}},"5.0.0-canary.c9e98a125.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.c9e98a125.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.c9e98a125.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2b6503eb63bfedb8d51d4605f415a62b0f7a26e9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.c9e98a125.0.tgz","fileCount":39,"integrity":"sha512-PzYQj4wj+58wkcbBMhGgDFRFKmowsBni+yJSLTmzp5R96nuJnNRUVgusOdfaVY0zoTSzYsd1AHUrqh+E0/xITA==","signatures":[{"sig":"MEQCIDINre81JCMhCIs3iOwdhFjAtjlbwmFxHeVlcrgum15bAiAjDYmVHHaRzHz9lFTbqbbRsVEvjT3cGgXoegA5XsLXaw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+RpACRA9TVsSAnZWagAA1A8P/iifI1Wwq0ruTekCHBmG\nrmLYfOkSfPSVzUc05XXiPN/fwh6L9ChSOT3c0Wa999nVq1X9uiTw/tJ8sGwI\nhOUbVyFwdhccWkjEImh4SfhU7jYgE+DRifPk2DaqduWRcpN5RPrUcuVxb5On\n2KMCqFdFhUR2DLNMEnn95fPmMAOYIrhJXckZGG+y4VBIhYsvN4ZY4xvAVe16\nafP6nuvyQU5BescF3+dwOHesFmCb9QQvTkVsH4AOFk1nxGrK/F47a+jePNHe\nJAFiDMvDk3IzuGQUE80WheLjHyr+3J83qneZsjzUOy18gScY08Q/PsMNYJ2T\n7xmNKtXYaZityap1dcMcbiDAP3eNRURBNKb/XsOM0qNkjwixroEzGSA8GezX\nm0dzp9qo6xR7ycPphuguBTds2aV1ILkbTaYsLjWDLqticEPvchsK55T0DU8T\nmoo7x29tetIbWzIjLCnm8uUEsL1Bfk0MR0TptaIU23fv8veN7I2f+uVmObJR\n8O19uROZNv6tbi2xeywykSL1Vx4XAMFv1QbHUeeDVTF85DjkmtqsHOIZIJsn\n6MofNPkaiv1Uip+iBBbq3uqla5TVLIEIWTNhcBTGB0207nRMMdB9slwsGQK/\nUmOugUDm7mDLBswLNQbDpdH9QbeMestkNZn+eMkT77m4lVZ4R+TQoDFdmoX1\nAIRB\r\n=Dbev\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"34b4d9d0fdd6b65308344880ca9abcb67a41ec58","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.17.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.c9e98a125.0","@material/base":"5.0.0-canary.c9e98a125.0","@material/shape":"5.0.0-canary.c9e98a125.0","@material/theme":"5.0.0-canary.c9e98a125.0","@material/ripple":"5.0.0-canary.c9e98a125.0","@material/animation":"5.0.0-canary.c9e98a125.0","@material/elevation":"5.0.0-canary.c9e98a125.0","@material/typography":"5.0.0-canary.c9e98a125.0","@material/icon-button":"5.0.0-canary.c9e98a125.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.c9e98a125.0_1576606271887_0.4173664492388527","host":"s3://npm-registry-packages"}},"5.0.0-canary.5ffe8f7e3.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.5ffe8f7e3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.5ffe8f7e3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0fa0c02504c4ef0cbcf8bc50f31f91ea96db2a19","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.5ffe8f7e3.0.tgz","fileCount":39,"integrity":"sha512-lsOKI9QsC96DBkkbne4MFO/PhzXjS5M6kdsdbPbPV9ZQK4sqz+kFkOAX8Hdkeugsa3HaidjENS+6XgJRrHcAYg==","signatures":[{"sig":"MEQCIGkOkFapkxnLwaROJqUe4lO/tzBQJc6zG4GqDw/p65BsAiAKAUNbAd+Sx0v8xRkTLUCr8Dfcq/e83UmYxIFeGHaEZQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+VfmCRA9TVsSAnZWagAAP2kP/ieVy2DR4QClWO58JIwQ\nmHO+JYUe8HUPLW1iXLcqi1onlA6JjPMxL8De6MGbq49E/wU3+ma3/N1hYP0i\nOY5OpkGGJrXol8m5NwL//eLkmmVWAlF55+ibXORvs/lCqBU/Q9Of/xeH0Kjr\nLkFPhjuBCRG7roCr8tCw/7U7FV09iPFzLxmourkn3pL+sbrfr21XQQ6Gz+qC\nQbVhlPkyKY5NuXABVFzyC010gF2SrQ1kXXevX+nxsR+JsszEX7ma4+5nXBPP\nTRGsPC49KABwTHWEF5o8DefEj49z5VFgKK2+ypIB/lgUwBXROGex6isGWF95\nfnlFvJuSpOa5JHpKcsKPcAKOmV6s13nxX9Y0lkcf+8KBuQUCO6/hWdk1Z10M\nkGgHSaKeBvyTzG2o5j5/yODkYugKR5ELtnNct7ROJGD5athxlruFw+WPyih4\nTd8QVwac9NDdrXSCkX7lkMjEG9ciJhSvPXM/KW96lsIESoAsyAHlvYX3RdMZ\nPiFJWVDIv2J8oVgNJsld3NW8zac4ia6fSjnnr32uHt+HfjCa8/zURrfTS8Qw\nhqhwWgW3yDd2MOlrl0YfJV8syhI0D0qBivBTuTXpXoLVLCLI2QhuxxyWddzt\nqHmI4To6VZWrAjG3EHxHAZ3eId3vt2WARZv95aa/lu0zyehGe+fGk1oRulTQ\nECMW\r\n=98LG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"21e7c11057bb3bfef94ff10e24676b9da6f427b4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.5ffe8f7e3.0","@material/base":"5.0.0-canary.5ffe8f7e3.0","@material/shape":"5.0.0-canary.5ffe8f7e3.0","@material/theme":"5.0.0-canary.5ffe8f7e3.0","@material/ripple":"5.0.0-canary.5ffe8f7e3.0","@material/animation":"5.0.0-canary.5ffe8f7e3.0","@material/elevation":"5.0.0-canary.5ffe8f7e3.0","@material/typography":"5.0.0-canary.5ffe8f7e3.0","@material/icon-button":"5.0.0-canary.5ffe8f7e3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.5ffe8f7e3.0_1576622052204_0.7015932093465675","host":"s3://npm-registry-packages"}},"5.0.0-canary.47949b08e.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.47949b08e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.47949b08e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6dc0beec21e26a7a9646bf6731ea51c3b94f7fc8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.47949b08e.0.tgz","fileCount":39,"integrity":"sha512-cspbQTkwubDM08u3EhywFhiXJ+0L3RSxDwPGri/J67tvX1faPrXZfp+HBqmIzSe5somDd82fRY+Jx0BvIi3mDA==","signatures":[{"sig":"MEUCIAn/8t+cZ9tqVQrBxeRYfJQ+iDfoUrHhIuZbkwQfuwN7AiEAjKk0BLQwUzTAMnB+UPu3ytjQkRKLdm/iQZ72DE80HD8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+mTACRA9TVsSAnZWagAAOuAP/0GxKGnX8voKG7IVBFN5\nIu1zB7CGvy0YZbqSgdfIMMei+0pGTfX3EHevFOy1/8IDOLZpIyiLLwuWKbim\n89oBVazEK9//szflVSjQw9/ClZ16wKvFhgS7RsvQglrRoSNxyZx18PPz4Qkf\nQ41gaA3UVHtyuILenZA6nHOElvCfhYXdhbKMw9aHfUdB2WD6LYf5+oMUyQad\n7kGuWqxiPlLIr4Vi7R7gLhcj59RxWZjM43Ya2lz3X1d+He/XSJBcqnMCFyRQ\nG4t9RkWPXbT+PT1lwPY+ZuRR1lbWZJ2MuCbz1MI5bpP3bDlWXKb1l6QnUEEf\nD8Z8QMtFPSYi0bgttyFrfSczf9AQgEqFCnINtbFQkiAZzOJa3G8G9n07P8tV\nv0Qg2It7AVijLme4OuPpbwQj+D9MqdE46XdATZraXQtHPLVpPPm2fW6YgwGD\nS0gi6ol/05dTBykY0r9U1hw7LUXWZMwXai8JiTgGDd5GtzIALFtHUEzHjpOj\naeRe+ftjpZ/lSXBDK/Zg8LZeAcYfm7qn+mIfHaD5KuZeK8bSzqDOjivViGbP\n3+p8n7AvISYGy0er/Oj0JUCL0Yk1Y+kBFGad9Bl3mNiaRVdO5dYkvJMB4vLp\nTlDlu/zEhdYzM0h8BvHngAxD4dC4jM2r/+DrYE8o6JtuEb3y9DewEnY5RAEf\nwxfC\r\n=tSzs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dc8ea470b79b9134800af9e8866b99949c575024","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.47949b08e.0","@material/base":"5.0.0-canary.47949b08e.0","@material/shape":"5.0.0-canary.47949b08e.0","@material/theme":"5.0.0-canary.47949b08e.0","@material/ripple":"5.0.0-canary.47949b08e.0","@material/animation":"5.0.0-canary.47949b08e.0","@material/elevation":"5.0.0-canary.47949b08e.0","@material/typography":"5.0.0-canary.47949b08e.0","@material/icon-button":"5.0.0-canary.47949b08e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.47949b08e.0_1576690879571_0.8143989465484454","host":"s3://npm-registry-packages"}},"5.0.0-canary.b240bcc1b.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.b240bcc1b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.b240bcc1b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"aa72264084ddbee5998b96b90f196b98ea10674d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.b240bcc1b.0.tgz","fileCount":39,"integrity":"sha512-eGavIq4MwszvHF6qpiX8GA46ekrW0twgoNO7BFoBwbR6Lki2DurxTap3+IRKYnMJ16kQXRYKhBrcbxFc++U2gg==","signatures":[{"sig":"MEUCIECV12k4RZtG2s257fZ1QJDcdww/2WNoCLL0vfYZqEHTAiEAjnmig2HXX65Xo9zrW/lBOr+VwQE3ufjpIl1pUagB3Pc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+ntYCRA9TVsSAnZWagAA7d8P/i9gtScmIRSMkKVU4Wfz\nGlGvvcKynNEWTlY6eiu0K42KTmlrRmZj7dVHGVWHVlseqXc7haMw7YlBMuSI\n0QzOKcGQUXLYCJkDoZ/z7chQFQ4LuPIbBb7q+TgY/Yqq38MhXDi13oeR08GB\nYKvzoyjuT/UD7KVoTwKjORVafACC0sIzOdhKz/1BNICnvBoq0dNUlk9qajc5\nS1+0IdRtwd2W4SmPHSKicS87+xvNNgJT0jgSRXZzG4TGAY1OA7n2tsLCQ+DD\nXCfTY0l2RdzD+zpgo551b7osxSFAUbp/NMZTRAdc21nRaiydL0kWG+cwTtt4\nI//QPZROXNGeqtBPErqQ/WlsO5ZC+pMbDF9clyC9H7cYveNLyM2Hv40mmd8a\nKZqu7J1NxgB/tLx37Ewd1ivOnfMHIMBvULXhF236A+xu4bRSnLxibe8tvSed\n9hFhS3yt2kXgUvQTd6zMemlW6vPFCkqh/2vlunC4rJmtVznrRxF3JFKiyWZO\n6CEdS9eiSWJA0Mtes+MOXHQOFe38Za43ikMfR/pSXaW/mJY6r70RBuNZiT4S\nFA9gxuUDY+kD19K0euiK1ntKq9kYCRg5XHKbMoVahFGEVB6c9A3DgwG+HpJ7\nLMtE8RzhiZBrnRnuI6dta8G3UVoI3lDzTiAu2vXreeVyWcrhSwRZT6Qi7v32\nk7rS\r\n=3CU6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9915c413ced383747e1ca7f2069e170e38517b46","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.b240bcc1b.0","@material/base":"5.0.0-canary.b240bcc1b.0","@material/shape":"5.0.0-canary.b240bcc1b.0","@material/theme":"5.0.0-canary.b240bcc1b.0","@material/ripple":"5.0.0-canary.b240bcc1b.0","@material/animation":"5.0.0-canary.b240bcc1b.0","@material/elevation":"5.0.0-canary.b240bcc1b.0","@material/typography":"5.0.0-canary.b240bcc1b.0","@material/icon-button":"5.0.0-canary.b240bcc1b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.b240bcc1b.0_1576696663678_0.33914259665043023","host":"s3://npm-registry-packages"}},"5.0.0-canary.391674a26.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.391674a26.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.391674a26.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"521902a8d1888701899215e35bc10ee115bfa454","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.391674a26.0.tgz","fileCount":39,"integrity":"sha512-261h/85u5mzJwxzgeR92KIn2T+Fwpw3FrKAFznH613k3itNo6hgm4H9XTssrmxXSuLYUbrsA6yRZejTvhvUyUg==","signatures":[{"sig":"MEQCIEA6UO2dnqZ8n7s/VZIzcIlF2oyjfc3JLs922Yv0nN7RAiBuMChTlKkZupow0L10VMw9L35bCsBO5gHbv/AMWn+dhA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+ntwCRA9TVsSAnZWagAAWcIP/3HeT2Zkvd/EVCpTIbhk\nGopPDre7wixvU2Kl5c86MfjzUz/gPYVxeUya2uF/PyySNbOOCPg+pISTxMNh\n3CNhmgCD7mYZUdtw7sDwa4k97lF3B46nWut0oeUZFaCPIeWKrjLl35zOpEjg\nHSpa3LYWM5mt4O3Eq3sbDo2kjcmllpsYmLA85yiqZvlvfYx2S5m8efpoq7yZ\ntiFy8C2WebHb4x355npi05dYe1WRd5672aAM1UKd7V6zfVSha550QnZtNImr\nCAa1VPNNQaXOUcWZgfhDq12iGwOrWG4QP8zp7jT4KZADG+8lMS9CmQ5k9AiD\n5m7qYdn97V7W3K0zj6GWJYHv2dlUglRH/kO56Gtdhs6iHcHME8VQeI9t9XbT\nEx178wc8Yy95rlVP8m9y7ErFCLeZSMdoadBuNUG3Ph04VwbTXkAzPeWLaUsN\nPsOb11p22nHF0uDl/GaaoTRA0PctN1cf/HuuONX+nmyrAYQJM03Ap0XcNFiw\naYbQLY8Pia83cHpV3h87uRDqsVqRdYo39Iv9YAz5cmXxMLi1J+EA/z4gjZhb\nTb5k5SrRvvUNOixdYH13JmVw2ta2r6vZWpQHuMWRzGHMLL1z5U2zQxlzprOA\nAqFWeDYYoURo+UtqHhfEtlHcnuSxA7+T8wI1lngnMGfg0plZ3jYmIi67bMAK\nkCDR\r\n=xEF7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"aa67ddaa5956be1096b1d442788cd4a5565d7598","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.391674a26.0","@material/base":"5.0.0-canary.391674a26.0","@material/shape":"5.0.0-canary.391674a26.0","@material/theme":"5.0.0-canary.391674a26.0","@material/ripple":"5.0.0-canary.391674a26.0","@material/animation":"5.0.0-canary.391674a26.0","@material/elevation":"5.0.0-canary.391674a26.0","@material/typography":"5.0.0-canary.391674a26.0","@material/icon-button":"5.0.0-canary.391674a26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.391674a26.0_1576696688504_0.4197605102863575","host":"s3://npm-registry-packages"}},"5.0.0-canary.c4837746c.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.c4837746c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.c4837746c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"281117f73ba72f5bb5d41b4281232e1afc06de98","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.c4837746c.0.tgz","fileCount":39,"integrity":"sha512-fTuZidv/21uffV2tjJM8Sa3yPcFV3b8KZ+/TXt810Gv//RJaxaB254OPY3chJfirNuWgCkpSqKEcKma/mA4Muw==","signatures":[{"sig":"MEYCIQD1YDS+QnRUxyAqpuTaNFQpSOEjIQGxFiD6xI+gBvMGdAIhAPwGRJ6dSgNE2kBD2m9fOrPssL2nRLQX11Q60t1atbc1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+n+YCRA9TVsSAnZWagAA0fIP/0nBPyddPTMs8Ed/yaa8\naffX250mJN2MV2UsWqpbOGj+hGDEZygQ0MCPGMSy+SBIOb8/ZkVBAUOZWFRd\nrVLUOhoqUWYgQU5BRLBZ6/f2tbzK3Ks15nhKmnqEPZnGq9bWH6FjxGmXM429\nJDVNz3hM91zvDxjHRAbdBPBZq4nwIbqvabrgm+7UDOVRIR+wEPj9Wttgi1fK\n2GZ2l/AtdhOizdvj2m+BUB4GQ6Z/L1dH/w8Wkkv5PlvWZX4Tt58D9G25ul5r\nnB08NFbsFPwJBzdpfZAbytQEU33J2eVUT1bLhWLGDYd+UEDmNBgMHDMoV3n2\n3imllxiwAquAO/TCyKPg85Wp2K/pdZpQyJB7wc3kamOauktf7eNBfimwt20x\neSHtNggjG3gyCk+q1DoJbdrepX2cgyZuQWsIAckOCRY+bgK+v6KQGb8Varqe\nAuvGBMe9kkxAu8WLxb/VnnSRWU+bOTu2PWIWBxGwB6LNJl7shAWPy/NSJR6M\n7OswawBGwDX4B5dSCCxcuqSKvbWjdoPvAX8ngK3lQUiKP/8tmgi+OWhDsnhK\njHuFUbyysvK+DCpnEeUbd6mX/pnsbDedK8fty56TH17S1m08EWypC+z2zEuh\n/9tEuPOiobvjmisjABiVJgPeaWiXbgQJBCGllGx8hzotcm/n2/Po3ZCSSzaD\nKFW4\r\n=asiQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"44ccab29aa0b806ec249d5f5117ac9f5d82fc7ba","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.c4837746c.0","@material/base":"5.0.0-canary.c4837746c.0","@material/shape":"5.0.0-canary.c4837746c.0","@material/theme":"5.0.0-canary.c4837746c.0","@material/ripple":"5.0.0-canary.c4837746c.0","@material/animation":"5.0.0-canary.c4837746c.0","@material/elevation":"5.0.0-canary.c4837746c.0","@material/typography":"5.0.0-canary.c4837746c.0","@material/icon-button":"5.0.0-canary.c4837746c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.c4837746c.0_1576697751981_0.04792689268910433","host":"s3://npm-registry-packages"}},"5.0.0-canary.e41a70425.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.e41a70425.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.e41a70425.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7c81887703fe7d0c848dd1233ebe4a5a912bad99","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.e41a70425.0.tgz","fileCount":39,"integrity":"sha512-tPTxUwfmgYQCsjguVK5csHbioFdk8+3888blWUIxnF2jkHlig77QWamdS010lddVcvM2f45bcaDviAPknp8ddQ==","signatures":[{"sig":"MEUCIEfaBR0nCpFAjvC69Y0LyuGpuDDVVWqNWIP1XwBal76GAiEAg4xQOkFwwPbC26I35SFhOO4fiQ61adhXLKCJFBK3YT0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+rRpCRA9TVsSAnZWagAAD9wP/0qaVyqqrVXMSawWKedG\ni3FHZP5bBNCd/xJBYVAxp+J1rqoFc+t2Z/ugRiJehvfs2xiLu49Rnfn+Hicr\nHG0JYCJH+7wyK5OgDvkr7AkT5yAAEdF4eyao0h9L6lKzknvUxx2lX2aVQEry\nPYRS0l2N7PpPjHIN/U+0TJM+NYvBHO2QZTcKuK9iaj4DGzI0+DhduIv3pzxh\nCs5bvIw4+bH2xdH28zehjewsHQhGKMxCIA1m2Kb+svHkyezH20KezQKxfrAI\nty7hOBOEhrJoADs25elSvDOFixky+maR00GSii/n83v6mcrP+zWQC88EpnIP\nyBXdbQ9cQ92j5Yx4iNh+bCDwWNfPyrJ2R+JFjFjnjXVBG9AF4fQI7QJpYC/p\n2GTZswC6Ed/ki1yqmzqRbF/pwB1x7sa/Clea7ksSZZVz/urqByTNBLj92blR\n2iQz9VcyI2NmteNhMA2aH6K5xtGa6kcXvf/GTDHDzzwSgqmCTlI2V2wCkE+e\n3h2pzC8Xz5UGnR/fpTQKr0KCel6YFATNEO5JMkGharWuPOEbwQ8uiwhsHDCJ\nWjSgy95VZh973he6d4L5d6O80cqHWN4NRtrpd5cW2/WqZ4KIktlzkrm4rIyD\nQdcrVAR98K8RnoW0mrAiZbzzr/OIz+Aij9m8CA70yqKBj/qQd9a0IeehldGn\nz/3G\r\n=Bavh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2e938a63bb3297bc73cdf8f1f206885e2ec84a6c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.e41a70425.0","@material/base":"5.0.0-canary.e41a70425.0","@material/shape":"5.0.0-canary.e41a70425.0","@material/theme":"5.0.0-canary.e41a70425.0","@material/ripple":"5.0.0-canary.e41a70425.0","@material/animation":"5.0.0-canary.e41a70425.0","@material/elevation":"5.0.0-canary.e41a70425.0","@material/typography":"5.0.0-canary.e41a70425.0","@material/icon-button":"5.0.0-canary.e41a70425.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.e41a70425.0_1576711272801_0.5699916333675716","host":"s3://npm-registry-packages"}},"5.0.0-canary.bac43eb43.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.bac43eb43.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.bac43eb43.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"22933034a24a9f053d56e48b0b6135f210e4ee9e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.bac43eb43.0.tgz","fileCount":39,"integrity":"sha512-Hl+IMMCl9q/etpSbHcEj2PopGiByPwwDfHTPK/TLON1boCmUrwZAVYq6aoVZ2yGDRxttB6Y08wgb8xiXA/ztUA==","signatures":[{"sig":"MEYCIQDSZFSo751Ow9sqNjqImyWICH/z6hPVrCoiOR+KeMu7AQIhAL5OLHgyT+ExN7hMS2HUDxUQklIcn+zdWnhawdpz2QOm","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+rVICRA9TVsSAnZWagAAVPUP/0S7szx3nJBRSpFjTl4t\na7YAp7RsxYiXPg9Q6lAPSLXn2a/QI1jPvqyubvyWDe1xlp0e1dkXQGcqhSq6\nN2a+lV4xFMe2wsG0sKWTNUgTHvvoXJC4G4JY+8DOJ4V35uWfCgOsC/RmUQFD\nuL7xJ/u83IxUyr4LImhah1Q8/DGAhLqKAFcBAI/dbCcCFJWkgWbBnqaIIF1z\npxbc0owVnieyGA1SXVqErf5Dam9HgOxWAmKQyQ7h/bd1v/NOkCWx2Y/+tQpc\nnMR367zvWAnVp4spP6C7Gdm5qmZ4gYoTSdUdsQ1HmKhFxyDrDNt8exZhCkX/\ncFykeS11TktgzqoU7s+7WxWtbbX1geq342GQ9akBHDHXt3hFkXD98V6ySxnL\n4GHQWoTS3vU/Xk3jQjZn7WKoAlOkB+opGDOsrRBSdVrxOaCULGpEeQzRtPm1\n8rPDF2xxHRYnAPn2Zx5uRY614HGp9yl7FOYiVT5QvBq3JnfZZJqofoekuM3n\nYzP38cAoyFDH9RJ3i59mY5Ftfiwky/LSiFQ27UHXn8afgtkspkdHtCmW4WF5\nxJmMWIQoKHL+rzbB4n8SbmOIW0ZORSeTcFTtBgHL98CoibI3IUPAWrwV/WvN\nQCHy2IsxJhehUElFNVREG8belr8k7Y8/IP+hefVqk+KZjUl0XT9AsvkwpLYM\n9KWE\r\n=ZGOc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7035dfa39edc06f1b58f72c5e285bd2998747232","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.bac43eb43.0","@material/base":"5.0.0-canary.bac43eb43.0","@material/shape":"5.0.0-canary.bac43eb43.0","@material/theme":"5.0.0-canary.bac43eb43.0","@material/ripple":"5.0.0-canary.bac43eb43.0","@material/animation":"5.0.0-canary.bac43eb43.0","@material/elevation":"5.0.0-canary.bac43eb43.0","@material/typography":"5.0.0-canary.bac43eb43.0","@material/icon-button":"5.0.0-canary.bac43eb43.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.bac43eb43.0_1576711496437_0.4266115228844498","host":"s3://npm-registry-packages"}},"5.0.0-canary.2e491de55.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.2e491de55.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.2e491de55.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"07148d22228b23891aa27c1c509fcc97c732090d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.2e491de55.0.tgz","fileCount":39,"integrity":"sha512-mgUKzqhzWlCg67XaRWxg8c4oaFtu+WYg/LXFgDGk+Vy8DPJBT3+sBbMvrDI+GMP72cnvlmPfeWwG1nKF9fyw/A==","signatures":[{"sig":"MEQCIBFJubfnvigQQXxteIyadgwXnk+xPkgo+GyyegTNynXVAiBroadP+yg/HAxPYoTeZHd+KGFoHWd3B1z2xqzro7MRXw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+1YdCRA9TVsSAnZWagAAzwwP/3PgQt3YnqUTwPqm7dwU\nI70uJffFOwSAXj6EVm31I/8LD893UDh9dGoNdTMbfSo1pYcf86rA3RNMbgSM\nQwq+/KQSXwT1IyAoxDoeMdluDbq630Ts/k3WvKVxpJMKbCm0v75Qth/277H8\nQsTqi71fgOM0xDD33GK7plxYxbbC187eOeIAILf+Ov/HWki7jDEDzK7zvH+W\nOK1DMHgFtP9524HSBS5boNF5uMBb1V70uOcUt37dCM5237uOP3kPK7hfHuw0\nCQY0sVpEOLPJ7uOvYoidUrDQPo1buDEynu7c88SkrKyqE0bMuRCNi97dLdxA\nczz0UwHSOjrAUtWABbwF6THwSdYLfvM4i+3WglxXNsJ2JIOEYWdx9eIETWEp\nyB+vaTzqFK68EYqJBjeBRvQITnbj+MYYiBuomPi0zUufFvRDnRMv5zsw62/Y\nIDbloi+XXifQoL8L7TYRgqllClJpkwZB3rUqXHX3k9OENe6pBp/TDpl2EDfQ\nS0vetWVgttSXldnzgHRSIE1o1jJUv2CuKIpVD+goGZ9hh9tTWx1D0HDkurXg\n3PNGR1eniDb2HVtxzLyV4jLtfhgEXNKjTFF6vVCYScTTHHz+97/shT107/2X\nNpkAzfK/biSFtaQdotqxx2XVztPhnON+Qk81GPtHRBpERsZfckTMAK8AG2rb\ndRFF\r\n=y+4h\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"731b98f2f9caf1251d3a82a3abe09828a92eb434","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.2e491de55.0","@material/base":"5.0.0-canary.2e491de55.0","@material/shape":"5.0.0-canary.2e491de55.0","@material/theme":"5.0.0-canary.2e491de55.0","@material/ripple":"5.0.0-canary.2e491de55.0","@material/animation":"5.0.0-canary.2e491de55.0","@material/elevation":"5.0.0-canary.2e491de55.0","@material/typography":"5.0.0-canary.2e491de55.0","@material/icon-button":"5.0.0-canary.2e491de55.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.2e491de55.0_1576752668779_0.5626777371926832","host":"s3://npm-registry-packages"}},"5.0.0-canary.ae101c144.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.ae101c144.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.ae101c144.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e52e52c1383a52d39b2286c367149a1f2d0f0d9d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.ae101c144.0.tgz","fileCount":39,"integrity":"sha512-TYSVJj/2t9ZNJV6wlHPaeqkPtc1/wBF11ggI8KnKkgBvGgj8XNtqF4VWlVpNhlj3JMhuG6LNnK8BFXdGUa3AAA==","signatures":[{"sig":"MEUCIB7Q+I5t00jlYPNd5CAluziqa0Cq5wKOtRQ/uKPZ0KUvAiEAwcF51ReJTRUN+H9YZ2ffJsss2ygqLKJmkdK55HP7o8Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+6SRCRA9TVsSAnZWagAACzgP/0PVxY4JxxWFCqBbWKOW\ngKRbp+Do3tfKT/MbJJPMzrdvbLKFbZNxOcLOWvkbJs+MetLBxZHNKXxIHLf2\n2SWu/iFD4y5vhPC2yWrrTRYdDtUQZSpYFmqUDuyO5edyboIQshgyBbCf3ZRP\nzSA/HZEmxwkhLY3JnHV2iWxCZtQVXBysNQ9H5Bn+bLJ/sGvzzIrB9h6a53EN\ndeOctbIGtueiiYIbYhVHLwaumZp9qzQXCij4913JwR2DMKQGHNcLfJmXW17F\nUQT9/vAlJBy0gqNBO3yfg3fySlEDbCaTjj+kBSuqmnqRCKfCjvlb0ZEWg6vx\nw+gMzejmKiCdT7uWm1tvhFnuv7C5XCA5wKRn8De7s/I63sd410mBu8Ci7HoE\naLCD6Y1bZuiKh/8o9PzehFmegLofD19g9Tl14c9imJKeVbeaGvauaePUushT\nzJGf44Hcj3nMKveHA1w23TTp358Ma5JG9rs+tOPn969R4fsH5FVz6QURyTk/\nW4u0PTEDMdS8y33geNhGJaCJ3ODybn5dNw3AiI3ykjHpHer1mb0sSm9bwXNE\nhqRqYwKg+2uwouwIh74MEy8mmrh9q7FohGSmgXoLb3/wiGgGJXU2mxymElUy\nVBXok2u3X9qkX4rE9l/A1VecqPqVcOYuUvvpD835JQfv5e60sqUcndj0U0z/\nkNdy\r\n=mk2Y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d11f348d85fc15df510c3e33822ce23f44ee661c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.ae101c144.0","@material/base":"5.0.0-canary.ae101c144.0","@material/shape":"5.0.0-canary.ae101c144.0","@material/theme":"5.0.0-canary.ae101c144.0","@material/ripple":"5.0.0-canary.ae101c144.0","@material/animation":"5.0.0-canary.ae101c144.0","@material/elevation":"5.0.0-canary.ae101c144.0","@material/typography":"5.0.0-canary.ae101c144.0","@material/icon-button":"5.0.0-canary.ae101c144.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.ae101c144.0_1576772753127_0.8630615239017829","host":"s3://npm-registry-packages"}},"5.0.0-canary.a51c31f26.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.a51c31f26.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.a51c31f26.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a7294a8c05e85c5657b57bbdf4936cc7efeae372","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.a51c31f26.0.tgz","fileCount":39,"integrity":"sha512-YgeB6Ow9Du+gDy5IKkjBLwzrFufybgkz90P+0+5q6wICgd5VWeYdeztDSm3UH8tCWst1whgANXfYnEuIRc7emw==","signatures":[{"sig":"MEYCIQCAMFLzEfj8FIzYemtR6MvzJVaKsmyn6czKzajqbxwj1wIhALBNE4ZyhFrP2muhxvEKOI2OqRJrfRTlXP8zbLiwqKNa","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+7AjCRA9TVsSAnZWagAA5XkP+waVBJ1ni2uYysVFNfz/\nyWhbTpP9uX9sanKPg3zn1GdiTanfizrQZeMfagBVcy00xddVGvITcS+j3/Eg\ngxevP3wY2DO2sGKK1ekzlstGR2RhdaUEz60pHkxHiD+r2fnptO9mdeQ8cewm\nduiBTdZWTPe7WPP20bAYNU3iLI5H71f/avIbuyrqoJURHQpzf8YqElbyu0Qb\n/vpNqIde4Hd4UDxboVLvcbocDtiCiycZVHpSOkzGbNqSs9jnnfonLoW9xAgi\nRzvC1pwe5ALfHp+iWnXDTzj8mKpC99HUbKp/kQQhZkHolwWKUT15bcCcQexD\niSYaI/cVpGn/e3KTOr1NSEkqPvsqgaGEt1qCoTWR2fvzSRwT8Pj3X8hP8RYZ\nlRPqWnDA1A4E4tj4INoJ/0WyHMweUX5Xa0oxnLTxp7LHvuAN9VEu7siVJ9J4\no9l7Qy2rX+qqWy+V3gx3jeCL7IrPvc4fIsJcimQx/7ZkWCv4BU3OuqxGJy4X\nC2hPr70cAfcvZiQ2ho9/kkDRmoVI7a/HQGuAEyA7e175P+q5+yOf5HzAVJlG\ny+ktNP2NOYmKaRJq6clmp7DCw0cIfDAUhCta/ct6dDBQyLdUYmXwCuTLBr/n\nfiMKLeqUVa7dw4JHJKVpjEnXFQwlu4sOc9oLZl+i9DIgmQrxQCCJ0HKO9H7d\nAHSu\r\n=oBes\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e2dd52b70a7e3cd011647222c15955dd4535cd6d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.a51c31f26.0","@material/base":"5.0.0-canary.a51c31f26.0","@material/shape":"5.0.0-canary.a51c31f26.0","@material/theme":"5.0.0-canary.a51c31f26.0","@material/ripple":"5.0.0-canary.a51c31f26.0","@material/animation":"5.0.0-canary.a51c31f26.0","@material/elevation":"5.0.0-canary.a51c31f26.0","@material/typography":"5.0.0-canary.a51c31f26.0","@material/icon-button":"5.0.0-canary.a51c31f26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.a51c31f26.0_1576775714568_0.28228274731410075","host":"s3://npm-registry-packages"}},"5.0.0-canary.21fc4e13b.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.21fc4e13b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.21fc4e13b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b2e8f275b128d06ed5bdb3ca2c639116ead8d5fa","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.21fc4e13b.0.tgz","fileCount":39,"integrity":"sha512-fonKkc4MhzIe5rOg2r1Tc1m9QlXH4UWqzzLAJ48ReFTSLWOC+XZul0mp6K0ug5BvzHsx6CLDjAPvXoDMnmHf7A==","signatures":[{"sig":"MEYCIQC+6Jb70UFkEsEGO+Sj+IPi08H423+3XwSsw9UN6tamygIhAItvCHtsFOmlz2Mf0mufu8LhE25vxX7ji4SKV944Plmy","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd++tZCRA9TVsSAnZWagAA61YP/00Z64uL5wRBZ+bZRvX0\n8t4YXNC6MJTCOklptTZKn5R9HiSv0UiEl0LO05LXQy+5UAJ/MnJO/TG9dJGr\nT2ck0H4tRGX4HX4RTDlb6S5OQiOm5qyErXO/UEHTjgI3SXOKLwAAKYp5aAMu\nFs5uTBKV0ylTgHmifn6cJbMp88lUBlurbEo+PNCVyBWuKaWQnWEYkRWfMSfG\nr9Dc4Ng0uAUOSEt/y06+gC/+3M0jKGmP0l8xRQyrQ8zGHr11BHfo9syPlmP3\nRZ5mtxA+zbKu4VyHEuMTvNteAD+kX20gyVg8/E/s5PtkyDvilZcSdhEL5sWr\noT2S5LtQzYdLG38+rXlKarouD2Vq2GqBgg+AqGfbyZCMbTog21WSVAea7hVu\nzwJGdqtaDLKtdQsrZ+cVby5yDAY8GccJcYBokz9elB2dqF2t+YkZjwxYiFlk\nW1c5CYOgMZBsZgRuxQvmaWlQmLCA7aUhUl348vqA21EoQElvzGpABdI3yvRC\nejnMx7tfTDAYUck5aEYxHc2Su94KLwrX+eV+gomfG43Bp4BOhdiVBtZAwzfC\ns1FpFYWLpL3P1bFZREXyXIUru2i2bT+xoY+ScZVHXu5yrZ/DK6ljRxWdlM8T\nurqAAfCyufjaCMr+C/5x0HKgJcrQp74f4rFEl+7J6ghIS4UvuRL99iN2c5Ng\nEsEB\r\n=6W29\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ca71d599c2aed234cb9376ced1aadb512b071fb8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.21fc4e13b.0","@material/base":"5.0.0-canary.21fc4e13b.0","@material/shape":"5.0.0-canary.21fc4e13b.0","@material/theme":"5.0.0-canary.21fc4e13b.0","@material/ripple":"5.0.0-canary.21fc4e13b.0","@material/animation":"5.0.0-canary.21fc4e13b.0","@material/elevation":"5.0.0-canary.21fc4e13b.0","@material/typography":"5.0.0-canary.21fc4e13b.0","@material/icon-button":"5.0.0-canary.21fc4e13b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.21fc4e13b.0_1576790873606_0.08907876655184421","host":"s3://npm-registry-packages"}},"5.0.0-canary.d2ae6e17d.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.d2ae6e17d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.d2ae6e17d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5d2a06b64d8ef21272c7436be53c2954745625bf","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.d2ae6e17d.0.tgz","fileCount":39,"integrity":"sha512-ElwyDxwo3cpO2QcjV81/16SU6OQZdF/CWG9F8n7dLnMqR9ORRRsK913+jQ1N37Rw9gWM/3wL5J8JfGvxwceqGQ==","signatures":[{"sig":"MEQCIE2Tseu71eymrxRENWm9JA6NU6bBx9Gh509UYECnsdDPAiByhwqVRMUBKFejU4CtyGurWmAV9IANTSRSwV+MLqQMsA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+/i4CRA9TVsSAnZWagAAgIoP/1cc4m8s60O2352hH9PJ\noqf76eF+m+g7406VNc7FI+qK5VnCKJcum0TB4pLM4LppzPYepb3B+vhjfkbo\n/3RyhEO0qd2ozwDd3rJLvndJ+TixK8t+XRiy9u11/7s6oyDS2rWuIriDV6hO\ny78kjsKzqH3Uxblf6UAer4GAWl0KefRHrK1t3h3SfORdAwtH09NvwKbzhfs4\nHlORL4UVxYnvxYkSW54roDXnajbtUpwSltsN98hxKRMZepDps4o58X1xa6RR\nuEZwXNPqS7eZa9siL71kJQwxfB2mJW8idZiUXWK2RR/+QuLICt1aME3DR6xe\nDjC83oGhezwS3rogp91Lz5lyUyZlQ5GRSvDnlCSbw8m5OZJL+yri21BmmzUr\ngzHtcBhdLqrzELf3GeX2MaDl3x6+0Z2BTz89Mzjxh+OZCdRBotcc8aEroN8E\nRWxcMj27X4aVA6OtGqdEejQwNhov+QCJfvoZZuaSwSyXOb16NfsAkRc0BGFP\nGDLKEEMoeULbF+GJQwc8YftLiPcD3gTtzGWlfhTZDeZFoDjv8LDlGTTbKPRL\nREO0QIHbVaAs67F2T53uHmA3h6shabPGJgKNAA+2XU3sLwbVR9dFuf1IgIgC\nyNa2/lMEonWZUlLH6FHNlI1begB6Ucz5QCcjEQcscSOOILX550bwaN9HyQcD\nUmlt\r\n=MlLs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"aeb622d14d533f70c26396fb7db6c8bc48eaf8e5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.d2ae6e17d.0","@material/base":"5.0.0-canary.d2ae6e17d.0","@material/shape":"5.0.0-canary.d2ae6e17d.0","@material/theme":"5.0.0-canary.d2ae6e17d.0","@material/ripple":"5.0.0-canary.d2ae6e17d.0","@material/animation":"5.0.0-canary.d2ae6e17d.0","@material/elevation":"5.0.0-canary.d2ae6e17d.0","@material/typography":"5.0.0-canary.d2ae6e17d.0","@material/icon-button":"5.0.0-canary.d2ae6e17d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.d2ae6e17d.0_1576794295978_0.706306944986268","host":"s3://npm-registry-packages"}},"5.0.0-canary.ba30399ad.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.ba30399ad.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.ba30399ad.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"21e755eadad2ed05650adf103a480ece39aa6c74","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.ba30399ad.0.tgz","fileCount":39,"integrity":"sha512-p1QarTAp3HHCXhLCY1GVeOGjBvaxOzGJPZsNvH6NE+Rbvmd0MmFmSUwEsK7qaB6KsjIw61q5XxGdmeyNxnWKJw==","signatures":[{"sig":"MEYCIQDUYEmO76Fz0mL8fNQXS1Up62ODx6LdaNCT7HhbXKmfAAIhAJwARnoIcYpz9hP9xhSmKoSZYTYPJYZUJPjjCYIw6vWi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd/B+QCRA9TVsSAnZWagAA2JEQAJIKmqQYQDlmwOSKsZb9\nXst3STQESTeBDuD+BQ/xphbKHwaAZmxnJ9vR/z4fRtEnuxkn23RsI2LFBb4G\n+s5Y3+v4lCSuPf+eVboJz2MRfwzAMp3A+HkBa71g1fDQq/xug7ypNKrLwqVE\nu/jF8VCfu2Y4D2wWLiphGsyI+5KfrbP8rFHuUOakO+VIXgr0mgyd+Fffq18y\nl5DkrP1prr8yPeVJtE9hj7eq8EBK+SKstDn2MRk4lUxSTBqzu12kCoGvzQSl\niRDVG+QG5mM11nBXyZ/mADP16u3VPuJaiIZwjbpEWa0J1JqSt2n2HsL5uvXv\nrIe0K7wPMIBxPQS4BW308EsbrrjtMgLREdtoYowztaPSgZ33z78L+58HOdbl\nMdPIVPLVk8CAFJKMtMm9l08d3HhNglXR99KCDpH7mSlsGqkhag+Gb0mILriQ\nyeoRvtmdGy423ANQE505bplDfv6a2LI9U6ungJuh4krhmKwRwpuNpZsjucbC\nSuUOqmWGAmuadqlpWxUe+sxz59pyBppf97Djj20VQFM/58gAHyzi9kPlEtgf\ngWf5wnI7vj7FW5rdHtE4yyFzfY8M7UOjqt50Iv7TnNCYK9lTWoi8Nu/zlm9i\nZsYg15hoFwIyqIJwwaRADtKdctM3bMurSv/Xuj+vho/lSjBlK9hBWF3DGM3Y\nN5fu\r\n=k41D\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"75ab7f122d8d469963211d9f9591a84602711f72","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.ba30399ad.0","@material/base":"5.0.0-canary.ba30399ad.0","@material/shape":"5.0.0-canary.ba30399ad.0","@material/theme":"5.0.0-canary.ba30399ad.0","@material/ripple":"5.0.0-canary.ba30399ad.0","@material/animation":"5.0.0-canary.ba30399ad.0","@material/elevation":"5.0.0-canary.ba30399ad.0","@material/typography":"5.0.0-canary.ba30399ad.0","@material/icon-button":"5.0.0-canary.ba30399ad.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.ba30399ad.0_1576804239076_0.8432740020916571","host":"s3://npm-registry-packages"}},"5.0.0-canary.a08ccec35.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.a08ccec35.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.a08ccec35.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"30a2012aa53d4bf46c5d5c2b0c564c89aad100a7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.a08ccec35.0.tgz","fileCount":39,"integrity":"sha512-WsFEwU4w67LXFfeaurgNnzeVgg4KYDH1jY8a/xZmJkCfmUBmT5Lh22zc3IvegpQB42DyXmxcsWjtHaTjp+4FoA==","signatures":[{"sig":"MEUCIQDcpDU+SQekpeKvIA9Egcl5OZRxVvktdQJoyGnI0NyJ+QIgN5QuKTmS6wjjwo844FVOKLCsHmyiXwBkdQHZxIE4Kgw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd/Vj1CRA9TVsSAnZWagAATqYP/2TetPzJ2EZaX2nyCnA2\nAWfC92SKS+HqM1XiB36EPimekpFAf91suk2fYzrTpjO3otKayjIjeF1eO2YL\nCSCcZqdY9sqFI2uJdMOmRNfSgH47roc1o3/T1zKHS+xpQoAytZ48ZtEDhL9j\nISKnq6KIkAtUiGyFloaJ6M+UjkFJ1ZCsrpQ4WM7ny93i585xYJ59Nx7bpxv9\nE8/+UjCBfTu1XYe/I3CsrhStYysAsN25h8qBDEQwxd2fec9MZT1aBy5lOkrs\nDVVNVKFrybJZMHa8Hwx3wuO9cDYSp1FQuVNsdiwkid2Zigzffjn5maHs2R/o\nQUXCvX371ehfR5RhGmJTCCEWVKGHS7OOFBPvmDinD7dpxgXh6RWfNaz3K6kw\nj1R8CilttAw46d1MO71ATuWLeHhYMspcZ6jRAnwtYsxCFpIhLkN+XV/djnFa\nmqBbEH/eUDENQHzu35jFiXrIK9jr86LVpYsa2NplCGYI5X6/Lp7/Qvxfl6CL\nboN1kkoOc4aQHTirX9LNoKGkDjnqz357jKcnSXX2hI+VThm5aoLDZEA1VB1A\n3Zwz/UQItJiKmnIfZouZOYnuQj/2fh9uyOlkdMIHA5XxAIk2lq/R5Pb5rGm3\nsDdv3YqM+hoUepz5pS50ybBfyljueQiUjGj3lz694QYvuf3Cw21DUoEO2NVT\nbgRC\r\n=Foyn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"121f2cfbbcf425b2c92760a0fcf0301dafb14636","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.a08ccec35.0","@material/base":"5.0.0-canary.a08ccec35.0","@material/shape":"5.0.0-canary.a08ccec35.0","@material/theme":"5.0.0-canary.a08ccec35.0","@material/ripple":"5.0.0-canary.a08ccec35.0","@material/animation":"5.0.0-canary.a08ccec35.0","@material/elevation":"5.0.0-canary.a08ccec35.0","@material/typography":"5.0.0-canary.a08ccec35.0","@material/icon-button":"5.0.0-canary.a08ccec35.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.a08ccec35.0_1576884469370_0.225320383546729","host":"s3://npm-registry-packages"}},"5.0.0-canary.a2f75105e.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.a2f75105e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.a2f75105e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"aa495c530a5565c8e05e3b8f75812c36ecaf9d04","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.a2f75105e.0.tgz","fileCount":39,"integrity":"sha512-jZ5tCtUTLt3/VAkF7brAQRP0KpQb+2w7JBDpooXB1XhCpEyib81tajJ29XuW74WCUBlvSJBtQ9PJoyfZtAFV4Q==","signatures":[{"sig":"MEUCIF63liPvAmXWAvFnDMVNtfbYX0kJ/S0pMnZmnd+l5y17AiEAqIij0T2ljx/rGQ7IRSlkdJ2PmWv+zYH9fu6gnjEmf78=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeARoPCRA9TVsSAnZWagAA278P/jq4STeuvzFFac2FHnEa\n319tG/oyrxq3/QpN0NuTLg9RmHX/MKhD9KTvJKMBAQf2c1QZUhqo/qsgvXBK\nb8tmyG63OTtUv0x5786+sIZriKMUX07XH6udm1NTHktKbQPHxz1g0DgTb/RV\n6mcRLJTg6c6mluItIidutwImTlYHwih3aeD3mlhEZFOeJebjloqHZ8G68Fdy\nWBCagfHfvHogjgniSl3nCW6o8E6znUdBnGyMN5aqq1W6eRWWyT0GlkWuyqzH\npBLOA56N1DcLEs9+Rd6G0kL/no2wkmBBiXlu+RaITl43Y4HsQDVc0LQdhbtp\nOrZ3ofGXcMk35x0gWkqXfgdBhGKvZbm4monYb2WZeAu/Bl+w2bVc0GD/3Ead\n7cO/JxAvK7i7mE8lsbjjuKpF34YVa7vWMA7qBMRMmPY9RhS7hA2lQ5B+XCuK\nq1yvOq1zJT67duLeIJMIZYWHdg9z3eOmwosH3/tGgxZh/hT/1WOVwnU4c3LF\nOFPkwYA+HomlL/4FuN0eblsnt0JmZ9wFM/8eZfll4T4balzGDpMSEDvWb5c7\nz+S+dgj7SSsqLtMMSyKqgmJJZrcP2NIl/pZ9roBaQ6VI3pXQuISNkIrne1dQ\n+C+dP4n85tIU0koM5wr7nyWMRBJ9QBmaSdUiafpQgCzarBLUAjiUBi23HC+3\nsSor\r\n=NfcR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7b2f4b595ae59e3e680ef1151ab400a3855144d5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.a2f75105e.0","@material/base":"5.0.0-canary.a2f75105e.0","@material/shape":"5.0.0-canary.a2f75105e.0","@material/theme":"5.0.0-canary.a2f75105e.0","@material/ripple":"5.0.0-canary.a2f75105e.0","@material/animation":"5.0.0-canary.a2f75105e.0","@material/elevation":"5.0.0-canary.a2f75105e.0","@material/typography":"5.0.0-canary.a2f75105e.0","@material/icon-button":"5.0.0-canary.a2f75105e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.a2f75105e.0_1577130510782_0.8794498598781106","host":"s3://npm-registry-packages"}},"5.0.0-canary.c054a24c7.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.c054a24c7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.c054a24c7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"05546ad29c1db3ff9d106bb85a7d7aa42cb3c54a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.c054a24c7.0.tgz","fileCount":39,"integrity":"sha512-eh2htwue6voArNMoizCBlJ4OBrUOG+FeA5kbrWreFWcc5tUlny2uH6N3Z2dcZwDd0DSZpgFptv+xgxgRqb9cjA==","signatures":[{"sig":"MEYCIQCb9AbdCvMY4FNtmdTzWSftr6d+Q8rD5Kog+Huil9293AIhAKAMzwDVK5pqmFNwkUTmD1yUyyZZ7E7OnV36CDoNzXSn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeATa8CRA9TVsSAnZWagAAirQP/j1H5ajQ7FJDBSv3YEe4\nXL1oLSWeT9wYUb4DI+H5ADOo/Fg4KAmbATppTPv5K5lyEzIlCTFhp9Bk1FKx\nk2aPymZH6eHYWZFMIdgXWS5OCnqLrbnIJ6XQs1L4TrFEjIjBtmTVvh+jYTgH\nsktek4rU8xsio4antIy4WsZmViwFOynO/NbsW9qqUJtJxlCFsd1gQZefuemv\naPYqyq+aRhWZN3X/hnEFDzTImso8x1bBtTyTl3UddQwHCvHiviWpLIbsI9AY\nY2Zo0vWEm39qVsIhgai/rgEc0HoNjIbfAZX7PT985qQsA30rEBIRhITP0uc3\nHISNImC12cMiEXtwAks4rasTCykWJEHjB9EfJFgFNUoehIE0krtZwaw1K0WB\nh+vRD3C//9S7HEjzdp9aitu/77e6emfMcfWSUPr3QCo6K43AM+3CLUW2tAkT\n2VzCJmzs1Tu/5+oPIVrkpZExyv5zBMwBLhajFZKgn1zSWdpZo2vRM921nxNR\np0WCkYQnc2hdMzfNG81uMgd+ZcV0XGR53WHGbB1e+8ECI3vjGyNOd5J8caIW\n1B0TGW4icv5vsZ46d5HCZqlFqHOf37mD5E1LYsUpAfJxe2KS90FSfx5ht2b2\nWdlBYgX+iuVnE0tymPGqrYHWLPeypxyaC01MGntPgm1BQcmg0zJiRkdS9zIw\nSG/W\r\n=w4sb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4e2a3c12859a131938df8918a9f43b9146056488","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.c054a24c7.0","@material/base":"5.0.0-canary.c054a24c7.0","@material/shape":"5.0.0-canary.c054a24c7.0","@material/theme":"5.0.0-canary.c054a24c7.0","@material/ripple":"5.0.0-canary.c054a24c7.0","@material/animation":"5.0.0-canary.c054a24c7.0","@material/elevation":"5.0.0-canary.c054a24c7.0","@material/typography":"5.0.0-canary.c054a24c7.0","@material/icon-button":"5.0.0-canary.c054a24c7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.c054a24c7.0_1577137851894_0.11129342974794376","host":"s3://npm-registry-packages"}},"5.0.0-canary.c6808c51c.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.c6808c51c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.c6808c51c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6d7c72cd2e75e8fc4c04edebb04cc66c47ec5c9c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.c6808c51c.0.tgz","fileCount":39,"integrity":"sha512-G34U6J/4/YPQwZPrSFnuZD66Jz3m7lIfYqEfYMFGIjh7JiEeJ9BOxVWsfQ5elX6a5EapVCXKg5hCUnBwlByWqQ==","signatures":[{"sig":"MEYCIQCT5V1Ki4XNp1fv8S0mHSq/NPNRr08ZDzdNfS9+oFHJAAIhANzHle7dSRlvsxE+lBrIoV89n3PPgZTfGnOHsNyDCjzq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeATfHCRA9TVsSAnZWagAAsDcP/iuxw9PN4Y3La5Mxsdnw\n3/y7wYxP1gECHfDfdpm86I46OLJXSCO0Q6wdsrlYYaBXJKZh55jPEPRoJGyD\n8Eo5E5AUH/VkU1MO/stIL+h19ueCp+30x83oT6jCpi9+CwEs9BT36Jof5fuH\nNeu3OFqYBJZrdYZzPDm4SihkKZ9fW0fo714p5CU3fgU49lD8aAemIl/qUhWP\n/IIkpuLsyFfC1HhxdcXO60AkdEPfmphK3FG/ldCZL2OoQz1CoC6X5/WjP7ac\nrX06BIZCniPd9GuqaYAAEXzfP9msLyFy8MyfQ0XFI6+K1rwKPS4/vKk4Iv/n\nF7tWVoo+SHJa3I4HERJKUvg5tbkJitfofZXVOE/4/kYxmfCDhIZQ1sQ0KiRp\nkuplEp1xzG0x/0NKfN7jbDyCJHIXUDPPvLNIznUtZBcGE/kF1Gmd2K4FDt1b\nXes1SrnIZ0FDFHvizsFpFNMaUEc+FLgSjxgzEvsZ8M3Q3iUhn1ATGq1PiFaa\nI26U27qsmrUSfSE52+42ZAeR9bcx1/Lng8wM8KVQTOY3D2kcQ9dZ4ruUo3I+\nlb/R3kldHEvAAutiFKtCiWDGMlRkV5ga6Fdc94bOKSgoQnaauojJKOfwEfOC\ndYzzUZPAk9gIxvEsIxVKydIh6+GF1JVKUNy96Y3c0T4HUp/CISdT2mF5ma77\nvd0M\r\n=wYc8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"02ee460be616b30da3c6d5daa7eddbc5f29d2500","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.c6808c51c.0","@material/base":"5.0.0-canary.c6808c51c.0","@material/shape":"5.0.0-canary.c6808c51c.0","@material/theme":"5.0.0-canary.c6808c51c.0","@material/ripple":"5.0.0-canary.c6808c51c.0","@material/animation":"5.0.0-canary.c6808c51c.0","@material/elevation":"5.0.0-canary.c6808c51c.0","@material/typography":"5.0.0-canary.c6808c51c.0","@material/icon-button":"5.0.0-canary.c6808c51c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.c6808c51c.0_1577138119470_0.7593067536801867","host":"s3://npm-registry-packages"}},"5.0.0-canary.7bce9cf77.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.7bce9cf77.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.7bce9cf77.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8de4305305e282d52f50c42b5fbeb431af11630d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.7bce9cf77.0.tgz","fileCount":39,"integrity":"sha512-hfj/D888s3xhnXDmXaCtoBqOXzpwfGLF6EbotoBF9ttp6vwMpgILIjS9NmbcB/0qk5alRyYgJdlgIAxjzlf/Ow==","signatures":[{"sig":"MEUCIQDtmXKlXnYPANFWGef0h+HvwIzcm8NoCdFyBG+Gli+ZPAIgGHADckfUUjqTIBGDdLoePskgIPSxacaPFwbsjYtydgU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeBQAACRA9TVsSAnZWagAAdX0P/3AiMr371xu7cBMHQPxy\nJ1R0JUTW79N8asIR74Z4cKqkhg8qPRSzwvvPupdnNhdAdY2dAHvUCnum+R2U\nusLZpcS9zBIHsPlaQcwsHhd9LNt+wn6kC1zxG6p88GLAFHY85DJPUa7tBZ8n\nN7hNPozTKs7a0w0KhmSUr+4cMy1ShXHleYIWa+fHUivQ2sZqKCt8zTyykalC\naEI3LTolJ3IxpLyfLjJ1PCwbwkDwEMirTeyFqurQxvtOuTtYaU6mHocN2bzg\ndmVvB9nqc85g+VlrHCppmMrRUrZuMHXUU8LzCnE8zxpgVn1g6NzTjYymySUG\nyOsQ3FMDQRIK9GVL/dpAuGhGJYU2bK7o6B8zwTfOyzDb2h2SWqchfA9AM8sf\nCJpHrVmxQXDt6NmdnwcJ8rLb68jPkg2UhuW/ZX5OWZBYEpSHSw++NasxeCGX\nBQlV3eWAEI28EUpzgHTooj8gpxXzUDOvYfxLVIfqNOWFuattX1RBTWL0vRBK\nCPPDq3THYzCVWvQBCXgXoQBBqz+UJAh5/WyJtIDV51KxcF512TAub7Hq9QWq\nKapY2IDClZBQGS7ywfnCSqyztlyemlTD3424wpA9dQq0KdEEVgF9uU+RztfX\n1giVEgulJ+menqSAZFg+Y1PPp/vY80+VsJiMHTa5R4LKSRFu1ONFkpRj8d6z\nWacw\r\n=wite\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1f5c1996d2328a53d1fc5cffe847b04aad48432d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.7bce9cf77.0","@material/base":"5.0.0-canary.7bce9cf77.0","@material/shape":"5.0.0-canary.7bce9cf77.0","@material/theme":"5.0.0-canary.7bce9cf77.0","@material/ripple":"5.0.0-canary.7bce9cf77.0","@material/animation":"5.0.0-canary.7bce9cf77.0","@material/elevation":"5.0.0-canary.7bce9cf77.0","@material/typography":"5.0.0-canary.7bce9cf77.0","@material/icon-button":"5.0.0-canary.7bce9cf77.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.7bce9cf77.0_1577385984011_0.8889126287527731","host":"s3://npm-registry-packages"}},"5.0.0-canary.c92f038c3.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.c92f038c3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.c92f038c3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fdea531e1161b7179bb70bb645dbbd66c0d2ce41","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.c92f038c3.0.tgz","fileCount":39,"integrity":"sha512-+rrDsNLe8jAPDP+pj+8Ex3q/xmPiwhiy0Bk51V6TdH/K0bEk1SoiSbZcfK0DNuqGap2ThWXV0wb/ChiZ4hKakw==","signatures":[{"sig":"MEUCIQDN6T+AAmNWjkUIXREIXI7IOi4bmjPe1Rpa080weBHPmQIgdoGXAVShMfNRSgCnEPGs+XtYmXrOpOBQ2CwTcvO8cbc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeCnRNCRA9TVsSAnZWagAAjMQP/1TkWx+LdmynViqmadlA\nLTK628vT4a59agMD/iLDhM8GJSA2czetTxWlg4e6amd3i2IfDHfK7GkexepS\nqWkBuEKEaSyyyj0zTycfP/E/T94CHQ9WCPCESxlvTiGYDpWarQNg7oztZadu\nzc4cpX2O3JuDZe4KBIATNse27yK9C2s2EfiexSb2IXVOTOd5eHfMgsv7YHKE\nBzJ9Fq8T/qR3Hlw3Iwuh9M1hEeweJRYgeCiShemEWpp/tKFsV3ZdujxqUTde\nt5YnksFxl4xwwV5xBMKseDvwW4bzz6aoqo0vWI6igRfc5r30yTShNjRCdXao\nmCiGHvR4RgtFavX1Di9wvC+Elc01a3SwtAa2QOcpMvAkOW5Iwbbzm9yi/yTS\nUObyipqJI/25RI9Vt0EYPU07pKncveUkSphXw9f3KaVe1kDerBQOjC6rr4x0\nPvG1+8JaYMSB7J3xZxxdpaNQSi6ZXqpM9DI4jA5bzUG8CbNEA8qkGT+dcwHL\nhoC8m5BKijgrqZR0ejnl3HEygC25ZLJpxWwqhnHek6o62W3YlSdSSaQzfd6z\n5sOLhjEqrpA9s0GA2ZmcWMrNJq1ELj7MPYYY58Nfvx/b3qxoVtyVPhL3lukV\nuQmF5NyKgtoGloEJjSNw3L2kmU7H0wHuhASOiZRAjPf9gc9OlZcPoAZvfJlw\nHIWT\r\n=bAge\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"823f4f89b39f86d10ed69fa8a943c050c2d83a6f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.c92f038c3.0","@material/base":"5.0.0-canary.c92f038c3.0","@material/shape":"5.0.0-canary.c92f038c3.0","@material/theme":"5.0.0-canary.c92f038c3.0","@material/ripple":"5.0.0-canary.c92f038c3.0","@material/animation":"5.0.0-canary.c92f038c3.0","@material/elevation":"5.0.0-canary.c92f038c3.0","@material/typography":"5.0.0-canary.c92f038c3.0","@material/icon-button":"5.0.0-canary.c92f038c3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.c92f038c3.0_1577743436302_0.7122545237230853","host":"s3://npm-registry-packages"}},"5.0.0-canary.1f1ac7558.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.1f1ac7558.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.1f1ac7558.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3a9be48b38b1ba95c4765422506e5c44f7ada421","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.1f1ac7558.0.tgz","fileCount":39,"integrity":"sha512-7evF5r5LXkVUq+bu186z4IU5OYDEOCFc5GXcNudzAQ4lXKrIJix9yWfbLTyo9rM4MxR17eqZySolCId7PUaOQg==","signatures":[{"sig":"MEYCIQCItI1D4TyMRYqEby+DP82V/M3A0v3aH0CRTy1jznlJ3gIhAJ/JzcLh88KI7dZSJ6rAs73iC95P06TtP/ZsiUIE2qq8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeDliYCRA9TVsSAnZWagAAgOMQAJm+3iSgrhNjFtaHplYh\nCJ3X+5S3CYhY8/YCmr8fsefgIYOKfW1Ls3itWlBbS1cVT9I4l8DZWWCwuyiM\nDbmbZyify9wiPU2Ohz61AF37GrQO/OdKk/VntjE9tPH8myxVcO0qTREam5jB\nqS3SbwIU7sjjxULtbQXuyJH71C7jn/CWIWB4Y0YcnKCdK0efqKpTX9/TYMkL\nsFvIR/+rb7St9sxSdce5VNew/fGpT23DkhylkAnycVQa826lv1hrvPprLWAW\npoM90VnJbHeq49ZjGq9eTX4bXmtDLPwYIMztaQ1df1UAxY5kc6x9OGKSrfVu\n9LPRr3PUqOC1xMz1NlvNTsvy9PDDhbd0sEjLd/RpeFgopNv8LDVB6vhq2Sic\nHFxFIk8m+Dz3uDDepVJwAwFxdvrzchv3XpWNpwSwVLVialU+qkf9kPqkpbH7\n+0vLGc+nDytWx5JuJ1usrsUHBVDetasB95hcz8A1Nz5ZQFqa8KqXokbrYWlK\nXH2WKLx+eImAKa4em/ZaFzUT9vCPwcxqEt8cahG3W/WSxzZakMkyxwj8vcEn\n+7YvGGq9pUQPz3CCEBlFnjMWetvqvyRNX6Ljjo/OFlFhHNGRK06h5z5tZOit\n/vmisWwXofRPKuKZmvHbNO1K2ElHPT1f6t2WmHI53rliJeDfceI2WeNTH2F8\nlfZG\r\n=CvXR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"698a9278145ef0b4e06e9c33d51051b9650c5b11","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.1f1ac7558.0","@material/base":"5.0.0-canary.1f1ac7558.0","@material/shape":"5.0.0-canary.1f1ac7558.0","@material/theme":"5.0.0-canary.1f1ac7558.0","@material/ripple":"5.0.0-canary.1f1ac7558.0","@material/animation":"5.0.0-canary.1f1ac7558.0","@material/elevation":"5.0.0-canary.1f1ac7558.0","@material/typography":"5.0.0-canary.1f1ac7558.0","@material/icon-button":"5.0.0-canary.1f1ac7558.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.1f1ac7558.0_1577998488313_0.2230381155306329","host":"s3://npm-registry-packages"}},"5.0.0-canary.ec26e799c.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.ec26e799c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.ec26e799c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0ebf88673bb593e90bb82895cbd29292c20976fd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.ec26e799c.0.tgz","fileCount":39,"integrity":"sha512-Cpef0mx9vylEp1CWaO0m8PnGsJdLvozSqM0/uV+ar2enXLJcfKbUoVmrAWL1XeKyHSKFQOJ0ClL482MyrX8/tg==","signatures":[{"sig":"MEYCIQC32AgV566OdEjEsdzp2PrcldFcaHZVE9j0CXcurssIywIhAJqf36dzzviHIfLWPML81a15GkQh/R+5k+rGpIxPDv00","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeDmPmCRA9TVsSAnZWagAAz/8P/R/exuH1BMXp9/SJou0L\nxzn2mbke67aA1WrRXnGHtTS4NJMdCG8wUofF4lA/EpM0/Lxs/ZzwVoNVOgZ8\nK4Z2uB+MpjI0DVAjhdsj7UmyDvsbue3xJ8HxOIBpcCPdLu6kZu4egSB9LDRZ\n6Lv1Y0mLyw3cKHfu2VDr68Pi1hIFjwEMI/ekU9f+1WgAJLaGU9qm3jh7FG3j\nsEL+crJEXpc02Fd14W+gaToY0DcUcXLBx7j+qZCNTvMM0hmBspijMwIKOBpx\nMtVy12QrMz+8r+0ln3ozCXxLuB4UHTa8QI6rJDdQSlXOPiVQucQLPmlQe67g\n3SjTXthqmKsmQKSfXKrV5wlLIHfeJR3qtncppLGUrKb0eNOTtF28epcj7dbf\nGK53BXYhGB1Ht7HswFnTv9HvRaxUbiQ94b+TVLqx9VJkg1pKSCELgkSK8lpI\nfx3MScvnJlPlUMofCC2AZBvVQKfPyX/vkfPvqVU2/7NK6vLTOvZ5ecf0my7i\nTJ9ceXBfb1oUluFaEegRu9dMC1bvkbaBWtYyh2ZdfxmSc82ElY6ZEY2YQ3Vl\nM2PAD1UAHmtPNZwH7hJaeo91trCzkfqcvnqALXDLv/oJq0ISo9kZu9/nxx9J\nTmWk63XzAKHzhCksFGGFtNq9Kjj+2aEXKIVjPfs6GH4JcEPaulgRuL+Hllhy\nfO1E\r\n=0tlm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"813829c13087aa9fccac08bcbdda0ffddacaebeb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.ec26e799c.0","@material/base":"5.0.0-canary.ec26e799c.0","@material/shape":"5.0.0-canary.ec26e799c.0","@material/theme":"5.0.0-canary.ec26e799c.0","@material/ripple":"5.0.0-canary.ec26e799c.0","@material/animation":"5.0.0-canary.ec26e799c.0","@material/elevation":"5.0.0-canary.ec26e799c.0","@material/typography":"5.0.0-canary.ec26e799c.0","@material/icon-button":"5.0.0-canary.ec26e799c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.ec26e799c.0_1578001381752_0.3901528576835267","host":"s3://npm-registry-packages"}},"5.0.0-canary.0a40ced40.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.0a40ced40.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.0a40ced40.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3c48be94c896467b1be2ec4753a57593de233e5d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.0a40ced40.0.tgz","fileCount":39,"integrity":"sha512-NYmlSoTC+AQxFFU7WVquj6Ny0fZIOLZH8ikz/FYz1DnCzwrMFEdjSMHgbcVqrOsnoHSKwRujml5jnH1dZyROUA==","signatures":[{"sig":"MEQCICOHAcv7MTWHifXl/CypnZ98ZgBN3FIKlx1CdEf8lUSSAiB18KMkYFH7zMPqjQxYKcIKe7py4sUb0xQdh584Br0nqA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeD3WMCRA9TVsSAnZWagAAXRgP/jlvXx+nSNw38ci16E8X\nvHYC8/QOvbqWerHp6bpyUl1h4CLtSwKh7UelWVLjoQEfQbdTVmnHoYC5Yzi/\nJgYXSzjGs2VNUzDjs/xAZ3eZ9hVRzVH5pTD8iEUl/a1UDLU0XRCpQ7HXYG6x\nN3FsUWXaTZ40km0awN9DTkqC96VqAZ3z/qnQtnPdojbvTwc0CSflAFPjrlAU\ncy/uEWyevJrCmQi4YeVM+uRj4ZArNPEnc6ZrZGkc/JAJH3lHysgW1yF/TKvo\nsAdE7O+hLgBFCfMn/HSnoQLAHOe8Ihw4LoDNzNGl8Rnq3Mo2c76Uagm495fw\nny7ZYJgaRoy+KLP0DHOsoDMc6wYGyK+ufHNn2Pe3EZEdZK6Knv4h4uXI7vjR\noMnQB2Z95iS4W1XTWfHmp8wK/Z74Ou/S6wwjA9clqsjKDcP+4SHZVsSVmFQV\nzSwQyjTgUE4G8ui7834CnaE6EL19nbip7s0nH1znOlWwi8qWC9eucnf/hFSk\nYCfEFSxwC+xWO9gMr3/mD8Qjpi4jaERxy3bCey6Z3NQjhxCPowk1BN8AjS5S\nJK4bqLcrDGW6oVLd0iJeBETPDZpHNw6nZoaTQz3gU94qoFTBhu7hpzoxEJgP\nR84/gx+aXNWiqIxRFbMwtGx5CRFrOdyvf1CRHAjLUCu4wayv0Fa6dprDnVRU\n/0Cr\r\n=1HY1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dcddd5ac583b29d0fffe1a54b6f634f6b90fa44c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.0a40ced40.0","@material/base":"5.0.0-canary.0a40ced40.0","@material/shape":"5.0.0-canary.0a40ced40.0","@material/theme":"5.0.0-canary.0a40ced40.0","@material/ripple":"5.0.0-canary.0a40ced40.0","@material/animation":"5.0.0-canary.0a40ced40.0","@material/elevation":"5.0.0-canary.0a40ced40.0","@material/typography":"5.0.0-canary.0a40ced40.0","@material/icon-button":"5.0.0-canary.0a40ced40.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.0a40ced40.0_1578071435803_0.42797935734408865","host":"s3://npm-registry-packages"}},"5.0.0-canary.3adf84899.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.3adf84899.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.3adf84899.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0ae1d90d38e179cd2abf048ed5c8800067848c72","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.3adf84899.0.tgz","fileCount":39,"integrity":"sha512-CqqBtlJdSbMVmfv9FJZPumU9R+0O3CNAJBug+Xi4us7VcpNlmWP4GM9fJYhkHu/ndgPTDv4YqNXNO3xqGH5VUQ==","signatures":[{"sig":"MEYCIQCc9QrJgRjm1nYVbQ9O5g5/gAWZyxhUADoykPuBtGYBAgIhAN8RjxQSCTX76tQtEfZnG5ySOpySoFe0u6sNyGcAR29B","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeD4aaCRA9TVsSAnZWagAA9AkP/RayOmULUxoRsntI8bGY\n8kj5h8Dap9XGDIMKkHETIXVlawx1LpECGvavGLfyZ5se2TS8k1e7O805UgHP\n/ZvJV/JnDD2EtrphJHMWAEdsCMZWhRDU/9IpTEtjmJXBepWr8kUL3EpVBobF\nasOoyCIglhdwm4ThkXIICmhUnGGsXOM5M6SewRaZQlWdEnfUYfc00xS/T3J3\netACU5Rytu9QLcEXky1uTS4UheVMY35iS0gokbz+XaN0IBI00CGvPzKojFzG\nlrRJtvbVcw85dIO8ZGExFx2pXx17t1nmQeimlxn0/CDMDryjtRdbQVnjh/6J\nMZOcv0Qo0B5u2i9CgcGhwAh98KHA6P5hCRsp2lOSVFWhFwqNWrEuw2w94SyL\nZN9VpyKl0bMds2Rwwf9GTf/76EI9GU7G7ghaG+u+oxSXamL9osakg6RlqE8B\nLwOObqoH2FjWhP6bGh/KjD+RYle1oiSzrCAP7VDfyw1a/lCyi/pGLWmqLQJJ\n/Pi/U6D1MT1X+cJqAGL6rMa8R5PIR8cUbp25p56shVB3qhzIE6fN/ntr/nTO\nOrbNm60T+ePVtr3jQenPb7GhK0617OFMZzAQgKPrJLY/7N6IRVxweS27xXDO\nstBCMJ1XteP/oBT5lOHnc5+T6uNQTR2S6eLqQ5Pzo3nDcF7OOWSmBjtcjiqp\nfU5/\r\n=BC4s\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9f20ea5e081bb781aeb0d66d6db6a0ea7a0f5619","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.3adf84899.0","@material/base":"5.0.0-canary.3adf84899.0","@material/shape":"5.0.0-canary.3adf84899.0","@material/theme":"5.0.0-canary.3adf84899.0","@material/ripple":"5.0.0-canary.3adf84899.0","@material/animation":"5.0.0-canary.3adf84899.0","@material/elevation":"5.0.0-canary.3adf84899.0","@material/typography":"5.0.0-canary.3adf84899.0","@material/icon-button":"5.0.0-canary.3adf84899.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.3adf84899.0_1578075802058_0.9034602905378022","host":"s3://npm-registry-packages"}},"5.0.0-canary.0d42ee650.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.0d42ee650.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.0d42ee650.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9163319e42cd433e5bdab380346df6550bedbdef","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.0d42ee650.0.tgz","fileCount":39,"integrity":"sha512-OvoDGASQnYyFVI4BPYgkgB7NPCbOgqCVtyGCYFWr8C5Dxu8OdLwzR3hvgUtmjKDagLtLqY8p2s6h7VKSxgKC4A==","signatures":[{"sig":"MEQCIHAJDP6F8lmOYCbPNTnEH+0MY9PXtg3oySeiB6lyyMYSAiBMIm4linwxnrpWXuzSj3MA0n3aIP1OtxJAN5xEV6f38Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeD7QnCRA9TVsSAnZWagAAD+MQAIK29tytJOOfQIzrKfu6\n72PrXttugxdjRer4+NX/a+ShW9p5a/wsXK7S5lYlSpnmBVdYvWThhgidcZiX\ntaTwv4Zl6Od0QiU7E7uT+LS4CujrL5VeEnVVqKmLKEvqFpwrmWB6wwVGQbaz\nW9WFhmw/rQYesov6Cwt13POsRtnlRCB76Jc4r/J7i/u7IEWfLX7wSDapjLIo\nZnFxqfjNx/rOdXjrl26eSwjJI8Pn5MRYtmPQQqMaHbr7L75InpUdszRX3YFZ\n9EJUc7VGc+OWpkOV5j+5o4EWwmMz8Q6vo63KPPFNXdkrJRHZcwfkBuuwbrDh\nDFhQHoJDc+T/0v9e+a1GiQVNeNgUh/DPsEcQYKIy79FJMnSDNUnYfWn7o9Lc\nzIpqDx37xm6W+BitI2v193dqG6SHSKKWZQ4F9l54zlek+X5u/+8SUIobhEps\nU82KfM6TJDv9Np9VqhS7tXkMPS9b/C3+ANwz3IHoX1q1iXAvm8TJHji0PJSu\nuotT6tlhxKsWNUCczuTzfboWlkZo5mj8xrdA2BqY4rAdJScJE2drHnNWOSjM\nFpOeqTpXJ87qM6oJBPUnp9R6BQhlfSCvnbr221vxMYYxDSXIaXNJFETtTSjl\n/Qzn+BJitcR8qE7+uBlMvuSH1lJ150vBNSkuIv6HRaFUtny/D3fnPKzDzHEc\nG0pE\r\n=ycxy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"184f253632333982c2b642e450e6e98c9703fe85","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.0d42ee650.0","@material/base":"5.0.0-canary.0d42ee650.0","@material/shape":"5.0.0-canary.0d42ee650.0","@material/theme":"5.0.0-canary.0d42ee650.0","@material/ripple":"5.0.0-canary.0d42ee650.0","@material/animation":"5.0.0-canary.0d42ee650.0","@material/elevation":"5.0.0-canary.0d42ee650.0","@material/typography":"5.0.0-canary.0d42ee650.0","@material/icon-button":"5.0.0-canary.0d42ee650.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.0d42ee650.0_1578087462386_0.4796943984754627","host":"s3://npm-registry-packages"}},"5.0.0-canary.847dd1ada.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.847dd1ada.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.847dd1ada.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"dd1654ad81d452e5b908b5e917472e465227fca5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.847dd1ada.0.tgz","fileCount":39,"integrity":"sha512-V+SZ0iFvqwX5piO1kcoFsRN3ALK5jtjgV50aJwGzpRd9Wkp56q5v4xXslKP0OGuH36Z+3Q4019EEXJiZ4s9tRA==","signatures":[{"sig":"MEYCIQDkwYs75xRdsxp6sbvFJtr+QO6/yKojVTvOhU3mp8oDYAIhAKJX1oBQf0gZCwE77EFiwnBN9dDs5e44CJS3Cft0t7RA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeE4oICRA9TVsSAnZWagAABHQQAIJ9OVyKPTROZ296l+mN\nUa5MNd5jtMfOGw7sTFCmCl2hSC3qdh9ZyylAkE1JbPygvBj+kfg6jYrZqIir\nZ9KJJdPxclB6x2b1wJMuvIsucJu4IGMHLBNNyBB+SeQCiEZnhULiHMuEgLop\nHz6Aqr4HCFgDYRLNZ3OWIAwl0qEui7BwHzT7kv102CF3+Gk7BRzrjbg85qLl\nsIn9WNESvoPWcEIDP67LH8DHpQ1hnEUUOSifH5yx0e/jrWGc9+ukfkUPbpuk\nJIegC0GVentjZ3YxezFOgM9+/2ng5L8BguxIP5dXCDqMteY5fxds3qjj3SQZ\nc7hF9ZTmADpXnuko584LZSEa3C3QtdRhATViR/2T4V1o8lI9mGrmHkhyzOu8\nYpnFApA87dxkb3MkXe+Ddmmlg11xXEvSUL2dMVJUuYxNiDCcfrDxt0KSC7uW\nf76uRlS/6iL2cJL8qVOy5O/oRkRjRhioP3Zrz0Keihx8mg89x95+u8RERHmF\neOYzkr83LxqY+xqzNXV2PX0w0GQ8Xvm8JP3Pb/bM2ot0rykHSyfLBlyY/KXi\nvF+T+P/sa0zICYKHUGkL2WpPNDGfElfaC5BvcrqXHR8eNLQNd9e6URLnXeAg\nkb/AzCtAJwxm0RpXndOyRQxjn87w/2vjf5fqq+ZKx026/EthkfmHxrD2MXZA\nQrpE\r\n=XbCR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cccb6b13f05f64e22210548991ad471df3de97f4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.847dd1ada.0","@material/base":"5.0.0-canary.847dd1ada.0","@material/shape":"5.0.0-canary.847dd1ada.0","@material/theme":"5.0.0-canary.847dd1ada.0","@material/ripple":"5.0.0-canary.847dd1ada.0","@material/animation":"5.0.0-canary.847dd1ada.0","@material/elevation":"5.0.0-canary.847dd1ada.0","@material/typography":"5.0.0-canary.847dd1ada.0","@material/icon-button":"5.0.0-canary.847dd1ada.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.847dd1ada.0_1578338824491_0.2708772484635191","host":"s3://npm-registry-packages"}},"5.0.0-canary.39df7e5df.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.39df7e5df.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.39df7e5df.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fb4156074a6691d96e4e9cc3fe92d88c18eeac2e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.39df7e5df.0.tgz","fileCount":39,"integrity":"sha512-U1ICwcvToydcNFQzgb7T/4q2fsbfDOon7i+4PRrkt8boJnIDTk3mC4nbvuqZbCBXzP2MWQcdRqcDzzvIaG/XDg==","signatures":[{"sig":"MEYCIQCy5YMhg/jknTzzKwA5vHXmGSK1Il7IP1zQM7WmxbUU+AIhALe5K9/C5nGQcxqKfVuDJ2MMbyZU6ZbAA24xT542oPDs","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeE9cvCRA9TVsSAnZWagAANO0QAJtjiLAy8LRCe3cxj2kJ\nWfm72hzYA/oB1y1mH1edsiGkzd+jrwOmqdJJ9nt1h+MZM/VAGR7utUHks6rx\nnb1qqd779CNlsrzA0HjOHTDAP9GVOvG68nSxyTR66laSuP1Fv/aOR8xQvzi1\ncN6G1aI+Ztgcerbsb4terX/S0Q+v+47ZImGQbl7ZRLjsttp33uhod60zqpF3\nHB81YF7oSXSNSwKalUBIEUzXRzP2pUtwuQ/NpBjkqGxMZWX5aYVrAsT5Hn0e\nxCeK0zCm2wUjzLQTuuarI1VJyXlFbYGbwMGjdxN1gBa9T04VxxRnzN5Zrjar\nGf/vsAc5siiPIM3Bkk0q0/ZQPZQm/1cl43nN0Nh4bbO8T3rueNDJ19x7p3se\n1ZRrIi7zRFMxp8pQn339Q5vloIE0Psv7vEQUskssHI09V10N9ioSL9ru32lA\ngpPcsFwJq0jAW8uAA1gB/Mp/K1PrgGjrzuH4wXAFEJAKvSid7SbErOc75YZd\nLdt3qf25p/3kkSB68PCTIgm47TLCTTyr7X9Y59mGuSQ45MHT2dYN79Ha3Fuh\nK8GwAWCIFZxhw3JxgIqZvcWpamwsxm1OossEVLqfbvc0bErwBNZ5bW7O2Tyf\nLHO8dH496WgYVyb0YKXwq2lGUqKGg3PmK7xg6+uyV6YqUyRLOSBEyIdVWxwk\nr3UZ\r\n=0LqE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a6995715f8fc80d9a20e6b8ea90e80f4906ca595","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.39df7e5df.0","@material/base":"5.0.0-canary.39df7e5df.0","@material/shape":"5.0.0-canary.39df7e5df.0","@material/theme":"5.0.0-canary.39df7e5df.0","@material/ripple":"5.0.0-canary.39df7e5df.0","@material/animation":"5.0.0-canary.39df7e5df.0","@material/elevation":"5.0.0-canary.39df7e5df.0","@material/typography":"5.0.0-canary.39df7e5df.0","@material/icon-button":"5.0.0-canary.39df7e5df.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.39df7e5df.0_1578358575285_0.6109367043088774","host":"s3://npm-registry-packages"}},"5.0.0-canary.f1a2581ab.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.f1a2581ab.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.f1a2581ab.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4e2ba79240694849ec4b27fd5c93d23dc1131468","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.f1a2581ab.0.tgz","fileCount":39,"integrity":"sha512-gbmh2F+z3wEFA83H+y+MsgbdCZuEaud41eqym5Hjyj/V3riqG4ukIJCoaJFPn1lcEL9EO5EcH16vBMzLdXdZtQ==","signatures":[{"sig":"MEQCICamH6WQL+XgzJzdnyhLxl4YPH3FOMvszR0hEiS/F2iiAiAMsjMfIVXtQNO55NVdnM81CVQLquV6+LdQBuQWAmgwwQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFJ0YCRA9TVsSAnZWagAAkCMP/19bZntwKgYc1703Xps0\n1dd8HevxftS3wewL/hPnQSL8g872Stt7zZGPZOTsxSgi8/VhZJQHSXRlnSAg\nXr3DRkyWBeqnyFRx4ZdBWGzWxRK/Ku2BQucCKWKPgCyYuM2G1qAZMQBZmCgq\ncyMQ40Y+sumnkePfTxwhfUlaysBjeseattDfAK9O63WBsiq6UKUS2hr8bhit\nOHVr/9JQyAyf2S2cFsgleCyfXZ4KNtPQKQo3yJjB3P8rIgzSIs5K/PxdKVD9\nVW8UjzaIT8PzT6ke4WOmBqaleAjVxLW85fy2HeXyjGQ9ruLBHu76GbBi308X\n0Qu8MDt4CDv7/xIkacG6igYG49cVYULml5xcRavohs5lqPXd1QNFk/zHvBfi\n97A789cI8mzx5vVo08q0lhjeMnET9XAcdsez7rFFSo9MFU0/ctK8OqamcIdg\nrZ34ctgermCAgl/Pw12RyPb8Ee75ryZTjo208MWr8EWpx5f6+r+Nz+x+kZqH\nmAIVPv2xra7nvv8lVyZk1oWqr0xvRGYabLeNTrQN18UcBUWnRaQf8cErwtz2\nINPGtnw8arIih1qc2TJHjDJ/PQHjTiOdmDjLuP97kurNQf8gvSiI/KfpI/vQ\nOqB0D4HtS0xCMHCdOpniSOFx9J0LNI4I8PuX6YqZeWZPsWyDjiMiROkpInsT\nPOda\r\n=aKll\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ae69ee79a4a22a7695be055fc67e5b974c2b989f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.f1a2581ab.0","@material/base":"5.0.0-canary.f1a2581ab.0","@material/shape":"5.0.0-canary.f1a2581ab.0","@material/theme":"5.0.0-canary.f1a2581ab.0","@material/ripple":"5.0.0-canary.f1a2581ab.0","@material/animation":"5.0.0-canary.f1a2581ab.0","@material/elevation":"5.0.0-canary.f1a2581ab.0","@material/typography":"5.0.0-canary.f1a2581ab.0","@material/icon-button":"5.0.0-canary.f1a2581ab.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.f1a2581ab.0_1578409239881_0.6356641931668285","host":"s3://npm-registry-packages"}},"5.0.0-canary.7c7ddf347.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.7c7ddf347.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.7c7ddf347.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0ba0fb6f500d0e97ee2810ba2c8a72c6b321a710","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.7c7ddf347.0.tgz","fileCount":39,"integrity":"sha512-vJkJv8UR+z3Wl7gsHkQDc6uzTC7XL3NtTJSbARO2Af3u89zoikWZrGmW0bvMhLzYlDjI3CTmv1R1Gzv0/gzffQ==","signatures":[{"sig":"MEUCIFKhtYwQ2mlvrHGnqGTvnyw7WkbOXkx2TgADEEHhpbIQAiEAietZriVipBQfaGSDVOdqSy+ntYCElYbX5LARz7T/9AI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFKEICRA9TVsSAnZWagAAniUP/jLyvmdrOzLgcwSzuxFg\naDWJvX4U/Bn0pUoVaplPj2myZHeYIjnbrUnMUKp+zrUdco6L/9X7nak7lymn\npLv+h1re0d61HYx2L4h4c9Euc/UENKQ9tNOyYW/pEkEOmcyRzE+VBds74rYC\n53qVrp09UwV0jAkPO290LAPwRKBoKHwH8SMgrjpkzw8EiwcG+Rp4Tj2jSzQv\nTHyB1CEaB3KP5hcndEX2BwsNVos6eQNdmmXrGYpr24qq2QHCXCrfoSEmzoIM\n9CBuO4MnGIhzjXoht/PtA14R74Oxku75tyWaASQ6J5ODBGPQkMW0ltJGjYBS\nDc4vn3VvuWkWPYFx9vGWdEhgNI0KzNfZlDIZr36hzyJAM5+C0B7a0OnsTB9a\nAl3iHnffbo/XoXJCf2itmOKhSaWtUQLMd3XdRUNcR7uBVEzHw+DsTkHs31GL\nHKd723oYqryaC05YEWPmK6kskopVGnTCglVXgcVMr8k1pJIxHmo3IQHIE7NZ\n84i0oTFLjLV0lcBXl39BQCN1Uz2L4otM0JzayBpZHfJZxcVZEB5IvnNQ1Kcc\nwJzYn1CbkKBCk1L7SlQz3ITiPwTdju4Cjp/La/qSghj2nEikdZb2ZGnsBwHe\nRBxCoYfJyvd2hgCGmPSJ/hJyIZLQd3e5qgJMXgw+qhw3MJK+lvNi0U6KpnA7\nEnTS\r\n=1y2b\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"940ae7448647ebd59a16a94b84c479f3f7bba9b6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.7c7ddf347.0","@material/base":"5.0.0-canary.7c7ddf347.0","@material/shape":"5.0.0-canary.7c7ddf347.0","@material/theme":"5.0.0-canary.7c7ddf347.0","@material/ripple":"5.0.0-canary.7c7ddf347.0","@material/animation":"5.0.0-canary.7c7ddf347.0","@material/elevation":"5.0.0-canary.7c7ddf347.0","@material/typography":"5.0.0-canary.7c7ddf347.0","@material/icon-button":"5.0.0-canary.7c7ddf347.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.7c7ddf347.0_1578410248239_0.9963291036939661","host":"s3://npm-registry-packages"}},"5.0.0-canary.a1c84d4b5.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.a1c84d4b5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.a1c84d4b5.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1e6dd8473d3ba56c1abcada5799cfff3130ffb49","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.a1c84d4b5.0.tgz","fileCount":39,"integrity":"sha512-M2doYACu00r4zgm0uMVGNVEASTb7YBWv9d5JPvPfVXYke7UP0LyBtATNb3ZCF0xLST3Db9yn9L52Ga9Sm3BIrg==","signatures":[{"sig":"MEUCICyrXyjbbeljRoi4tHyrqv+HjSp4mEFmo+QK2/fKGZyIAiEA7HVQ0rKZ3PVReIk1kxzrN55301/dTbWzXnJzxkhM8vc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFMm/CRA9TVsSAnZWagAAQvAP/i3jZM4UP0F9/jx8iPDu\n7jAkb/94talPkkVYZMRkKzaQm24PtCCmowxG6BeKPWVm/48tLpnuCsn0RJxX\n78rXiNlhWOyCKDEnrudly9FllpmMFNuUGBT0f1N5Olg5RnlRiJWFhufPEa+w\nd1IyXW7o2byjVoKsLs8PyQtNX7QYQhdsL+vuvWkeT/5rU9hPdSROtXXvgMEs\nTYkLK1b/muLu8+xXyNYEBwkmf/z3cPGYQaL77ZwRkc0yQV2jgrlx8n4u6qJ2\nH2rvc879LhV6jyVZ7Jzr9fAavK8TK3b+K6ulwTnKY8AK+FChc+NQSjfYTLQa\ndgfkCcbtyryHYjlGnXVTB8vaQXm2GzU0699gdwJPgkkU8p3WbPdAX1QeCiQd\nYVp++1Z7mIN07u86CQm6Y+Aqzxd2OLRzFnUVTu++3mdzpLSFPY13CqC7Ce7i\n6hZF6n7omtzNb68aIAf7ELdQDu8vAj9JhTG3nx6oAukYkhcjqaqGr38WZ/Ha\nlOiyZEtcKiD5K6JbR4S+azBWfGseupYjM13bAVUnYPPcdc+2bnYk78QV69yk\n9Zu7UVRWuv9c7/pDWKZiIfR5+r1dUtt9sh1mlDSX+cA7/BEhYM9FkGBTGiqW\n2qt27/Eftc22Hxqb1HGwMB0h7HO1G2Y1DNy4jMUD3t282/f5EklMGYjgSfse\nw/CF\r\n=N7KA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5ec624a1b571d87d94d5187056a0b6db214d229f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.a1c84d4b5.0","@material/base":"5.0.0-canary.a1c84d4b5.0","@material/shape":"5.0.0-canary.a1c84d4b5.0","@material/theme":"5.0.0-canary.a1c84d4b5.0","@material/ripple":"5.0.0-canary.a1c84d4b5.0","@material/animation":"5.0.0-canary.a1c84d4b5.0","@material/elevation":"5.0.0-canary.a1c84d4b5.0","@material/typography":"5.0.0-canary.a1c84d4b5.0","@material/icon-button":"5.0.0-canary.a1c84d4b5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.a1c84d4b5.0_1578420671018_0.3243763841456955","host":"s3://npm-registry-packages"}},"5.0.0-canary.ec9f16578.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.ec9f16578.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.ec9f16578.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"348f1f56e31d1b3552112a02c1ca2535f024a22b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.ec9f16578.0.tgz","fileCount":39,"integrity":"sha512-IQDSl9u2sbPyzHDCoeZDlUfnGB0enGsxBkRXonfbv88LJ+FMLZiBq+XXwdDhOxGtPzv4PQf2X12/6QKY6xNZ3A==","signatures":[{"sig":"MEUCIDNerWBvGo2SW8RbKst8UqK0jGY5I2ktVvKZYJfp5BcKAiEAuf/1yuR9ltitUWaKwnVRtl98macW9v1sFIUcADz0AXM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFN6qCRA9TVsSAnZWagAAtMIP/jym+UdJD5JgZkiVfRcX\nrOR5mc1WsRY+OrL60meJbKIkwz7qN31CTXDHPf/dZ/JNaLHsmaYJdE7ZjEjG\nePeJB6eh1hBIDycppFrKagBr8NEp/fhTss4uHJrrZz7KeAUEIxGJWcsIjUtR\n+mg4qsU8TRxvqf46BJzaHAxqSNF0hz/CYf2gTyy6p3vAnG85MbSwFa7vN7rc\nFG8bBXsI40a68kJDimbV1k+f8IOTQI7s+HtM0yyRTr+BBTXk9hJOUEH3lpPZ\nR2A4N1/nccohXNq70ogBjb4gA/KxkokaqYoGSY4xxM/xEq2Ar5SoQ6NidUFY\n6xOCNLYQYRqA3Y4mXdimrrvk/FYz53EJuuwiwtGV6TIF868Ci566NjBKAOKR\nPKoMxLwlSwuzZQQ4h3+vZ3VIcsjMLDMS8VnQnF890/jEWR15eDauakZh0LfE\n3ZZ9BoB53v3PMtEWicy+CAiXDna/3zch+DxaFLsYLnPW44DipZjUsN+fWtjK\nYFJh/AGLouQjnn74v9bqVkb5ZGgbsyh0Qa050Q3nt7sCrXGNduH9ewocCq79\nfBxsh/ode6AK7uJ3ilEdzdh1at6yy30IhbMZPccX8oMj3F+7P2UEmE/aD0Qf\nsBTroi1M1Qp+3IRkDMXBZ44blNbR+RxmrJ7tdwQ0mXwxlAkpjO4K/9ncJ/32\np2te\r\n=mfhq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"23103621e66342865b8700c5948ef9134fa8d1fb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.ec9f16578.0","@material/base":"5.0.0-canary.ec9f16578.0","@material/shape":"5.0.0-canary.ec9f16578.0","@material/theme":"5.0.0-canary.ec9f16578.0","@material/ripple":"5.0.0-canary.ec9f16578.0","@material/animation":"5.0.0-canary.ec9f16578.0","@material/elevation":"5.0.0-canary.ec9f16578.0","@material/typography":"5.0.0-canary.ec9f16578.0","@material/icon-button":"5.0.0-canary.ec9f16578.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.ec9f16578.0_1578426025750_0.7990000683545675","host":"s3://npm-registry-packages"}},"5.0.0-canary.b602226ce.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.b602226ce.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.b602226ce.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d733970a8b1273c8a2b372a17edbe3cb0242926d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.b602226ce.0.tgz","fileCount":39,"integrity":"sha512-K8osjlYP/7mSA9SmPUHt+UnkkXwA2AtSGspU+rV3HOxk+wJtrN0eU8pFPxzhTNBQpIfGE7kSbqZdTkF/3xrj8A==","signatures":[{"sig":"MEUCICd6RaM6UW9S3kQ/81eKZhAPT+tsdE+HQ4DO+XwSi+z4AiEAyte8CcrhD1ZzYnazXhmzj+dR2/qG2elY+CSiJ61Uxt0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFOb9CRA9TVsSAnZWagAA2Y0QAJoP89dnLDL1zRmBMY3B\nhR8awA51vbnLnsYhFEVxzHcuOFhtvePPB+YawVyu5VKZgMFsFWdXV82dy5Xz\nknlagliBIs0Pi92XcF5arfhtTc8Py36pdYHxpiqINOHOwe6PexOiXU07XKRH\nFhOvNT+TVvjoOiuWeYkvhvDuuhROhlE3KWx4mGuACGTTqVolbW+Uisgx4L99\nIqziT4wmjkRmIz26cVSSdduaubOC2syrurU3lbZHbAjZoxYQi9OGRBCeRebZ\n37/cx+ReRB7s62L8veuPcP+6b0vukvACV+4vJJ63jCSWTfeInh37ducNS1Du\nwSi6IGjG2o3AlUBNgmasuqkZ0VDRSjZaXtRMOCUKZy1nJ83VxZucB8ibiZdt\n4KAiO0kJz849gQbd5bG9iH7BDb4pEbrB+lnGdST80ithjqSI2E1wD+nDQA71\n7DV+nrWwiRR5GRfyTPyKwfGJw2rk223NwBWn1FogTjcEyHYhyGWnWV43tZSO\nrlZHJtgkHWnVe4g+Nz/nCqg3QDJk2nmySewc+/3500vEoGTdHa6AERhiuB2b\nLYIqTGbNaIcmdH3GhCuYaTzCe5NGhYldNoX7mo9ocmN+lCYPiPjk+8VlW+XL\nJqg6d9FnQ8cMzgGGWJLs0Juidh3JD23txZ6F/QC+AZPfo/XJAyJ+8fJZ7NmE\najfc\r\n=uuvS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"de0d35ec6a5285ea0c12a54a6e35051ccd0aac1e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.b602226ce.0","@material/base":"5.0.0-canary.b602226ce.0","@material/shape":"5.0.0-canary.b602226ce.0","@material/theme":"5.0.0-canary.b602226ce.0","@material/ripple":"5.0.0-canary.b602226ce.0","@material/animation":"5.0.0-canary.b602226ce.0","@material/elevation":"5.0.0-canary.b602226ce.0","@material/typography":"5.0.0-canary.b602226ce.0","@material/icon-button":"5.0.0-canary.b602226ce.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.b602226ce.0_1578428157034_0.5386612579381591","host":"s3://npm-registry-packages"}},"5.0.0-canary.b2d2dc08c.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.b2d2dc08c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.b2d2dc08c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3b0e92117b3410480b52863b50e4399cf83f7a3f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.b2d2dc08c.0.tgz","fileCount":39,"integrity":"sha512-FFNmU5W6gaesJ5fUVkVekpwok0zShvf3lB3v0rNbK08CvACefQLXqD6/7KAUw2fkzHGp7IrlwE5PuEB5RDe0fQ==","signatures":[{"sig":"MEYCIQDQjx5ZRGHFtIJL2r4XsWX0S9M8U82tMeKmYdIwBy1+PwIhAN3FwkWbOmiDoKn5ntb5TVBRt/k4uVtjUxO0086bZFv2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFPeaCRA9TVsSAnZWagAAjQ4P/i5+vVO4CfHglBvOqOP6\nehYV95TX5LnHX5SRTcC3kUPs2j7I3sFDuJyrfzGmi+XiUc2t5x226hRmEKyE\nJ9VwL4apWMNpKe0QQTIlNx7pwShoFcBlKeMi78BrWnzk4YidR0HsQulRTR6g\nILvBvLQVZlHuyrjkiCB49nGIJHRywVLpp69k1NodImXLJPIPfiTebjA6/lny\nEdr+fvVWbMVAIrgwQZ2uROaZxjT3bVzu2khllcjzpQFRVBhLUZIK60TkUtHI\nd7yti9RwvUWiux42FNAAfCymgEDlid2qBlKrN/Lkv1JUpUxOS7rOXPocUlDr\n9/yRcTJPjaCu8wZWW9revi6sFewKyu6kBcvC0RVjKILPmXsd9NvZ6BYc59hl\nd1EGPEpRiC9I8JoP5egxtwhEA51XYxL1f0Pm6ubxPDC/HmiIHs8eWjFiWlAe\ny32vI+7WiZ8Wj9GjfHQ2rnpIYT6S1XnVwcPjtYCYys2PEktuNbMGdJYvSkaR\nYkTT+tRMXm6HHw9+LltZv0f+BEI9K1L2+ZgjW86Y8ZUAwrL5AxhfgJQxDM97\n6rnRqbYlvdL1/fLJ8xJ49m3ATwVcIYdt9AdY/R5aNZiOsdVk/UdPvMlMLTxf\nk+lIT23GL0ZjmVDcCewk7SBIuyGFPPXnI0MihiGxHEsElfV4ZRIp8JLMewil\nP+7x\r\n=t/WN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ec9aa1966e1f2e307207d815ccbe3f16750af94c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.b2d2dc08c.0","@material/base":"5.0.0-canary.b2d2dc08c.0","@material/shape":"5.0.0-canary.b2d2dc08c.0","@material/theme":"5.0.0-canary.b2d2dc08c.0","@material/ripple":"5.0.0-canary.b2d2dc08c.0","@material/animation":"5.0.0-canary.b2d2dc08c.0","@material/elevation":"5.0.0-canary.b2d2dc08c.0","@material/typography":"5.0.0-canary.b2d2dc08c.0","@material/icon-button":"5.0.0-canary.b2d2dc08c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.b2d2dc08c.0_1578432409857_0.06400859870817022","host":"s3://npm-registry-packages"}},"5.0.0-canary.61f2d7580.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.61f2d7580.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.61f2d7580.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c0c5c208d7b4b05b314febca98ca1c3fd7fdcb42","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.61f2d7580.0.tgz","fileCount":39,"integrity":"sha512-iWpgTsYzem35jNhF+iXHtgnON7BFES+1rMpWf8XDv52ux3+YiJt6ApI9nLZAy6NzkOGwHgnm5zYKh6jY+d0w8w==","signatures":[{"sig":"MEUCIQCjf9UraluwDCDo/p5hNurA8xZ23D9+Ar8Pu8Evczkt1gIgLY4VhbJA6aXIFQBs8O1Kiwdwa+MAIhDHjqAueGHu9F4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFPrCCRA9TVsSAnZWagAAMocP/j2Vnwy0pHfRcO0zfn8A\nQue/QoloaPE/YRzi9w50iI48yQTPtNzCz167FNYgxjA0rlp/q0MMG2t6U58/\nStj1w/Dr8osGMra5nz3RdPsBswCarLNjYZuu7AtRdS6uS9sx6w3vsEyUz0Zf\nuX4+0uRv2V5vI15fLDzfLaiOjCBhIcvSrGVOwBPzWoNNCgtiJs6vbimlZZRj\nfLy5eRdFTNYpetl2iQoF2c8fuKEqTEIXDjlpIttuif/ZNPAPZYKzjJQRp0Z7\nb0bVW4s3PNzbjQolQPMKckWWkZX0W85DXzBkvGe6xi42sgpO+tRNAmmBLJ+k\nUuFIY+N5ldjbt6Dr0mUjwgkAHxH5g0PyGVuK51/9SzRHkFu95z3OpebyO/T2\nwYTuvGvPj5bWoLIXgc4us5UPkvVOp3QXdZUjxcOB6tl+Oku8Uq4JbueKwbCN\nPcvtkYBzakdPUajSJLzMFIpFyKH8NkrqXaDuwgJRaP89qZZwrZhY+gtrK/lT\nH4vCFRLZVWQQ8iWkrOHnXLQjz2eg0782phZ4XaRxlS5Q7EahEMixm7PFrOue\nwhnxckJZVCrd9tXoyznPvdS75f/OhZfgDQbvDiHAv7b1MWT656WfL+i/0DDR\nqzwwpqKD8nbnr3as29Y91Q368ykz5gP79hu5AYQiKmVWBi+56mzgPkw8Gvmk\ndfcg\r\n=bwA5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a826fac64c34ef89005bede280cad29c76346e55","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.61f2d7580.0","@material/base":"5.0.0-canary.61f2d7580.0","@material/shape":"5.0.0-canary.61f2d7580.0","@material/theme":"5.0.0-canary.61f2d7580.0","@material/ripple":"5.0.0-canary.61f2d7580.0","@material/animation":"5.0.0-canary.61f2d7580.0","@material/elevation":"5.0.0-canary.61f2d7580.0","@material/typography":"5.0.0-canary.61f2d7580.0","@material/icon-button":"5.0.0-canary.61f2d7580.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.61f2d7580.0_1578433218503_0.47500775804031425","host":"s3://npm-registry-packages"}},"5.0.0-canary.d1be53a2e.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.d1be53a2e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.d1be53a2e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"31f9f8aca291e39730e7bc8b82c6d357c5354bb0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.d1be53a2e.0.tgz","fileCount":39,"integrity":"sha512-CYHPNW+f7eaMzoE13O4wXs9co3ZRUEH/sQ4RWO55DzG23KOXchsHcp8pN+k+ptI6654l0IRfIjS+p8fKNRlZ5Q==","signatures":[{"sig":"MEUCIDYtblZw587fCQ9jdu6H8T2m1vS9aSLysVuYhv5ZgveaAiEAgz2o2eR/mYMnoOviGTB69oy6UhtcmcSTPa5lGFArXk0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFQOXCRA9TVsSAnZWagAAhWYP/AiQh4dsp1ZHXhoJhXRc\n7GUePVqi2JKp2dy4ZnwVvD/yY6Xd1Ha5yK+mAJSlrYHRXNxqxU0h2nTksRKd\nwPxunlJ+S97CYTnNWhoFRwe2zBe5h2rhoOkZF17nYQcd7c+tFz91lOmcCA3B\nw4rZBVCcu0cr6kgJVPGBwo4GXrFXNfz6Qz5EWH3OVKzhDQk6PMGyChhoCkYZ\n99DOt+82J++NPR53/xxq+qJOyGJPLRUtivVEjX2t0oJg6Zn4dJq5vDv30vVw\nanCT3nTAvNxlFJzehrnuMhwwbHqaVH4FVA2Z4El1ueWUHiw/blr5APnC8Bq/\nrvqqHnY6QEHshf8Id8tEY2rnzGUAzS9janCvI0/2P6foa4gqs/wR8r6cfGtT\nWNLqMuoHiALeYdI/ibpeahh19eu0qFsVDOX9fIXAkXeH0bIP9/6RT05/EVAh\nWtxxp2oWDo32R4nxZjj5TLpVLcDr6iQjfxoAgAtxoZRLeh7FZfSehPyE03AV\nr8Zmjjr1teCn0HrZEuRyG2PnbJ5RzXppuuRdVw7JZPeSUhoQOWuHiaYY1rhs\nCdxG04+uGFZXgDdnMY5UE2ALWIyVUxAWN8jE7rH85z9i4E0ZyysMmNiIGFCn\nR5qmNBj4+m2gxh5S8EJd3yrW2WQnMC14mQ30iEsEgK+WrSYKzuZMbIgh6xA8\nq7AZ\r\n=wCZp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5053f71f9a35d62630821c2c4084794f7bedf258","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.d1be53a2e.0","@material/base":"5.0.0-canary.d1be53a2e.0","@material/shape":"5.0.0-canary.d1be53a2e.0","@material/theme":"5.0.0-canary.d1be53a2e.0","@material/ripple":"5.0.0-canary.d1be53a2e.0","@material/animation":"5.0.0-canary.d1be53a2e.0","@material/elevation":"5.0.0-canary.d1be53a2e.0","@material/typography":"5.0.0-canary.d1be53a2e.0","@material/icon-button":"5.0.0-canary.d1be53a2e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.d1be53a2e.0_1578435479080_0.8153320331871754","host":"s3://npm-registry-packages"}},"5.0.0-canary.9b0d06e32.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.9b0d06e32.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.9b0d06e32.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e47ce8343ff5da05c1799dbc4bfe74e349e5f366","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.9b0d06e32.0.tgz","fileCount":39,"integrity":"sha512-qKjft3doewy6rhpmec3bp4CACdSgiuYgHSj8B0HFbiGIKTcrS9Wz7qkoDvWMAS+6xyDqgiBudnivrWZ9NMzVgg==","signatures":[{"sig":"MEUCIQDTj2lm5IF13X10u3yqvmN3pUt5jgBXO2cFYV8OfA5dqwIgKMJ2fu5SIR6oc4Q4W4jiuCZ9rYBVWID4I235azDkWKc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFQQRCRA9TVsSAnZWagAAF1sQAJ/GxEhYmzW8bBgZMmP6\nhynRCV2wGLx6gLW8QglSrW2yAbTRIloENqF8wyiEmJg13034ZcK5KpB7JvFA\nQdsAZ8uCXtsCRD91dxiwsxGewtDhyrvg6zWNcJzuCtB7bfoJfE5wxgHliaia\nP+vby8U91gERAf/KOS4dT/s7qnmHExwylRfLlLhQ8lje6eXe1lGZd+9pmmoI\nPZWs3ffS6oEsJb+1t51CeIN9BG59LUbbtEzKIUvAkdXvSNP6SP/5Shm0zp25\nfCdB9NVmG6L6PcRfYAzDFHN2oQig20GaGNbg3JQmbKhjuCb7hTm8ntK7mLix\n8b9TwurtPSvXoj36Dn4egFGuXrCIIW3cBcQoRaYXNi8P790oYtGffRvDjBz5\n6r2Aa8E2DXRkP4TC550M1oUORzM5BVjoas/5d0y/13ENCSVSmjxVx6eUk4sO\nyYTd+A2CULGMGDRMU3VwSYJVW5AJPep1mN64QuGAETl6Lng4IRjkrAHghG8x\nCMXXMXgtS6UFHiwbPFi6pE8v82cyU+wDwoWr/nRZm6arMZRuL58GyK6+QvfU\nkszE8CRCccq3Cq+8ygGa3Jy5RdLgmZmnwAJikJILkUCKVMz36i1ZcTQHMmrY\nmwYBIVIHyAEOgj2OcguHgmQIa7luPhICQVDIq20i5u4d3AnwJl1CFP2/bM0z\nNsMz\r\n=BDD/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"485fa4920288a2a37995f4c736a1d429de15e53e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.9b0d06e32.0","@material/base":"5.0.0-canary.9b0d06e32.0","@material/shape":"5.0.0-canary.9b0d06e32.0","@material/theme":"5.0.0-canary.9b0d06e32.0","@material/ripple":"5.0.0-canary.9b0d06e32.0","@material/animation":"5.0.0-canary.9b0d06e32.0","@material/elevation":"5.0.0-canary.9b0d06e32.0","@material/typography":"5.0.0-canary.9b0d06e32.0","@material/icon-button":"5.0.0-canary.9b0d06e32.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.9b0d06e32.0_1578435601347_0.6557656819586113","host":"s3://npm-registry-packages"}},"5.0.0-canary.730c807a0.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.730c807a0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.730c807a0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fa977c8484c38198be5ea40666be778f543b14d0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.730c807a0.0.tgz","fileCount":39,"integrity":"sha512-uCoOSmMy8VmVHD8po0+c5Uw2QdlM50NuFYgKQKkH4WS35+PMO9g4l9gjLmK4kv3/8nkgEZH9XpdUfDPDY5XoeQ==","signatures":[{"sig":"MEUCIQDUI782S5Gw/OT8GOnQQPQyx9M4KBV/mQMPF7AsGRQ0pQIgeQssxjTPp4UsdEPdYA2WfAAyw0SRFDFVa+V0bwwg7Uw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFQRuCRA9TVsSAnZWagAAjvUP/38CVR3+tmhibUvFIPIH\nh3zf7Xz2yBKTZ1ITbw/xcO9C2Z9Q47LognVuAYXVCDGy7v8qjsQMSLqILHlU\nVEv5vVxwx0NgYD4Om6i8kJD9+kwMi/+gzJvpw0QNThN2AhK5ixoGN7KQnawc\nIT0Omsda9dD0q2EG1m04qchISRuMQ79v5JdDmGLa5mAaroyT2BnRBFacjwWu\nsitWbt6ajPOUqjyan5dezfTkXuDBC391LQEBBFkEGbar8HwInheIOk/QUXEX\nMoMzpjfKDzD1aaK7X6EbkqgI/uBA1xOPN/AmGNz4sqH+HFUXG4JW6NV9XWOd\nsU1ewsWqA/+SUK6Sb0FeBhVmqbJuCQc/A8IgEt+P4B0bEs5B1bVAHv6xRccz\nZ162p+QsYOXbunHso6UvaZxi5rpyJKez1v1fWUWyyFndYW11nBQ+jrohfEG8\ncUkCamVwW6XBnmhD0C/gBOy/LRE1V/W+rlAi3qSfgDQQEtfNA94iH7C5VZJ3\nf8J6VD5y6TRv3+4eVQcIdhOhkPi7jM2aIk7mhpEgZyOrVvAegkIIf2uwth5T\nHa+wJaJCgw45Dif7R01E9GskaE6nA5u1tpVZHuJIFTykONOb1AmYWB4U0ocb\nxq/c2ZDWzcptli0Bw0ueXG/POF+lFGSPuzc4DpqBfC9rWl0qqNARMxs8gmzv\n99X+\r\n=rs4L\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8860f1c513146b0f8c59a8c70750d1353e61feaf","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.730c807a0.0","@material/base":"5.0.0-canary.730c807a0.0","@material/shape":"5.0.0-canary.730c807a0.0","@material/theme":"5.0.0-canary.730c807a0.0","@material/ripple":"5.0.0-canary.730c807a0.0","@material/animation":"5.0.0-canary.730c807a0.0","@material/elevation":"5.0.0-canary.730c807a0.0","@material/typography":"5.0.0-canary.730c807a0.0","@material/icon-button":"5.0.0-canary.730c807a0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.730c807a0.0_1578435694477_0.19058175022735302","host":"s3://npm-registry-packages"}},"5.0.0-canary.2213152cd.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.2213152cd.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.2213152cd.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"980f8a4fa88b095c21f30ef8a00b2a865d302c59","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.2213152cd.0.tgz","fileCount":39,"integrity":"sha512-izskNq+DWZhC7WDpaj39PO1T5ld8iAbThccIXxsL/+FCVcw5r/MrJOLbY0P+vzS012CYQAQ3Jnr5vA3kQYRcPg==","signatures":[{"sig":"MEUCIQDhS3jEbomxGNkFGnYA7BGLWpA9rTe+NoCVPUyERcRp1AIgQ4SDN8slXlJoU1/dMOeWJ2oasvjByL84aLE4aV1yAQU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFg/vCRA9TVsSAnZWagAACKsQAJ2ipknuMWVJWq8XJRK2\nk18LVFub9VfQtbwBu6xplm15v9KsSjbezuX60IL91zESSrekls9BDZp2/u3y\ne8PJYohSwYQL2r8Tc7r1SPpWh3BpbSjZto6HSILNNy5eqj0tkUWZySKlqfFM\n+33Hr0EgmE940tbBUhLynDrtc4KsPs8ogcOVsb1zXpaAhH0MibdRDe49ecDJ\nRCnNsTT9KLFOjTSpdBcypvx5lQenY/f7AjuN8H0diCLRoS+Oa9A/K+y2zcXQ\nJDIYKguCRJIM9ecZTNbssNPsQKgoVqo3sCBLTraThucjvE9FSLt0uTAzCmhO\nhT1Ew56YMCfHF1a51lm+ch4P4zMi6ntHp7PPnt9wy0tQ5ftbiuPbS5GO1JBM\nXxPbVQMH+1bkP5ZRNw9h5sA8EVa9aYhWM9TLjbmnCEG85tt0/i3p0GQ1+24/\npUBmkR49aVWVAz9pe76C8I28aXpj4Yxh6rHutIFkHHqlb7IPe7GJaPY4Ock4\nv5N6ewPOCpK7ILRZtoThknLRjxBHiUeT+yWkQZDjQQAZzlrcMO2p5KUCqqUm\n4IepdPPT/L/hjcVlmBRo+k4TuJ5wNxhc52OjDyhgu+fmwpqOQC0LkGuvSqLl\nzP4o2ImFcGY5TLIOVoqu+lMKeir9yd7Ewj038iJMc4HZO8eBCSxhlFvSCSMn\nWpMS\r\n=I4PL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0a3677a82eb2000c085d0cab420c907dca8cf13a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.2213152cd.0","@material/base":"5.0.0-canary.2213152cd.0","@material/shape":"5.0.0-canary.2213152cd.0","@material/theme":"5.0.0-canary.2213152cd.0","@material/ripple":"5.0.0-canary.2213152cd.0","@material/animation":"5.0.0-canary.2213152cd.0","@material/elevation":"5.0.0-canary.2213152cd.0","@material/typography":"5.0.0-canary.2213152cd.0","@material/icon-button":"5.0.0-canary.2213152cd.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.2213152cd.0_1578504174948_0.6597765650053435","host":"s3://npm-registry-packages"}},"5.0.0-canary.5750f7169.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.5750f7169.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.5750f7169.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"dbb1d1d2090cdd931640290986b1649ab9907ece","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.5750f7169.0.tgz","fileCount":39,"integrity":"sha512-F+g/+1QdrPng4WmCnOmwn0jIwn3pbOCSkw/sLmFnheCxP2YzUtDzXbL2BSU6Lhtqe4o9Q5Qa1e1nReqlDqyxnA==","signatures":[{"sig":"MEQCICT1gJfSccK/BeGzZkmbfKbDHf2Oe3TN4qepQYfB7LzcAiBiMwCVSI4cPQ/rF2w0wKy9Ebgr7KVtyZ4L1T+palXzUg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFhgUCRA9TVsSAnZWagAA6j0P/i7lFKsq25uU8Tqtmvqa\neLVOiTdEnZNCqbOBkJ/aznvTq3pfbzFr0+XkU7xzG56OUM/ylKDN4581ZxBk\n6rndxAfQ5XgpaNQzn5/lr+Esu0wdd1tZK54DHmuLL+j2L6evIj68I2QUswKf\nB8vMGHs8CRRefEELFTIldm1qmbyNWR/hS33ewszTnUNByNqQTUNTdA9TOvF3\nPrLHNQC9QDfWEKHrNgyjDy24XbL2FddFyTTk3QfZiLtFfPSCaOSrFRdl8pz5\ntjDKJyIKylEszstbdWF9nRchs9oIYHZX4hP4OmvshL2flOGGfIdveLz0RonB\nQdA8j5zhduCAmnz/9sxNlHNoeociz6o70FPi4hCkgfN4VHhyJ/9m0E9n4DKX\nC/AR5lnBkfkN4GrDC+KeELfLwAtjZrMbTNFgkTlnRmgVzPnfzFGuJJBufzac\nQIu2AfpQyjwFt2XnL/SFgn+w/l0Jefx7tJoIELbf/Yi+kkev8iA/oXHw0u/u\nN+V4++18Rvav7wdCIsg130lLkBWtHVQWMLOi4qrF+J4fH4nXyh9XuLRmoVmh\nx0bxm7UYxjxJPeyf0htWTIj0z2BTeqUmUc1QybG0FrJuJPC9RyVV9zlOBVRs\nzZtC4WQhobJjMCzeDyxt1sF3Dkxj/z9IYzskFCY+7CBKXVopWWaVlBUpMVDC\n22wx\r\n=V3Cq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"394a48c85aa714b74edbf6f2b4172e4b066f604f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.5750f7169.0","@material/base":"5.0.0-canary.5750f7169.0","@material/shape":"5.0.0-canary.5750f7169.0","@material/theme":"5.0.0-canary.5750f7169.0","@material/ripple":"5.0.0-canary.5750f7169.0","@material/animation":"5.0.0-canary.5750f7169.0","@material/elevation":"5.0.0-canary.5750f7169.0","@material/typography":"5.0.0-canary.5750f7169.0","@material/icon-button":"5.0.0-canary.5750f7169.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.5750f7169.0_1578506260462_0.06687469207234797","host":"s3://npm-registry-packages"}},"5.0.0-canary.f7abc7a43.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.f7abc7a43.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.f7abc7a43.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5fa8fef1405c576bcccc0e39de3cf798041d6f80","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.f7abc7a43.0.tgz","fileCount":39,"integrity":"sha512-QPOmWWCIxfN9DzgfLd1glsB8WE6lLNK7KmF/kma87zukeZYijHNEG1+z7IgiVrpvDekbE3eSqqGvFgiRm7/jmg==","signatures":[{"sig":"MEUCIQCr1XOf4SmxKcmliZMirm3hGij8JqbBx/qw0kb7hrT8GgIgcwibvuoZtgO8+fE9HBriYll3OHF5zbrSTFiUBK1iQKA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFh9kCRA9TVsSAnZWagAADdoP/3Egm11Z+mrpX8ifV6Mk\nx/OZRSZxi6NAuciaaVItW4ITlpxivzjkkKw3RDp6Ihp0vIAFuOFg2zJWmamK\nwO+bJPg5YxHm9E5BKRjb7UWkUuxaPgqvXCEufd6fJNPKjRjtXemWlViQ+nzd\n5tJqYMM5Q/8IcdtSR4/4Jo4g0iRbPuHqxNBQrMCku+7xoo7SBN52OpcTY6yL\n/sn74+9RJrvPXRuQeRlsVu7wn9TbB0v7IsqIcf87BwDMbz6pmHM2AtWHb1Iz\nD5KisXXC3pkgLx8CLfENGT/WVpxRo2YO+QPEFznC+XfSKqNTkuGhjIiMrkKS\nvn2FK8E5GDaoJzVTQtiBeoR0/Y4WMkXVJLYSxvD5aYURIM8uiDUHhVXGr6Vj\nqlFVJe1SSx0IA+TFL8FRKMut7SIjwgCRG5AC0z2pb3gMSK4gclWUjNTZ9Y3P\npGfpjbwSQkdzz+/g/Ku+NIxobB2nPeQy+kS8lhjzO2do/pqs0tLj7icT3Kkp\n99WvplSkvtLz1D5Ph8Op/BFkYMPzRfyddgyj7eruffe/eRDfdanIQo7CEU4C\nAK/UZ8qhTkLUWTorCAUVmd0rLiSq3UN0X41bIAJkzh1QV35c0Nbhk3IWx3P1\nC9RDwJe4fva1O7ZbbB5NWCEJar55ZTliPV3RI+AWgV1u5FXru+IjiMd3PvSR\nqACl\r\n=vXyu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f7431b4b45a3e410e9cbc1ae6abe69c3b00221c9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.f7abc7a43.0","@material/base":"5.0.0-canary.f7abc7a43.0","@material/shape":"5.0.0-canary.f7abc7a43.0","@material/theme":"5.0.0-canary.f7abc7a43.0","@material/ripple":"5.0.0-canary.f7abc7a43.0","@material/animation":"5.0.0-canary.f7abc7a43.0","@material/elevation":"5.0.0-canary.f7abc7a43.0","@material/typography":"5.0.0-canary.f7abc7a43.0","@material/icon-button":"5.0.0-canary.f7abc7a43.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.f7abc7a43.0_1578508131607_0.8850813068958883","host":"s3://npm-registry-packages"}},"5.0.0-canary.bf7b4a061.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.bf7b4a061.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.bf7b4a061.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"39577464d2ad548237fc0c32c970f914d0248e50","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.bf7b4a061.0.tgz","fileCount":39,"integrity":"sha512-tf3NqQa29//vp5UbrpvvQ4Ue0o/EShNNRZVbU/A+ea2kN0BOuL8KpU/K62I8SzdGx99N+FwIsnbsNwL+QhH44g==","signatures":[{"sig":"MEUCIBTRAVgs1frL1wx7kY6hAre/ni4X5vmIwzKicDlbMbBlAiEAm1TE6Q50dj5RUF+Jalq23pQPMZ0kHVYEdr8v391qdvg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFiKKCRA9TVsSAnZWagAAwLYP/A9LT0f4YicAXgEPAOb0\nOmr0sSqydskajhZ+K8ip0TjXcre1FsafnKG5mcjQNR1JugctXAf9zyrJ2S+k\n7fpTWSELK/pYjmCzBmr1r3BsPNVP/qJNqznvggTP6ThXWfO2vtXDmAkFNzkM\n0pQjK6lQSiIfALOFpGdReRg2QrnvErmDVxIusIz+36jnj8eToVV5dlGRGZAC\nmhUJ7Va5jkRV67wRa89Ik+Cylb/mvz36019rjRbMBUebje9KUd4uHrgZmA//\nPCGbOVCBYHOh9iZVpaMj6IyNwfL4Mhp2uXLS93Oio6eHXeeVzeqEAoWaYDoL\nsA5yNS2iyLUvyHDFIRB+nOeLRTM8fuifbThD5uWvG5Erc4IJ6giNJjtLDAM+\nHi2dBhULbgbUhAxkxIWqzVawVqmvO79/ZvqILmxHS9nq08DkZBK0PDcNbMkU\nqPHwwSNBh3ztOJB9VasAvoK2Eyfp8nipTSJmPHFQXKDBIYsHOuL4cgyByJ3h\nrBqC05dQqaBcE4FM4ifuH3rnI46WjHGvLYxg15eaaMjZY9CmuUL+gXYzztiz\n3pNdV+CZh3BzYcX92nI5fKXJ2xGvuVwan4/ngePX2PhLH6pXOkYfYWndZMdN\nNs8MS5HTCD+Z2u5E0GaJd3umd8dRVGq+JiBenTzeO5+zlYH1kElXsF7QZaW7\npHC8\r\n=IoD3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2cbac03ca7852ef897dec80561a01faa8b537228","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.bf7b4a061.0","@material/base":"5.0.0-canary.bf7b4a061.0","@material/shape":"5.0.0-canary.bf7b4a061.0","@material/theme":"5.0.0-canary.bf7b4a061.0","@material/ripple":"5.0.0-canary.bf7b4a061.0","@material/animation":"5.0.0-canary.bf7b4a061.0","@material/elevation":"5.0.0-canary.bf7b4a061.0","@material/typography":"5.0.0-canary.bf7b4a061.0","@material/icon-button":"5.0.0-canary.bf7b4a061.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.bf7b4a061.0_1578508938533_0.6459863184777013","host":"s3://npm-registry-packages"}},"5.0.0-canary.784fa7903.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.784fa7903.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.784fa7903.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"08ec2f4c122520a389188ac57b15188f970f0f28","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.784fa7903.0.tgz","fileCount":39,"integrity":"sha512-uVTeSwvfdC7AqnZmLTXoZWWGIUhqhMUqETWypuaefOYxu83kYW2LiHk8icoVwKyUaMYOAwQwqiS9p8ZS6/+xqg==","signatures":[{"sig":"MEUCIQC8Zpb9HuyArqT170C8RChK+HY85EUgCJKxJAewvmTMtgIgVSCMwLiUT+WqIdNNuhUVs4/1DeIEiBPRXhL6ijCyxZY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFilXCRA9TVsSAnZWagAAP8MP/R18me8Pg6ZeVTV+Fl5u\nqdBMRov9Ls0aOokf2XssHjKyffhnBy2J8ILa3Tw1vfwugn0aqwjle+oDUhzF\n0Bq1vmPOB+Wzv7PiB4HONPjebH4/i9jvYulNh+3xNgOQMRWyjU/T22HYtZAy\nIKiD1lBxb6NI60egfuhl7lP2AS8eCjf6Q2PSzpGAfINpkOFD7L1e68s7lADb\nrceF6VfZkvanHE6V4+Ki+UpGfZtfzZoDXl/aAlT9xm3ToN1Ue6dAQlfFgIBG\nVXzyMz75qtgJNvo7GXonOAPKwfR2sU1nemzK2Qn6SU09dh5NMi6bVu1LguEC\nKrHpDtxxzDTwz1qlzJxsjQcine+F0aAgWyOQijGj67sA2L3fZqroemj1qPrm\nI3ZfWjptugemPFYtDI+QDVhBinJMJiGsHVXURLXi3/+ai2yN0EVZ+d4KiBDA\nonGz2sOLYjE9K0Nbzoggh7CyxFYDzRb5N5USGAFMYYiM8LUwTopPoBB8rDd2\n3vh62QgoGfJUweUCb1ntO63jYHPk6+qMQWKzyYLyBKof/noirUJVojtD8o5b\nnOiDW2zqjtSddx2MbETeS8HtGEDnUZhb2etzAxFPGnkH4Bs3ShHafEcd+oGR\nPYKdvq8nU9dmlC1sgcE3WoOCOFwA9gleLZBxMTjigzzZ4t9fCZhKmtGX3N1w\ntct7\r\n=rZmV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"61b0d187c5c030042fb90bb59c1ebcd090186cb1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.784fa7903.0","@material/base":"5.0.0-canary.784fa7903.0","@material/shape":"5.0.0-canary.784fa7903.0","@material/theme":"5.0.0-canary.784fa7903.0","@material/ripple":"5.0.0-canary.784fa7903.0","@material/animation":"5.0.0-canary.784fa7903.0","@material/elevation":"5.0.0-canary.784fa7903.0","@material/typography":"5.0.0-canary.784fa7903.0","@material/icon-button":"5.0.0-canary.784fa7903.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.784fa7903.0_1578510679429_0.7985620709438792","host":"s3://npm-registry-packages"}},"5.0.0-canary.823c050ba.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.823c050ba.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.823c050ba.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"327262ffe11058386cd27b15d244edd47efbc456","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.823c050ba.0.tgz","fileCount":39,"integrity":"sha512-rOH16Hp78MHEdiWeVLVC+2I4b8L2bKWyhLu9P57jHyiRXvNNt78BAViah45xz3+H0lnMnPCK4dUAQ+wBhxp1EA==","signatures":[{"sig":"MEUCIBUk1MEPtB7IUswHOuvDrSkqRSDB9Lt+NDSwwPMBMTsTAiEAhGy3IzOWpeZ3Jeu6u599E6a3zfi99rxWdGl0Y7z/lPA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFjd3CRA9TVsSAnZWagAAJ68P/2byB4TBOc7OV+ywuKVb\nwekpFMLD03MjlgdtPkE3EssZY2CCFJiV8n9W6F3G+CXTXhfFOOVHCMQj0cIE\ngmBJyTlTik6rqY2aW+0UYQpbAihZ6JSAAjt8WyqAPwQoMtlXmxaLrbdSgMrf\nmrS4eawbJGX7koCTvLqPTz46s+WKZu88wY33lIV/cxo7+vEt6KgJO+tFo0YZ\ngmfjYJR9yFoDAq5yXI8ItkbSHbcfl2NPrING9+wlhbgOcmEeSDRgPM+ao256\nsvkbSVkgu5aBEtxT+3H/jkGvocqztaGJEeIaLYzb50/YoM1QnF6x/rXwCr4G\nqEcRQvNRvql8BV99b2l3fHxlIs04ZVB9HYG9E9+IsvzUwT3qDQkwbg8DuotO\n8LBLPa101ECBdpogWJyVqKuoDKwzCGkddE3PMRb07WITr25Cihx4rhGWZfzF\nCtnsLBd1vIFRiNHZURAnncOuQ3C3g2FQBr+m4ji4fTisU91xxUZQmzSxTnbi\njASEx5TrL9XawAOK6iZptEZyaeFiJ/kVUSKtNqoCMvZqRkee9ZBV0Ym+BHjv\nn82NrlCMaH/JO0bcrfnzGs+XvY/2whNvKBa/x5hVRkwF5Em5jD3a67FfNoQj\nPsVRFHr77Af+zcjdfJln6UfBbzxp5omJ+2kwtCEcnJjOvfuQWJVzuKK+wd7u\na3UA\r\n=2Yld\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b08bf7fb482cc6c0e80d365ea2bf510d80680bdc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.823c050ba.0","@material/base":"5.0.0-canary.823c050ba.0","@material/shape":"5.0.0-canary.823c050ba.0","@material/theme":"5.0.0-canary.823c050ba.0","@material/ripple":"5.0.0-canary.823c050ba.0","@material/animation":"5.0.0-canary.823c050ba.0","@material/elevation":"5.0.0-canary.823c050ba.0","@material/typography":"5.0.0-canary.823c050ba.0","@material/icon-button":"5.0.0-canary.823c050ba.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.823c050ba.0_1578514294931_0.7233869274988547","host":"s3://npm-registry-packages"}},"5.0.0-canary.70c708dee.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.70c708dee.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.70c708dee.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"635ae49c19e539194975ddf31dc84c343b597c9f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.70c708dee.0.tgz","fileCount":39,"integrity":"sha512-lny0NTJ4qAh6iZizUF8Bcdj53+0QLS81J75Wr4wPgyzSHrek2Hy4hUOxW+NgloC2m/330uFw7rpSMeQH4YsEuw==","signatures":[{"sig":"MEYCIQDJzkNIb2CrecsLk3rRjbYCLCOI8ylCxzhpe8y6EUQvCQIhAKz2ngYcUP5VV/WNf15vwsFgfpZRMey0mubJcq4+JGIw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFjonCRA9TVsSAnZWagAA4Y0QAIYtz5EGD9EK6p6fsRYB\nSNzVFeob7hqZlxEsY3iK8Qoi0oG0YNWsEY9zxAgmwqCvCxp42sqCIpVZ+5eo\nD5yS4uxTftJ3eEJoyvWHCuvxfCn/jBlZgH2yIgreyxY7GOJgau4Bgkl85Xx8\n448/drCwrsFnxqCrq9T5QzfZ2DGjLkTwTnl52bTo2sDRpUwHvdO1lFesdaPh\nXjNdRXZ2PKYTLPD16Wi3HE12p/b1KtjmVvmHYHCHrIOM8s8y5cY8HBKZJejQ\n6ZqjMqqu8CG/+HtrcwxAs4u+FXa9MX1JFGh1QDFhcVQd1i5NOsM0KVUthvqL\ngWMhAYn5wScztmF0vQSdiRjx3+jxe6PKFJXvGhrWgZkkO23gfK2Bjl4RPXjW\ni3N5vKaXntxJonJ9/cjvKbWZhY2CTzOSRLinlfyYAaY+mq0JNju50JK0QgaY\nGIKPn6tooX8otigjXUJVsSik3F0JnlSD4zwJquAiXKYjHrNCwFrdvKzhoSth\nYU0GMFdKmRhQoB9hgaaSB8wx9VXkKqjg+6ED23QQb9BxyA+vFfmmuFW8uaWY\nopLR5BPOjrhSNdpX0gAt8Wo10B56s7QboxF9ecVcf4E6UP2L6IS1HlTMjfYu\nV85UNivkyIKnnVhDT++kazIwnf5QNaGyWowGw5SpSX/hDq16+3sidIrQLwx2\nUs69\r\n=NoZL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"096bee7c4a6fa97b650100f3d0e0cb484db375d2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.70c708dee.0","@material/base":"5.0.0-canary.70c708dee.0","@material/shape":"5.0.0-canary.70c708dee.0","@material/theme":"5.0.0-canary.70c708dee.0","@material/ripple":"5.0.0-canary.70c708dee.0","@material/animation":"5.0.0-canary.70c708dee.0","@material/elevation":"5.0.0-canary.70c708dee.0","@material/typography":"5.0.0-canary.70c708dee.0","@material/icon-button":"5.0.0-canary.70c708dee.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.70c708dee.0_1578514983639_0.3326607058820914","host":"s3://npm-registry-packages"}},"5.0.0-canary.5ed9d13d0.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.5ed9d13d0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.5ed9d13d0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"613ffafd359a1a64b4e135bf795bdaaa1b5781da","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.5ed9d13d0.0.tgz","fileCount":39,"integrity":"sha512-96+nMmJx9NSQB+qBE5SzeAlEdpEV3/AZItzgl6RWx1fnVgQYQ/5E4DjNBjEKmyoVqYOmK4vfu4UpvUAO7S4O3w==","signatures":[{"sig":"MEQCIGZMIKNmBUlJPoo1HyfYN88f03yKS4P9SYNMNEz0idz3AiAxEv7VLDU3npsflzGrKThwJ9EJeRbR0EB3dL80S64ngA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFkz6CRA9TVsSAnZWagAAbEUP/jY2+nuG9YQUxNx81vlO\nJeL2exWcSPA+LOJlCL98OLP7LFX0FLVGWNUc0ZKywKshSWxzto+eMEdzlIgz\nE4MTQ/8eu07qh17HQu1Q6PscIe3c6XksTAUOi94MUHG5p2vP75Ux1CZ4p579\nRabQBTSayI2S+KgryNqh9tzX0s++up2yjOkoinhFDPVVfrQ9TSganSd7szBK\nclrPwdWUahYQIMyyn/CqYc0t/PC+GIvw2nCPqZ8ItnG9PagK+qsYCcHjdTSr\nAfIfkvdRco3C6jmHOZLMxMoiJlRHRu+FDyZHfquVp9lkgKjk0zh1XCTMHbbc\nq80FU2ELH0St0VRMzoQFNbdeWWiHsZx7RNBtqW4oFZq89MTDUHgW54MNSL2U\ngsEa0z9c2BcyRy/cnd6MPM/JEpobC5QoEuGBM2wU2Nh420C4ZbAWnXWNv6aA\nFzppqDBLYWXEd+VnUngW6pJZiOvfayuNw1BZ5dE3FMoZ/nVJf0ruP6aVTbvr\nBXTosO8TPdPY2a8by164XqWaFp9Y4lZTFR3hUnLkCvKNAQ8EdxC9hzuzO0ot\nBVsrvnMGJezM5hW/OQGosQSxJdsKFv87MZZ6i0n9hA2OFpOaZzmth41dPl8S\nv8INr3jv80I8qAhDwzOx3wKQvght15Od7NA9UbGFR7Xq75oa7yEF+bYnuEKe\nSZUg\r\n=hs+N\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3c9ae4313970bc3335cb0223b3e10f3fa3ee8ae3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.5ed9d13d0.0","@material/base":"5.0.0-canary.5ed9d13d0.0","@material/shape":"5.0.0-canary.5ed9d13d0.0","@material/theme":"5.0.0-canary.5ed9d13d0.0","@material/ripple":"5.0.0-canary.5ed9d13d0.0","@material/animation":"5.0.0-canary.5ed9d13d0.0","@material/elevation":"5.0.0-canary.5ed9d13d0.0","@material/typography":"5.0.0-canary.5ed9d13d0.0","@material/icon-button":"5.0.0-canary.5ed9d13d0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.5ed9d13d0.0_1578519801736_0.8011421383321395","host":"s3://npm-registry-packages"}},"5.0.0-canary.4819cc7e5.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.4819cc7e5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.4819cc7e5.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ef60e16f3a5228dfac54a454ac4af9ae62f88a98","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.4819cc7e5.0.tgz","fileCount":39,"integrity":"sha512-lRn8RIwKlHtBUwrrfFGyWW6j+0u/E5+jksv82fnHZVjYg4lUfnk5T0amlNzgzZrUSj+NuEqbVX4i2LNpgFIvrQ==","signatures":[{"sig":"MEYCIQCZquD+IFI1yI5SwXIAerV6jtp/ghVxY7uQvoGemTYkAwIhANjBGkVpR+nwtMapRtnLbTBdO387yok/6MXT6uWxJbtQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFlCoCRA9TVsSAnZWagAAVB0P/iZp1zoVlJ2dnwSOSk5L\nhNDiOyagqh9jrMG6N1yxU5RZsKUdTZ60vCpoft+b7SsOMmYlH5Ky2Ioujcf4\nHrH1QMWhtOU2oWjUUye8dOi/mqAn4WUlMr9dGrelZgVX7hQ1bSbKuKjSbLAs\n2ik8xCtouNEqEI62L4DpQqy8Et2ujvIS3EqUD9PTvqbu9Wotw5PJSHX0Wd0f\nJGp3AeP8yhE8QgAaH/VU4K3sSunxRRxxrMNPw8EcNTSQA4GXlRTiN7+MiIHb\n0s8IFMS+CWzz73Vk3Sq605FPxRom0e2cq1Y387GRvu09vuyLCnTMySIoxIts\nzERlE9xkolcaeaXuMqlo91XZIL2fKTGTa9Nyw3RvjnA2BEOkUdWKqZJ/MHoq\nxTSC5B8OTd2lZEEMt6PjuML6/CrvD8NOIs7WXozPbGHBTK+YWSksgRjgYCPT\nWZMs8+ha5ZP8ry3LcxuCNxq8Pnj7992URfMeRAVTng0PIwVtOWNfPu1VNSQX\ndYN3U6woWXeFABHcPRc3ANJ8Fm2wQ6PBzMDByQCBRfcMcHtmRiwfL/Ze3J5p\nemu35iPRV7e0OXXgAlsTEGo5pMJdMxcFVhJFZ2S2okm6nDjVvvJVk3yAllvV\ndFJYN3l+FDA3iG6Dl8GcFgZPN29sLsrB40IMbGMt/f0t5QN/KeQsTLDuOoQr\nJhJp\r\n=ePmu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1cdb8bd7292ce5180cfeb2b5ea0cf8eb4aa6a931","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.4819cc7e5.0","@material/base":"5.0.0-canary.4819cc7e5.0","@material/shape":"5.0.0-canary.4819cc7e5.0","@material/theme":"5.0.0-canary.4819cc7e5.0","@material/ripple":"5.0.0-canary.4819cc7e5.0","@material/animation":"5.0.0-canary.4819cc7e5.0","@material/elevation":"5.0.0-canary.4819cc7e5.0","@material/typography":"5.0.0-canary.4819cc7e5.0","@material/icon-button":"5.0.0-canary.4819cc7e5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.4819cc7e5.0_1578520744266_0.9343927117643724","host":"s3://npm-registry-packages"}},"5.0.0-canary.fe3ffd2c3.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.fe3ffd2c3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.fe3ffd2c3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"31feaec93a053d236865efe02419281c22b5b277","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.fe3ffd2c3.0.tgz","fileCount":39,"integrity":"sha512-x/lnFrGrFXFb3ZF6o5uCgjkdIz7z7SswlTzRvC34zPrWqrPnoFdR+gaqIzWQHrB9LhmA7w8F5Ci2EctJ6/WRrg==","signatures":[{"sig":"MEQCICsJ8RsOHKGr9yHPSjf/OHqZj/+KPptJKIBXXwftrFp6AiBdFL5zwhOCkIhjezwsUzL5/qgiBEsCm5hhNN74WVmbtg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFlTeCRA9TVsSAnZWagAAITIQAJEUWh95f+DpIaw3p1HZ\n3YIvTZgDEYwIYY5UvBKf73IAPDqMQfsC+4EV75YJlN5oQZntQVGpEjeiFc/L\noZqNizC7J+2jztO9RZAmPiCGgZCV+HXGBqL+wlEjG3bRWPu08RZGhkD+CkV+\nF4WfEbKXwjCrPqdmnlUAnohz3v1Omz60ZcFmvNzFzBUt3Sfpgihh4uFsgDKH\n+Gsci+XhnFU+fcUUQ3WLrDRorR/nXroA6dS0UszYOUMx39980gBHf9JzRVNJ\npeqE6RB5ZBrUmM1LsUFY2kwrotMClWO6hkJy9++vaU56A1/ZxX2UnBKwPc8f\nCJ6NaWkp+70l/tARs8W0GLgQqjybDss0HTr6vaQkotvCwt0dJeYnCe9dIc0A\nLeC+ak8NRwhsiwL9FkysBIvhs8uBd/JVUPj3TTX5RlWRDRIYzh1HFTe6AzuI\n7EqonHV3c8M6NFdtb4DScPa/jUsB5f6seicCfmZs2zE8zbkzWU961Fl2UsDE\nQQGMfy3Fbn3aXs1mrCP71cfipbzEVyxoP5YZxwfcRnW4YHcl1rO+pSQKk91q\nKkxK0s/MdaAVAl4dFUYeKGRPvsJNzChoYvf40SHfvwLnqnXCEkFVecrbQ08t\nBYS9XCOZUUMUe6UXXwi1td2nfQ9CwncDpQcjmGENydwVqU221d5uRkwdRj4s\n7l4I\r\n=/SIZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ef82dd049d6c2d6439fc79408aab4567780d26f3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.fe3ffd2c3.0","@material/base":"5.0.0-canary.fe3ffd2c3.0","@material/shape":"5.0.0-canary.fe3ffd2c3.0","@material/theme":"5.0.0-canary.fe3ffd2c3.0","@material/ripple":"5.0.0-canary.fe3ffd2c3.0","@material/animation":"5.0.0-canary.fe3ffd2c3.0","@material/elevation":"5.0.0-canary.fe3ffd2c3.0","@material/typography":"5.0.0-canary.fe3ffd2c3.0","@material/icon-button":"5.0.0-canary.fe3ffd2c3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.fe3ffd2c3.0_1578521822430_0.9321079303104249","host":"s3://npm-registry-packages"}},"5.0.0-canary.c0e850090.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.c0e850090.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.c0e850090.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4452f9ff225051901e12f1c34fd9b4159a30d2ec","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.c0e850090.0.tgz","fileCount":39,"integrity":"sha512-wFwmNB7B2qqUeVIdPTdBOtcIgctYr62aGksnZQygkECAJSnngMFfLJLHe8rBfiqyXBitI+sONbxq5FWZ+SndEQ==","signatures":[{"sig":"MEUCIHcTjARTmol8+mWfknNxjius2UFZDe1yuXSbytl+zMwZAiEA1pfwN2oAhbGsPLgrh1d5FhUn9ErF/WiEh2Rpapsw7WM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFlZ2CRA9TVsSAnZWagAAxssP/i+s5Ni2ViLLS2yKQp1N\nxz9gxZINe/Rtpub77h28iLFG7YdTqJY4AOE0U2moENcZvamemVSx6XZBR3V1\nfxgexXbk5rZwzGHpSyJqWTmu+Zrea7JiYG4V5T0x5r+vfLutSJzmobhRYbae\nkfMq8+ks/IZ80uZJpNE2eKHHo2LJFYzgQDtfNMi/Y8Q/7XY75UK7d/yo7/wh\n5gk2x5/VbBhn87KvmCmGl3DqQFM2VxOcOTm9nKzBxuAClIj9ZBy0qEIhyxCX\ntXAr2hllPVg40c0QEOnRTdxKs2MoHU+9+s/SrT9d/4o7BtW+jmdkE5vr0kBh\nl9tO8Y0IlP01W5FEwTunASrkRsIy7IMG+4ihDZ4Ksdj5TEP3pMCP9N3vbKTU\nz+sABBpF1dKSm3/xps1r5ZzTHJ3w4s2YgI4RiaaiogBe4wnfSMGap2eGfocF\ntJa+XjK9Bjo/leZtI3U9XAzXK+gbUWz943ozjmsZvhDrDTTq8TXJjd+DvsVp\n8WKNDeQ+E49mWdkdyC5IgcabBx9vVd/fWTyCpbtd3poO0fS0NAj96STs09Kt\ngoio+5GTAQLz5chJhCsJSALzz68bADNp+U46oVt5Oks7w+1BTbFOwadOwAr6\npPHC+8j30bTbpN0hPsO1R1nwVCmo1u4XjBGUBrbSqNa87DpU5ImUqrWMARqb\nc0lf\r\n=9z9q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"04d9e991ccc9d40d53d67d592c9532cb43e763a5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.c0e850090.0","@material/base":"5.0.0-canary.c0e850090.0","@material/shape":"5.0.0-canary.c0e850090.0","@material/theme":"5.0.0-canary.c0e850090.0","@material/ripple":"5.0.0-canary.c0e850090.0","@material/animation":"5.0.0-canary.c0e850090.0","@material/elevation":"5.0.0-canary.c0e850090.0","@material/typography":"5.0.0-canary.c0e850090.0","@material/icon-button":"5.0.0-canary.c0e850090.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.c0e850090.0_1578522230239_0.3361471456071703","host":"s3://npm-registry-packages"}},"5.0.0-canary.615f86f38.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.615f86f38.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.615f86f38.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0dd9589fd143053584ed8779660d41a65351150c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.615f86f38.0.tgz","fileCount":39,"integrity":"sha512-o9E+CkaqhTFyfaA1qSJjP7JYwf7vlbFHYL30YDjNlQmWCxKz4MIaPLIJc0AapVmFQBSCjvEVjrybmFSPTqjZzQ==","signatures":[{"sig":"MEYCIQDskGmDyCWue004al6xiGcAMijYel4PJccF1A06CZ5T+gIhAJddKskwfjBKzynl/zVDaTnsAV2CV7wSrbgDCoMxP7pJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFlp9CRA9TVsSAnZWagAAbCsQAIDJ5sGHuFi8LtBeiWs9\nt3W10NywBokiI7zRx05sTplosadcQQJQRBA+oRU6IzJjpUwOQwMyb3Z/dWxQ\noT45xwZ45wImbPIdMiIdOhtmit2wJ7RZWx583jTUG9P10VBFxWqn6SsSiXqX\nqfPq7Mh4/Jop/3M9Jg9WV6e3mL8dyN8VqLyFLFfFqTMrqqKvaFbWfcCf3KG+\nANtaa5Kmk+pykL+PL9nMgQj26pKOVrZj50k7u/9YX9gK1nDMClL4P+CCR8Re\nDwOrOyIpKkwOiQQNkdm9w+FG0sGzy/u7/GoUgp+wZzssqU2tEAjKkNrOwY7Y\nBLOuFDTMVDQTDW63pXBdmWHKXynsIDfR+RRM1W1bmzwnY2ReLF59fDyN5KJt\nta5Pf+MFuyaW+wz+pJt6C8LNiWxZyYNpJ+2neOSh+GvQPj5otNUjwXP6UKt3\njA6rzcrwl9oEg2mHJrm1uzA1X8f/SeTeLIJrnoNGK52Q+aia5Sd8SNm6Xi+o\nca64Sm5MW+kM8X7c56X0hlD17HsgUcuN6WJOZlTVLtF1MyrLVhSlVendfCCX\njI+cM1NmU145Bv7znOFZ7C1viVi9zh4RlswxhUO2XxlnP747Q5mMCHGxkWao\ntL5ar7Utd9Eo79C5M4+sNOPlf30nO98eGvUG5gTee2Totaa6KoBw16Sfvp3t\niPgy\r\n=1jcG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5ae8bb946c188918a80b70e03e7d35b1e27089e3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.615f86f38.0","@material/base":"5.0.0-canary.615f86f38.0","@material/shape":"5.0.0-canary.615f86f38.0","@material/theme":"5.0.0-canary.615f86f38.0","@material/ripple":"5.0.0-canary.615f86f38.0","@material/animation":"5.0.0-canary.615f86f38.0","@material/elevation":"5.0.0-canary.615f86f38.0","@material/typography":"5.0.0-canary.615f86f38.0","@material/icon-button":"5.0.0-canary.615f86f38.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.615f86f38.0_1578523261366_0.491683036795002","host":"s3://npm-registry-packages"}},"5.0.0-canary.1eb032637.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.1eb032637.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.1eb032637.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"54883694744718a6d2198a6299645d4b302d2b78","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.1eb032637.0.tgz","fileCount":39,"integrity":"sha512-PrAC28FVMcsKTRY2TGIyLB4uwQ36aKCdHYEZa4K+jpHQv+k0aL5bRI5JT0VKUfFUcj/vrqn8D+ZBdE0adY2SYQ==","signatures":[{"sig":"MEYCIQCD6+eSEjdEWSJsnLfVYJzvwNOxuhxhXSuo2h1NvVxYHQIhANYm/8riG4DNQMVMI90/1sulDeKI8Xyn3iOWQZRxH9Uh","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFl8iCRA9TVsSAnZWagAA7LcP/juumO9joTnsuxMnTy4N\niR3ZXgfag1DYhXB5La3UvTUYURC9qVRwXLO9gZ8GThpTf6UrmkIL+4HHzSsr\nN2IPnqtoksyXsBT946iqG5SE9/D0fG0WqmHK1KXgBgUiZr4GyXvZXow/mEPV\nuQLWqeSZ/wbpmuyRswn4p+5bVpnzXgfTBSl1IinYCUrVNu+CuQRqJupZJ6EJ\n+MVPjO+k2g5FuBhl8cbcAg38xiGHQ0lFBK6QoTB0JqK7ZG3ZrQzEFLulB+Bz\nvRF0s2utJUV4d+2RJfp/sp5mcZg+KnpF+B8sMttzIiGPCYaNs6KyNwNoJAc+\nfLT54xKHCNzssuddosHpl3aCaO7SSOQcruXzDhxVMuubvq4jiEeWrcnOxbm5\nL8TIHOQHOgowchpzSEh4QsTnZgZJun0uQMYJ34se9RB7dercc9MZff9Po/Zm\nWeeNFsnyTO8lX4FN/w/LpnY9JosLh5Tk/+uYx/32B5fHaG0Okw4YsqJv105F\n15ulwD1g3s6Om0S0Bprct1SDyxEEIpiUZMk1yRhNo7fD1BnpKAP2VGtSxBTZ\n4cHaLyoTSsDMGH68zh5Hem3H4C9HiicOLUV2sakTJHdci5n9kfGTFf5qLGsK\nUXc5ppL3RQI1eCWYTm3oQwR7fw/y8DHnUS0ZnFiyDW+KRazww6EymQv1+d7O\nMrbT\r\n=bYVX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ebd5efe5771491e06a78d3b1ca6b1af49af8e943","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.1eb032637.0","@material/base":"5.0.0-canary.1eb032637.0","@material/shape":"5.0.0-canary.1eb032637.0","@material/theme":"5.0.0-canary.1eb032637.0","@material/ripple":"5.0.0-canary.1eb032637.0","@material/animation":"5.0.0-canary.1eb032637.0","@material/elevation":"5.0.0-canary.1eb032637.0","@material/typography":"5.0.0-canary.1eb032637.0","@material/icon-button":"5.0.0-canary.1eb032637.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.1eb032637.0_1578524449858_0.4382794461080812","host":"s3://npm-registry-packages"}},"5.0.0-canary.5bc5ebfea.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.5bc5ebfea.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.5bc5ebfea.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a36d7e5feeb12d5c1163e36de85bbf781e46ccbe","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.5bc5ebfea.0.tgz","fileCount":39,"integrity":"sha512-oWkN/eGs4j/yAwf3J0kgGVh8JXU9uoUzFXuqnBxZT+61ON1E3l39ZPD3U+C0jxNgxJuctCB7wGgwBHreNGjhSA==","signatures":[{"sig":"MEQCIBYpWBzrk9TmTJ1Ybul0tVZxBcFWXQUjmUGEVcpT9haSAiBjj3u9I1d8fu0OdyHrtOWXfUROj8OaNBMEomFqSaKZ6A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFl9bCRA9TVsSAnZWagAAvKkP/2mFYi11JeG3PNOy1w3P\nnz1IpXAZfC+WEd2tuzGTyyrhCpcJR4g6RfXkbtLuYRSRgbM/esFevLpXuaC8\nJVfAKwN7SXrsUn3afKRuF1bEvPLpXRUUgz/ZjIEAtU38OT2TkJ6UxWzKJtWA\naagIJTWwjKGjq2Arn4hIf+xrxSbvg19PJlHmOYjabvIeh5tzS/y7l7qam/WL\nMSt1Yf/FJOKLwZc2mqWaBhXhJRfcBv9G4XjJQbXO5o3n4rxajJ0ujpy6gw1Z\nobVhNcs5HS7W+o0SfI1uSjzP5I7cbnNlf/LZ+T4ScpMJ2hU4Bf22jteU/lYq\n/M4ZUryd6RaAn2Byi4SP0TG/rvJ6lAWHM9KM7BKCt8yizXzCKwMW4Nx8veKM\nP3Ak/ugYz9jIAEb96b8NvAz02f8rFy18XsVcF0aHvEnXbXdoELRu7SSjuHra\nkMDXBhwo6u2AXIdUUrX4zFSy3WrVJWgUGtF/OTS1WuDiGVs9+jZuCQav8JvT\n5ceNXmx1UG64PBrwldqNmVTquDJlu8xnii0eBJVEp16xhHStTFFgrskEPoWL\n5KQtMFLcUvtgte6fGFCKho7qdi7LRU1maaHh3nNgA/F0Rd1Ng9WEEnKSkWus\n5GpWnt+03HUVxWIDjCcdVluCKGqoU9TxGZ/HvTOupaaMzqKedk9VO9ONb/NL\n78Op\r\n=rd48\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8d87a9536a0b9e4af0865ecc4d9b558a6c193f33","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.5bc5ebfea.0","@material/base":"5.0.0-canary.5bc5ebfea.0","@material/shape":"5.0.0-canary.5bc5ebfea.0","@material/theme":"5.0.0-canary.5bc5ebfea.0","@material/ripple":"5.0.0-canary.5bc5ebfea.0","@material/animation":"5.0.0-canary.5bc5ebfea.0","@material/elevation":"5.0.0-canary.5bc5ebfea.0","@material/typography":"5.0.0-canary.5bc5ebfea.0","@material/icon-button":"5.0.0-canary.5bc5ebfea.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.5bc5ebfea.0_1578524507433_0.09019835332870318","host":"s3://npm-registry-packages"}},"5.0.0-canary.1112b8def.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.1112b8def.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.1112b8def.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a435bbc5ebc217a3eca00411172fe4daa79026b4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.1112b8def.0.tgz","fileCount":39,"integrity":"sha512-ESdWMaz5RfWD6xazV9Tf6Wa9hT2jsFSKu3BA3X4GE0fJBKbx/WwKaPzQbHvH+BmYaqzvM72UD6bZGkmG1Mj6Wg==","signatures":[{"sig":"MEYCIQD4kJbJENKn45vAxneK+R3XhhxKmz0AWBVCbk2N7+IRawIhAIb4Xh94wOfosMdobniRaFSQwfYB8UTOnjthrSBLiFbZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeF6T1CRA9TVsSAnZWagAALHsP/1D+sws59pnUJb930fhZ\njbgy9nskr4lCHWipC6h9fFLrfkknsOcKrT9IDNYF9amu+gtXSWZdC9aIKkaV\n6TJBqFtXkKthRScCuQVG5J9zGkfT2izW0EtrR8QmdXjG9ox8y1rvbSS+/9Ty\nxKOpPTWZJUVFkBMOcQkFleqO0omb3MzE+nlueaueaQYs5XTtIUTDwUiRYlnr\nlu7SdtdOLtVEFZIuPBG/S/ALgDW3XN81YkU92gRqlpRKSYeaamKoyVz9C2iD\nLscFaras7Bw7NqxF5vjAT355BWoo1XlDLxnsgDxZnxdcpPkM/n6G5SCKh3q9\nxrKBncpzkbQ+V1F11pOr/kFoUIyi6dyRQ1dfN83U9bmHo7AuSmhbmpvRmdFu\n2OrpCFq7qi3lv6tSBng1F7V4Ze20ukRBC+E62L2gnp/bKTlM8ZzmPT2sFiOH\nWKp1zsk5DanAHvrgGil/SIrwu+BxRjfSw6cZJslpv4lI3SvzBQ5lDQgn45kt\nSA3f8GJZpFsXXrXBE/2tSMpnZBJi5UseItXvzK35Neueatw0Xjl2oeD86nU8\nfWb8jYvrMUvqRgpuDffeGqy8mG0wKbldqX4VqnsyWuqF0NHhzQl+bNglfh/7\nOkDH14lMRv+h+VLyCisCuFHFLwLNF9IJjHMrOi8BUG6sBipLIgp8t+lKWHTJ\nfsxk\r\n=stZF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3fdcad176780c1976528d217d2fb149875bb4b03","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.1112b8def.0","@material/base":"5.0.0-canary.1112b8def.0","@material/shape":"5.0.0-canary.1112b8def.0","@material/theme":"5.0.0-canary.1112b8def.0","@material/ripple":"5.0.0-canary.1112b8def.0","@material/animation":"5.0.0-canary.1112b8def.0","@material/elevation":"5.0.0-canary.1112b8def.0","@material/typography":"5.0.0-canary.1112b8def.0","@material/icon-button":"5.0.0-canary.1112b8def.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.1112b8def.0_1578607860836_0.17748996038931075","host":"s3://npm-registry-packages"}},"5.0.0-canary.aab102017.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.aab102017.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.aab102017.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d9185564a4d06bca94eb959656840f672f641db5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.aab102017.0.tgz","fileCount":39,"integrity":"sha512-QMgtMoFFczTnir6A5wQzLBaCVwFl/DrIZ3pvNaBBhQbhUJpF1W3FN216F7PA5KkDA1LIcP4e1/sajDl0z3WFQg==","signatures":[{"sig":"MEUCIHHuX3zfwYASVyeS8HqihG++ZtJXKI086ctpmY1fJtqkAiEA+VJuzioxhE6ffT9mD8yphvcabXCTHd8IrECv3NvmK9w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeF8GPCRA9TVsSAnZWagAAGOoP/j0GiabfKMuoVf2mHYFO\npAHXbLQIAVyZO0lcUnHHAAfStNXBvhuli9ySMHvb0hLUiRJb62nmdchSr0jf\nGGdF3TwTGg6pWyMKf3D8aH5srftNhYbfRa/yp0BseiscQ4viJROo+oLULCjT\nwRmzDHiW1tvzJo2Yu4k42MQmPzPVpqGiMvNBqlzCR1DsU/J7yMQowxxetKSc\nl4WBBqZBtipGFeoO8Y+T5DlbSUsFrO+0XOW2Ag2oWFF7Lek2RRteTa3HrdTU\noscrIvydAwrfQ6wEMB7+UG/uXWG596XGv8TWhcPQQRWtoYI9WmhTeHGBEFC3\nw8s0RZunabmhxHOcyxSRblE8a3PaQq3/Gj8ZN4wKiyRHlYJF9n/Iaq/LSXk1\nlJFQDhxuZtWlpqBV7WfBhAymca3rxAasoE/xCRzEqHwj0kRL4xFkUNGc4hiE\n1Pi08/rPZREmmUsTrqqjHGqRvIZZe/7Rs+thXWFNnPC0Yp0sZbJaWWUkcqZm\np6fKoid+Ep0xHsVQCUhQ2rU7N7dt3lttvjAYQVAC+jquBbDvmOQjMvvAAOuj\n6VvskjqWyJOne+p/b1lPwQFgm8dsZh2ZTCDjPihTXfadk87A6Bvov5qHV8um\nuFCKZcY6w8HgAwERQOT2LSIf3CmU7rsi/ZtNAzlyI/mhcLUPWgHS79tUU4jJ\nMIrX\r\n=LTq1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3f5eab02080f0c4fb48614a44647ed55d55eb9fb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.aab102017.0","@material/base":"5.0.0-canary.aab102017.0","@material/shape":"5.0.0-canary.aab102017.0","@material/theme":"5.0.0-canary.aab102017.0","@material/ripple":"5.0.0-canary.aab102017.0","@material/animation":"5.0.0-canary.aab102017.0","@material/elevation":"5.0.0-canary.aab102017.0","@material/typography":"5.0.0-canary.aab102017.0","@material/icon-button":"5.0.0-canary.aab102017.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.aab102017.0_1578615182397_0.8601557195761338","host":"s3://npm-registry-packages"}},"5.0.0-canary.426913342.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.426913342.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.426913342.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"972eb40a549c9481cdfee3bc0b428347f853b37c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.426913342.0.tgz","fileCount":39,"integrity":"sha512-h+TrkV1nwJMGCI8qoR9G2XuFU5S7vzI/qxv9Oc9nFtCpdkL9FlK6y46HQ2iiKofwDlSBJPbSXqyBk9Rdp7VKTA==","signatures":[{"sig":"MEYCIQDZuI5DLHMQ9M4TxGlDePCRflvqNN6ZPqeztroevgsChwIhAI6aVM9CcEg4bgX8fn5mk/ZGsEK2YRG2Nm4nNY+xRAqb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeF9ccCRA9TVsSAnZWagAAfowP/0tl+96TA+xcUfgrndLI\n7SAj2QnYgbZCUZbV6TM6nELSxCP0nuPU/cYKxhdbWnF1PzQCWSvhJHsNc5Uk\nj/WXYCV4pyn1iyUz5CrFTSBXgilObIiQzwY2P7TtFb3WkAdkWjN7B/nRa2O8\npxQE91I/GGUPxSWfpQLo+G8aD00rMfYCjG4te8npN7kg8yOJjbveEiBcvp3m\nqDAHO9qNeReIcVRE02yJleUJHQbbDgMFWa8wMzQhZHTsIftW3NM2WtjTJwfV\nHIxa5CXiF6d0f71OJy5vWmvXK9vY9FKPU/0CAcaropJTPhhgaUaHYqcVMETi\nHDAVjMJnscH/7pER+o8TqIieQRBbtnj6jHHcQZDuruxHmjT5l3viqT6CKJLz\n8mC+4xj1xuBGk3ajaaOL0eLW6mLDIKhMauS6s8kpIpYvx+Gpcu2nhVEJ2/Ja\nz0HxGPZJDCWQWcdnNn48Us93pcW3fR+HJCTXK/JsxBi360t/ko6LGQe/Eeeo\nfet4KohqMUDPI6u8NrP8sC3luJcccE3ApZMGtDYJR+m+y+mz4uOFsm0rVSS8\n0yqnQU1xiXPI2Q4Ky+sEdR1gbZ00sf6EG4cWUJsWeF8WSZDc1GppcqLg0NKH\na+1Vy8B0X0xxC7ZjzktePaDu/AiIealUJGL5hAiVjEopDTLDj8wD5Qq29O8t\nYLoT\r\n=4Moa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7a6219dfe8ca1677971694ece39ab423ee8879b3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.426913342.0","@material/base":"5.0.0-canary.426913342.0","@material/shape":"5.0.0-canary.426913342.0","@material/theme":"5.0.0-canary.426913342.0","@material/ripple":"5.0.0-canary.426913342.0","@material/animation":"5.0.0-canary.426913342.0","@material/elevation":"5.0.0-canary.426913342.0","@material/typography":"5.0.0-canary.426913342.0","@material/icon-button":"5.0.0-canary.426913342.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.426913342.0_1578620700263_0.7879709033839115","host":"s3://npm-registry-packages"}},"5.0.0-canary.d4ea9a706.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.d4ea9a706.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.d4ea9a706.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e15d71e4096490a4ad3bdab9ae675d96e14471be","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.d4ea9a706.0.tgz","fileCount":39,"integrity":"sha512-fRo10ttsz4R6hIJ+fhsFsR03tIS6P+ykDCReFSV/Uq1GY6UDlwMWdxnVzWOTSObb/UXhpFP9GqwTrWO5XbtUPw==","signatures":[{"sig":"MEYCIQCjwFvydIDg+Rr1x6ciRNTHhcfWGjjBRo0lqKxW3lA4wgIhAIsxcQQCSwWA60w6dkzf2L7M4mZ5ZRW215Hq6cDN2IZt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGLOvCRA9TVsSAnZWagAASDEP/25M+DxyOJFrOVjlT5px\nS8rv4Gx7GeEXkVYf5LtLGgFFoN2Z4C6x23y8OSEw6tzZQtPbMzI9qpnu/zUJ\nxIir+0uj3/9FrC+SPGV8y2JFtGfxRm6fo4mq1L2ZgZbpeyP6VZen2GDfhqtf\nOf/WzusJvTAe1aP3aAdW6cSNQ6Ehw3gs2MxGM8uWoxcm5t5VaT287Srf7vlQ\n3KKHeme3y2WKdhs2Zu8jQTiVld/x80C6DPBD3m5iteF7XtYxZaMd2ELrr7Mq\nvIIx5qfqvd/GtLgHOIehd+saB1fE+XTmNkQnhAiQcJ+duVx2InmoLKPz4eor\nOzar5Hu621VOt1q47wgA+Jp12OOaGehuV4dUOysMx6IJ40vr3Xv6/hh103rV\nWjIX3rKRe1M7EQZcLT+bJ6PLDSXTxFBuSbMK58KPxu08PgoYgCZk/EX7kKiN\nlstYQyPt7Q/kG2xj9OM9qN708DL3ER7zYSplcWfGF2jMr0RrkbJF9/CU22iK\nh2LvpDEfcFVzKGCB4hDETeK0QBZqh37JMG76WxT5da9sK8jMmm6It8t4YXJf\nBXncgh58cmLn78pGkPy9/Gc/55cdscbH/ExSK5Z3Kf6ctryXR3yUawiVxP5+\nBt6qwCaSzv/k5vDT7zKrIlPR5D/dVkOrmI2PfZoHhjti3Q2Gjg+MYJCNT6MO\nDU43\r\n=czf0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f4f80c96af6c2e34c34a3ed8f01c1858ef738935","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.d4ea9a706.0","@material/base":"5.0.0-canary.d4ea9a706.0","@material/shape":"5.0.0-canary.d4ea9a706.0","@material/theme":"5.0.0-canary.d4ea9a706.0","@material/ripple":"5.0.0-canary.d4ea9a706.0","@material/animation":"5.0.0-canary.d4ea9a706.0","@material/elevation":"5.0.0-canary.d4ea9a706.0","@material/typography":"5.0.0-canary.d4ea9a706.0","@material/icon-button":"5.0.0-canary.d4ea9a706.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.d4ea9a706.0_1578677166617_0.42260668214170627","host":"s3://npm-registry-packages"}},"5.0.0-canary.7d4ee2996.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.7d4ee2996.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.7d4ee2996.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ee81cb825074832b27cadb1c3ca6865ae5a4abb6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.7d4ee2996.0.tgz","fileCount":39,"integrity":"sha512-p6qwruAH92IXgfbyL+N5Pbpvpxue2CSioGFPm+7IbmUlb4yhfYzWqxJkgu4A4jxZiK85xD2ZtV+9og7h6hsJCQ==","signatures":[{"sig":"MEYCIQDsuG7RDt8LOvk/z1B709XiUKlfGIPNU4vR6Qt2uYMVewIhAOHSwHhUSc94Tj5/2amUfSQhkBFmYPJOtxaBGWfWoUUV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":444483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGLsSCRA9TVsSAnZWagAAhZ4P/i2bgVsTbCMUcxClMn/x\nBPgwy4y1JgdFOBtcw3ipbLPR/lId/Woalx3iadR6H9AyZ0nCXSG46YHyM3hj\nZisqiNEosEDo12GbyUsxpVXGwgU17zL9G6Le2ekC93YrDrWymB9hFolt5f7Y\nuOIvHcdOZTyjbCYcL5ZHH4IDx1qsqyViTW9LTDtIoAJvHP/1ANGg4W/Bff28\nkg1ISEatzo3ZuJwC/SWskzFprmmCrYileL9d7aDtMvBZQuko2zrS1MkGyKCl\nwtBcIXUt5qUOJqzNtQGUINPgAEc2spSyffK7UqkKTuOBwIlaOssjQiJK/iZc\nvsi+1GJys6LkotPZZySj8/CNdLho/Sq6580VeBcAiB95jR60T+tne2T2WVyS\npsontrnFkSEFVp/xxpyGpISG3O2aDxEoeEm8gjHK4Oi52GT1wNRs3kQAE/Lg\n1Gl/gHpR2De6ePz+/SytaBbauTz+ZU9nvR63oAyqVuTH41xlU80JQz21ANi5\nM8YktlyZjvGHeOYmxzeK/4H5Pj5TjPoO1+aTGvutTYLm8qDaod5RibIZfSJ1\nzJzU4jWw1ZpirSY/kmcTUR7UlC5CVDqbo1Zq/2/TGBptRMY+Og2qaaKYoSSx\nsZ3rh8tCwF9QKOH3hhCjt4deQCHXrIViUH845up+NC9b1gYAB5QP59GoIR67\nle8Z\r\n=1ECd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"32cff7b459a8aa1e335c6ccc84213cff0f6e66a9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.7d4ee2996.0","@material/base":"5.0.0-canary.7d4ee2996.0","@material/shape":"5.0.0-canary.7d4ee2996.0","@material/theme":"5.0.0-canary.7d4ee2996.0","@material/ripple":"5.0.0-canary.7d4ee2996.0","@material/animation":"5.0.0-canary.7d4ee2996.0","@material/elevation":"5.0.0-canary.7d4ee2996.0","@material/typography":"5.0.0-canary.7d4ee2996.0","@material/icon-button":"5.0.0-canary.7d4ee2996.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.7d4ee2996.0_1578679057589_0.26066970545169754","host":"s3://npm-registry-packages"}},"5.0.0-canary.981ec9b6f.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.981ec9b6f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.981ec9b6f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ddb972384521c8775df89bd0270dbc4945402c70","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.981ec9b6f.0.tgz","fileCount":39,"integrity":"sha512-Qp1wZ9HqAkCdvx1m9/RJy6AN/QdEilWSDiUWAKJCZjpjK5KGbzl7JRZ2/IEaIQMXgg+e5mtQMA2EZKaKMtsdgA==","signatures":[{"sig":"MEUCIQCFbdzNldPt8n+P3lVyo3H5ZQeENYfSDrBnWCuX/bpqZAIgeduxRXtc0iwgWKuyP1sVc2lykF6E2I1rHYmGGGj3L/Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGNBDCRA9TVsSAnZWagAAbEoQAJdDXMp5AHTqdVU4Q4pa\n9GoSguNnao5gtmJGL1FAN0iBIK5VK3PFhVTSKNJGn5VP8TissseWaJ11SN4l\nYYszk9munMG23/9PHnZCsaR2w1BKhE2XUuv55K4nRAoW871KdNgofQ7Sf3tT\nPWmhHbCcZKvy2lsOdtegtCsLOYvAEBCdRRDB3heYPl0XVB3sZ5ZKTWolMqyV\nUlvDZlFUQqiS/E99l6kJ9WBUSs7LK7X6INzK3NwZplhAOIb499N16LVHmQIz\ncLW6kZyrrirmf5dfCXN1f1xZ1o9YtGAfYfTwWUp+oXMcsJmey6nXf2hThg0H\n0Id/kYX07yh/otWyu4YdPwCaCplYFCgRJ6AtGoLzfk3HEohvIjgeVEVFnMzY\nJI2lffgXJWKGIFcsCLcCU6uJ4SIGUCWYjwZr68OmeCRoSdlMu8hokMKMy79M\n6ExlEtv+CNcH5tJy/30US7xJe+QOJlXzMcsZ0ol9s1w44cy+Po98nquyHebR\nwgk7HG5S5vgFysVCD59XYaJ9L0wsFqNLDxjjB053OizQQOcx/j3xbD6CLMzr\nX53kae/usvRyxi1pAfq92lrjYYicbziVx86LCCAKwzE+7ZGE9r1Lt+LyOyL7\nW7B+FIe6H2bIFqbKKNVhFGUPNRbe6Q8BJNm2eSsp5F4jn8/g4FOHxOrDNr14\nWvEN\r\n=DkYN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e2e9ae33775d14566dd45608f66087b2761d454f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.981ec9b6f.0","@material/base":"5.0.0-canary.981ec9b6f.0","@material/shape":"5.0.0-canary.981ec9b6f.0","@material/theme":"5.0.0-canary.981ec9b6f.0","@material/ripple":"5.0.0-canary.981ec9b6f.0","@material/animation":"5.0.0-canary.981ec9b6f.0","@material/elevation":"5.0.0-canary.981ec9b6f.0","@material/typography":"5.0.0-canary.981ec9b6f.0","@material/icon-button":"5.0.0-canary.981ec9b6f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.981ec9b6f.0_1578684482510_0.06624633642194189","host":"s3://npm-registry-packages"}},"5.0.0-canary.737da83fc.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.737da83fc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.737da83fc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5a68de12a1f6d2da7437e7871051c7b3fabea0fd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.737da83fc.0.tgz","fileCount":39,"integrity":"sha512-BrUEQZBrbDf19bLC8jbjxurV3f/+HWojHN1+USJcIDMfykMTa4gCKo0S2sA8vW2lqbZYQISKE1G1aCZ0kz33AA==","signatures":[{"sig":"MEQCIAqBKtjYoOG4ezfF7ouOB2IYg8swSsZBHGnCVu17U9TQAiBnQCf0Gc3cm9zQueiu9+bFPnVLruEcqnqq0vjUvQ/b6w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGOpmCRA9TVsSAnZWagAALFEP/Rgu5vH58lI3mRKfrzNW\n1DxLa+o9TmqeUd0CVAThACxbxJ+aF0zySZ+hR9l/vgjqrDbXvh51xaDJ3Zyx\nQI5Vpf4wuGa6uIqO6s085sRaM1brevC8d60BAo5NPfgvO/fVa3drF9fzXPdo\nvj8LI5Ozn0yY/hlgH0mOoWAQ/r04MJsX/tUP/EuO3XVIKnxdtx3WhE6u0NtM\ndK6RijLBLumgLHBIeb266/TFDVXasKyPx0qH90SxFjPSLyVBCIVRRQB+vCJ9\npHKTPvBS1K/UCRmv3h8cZteBNCiwW2p0KOQ7swxYZXRSeh+VQWNqexrfwidU\n2nyDCV5FQfSvLIBmECBR01EglFAsvpqQ2P6NUc6gAGR+VDiSyk1YjZ+x/F14\n1NPMH7WTSxZXurDt485t4qp65U6tnJ1ZZAHVClIpqtKKv0ON+w2/07glgZLg\nXx5in8Uijq54KEfBxq3mrZqkDo6tUU16ngLsE/pGLAZ1U2aGJaXAlB05kznb\nmTxJPkyfObdcgvY6x7Nu0rQlFWdg0t4ZnyJ/v6kbarl8NLsZuULyQUQ1IkkQ\nBlCGSK+nvJKFbVRlaOlOyoIk1abPnf8zT3YL6noJSKlbbYLDI55BXXUjdePb\nLGgvSRwPu/z/SsBpRxn/F1VNkuJ99mYQs0uMctVxUXTQrf6aF0/kzJF6+7Z6\ncrTT\r\n=XorK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3ea8f6e8d81e688483ab007855dce5cba3b72015","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.737da83fc.0","@material/base":"5.0.0-canary.737da83fc.0","@material/shape":"5.0.0-canary.737da83fc.0","@material/theme":"5.0.0-canary.737da83fc.0","@material/ripple":"5.0.0-canary.737da83fc.0","@material/animation":"5.0.0-canary.737da83fc.0","@material/elevation":"5.0.0-canary.737da83fc.0","@material/typography":"5.0.0-canary.737da83fc.0","@material/icon-button":"5.0.0-canary.737da83fc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.737da83fc.0_1578691174271_0.15511173277976487","host":"s3://npm-registry-packages"}},"5.0.0-canary.aca8e6c18.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.aca8e6c18.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.aca8e6c18.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7734e08855761765d6397261acc4d447ebadecca","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.aca8e6c18.0.tgz","fileCount":39,"integrity":"sha512-nBv7N8YMZfptrEB5qcavnf/0vxq6StHqDlzEvWzIuUc6UhCK/+pU0zjHTF9a89C+wvgUq6DxcLl7EwRNv1EaFA==","signatures":[{"sig":"MEYCIQDNUqpNAM956Vqj8wQ59EliNf5Kt7fwbxzy02lbb066fAIhAJDjXGrgCXN1iqwV0/oBNXz2tiMN3aB1GMamKF3LWszq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHMYCCRA9TVsSAnZWagAAj/cP/jhMa73x3g+jHjcX71Mv\n3mjdB9ArYGUZ2qmGWmjsWK5bk3WuhInTtAeXp/sNSt8mqQNBqN5U6QkoERRx\nA823pwzwAvBHJJTOqjSSz6PTyUgzXW+KmJHt0N/VrYVxnY2qCnmqhEncO4N2\nSiuE6Qvx1v4A4ZcPXgQylQ36/0XChtEclaEcxLexSagcAlMMbZLNaKYj9zIv\n6Dq4jusRQBAZa0yMvssPqHzyRCJQdQT6ANdcJLOYItuT6ZPy8PPVGpJh9t71\nvcmZUerrVfdSXJsJrWDu9KGE8aK+uwnOhLaVRaVQIhz1Uwuze0Ltp4in4moy\nBrXp2cBnhsa/aZTvfIdagSvmqFurrAiNGQ3lrsRAKHAvp1eImb/wozZgOc6y\nvX9OOjl0k18ok9NMn5DbPweeVL3o3HULBoBHi7e1LeuOWGZdHd5Pmyk7btCP\n9n4ONj9zlT7DRroJLOYtaYrsMFzwX1fDUf+xX8wHXzkQvbwTP/qZXQcZpjxm\nsWRqKT0R2HvPYTAD3sQkmvHv6AOnONxWuGGZjoRbKVdbQWttbVLHqi8Fjxie\nxnMc/SSdAJjhe52+SZXlrb9/ChvlABLejvbaqoqexcnnu7iH5Ebz9cJ81KfD\nsakeJmhY/yrSPe/T0MmA2NIhbzsYeBBD4OJMMPWe9KNgX954mO38bbmIY2Lf\nOwjf\r\n=HeeF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"47bc251033c39b1b8f816f8ae77c888c07b20fee","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.aca8e6c18.0","@material/base":"5.0.0-canary.aca8e6c18.0","@material/shape":"5.0.0-canary.aca8e6c18.0","@material/theme":"5.0.0-canary.aca8e6c18.0","@material/ripple":"5.0.0-canary.aca8e6c18.0","@material/animation":"5.0.0-canary.aca8e6c18.0","@material/elevation":"5.0.0-canary.aca8e6c18.0","@material/typography":"5.0.0-canary.aca8e6c18.0","@material/icon-button":"5.0.0-canary.aca8e6c18.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.aca8e6c18.0_1578944001997_0.7000161260363984","host":"s3://npm-registry-packages"}},"5.0.0-canary.c38d84e21.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.c38d84e21.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.c38d84e21.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"46b3500eda170c89f85481214d7c995855a0351c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.c38d84e21.0.tgz","fileCount":39,"integrity":"sha512-BNHdnX1uSx2Hc54/+6oUysuFfZGQqS49ZinL0F9GvAnC3VhYxZRxE/qtJ/Efzbq5/ulMzm7rvsOirBT++A46Dw==","signatures":[{"sig":"MEQCIHj6Z3Y+iOwIn75kGLwUNRNe/MqwfFLrTbBLXDlDu5g9AiAl8XeCZ2h80dVl1lkHpSECikwF6+sLijRy6YYW6miZGw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHOvECRA9TVsSAnZWagAA2BMQAJFPw/lc5XMOnkksXFYe\nIrkcUK4k08nORebbGp110CNjnog86zi5qEbRzWw2lIiCkaw+tHar7d352Fhf\nzWv2/V7nBeynNyP60n6S2RcfHugV9qds0Vl9itQ8oimnelF8KSEbIkpTCwYF\nUXr8nefYgO/75n/+y+y6oe9URH8gzdcqRk3An5dMsqbvlpMZmhCZ0TtunUu5\ndQLWN5VlCRifHdgL/pj/jKkmrVqGp8APmp6U1SprWghJ4UHw/bYgPu1o/icC\nF/PpOLfOqQVrk5cJHk67W0ERCGZJtOA/RXxhBAR/yNRcTa4oFZD2aE1PkrXX\nyGDJfhrHykOC8D3nxviwh4eRA/DkQJhpR66KEspA/mswYnQ/wgZKsHayc07x\nVqhu8Q7hBs23CQlo+b+y61CiSy5Xh37mp8pz8rBYnIo6m8/2lDo7d8f7Q5x0\nxrWrmK3HeRKASBaebAtibYqtuRKj/qex2ZXz8gvXFG9yvMA1ypdmwSot8hM/\n2tdhXzPzQPafZuWCrUjU1KFnXJuBhRJcZWqYeckmMCwd3ywFWtFPmxjNNJwM\n5vUqygLcBSrZneaZuK9pIFdsJaWS4geeRqWsOC+YjJ9WEfoTy3n94PyqhmU6\nZPMQFYmod/SkJ/79Ie+eNMyeFGhmR8yWt5ORc0Ix9pjPakBZg8QNqzdntEpb\nOeSs\r\n=Ktb3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f283cfd55cbe9b1863cb96e98011fe4badbb1fd0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.c38d84e21.0","@material/base":"5.0.0-canary.c38d84e21.0","@material/shape":"5.0.0-canary.c38d84e21.0","@material/theme":"5.0.0-canary.c38d84e21.0","@material/ripple":"5.0.0-canary.c38d84e21.0","@material/animation":"5.0.0-canary.c38d84e21.0","@material/elevation":"5.0.0-canary.c38d84e21.0","@material/typography":"5.0.0-canary.c38d84e21.0","@material/icon-button":"5.0.0-canary.c38d84e21.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.c38d84e21.0_1578953668048_0.765804709686686","host":"s3://npm-registry-packages"}},"5.0.0-canary.a4db5fbad.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.a4db5fbad.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.a4db5fbad.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bd038f8a9def46f72ebda7102bc7fb043e0e0a68","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.a4db5fbad.0.tgz","fileCount":39,"integrity":"sha512-JtbQBtm4hSNYCbzOJlJUp9DRWe58fCUMBDEtzyX9ugyLNOgGaqApsm6lr1DXENOPtC3Ap8idAhMjiy69UgaV6w==","signatures":[{"sig":"MEYCIQDV9mAqq1QR7Yt6h9ZUqyxVh2uDeg4GnuSDqgiqdj11owIhANx+I8KqMcpamvI9/J1fD5pUm/FCHFNQolcFYZdZgiPr","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":447672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHSRkCRA9TVsSAnZWagAA/XIQAIMGh1N2Sr/DWN0+brcX\n32DFUW+4Qzmiy9hrhjJ3jHBcIz22D2A02V2VwYdnFPKYTPluP09TVisXUPDA\nQbb+ahIUpOS/sZ5WoYy5W8QaWxX33XNgTvMUs+7xj2LzKFBihblDMlkbUYZp\n/dQwkbr2Nd3mGExyazv2sWLNz3UJxtUoh/OqtlIeCTjvRlhcxKWSYDiL52Np\nAjBO51cthFiPr9q4Bo96A3bO4Id/h8Mud12Bw8IDypjj1Ucgp4kFkgQDAolP\nn0LbG3wwxc7Y0rp6cj6U/td3feJu2pkA5shs0BXKGqUV7g7hBg7dBvpGKE+D\n8Kx7I4+vumJtCRMBRHFoWnc4GUXC1UK9dDjsMQWUaCP2EToVFcExMlVvHc9T\n6ydogYuOUCmOkBStNIy+mv+we5vSk9wvV12oTcXCYmLGwie9fjm8460IoYPx\n6uEhsB0CnJerOPgrKrd2T16g4xmCoxpitWOZDGYsEtYegvvQr8j9MiH7Szcs\nY8xJsT7T9JfsRzAbLvebS0aSLpD7uTCmIVzIo7HgBPVLzHV+v6z5NmvHA0L9\n1xLxdrOK4UC8cFrJ0OoBLpm8XofhhebAwYCPAnuo35pgOVg+Q5xPObNiDuR8\nS6AGXN020Nl1Y8xIO14krAr70w30l6xZ4SRCzLFQbpWc6IanvCe3ZFndJZm4\nkxfg\r\n=cwRK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bb5fe141944679686f178779345a5880a89943a9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.a4db5fbad.0","@material/base":"5.0.0-canary.a4db5fbad.0","@material/shape":"5.0.0-canary.a4db5fbad.0","@material/theme":"5.0.0-canary.a4db5fbad.0","@material/ripple":"5.0.0-canary.a4db5fbad.0","@material/animation":"5.0.0-canary.a4db5fbad.0","@material/elevation":"5.0.0-canary.a4db5fbad.0","@material/typography":"5.0.0-canary.a4db5fbad.0","@material/icon-button":"5.0.0-canary.a4db5fbad.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.a4db5fbad.0_1578968163796_0.3234314505738518","host":"s3://npm-registry-packages"}},"5.0.0-canary.faa9af310.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.faa9af310.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.faa9af310.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"746c84afe002f084a16775fbbfdcb0c2c02b6a5c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.faa9af310.0.tgz","fileCount":42,"integrity":"sha512-BhXzZc6vp2IC/OUFL2SsYBz8lt5bnBeM77uH2sv6xwffBOpKvzYzh/L78ZU0jh+tU8x681yDlUvAqjg41fMf8A==","signatures":[{"sig":"MEUCIQDDfM/NWpaR/G+u5bF6/2UmlYe1r+HIW3Tls06PnpADmQIgWJ3dUbH/URNnFqhC3oG2Bx2JHESO9mo01xUsSwwnBHY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHfI0CRA9TVsSAnZWagAA/o8P/1BVT234HLCHJyc+az7y\nzgKmncP8E0eD84q7TTbqU1++mTJAHOb1uL67oqRFlIZ+8GCvyyyGcrE0H6gu\ntI+QBeG53b3zN7HlcPrtAXFMNxpRJGJ3BCz5fHnFnqowbw2fiyXjGY8cod8g\nhT+50QEgQRYqTUhyZSb+yi6d6PvYd2IlIyYATqtoEoH8XcNmrjDF19rGnHyX\n1/op7JC2Ccln3nM3ZvK356ff1Mhzqn5oaIIybFrp73ctXEmuR+WCMMwMqcLd\nP8x5iPr1kwIy+GkKkRlJrEwOa1V7cYM+IrHXL3oQqKDfABxfz1FfDiF0Fnaf\nwOah4KZcjN+apQG5/X/ovvhJaWmTmS7zXAUW8WGs/Is/0tsLh9s105aMmJPZ\nc4PkLwzHb0heNEu78xWRsQCnKFW53sphtOmY9/6yVLLRW0+2NucEtG7+RUtt\no4YlsLBPIMS5hVAd0vIWviSi/+iCaFHFIqV8dRBhbhVkrX0FEupnWU6rnNhz\n7slahXgBnQSrHULNc/wy/1uGtAno4wGoQxOzYjZBx33W4/qxkpYQdq6Hz9hg\nsWPsCwStMeTmT9Cs63ioGcfXfRK9wYVUBU17w1t/nwmymAA6EFNKypK+DVzv\ngRrtnE06QrVPq10TI0iv57y0xbNquAJH5Jhewu2n778/t6RYGZGINUUdr2Ca\ngWed\r\n=OFWa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ee374355df19027c59f24bdaa809bc18183453df","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.faa9af310.0","@material/base":"5.0.0-canary.faa9af310.0","@material/shape":"5.0.0-canary.faa9af310.0","@material/theme":"5.0.0-canary.faa9af310.0","@material/ripple":"5.0.0-canary.faa9af310.0","@material/animation":"5.0.0-canary.faa9af310.0","@material/elevation":"5.0.0-canary.faa9af310.0","@material/typography":"5.0.0-canary.faa9af310.0","@material/icon-button":"5.0.0-canary.faa9af310.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.faa9af310.0_1579020852515_0.9692954274146648","host":"s3://npm-registry-packages"}},"5.0.0-canary.60354c577.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.60354c577.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.60354c577.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"01d485def9ef182c9580506fcd715299d3aa14ef","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.60354c577.0.tgz","fileCount":42,"integrity":"sha512-fRPcBBPOYlvMhzUayVXZ2Rpq+MBhVeeD3MKDGmEsI5Fs+ZL8whGIHXbViBmMCnUdS7tcidVNEj0ycVAPPfsQuw==","signatures":[{"sig":"MEUCIQDfnArpsJpyttiBUv9g+c1urbFmiBMJK71vwIbDvjnMgAIgJDkd65NV9ULmW0IOd8Ge6FSI2fPMjtTkSELIdeWTssI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHkTYCRA9TVsSAnZWagAAHcMP/0OP6J13nqXd6Pyx+b10\nwbzVxjTdB093TU3jwUp+i76C1Iei+laLahbqmZCsCodSWQxFn0dQCYbly2+0\nKoMrMM7VQHQs7rgoBMqugg1qWSQHlP/J5+am6vcIUEbJGJCWa7HztAawCysn\nl0/MLmhA7/xkxyBicOxcbycLY4TQxXfGwjkZaM9AgxDTRgtcjrEZiYqjkCh7\nwSAGkcBJ4KjYBM8GKEEfxiv0gJSjBefvaIijrFdtm+jaXxwQn3jGWtSFpYr8\n+WB7xLE+muD8SSRhf51HlGj2PcHZSIcZm2w9EEWDT0K5T+zK/HXnZuWbeiQV\nQWASqOkxSPMyZdCywGaAK+Mr5OzedP3s5bPEoeDtwr2Wvlsjggb0gkmhUFg9\n3CvgaOsR4Y+YzOP8rYtPOsaSK130fHbG0rUx5PQftJLFf5TSxEQ4Vzb1CUCT\nrqljTZQB1k7J7EffVS/dEoSqKVLLauAc0c566k2ka/TVrDJ3BLuQTw1uDKbw\n9F85bp1PFmAIr+MGSk+4YJYLY4yNtLb6e/XARVJkm6TRf62aCRdxPrQlSBQn\n88S8UQmUpqZcZ9n0ebaKg8WH4j5houoMLzPAdzywH/vGDFkax0NsdLT0lxsg\nzvxjKK/rxOgvYgHeLTZRMU0oXYTHgKR1reJpH1VwCljQisu0AHSVQFrR3H/d\n07t7\r\n=8N7C\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d9f4420da446050561084fce698a543b0dc6b543","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.60354c577.0","@material/base":"5.0.0-canary.60354c577.0","@material/shape":"5.0.0-canary.60354c577.0","@material/theme":"5.0.0-canary.60354c577.0","@material/ripple":"5.0.0-canary.60354c577.0","@material/animation":"5.0.0-canary.60354c577.0","@material/elevation":"5.0.0-canary.60354c577.0","@material/typography":"5.0.0-canary.60354c577.0","@material/icon-button":"5.0.0-canary.60354c577.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.60354c577.0_1579042007683_0.47174243140814487","host":"s3://npm-registry-packages"}},"5.0.0-canary.d07c78daa.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.d07c78daa.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.d07c78daa.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f7662b617310a51589bb0aa2d80d2f7e0a09921c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.d07c78daa.0.tgz","fileCount":42,"integrity":"sha512-ggtvl0HdEEzVqdgGDtlSMNPELcstXkJ0wxoWBeufPD5LpaYdw1ZD4oM3p+6pzm1+cbA8Lvvn4wQx8eJvohgFrQ==","signatures":[{"sig":"MEYCIQDMct1rwKVjGoHq6wW84NeOc3I88O+IzJknEHvEol68sQIhANXIF5E0rAzf3mtnS58pXQoCz0vXbSQ2sqSGEneEZZN+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHlFACRA9TVsSAnZWagAApDAP/jwGWs7Fh1LYDZBhp5es\nrntjon3Gn4Xz9b8Lg6SBA95tLuzD559577HAh771wkzLLkX+gNkuFuj9e9mh\nvfaREepazNGc+f2pxmSPCYvPZ1YegFtX3mxLW4trMTvja54P9z3rVZBNdg9r\nDOf970q5BupPHf7ijF6+zBpbzpWVOIgE+25iulb04HAilEyTAL/vQLcOxUVd\nJefP3CHpaf44ZLAmHVJRp6UP9/eobTySjZ4eS4qmHRbux7kKCh1Gf9isfiM4\nR18VlZDmbERtH8+0fVORO3FG2uAnPZb2nUmHSVJU1axlBsH9uxv+qmf7vCsY\n0lQXK+pDnwaguFHx3wcXD7UA6JKPxrwm01e53G4KeHnK2JGinCjbhYcn7V+M\nCvkuthJZ6eQrQv4K/iys60UAvqSxCziYAEPsdKA6mtpOo/G7oSFwtCEJIDrM\nFormqUv+Goz2/Lv/VjcD5/u1W8n8Eiyl4nOPfw2vb6M7mGKzmaDGIn1pJYen\nVB7BgY7Cjax0XNNqDgaK2G7b5MK9QPTnPrns9Wkyfq0FDPOHP8UrflRp+HlE\naRzb1M3bbHaNInRw/xFgkop6AjqDvBR5w0At7UPuCnl6V1yhwAfh6U1e56dk\nZecbCWtDL2fDnR52O3K3j3azTPxXRHgDCt5ZKhlt5AWQqI/7Enoy2YmMphEZ\nZIwA\r\n=j0a3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3657a12b1a5b9b1742b2749f6991e06a32416314","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.d07c78daa.0","@material/base":"5.0.0-canary.d07c78daa.0","@material/shape":"5.0.0-canary.d07c78daa.0","@material/theme":"5.0.0-canary.d07c78daa.0","@material/ripple":"5.0.0-canary.d07c78daa.0","@material/animation":"5.0.0-canary.d07c78daa.0","@material/elevation":"5.0.0-canary.d07c78daa.0","@material/typography":"5.0.0-canary.d07c78daa.0","@material/icon-button":"5.0.0-canary.d07c78daa.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.d07c78daa.0_1579045184371_0.17669286570028775","host":"s3://npm-registry-packages"}},"5.0.0-canary.8ddd5c6dc.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.8ddd5c6dc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.8ddd5c6dc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6a58ab809b3190146f0504c69aac346ec06e1455","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.8ddd5c6dc.0.tgz","fileCount":42,"integrity":"sha512-4N6FzKa8WoGWDTDaPDaT/S+PM3H7/mwC4Y7rx7bm34bK1fzp/kLP4iteeU9SKkV+P01wcXLfZm+/chqMKJkelQ==","signatures":[{"sig":"MEQCIBDTT4pFvOTMc2CO/ouUd6pTFcrJuDPRNZB+hgPCJRHkAiBYR3o1MBSBmfUH3f+Wv7d5mfI3eL4vO+vQ45VJtJFs9Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHm5XCRA9TVsSAnZWagAAqagP/1DTncywW/LKDI/wpv3q\n8aX5XxvBxl4GuXLflceC03LZQ+SO/4dndBUr08YsHro50vmgQHPT252pDjWf\noSQNN7EvFg3kjYs9aOyWevtYLS7IExylcus4txgzLVbSpQDgYy9YCAz1XAgy\nvlOCXXAMQV7WD5NHZwTWINwNJHknqnY+9tPw/ogVI0kFe8137IkHwzTShJX7\ndzDnqsXaXBYy09ZLr5AzrLf7oMbSX4fp4hxaNyEs0yMvO6K+p7wlLSROboY5\neZDgQjOePAWcYmLCJ6g93ZiHR+oW1gOSxL98ioHF5oRalG+qMI9BJO/M6dgs\ne0PbAkCV3SLcZrhI/QH+tH9zdXAhlsQHwHxV0z+NT6xR7G+Y/xb7uK3Stcnf\nYwbADzeSH3QeHlcR3e4taP4P+KwLwvMcvQF0Z+8zsxpQB+Ru78nps74KgKIa\nwMSWlkXX0kUfM8dxg0iYjqj3Vo92a6CH4V+9ALux+w/C/libw1+ivcaGuBI+\n/mKUBoKNv4WrbbkONLI3ZLhvIpUJweugIe/xZlIArVSi5sRxc6nDym1P+Ass\n4c4L6GmFuxXsVhToYV4CkSYD7hyRw8WaYPWO1Iwjjk0vBPl8tBCyTAjjDPZz\nsBz2A920wTp6o4r7tHAHBdgACsS9FQbPsN9XZGTSXrgAo7gD+tyrun27mTD2\n6Gcz\r\n=TIND\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"939fade350708e559f107b53d2ab9d27d6f84f1d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.8ddd5c6dc.0","@material/base":"5.0.0-canary.8ddd5c6dc.0","@material/shape":"5.0.0-canary.8ddd5c6dc.0","@material/theme":"5.0.0-canary.8ddd5c6dc.0","@material/ripple":"5.0.0-canary.8ddd5c6dc.0","@material/animation":"5.0.0-canary.8ddd5c6dc.0","@material/elevation":"5.0.0-canary.8ddd5c6dc.0","@material/typography":"5.0.0-canary.8ddd5c6dc.0","@material/icon-button":"5.0.0-canary.8ddd5c6dc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.8ddd5c6dc.0_1579052631008_0.2881748846341161","host":"s3://npm-registry-packages"}},"5.0.0-canary.a9511d870.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.a9511d870.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.a9511d870.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2e3e9c39af0cca3aace35afea6abfbb95b9cd1bb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.a9511d870.0.tgz","fileCount":42,"integrity":"sha512-r/K4uzvv+NWYvvnnO9LokcEtb5r6otKK//gI3/bAc5KMy72uZcdh6//Zhd49XSRZ0TItyO0AkXVXJx3rhrUXKw==","signatures":[{"sig":"MEUCIFu3EG0vFWZFur1DOnoXc0zLGPWYQEjsjJTiSQqtZMPCAiEA0UbhisbLs9xhO+EeHTyp+FG7QyBPBRhi4RQNRAdJdE8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeH2PJCRA9TVsSAnZWagAANJ8P/RFfi1MhMC+b9inKZgGu\n+BpX0d9DoLffSHKP3oYsoEhDi1gFOQLfMzT1SbG3BW1pIsUFEXVpT147aafQ\nLSENPw+r6XbQhuh46bCXm+4z8YOmO+AoMfl/tgzlba2g+GB9PeYKXNyIOfBC\n/vG+ELwyQE1vadU6ogUTQ9jIJNoVnFk99pUX5J551BOJHnh8AJO0gde0uPRG\nb11RlKYuTUJSw1talmEu8scKwLM/d9VOHrAXunbayh4HgCAe4r1wbz4FlyYS\no8p/kBAE3rnsCLZa3+JWYP2bPCbkS6+Hd0X92fkJ7vRGS2ryD115RH6nB3nM\nZibDsRRHcMne0Om2A39i+b9DKQ1Nh84LRwv+ZWUQgp4HctpDMeVwDJcSJ74t\nx3Qp3hVB7DxWt+1nCQ2U1szZfV6f4fosaFt8x5jrH3ktzvCnVvJ+yBUhiUau\nmkoLH8jaJFlJtZdKuRXgLQ45jIvKVQY6lzJFMhCyjvnxqZpH56LnV378XKhA\nfLkphvdunX42qoJhDeoBEvf7Oi5qWlbu0ssgObp6fE08ZzLkr6CfjHqTTZMc\nZRR1gu7/HJ7KgaYVxf8MOMkPfCBsx8rzDvuIxU3ZliCuTyqFKSsH83dBDPLh\nBsUL3+KMQm0w/OhtKawt/d93gBEyH8u4u68+yJywxTbQixAtWxJ8sfd2N1/m\n8Nd0\r\n=sYUk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"69b4f620220b7e580f5273bb82be01e5990b894a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.a9511d870.0","@material/base":"5.0.0-canary.a9511d870.0","@material/shape":"5.0.0-canary.a9511d870.0","@material/theme":"5.0.0-canary.a9511d870.0","@material/ripple":"5.0.0-canary.a9511d870.0","@material/animation":"5.0.0-canary.a9511d870.0","@material/elevation":"5.0.0-canary.a9511d870.0","@material/typography":"5.0.0-canary.a9511d870.0","@material/icon-button":"5.0.0-canary.a9511d870.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.a9511d870.0_1579115464873_0.8322181161367901","host":"s3://npm-registry-packages"}},"5.0.0-canary.7c8583c4c.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.7c8583c4c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.7c8583c4c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b1d056f61dc67bde890f42af5177546749afd9ee","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.7c8583c4c.0.tgz","fileCount":42,"integrity":"sha512-G6zb9a3T0PsKmXPeGPH5ZRnm04EzhztCIrArZfynJd0zFBHK3CpMqihSEl+ujsUHCA364UELkr53DYrhJYr0Og==","signatures":[{"sig":"MEUCIB6ay/qiL25wPZusiCIfUc5oen5FjKmNSF1pQe857LAJAiEAvcEbL5IJJciDAPp4sfJe1KhIZpQSsiCroANHcv+bFHk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeH5bDCRA9TVsSAnZWagAAjtwP/jFnQu6Tl6Ns56mgWHEA\nznMI+lm+D/49/sCS9Ix02SI55dBr3Yuj0TJGzpos0+KHt6HkQR6SAbppi4r7\nUopWLHsGsRQOtkju9agwrCqrrnGvdCifJbflzgKooWA5WL5RQtA/+4VslvTT\ns2fIkUMkpML18imffL42xfFpi9UeXD96emR2o4hKOveXfAUbgqPxksBBnLXB\ngBBrHuBiSnmdZBBv7D/WGjR85WR7PGAixGGZCWElDygAjZEWI/TY5tJA0wTy\nnYHVsZ1LyLPUAE27oBG3MMKaUqZqoT2/Yttlcg5rB1P5TaR5N9Qe9yvlpktG\nsRVuQZpnfyNrE5YmdG8mOzTu+J6nu1H2T9Z4atbiORuZArGQIvbpqP0UcCGh\ntCxpEXfi0jXJTueXKXK546UmkhSMcsMPxeV9wBXaXB9roczlYBs4L+NoOHDq\n+KnwsXxyGlwcRHUKGS4omQfZimb1W3wDfi1juN0yRhkWAMU+ThlttT3f/a6d\nUCRpN7nLp/YybeStJ1F6xvPKj42iyKkiYXixCodhuUs5gDw/hj9i8r0fT/eb\n6VYXJ2xvYP0sKbpMXfoa9eh7hPEHnaF5wIMY3puY4AKIzIFwLmdDpYugYy+C\nL6KmU3c+yBYAM/dikfs6Y+4y1Cnfyx63z7EXCG9psKq20YfQZkAtu0MKryCB\nbQQM\r\n=1Vad\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d89f2d9150d02c17271eeeb692f29f456fed4c1e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.7c8583c4c.0","@material/base":"5.0.0-canary.7c8583c4c.0","@material/shape":"5.0.0-canary.7c8583c4c.0","@material/theme":"5.0.0-canary.7c8583c4c.0","@material/ripple":"5.0.0-canary.7c8583c4c.0","@material/animation":"5.0.0-canary.7c8583c4c.0","@material/elevation":"5.0.0-canary.7c8583c4c.0","@material/typography":"5.0.0-canary.7c8583c4c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.7c8583c4c.0_1579128515310_0.5262011578038988","host":"s3://npm-registry-packages"}},"5.0.0-canary.5d4b82bac.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.5d4b82bac.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.5d4b82bac.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5885635de53940861e94fdcfbf40a7828558669a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.5d4b82bac.0.tgz","fileCount":42,"integrity":"sha512-2lMSv17hKIMy7ELYpDkmD52YUKJR+Q1TK5wammRfFKubx0ZSYzB0f0njJ1eIpMApsleSZvAnYwXm2Vxhu0OQ9g==","signatures":[{"sig":"MEYCIQD4WyZKI+Y3tKVYuQoIL1w6qmpPnN2uUCCqVteIe0ADTQIhAJZ4nIK82bJQWwr+4rrjnkrL7wORyAif8+npvI8wRmmv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeH5baCRA9TVsSAnZWagAA29UP/3Q7OhY+II/b6/k4V5/i\ngHOa2a8BqNkeHlD7KDHy4za92To4rjjG7RggRJ/IXZKl1QejAr1dnj2Dmgg/\n30rn6T7coQHPv7ctSofMSmU5nl9AhXPZiflIVuwVdZd7PU8FAYroxkcFYKf/\nM5g63nrQSxr47r48kVkgG0+v6yI9qb/KtA0h7kCHBjb1ns4WXkKJOWunoO13\nnquXZMWV6kSc7JzDNnAXRP7xVRUfRBxFqfOfQHzIqdBb3k2jzr/vbdq852hN\nJS4+Bxt3PZbuZ8hxKlNaeQGsu5mH0TZuwudZIEa7GcSrTnsmLfp3t0ybbVkD\nBPnihjyGyc+RABPZsUVwuyogs18RvPIN/qiKZgaXJAPTpkpNWHTsoyI5pC6q\no7f4pp93uw9m9kFsTR5uZAn89yaDDpmEb6+H1F4S0U9aYrbTL8vr9CJ2hyuP\n+exwJ7/dqwgXe8jTkX74UVmaMBdyvTvYVeS1YePNT65bzPJRCgI9levFLxfc\n0gQNDjWjQgjYZ/N3hCMJtuWVtlnfnW+YZEWCDrNRz10cwAugqyueu3kH8Q8w\nWnFLsxT78izQry/U7L2vNnIswI5cmyuFEexkJxhwItOKmUbJ8BILMNZGzJuA\n/QuEOuMCRKw2j8yeyg27QqpHYnsneleaWHYX326n25NpIcAt8x755rOlLYvr\na3XR\r\n=EMMC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e679f52745cb7c74219ab22354c6da39a642ecfb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.5d4b82bac.0","@material/base":"5.0.0-canary.5d4b82bac.0","@material/shape":"5.0.0-canary.5d4b82bac.0","@material/theme":"5.0.0-canary.5d4b82bac.0","@material/ripple":"5.0.0-canary.5d4b82bac.0","@material/animation":"5.0.0-canary.5d4b82bac.0","@material/elevation":"5.0.0-canary.5d4b82bac.0","@material/typography":"5.0.0-canary.5d4b82bac.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.5d4b82bac.0_1579128537761_0.7658150130674695","host":"s3://npm-registry-packages"}},"5.0.0-canary.57d0186e4.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.57d0186e4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.57d0186e4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"69887168825d1c6cee82d26fd1bc3f7f1e74de3a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.57d0186e4.0.tgz","fileCount":42,"integrity":"sha512-PKUAkIvWe3vDJUhSILMx7aAoHEvJ6VQKG9qGkwsM5HtddJPL7fLf52vsE4RGzq74eBd0MgHBBpkLd4XI50k5Dw==","signatures":[{"sig":"MEUCIQDLMyFf5CjkZiHJ+wBhrpWcmejIoV5Hpv4vnhx2dhDMAgIgQm+f5rGfOg27i/iLJxUvkJ3pLjVLT2KWH1odlxQDb2s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIKjWCRA9TVsSAnZWagAAaTIP/RkNz9on23y8khiFU4v/\nMmDE11g4u4AdyIwfJL2x1y96r4ITqtOkJuiwr0f3Zik5xreWxi3vafZ2BJ05\nmQI/m9y1z7bilqreVIdqio+jwy++2J6TH+oSHjXLHpbSVsMMn3x45IKh4moA\n0VLEbVy7fKO6TN+Yuq53FEbE69I41vocGa9tCNYJIxNJqND8Iz9b4k0FP7YE\n6Oqi9OAEqI8G+ApS6ioUg8d+NFw1SZ0drxVuQu//U7d/PFYgnTmzGDRLQbgC\nEIV+Xz+DAFHppaB1oqRnGKmo93viFpgEjLnJZhjTO3ta7fRtk8MlnVHCH0ov\n9fruoZwO6M2sDEqP6/Y+EYDpWdkpLBz3DUYowZmpyTigUfHCGpRVi8gJO2It\nLM69KIrKGnPtaPPqTdR6Z9+1FdCWeoP+1qZ15+TKE1rYvGd0n6LDfPB+CQy3\nIOWfKy83B4Tt1HHwbHs2ZXllA61s+RQR+9Cka+QB4FVcn8NYzoGU8rzSzqc3\nSiM941bBbQHc/LdPei6xNEI3CaJwkAlUUDHnXlodFhuutO2urxRXWUwxMxBP\n5SwrIFlJteUBxsCSI+3fIXpNzZAaSwNgGWQ9kdoqomouPoaQRyyPJVIuv/kD\nRaOJtRfv9YF2Fo7X1FUSwOROCEuwIOriAnT5MrNRBsJ+zSB5dvvadd5+50aR\nXP4d\r\n=8PM2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d0058bff117ed84df93c0a71b3aa8c8d6e34cb6d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.57d0186e4.0","@material/base":"5.0.0-canary.57d0186e4.0","@material/shape":"5.0.0-canary.57d0186e4.0","@material/theme":"5.0.0-canary.57d0186e4.0","@material/ripple":"5.0.0-canary.57d0186e4.0","@material/animation":"5.0.0-canary.57d0186e4.0","@material/elevation":"5.0.0-canary.57d0186e4.0","@material/typography":"5.0.0-canary.57d0186e4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.57d0186e4.0_1579198678179_0.12009608768011049","host":"s3://npm-registry-packages"}},"5.0.0-canary.071a6ab70.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.071a6ab70.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.071a6ab70.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f8e57014df7c09a6bcf669f3364e6ed2e2efc133","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.071a6ab70.0.tgz","fileCount":42,"integrity":"sha512-CBaZmeASuSoz+2T3QKZbdvpS2td0GtshlBq6P66rvDQNHX2yTed/dujm8eGZ95NP4OQ2I1ZGdPLIURkFpl+niA==","signatures":[{"sig":"MEUCIAVpnij2bs17Tqv91v7dgN9ZUEKnuocqM3DJ0sybYPFKAiEA8Ud4lMx3wsPBV6qGVf6TpIqn9eMeYNQXuT85gNX5Eus=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIKpgCRA9TVsSAnZWagAA1cMQAJakcODtyoxC4xPU2mJJ\nLafCuotUJgmcO3R+KRe/MOupQM5Re7bQhxP0htlcv/E7tPOqdM3OxfY4EC9B\nklvMkubZFXtvvSS+T04q87wnjB5brULpgrQtNEl2JZfK+XQVWQmzGBgbqWDQ\nskXLP8O5JNoOQF8L9E/lnIwIX/ksfOb/gCfcqP/2XwDIZUgcRHClGlRAu0HU\neLY9WJhimhjuiE6XEPJlSQcsweSefLV35hzzElJQgYcheDMbrNdde69RoHv5\nxkShSHif5LcoNStGPlZtAvYk+DVCkoVWoOYNmXJfQ9FcBhGGD8eSxVD7GcmY\n+Jfs/yZrb0u69MPcGQsrjTr0lUV5nU/glKUzR0kO2cBrhpGqb2oxB7ha3Yya\nnOon51XH648A95eDPvFWJCVrjFYRaCdXsKKV0AuLb8uwT3KH9SX+S4UTWE5Q\nEvEA1khv0zSb/wT8bfscSUw4F9dhNt+nNv9uUMPJERAGFbc+OeD2rg2nzf1w\n0/wuWLtxumZvcB3/NsIdVMbxg+v3QDSiYbh4XMfVdSk9N52BdiktFI/EmHS7\n3CHQu50P//m1/Oj7yS9uqTQiSVDqyuxlxLmxdza6xrZkmxcwGSj7CQ+KGSUY\n2DBaHSrXkqYFtOeixTPVBy+GsziATlgHdozLEN+EuCOW2gT1/zOV1BW0eTEC\nzt5o\r\n=QOTi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"40ae26c99d00481950066e41e33aac0545186659","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.071a6ab70.0","@material/base":"5.0.0-canary.071a6ab70.0","@material/shape":"5.0.0-canary.071a6ab70.0","@material/theme":"5.0.0-canary.071a6ab70.0","@material/ripple":"5.0.0-canary.071a6ab70.0","@material/animation":"5.0.0-canary.071a6ab70.0","@material/elevation":"5.0.0-canary.071a6ab70.0","@material/typography":"5.0.0-canary.071a6ab70.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.071a6ab70.0_1579199072501_0.2712817254319675","host":"s3://npm-registry-packages"}},"5.0.0-canary.22e0cb618.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.22e0cb618.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.22e0cb618.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5cdc7da95ac8d317a827085d57ff089882e9bb1c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.22e0cb618.0.tgz","fileCount":42,"integrity":"sha512-t15B1IlQMXDbq1Hk9VqiDdaVpWL0tw7+TEx4U6XykdKXhn3skposy4RoAfPLOZY88TY0KRIPAxeD1fw18dJm2Q==","signatures":[{"sig":"MEYCIQCFqIo0QcdWMfSRGrieh0bbgKEEP5TN162hrufffFFiYQIhAPtoy+1F+TajJyVcVA5ook6M0gt31bEOqL8ghpKY2N1P","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIK/DCRA9TVsSAnZWagAAe8YQAJDR4vuHAhARo84AwE8B\nHYGa0ztHuZNjBEX571Zc0aaGUxj4J9zFI8hBBo2akZu1jihyxs9LRSZH85xG\nu9DgXJjiN3mAr4X+HuJArVb4gOzUvaSkT0Pv7I7qzeMaxjjtBozWX+CPDsS/\n+9e1ICxeDx4u4daEkYwV1JNS//4bSPw5EQD6RjlYfusQpcfSDrAaFXcAwRXM\nHUlfFqRIaiCNUi6AbYix8RfjE2AWfp9uX+nViPL30nE1Ken751sU7LzYyin6\nfsSvl8LOKsMfMeyXNofsgAyz/PtQl0VZa+LRsPgqwfgy5DkFKcCY33VVFz/W\nw0gpT46408WkKVMMUpqtNBOWARp6M/8tQwH7zwWnlhImS90hMwyNHcJOYX6C\nweKyu0xTene/ujdCBqVD0Nv4DNy1DcZaIJmq5TmUnA3l9R7nzwhlNzA+aGno\nvLTnFh93qtCT3TPadlVNDUd2M15svNm61JKYgRItH1uyLuf87qfFueWigVF3\nAl/4Ykf9WbfDaDwFl2LHe3gLBS3EDh/37OUQio+X5vvbsGh4NnXFNpXG+Udt\nYvg+0wHpDH/ISrOs0hxZ1nuC3Crt6gWXDCwkk+DnqLmmNFgfFT3be1pOqHdE\nqlmXd6VISVV1jkVWAI8/BOiiY+8B20OJI+EHGe1QGRlNDAKbaaKyTPCWimXG\n2nGw\r\n=qgou\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a2ebae5c07da66b94270b07b137673cf19d6d344","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.22e0cb618.0","@material/base":"5.0.0-canary.22e0cb618.0","@material/shape":"5.0.0-canary.22e0cb618.0","@material/theme":"5.0.0-canary.22e0cb618.0","@material/ripple":"5.0.0-canary.22e0cb618.0","@material/animation":"5.0.0-canary.22e0cb618.0","@material/elevation":"5.0.0-canary.22e0cb618.0","@material/typography":"5.0.0-canary.22e0cb618.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.22e0cb618.0_1579200451361_0.3408283412470501","host":"s3://npm-registry-packages"}},"5.0.0-canary.f16f15b8f.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.f16f15b8f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.f16f15b8f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7012de47ddf84b8e09a5ce529e611aa28ee4ad57","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.f16f15b8f.0.tgz","fileCount":42,"integrity":"sha512-NkFSc/OF1/FHXkGER6PT4P9bi2avLkiP8Yoqdz7vpqHcr029xqPP+upGHmgxqBncSInce6jBj+ya+a5aFWakfA==","signatures":[{"sig":"MEQCIF69+QdnBj23ccucHWmorrfOXIxPzvwCwzRSx+xvr3HEAiBG9u3OATSkoJcXoSbzFUx6rMMPlR2kY3YPfS60O2sT7g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIPrICRA9TVsSAnZWagAAwhUP/1gQafQSsuJWMwk9OyHw\nOmRC/4en3Aczo8gJ04G3afT9r1zE3AsuaU08TakJpep3uCAfR9d9hGF3si+0\nuCwc9laAoXKv2v0Yo9rfBdnvaOHzZK8mWGYXwsr9t7kThaOw/3fySVLmfBnI\n94c2ZtQXLqloc1A/ZVNC4cxD+FRFQ6R0FJgOm8QuY7fON3pjd7125s8/ShjF\nPVSymE63AbUk25B0G32mVV6GnFJAMa4eW3e1xiinBDPc8+NtNr0/jxisclnc\nx5ZmGDM1MkogLDvy9Vi+whU8kYiMOAFpPI7CEPCcuuhYlYeVg36wY81dzA/i\ni+7be7E1+33n0zGX7uDwgTW5zGFpZ9OEMwaa5RIpSZJJtdG/DCGW0/vSf27Z\n1LtMCruAxihBrJKhOAbddYCOY77WZh0HTAFbIFNSuTxof+EwUGa/UnZ5MKNG\n7SPYSIfhHcgJdPsaNh+/nzJ0z50/WT3fti5DqxYNypIQZ1+lNNDiBDCHR/Vp\nVLqtSOeeqs8E1++4JVzLlrxH1fzgwfD0nFsvvqgZYPQGjTTgnW/s9Svn4lyH\nrmcgwDc+LuCIJGdAu50jzOBWfb1pynEHKWszd0dxtLlgKgAL6FtOMzAwIVXQ\n88PrXI7FqjoWXNEz9m+y0kN43dLCgeGqnYbXInu1L7w2fjFMlUixaEjAJ9aq\nn/lj\r\n=DHjA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"edeb2cce6b325b416aeba9bc6f4598eb518f8b24","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.f16f15b8f.0","@material/base":"5.0.0-canary.f16f15b8f.0","@material/shape":"5.0.0-canary.f16f15b8f.0","@material/theme":"5.0.0-canary.f16f15b8f.0","@material/ripple":"5.0.0-canary.f16f15b8f.0","@material/animation":"5.0.0-canary.f16f15b8f.0","@material/elevation":"5.0.0-canary.f16f15b8f.0","@material/typography":"5.0.0-canary.f16f15b8f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.f16f15b8f.0_1579219655791_0.75874631197889","host":"s3://npm-registry-packages"}},"5.0.0-canary.aa8e43e9a.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.aa8e43e9a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.aa8e43e9a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"164f25322797c97fef67311786bd1d624a054cb0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.aa8e43e9a.0.tgz","fileCount":42,"integrity":"sha512-YJ+Srzixxhm3cwXFOgf7KdmkQSosGd+UeMsyTp5gv2sNjDmuzzyqs6igJ1WELCKNBBYIke21mjDd8ZRRbSKKuA==","signatures":[{"sig":"MEUCIFThZGMjzaSCrd62ZqiPjAhkaYkauWw2cNPAzBE2ms3yAiEAq+lEYy8o9VVZWQz0PFovBDs1y1BSLbNuJhkoe0isOU8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIQG6CRA9TVsSAnZWagAAS8cQAKJ6opR2K927Fm567gz7\nUJWXyfBwxkfhQgaNfEu0AdbLzO2C4MrlBvHqx5B/pWoH6HpUfF13mfPkEvJC\n7M2KUWhjgPUxcqtbssQkkKABgx8jZfcFbzaGaFb3e6UHIrtakhGHpi2Nog5N\nRrfcOeufQUthB1tJWoMTmCZSsil0ftjKC16VQCSOHtfejoRyWB1xJxzZWMJi\nrTnhyUdbDtVM6sS/jrurrwrFu084EJR3HYQSRP1WsQQMb+MbJ1tCK2AAyVVh\nhQNZRrYeNv90ef/R3vnuevXG/i6rgVYCYFcmI1LOgJitVU3/Wy4xMuGZ3Sz7\npHlp+vd6W9Paq0gMJP9jKYyPFvuNIw71peUjBaFiL4zgAJUqi5IPuU+qmH1R\nOMw7havzbAwENso1r7cJ3Wdqu1rWLwGbrXS32yCp0gD0gNfPKXDJyTKfpd6X\nISyswhDi4ru/JordVh+HJE5eyOxzkC0NmmHBeDcZpYuEOFceQf1dmz4IKtUV\n3qsqETBoiZ0dN6A9vhlVLQki2qF3ztKTQQjh4/HbXW0yI0bHxFDdYN91zPKT\nxzKTTBIuEG63+hACUTiFYgsZcA2Qs9epcv0Arew8VyjvO9tjE/6U/0vUnSi3\nHB+ZrgKVm9SBhnNLrWv7IkhIuPtF4FHFA2ZvgKpLskfhFytKBG3R06+CcYnk\nTDix\r\n=hAWR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b95162346a28c58839b2d3e52201e1f8c5fb9789","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.aa8e43e9a.0","@material/base":"5.0.0-canary.aa8e43e9a.0","@material/shape":"5.0.0-canary.aa8e43e9a.0","@material/theme":"5.0.0-canary.aa8e43e9a.0","@material/ripple":"5.0.0-canary.aa8e43e9a.0","@material/animation":"5.0.0-canary.aa8e43e9a.0","@material/elevation":"5.0.0-canary.aa8e43e9a.0","@material/typography":"5.0.0-canary.aa8e43e9a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.aa8e43e9a.0_1579221433714_0.7584067173647091","host":"s3://npm-registry-packages"}},"5.0.0-canary.fe1f3ca07.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.fe1f3ca07.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.fe1f3ca07.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ee8b213923fbf3b565644fc064face85764c27cd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.fe1f3ca07.0.tgz","fileCount":42,"integrity":"sha512-aBcyfXW1wqi9DRNgMK9h/zH9c0ZWIA7wOYrpDcHs3Mr2RiGF/jSAGPH5Ip5Glo3VhTMCzfdRlvTL5ZSEnSlxtA==","signatures":[{"sig":"MEQCIHVbNv4H8dqsY8vfTRjWZs3zuABIm5Vgx1nZRKn3UoSXAiAqOueMM6dTM1b3/7k60IDEPNU6YPvRIJJBYx9KBTvwUg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIQdECRA9TVsSAnZWagAA800P/RHaoSb7aiYDh1sONgyO\nLt4/Iq5+WLlQlp92XPqDsAmF5bjXvhSEAGqiS9ddLNPpru6cr08ruCQhxuHy\nvo/0Xn6V5wq3H6isq8fbvQrb5AUuyC9raGB0vk2mXqbejSQmKfbL+MLtWcfX\nT89Uw+EFhpWtp/w7yZ9ufUD6edtNINlbDksMO52Bj2tG2fhxAAsa59QgPOnv\n1tAgLi4rLkKo+SvjCb8+G8ys4z2HESjpEcibHTppm3lJhDpSRVGmnI/W5t8R\nJeW/vemMWRNBtQejPSujypk3TS2nGUVW7cxUBBlQ7rn1SWX1Q1qhzX3L0OHp\nmDOnyBWddmVQEHERcKqrFnNj7eyh89oI0QEcQ56gQKZ/6pwjkaAnoErnYR5j\nX9ZZX0/PLlkkmn3pMllQ+kEhk8gqXq86Hp2sUv9ERTVUotq2kLrSDc4FeQH7\nnAq8LIN6fjbT5mNvlM7vbYjYNU+XIxnG4Z3ufepqoWKBa716IcziXSPoUeWw\nUC/MYDe680wErGuF+k6aolM+MBDCwqH6nEs1siFIJGVQPLAkZ+oLhyuNGRJa\nWbtSnPKR52Isop1RQnPWSYJWcrtowOed4LmiKSEmx3odYD0A4GfZq1GZwdfG\niEgO5OppFTCuvc96BG/CoNK78VSeG9isSN8pA2vy4t9XF6ZevXxmVm3easR6\ntRod\r\n=erft\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"55fb21a2166199c09c2ec1273c4d38c6c3eb8cb3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.fe1f3ca07.0","@material/base":"5.0.0-canary.fe1f3ca07.0","@material/shape":"5.0.0-canary.fe1f3ca07.0","@material/theme":"5.0.0-canary.fe1f3ca07.0","@material/ripple":"5.0.0-canary.fe1f3ca07.0","@material/animation":"5.0.0-canary.fe1f3ca07.0","@material/elevation":"5.0.0-canary.fe1f3ca07.0","@material/typography":"5.0.0-canary.fe1f3ca07.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.fe1f3ca07.0_1579222851660_0.9442777762631878","host":"s3://npm-registry-packages"}},"5.0.0-canary.d405af26b.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.d405af26b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.d405af26b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1ce4d92cba32b77b1f0ccefc9315053e8ecbf110","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.d405af26b.0.tgz","fileCount":42,"integrity":"sha512-iHncTdVtUB2eWw+7nCGbnvr8YXsuTvCBwupyzXncZFPxV/zo7nFueDSyHSpRfLg6xY7WtW1102MzS5qQTt/r9A==","signatures":[{"sig":"MEQCICevstofUZxhKsZBtdBVtprDR1LHnlCx+lznUzB6PKazAiB4JTayYi+hgTuWLcLRBcXeh+K5CCS2f/HFhKpZMI8fzA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIfpRCRA9TVsSAnZWagAA6HgP/iP13Q0aCD/+r+LnvFzu\nD3ZIif/ele4fVhakifG6NEb7pyzaWtTLTS2c4r3gcDnFhlb8WNy4OoZTyUh6\nTd2IgK2+EKR2U6F6iHxE9FP69PozkW/N604ymjS/XBvShkwts5DE6fZMHDNh\nnukmnMwICKrZG9Or/yN9JbUD3SYT5p3THF5cYYOLzYERdADmdei+bUdiHzIV\nRjj8S4pylCG9g6bBg8D4b+SEYCqatj4MkHY02SaVy491sslf0ypwW35h1v3G\nVV05XhBM7SQ+kzDtln1WYHIb7qEJfsB2ljMSIgBoniap6FTP8601I6QoO0uj\nXp+KcCg7fkSqj0A2t9APIHDoSz1qk+DLDcNgqdgCvkJ1llf3THRxrvcZ/Ll1\nkxlhjj+gZEK0FDvYOpLhf97MkpC23RrEG6iO8k5WR90PqakHayUUK/0sSURH\nPMvQHTWUkmU5eRn/2JAWFb5qhpDKKO4TKRaxTGD6DgVoMe0IUj8xyw5qtpQZ\nTJsENn69mhrWRoSovlEL4vl73EKFZUes8gXm+pOjry4CVSdmVgUbyGBJ70Yd\n67ZbbuOwbCo9r8EEQAVnKKlCjWlUwp8EKZUjqODG4DJyMFeLm+xCVc024MDP\n/A8LvkiKTYEfGM4TZDqM/HaNS37QxPkKEtWGAVZPaRz9IKJYk1SZofMqk0cJ\nSjpe\r\n=hlnr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0520800061215f99c3d58fbcb661327da2b8c126","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.d405af26b.0","@material/base":"5.0.0-canary.d405af26b.0","@material/shape":"5.0.0-canary.d405af26b.0","@material/theme":"5.0.0-canary.d405af26b.0","@material/ripple":"5.0.0-canary.d405af26b.0","@material/animation":"5.0.0-canary.d405af26b.0","@material/elevation":"5.0.0-canary.d405af26b.0","@material/typography":"5.0.0-canary.d405af26b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.d405af26b.0_1579285073149_0.898085404369132","host":"s3://npm-registry-packages"}},"5.0.0-canary.6e857aae2.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.6e857aae2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.6e857aae2.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4b548a5b2c7be3e443d184d9aa1942e78b12720b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.6e857aae2.0.tgz","fileCount":42,"integrity":"sha512-vNHcK9arPRLLmI6NJOrWE+of0rXGlTSqifL/JOvZ+x28mywvcEBiT/w3Fk5Cr42+X44OftjhDtn+ULsCnoiu6g==","signatures":[{"sig":"MEUCIQDaxBecPypkv5Ul0s9MFMonxhIzjtAh7fXFljLELytowwIgEeHDhR6Y/9yYG1bZB6nXU0Wa6fXdoKY1rt158JaKrHo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIfsbCRA9TVsSAnZWagAACdwQAIYC7qt3pKlommXpU5K3\nEEDs28bCtQfS3Cd4XwtOuzm7/C4bLwaXPxjAW+iqrhJLyzOlzCjrS7V2DEzs\n4Xkhvb+y6gnykwUg99quFvc6ALU4GR6Re9FdDzKcsRg/LccWty+xKSc+mlqj\n4DvHG3OuqwTMnahkJ4O9LJ4gQY1tXRnFbQ2uva+FQE5WQ44bwG/AL0zYVGCC\nkyj/IV2miz+U/GjvIOVq5nWk4NA1GBSCph081TPYvLfGQ4OKUOiIVgidpAJQ\nRkoJbR9Je2iuCXYD/iBBaFmPo8wsHosU42+In6lPS4rTX2aK/eK8zI7SeAhH\ncIUDAnZhCLTUepM4Kci7iHfDdPsq2o1Dznf6j7yIF8U4SDxGvvKeJFNbfPV0\nW7Dxr1XJZLYbJbpri8R2pjzG8kd8WKjxQVIB3Q6+Trgqz5YiVjymJP2Hngt9\niD86WYE6LGuI1JH7TUUcVg7vIUNHJymfeKFzxjQNPWi3MpN5hmPgdxPyPCGu\n6vwxRWq4aqCSuc1RfI0gPUdp0oU+YwfYP41abGGRt6TXsLt4ww157NhLNG4m\nHclWLWI49KOlLUQpJaN8KAg1nQyqjozsdZDtT5PLdUJ3lYH9HZ9HScE9XpZS\nOkaRATaIOQWq02QU1bX/TiUA8tG/15o6yM2EEz93ye38L5Om/chGTC8fGy4u\nzT+e\r\n=s63X\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2a53aa5d8048725819709e1279ce78762b8b6170","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.6e857aae2.0","@material/base":"5.0.0-canary.6e857aae2.0","@material/shape":"5.0.0-canary.6e857aae2.0","@material/theme":"5.0.0-canary.6e857aae2.0","@material/ripple":"5.0.0-canary.6e857aae2.0","@material/animation":"5.0.0-canary.6e857aae2.0","@material/elevation":"5.0.0-canary.6e857aae2.0","@material/typography":"5.0.0-canary.6e857aae2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.6e857aae2.0_1579285274871_0.08304355887622838","host":"s3://npm-registry-packages"}},"5.0.0-canary.e2e764f7c.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.e2e764f7c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.e2e764f7c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1c4aea1364da2f69ba84102f9d56a67ec61df0f8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.e2e764f7c.0.tgz","fileCount":42,"integrity":"sha512-TDpIyOMnX6gn4eDxnvGPIwtRfBQjtxLpYKBQqQ8reZKB2mkReZqMQzAZDDYiI8hXE4cwEehoG4qt3vvN08FWlg==","signatures":[{"sig":"MEQCIA28Y3RTcSFmucpSFo0PwPuOvjoDnd5Y3W8GPkyFRb2YAiAwXZDHOQJdU3QTnZLgJSEh7MBFx8WqQDigIf28agYPXA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIf6zCRA9TVsSAnZWagAAf1IP/1vesDHf7A3m6wVNZ7Qz\ncK6Izb07A42H833hNpO0CBd7Cz50I6R22E7h/e6aWGDJHHXnRPIqF1jeRcI+\nk8tz7nRn6U/Jf64v8THfCw4NKw2h5x+1wh7sTHKbX/UVSCvrq4jHJcHR2HMO\nxCKs+6G4FIXVd5iIyueLxmA6lyXHRJmshlv5bNHs8ZXO7cWDmarS8K9VSG9L\ndnJAmMCBf86CAcJYBWDXvtsM5Ljts9FFLb/X/xzxRy/O+DhnBCdExT3JDozr\nzqS8uhd4aP1RnHUc57L0pR1lAWmc6uGjqH9gIFIDrGwmuxF1HzhELwmh+MuL\nQgCb4zwgKGXehNWqp7OORF2wNBy/qaDqCVUaOYwE/Ijf8T4Xyq5oPBB68WJm\n1/jpOKKmNLWJVcbeWuT+hShGTUkRsICuCproppB6gS2uNG1hn9g8bbTpd4m0\nClLDvs2Axroqcw9D6A1tg0cIpMbR/wKI/VARXkCdaIRF7Zhd4FNND/ZWjIO8\n99TKwkqq6k1Lx2lgx3W5t9nKjwgVWwV7DWVoK6YsEc+CvIburqgwob4nIcOH\nAeDwv0tgKK3NUzcbwGdD0TN5bEsh05pQCKiy+2FyhWm+9Dzl8qEz4PGj5cok\nThrbq4IGQ+5mrtZrIHnVIpdEZKWesnMEdT860OQcWyHE+s2QGbidzKtM1vDj\nAusb\r\n=PP3r\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9dd6d44ba7288e1e0e80905a629b922c21b54e37","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.e2e764f7c.0","@material/base":"5.0.0-canary.e2e764f7c.0","@material/shape":"5.0.0-canary.e2e764f7c.0","@material/theme":"5.0.0-canary.e2e764f7c.0","@material/ripple":"5.0.0-canary.e2e764f7c.0","@material/animation":"5.0.0-canary.e2e764f7c.0","@material/elevation":"5.0.0-canary.e2e764f7c.0","@material/typography":"5.0.0-canary.e2e764f7c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.e2e764f7c.0_1579286195347_0.23176410193995145","host":"s3://npm-registry-packages"}},"5.0.0-canary.7ef986a87.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.7ef986a87.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.7ef986a87.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"db6cf570f80b80e8da6ec9c565fe07de2e49c574","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.7ef986a87.0.tgz","fileCount":42,"integrity":"sha512-IlGN7keC2ze25fnWIi+AOFZgIcUZ+BZOoL2y3jTaqptcz0opiYXIY8pXYurgPIGfYDRNulcpkzPBNrz80U1Ihw==","signatures":[{"sig":"MEUCIQDu7Pi7teJppTMKf2fE/JVH5MqdeYSiqYlLuSwlbIYgCAIgJdvqiANfV33xmuttVLZkmEOPyv9scmAFGUhEenArng4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIguHCRA9TVsSAnZWagAANloP+gNKsRQxXYvVyOkRET0a\nRctZHgaq/WDL9E8fTDSTxcvs+ORRS7Yj4xq9MoiaoNUn7A+AEfNe5JjHO1Lp\nw4JVxIzQf3aPu7VcQre7tSGDz3CV48pl22BTV+KnZrHeiQ7ih6SMA5A+uDlu\niHvGd1hTi4wLeDEdmvbyO14WdA+weKHBXEbeVet7prbytxDcGA517b8g/TM6\n8Ksg3d4dJqyjCXhOthf6Bz60Q2FHoNUSJPIFyxcmECBR0Sp2In4U2EpaIfxT\nem1F6+g5N9vzb4U1xvnwZXFcs79faauR6MPRXbY2AsndBrM11UhshanLo1xF\nhYCb4A/Lcm53LBTqR4g/beGDzc0gs6aAxBOHxjAjA4akMQXbIZ9LvxvYIgYP\nRoOecpPCFhQS4e5Q72nYItcoWP8SsftG3DAv1o4rofabrxKqjVccA2fIyd2/\n9VLGBVzf67C2y13/QnkUsvehQ1kRHKf1Vvfwc8+jIjJOTAXQttLoTUBYVpnE\n42WfJ0O7f59dP1o/23r3T3ljcaWQmYbJArKzAYHljYVcMkpQ5XOUxTlYXqPh\nkR2erVk3m30avRWhjqDqyDXO26s1OQvy7qsJnRzl90oJKAFUfpIXX0VCXKHI\noh+EC8Oi+RVq64eAVrG5qByewdgu7NEvIs4WdsEotjO9qcK7PiOMHID+pU5A\nvtw4\r\n=sBs0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d18e160fa2a4eddeeddf0a07020cc2cecff9b573","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.7ef986a87.0","@material/base":"5.0.0-canary.7ef986a87.0","@material/shape":"5.0.0-canary.7ef986a87.0","@material/theme":"5.0.0-canary.7ef986a87.0","@material/ripple":"5.0.0-canary.7ef986a87.0","@material/animation":"5.0.0-canary.7ef986a87.0","@material/elevation":"5.0.0-canary.7ef986a87.0","@material/typography":"5.0.0-canary.7ef986a87.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.7ef986a87.0_1579289479385_0.7077732041445306","host":"s3://npm-registry-packages"}},"5.0.0-canary.29402e2d4.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.29402e2d4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.29402e2d4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"954574f251d2a1b2dc6df1d372bfd8f969c7c060","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.29402e2d4.0.tgz","fileCount":42,"integrity":"sha512-ken+AEWNaa5D1MvCzd23oU6f6aL7RZncsfSPrGXJ3t/520CGivkfd31ryQP5gVKrri/eEIWkBSDzVQY/Yy68YA==","signatures":[{"sig":"MEYCIQC8zRGlgKWDYj+9CzCx+YA0wHXlnEiSgRYh/cuKs0wZ/QIhAKjmIrDfxAvEvuG8MACYqm1ysQ37b5HC4LIOoYpA5wia","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIhu7CRA9TVsSAnZWagAAGzsP/0YsibqWW2nU0ZphgPZ4\nWJ9yVA8pE0fDRMgNJL+20TkaZQ+cUNt7n1L12IXh5fz4GLwQOkAvONyzs0PD\nzzpNwapbVolKmQbxAM9J1RPiohIYV+v0uAZ1MMydYaNEvo8VL4WCvJFKuDOU\nuf3FF0ZPbIc403C37HhSdREjImzodkDTm+2FoabFv3FulLfRBRB2ph+ZXtrF\nke01pfHWvpTKwDxUrT7Em7cRc6PVJBgOl4yrB6inZHuPhgGtSMGTft6Bh8Te\nNZ8Tcr+bBO1Yqv1ZMbKFrgsvns+zSsjoygGK1jnUc8Te1/gUIV0kZHelpFCS\nsmkKSCGhmxKlpjg9HSAgGCREmPxNIZo40HWBk+51+j5g10r4fnF2lKoDpIKz\nn3oOZ5UkEplVcSGPo0uHK6EhnDBMjWSh2ndkYQFkBB3QkIquvNVAch4A22Tf\n0hbuNZjZtIcKDVrhwDwkJvAW1zo/kAClLB4t/qoZ4o7uUlcmJQ9hzDB90Iks\n2501VvxHliat17oJbUT1LEuF97hEGWxt/zv2HNTxszIGKrayrWcXZMrLyDAX\ns5565BGRm22AbPj1tqUUOKy6wdjU1Rh/d+Nub0j8PEZtVhHoN8WTGgIMoXrN\nH7Tn8hVzwe4NnqbqMGuDlGZ6kg4693nGW59U2pxvDlENu2fSlRbXk9Rd13F3\nSjOK\r\n=Qamz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6c6caf45e8fd759ec1c6409699c53250c8c41f25","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.29402e2d4.0","@material/base":"5.0.0-canary.29402e2d4.0","@material/shape":"5.0.0-canary.29402e2d4.0","@material/theme":"5.0.0-canary.29402e2d4.0","@material/ripple":"5.0.0-canary.29402e2d4.0","@material/animation":"5.0.0-canary.29402e2d4.0","@material/elevation":"5.0.0-canary.29402e2d4.0","@material/typography":"5.0.0-canary.29402e2d4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.29402e2d4.0_1579293626721_0.9743132372615395","host":"s3://npm-registry-packages"}},"5.0.0-canary.2b3ec563c.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.2b3ec563c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.2b3ec563c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"06e37df264782d2d5581ea8b02316059105b05dc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.2b3ec563c.0.tgz","fileCount":42,"integrity":"sha512-ZNq6n3kZ4fDJ/x7R48Ao4NbYj6Ecw1repJuZSZkDuuqUF0sekyvakiDVFN37pGLNyLDXyjBk/+mRPoLFq2144Q==","signatures":[{"sig":"MEQCIFosYPXiUwt99zuOsymtlEXM/LL7Uk/S8ciBXBtJm44qAiALMpY4/WefgsE25OF1VoQe6f/LWZg5kWy9IKlIPZ3Fdg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIj9ICRA9TVsSAnZWagAA8jQP/1/+i558TFdZ2z81Endd\nyznf8OFI2lhM1KZf+rqK9OdTuOfbfPmDJ/C6CPakT7KjeNzKB2MmZYR35dl0\nJLhqQEm9nRrCQBP1H+/vekY3+jI0uHVITURhnZlcolzRNZHGzBP3omV8bnuj\ncIgt++TdIYH7Aah3DUZEHxsuFnSPkqNJVMjzSZDtfYU2ag7HbyqFFIlYyyW5\nPxtkJzyUKHtx/ApWZK5OqkjxzIWkgbqJVWR6LL2bNFMfDlseCaL/n86r0rMb\n4QBSZ9zvmc0MNCxrWTWtXEm1zc7xk95lUhF+FlLNztxamn2Uqm8QE+wVW4go\ncsnFT5D3ph1v5xIdK7ystDk4uvB8+KamwNGxA1j2gzQkf+6qB6ZzX/KIZd0+\nsDFIQICle2syftcBCU4HOoPAvvCPOh4ljB8ERv8KEzQiReaEJD4V7OtCtgxX\n7DwvSuazz273nP9uybuLgO/1xx8cbpONa5AVaMpCqOCi/iomXux04JHOycDH\nxeIBltbr6w16SnkWB30cMLO/dRuYA7aGVgydCyiGKaiNSPxIMQJ8MyMhd0bL\nsG6yvCdFLuzWRUrnvzyRoAZio5wtAwmq1m0bV3vOSSBsiiAZkI69U+bFeRLH\n4/ew0hIFd9LAUPREqmB2n/vj4KBhb0zGx9+/T3OpR5IOdGgFTA4BxyVswUAC\nAL8R\r\n=HAyU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e0de6399e32c2553a23c71775c8e5b54fc527e5f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.2b3ec563c.0","@material/base":"5.0.0-canary.2b3ec563c.0","@material/shape":"5.0.0-canary.2b3ec563c.0","@material/theme":"5.0.0-canary.2b3ec563c.0","@material/ripple":"5.0.0-canary.2b3ec563c.0","@material/animation":"5.0.0-canary.2b3ec563c.0","@material/elevation":"5.0.0-canary.2b3ec563c.0","@material/typography":"5.0.0-canary.2b3ec563c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.2b3ec563c.0_1579302727920_0.5296171867675601","host":"s3://npm-registry-packages"}},"5.0.0-canary.e8a993677.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.e8a993677.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.e8a993677.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1f65a412ce066c32750bcc6fb79c3c890dde641e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.e8a993677.0.tgz","fileCount":42,"integrity":"sha512-phF2Ka1kmhy1ojHORTE8e6yg5eAzcG2Pn2MQgsfELJabcOOg/LqOCpp7mTHe9SLrc8oGV1ISGtHcXHup4FP5GQ==","signatures":[{"sig":"MEUCIEEDtgyIeNY9t6SUhlN29W9CD75hKhI3N6JvjW4onVzrAiEA7wwLKUbye/8oJRIQxeypDWcFD10sgVgX+QIABfrNLlI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeJyvUCRA9TVsSAnZWagAAsykP+QDigzh6iZPKCaennSIC\nrDVDfOaBsZ/s2uj7MvTUEDizCfp8ryyQpn6WMOuxwbTCN7zYkneNzjCUmVkn\nDZxfnpP9FDNVcoqTeNFFc6B3qSxOXQszdEdE4KXi+0yxwNUGX6+gfsOyBYbu\nk0XW4SAIO+7FpP4TjYzSYgiKOCbaWfYQGSDkp1UfZtSVsiMkLWqycFQojBRB\njn38pauEmBIgk292dQgTXwf90B+qaEiFpWAQrhF0V2B8Vob4L0PYslhi8sY/\ny9tIStywu9v1MnoBanr8QEE3KM8/oYqKgmETnnFuWc8E4wVFrRW1gdGNqnfI\n7FiPd1KxZSMEmLhFZ0XtP1d0D6IeWz4OVT/kffgi/Xcj2ByM3diCo98Jf4to\nM/nF/wujioLSP6mpNpoEX3mVabPENsDqr4GrdzC7U1Ttyu+bSnzvwNc90aYr\nVjs6IEB9jEAAITcvar6AEf+bu47GbLmj1UOlO2RjwxG/tSNW+OBLZ0JG7ma2\nu4NdVisGw/i0XuhwPpSjGGcuvSiwz4UxXcd0yzoBqncrkNPumpq8b/UQOH67\npuU8Dat6P3FQa0GeDNpxdu0Qf9elqdsI8hIx5/wzosuZHppbbc6PEtUF68F9\nC2S7s6fAd5WT5BMifxRB3a0LArAsouiYWqKdroWlnvQbUCgt6VuaJxuiIC3i\nZqfS\r\n=8tQ0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"653e52310f90e65950905e8fd8fca6f99e87ba63","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.e8a993677.0","@material/base":"5.0.0-canary.e8a993677.0","@material/shape":"5.0.0-canary.e8a993677.0","@material/theme":"5.0.0-canary.e8a993677.0","@material/ripple":"5.0.0-canary.e8a993677.0","@material/animation":"5.0.0-canary.e8a993677.0","@material/elevation":"5.0.0-canary.e8a993677.0","@material/typography":"5.0.0-canary.e8a993677.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.e8a993677.0_1579625428439_0.8143920149743982","host":"s3://npm-registry-packages"}},"5.0.0-canary.cd4903304.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.cd4903304.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.cd4903304.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4073af87fdc41e921370033f7405583bd564968f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.cd4903304.0.tgz","fileCount":42,"integrity":"sha512-jkscUthwDaWa8eKVsV/GpErN+SAiVL/Cq1XaI/A16KPLcbVi+CmDWSHcexTyOR7ozWr+Rm5Vavkd12GH9myKzA==","signatures":[{"sig":"MEUCIQDiY/8L2jvCApp0dPFov9wyqAjhqyJfiLKGFnc7if1exAIgTdwkN6qpO/ZfbEaTy40aU2eICJIDaTVCIT4t6to3Buk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeJ28sCRA9TVsSAnZWagAANZ8P/2cxkssvP5/l0geBTIxp\n9d3PWSFR0IH9a9GxkcQEeuWRitadDhe0h7GrklV7dsElAGq5FqTABnxNmQX7\nfZGIwJPvbt07WGYdtoRX6I+WhMmUnKnV9r07UTwAolXNuwoDxPVgVj8YjfKx\n4/9B8p0MuVYTyYwCnEwigRQ5jjloCy2LvDWV9n4JanEyVcQXCt9a/XehNwM1\nfh0Qx4D1ZMdCMGfagrPNmZANseo1mZAhlmcmrEMrBOE1O8QasPIwNwyv74Un\ndmf8+rySYPs5XAAj1SplOlbMJ/dondFhc10AdAaapndxfL+CTfEGFB2nPedu\nbM1TTmcv6RhVypkDeKce8s9KB9p0KZ50X0fgyiYpalR9/HYdXZTAyXGbp671\nfyDRf/L0MnFRHC0ODF9qu++zUxFSL85/v+TUDORez7qswTebGg27dQtD1VAc\n0des8ceIMdynt8Ooa0el+nskR01QWfg7bwQBWEBmw41f3uPhVIfJglXW4gt5\nhowrBCfzJHPT6dbEVlN0dxGjEWaY6zI+2j0D009om6VgxtuXAEIea56TceRI\nkcwDxTjMc1IgbOgvam2A/FX90w/38McBj6aKJPI2t1FGM1MI3Ag0jCMyzjp+\nSTwXgN53y3f4uuK2eDYhP/mRJjjL7d1qRErdcKDsBPzn1p8GXRjRQ28rFkJd\n1QX9\r\n=hweF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0a1f35ca90587cb380a06e8b6eb8650279b9953f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.cd4903304.0","@material/base":"5.0.0-canary.cd4903304.0","@material/shape":"5.0.0-canary.cd4903304.0","@material/theme":"5.0.0-canary.cd4903304.0","@material/ripple":"5.0.0-canary.cd4903304.0","@material/animation":"5.0.0-canary.cd4903304.0","@material/elevation":"5.0.0-canary.cd4903304.0","@material/typography":"5.0.0-canary.cd4903304.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.cd4903304.0_1579642668492_0.15487669695587636","host":"s3://npm-registry-packages"}},"5.0.0-canary.7e4b04b25.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.7e4b04b25.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.7e4b04b25.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"348668fd104ae6079aba7a1eb6b17fd7fc160e64","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.7e4b04b25.0.tgz","fileCount":42,"integrity":"sha512-lZd79rSrhLle9FZtvERKdGKIGNprF/0NA6skATuFnxkZU6Jr0uGHjSFc3x0MWzrvGGaDsqs8fyC7dy/1F7kDoA==","signatures":[{"sig":"MEQCIHhWp2SsG2eyFtGNOxaMdQYBRqr/P3LLJY0KJZr6O/SfAiAYc/HU23jLOxsE9avfBQdn16FqExcYn2XKTtHgD2OoeA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeJ39cCRA9TVsSAnZWagAAbWsP/2NyVyko+ctVoghm7L1P\nXzfm8i+g+iVpQm78QLFsvErVXTV80M5ilUa1IaJ8fI1uD/bCB124Q3A/z33G\nPmqz8Kzq901BaNatSGDuvCjdbvKynS+yws8g+N41AmUa17o60Nw+0rbJOQUT\n2VyK8T8132oWShODpDRKqlr0kQiIFeda8r639n0DDiSYI6iokdTRuWeo0XfO\n9roxViltI2w3yw3QUjp3rAmUDQv3QvAXzAnROPyzZjJeRVQl3ioupngikaRc\n9b9yLZKZk6qScLgvs7wyodA8ObXNBHHBMjPQS4byiTm53TQLMVJjYc+wWxvq\n7ybr5aMfACBZnF5Asm4vbEWyA0Nrka/uDbzXVKyMeWQvpQuyszMR2huvuE8N\nDoqK+ftOH7O+TTOb/ZE6j7cKkyCnf+mTk2vuucnAPWht62ZIK+b4YlqRVB+3\nPBSGuxxzgHJQRswiPiTxhcqXvvAukwZ0U9k0YbrTdwb65y/J+OPxmfb/Rysl\noZiIY8IrGVHeilRQm/0l3gLY119Gj7EMUPTPcB+9jfVVEBIAvoOsRYHlqKaX\nU3SjGNcjeZuyqrOIPnHSg9K47cyPdVGI4IfQdUfPPsVmtZauHUlHggQfAL76\nQUg0Dsp8Fz1szdxfm9/+cFM3bgUy1DauyJA4e8V0FBtYxEMrkDE79bs95nO2\nSMnI\r\n=+5LX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5ce556593315b470008c9bb156d98d7624231a5b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.7e4b04b25.0","@material/base":"5.0.0-canary.7e4b04b25.0","@material/shape":"5.0.0-canary.7e4b04b25.0","@material/theme":"5.0.0-canary.7e4b04b25.0","@material/ripple":"5.0.0-canary.7e4b04b25.0","@material/animation":"5.0.0-canary.7e4b04b25.0","@material/elevation":"5.0.0-canary.7e4b04b25.0","@material/typography":"5.0.0-canary.7e4b04b25.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.7e4b04b25.0_1579646811905_0.3662372151577855","host":"s3://npm-registry-packages"}},"5.0.0-canary.ebc296937.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.ebc296937.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.ebc296937.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"51acb8e409dd9f19fd18b978cc3c373ddf516ae6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.ebc296937.0.tgz","fileCount":42,"integrity":"sha512-uIbkdZ0iqRUP75SwgyQuDCUzRwaLIjr3Kd1b3ACdvVT7qAhJIBrMVImnSym5T3ITfxLZjSrSW4wJdsxdfff0Dw==","signatures":[{"sig":"MEQCIFumf6STAvlLOqQDzGXy580cmr4PbSJJVTpNs8rF6ktTAiB0U0hqrGLaatbdD6KprzhpYYQbSu3oQ62MknByi6xB1w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeJ40bCRA9TVsSAnZWagAABOEP/3nwP2UC6UCjIwfsENu6\ncNbi8X2+UXSJ1XaJGCERHE+k+Egq+vTVbSNqTxRTV5D9tLBsZcMCZwNNKPCY\nvnmom1wO3D7ICJDbNn5TyXkpIlMY7DEYscNRodE7PEH7zHXR3ttiZTbHSdrG\n2qBpdJZTdJKszpxaONXpUrqu09Qig+5z3Hvk3LWDTqaoZkJn+90PHaukCKNE\nMfgDEunm8Hk0erKb7yIJdOW3ul0Yz7olDK1AJtdd+08xDjRYWZpLN6RkTtMD\nBxv0mKMrsqRW7Ya49yz7td6ZwQSHww/p1c4Sx1XGcCTkKSPQ+weoMC+OgZru\nJWbUPXjTACeSHr/uiWo3eCHRd/Rcn0HXMggP89COf+RsWLQzRWj4C4je0Q92\n2DVkJdll1Bl60OmXu+KusLDnW1PCPp6RinZNodSGevH3sE8ftte/jhVAJ48r\nLK+iUu1Z3rfYFiC198axYK5fvYUHE7gq1/AK/gcspQ9LghZUMP23IOz+CTeT\nWnvlkgbK1bedRHEynQPVZ/yncoK9NRZ71ExoMUCQBuM+rViMS5adKe181gQd\nzvKiqarYnCsZGsq095WF1/gR8ge26djahWKbruJYZwGhpzVWY9O2FhjjClcu\n+8QyjD/A7uhOOc79KcJ+6KnURFgY/VOU/Iugi+ovOHrefFd+Qr2XONpMh9iC\no7GW\r\n=FK1f\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"56393bf41fd3e60f82b11c9571455b6e0b0f2025","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.ebc296937.0","@material/base":"5.0.0-canary.ebc296937.0","@material/shape":"5.0.0-canary.ebc296937.0","@material/theme":"5.0.0-canary.ebc296937.0","@material/ripple":"5.0.0-canary.ebc296937.0","@material/animation":"5.0.0-canary.ebc296937.0","@material/elevation":"5.0.0-canary.ebc296937.0","@material/typography":"5.0.0-canary.ebc296937.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.ebc296937.0_1579650330626_0.3987859952313131","host":"s3://npm-registry-packages"}},"5.0.0-canary.cf33f113d.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.cf33f113d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.cf33f113d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a59bc908d8edf68bfe881b4a14362a9386d1091e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.cf33f113d.0.tgz","fileCount":42,"integrity":"sha512-WRJIpyUd3d6xjIIuRSMRvMi/5OlzeOTrHMPQLpwcJ4kZ6YXGn+tHZybmyBNBWEG6ztoMAx+P27EXecILwzam+g==","signatures":[{"sig":"MEUCIQDzja5mLWR7iAzVfinMDAFhT0uZkbGewQZr6B3GBLXNLgIgFkOaxb0i8Zp4WOvKnA93GvDi6faWx9k4k5LwKeUkBns=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeJ6P8CRA9TVsSAnZWagAAeHIQAIhznpQtdCWgLiMWRrfI\nkBwAnZyCkri8kpOmdlLdyksLkULH+SIfzS10p/ol9itDgBbPgkayovxEirta\nVU7GAbMiU4UDqnNurrd0RMYHaR3x1Cjf/Er9UQIavlSSu6fWLGo7cLLvfDkI\n+XbUjr3e2HSwlWzgJLPxLSQ0O+Zn8N9KPx3B1SaJJgeXiTolK2wM1TqEHmB9\np4fXkYLpMlZ4T1exyCsE5ZJbk4lYWpqu3sQ/4wRORTIOzfCepa7c/yqZCtxn\nhDQeJgzgouCeRhRlBtSfjqQGw4r9iYssnMSYuTeuqiRgSrYGDyTBYYO4OjcW\n4JOV87wks+lA2arQQSnEEU8Q5UAfar03g5DYDazYQJuDAGoYLB0nct6mDaSS\nkTK/6rikVSRgev4xZ9pqDpG7oepzRBggwzOULwYyDG9XGeAbUVqYtCjlrZMt\ndbplqCnDgiXsXWZg6iXGsCY69v9eINAYQ53QsEdfZsgc8mS8XNgfL54RYTU0\n5oFHp80+v+MvkQGUMVmZeMWDY38ZhqQ6hBVdxfgoqH7Rj2iKYYLscS3e7n/g\nM95ayP5W9zQqdKhIq4m3GqlIEHMkx14KvAVd02cs9vqrUlNUuvdjxDqwvexk\nDYhStWBd972+r+z1iMLO5O108KL1GLSyQNMINk68PzYHDotgQFzhDEqn6THV\ncEl8\r\n=2EUS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"337736b1343fc4e03714756c4fc2ccfdfe1e5537","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.cf33f113d.0","@material/base":"5.0.0-canary.cf33f113d.0","@material/shape":"5.0.0-canary.cf33f113d.0","@material/theme":"5.0.0-canary.cf33f113d.0","@material/ripple":"5.0.0-canary.cf33f113d.0","@material/animation":"5.0.0-canary.cf33f113d.0","@material/elevation":"5.0.0-canary.cf33f113d.0","@material/typography":"5.0.0-canary.cf33f113d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.cf33f113d.0_1579656188392_0.9499310774894278","host":"s3://npm-registry-packages"}},"5.0.0-canary.e1d5f1be5.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.e1d5f1be5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.e1d5f1be5.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3eeadcb25dc900fe47d16d3aa420cf07fb1b1c24","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.e1d5f1be5.0.tgz","fileCount":42,"integrity":"sha512-o5aFzblzN1713M/XYRENzG67ZpYZEyiyEXS3zIvEweCSpLAe3y8oU9A9JLo57BOv0dwPl5onGDgIS/s4uF3exA==","signatures":[{"sig":"MEUCIQDjTyPGUXwSUJGL1zO4686PdHYb3YqiEl9omP7Mqn+EoAIgSFqvwBJPvfInno2+3d84dJDZm9b0DiCBlzNNRjHSC6o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeKH6rCRA9TVsSAnZWagAAlAkP/RmJuIGA24HAq5CVh6zc\nklZIpU3TxVE4dhomv2rKzIJjJiJlYDXl9u/m8ZUW/zL9KYdJ6e6Izm57o1+m\n1HdymwgKHEagXzvnq+eR1GGSOphzUl5rPJMJxswjFgF65r2Xq33M3IKV6rTk\nE0btLY1i41OAWt14C2OiEW2l7eGXd5zJPsQ6eUGLn4P3qWk0ScqN6IPyKoAX\nuTLlyHiXZFrM3jDXPrB7ketmS71S9nvdF9W6pDCGQL8UUHdaMByUNjOWHnMa\nrf4KeY00osAROFu71LKBnkn2jOG5NBWnB2v3oivzwm0UkFAmjuCTZVyiZRZq\nvVwFQpBoKPZnHcCC9aFz46YRLbSGqwbww60w4ccg003ubH6B6p8pimIg4vLn\nGLXjuTc63UKcoOm0ExAeVUh9OrNBrfrYxfSv1Xzse+9lC8RXViVZDw/oQCld\nC8+gMT2N0eYA1atayXW/eLUiNiIe0P874/ABlEawmxp84cO9cKQRHp9R8Nwn\nTdIRZVHVhTL6YpcHzABQge1G9ePJCBOJ4BLUrQ867k9mWDCsy6CqHt52Thbk\nV/UuL6SzJjbN1PpTYPlItEO4FcyueR/Z+TFEdyjGA2Kpt0RrvYQa+9xojhuX\nf3XnQ4uJ80Qj5AXewcnZ/w+qTnTIyiwNATWm9q62MjQcuu/w4YAfW0wm7Lv5\n4R+v\r\n=KODR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4726896d58f0dfdf4ec6ed819abc20912d43f2de","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.e1d5f1be5.0","@material/base":"5.0.0-canary.e1d5f1be5.0","@material/shape":"5.0.0-canary.e1d5f1be5.0","@material/theme":"5.0.0-canary.e1d5f1be5.0","@material/ripple":"5.0.0-canary.e1d5f1be5.0","@material/animation":"5.0.0-canary.e1d5f1be5.0","@material/elevation":"5.0.0-canary.e1d5f1be5.0","@material/typography":"5.0.0-canary.e1d5f1be5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.e1d5f1be5.0_1579712171508_0.34672888795576196","host":"s3://npm-registry-packages"}},"5.0.0-canary.6b6a4ff92.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.6b6a4ff92.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.6b6a4ff92.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c0020ee06371356d66910316ba6501f775366c15","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.6b6a4ff92.0.tgz","fileCount":42,"integrity":"sha512-fVhOZP0X73jE6gdK/C0ifQOo4w6D2AfRgj71X+5CVndJiLyLZ0JQYBN5u5s5B2OvVtsi99d8thfzukkakPXleA==","signatures":[{"sig":"MEUCIDdBAjkWKifQ/lJMHw5lyG9SQpcLSTXBnw35OdaojKwfAiEAsNJ9oLruNYX9keOi9svcDz0RTXITxG+WMf6oK7+101c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeKI03CRA9TVsSAnZWagAAlO8QAICcS7CbGKTQdATEsXyC\nGThpnzGn6HobBmk7jw9zKQtOg7BigV6H/DOtSzrj7E+npZMZKXHrqdc7hkPa\n42PceQAvY37zR4QLFp87Zqy1i2aGEaqBTwel7TWx3p20BdUkroCNYH/wicBF\nB2roqzlYSZ3pztiiD/O6ipAsiK5QbrC2t/dR1ei5AReje/D6uUeIaCvwEWun\nEcf3bry77xNttkgAP6lEu5hQOXA3FhJAv7U1gcyxMP/dkD/a4BqFxCpwpUab\nf/x3BEFUDlNlDh6ocQQzuE742O5SzOUhbV6l/uQu/3A5Kpw19iRzoH/Chxl/\n6bqCMrwvnw4CDxfggDOa0uCSqooDR5xI3CV6KAnPpu3Jqmd3Gx5HemOFxjqA\nja0XHIEbQJAzl9tuB5yqUR1gybLt1W06yChl2HG4l/aQVa3n6F3Ojt0W3oVd\nzLLeYD9nD/MD72XZXXATIg+Vu/CRUD5+GGuom/5SaR3gbwjRUUKsB9ggcHUf\ndeAwXI0DUdbl2gfDOrBHo43w+3goJOAazGXjkuHwj4abaJ2s1jLW0AkP0d5B\nvEF/Ga/HojLNzgahkCeXHlOkUnkJE4Pul/SVuC1ZnnBpVGhlfdC/pcwpjbK3\nwy7KgEow+gY5SrDLK5I9C1GdNGpyXmu5/DPqHhDH907rgEwoZAweGdxfmf7P\nHJo2\r\n=MBqp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a4307ced3400e7b61e83495c8903f219bba0ae44","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.6b6a4ff92.0","@material/base":"5.0.0-canary.6b6a4ff92.0","@material/shape":"5.0.0-canary.6b6a4ff92.0","@material/theme":"5.0.0-canary.6b6a4ff92.0","@material/ripple":"5.0.0-canary.6b6a4ff92.0","@material/animation":"5.0.0-canary.6b6a4ff92.0","@material/elevation":"5.0.0-canary.6b6a4ff92.0","@material/typography":"5.0.0-canary.6b6a4ff92.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.6b6a4ff92.0_1579715894686_0.08216822646532518","host":"s3://npm-registry-packages"}},"5.0.0-canary.6092f71ee.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.6092f71ee.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.6092f71ee.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d19f9b8b9100d647502a2d63091eec6b0b63d04b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.6092f71ee.0.tgz","fileCount":42,"integrity":"sha512-Jfbc0lcolx1wsvFKezJpkQGImgOz6vvxczfcavDwlOdfxXYN6OYUJD9jC9bYR6HRjEgE6tJqqmswi5tQtAKZew==","signatures":[{"sig":"MEQCIC5DjK2Qrn4mnMHLoAdSmUf9yj56YYgvKYmhfWwNccRfAiBo0jiSQ+jonrmexIjN5wRsiswYUKVmRHKWwg5ow5qmYg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeKLvsCRA9TVsSAnZWagAA1FoP/2GIpHMss+rt79A7DQ1K\nWXpC8nseYpcA1sYfxG6YgBZZN1HXaJrF083wA7VUX9rXKKshs2rVIJ4TFIUT\nVwTqDnA+edJ16ZXU5VMSk0E0TiACJxkjE5Vm+yNpUVBBJuw7lKd8k6pAONxR\nWw/L3M8Bf3IOvQVUwaV4F4M7XOdon9L6wSMNcrE0nELdSs9nzLbD4ZUnhlsO\nKPAVjKDJZC/U4o4Qu+ZSE+ifaLB23t0kDzVoXAZ7D1unIOMMe+NDkHY18xi0\nEThu3luGumpvXfOCz1Qm1igpL3M+CNr3ujl4n4KifBC1xPWqfAVJ6QITikZl\nxRhh373qBtkYWHVUChVRU57qfcg02jltZmE9XtllBR0AgKSdUleo4R0tNv0L\nKChBLyPevTrNAvrG0csgs7yMCcMVr7S++8O15ZC3J6e9/EYeCYbhkG4uWxCB\nJQ/7kHfGFQkgVHIPZDUE/PU+HfoRyzco0My/wRAxH5P/ZBamlBIOZnWGex4f\n2hFwVohc+P3IiGt98tRyhNxTswMXwPmQTKWNOtoz9T+JzZob7cEuFUG/BEYo\nh8hOaQ1tFbZGRkYbu6BdcNXHF19OrJzNzE3zlr9u8gqvdRwT2wBhOjQjdTRj\nDqk/2XgOJQs/fTmrr+Ubheudv5XqdvPYQVlspuV9Bsu1pVF8O0UzqvCsv9Ej\nlIrH\r\n=WIb+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"da5d9e639c767fd3f9ad77c867d990afc21cd359","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.6092f71ee.0","@material/base":"5.0.0-canary.6092f71ee.0","@material/shape":"5.0.0-canary.6092f71ee.0","@material/theme":"5.0.0-canary.6092f71ee.0","@material/ripple":"5.0.0-canary.6092f71ee.0","@material/animation":"5.0.0-canary.6092f71ee.0","@material/elevation":"5.0.0-canary.6092f71ee.0","@material/typography":"5.0.0-canary.6092f71ee.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.6092f71ee.0_1579727851167_0.9040821534959338","host":"s3://npm-registry-packages"}},"5.0.0-canary.d8d95020f.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.d8d95020f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.d8d95020f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"eac2b4f5372167ac8461af5c4f3cd9ecce61adbe","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.d8d95020f.0.tgz","fileCount":42,"integrity":"sha512-3WFebm+ReptqlFUOtCp3g/i+TJTjuNKLoW50NvVAEsTaHz/oqZ5n1SXGLOCFq68Or8LmeHMIw/Nx0U0PYchPgw==","signatures":[{"sig":"MEUCIATaIyG3m38l99zbAmwOWOYXpbDarYL9R0hjW0aNe/wqAiEAp3y0aUrcQatCzBgh23guahIyvf41zf+e5jFE9D9u1JQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeKNZECRA9TVsSAnZWagAAoIkQAIEQXqdQu4SMEyJNJX7c\nUEwk4PgGTSa7Q9yw07NQZU7UEAvGTKa3g2LHhQ9irGhTWpDPBkqlpdiENLln\n2ZoTMthuUxxiM5HItAcadWJUzC1W6BJkQCDN5Aa5lXlhqHXfBChkg56K/XDJ\nf5lb/ZHpa7dkYyy6a8ieIoDqzE0e6rtzLKpigvw6wpQAVyIlhOOVNotDy3ys\ne7R1C7ROj0juairg803ryrG2DFJNycf+J0JAU0zM10fv6essnSme0P5FhrdD\niONJyaVFFwTF0S4ABRVUWmU0mbzDBVK61gnIzUBA8Yw7Jh7asjarKf090fsF\n/n4yG4E3nsdZRoFq2BI6RjKyLhnskT7hI5es9J4eRS7V31J8MtGP4qM3+oK+\nFT0aPaB5SikDVkEnfHylpHNqGKtzP7Z22IscPVVv/iEEILGBsIRbWc1BLpyY\nlFhzkXhM1XRWxoARThshBb3K8QBuUgEKv8M507FwNqX5/cBZJAd+Yz5aovxX\n0FILscx4nqzWZzx5QcXFHBWprvVqUkOko0qBXYI5f6AH0GN+fMJD5q48XnMF\nAdHD7MdwEmaWXSe8j95gh7RCDs4yxTJBTRwesZpPmw6VIR/ZA/3FlwiJZH+A\nmq7GCbasTg0Nv6kxZpdQHr5FJMFH+NP9L7bDKhBoE690uTQyrWb+inq/vIsR\nX6NJ\r\n=1Gi+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6360c5189134a77fd45542c27776ac2f86b16a49","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.d8d95020f.0","@material/base":"5.0.0-canary.d8d95020f.0","@material/shape":"5.0.0-canary.d8d95020f.0","@material/theme":"5.0.0-canary.d8d95020f.0","@material/ripple":"5.0.0-canary.d8d95020f.0","@material/animation":"5.0.0-canary.d8d95020f.0","@material/elevation":"5.0.0-canary.d8d95020f.0","@material/typography":"5.0.0-canary.d8d95020f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.d8d95020f.0_1579734596276_0.9404371600666224","host":"s3://npm-registry-packages"}},"5.0.0-canary.b7facc628.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.b7facc628.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.b7facc628.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e3eee98811bf927818922b4db16f497b54bd8864","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.b7facc628.0.tgz","fileCount":42,"integrity":"sha512-Bj6VuMkttAHtwOHocniV9QLFNVaNJe0+1ZFYaQLuffMc67YlHHIZxlkp9mpw6nm2MnVhqIM1PbQrNA0QzfmUxQ==","signatures":[{"sig":"MEQCIFqD/Ph+aBTFsWeQZSWYmZdYjGISSv+Jd1X+rjFMsRG6AiA2GSSW1Zabjzdlop0iR9UFg/57/duq6L/D9QNFkUiJeA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeKeIzCRA9TVsSAnZWagAAnw0P+gM1sRiJllVG4LRzadtI\nO2hDWDJYr3XKysC9Ees3PgvY5AmqjQDzB0WzKt/AzBFIYb64mkkpQMra5XEE\n83nS8wVyzukaeNGyU+l7fNdVucFcLNQN/XW9iauiSlnZWi6Y69QGmpp89CGv\n8KaAZAonyNSKt6llCespXEnFtnZCQN73eCQpVUdF56KfmeVQHfDR4D9a9zRh\nFFVEfrpSg7/9HGk5qu+znYtdnFy0u9MzRTbWQOKrPSd7iA2JwoOrIByr3C5+\nVutoGDI3PrsVjLUWypr+HnB3zEsx4vI/vOzSNVwFpQuldMybuOBH2/94+8dO\nphtPSFEAPS0hBKVrs3cvcHQszxLamAIN98scaaGtrY8wTj06K9Ogao8rGnRY\ncqTfEXe4YBLV3VHJvYif73x2KwpCT422wGJZPeIH7ylv79UuNU8Im4NXUWNn\nG3hqPBlnrfxqgDb4gQYiRgVaE5qJFZGoSUNzGCKytLuu/HtykfCwWTMiUEr8\nuKfjH7aGtASH9ZYr0x1Pa7VRzcalNN9wSyzOIkWr9aoqKExQiIlo1o6Fa+b+\nZ8hdVSsvH9emzw9gGNWO+hjqgH1wplVxz3ON5IEJ70UUh7/PilPP0BXdsLuM\nrKRxYxsalt8ouyqAUSs3IzQMEi3R3YOCcULIy3yj4pxK4QCMxIL/pzJ+LTDd\nWp0r\r\n=IZLu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"265b39c05dba4587f44e16eb788b56c1cb0153a4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.b7facc628.0","@material/base":"5.0.0-canary.b7facc628.0","@material/shape":"5.0.0-canary.b7facc628.0","@material/theme":"5.0.0-canary.b7facc628.0","@material/ripple":"5.0.0-canary.b7facc628.0","@material/animation":"5.0.0-canary.b7facc628.0","@material/elevation":"5.0.0-canary.b7facc628.0","@material/typography":"5.0.0-canary.b7facc628.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.b7facc628.0_1579803187195_0.7128168642578157","host":"s3://npm-registry-packages"}},"5.0.0-canary.63f357dbf.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.63f357dbf.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.63f357dbf.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6240b1c18d655ce7cdaec1a9ab6722915c996d4a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.63f357dbf.0.tgz","fileCount":42,"integrity":"sha512-dot1DMqfmG5CAVEwTU+ZJQqXmQoRZp3yYvEbk/+aQ/f/R0rKexqszSvv07SGM8zdlN0zUgW0Kb3G5BKd1SMORA==","signatures":[{"sig":"MEQCIAh4Mzg6TtEpCozp0JXtHS7hCxMa1A/rINEfUQ+nEJsGAiAsXCDhWAnQK7LEq9snJEAhpk+SNoPbuYjy24Bscg7Prw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeKhZpCRA9TVsSAnZWagAAHwUQAJJOR/+9nTwSMQieR32F\nmwMFtKxcNsTVat61gVzNsGC5DT/nHcET0mmA9JrnRh5wvAhK8qvUMbjEQfzd\ndj/CF0x9a9atz72s/b/1B1zJZfL2z1UvkjnajW2BzRjpP8K0M3ywHCvM0R2+\nBGS5yyl0rJ3dgqeHgepCU8ox2ZJxMXMQ211FwFmMrRg0zPrimBPfSkATX0eV\n6wG5Un0G6KTvPd8YRw74IO2RJmb7x1uTF3A71Pv5CIdgptSkiqGL2/mRrLBi\nfJCVAplCh0WSL2FQfA5bgCy//ebCG2mhht6Dk/wx5WMSoV4HIrF3PbnTvPLS\nVR9D3NveQ212NzJCoq6Xi5iq/Q+8rLJryRelm0t4Y/HGmIqVqnyY9MtIcld2\n7j+sWhuWGSPCspJT9c/LXuwRiCjMSFeF3cf6/CbY+M6yaR6TQnxPidOKmAH5\nJ4TcEc5/uG7gsOQQMJ1TBRLxrtLQfVLxGH+nMhdpbQYWzLbreVbh9UMBJb+Q\no8CH8msqgDNDuwd62WO2zVTqIH2vQwzt4tFfHYpMy4PlMP8AkCrnnDWFV3zi\nH3BsRa3sS8MOUm2KS/m59bweQrz88yPZIrCzw5vFPVtNbiO1k+WZ/H580s5i\nO+2MRqBbsbyDO/xCNfxwEvLy0Xhg7+avJdmLWb4MJYH2YCoCId4orWviL36z\nwuh8\r\n=SD3C\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"eeb2b38a1cd8ef32c66d35119a666a4b01da6d7d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.63f357dbf.0","@material/base":"5.0.0-canary.63f357dbf.0","@material/shape":"5.0.0-canary.63f357dbf.0","@material/theme":"5.0.0-canary.63f357dbf.0","@material/ripple":"5.0.0-canary.63f357dbf.0","@material/animation":"5.0.0-canary.63f357dbf.0","@material/elevation":"5.0.0-canary.63f357dbf.0","@material/typography":"5.0.0-canary.63f357dbf.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.63f357dbf.0_1579816552740_0.6660030005902458","host":"s3://npm-registry-packages"}},"5.0.0-canary.f2426d26e.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.f2426d26e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.f2426d26e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"22f726df43a5d8a766f9125acea4592713f79c42","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.f2426d26e.0.tgz","fileCount":42,"integrity":"sha512-+cIY1wzylELinTCrHjyfeEWLAD+wtfXLpUkhmtvI1zLFBssV4j0aosFjsnulRPi5GBgtW6ydqyuKDgvUjNkCcw==","signatures":[{"sig":"MEUCIHL/yeRoJ/VnGEvBZ8FhibXW7uMPvtxz5bhkz2KB5vNpAiEA0HMbU64kork2875eSMWxmBbJbLGs/R6E6l+1SH2iafI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeKjJ9CRA9TVsSAnZWagAAsOQP/16Krow6c2LoHBZpYbuF\nr+Al+IG6+Fr4CP0RgL91sFU9qt/GhIh4osyhCxHBpXXlwOBHH9qgseb0fvMf\nuYuHvGeejT2LfGPMOzFSHTn0TDK9H+SlJ+NGc81Q6QM1nXBslTlL2tDD70ob\nkH8b3pA+Vx8lUKFD7EFjHf7pYxxHpTSMxiO0OsUice2anK+iy31KEUgdaXx7\nRrwjorldqA2b6firu6FH++k+O2wiRqcfIVu1KLewgqZkUImv+GD4oHJojJDn\nwUb9XFA/peB1T0Em7xO7rcfbUXbzvU4qHXsXaaVla1bt+qwnixV2Cwz6YVNS\ngPuEGoxdO4CwQEPinS1PUlIEnt44SHudIEP9gTIXU5+2v17DWLO0iBvZjNTg\nxUhnpfPJEGpHOZbJNXVa2i9OkhxhQcrrS3w6MOYRzMp+s9ygSYfVTjtfhRTX\n8Da8qOp3/+eTFZNpsu6T8MfQiH2py43VLdVx6ev/tLYqa8kj1hXAPTYEK8L/\n2u1EtLKkRcS7z+5ESMT0sQQcv9LxlB8658BDKILFGHI9z4pYP/baLvjnD/XA\nItce8qE2I69TDAbDzQ9thg6bpzCIitNBoswsZQPmDWnYPEqeJQ6P6v4P9aXf\n3shZKSqTPfM/nxx9lCG1Id5BHJ3UCuNgYS30qYSnGhC5VzWr4ODul/dRH1ig\nUAms\r\n=78H+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f25cc47237fd4889c25ddd16c4d80cff95fe3c91","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.f2426d26e.0","@material/base":"5.0.0-canary.f2426d26e.0","@material/shape":"5.0.0-canary.f2426d26e.0","@material/theme":"5.0.0-canary.f2426d26e.0","@material/ripple":"5.0.0-canary.f2426d26e.0","@material/animation":"5.0.0-canary.f2426d26e.0","@material/elevation":"5.0.0-canary.f2426d26e.0","@material/typography":"5.0.0-canary.f2426d26e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.f2426d26e.0_1579823741359_0.8563524879570055","host":"s3://npm-registry-packages"}},"5.0.0-canary.7f5e0c23f.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.7f5e0c23f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.7f5e0c23f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9fd19088b75e2fb1c8c4322f432975dbe016525d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.7f5e0c23f.0.tgz","fileCount":42,"integrity":"sha512-dZ7K4k+IKpatQRu9pWk5Z1MPBjCfJasp22GG071ozaIUZ4o+zM8+kvKpJEhpSnEqQYW9dSuqjNQgOqClbFTAlA==","signatures":[{"sig":"MEQCIE6j/LjBYy8h/dkEbA8othnDh+RIi4Dw302oTXfeonL0AiBdVrb3ubNhJPPUK1F3dwwXNhNLQAmB4AmU8MG+ykfLQw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeKx/FCRA9TVsSAnZWagAAch8P/2PeRvbTp/NToOsjEJDS\nInKHwboK+wgIyC6kcx+P6AINKUmOUKbocK6jKZFpk2TMTMMUxdZHHHrEOEqS\nylPh5XrD+0zocAJgo+MQhufs+7VmWO4uHDGJ4xCe5NaVpbpq+MQyxrxXS/HF\njRXC3TtSY+3pdBG3cc1wK8x9Xm3oV3rb6GdyeHt8gHNNGrYw+8FZ+PdndwEi\nV0dAQOYRMrhhtts3Q8PDGeI2Us4TB5gN79LysP2DhD+BNKkMTAiLImJxpXZL\n/Uhgtd8JQ0vSCdL+8jB9CPA61mCEH5xQnT7HOLi6eNQTnRebSMWXhYYC9z1p\ndT7vmjqYfLTkuaGvEn/Gjf7fKn8JqQNCd3/x0HXJzflYCxNvAdtZ6BXj2lwU\n10K7Uxneqx0yZBLX/lPqokHolnwmrgTYAvpGh2FpAUnwoqnEe29CONDwMoaf\nUWZ1hCp0rFB1ubLj18mnyNuY1WUUTtfmu67902noFXIuNj/3JdV2HSo0PdoI\nuziFB0zXOsLwkCjr0fP5wIxB5VOKtxXgMeqjLRUkC0SePYxNuFR81H86JpJV\nnx8MkfXYCGh0yj/xzuT3PTI+30NFvkVTe02v7YCwTTMVsYczWLWPAR46ZL9W\n6CMSVQfNJn54IbYH+tCh7dfZK/FM84Bz/Gg83dNRHsLAW855WVsWD9YbFwa/\nfAxG\r\n=I4BT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"619b057dce90a552f56e341228cfddbfb7746acc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.7f5e0c23f.0","@material/base":"5.0.0-canary.7f5e0c23f.0","@material/shape":"5.0.0-canary.7f5e0c23f.0","@material/theme":"5.0.0-canary.7f5e0c23f.0","@material/ripple":"5.0.0-canary.7f5e0c23f.0","@material/animation":"5.0.0-canary.7f5e0c23f.0","@material/elevation":"5.0.0-canary.7f5e0c23f.0","@material/typography":"5.0.0-canary.7f5e0c23f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.7f5e0c23f.0_1579884485238_0.8391620494881944","host":"s3://npm-registry-packages"}},"5.0.0-canary.3fc3ab520.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.3fc3ab520.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.3fc3ab520.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6fd397c1d6cefd76e00213c9941b0fb2505f30db","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.3fc3ab520.0.tgz","fileCount":42,"integrity":"sha512-XwRNlKfYiZlWQEFIJChLLiXRYjt7Kb/fz9BTPR0555FBSBdKQ3wqx9TGkg9kLuJcblqUrobMJmQE3tNrTdBLTA==","signatures":[{"sig":"MEYCIQDmy3Or9feXaXtyd/hoVVo+RE+8BipsPYS3MUZPE9R1qQIhAM4KTW/pVD6LIMrATRVGKVx8LY+rFccDCRLdnRMCq6cZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeKyeiCRA9TVsSAnZWagAANKkQAJu9AoDem7Zkll3R+s5j\n3yLEfoNCqgPxgOEApW3mAqNQMklZeE0W6bDIiHMLbQuItFFqI/B/wDK3D+O8\nP4LcxeGKZ4tlIZp7UCWtowJpLf4D01XI6SpvSennnfxh1QiJXgKgTSMDdoVp\nTUn+dpIDCmX5orI372+BFTvf8rKh+Dw0QsdMdM7CrduMDLe5yifh5B0JUlK7\nqTRWXKu6Djz0bVwXerZrwGZz9vNljdhIPR2clcr3syiO8UlmhvSXLH/WeVpe\n+zYSm5NlmmnAakrGRvcvT2ZX5v85WDjg/s8wA1pDtWYYgCMn2S9fKu7GTx1d\naHQ9VSl0lhQnayTPmrVvDbJWCb4SDXPoh59UQRwt74YIExEYXF8O1Hq1+uQ+\nM+ZfImLlbZa3j4r2BTHgQ5IlJyd2S+XBH2R3I7ww9GWi4n4UjhoH/MbF2Xul\nvfmITWYVxXaNQaFH440P9yul0fowarELhJ1PPUdVC2ifV2/Xi4fs6PiKFT0e\nxei/F0ct04Uc4UYxsGUeZyPq0XqI10ZLJLoNtmRKHMTbCC6i19gKUQmfOjQJ\np35SD3dTePZVJ73OSdb8Xs78iEVhB4l1mmImRuS7YLL/uHTAQP223OgvOK90\nVeXfYMwx0J/pSPm3iEyvZ/dmZot+Ers3RME3AAm9DopXo4xz916WCJAF8hmj\nxEyn\r\n=DN0d\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d15050fe97c7130fc9607ecc53a7eafd2b9c58ef","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.3fc3ab520.0","@material/base":"5.0.0-canary.3fc3ab520.0","@material/shape":"5.0.0-canary.3fc3ab520.0","@material/theme":"5.0.0-canary.3fc3ab520.0","@material/ripple":"5.0.0-canary.3fc3ab520.0","@material/animation":"5.0.0-canary.3fc3ab520.0","@material/elevation":"5.0.0-canary.3fc3ab520.0","@material/typography":"5.0.0-canary.3fc3ab520.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.3fc3ab520.0_1579886498194_0.258641999611144","host":"s3://npm-registry-packages"}},"5.0.0-canary.80a4d326f.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.80a4d326f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.80a4d326f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e952a65971cec69cb63a9ed37bfecb3019d7ce66","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.80a4d326f.0.tgz","fileCount":42,"integrity":"sha512-yTnNE4aK4qhzcgKRxvsDXfhgGuuZaJYxnkAN3vOxUEl9vvX1XG8LwU8sItixsF07wDT15JXg0aY7667oREWQFw==","signatures":[{"sig":"MEYCIQDnOPd2j4A/Vn5LJA0N3cQO/hEvQcbyzgQq4lFz/yTgwgIhAKdnw6k3ad7wF31cs/06MsFbDei26VW2y4qEMnDCHMYN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeK1eiCRA9TVsSAnZWagAAsxYP/1HoZGp9G9Kp8M3JFx0h\nB3uAisR6NoldMpqlat1aZv2lhtJopga3HUZLsvY6YDnYwhzjtORfZajKRrp0\nCtk+VXLtgqcL8Wd6Hwzen/KRe/P5poNSfngs/m+diL/jSxb5MBTguJ4Cmhn3\nMqYmVKH0iQYYREgZcb5OSGbDbbAn+6cAINEpRMYDUjvUzXp4+su3UUtz6qpX\nB/kHfpyyshv/YTlVIRnNJ1Wi+AXrbcq90iAwtFhrkiQQJQn3rzgTZCzQvMZY\nuHznt3K6uDXogphxLILqEYSpnzDo2cKJY8ah5curjhzX0rMLBhAsvtSc0wgL\nOcGhtBneElY7JCDoc1RBhUi6LcPxXDtkfrPTdH2fUUDzyY7zX6ZmLEn6ByaK\neo6bSOGgGif2evnGXYBeVnkvTW6aO8wKfFVNvAzyPeU3rNsWA273rRs/oXeh\n9gTYo4k9mVkEa4UvqWjlwin+cg08BAyHz/aL5x+uAqYKfz0y50uAa1NnGMG/\nblJvKEPkg0AmpiuSuT9/cYKu0FYv/tQu4P0TCG19UKZkDc5/63BiQPclKcOP\nzFOcUTveG3fTK/aWkBI6cc6NCaUcEQQ4xhyjirxLURoGDl2wRNPw/RkBNbkr\nZsf2+eKQU1LpBHriHehjwRJJtR2h49bba/BIadZLZZIlgYIghVyU16/QHhcl\n4vJI\r\n=lug9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b0001f5c4ba1986c74470e492e82bc13e15e2ad3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.80a4d326f.0","@material/base":"5.0.0-canary.80a4d326f.0","@material/shape":"5.0.0-canary.80a4d326f.0","@material/theme":"5.0.0-canary.80a4d326f.0","@material/ripple":"5.0.0-canary.80a4d326f.0","@material/animation":"5.0.0-canary.80a4d326f.0","@material/elevation":"5.0.0-canary.80a4d326f.0","@material/typography":"5.0.0-canary.80a4d326f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.80a4d326f.0_1579898786102_0.8458637219505634","host":"s3://npm-registry-packages"}},"5.0.0-canary.ef7de4def.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.ef7de4def.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.ef7de4def.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0d8f78a68376580392b18955a1012fa24a31a1ff","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.ef7de4def.0.tgz","fileCount":42,"integrity":"sha512-LL/t0Xy6dbWGvx+GcRP/Xt1T0CA759E8AS6UF7BooYRK2z1j6UOyIdjz/uYinJWKS/D/Ll2znTvS6ijuOqBeaw==","signatures":[{"sig":"MEUCIQDcPD+opB2C7zcY51twc75j1BFLkCAKwAeu1f9iCYfw8gIgPwrkztZ5rSqou7WWZHzqWBwgcd2nuMsHSaaMpsBwwiE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeK2KKCRA9TVsSAnZWagAAopYP/2QfzfYnjuU17Qr/JmMQ\nzn3ScjrYxuq9SpF2n7QYDDRKWM2+lqKguq3fBPqNZjGZfo9j7FF1Mbii/sqF\nBIL0dWR6W2Wqc333AQx1HMGY6QIaT/U4mntaEYlH1xVq+b/9PLP+T1kr882x\n9rUTfiKPzC9XIjeSpxebTogGKXMbdjH6YYBrmSXhJzP5YmG00A5NDgoZsXMq\n2qqNl9sqc5QJlRWQBt2Zh7Ca24K6gd/20yK9LXo6Idh1vyHFfBdp3mW51/hx\nsae4JKybsPEnEoIcpsS8MKUl3gg/8C+8F7ldGYV3fn9y+ixMheNrbd0vr5cW\ndc52JgJEOktF/kCYtXGnrEeXlsH75Cib+IB3xumQBHxnBcXLkEN1wVqFHkNk\n+98hKINiutiotpAWc5gBlsEHs4MQaGuziW/0X1M/V5R4Zu8CpMbnaRo5b9/p\n8m7BXCTNrkUqzxQg4geRAbstp0CzfxFe8geVp4q2vhgJy7kWeVCa+zZPRu9s\nPPpnPwxcftX9wZIaHdXYsETgKvwIMsEbVXgC+A5OiqY645lZXUpwnNG0Zwls\nP5GRCwHhJFtQXwxA6cfTDUraXCPA+efnZExqapaQAuvxwl9yRLwh/WAp5z81\nJIgI7UQUlw2ceHKpMMeFAv5UlSJJzS2B/tsj1wECGUDeYg8vZ/v+vqNPLcNi\nDbeE\r\n=qXu1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1ac98da12680a4581dd0427e23f1dd1b95a939a0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.ef7de4def.0","@material/base":"5.0.0-canary.ef7de4def.0","@material/shape":"5.0.0-canary.ef7de4def.0","@material/theme":"5.0.0-canary.ef7de4def.0","@material/ripple":"5.0.0-canary.ef7de4def.0","@material/animation":"5.0.0-canary.ef7de4def.0","@material/elevation":"5.0.0-canary.ef7de4def.0","@material/typography":"5.0.0-canary.ef7de4def.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.ef7de4def.0_1579901578182_0.525796224677221","host":"s3://npm-registry-packages"}},"5.0.0-canary.93e2288b6.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.93e2288b6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.93e2288b6.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"36447758fa3a3058d5dadebcd60fe83bc27a764c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.93e2288b6.0.tgz","fileCount":42,"integrity":"sha512-mpZWSYcATpDKAYvYR3Q6RGVikEDFgzcK8E2h57vMu1XtCuc+eoqIjOWVjyQNj8UHe1GdmbUoU9LuytVIX9r4Mw==","signatures":[{"sig":"MEQCIDvGYBi3MQ9Q21EkkSz0ZCThAcKbpdx8iZaaRsygAdrAAiA56mXTwyo8OnzCl1zt2jYeEGGI+gSbcOaT208Cik5a+w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMGfACRA9TVsSAnZWagAAPk8P/2a4hwydg+NRAiaCkJjO\nmqtdLY69HumWBkHuEKcQlmFACm2ixq+SoLovOJ5sxeXbAmUAGS3JtIalc3Ee\nFHpYxtBQ1YbxK9hp3BuunRD12YSKR8MQXqRVnevHlkhmuJWZ+ZYUQeDuIK3W\nhAlfr1BqeXFF18ys/0iZJ1fy3TzZf001Q2LFXGhjpye+fmqeLK7Ai4xy2eKo\nFAZ8jBFD7nC4HZrSO28ObY73LD7DVypg060eP/1Awm9yCm6mRWS2CGdKQvLm\nY6cPL+oACT/qsjHFCRHRV09ynfNYHZLAmTE6n3ubS1GGmbbg5uDr2P8gfl/s\n7Lna+UjUURcYqpNwn0SsmaklQyVwDnyRZzxaOCiDkfIT9urh8THHyPRonQU7\nRUkSdcnAzX7WBOwfkrygNX+hwsk0wYoafMZ/ucC4zxxCyID++dX1hLAcDfbp\nK9ujlwF11Uak1HhQOrOejsJWCcXvGZBcvlO0AgbIc6vz4emlUzA7T7irAqzJ\nWXTcf/zoq5rGP56L4MD/+oe3IMHWBgLKpNtAw1mf2PNwFqbG8p/EwBoTmGBQ\nX1SqYssvuB/3FN8nZd+l3NbrjfZoTbERZAS2za1pF7PenRfiYCYSZvnZCvy7\njGOdAVd1/VhZUP8QpIPDpjMvRmniNcOtrrKMQ7yVB9diZVqUe/upoGI+mfPy\nF7Z9\r\n=HzNa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"00984d219befe7ef5ec7c042cd975979249ca8f0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.93e2288b6.0","@material/base":"5.0.0-canary.93e2288b6.0","@material/shape":"5.0.0-canary.93e2288b6.0","@material/theme":"5.0.0-canary.93e2288b6.0","@material/ripple":"5.0.0-canary.93e2288b6.0","@material/animation":"5.0.0-canary.93e2288b6.0","@material/elevation":"5.0.0-canary.93e2288b6.0","@material/typography":"5.0.0-canary.93e2288b6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.93e2288b6.0_1580230591862_0.7771725938551268","host":"s3://npm-registry-packages"}},"5.0.0-canary.34ef15f67.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.34ef15f67.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.34ef15f67.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"51986ad29bc666a7eb24a19965e6981defc618b9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.34ef15f67.0.tgz","fileCount":42,"integrity":"sha512-yD5fyy4SNoOJ/zXT1x/NnAdMDvAPzI5WT9lstnPGJ531O/l2XO+jH/2pVn9tzSQROUInMEegOxjEkq3Rs4w9GA==","signatures":[{"sig":"MEYCIQCcsQ7CAaxtkaB8gijgToY9qr3dDT7g7ahCIQieHZDK4gIhANrpCeGhrtY3cfzmavzSLNJ6EmbIp6ohbFH40bNh8ivn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMG5dCRA9TVsSAnZWagAAZaYQAJINF+QfuffOeGqiJWE1\nQTvwSpNk2Rw+ddy7LJLZY0UVQ18iFuAzbVahOvQYhK9dguIJluzwEKxSkdQU\nTPrkWDgM9Q2zMhmRqcgfSjy/uTpNShDUM2/2aEraJ3VYfBSG2eni19WpiZdV\nxM427pdYM5FOCg/aJT/E8mwP1bGe4JKrW1mg/PLDW2H/48pjk2M+8byrY1QF\nYd+d52nNSb8uRE+uZzR1DXp8Njgh9+Bo+cBrQ9L6ex+oJFDUXzA3GQ8rdQKX\ni1ykkguUqVE9byEgS6jWk/SEHTXMD9j6PvezPvjfTJa5weu+LVlXT3HgaBT6\nmgtasmTwTFl2A3qjXo/tI+5J83tdblDzmCgr8xcCGryJatyGfKbui5XR7fUT\n6QchkyI43YBPBuJqIIEWG4KqYX5LiYx/m9uw21613l14Rig8SzMlOJEU3LZE\n2p8fAK/wW3ubrpmydoCy4Pyvdh55C1Bd7nz744mMUNJ/XxCcjeu4rnwLcog6\nd4fFIBI6rybSWfq9N7vBobyDsQFB26/SSdbLCpytIOjKZ/gwLOseFi4NMj/0\nS2jTyM2EHH8BA4xEIoaBqn3GsIbCzD1DT5nIeUk28gG/IHc/q+vjGdPPqsS3\nsR3tI9PVWJ2mooKbMbbms3DdHVJWZKpmuoCaaRUpKhlupAqtIs9Ygys7MeGg\nAruk\r\n=5MOr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"21f8c61e71f0a9c48eb2042e25093b7a821e30f5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.34ef15f67.0","@material/base":"5.0.0-canary.34ef15f67.0","@material/shape":"5.0.0-canary.34ef15f67.0","@material/theme":"5.0.0-canary.34ef15f67.0","@material/ripple":"5.0.0-canary.34ef15f67.0","@material/animation":"5.0.0-canary.34ef15f67.0","@material/elevation":"5.0.0-canary.34ef15f67.0","@material/typography":"5.0.0-canary.34ef15f67.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.34ef15f67.0_1580232285036_0.1627737959997153","host":"s3://npm-registry-packages"}},"5.0.0-canary.d3d176ba5.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.d3d176ba5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.d3d176ba5.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"79bbb8bdfd4714cd8673b3ad2a1571cdc09a7775","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.d3d176ba5.0.tgz","fileCount":42,"integrity":"sha512-t6ywOuipMxHv87wbI1Uco/BSG5MNeYtUYsTtp/fTwPt2PXspYfbpDxgfz3YfShCs1UHvsX7gL2e7NoHIJ2Aqng==","signatures":[{"sig":"MEQCIBtr9KRPwLC6LFLGufDS2XGrb7mS+tGIsePbzkquq6f+AiAO93h7H3kRsxzIQwQk7v72VtYddeqwbyxucJGt/5sytg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMG+OCRA9TVsSAnZWagAAu4MP/iKekgBTneo0CWYtAje0\nAmrZEjpBpMvcixBxyFlhf5vnJf0Es7/4uTpjlA6aMHnvgo+XTtdEEnDhzvWD\n7XCWkLULkjExZGPrb2WH0XaPzd+X/9gPC4m7/T99/NzMSBejsLz3u9VW7j5l\nVPy2wRPA6m0TKu9c5XtztNtKVuwo2QzE/q78n1nMc9qY5mPeC0JLLb9i1asU\nQXyJUWmcAKYO9XlER/rjABvc9jOy5S3L7UdZV7w75BQ1E2v4R79G9fnt+TS7\nx4bRzFHSlXHCKOtU//jbw/ABeVUGTmKeBfgnMZbfZcmHa7OReR95F4ODcyTl\ns91AVcWYkRGSW0QgJagREPz26Khy0rqM01SAGDWJYI2loQrpOi0BjnP5uBgO\nXcAnYMm+uKhMPk8oko/v7Di/y4EGY3+yUwOhQax4EwiZpaU1ZgCEZEyh5Guq\nKRpjGsKU7Aw4Y5HMeHNKYW7q4Irv9MWmPrr0YW/4d+86CUxonUjiw+DIaEny\n2HAGwp40sNzEXVEh4vaFlL5h34xHOqNoQvfmA72XOwZ869Qtvf/yuf9G8goZ\nhhQ9rNPz8+0smCx9TdvKm5yeEbQ3CoMKTeW7POopu63vYU7GKatJKvm8inym\nxv9/eoQST1N3eFdhdzoPpzwJ+/fpgnlewf7HHSQBXo6b2NH9mZNCfee1tP1G\n66k4\r\n=YmR3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"218eacd6961bf740e059146072cd9e6c710dcdc3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.d3d176ba5.0","@material/base":"5.0.0-canary.d3d176ba5.0","@material/shape":"5.0.0-canary.d3d176ba5.0","@material/theme":"5.0.0-canary.d3d176ba5.0","@material/ripple":"5.0.0-canary.d3d176ba5.0","@material/animation":"5.0.0-canary.d3d176ba5.0","@material/elevation":"5.0.0-canary.d3d176ba5.0","@material/typography":"5.0.0-canary.d3d176ba5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.d3d176ba5.0_1580232590462_0.9945447395901905","host":"s3://npm-registry-packages"}},"5.0.0-canary.32c1df133.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.32c1df133.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.32c1df133.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"28cba2a910e53a91c8a1f52b83b9fb6419704cf0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.32c1df133.0.tgz","fileCount":42,"integrity":"sha512-QGvGmSOFYjOqnerRCXsqqlvpL6jo+HGXyiMB1dLLIDszyEj4r1sNLejfnzVBlCxt8wCvc4JspIPsaxeTwdR6HQ==","signatures":[{"sig":"MEYCIQC8l0pYARt8cOA2PcknV44wT5rxgLmTkVt0f9f1iDs4kQIhANV74OvTtCej0jqT/luoe7aF1ndslHx/u3jN8z+gvyoj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMI72CRA9TVsSAnZWagAAUrgP/idu8JTYX73ui2aWdeut\njtAJBWSOvVcVZV0Xh6C5P3/qDFOKIvxa+IN2KCzHWhz999z+nswZ5I+5lYy+\n8rA2toQfjZ3Sj77D4IukfWLLwj9Avh/b7HULZE84PUOEJ6we2TKFdeOxGcVG\nDOV31Oyw9Vgi4sllv3Tq8/PcdkyzBvnvCdLcznUm4EkR2sGu8wrSbPkmgPMu\nZENkE71MapRPqqBGd9UmPTfPfAee4ysz2AKPeIfhLV4V4MvLINOzH3T4xYi+\nZFlubll/mFQLrRGkZgy82VXfvN13znARWaSozR7VQzOhAFQ8l6c+MRJRllAr\nQ5sbozuemVrNS9STyvlnIVklmV+2kDldGcRj59siLDIzJ5X0TMsVwZuDKyOm\ngDkAAbOnRTmIUh86NCI2u5nB6QqGRAMsfkmRXiZA/kRKzOVeNtYdTl8MGHdh\npsvUEzmldMbNMN1mXweM/YAbO/bOyLmcftMBsklUMh8FAkcrevsX/332P6LA\n9Q82YrnEOxruODWoOAW+en9y2JTYiGfHT3W7PcpMmSVktgxOm4ff2WeHuaHV\nPXDDyqcaQp5eTbjhRVidtqyFqGkodXQ/mKCUBzt0Sodl29LsCe9N8535SIou\nAQzuuqHdT3aLz/HZdzN3ycKpFUzHReQCJKYztCf3M+rdU/p9iheE4X/Srr8v\nkil6\r\n=EM6v\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1f36bc15da25ecb33aaa27693bbcee65c1d56eaa","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.32c1df133.0","@material/base":"5.0.0-canary.32c1df133.0","@material/shape":"5.0.0-canary.32c1df133.0","@material/theme":"5.0.0-canary.32c1df133.0","@material/ripple":"5.0.0-canary.32c1df133.0","@material/animation":"5.0.0-canary.32c1df133.0","@material/elevation":"5.0.0-canary.32c1df133.0","@material/typography":"5.0.0-canary.32c1df133.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.32c1df133.0_1580240630436_0.7459359494767717","host":"s3://npm-registry-packages"}},"5.0.0-canary.f3adce86f.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.f3adce86f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.f3adce86f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"002e41417561e141c258f74e71aa996ca66eba9f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.f3adce86f.0.tgz","fileCount":42,"integrity":"sha512-RT2f8SkfYFXyd5Xn4Uv8wtx3llPn0+Pyfp8htg1r14Xf/GFW4kv1CLqHhPGJEGFPdXhFi5434KjuGUNGm6rGQg==","signatures":[{"sig":"MEUCIHICtwW8vrKH2bbKLuXaNMyCwzA8zSpvOwwGIF5cGevkAiEA952PWtNHN3PseeTKroIUjN+ywKLgM04w6ELF26UVD5Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMKxlCRA9TVsSAnZWagAAxHUP/iqbL3GJtIgAlpJi1C0J\nwR+TEnGE7jUc9B7lwWLTtoeIm0vCAABBWPQkwmV1nSpwvEwN9Z2Y5qewbdlB\nkBU+nJ52TpMaNY1cWG+oYiQSWX2Y+AKsSKNtNyJE8T817dqgAcF2/Uk+QJaN\nRXp5iJCOdn0EoODLcaziasvDc/TfFr8Eufsh9LDz8o4m2pnV+PzxKIXO6ZxY\nOEefB2WopvcE/VTLUnRTyaLmrtINqoTYj519UZE0cw9E25FzfEUSocVqIJgw\nDOVsZe3FJdVYCQdkZS5Bxb63YgV3uj3nqL+LfYsafHtYstwaN3bq4ls5DO0d\ncg9OwzRf7ZV1gLVXuYFT5DGXQbdqb1uHkgHkVW5+bn35TYH2N1LBtKzmTw8x\nOxWk35yDONmlLNNsMLXkGLURHCZAQgTexHElD7Nsz6lrTDtT9szLLSnBV2Ez\ne41LNUF7INmF8mJu0gkyZfer+DXmyQSgLxz8iI40CMak2nfw3wfXRIWtHWgu\nCob0OrQNgALb4i9NfxkSVUmnc2OTbBiyEHKlc0RiqNcRunbpJk4Ih2nw21/M\nXIGa+sCW7BvFlVOlXwk9i5wnN9a8OARST/S6wWvZvf1+tkOXHjGr1cseUapt\nQXDeyotRHNOZCtsbviEU9Gp6p9SXUcEOfN03K2r/e6iRWMGgd2rb8L4ShX6s\nLzmi\r\n=KgVc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c352913b9c3e29f7b404b08db88a506e692187d7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.f3adce86f.0","@material/base":"5.0.0-canary.f3adce86f.0","@material/shape":"5.0.0-canary.f3adce86f.0","@material/theme":"5.0.0-canary.f3adce86f.0","@material/ripple":"5.0.0-canary.f3adce86f.0","@material/animation":"5.0.0-canary.f3adce86f.0","@material/elevation":"5.0.0-canary.f3adce86f.0","@material/typography":"5.0.0-canary.f3adce86f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.f3adce86f.0_1580248164868_0.24390710613161004","host":"s3://npm-registry-packages"}},"5.0.0-canary.a4423f890.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.a4423f890.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.a4423f890.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d452f2ef2b48d11c2e525c2256ce49e8f0326536","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.a4423f890.0.tgz","fileCount":42,"integrity":"sha512-lGdPDkVfPv1KM/K69ju6898BjU4wkzy4YmrVupWOgIsMf7RCEtDizTOPFmTUhF0T4uJm9/c0M+lPsVUbTtuqVA==","signatures":[{"sig":"MEUCIBL+N7/nrL1uppGwmkNGkabrp+bvFFZzqalej/+KHvGZAiEAlluUWJIN9RhMSVindysVLRZxuiqokkES1OfZjPBLMLI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMfS4CRA9TVsSAnZWagAALMgP+wZJH7EZBqzn6TX6kukE\nAMUuAg1GEtYf/TVMuBBPRmFKEnHfvbqkGeS3HiNf9yu1zfMt8cwBCx/5evRi\nJlPHBnud35kZ0d1ImDfMJh/CPlgQAX8OlzSTn7Np84XPcVdYh5fvnza/GW62\nA8fGdRl/uZvksf5BH945wvJoIhbr1ivMnRBI7p+RuDA0VT4EWZuCSkO0lUe1\n5iYl+XOiyDcXQtlZHINK+KeMv373g7EMbQAvYL/Dw6WfbTOvUz8i/eEoingV\n0ChLWCBA0I0SB58IRqgPTk3ERrHge9gv/v9Noxga6/BtgNqHvy8CXO23sTle\n/H4wGrns8oFPIJZc90CHtx13xx2uNR+1cdT28UHlSK1prFcr1TtTyr2L0ya+\n5pSs7ao/5UPr/oXjCBnxZufjSn6wgGef9FXsq246W1MEUv5ksadubuJoJcHH\nUSEtiHP2M5dIeWT8lppkgKlmeJsiYre3N30mCADa0DhC8mw1wQfX2cCqQoq7\niU+yL71XAuayRODg0dXlQncBARR4KGEfko+OivWRMz4ZI2a6mm7bfHZwMFFw\nxTUUOFxpNXqfchT59j21+Sj2GEu6xG5mZkocVv+99/zmYBPT4/PGH+hfQBBh\n0K/qfcxJsJu+GIiU5qAiFTysRPO6/zI5zszOyT8ohTr6ONKCRO3Mzs0ZtQ2q\nK/5k\r\n=v3lg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"981df6741191636b0a527b318fe896f47f74cc0d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.a4423f890.0","@material/base":"5.0.0-canary.a4423f890.0","@material/shape":"5.0.0-canary.a4423f890.0","@material/theme":"5.0.0-canary.a4423f890.0","@material/ripple":"5.0.0-canary.a4423f890.0","@material/animation":"5.0.0-canary.a4423f890.0","@material/elevation":"5.0.0-canary.a4423f890.0","@material/typography":"5.0.0-canary.a4423f890.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.a4423f890.0_1580332216420_0.3832517286162198","host":"s3://npm-registry-packages"}},"5.0.0-canary.9351f167d.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.9351f167d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.9351f167d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6e11af81d901dca1ae4716b148b392cfa0a18b7c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.9351f167d.0.tgz","fileCount":42,"integrity":"sha512-kvAoNKwYwpCw4g4TgWs3hsVoJsGlfUhmZLV4Tf8yDfh2lWnNjpYaOmyrkKgeDlOJ/Xxv403Lb1M66fl9CBg+hA==","signatures":[{"sig":"MEQCIDK/A1V1sTud3PSYnzmGjsf3cRD/toGVjfyU2IfMZBqCAiACh3dzBqqUlQHfYZMjwwlF+0DF57GNlL5JpFXHdzAUUg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMf9+CRA9TVsSAnZWagAAE0kP/3MRkJJefonsCPlmhv5C\ngOiM7NRb6XUDPlG/Nct51tAm9oRjS2tdECDK1Q7tIGksppbToYZCKu+gN+pJ\nr7NSWDU4q378rD4+k1p4Jqz4VJ8GQq14LrzS/n0hj9POnrbolK4k4zM+IY+Q\nwskoQqKF8FiqyJjfKWSXIyjiOR4K9Fwubcw11jd6kBGhBg4wadP5rnpBVLNj\nYr05zng922AFhRSkH3FXjlh17P/G5x93A485ofFTHhSX+dLklcMKpFtHafxa\nRAH62wn4utfV1rWi43NGwLMaZ5WtX2RLVpVwHugsDy5QG7IOtBtqztEoEW5t\nLnUK0JvsPe3dmiD9F/5eiYCnMwPpg80FGGjC1zyBOxselZArRjXQQihQY8m7\nScVKCeQC/ZGvt80wp17Z1g4NFQa9sqhZdup3Dvgrn0zinESP0ePcY9pqm4OE\nlm0C3Pj8ddp8nFKDO6Ec2N77SAWQFjA7GVY8EjOebf8sw7ZpibqErkYAyJ6b\nFJB9I7J9xop+RuBTlhpj1Knc1nluIxFWYqvD4aHH1tHsCrhDIOEpFeFcZB84\nFUjKX/FwThBL8HNvt+3iyjPRDl0mG60rkF9F3lnT39EEocyS1FmHp0ij/24G\n5hDvhstplePufiBMvz8sdvtfA/KmvTqJe/lphpik+EMO57DB9NyiT66x4VY3\n9jCW\r\n=zrj6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6c1a50ef6adf8852f326e285227923411e60a63b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.9351f167d.0","@material/base":"5.0.0-canary.9351f167d.0","@material/shape":"5.0.0-canary.9351f167d.0","@material/theme":"5.0.0-canary.9351f167d.0","@material/ripple":"5.0.0-canary.9351f167d.0","@material/animation":"5.0.0-canary.9351f167d.0","@material/elevation":"5.0.0-canary.9351f167d.0","@material/typography":"5.0.0-canary.9351f167d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.9351f167d.0_1580334973457_0.5596441554218121","host":"s3://npm-registry-packages"}},"5.0.0-canary.29b89dbc1.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.29b89dbc1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.29b89dbc1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3077d633a76c0460e3167556e006e57558eb7f0c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.29b89dbc1.0.tgz","fileCount":42,"integrity":"sha512-Mz3ner9sSkpE8wyxoptHYLQxbbzDjPZLTg1Z11LzgPjwiBwAIo5mf3Vs7EaWIZN9CNfSQvQFIMzWJWu95eFe1A==","signatures":[{"sig":"MEUCIQCKkIyu1TpNehxQIrVou4YlS7aSCZhvnf1VLQlg10C0tQIgCmI6vOyQEsKmOgwQpeg/UGj99+QDTophKW1SP0Zs5U8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMgRcCRA9TVsSAnZWagAAx/UP/i+fnuIf77Yg5tYqSKTB\noHEKAAfVgE5JatMmS6yzOKvr+j8lKmGHiKfdEuE49TOmyr4TKAN94WnkMV7L\nx65IjFnH/Y1882/JtCeDClvdDDjCrRpDKn6lQ3CFB5x1Dpic0hx2K2CV70Z+\nkY+Nu4xSUSY/1vreomIxE0w2ZMWfapJM6JW9GMh+7AKVq5vcsRDJwbs5FpqR\nGfC01VpysGcKdQadD40GllmD/oUbKyhHF6Jn9nBkRE3B0bTAR8b1GiRVk5dQ\nW1/VuAgIyWLtTVakTuBHj78L6Wa42tYi37420lFxD9nd6hI+y5bdvq1KemH7\nCmqiDGXPTvWPME4eN9JuXEWyna+WHvroV4RkfbVKl20qetf+1oTstYLw6Jli\nWnP16EAXSN2Bhh1nVO5nFVu44U1acZ27O5ebxrpL7q9w39emXe5dU1p4WLQf\n1OhOlV5ifyFpGUj4Ufj0OdaeiJUaSHd19+jADZODxOy8SVcNzDy8YpJvLtjL\nAcVqFqooY8riJH1xftawlPEPGD8OP+Hyipa7mbKXrPApl1OTbRiI6flx9F/I\n6rlhg+1v36b2HBVezP1ztTA4aKYLV9MsWwPTivix48JS3D0bl4GhTWz+A1dI\nILeteSof2RNOym+pOqc6AH0oMsRMEdqQM5LdXwB1J6audT9ezYqZpsj8ocVL\n+wq4\r\n=19mh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"662c3c36b5ac6bb47c841a10193f2c717bf9ca86","_npmUser":{"name":"patrickrodee","email":"prodee@google.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.16.3+x64 (darwin)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.16.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.29b89dbc1.0","@material/base":"5.0.0-canary.29b89dbc1.0","@material/shape":"5.0.0-canary.29b89dbc1.0","@material/theme":"5.0.0-canary.29b89dbc1.0","@material/ripple":"5.0.0-canary.29b89dbc1.0","@material/animation":"5.0.0-canary.29b89dbc1.0","@material/elevation":"5.0.0-canary.29b89dbc1.0","@material/typography":"5.0.0-canary.29b89dbc1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.29b89dbc1.0_1580336220114_0.6699570037528781","host":"s3://npm-registry-packages"}},"5.0.0-canary.45985457b.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.45985457b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.45985457b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bea2f4d12055e5a11a747f9b211ec46d70dfc254","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.45985457b.0.tgz","fileCount":42,"integrity":"sha512-PSZB4jVlaW1/eQ10Boywgf4YQRf0eVjbu7h1QBq60qhgyPBnW3YLkgTJjlWnJAVwdLmGKw3v6rOgonLMZtLHGw==","signatures":[{"sig":"MEUCIQDb20nmjFdZs6w9kSQLrtWw7juo+fs6ogVgXe+7gv/BTwIgMAPCDlNQoQsCZqB5fbMKZho2keJazYAyxUVxOv/kv7Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454489,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMhZRCRA9TVsSAnZWagAAp98P/Rffq4qLqbOkqcPJOK1F\nYGTfYLy61PjoW4crD4d77LLE8X44ANkHI3gIF4ItaLzNGu4a9wZwEGIJX8iW\noLkUeTHBGVKt+bkqOY/1Ww+/66GU0gxfOZliNmr4ZdaoUzbnJ+rPxnQQ/uLl\nqLF3I6jKp1DzVZv7TfLaS/1Bp0cV192CQEBhHgVuma2U6fPC4Rj5Sh6sOY05\n4+3filGOnMaoUISYRplX0tXkV/pTqnOmBdWKjzQoHvSE2CSwcpL72za9tIH2\nSfPs2/pQNr6DVVGAzTIqgNGU88icZRl5ZsL0eJBYACvpDcNrmj7moKSwWQpH\nOFgtLu7oOdgrXh7ifvgzN3a6hhu78+GJJLKZR2/KyCJ3WeVhs0UUkBbp8nhv\nBicjQyu8kP8kfZ+YM6dsaj3coEo9CH87fZEwzrKrHiV9/p9/DVWdkPJltaF7\netX/Nq45oTFExBEHb4M/uaQ5lTNLQG35AgO9H2R2ZVFBZBIbmggXKnKoz0lc\nV//mqh/h51Uw6eT4NzQx4fpr2H+9SfWmtM34PLWPzrSJbRam4tzHtMbhFP8e\n7Lopd5qTkxBHWpSugFut1hVjIFkZkadnfD8/Ns6q3NAxYn26pCZb1o3QgU/T\n+/vfR2JliIfzwIKRmps7uxou4T4rJTGRQKggeSrfwfpauvKXE42gEd9VuYeJ\nw0RB\r\n=DhWJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bfd13ab23e42c09d1390ffc6d7cf1caf1a237485","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.45985457b.0","@material/base":"5.0.0-canary.45985457b.0","@material/shape":"5.0.0-canary.45985457b.0","@material/theme":"5.0.0-canary.45985457b.0","@material/ripple":"5.0.0-canary.45985457b.0","@material/animation":"5.0.0-canary.45985457b.0","@material/elevation":"5.0.0-canary.45985457b.0","@material/typography":"5.0.0-canary.45985457b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.45985457b.0_1580340817247_0.9833554694033069","host":"s3://npm-registry-packages"}},"5.0.0-canary.a1a0deb3e.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.a1a0deb3e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.a1a0deb3e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"02217cacf56df5d1fd654a791a9f351178b6017f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.a1a0deb3e.0.tgz","fileCount":42,"integrity":"sha512-sdksnrT7hHUhdiVpQPgbCtJo3NVkVSHxt/dj4iPMagzFQFjwn5x7GVoVPLD6/JxxEYsmYd1+fUQt7lrj5nLluw==","signatures":[{"sig":"MEYCIQD2zDCXWQwjJQoyD8n9CS3LHL5SzVGwnp/wZIKVa48LFwIhAOCLMfI9WZBKR7gjxFPKzEbdho7dI26d2jCaCd8Hu/7L","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454489,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMxRsCRA9TVsSAnZWagAAs0gP/Rv2xIg+9v3tWdDWOKH2\ngDSbrfvVrXcc6n47s59OxnP8CVnhlAm1jzwKH7fxwZlg7Mqktm9SMs0ktz1s\nxJZ5PLpoSj4QJpraGB/0r8Kq7qi2XcqFM87WXg6TK8pyUw74mJ7UV2R7d0hb\nEknpHcWOHh2JhekXBLMxe2kVGNbUADrsi3KLExJ6ttYnkmA+5eC2FSwcRTow\nSK1lspeT/6mmBcLcjT+WbAma7KF0frGL/uMsLF4Pfk1mIEW9xaWTg6Iv5k3D\nxkYzbUmFCCeGLSkVUJwCgQ2ed7dSwvokfV/Rm5MHYEGEhDsbpvRc7Q6fdTj2\nIQLg4vvYAdcVbyVo4pKskQO3GVVFaYia5uimDKcWVv+Jt+JvsBgjVrXqTtAJ\nb0ivwomgoHTcGT+Qsx3gVYZtZYXyRRzMrXFsA92JYF9erPaEWn4/IHxy8zNz\n0kfYxheafsN4KIxC8T9BATAH2LWqPOB45hRqdEj6ne2aljpYwVxb0Ul8FQCX\nZaNrAMj0bsUhFwq9kHYU/e7WE4XW+++ePabs+99NI2ggbXRkFyAAm3yqVsyr\nG9a477qvfwjq46y0ATbn03rmn4QP8lRGcvcco4pGhkn7n5wBWECuuJ94NjTx\nO78a+nmmvXWgL1RoVyXY5Rx9YAeuEPj+6SDCCocs+o8CxMoD844sSFABoe3O\nWUcB\r\n=WQi7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"515cdf56b0195423f7134244b26cd7999b647d68","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.a1a0deb3e.0","@material/base":"5.0.0-canary.a1a0deb3e.0","@material/shape":"5.0.0-canary.a1a0deb3e.0","@material/theme":"5.0.0-canary.a1a0deb3e.0","@material/ripple":"5.0.0-canary.a1a0deb3e.0","@material/animation":"5.0.0-canary.a1a0deb3e.0","@material/elevation":"5.0.0-canary.a1a0deb3e.0","@material/typography":"5.0.0-canary.a1a0deb3e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.a1a0deb3e.0_1580405867639_0.5746058794591711","host":"s3://npm-registry-packages"}},"5.0.0-canary.181486643.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.181486643.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.181486643.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"09d7cb238b2beb9a741cc8e403616943853040e4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.181486643.0.tgz","fileCount":43,"integrity":"sha512-J/7+sipm2Q3u36nU+5vgHWWx6KqT2u80PzT5QKTM+VqHAMOSt1uvlHU4Kfun17A55Nk8/ToJAlug0rY5IxMldQ==","signatures":[{"sig":"MEUCIFZ7A/1BFPmRSpzQfg1MH5jyFJlCpcRDnks6QBVH6cFZAiEA/k4diGf33JAPs/YGmZ0JYNjSvCUzlHpafl7ZIfuqC5I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeM0MJCRA9TVsSAnZWagAAyDsP/17SHu56p+ViVWzvXPTS\nKI+JIdtrzn6n4hlnJE+3qcNOELxw+J+fscTX42U8HiQPhlNOBVGQBlkoN4Q4\nuAxnpB7LJlsbAiMGJvtcoi56UADT0CndQSMPlUpz2ke4av4C7CriCOE6XyZG\nkL8STUVYsLNsi+bctmOAzp23dteQMjFNlP4gUqXlhalrNqQ52rzRGKZ9Xt+y\nW3oUaOGxz5E5IdonBaRhI39Bs0pHsGqKGqFustOrXxk5zQ6GZzTmUNMKqNL6\nouYPjisY2zo4Ra6KLmJS/yvhQpZyygFqhrTPCCql708ac3SpwVGuMoIpe25+\nmC8K69cj9GREjSfNxCA8Vdi8X7AJS2JdET3gdVfOTBRbebidb4fAHj/+9OnK\nAAbD07CsSMbHKItWGUvNf0Ky39MjUmzDEavO5liixds/a2z405/GTiJK+1t4\nFEdNOEPmogFDabdBOBeazYbxGy9AaE16gtDJ4RRF1chITrjOEAWsvqjqNIdw\n4D8dS7UYF3g5fUmy/X2lxs2Dku5162UhQTUhDxh/IbKnuoPmkNWAeWfgHR55\nxeigjIkayr+hmbW79o9J7uHGAjl2m+KgKIRGdaxfmpf0jr8EdVTb97TP070a\n5f6arln4JP9tiih+Fvi2PRkov13aONRnt/gdfhYMAJHIK3XgY7FqzSVKpamA\n0tra\r\n=m8mP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8f29e2225089ac3fbbbbf9e1a64e9773ce276236","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.181486643.0","@material/base":"5.0.0-canary.181486643.0","@material/shape":"5.0.0-canary.181486643.0","@material/theme":"5.0.0-canary.181486643.0","@material/ripple":"5.0.0-canary.181486643.0","@material/animation":"5.0.0-canary.181486643.0","@material/elevation":"5.0.0-canary.181486643.0","@material/typography":"5.0.0-canary.181486643.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.181486643.0_1580417801456_0.9175916772611645","host":"s3://npm-registry-packages"}},"5.0.0-canary.3a85313ac.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.3a85313ac.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.3a85313ac.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b271b54346687338b6a3d62baf7c81e33a06f87b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.3a85313ac.0.tgz","fileCount":43,"integrity":"sha512-Zxh2ihGsabL96QG8es6fqpnIhthSl3kEQWB2w8fhOme22T0XkP621Uj6Shgk/lLGiweAa821PC9RXeXZeuBsug==","signatures":[{"sig":"MEYCIQD9k/N7wksCjZSoJCqMCg4d9Nu8n0e15BuZTlbJK/aS+QIhALF8bx9BIXdoSxMa9vk/9huT/PnRVT4ipjErdq6sAts5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeNFSRCRA9TVsSAnZWagAAngAP/3u/GrDyymB8E3VuzH34\nD3SiEys/c3GsYoU/DksiFzhsIC7m8oVw3J3+BXnnDHMAlAYDsxPEccLpzFkv\n52VMeIQjVkwIoCSe2Wl+lPZtXe+TzLGthfNzF8vihfH/p4nnYrKLQV9SRqch\ncbD+0bNZDamqX39hSEDLHbQvpYQOyEldXd0v/uhRDqlKuh3g27oMetptG9rS\ni6JN1i3Mn/j7Oznl/xY6qqHZPIarmpUCOR5C9WxLUf70AXmK5ic50tlnoss2\nNYQtkJ6xkIXB8g6+ldorB3NciEet/oXCrc5AtqW2S52WVwleIIiTJYEz0b+8\n9WI5l8hsBwXkoOGDsE3FvMZElCJnbvCZ02cTE8DhJZnjFGwJ04q3U3xmg7NL\nuaPlVX6buWz7zsQYcOgO+hlZZCFFfm8Xh3AIj8nO+7z9dFBnEGO3aBY/dHzF\n/+rOAGURXrbm/PcpOVu2NakNvYJa0YSAboymTWY5B1WqnosVS4XcGLHWx51Z\ncO8j+lBeFy9lSXiCmLxgvigyABjskFwxSMWySyXkEq8wj9IdexI73JE273yO\ngkK2WOnlJXgm5iYXe7Kdak+013RmGvpnOqpm2kXlx+XFh/s0qs2yBVJEFkPv\n72Aqkd3K2dCJFMh0p+c2VmEmLBy/yC0Eyd6L2Auvu4GRbjEeISmpI+BJuhix\nbtTX\r\n=MClE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a37832202a98646a817d62c20ce70cd38f089d31","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.3a85313ac.0","@material/base":"5.0.0-canary.3a85313ac.0","@material/shape":"5.0.0-canary.3a85313ac.0","@material/theme":"5.0.0-canary.3a85313ac.0","@material/ripple":"5.0.0-canary.3a85313ac.0","@material/animation":"5.0.0-canary.3a85313ac.0","@material/elevation":"5.0.0-canary.3a85313ac.0","@material/typography":"5.0.0-canary.3a85313ac.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.3a85313ac.0_1580487824507_0.935185422332246","host":"s3://npm-registry-packages"}},"5.0.0-canary.b6c7f624b.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.b6c7f624b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.b6c7f624b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"21885f5c96381e8fc141c0909db8b73a89e03367","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.b6c7f624b.0.tgz","fileCount":43,"integrity":"sha512-K8z4lYl9vhfthrogvNIJAvS4tK86j2NS4B+6v0wagM7+wa3/s18gks4EJZ1jmPZ3s6KP2bJNNqVTjUQOHngdyA==","signatures":[{"sig":"MEQCICuR70lMTUO8syPH/vae1k5k+AAwWITBc589/0QxFRkQAiB+A6fyrUWMiF6H8cNQ2/hG9+zp8W0UP0VAYmrKjG+uNg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeNF3kCRA9TVsSAnZWagAAyLoP/A2vH4hl4PT3ArKo9HPU\ntUqbiV2QNyyAgyiSc10Tm7R+U9BM8eBXRM1GuixCs3IYGOmDIIKQ/pkievbh\n3KEuJNRDldwrLZ5JTdbrNsB9+2zk7Egn4DIt3PVimpRGb2PYUd8iSijCUBvw\nqG5YvoKEC/oRsisitKu7X8WuF1dsj+uUfSG3S7qj1Cz4dAsnhlPMEvs6gpFM\ndNwa+Yx9OcIMjSxhsCmy1JUVZAFtdoIao1GnBIoYwJZkB7vMDMaQJ55tlGu2\nj0vAgZGnDQSUN5MZgxsRT7h+vAFFGlcmDOJkUCd2h8qDexsLRUxsE5d7zF4C\nVP753RFTJfeAZkvymOEzclUdbZHr9ncuHVFeb3oZUSFYNvYy4ehEd2XAnxd4\neDMuIfA0/8RfGmhjWzKTnNXoHoJP0RD65QNkpsDbeOQiBnGhZEy3/Ym7qkPV\nQed50wCZ4lt3yfD3aBsQTdfehEtaUL3xUUZURYhx1Z5Sh5lp/UZML8x2XKPY\ntOBfwWJnxHh+I/8ZTXREoBHqc4yy2sQbR3abWqb9ul21p0ZcirdG9/USZNpm\nY5DXArTbdnQgtsYjVjSYOhPFz678i5A/fEd1Bm5yH7HuCqLNFKLfFjJkwsAl\n/4wTS/1LvnPC0FmuLEBDB9cgHtg0wfMxkHG+kANem9AnZxGNPYtrxJEZKVnk\n0mur\r\n=sjA2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"eb607bfa0326630c63037143dc919ac8ec5c3636","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.b6c7f624b.0","@material/base":"5.0.0-canary.b6c7f624b.0","@material/shape":"5.0.0-canary.b6c7f624b.0","@material/theme":"5.0.0-canary.b6c7f624b.0","@material/ripple":"5.0.0-canary.b6c7f624b.0","@material/animation":"5.0.0-canary.b6c7f624b.0","@material/elevation":"5.0.0-canary.b6c7f624b.0","@material/typography":"5.0.0-canary.b6c7f624b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.b6c7f624b.0_1580490212492_0.22796822134816486","host":"s3://npm-registry-packages"}},"5.0.0-canary.b3f70ebde.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.b3f70ebde.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.b3f70ebde.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4fee7917c504d7524074a15af264a9a8f70eaaf2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.b3f70ebde.0.tgz","fileCount":43,"integrity":"sha512-Hk+YZgg5uwSKbmE/998TKuSakTGkpyU5JzrkFx6ivAFzHFM5EWSuYcDhg4ryh1x7N5uRfGghTZ6E5X72YNoYJQ==","signatures":[{"sig":"MEUCIDgt/YocGpNxkwy/Lhc9ExP72qaN3ca3SB8KcfSAHoz6AiEAyEgt+QNwwOrV9d3PhCiZ979L4sDBhDt+ifp1rQATbUw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeNInHCRA9TVsSAnZWagAAInsP/2+jTWtYyVMp9xE76dr1\nrGgemZqbgBhTnl+B3RWLz7j0gqAqXAuTuD3eJm600nRnAy81kzsqd3MwqAJw\ngpbuys9nUwZ7Ei8XVhCFr5LQjO8KXSVvhJWsUwS9ESZLemoCWELfZbq2l/mq\nLoQ+hTudYEd5Jpmyb0Avd0rUMOrvtCXuuK99thtAKGc93Y5VFuenU93AzKwa\nbOhbJdjr/8XZopSpNxIAczgt+9/3heYip95QBRfO8/IpcsMBT8MbLVS36KEl\n+oEa1+4St7obwVJH7HKtRP7DiG34HrSPr7xWoRQGUH6iC+VyB6mTbf3WdAeV\nfv4UNp4MDxhgrerz4fyZRHBft7oF/6QU2KTap58GsG2UjXf9UHfo7QJqxRmb\niWAOYKU93WCzXOWEuhZQFadM2qGHvDH2lv92A/Iz1luUNYv6H0xeVVJ9N+S7\nhi1ZUlCu9r7GCiIoDDV4pk0NZZeeGdN0lL1KnHaeL5Lb4+8UKHgyMxZXt7LN\nCGSa1xIAvk1Rnts1Wy7YSGwThZZPTJP35448P+azLLaj6bTG/jl+RxHvt80u\nbmgcZPmTSveevTLui6qcEp69WJ+aFLek/psBKEon/m1F/1eInbAbUVAqymIf\n7fjDdvqK2FX2VmxujxwQHYNJSfIGXCgkdOEsoJFaZ18zzGDDxAgvOe6nB/pg\nVk7d\r\n=mEkd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"00a0473670032b0ea60db83e614385e1e3166dc8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.b3f70ebde.0","@material/base":"5.0.0-canary.b3f70ebde.0","@material/shape":"5.0.0-canary.b3f70ebde.0","@material/theme":"5.0.0-canary.b3f70ebde.0","@material/ripple":"5.0.0-canary.b3f70ebde.0","@material/animation":"5.0.0-canary.b3f70ebde.0","@material/elevation":"5.0.0-canary.b3f70ebde.0","@material/typography":"5.0.0-canary.b3f70ebde.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.b3f70ebde.0_1580501447212_0.5736061607350433","host":"s3://npm-registry-packages"}},"5.0.0-canary.3e782d8f8.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.3e782d8f8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.3e782d8f8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ec8d5a969ffa6b0cb4ef071348f6ce29047889f4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.3e782d8f8.0.tgz","fileCount":43,"integrity":"sha512-T/x94cxtZOfeV8rjbxcVQFhjDctLCliwx0/yriMWy5j9hDxoJS1CXGtWTEaYNsV7DAMy43zpeEDSo9ULzb/Stw==","signatures":[{"sig":"MEYCIQCN3Z8fLZE4VuC9N39fnQCHqv9mVCIAW/AzVEsULftvEwIhAI3KvQ1R2SzUPW43LVZJ8sf1zP5SYpiPjKKbfBM8QEeD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeNiIiCRA9TVsSAnZWagAAh5IQAILETY4nef9kEINJbf+t\nkera4Ji27Yrg1lygvnv1IJAf1xADLW6SL2bh5u2GkGYQ7oqfx/v/CYGAuC/2\nGUwXjta8A3GgEqaLS3jFeeiTVHlojvAl6Fal3+KnzkAAlWiy8uNzBxbdYbnt\no0xoL36V9dIDO8wnpBghIHVYoSl+nPufg4Ud36cjzSa8/HP1pGzEnDv3jiPM\nLrBLb3qBPm6ZSZTydxr4xPNffZbqhWnXbHgYpdXvUxf5FbS63DKclhtadDiQ\nopr+DWtdD7otRX489t8gSRPDm0gzF0KWp0nKHbsd6DlOchL4a1UfxVxC2cQC\nmCVSz4vJTua66r1i4hSNLDeAmgWXYg1wWQ7gZzSeVmV7YH3xaXOITf7pmj1j\n3Hk+onsiTbCNjTpY3oLqP8S24Ow9IgJg4o4FfTl/BG7Xar3pL615WMbxyFhL\nPQqqttD/1fMJjieEDEXB67oPYT3wuL0oxMp9JBpgo6BPY0+C/1AObWbRiLYx\ne4Me4uS/pvtz7DadgA2w/W9bulEWlzYjsByGYSEzlRNwjIqBbfPysrSVwqw5\nyd6RTvF7NZaGK415ftmPwgMsK83xaNXceeiTYoe1hKsD3ydNqeAuuPorfEr9\numLEU0Pjv/gfzXuYirQ3G7muwvV2mrMMcKH7wSRW5KyRAmqd5RwA2b2OXGv3\nwKoj\r\n=pJjD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8aae1fd4299832f77f4d1d51398e5b28ed5af5a1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.3e782d8f8.0","@material/base":"5.0.0-canary.3e782d8f8.0","@material/shape":"5.0.0-canary.3e782d8f8.0","@material/theme":"5.0.0-canary.3e782d8f8.0","@material/ripple":"5.0.0-canary.3e782d8f8.0","@material/animation":"5.0.0-canary.3e782d8f8.0","@material/elevation":"5.0.0-canary.3e782d8f8.0","@material/typography":"5.0.0-canary.3e782d8f8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.3e782d8f8.0_1580605986269_0.0421502701007197","host":"s3://npm-registry-packages"}},"5.0.0-canary.535398572.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.535398572.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.535398572.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4f4eaf00b600b8050f3babeaf8ce1c04e81eea28","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.535398572.0.tgz","fileCount":43,"integrity":"sha512-9AQNcg4yoZpGM0AxT3vFi+bJ4L7QBvhyI36qPYNb+QUgV+fmUm07lu9qFpF9lIHtKaAw2ZvfkSELjl0v3RUOxg==","signatures":[{"sig":"MEUCIQDJNBtNG7qQyH7wbAF2WxjHEMStRmKXrAFG/hexzKT4XQIgFL24bm4s6H1eJw+eRcTU9kjXkKx+Cly8jJVrwmJlcTo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeOGKTCRA9TVsSAnZWagAAlrYP/AwBqPCFP+vkGtBoG1aE\nyJDIyKSNk6EtlYogqSM+udzauKV8kBG9kBidHEh6y0njhcRSuk91qsK8uR73\n79CvKTPOat7suV57sopuYMaLTEpSLDxvcdgC4z7OGd5J+LEdmu6ogeZEv+H/\npXFO1wyf624OnAbsNzXECq3qzbfxdHHCfyorqs2Rr9jpRj0A6lsTElcpeOxc\nKEba8Q/WCMDIoA55YjHR32ZYTgExU5DJz+mHyPpxZ9ehw/H7n8Ffyd1GX4lx\nk09HJYuuDSMge9+DyAnZHNRjRuJIrhPdgiNzbmDS0QxBPIY7T62ZeqT0cj/G\nQ/czTLFdx8KmTp5eDpFE1+QZWg+OqUnreRlWHnEWFuUB6iUOGTi86neB98wl\njOgR95aBLmfJCADjBeMEx4lK56ax6PHDJF1q0mGVK0L0KX41YKTnCst2o93G\nlr5eszRjHTiVolV9z8tBR4X4Iu28/WewWgBN0rcM97DzY4l5k4G53PE1X6pZ\n5ZNGjfRd1YGu3Ou56JRLQVBHNTiTO7uTgpE1OLpeLbQHU7+LgkB1sJnyUMZl\nba59D46Espxmc8neUW3+6WTm4/Q2IpRZefuuNhkMuSHnvzu3B0XGgd/GHQBc\n7hpW1a2cW7UYanyxrivTL59/chqEZmvs8Mepgz7ophf8dmq+cvtftBC2pl3V\nYr9B\r\n=ccdK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7f68038e23db60e7b4c44c1b17a6a82329805553","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.535398572.0","@material/base":"5.0.0-canary.535398572.0","@material/shape":"5.0.0-canary.535398572.0","@material/theme":"5.0.0-canary.535398572.0","@material/ripple":"5.0.0-canary.535398572.0","@material/animation":"5.0.0-canary.535398572.0","@material/elevation":"5.0.0-canary.535398572.0","@material/typography":"5.0.0-canary.535398572.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.535398572.0_1580753554742_0.013647387723039417","host":"s3://npm-registry-packages"}},"5.0.0-canary.5ff33802c.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.5ff33802c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.5ff33802c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"af1aef1593036c4cfebddc5754d186d36c6747f7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.5ff33802c.0.tgz","fileCount":43,"integrity":"sha512-kMtbH0VMTkmoQhmHwIUOkyHf8Glp0SV82T/0bQ5UGIB3O5nA3IW0ERXh2jI1ca+sJBV9O+cORxG0RNaBxEo4og==","signatures":[{"sig":"MEYCIQCuuL4M0G3XRtvL/aVXNOlFm82CGEMWupQWFXKs4iimqAIhALZLufihfgzneAERhu7DO1su8/qINIQS60quvsgCdz0z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeObIlCRA9TVsSAnZWagAABMcQAI4vzGYyoHcAvb6NK4eA\neYgJUqeVoFtr/ME4i6n8l6CC5s0yfP6tZTjBzfGULwtDvuOiHavrnOVUGDtX\nt5+f82K5Shn0Sn5OERoM8PmA8/4qu8G0DTI/eTBIchPjEbO40EjIOJqpMEL8\nsLr8lzaGf5kx60EyYxrWlVAU8OyK/mXP4fc2uj7I71qUMlSCtGigQPm8dxV5\nkpq/t3ZIYTHHVMovk3KlNACOCBtv4Lk23OuohK2iemOLSsp8yCzqGyfj9o9O\n5C297Yuv5uRqpndaZIcDpfvYyzb//QtFYzkKUVoatj1GWvnJTusK0AFLv+HT\nJFS3wvHPJB1/pAzrsSLi6Foj0czKoICclivpPO7vR49QReCXA8l+P7iuCZXD\n8OU0Yc0hLrbUZzsqVDXfkbcTGjknSuUS/yp/YV1dSkX0NwCn6XLJJdbgFySA\nsFdEpPlIZ3jlBf24bDX87vG+aJ8vphKRV2qlh+GT5i5SHFURCbn1UO84l6BD\nhqRW+etZfYDPCpwB+Vcir5ohQ/sa6acv5hSW4kEq35hG/YJZa9PODnxlOpti\neBPelmy5ddAZJ6y7NMLMOutwGda9X55qHUY3iLC3poqPwlZ7ERT5nufOk/S7\nHFP/IM7Wv8PwZXpEsQdcOppacHeb26kdIfgLXMN1B4RJMAYxLC/5RAGP1Vx7\nFPqS\r\n=Mh6C\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"61246014f77c40c0d6594f32e40f4ce98d8f7c8a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.5ff33802c.0","@material/base":"5.0.0-canary.5ff33802c.0","@material/shape":"5.0.0-canary.5ff33802c.0","@material/theme":"5.0.0-canary.5ff33802c.0","@material/ripple":"5.0.0-canary.5ff33802c.0","@material/animation":"5.0.0-canary.5ff33802c.0","@material/elevation":"5.0.0-canary.5ff33802c.0","@material/typography":"5.0.0-canary.5ff33802c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.5ff33802c.0_1580839461187_0.9162730302137809","host":"s3://npm-registry-packages"}},"5.0.0-canary.1eb29491c.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.1eb29491c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.1eb29491c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7a2fc0591635fd7da130e20acaa44c5e4a4c6a54","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.1eb29491c.0.tgz","fileCount":43,"integrity":"sha512-Mcx5loIzkpeXjeiDqxm85hIwxV/Uqbi3nkh6wQmDO1XzPGpaHZrpYrkO6f27eqFME0MMAJm8bSq23YNlISMN1Q==","signatures":[{"sig":"MEUCIDi/cKMWj2zMBUU04nSXPeQF0hjcV9m1TpmH+pDivA3cAiEAxRqOlPPaeb5XkTcf1Iaqq/kD/SKZMv+RitFvr0kq0ug=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeOduvCRA9TVsSAnZWagAAuTEP/1mJ/0uuPxl/TDN2Mog7\n2g/euMyTmVfHMksB/fC9lxrjbOyOfzZ5KMY/yMrngFDi6+70HGtit9M+xZf7\n2dj8SN4Y6mgv7ybGi4j4e7AXVcncOnr5LCnzcZLdTziKuae2dy2KlsflntbI\n5RBj1uZSe6NGHfbvsTxkq78fBNeI0slyPNQffJtC30VfV/Rx1Cbk7llBh8Rx\nnISJh7GYxQMKURN+RWjgCSgC8KyLpVZxyDcMSmq8yIM8UAhmqbcHjWEdozi1\nyQujZkRxZYNOB1Bgg3tURSgviov1yp0r3nw5QVgCfErSD0UVEFX/69oIxWB/\nUSIWU38sfMGs1R+FYpvZ5UPSo7fC6S9tpBuT7OVZa0lHQZ1FZKT83GOOYl2d\nvKjgSKPNHTwxbnvhO0iHmMx3Tz21Wf/0XqSd3+C6FeJKtHBf/fMkcmaDZHyh\nUVLdM5x/J/7hOXBOhx6D2v1ZC9ZG7BdHFXbyDV9oGsnRYOIDw9OGgacby+Bh\nSBFEBohBWC4LSpei9uinvt5KA0xI4peKw1d/0JfRV1X7Jaeub2eQLSPo7xR+\na8CPVZR8jT641KSQdjLZTgDne5jBIUx1wsWY6YxfG6YT8Tz+9W+Pksl7qSVv\nQYDdqkWNg0s7cFDNq76T1Y4WtW/DoyFcbPAg/4VueEDhhTMIEVRfrp5mL4Pj\nj/7I\r\n=dnGF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"689b043c66790b1c63b5d2037a1ed800248443d1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.1eb29491c.0","@material/base":"5.0.0-canary.1eb29491c.0","@material/shape":"5.0.0-canary.1eb29491c.0","@material/theme":"5.0.0-canary.1eb29491c.0","@material/ripple":"5.0.0-canary.1eb29491c.0","@material/animation":"5.0.0-canary.1eb29491c.0","@material/elevation":"5.0.0-canary.1eb29491c.0","@material/typography":"5.0.0-canary.1eb29491c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.1eb29491c.0_1580850095455_0.1044064137135623","host":"s3://npm-registry-packages"}},"5.0.0-canary.4c7154b26.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.4c7154b26.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.4c7154b26.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4b5956f3e390e21f4570d4ec4afb036383bc1b26","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.4c7154b26.0.tgz","fileCount":43,"integrity":"sha512-dfbtQ/wPYiTHhoAWuOpVCQAlk6MQz5R06Uo/gJbPTYuqw8+mYOJwcq+WyqQ4lRsJS6CAjJ1r2I0TvbOX6Q4asA==","signatures":[{"sig":"MEUCIEh3xseFeEQGPaWgkvLTOEGFmHT5l9v1vL73Sx22iWRQAiEAwReG/RLiDJ1qBtJkyeMgo5jA65FOBfuOYymsBqHhPek=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeOueNCRA9TVsSAnZWagAAX/0P/ii8Q2puF7SA2VK4Cx0h\nwJnH/HPywKAziVTS81jkLwY+8UXs53YNsjV5JGkgN+8sY+A/lS/tWbEkmuI5\n01oGkk5n64IIiKkXEIjebX8Jfh9lYH4Rwf4AAkh/I5b9Nyary6fex7JK0qKC\nFY7p7cZMIeoAt0fxeX1AmoolFfS+/SaZ2Xj2AV6iG/Fa0K+bZtl+TYFQm6Ge\nOfo02j40qhL8hM33cqWpX5fo3oAfkJfj/Zt5kzd9eJH5tN8ftHO1lwEflOnV\nkvC7FWCzJHi2ZRFOGBZvTB6eU3bQc6Ea4MyS0KHHlcSXB5NEzmYBl1WEMxNX\njU5kzploM+Q2oAm83Filg9kXi2umfB7CmNVARanCiLWXXj5Yq0zZu7WIcZos\nmoQbwinwicIBt+lDrONuBGEzhjemp0dzvq5fv5YYOjyfLKzEF3ijPXeJfNR4\ngBVv91rR4rndjD1WXqFng1KfK20PBLpYlIuoU2l+NCh5rok9hZVOMOIVd4Jq\nnvad1SQeUgmoqD5Vi6NAd14refWfRERIKhIYApnE0lw9NKiMYvZmqeuU8MsW\n5ccnC5aMOjNZWZk07zdHV+dSmjVxTLZZ9e5F15GY3d3OUxsZSOIwAvpwPMWC\n83mRURGpdC5S58ZMgnAs30xNsXNsA9AIgBV3iUxD1ajhOsQfT+MlrAsAirUi\n4pjz\r\n=P6Cb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e15f799c180f6eb07455eb8d644b93db93df5402","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.4c7154b26.0","@material/base":"5.0.0-canary.4c7154b26.0","@material/shape":"5.0.0-canary.4c7154b26.0","@material/theme":"5.0.0-canary.4c7154b26.0","@material/ripple":"5.0.0-canary.4c7154b26.0","@material/animation":"5.0.0-canary.4c7154b26.0","@material/elevation":"5.0.0-canary.4c7154b26.0","@material/typography":"5.0.0-canary.4c7154b26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.4c7154b26.0_1580918668852_0.7631486366589797","host":"s3://npm-registry-packages"}},"5.0.0-canary.ab5f49a2c.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.ab5f49a2c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.ab5f49a2c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"72a1434f8665eb4f4940b134a30811671fc0d2e5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.ab5f49a2c.0.tgz","fileCount":43,"integrity":"sha512-8rWZq1v92HpFg2NjC6IrJMdy0/dJFYv4OZ/i6RFV39SgCYpCbgtwpmKQnZ2DXRZiDMNTa0SYi3KJcP61EfriZw==","signatures":[{"sig":"MEUCIQCzt0NsOlsLIzE3GeQkY55NN/+x4lTAk/rd5GxUCapS9AIgF7mXyAfL6hyu1/hyfQ9ylOZWZQpZNzQ8pT6MK2GYPyI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeO1DfCRA9TVsSAnZWagAA0a0QAIpoYBd0T0g+AXnLfGiT\nXbUGgK7pjHesDp1T0iycVBjSypNjFs0vt+TmuBG78KNRw/zJFXDwgF2AiHuq\n6W2PFD/xVU0W4/3rS9LGDRlOCl9IGuOl9PwW/NOMNeQCE4lyxjBkUU6MQ6/P\nXTLsROE7L0UpeQzFmALHs1jTUqooPl7n33/Vy5PIzsnin5fZD9Zn1T4RuDSU\nGMdVwjohWdIPyihom4vsiX6FpevFhAn+fogfSQzrO6QCNtJ8DkD9i2zkwoqJ\nCGnEZUOWzdfU629wizvEmcm67cNqX8XJcIpzb74WelbmFL2qTL/7rBaLb93D\nUKrx/6ipLqa3ckPRaesXucA6vSk3XaYzRC385YOYt4n7xpBEeX9JgQnAjVtE\nJkzgzbehfyNB9XCwIXgpWLQ6RvrmKY/r4rku3fAsKus0gW/Xst+H+XcvAobk\nlZ0IRR1lQsiqlydnI4BDF7/kcyUWEzAVY/2qXwZEINWUMfbA/S0OX1b69AEL\n9HQYzi1vySG7WJOfCLw/aNM9sOX1yiu4SPC2id01ku/rxsidHb0Jax9Ba746\nF2nUZwGrXI+iO88TipoT5QDsIMeaadUpusMc5U16xoLZtTOQD5hIo95Dkp65\n1x0AWuVkPHRvX+MtQWiAjY7qabJzH+d0qbFwq+3JSTAmilaMCnTM2K6TSb7e\nxt3A\r\n=3hgq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9e2d33465e4a55862766486d77f187c0bd37883c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.18.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.ab5f49a2c.0","@material/base":"5.0.0-canary.ab5f49a2c.0","@material/shape":"5.0.0-canary.ab5f49a2c.0","@material/theme":"5.0.0-canary.ab5f49a2c.0","@material/ripple":"5.0.0-canary.ab5f49a2c.0","@material/animation":"5.0.0-canary.ab5f49a2c.0","@material/elevation":"5.0.0-canary.ab5f49a2c.0","@material/typography":"5.0.0-canary.ab5f49a2c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.ab5f49a2c.0_1580945630722_0.6693299517989582","host":"s3://npm-registry-packages"}},"5.0.0-canary.c541ebe15.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.c541ebe15.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.c541ebe15.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d6cddbf2e12d346994ad48794ae596a03e41e3a6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.c541ebe15.0.tgz","fileCount":43,"integrity":"sha512-JE+8QkTIJLI7UbsrvVaN2TMGTCYYBgQJbpgho1sNAIonuj0RzPrWf5u2pR41TkRj005+m8kaoQ6ESXCaq4Ipog==","signatures":[{"sig":"MEUCIQCv9X5/UfHwyTDiwDKhWvZIBeHt77tFj2EdQ5thFRiRVgIgTQkhiTO0+kFgVhh5AMd2N8K2o216ibv8RUmbZEodheE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePJN6CRA9TVsSAnZWagAAXO0P/0s79sujklXYWYb/XU/d\nmNu/SAppzqyTVrLrfWQraIZY4sJ+ZmPue1D/Q2OujY+AClk+85k7aH3d2+04\nhbvAvteJQCtb5ysUNO67Ykpz1ABk+d+Mqi3C7W/aB5UVJaX7doG/97X4NEa+\npsoIgpHFCWTUBdXBgVGghK8PLOWLaa1Mzr/TkD+gmXyz8yHVSCQg+aI0nGrO\nkKV+Pd03YJ3GqVwIIngkyWrPXY15niStWrC0vFAFvHV+92968EsxtTGqRSc8\nYcu7H+YYew7rskKcq3i5q8lptcI2KHLbR3yxKPtUR+MDuj7RLd/1I3ox/t7g\nX65Sc7zqMFdYbjvWWZnX5o+/S80Kr1qeDEMHXvfiFy/YXLI2XmEBXMTfNI6d\nMV9pec3TPLHuglzkdmqTID4T3AHYSHl3342kH+Dyt+12R7LL8tM7oBL2Itsc\nfPXXh3JXoe6imcs/HD3jDli+sfl5mMSYoELuDJCol0xTcKS6A1Nf/7FFN39P\n84cOJcNEa1x6kxyvqgMQ/YgRgIDMIfggOpHpExnY7g4kBEFO1AcWsV7Qmsm0\nPvRtmjTcNNGSyc/r93lH9UGHdJPIbQCMcuCgFKj3AFNqG65aL2/oASPwNllE\nBQZIxOo8FBrhQzWlXiTaKKlE+6eRmtAAMUoi0D8g+42+vF6wHUwZMPmAob7u\nEuIn\r\n=Vrpd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@import \"@material/top-app-bar/mdc-top-app-bar\";\n@import \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`mdc-top-app-bar-ink-color($color)` | Sets the ink color of the top app bar.\n`mdc-top-app-bar-icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`mdc-top-app-bar-fill-color($color)` | Sets the fill color of the top app bar.\n`mdc-top-app-bar-fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`mdc-top-app-bar-short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"87d5a39f72f6a882a8412df86762c91328c6d985","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.c541ebe15.0","@material/base":"5.0.0-canary.c541ebe15.0","@material/shape":"5.0.0-canary.c541ebe15.0","@material/theme":"5.0.0-canary.c541ebe15.0","@material/ripple":"5.0.0-canary.c541ebe15.0","@material/animation":"5.0.0-canary.c541ebe15.0","@material/elevation":"5.0.0-canary.c541ebe15.0","@material/typography":"5.0.0-canary.c541ebe15.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.c541ebe15.0_1581028217950_0.1625142435317266","host":"s3://npm-registry-packages"}},"5.0.0-canary.98f7faa05.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.98f7faa05.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.98f7faa05.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8f8579008d6718cae5ff115297fda4ad1519553c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.98f7faa05.0.tgz","fileCount":43,"integrity":"sha512-b47Ll/1y+ChfKmNPUJHcmX5dzhpKDfzD2DQ8lTsSEbxPUIVpDNbvjw4ccGli2rfgR3JxvA5iH1tek8Y0xqPxeQ==","signatures":[{"sig":"MEQCIEIiUzkCtjQSIcO0Qoabf3pjR9qoLMaZPIdBERda/5o8AiB/LJEAYg5mRdr0WZrt4d9spo2jyrhNb0tbFAPLlsUbzQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePbjFCRA9TVsSAnZWagAAyv8P/R6Y0rjqHjXeJQbpCYaD\np5R72jvoGx/2ak6ueF25jGM7eBpmOjwEo29xkkHDnenxof9tI/3Zncgob6vE\nt4MI42uR4X2uSPsNH6y8pxdV3f8JNQTsuKBV9R3KE0efy1J/d7m5Y7xfk9f+\nklXXvuK4dRf1rbZ8X67LWmt+7LyA3TypIXQ8aO/LMcAbsaJehHykAxgYrPhF\niFUQtQJ+umXbE5MXHlvdD4ldOjWrXHLkZRx4pst1jjOgKnpeAvelRUj4RgB7\n1uOSdL7IU7+KYxIwlM/V3M77vAcJFF9ezUe8oOoETpfyGexLKllEGba9vaWp\nMPPLAxIlla6temFjA8MVz9rstK8Vq4P2835vlOzLq6goA5fGd5sy1wbiQ14K\nCo+5ETg4X9dFeeq56xo5xm5HjFHgADhhTrcGEdzkJ1PrpT2OFqoiwlHuSw/D\nqrfxPndLnn4q/DwfuoG+eMUBkbA1EdobtYNpvM1HfdQUE4D+P2OsV/buM07P\n8vmx7dvpfjfjiuu4f0UoPYES2FFA5ED1D0e+f9LVqrG7snju2qs4b3CmpX3s\nzRlbt+6gMWfZoRBlhX3dLMfgQw0GiDf7zBGoOFPF78iXU8sWDaUMziGcpsxm\npk/TuAJwKDcgBJ5xNl/h0Pt6kmbt+qPzLpMkaW+O9Q1FFzaRnFZeVBZZ/FSl\nkmGk\r\n=oc+y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"698f18ec0e8c9dcdd38beb5ab6b4cfa6218fb288","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.98f7faa05.0","@material/base":"5.0.0-canary.98f7faa05.0","@material/shape":"5.0.0-canary.98f7faa05.0","@material/theme":"5.0.0-canary.98f7faa05.0","@material/ripple":"5.0.0-canary.98f7faa05.0","@material/animation":"5.0.0-canary.98f7faa05.0","@material/elevation":"5.0.0-canary.98f7faa05.0","@material/typography":"5.0.0-canary.98f7faa05.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.98f7faa05.0_1581103300507_0.06672435513012887","host":"s3://npm-registry-packages"}},"5.0.0-canary.b4727e43a.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.b4727e43a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.b4727e43a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"71a948731d30553e0c671195e088d72854cbdad4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.b4727e43a.0.tgz","fileCount":43,"integrity":"sha512-ckw6vTEnC2dv2yeI4QshU5JzoYw6WYYp/08uDcTlKQ0Iz81XBtMPnBSFqr5iC1u3Kh+2JkeEwvbWTj9s9N8CYA==","signatures":[{"sig":"MEUCIQC0DJdkYB6T4Tgbep7pFTrkk6MzsdE1NvOpmv66lfHHRgIgDxXUfyyWc09AeZqE+Wew9cZAq2FmIhbCBVXOTe21XFA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePcDJCRA9TVsSAnZWagAAGKMP/jSf1uFJcOba+cc2m2JW\nWDo/WKk+tcNUDcKNA8bRZ8zHBo/6Wc053AFtSlRAMT+QvI3HWs7MIueRI8y9\nGWRP1+kcbzIFKN3hH8MpVwyqrfiHt0/yTGe6WoMqdMhJpH3Aje2nwAFRA4v/\nXweLWSxp1M3dhVz1YMm7KH0VOn2BM4X1vrwphZAc5RddGK+qHNBNTLfnKK8C\n9jxYkh0wks4/8kjmS4LNjHpzrZykA6RM0FR4aC7RldzWmQHWDI8gHbBVm2QS\neHCowKgP2Vnw7vhvzruE0GkIAw9Q7DcTw+M9CVZSY9S8KIJItbmZUIyFJmAk\n2QWuSFJWV42I7EFL0l/k5FrglpxYpfHKPaQmA2R6Pk+cfczLTu0HVaps2unG\nCQkdny5LpZMF8BhWUh5PGsvEOeE34NaSHJJpaBxGuNmYysxYc/2lHCH8gf2c\nezyuOZDG/G/Hk5bshNZ494dksMgxqgWrOvGSvpMFVlSt0DuEflkL93uXZUf1\nLXXQuupoVCVjeUnBcJDrN9aWfsAL6dtQCWcNTzuAX8eAR+bL9np3txRJUHPr\nX3FzlLGo8+1Gk10THgvcZonaeryj4h/nd7lgIo+Nidm4jZMBsZDz4fDs1IeV\n8kA6Bk8w5pSjEUcbXauUpl67PVlSXDTp1H75XTKADB1xuE16RmsG75Gj0buA\nxpmb\r\n=jEu6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"140a0d7a10f30d8ce4b10dfbe40bc63136e206bc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.b4727e43a.0","@material/base":"5.0.0-canary.b4727e43a.0","@material/shape":"5.0.0-canary.b4727e43a.0","@material/theme":"5.0.0-canary.b4727e43a.0","@material/ripple":"5.0.0-canary.b4727e43a.0","@material/animation":"5.0.0-canary.b4727e43a.0","@material/elevation":"5.0.0-canary.b4727e43a.0","@material/typography":"5.0.0-canary.b4727e43a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.b4727e43a.0_1581105352998_0.18484819870966196","host":"s3://npm-registry-packages"}},"5.0.0-canary.91d9d5a65.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.91d9d5a65.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.91d9d5a65.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"75aa3eec83d7087bb973119537e6a2be63a0ed65","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.91d9d5a65.0.tgz","fileCount":43,"integrity":"sha512-lbQqO0IBpJGim29IqytZvWkDzEqP/MwjCMP2UZ9zI9m/KN96V3VVdiNK9P5IgT75GtXlCN/Jg/Nro79InWumpg==","signatures":[{"sig":"MEYCIQCHMyWe8S3+3E0YqYTdt/JA0TyF6ZB2b4bFPKPHYCTZKwIhAOWJJ/R21ewes+DOFOuROaXu6qzD9SNNifIQzqBfUWMS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePevsCRA9TVsSAnZWagAAiOMP/jmMbwBUm41kjR4Kv9E6\n+zChYiJn5beYGJo/kQBFF+zMeKpPawXQCxBU6rEh7X4eqlpyxHFu96QGqkus\nwOt6PYvNVtOeUNUgH7DcjK+r0cPQiFZlR2RhQBmtgz85sUHLfOk9hHFvf2kz\ne0/9F80d/lvw51uabaegXJncXA8OfN78ySrYqYNMN5angGVc7NyB6eEgSqLc\npEMtH2Vb89MMwV3gglUo3V2mk1jISjgxYRNHEZtZWrgdg2ed9kZ5p3XeoIxI\nJdCY2CSF8MXdncn9jHcOE4/HVaLFmSk1FvNg657EWmjBkVGwby7+0THr38Mg\nNN7aZmOJDpWZNPBcLOZFLp8h+ZeYDLEMyGwsluxp0jnIIRGdtJQk99QgkRQ1\nc3EnGNR5MAKGxL47DtkHhvI8euy/wfKB9pcb9749xzBUbgAPJSvi8Ofr6E2B\nA/q0Z33YCTWFYzKNIhT8xyEim5EhMR+Xh/cJB19aCRZmA981Eojgkspxv/60\nmSdLdK94SAt99Nhk4qVg7Fjmc19KUG/i3kzWrAd9SXawyZPy0JXaPJJbKyUs\napEGDNuTkrMQQnJzXBQE96+ggmcwkVFBMpK6+F2B7wfmF0GQZHUofnIC3S6N\n02IfHrUmYKyz9djBWlko4zMRFGbTDGOfEDo3VICSI2tvqebwqo8Srv2v4ENC\n90Wq\r\n=ya/J\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f98276c6136d4bd38889e0b4d6354081a3ca941c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.91d9d5a65.0","@material/base":"5.0.0-canary.91d9d5a65.0","@material/shape":"5.0.0-canary.91d9d5a65.0","@material/theme":"5.0.0-canary.91d9d5a65.0","@material/ripple":"5.0.0-canary.91d9d5a65.0","@material/animation":"5.0.0-canary.91d9d5a65.0","@material/elevation":"5.0.0-canary.91d9d5a65.0","@material/typography":"5.0.0-canary.91d9d5a65.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.91d9d5a65.0_1581116396574_0.9523041777876593","host":"s3://npm-registry-packages"}},"5.0.0-canary.d5c006ed1.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.d5c006ed1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.d5c006ed1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8d013f32c5c02b472ed056ebab5d7ed299919adb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.d5c006ed1.0.tgz","fileCount":43,"integrity":"sha512-SxFTxZ5Ney2fRG/Hd2C7VWN1PocDCyR3OP2zIEyYQWWEVmzPTtSUZXFe3cchM2PuReo2rDT4uViQbkA5Mfuzqw==","signatures":[{"sig":"MEUCIC+BVEoxIZsW8lct5ZAGlNIaUL7MW1OyWk13fGjrszQaAiEA2Zoz9HwrWb5j/P5QXE0hEL7ADnOVM9FOeBCTChDA1g4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeQYmLCRA9TVsSAnZWagAAKj0P/05frQ9dIMUrYZ0J8DSi\nOlcSHF8DgXL9T4NwWQSwuAOS7WV3kos/8DdTcKTLFmYyWwwG2nAp/nJ5ueTu\nMkyQHdLcMWFxlEk6ogBsV/KG7f0n+vvhCtKQIxAAFE6QcdqGTuVv1Ui+7HZ4\nCXAJv2zgpy1v+cpY/+M9mRrekgWr3sLmvRibF/zWRBZJPcaJG71ybiTirDGB\nFJNARK2B6J/Rfu2tnO0tooNjDpt3u27woLrKWpStAwAybf+BglHhUxqGWjfH\nJPRc2gCE5Cun+pdb3+9RbxZHDmzCfjbFA+CshgULPccv6lPdBq1wsjckzuGl\nM6spiaCRw9dC4rotrOFYmlDgHkhRB/HauDGAkuijt4YxJcfjyF8YNXZzocyn\ntY3RzKjQakMP9ObjJK4qlhktovFIaHY5HKxqGAP+UwK3eUZkPJPbkQJzYIMQ\ng2YM7ESbdpL5YKKUMZzsgjcYvn2BDCeak0XCHyTkRxlmBoyoX1vS9aCLpcG/\n+uZJGBiJOyk0YgREsmGwksr47Pu0i/NADSGTiZwpJgR058MTah8an/x5fDVW\ntqKb6Y530V2lxXgmF1jqJm4wEEqV4tjnXi+Es6Kt/0CHZ4492NiUhYfuxvTb\nv0SQspIbrlsw5yESbrH7HhdCO8Nbw6Obb8HwUxuV7aV2s1LUQMCizsAjQsWS\nZDpK\r\n=hYtX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fe50932259fd2af2b34c60968682a0b94f7fed66","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.d5c006ed1.0","@material/base":"5.0.0-canary.d5c006ed1.0","@material/shape":"5.0.0-canary.d5c006ed1.0","@material/theme":"5.0.0-canary.d5c006ed1.0","@material/ripple":"5.0.0-canary.d5c006ed1.0","@material/animation":"5.0.0-canary.d5c006ed1.0","@material/elevation":"5.0.0-canary.d5c006ed1.0","@material/typography":"5.0.0-canary.d5c006ed1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.d5c006ed1.0_1581353355240_0.9732868864201627","host":"s3://npm-registry-packages"}},"5.0.0-canary.559f1a570.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.559f1a570.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.559f1a570.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"091a01a465d030f4d3b29402b8d126c376af8ad7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.559f1a570.0.tgz","fileCount":43,"integrity":"sha512-Te6ZE8Kmy6rDswh9FUwZ4CMIaVnj/O0APw9KyMQcfCeJx6jBLvyEYlhrRHLoxTPvb5SiDh5m4v9807YcbJb/cA==","signatures":[{"sig":"MEYCIQC7nYCQ1cd6yb4ncUnaiXZP9W6jXbAJ521JA1cAHvwFPQIhAM79rPWWTVqZA4xRqJu5I1aP2yIDNg0cDlKq37yRGtxi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeQZIVCRA9TVsSAnZWagAAlIIQAI1QGZYaoyefsMuesnCo\nBgtPlxL4zv7WckClYBACdMb/uEod/i0B1y9AbMrBBiO4LO7aRa3b7766J7vH\ngEFCnIDkjlOxpQqIOn9+D1g6Bbl6X5ZFntLZ8PDzw1soP9vNWVLxdIkD3F/+\ne0tlL9gq+hdMm9JH001q13WPL9VhqbbdNoYncfXzOXq3uBno49yxYvUlKnEz\nCe8RoQQuWxVFiFsuauWrz+AjMgaxg04uDKA4eVS/zhC8LSDQnf7ryayKaFkk\nhbNeaBNPcs5EEeMyMD3hRdm41GM31fq9HPI+BKQERKGfSDsfc4RdvSMLThXC\nDVXt4lTNaA9c2rPWgxuZNGCxUrlbyIPfuuv7AoFiTW8fzHh4EbEYcSgyw8tX\nUHm4SE2GhlMOKWcEkveoNjrWMSosYaPcztdj4NnafiHmpZk3zjMhw4+o5c4R\nRL+Oj6Qf6CP1ROtVwqkj8KJKpJk34Mr2xkflO7NVVBWQKlmXTifGBMdu1Zej\n3/aTKA+IM1XmGf+42Ndbu/ZdtdKtpRfLMshPSC6KTKCwL12astxihhpVv5ks\n1Od4ahxTmW6PjlcBYVWNrRsnd7lB6CnVHdo9o6H0/XL3k2aVD6e2U9OKitLJ\nFiYfJ87VgvhCLm8/g9RHJDIx3JR8JXeXfxkFjNbRk9zwfIAGK+nFs9+glUJr\nVko0\r\n=7oPu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a4adc0cb689de4e266e65d90d614fbe1177aa5f1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.559f1a570.0","@material/base":"5.0.0-canary.559f1a570.0","@material/shape":"5.0.0-canary.559f1a570.0","@material/theme":"5.0.0-canary.559f1a570.0","@material/ripple":"5.0.0-canary.559f1a570.0","@material/animation":"5.0.0-canary.559f1a570.0","@material/elevation":"5.0.0-canary.559f1a570.0","@material/typography":"5.0.0-canary.559f1a570.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.559f1a570.0_1581355540642_0.02009909219720174","host":"s3://npm-registry-packages"}},"5.0.0-canary.ad3bbf782.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.ad3bbf782.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.ad3bbf782.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2dd7a844408ed2020d0d7d8a89071c0e1985a807","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.ad3bbf782.0.tgz","fileCount":43,"integrity":"sha512-+U+dE95AAZaAVB3TPcOfGCzVHGZSilXFS0HYyXO6QlraCAMq9P2wUNipZpwh7GITufVazX7CBzwHC8Nk6MIcLw==","signatures":[{"sig":"MEQCIDG9oOGlv8tdv5jJ2hMy7/1OPvIM3hXgpjgMJzzw6PQrAiA85FKjNTrABRkDx0Of1JFq5UCmyIoz+RcLI6Oy8S3rsw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeQasDCRA9TVsSAnZWagAAS3cP/3e01bvj1VIiZYc0aSNE\nTCGYONr8ac/oy/85AAPqDd8/Y6ITvuRe+5/2enFYxCdcFgyLypRo65L1Y+Pe\nB4Y63tnduJf7Deg18Ea7bIrDws7KfNwSY/MIr4ZJUOrqWNk/cfagkON/4P66\n4JrA1XWY2CwYBP/UNrQeA8gO9ijbE51wAnWUFAjlcRoMxRai9M3bPHczGZhP\n0u2wE7s35rZAIEjmylRlVh/cw/9ABakYYUy3sO8OE0Kxe+yRpy4B4MIDlIyU\n7WIOkN1X0Ut7QTiGvnd8ahLqNi2Cxi78hgNAsRdG58TEKG16kZKZBxvs+ztQ\nctvocQUK65Mj33pm1xP5oSaQTAXjbaL00XzISOyTxmaDMuSmjH0R+vHFx9o7\nb3pPVAa9l9pG2xcObaIc/E5k2fYO/yObL932iHKCMH58jqk9p/TNQFqY9K9J\nQTfoOy928GHycUyaKcbAi4xZQc86k4bLJUAMFX7Ye2gqBgyjuBFJ54U8cEP5\nIGzSnWrgNn+agz1/+IInaXEHiTlP/qQhVz0UqLrD1OOGFPrPN35O7fxOi2ic\nA6FHrqQ+jKm7JX6tRxwDlb15Vl7ax3826PRFYdRKxim2SBBUjtHO+RmB4cLK\nXRurhbo78aOSk2WE56KGKmtOBDcVA7uNDmwJZGX4RmYPerYtt9aHT6ewy8iN\nLz3W\r\n=o80B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"48e565307134ef2e860fdfd1a8ce59613a783ba7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.ad3bbf782.0","@material/base":"5.0.0-canary.ad3bbf782.0","@material/shape":"5.0.0-canary.ad3bbf782.0","@material/theme":"5.0.0-canary.ad3bbf782.0","@material/ripple":"5.0.0-canary.ad3bbf782.0","@material/animation":"5.0.0-canary.ad3bbf782.0","@material/elevation":"5.0.0-canary.ad3bbf782.0","@material/typography":"5.0.0-canary.ad3bbf782.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.ad3bbf782.0_1581361922650_0.11597149307774246","host":"s3://npm-registry-packages"}},"5.0.0-canary.570d8e49c.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.570d8e49c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.570d8e49c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a08a247271fd6b9c6616e47ffe013205139781a1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.570d8e49c.0.tgz","fileCount":43,"integrity":"sha512-SwrGNNr+Sltf1eVKHoO4AnuZhKAeIC6Fm0MfoVtaTPsqXSxFdQ/GocVAnq4+jbft6FI7NLER4FNAh5+VON7eCQ==","signatures":[{"sig":"MEQCIEl1YmFrv/AQux2n+Ti5xFxPFpw/YfgL2hN9CMEpUQ0TAiBDatzjZ2Amu2ft6CLuwf1Yj3ojhLk3yHwKFT3fffBaSw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeQcCKCRA9TVsSAnZWagAATNgP/AxcYutjviW7nI4nnDTS\nc6hNPTtwLGChevXHqTN+Hy1i3e1WF9X5QqGWWfRkGM3xu9C9ax4yLkCnv2Tq\nNmGqw1RwKowU2L5dYeWNSrKMNZhaoDAi2wkdTZRwCo5Ym1MN0CkUgl+NsMxz\nBDaZMUfu6SoRYhS8rMkayRulChKytoAMST1IUHOzkpeATdCy3/3ptQRtbwTp\nu0rpA2fE6gPfSYE4Gf7kmprcVPHiJ8C7tMqpOfGUfdS/LGs5mu+uJTcVj0vb\nPRrwqvXdmc/WFIgPN5gYgLZXlKm34SsK04em+xA0IKRXq/8imNJ1TBeqrEa2\nZc7fp5tuzWQhyJKUb8hEXZ4ZeBJwNQQCGFRNqYjkLBUehSct5EjRi+q6cZuT\nVRWAjEDLqV17PjuiAgSG2wbnjbQEog3pYlMrENNEazKLpJjr8trxlH0ZD4Hj\nBY9ICzJcwxzM03Lm1xHE9jjokM26kGHs8pes49pQVrx1JNgBEEd6ksi48PB1\nxST2MdvWPTcbCkTBOQYgBdjXllQel0k8PlBCbGmVXMgyBV+G7oSdJ0TNdI+c\nCNNyIaeq3UEmdHUNfhL+sRgDdqxiOHF3DdspnDTSlxxm9BoWm+teJEEZ3AmV\nIK9u3kb41zYsxf5MNDsdIGrQnV/CdE5uDR5mVvPnBAoWbvoY8zTNO2B46D5m\nCQQj\r\n=sW9a\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b6857e33db49c411cf5f55873a45f72841824fb7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.570d8e49c.0","@material/base":"5.0.0-canary.570d8e49c.0","@material/shape":"5.0.0-canary.570d8e49c.0","@material/theme":"5.0.0-canary.570d8e49c.0","@material/ripple":"5.0.0-canary.570d8e49c.0","@material/animation":"5.0.0-canary.570d8e49c.0","@material/elevation":"5.0.0-canary.570d8e49c.0","@material/typography":"5.0.0-canary.570d8e49c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.570d8e49c.0_1581367433961_0.31598906001297133","host":"s3://npm-registry-packages"}},"5.0.0-canary.48b06b89a.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.48b06b89a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.48b06b89a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1f1e51adddc60c7f5192b7a7372866a9ff552c1b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.48b06b89a.0.tgz","fileCount":43,"integrity":"sha512-B7nqACtIKUW8TQRmiX81bm78TjjC9dnjiJrXd663BxiTOdJsHq10zOO1IytM51YaFZBB4DDrCB5qj22l5IoA7Q==","signatures":[{"sig":"MEUCIC5cN9HV5DPjouuRr4SATww54BPfJfSETTNA1voFcelSAiEAid0PBvmUu5Ct6UFGI/NTsJEQzPJO6vJ4K2/aqOgjnkU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeQvXYCRA9TVsSAnZWagAAnaUQAJtph3RqlVjiQ9duwAk4\nLXg4M31BfyuGzFcVE8uWz1DxoGgL4GyYGJyVBWE5yGpUGFtC0AULj0XhiQaa\nciUo00QSUXzFOiiNfA6z5dTWuWqPnkv9tX0r0t/lvHn3zY47P4i2hPIOkzcW\nABfvgM98tLQFlDSbz+KQCOjsqyvNl0CxMtk7tK5NbykgU7cFBA7G42sOInwq\nVOBid1AnVYn5iz5bOAXwkzxsMHUKvqr7lH/nh6lUletmigrn4LNchj0q1+Y1\nFW+EOVxjPF9l7ImyFNBz3BRrFRSRto8FDhg9kwwsCtINrBFoVpQBm4+V7Fyr\n8NLzB/dYj9PQtdX+R4O5MKP3+Q5oVeoQlBRkrGFQAT7gIJyjpEiwfNwpPGdY\nBpz3s/c7fW/C5hma0bDXKdxXmRBHMcu7M3f4xfTJUsT+r4QQhEUt6huG79Yh\njKrBsN0vknmAgvcQuMsCOetSZMhvVK2y5YgzrdjEY8EKjZX183HNo+3Icfhi\nwuL+6FaRDJqS2g3ZgJRsHrswNzLCAlS6g4guKRLT6r3EH+j1iQzkZvprFPyb\nyhM1on5uMgaRDtxEOg1eQ/LJXNs95FZhsOe0Mr47y4qBohlaaRsT5nViXbuH\nrbtSq1LAc9+Uo21LqE6DEjUHmeS0Vm/Jun4oZnfAUxshZPk3mnCykSilV/VR\nFOfr\r\n=GWkO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"540a576f2286061b02bebceda7cbf10554255781","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.48b06b89a.0","@material/base":"5.0.0-canary.48b06b89a.0","@material/shape":"5.0.0-canary.48b06b89a.0","@material/theme":"5.0.0-canary.48b06b89a.0","@material/ripple":"5.0.0-canary.48b06b89a.0","@material/animation":"5.0.0-canary.48b06b89a.0","@material/elevation":"5.0.0-canary.48b06b89a.0","@material/typography":"5.0.0-canary.48b06b89a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.48b06b89a.0_1581446616415_0.4099133152769603","host":"s3://npm-registry-packages"}},"5.0.0-canary.612443dfb.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.612443dfb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.612443dfb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c877c9a81b5558e7d4393992e2f93879d64905d5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.612443dfb.0.tgz","fileCount":43,"integrity":"sha512-AXUjNo0vojQw3K6KNlwzSpugWrzYHTHUNlhDijco70zz27xOjsq1rbzKPhjjhmkCghPh/HixaQ+viWXeA1+r6Q==","signatures":[{"sig":"MEUCIFyZ14Ro/y3vhkvRx5xxQOtgRGUu9z7k/pLQnGdfMOPCAiEAvqarMYQZUkRStff1hO7oYgxAYd8DnxaD4oeRh4XP47M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeQwVXCRA9TVsSAnZWagAAeKoP/09C5Ak+pp/j5Yjtt9RI\nudsf3Pdvulppow9fYoT9CtAMiw2Znc5QGXol6uxArTwCzOe5Tcf/L3lXFb1r\nWHZigGnMrY1oSF3O7dvBUFhn7Ub2ckJPG4rGkfdIn59tufpTBas/EpVFxGQ5\nfNSau4xuZarHcXHIU0VcrYPOAdytf5cjbmWIRnl7aNa6U1yhB3BICf80DF7J\nLmnWM2/OcGk4MJCPL9Gx2oF75sKYnF8jWSRh3tKbAcFpM/ufNtlR5W2biAKg\nRc7WHNwQsZgcEpNpVcc4xBTTx3rGEguA6+k/O8WBkbVaeR0B43S6lpqftvbK\n9THpHG5CLlXcFf0KpoVl1rp0VaEkRaQ4QCIZppKoKdjkJyP2rxCdS8KJs6BK\n4E8zemDEY+sLnhfru1/QmeQCPVNgEcW4N5W8hWQiwgIW3ixkmzlHKgYASM17\n+BrWNi6s3hfukZCvi3hCes4olqOyWqO1JdeuMxtYcOEQKHtWXf/g1kwrQ6SM\nJ1ap7/ihuLg7/aGXw9LkfO6CScz7VEpLXEYRSSO3XT8S3Qqh/jGn38nnI2i9\nu/bO7ePQ54oh/Uhect6n55hdT7kSIz81BnVjnYhYDk7CEcVa7MYFH06aLZSe\nEBGj59BfOELG40CGwJrVbuUTB3OOlMM5o7qka/jD2ARaK3RRUI2mgkWUzuvC\nF/pu\r\n=IQqb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"622585006b9702fc93bdf0ae416f6c58e398243a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.612443dfb.0","@material/base":"5.0.0-canary.612443dfb.0","@material/shape":"5.0.0-canary.612443dfb.0","@material/theme":"5.0.0-canary.612443dfb.0","@material/ripple":"5.0.0-canary.612443dfb.0","@material/animation":"5.0.0-canary.612443dfb.0","@material/elevation":"5.0.0-canary.612443dfb.0","@material/typography":"5.0.0-canary.612443dfb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.612443dfb.0_1581450583025_0.18219385782694109","host":"s3://npm-registry-packages"}},"5.0.0-canary.8c11ea2a3.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.8c11ea2a3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.8c11ea2a3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fbe2f60e0bed90558c80785cd37e3fb1782349b2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.8c11ea2a3.0.tgz","fileCount":43,"integrity":"sha512-P6+XRWaSDr+pJ3ih+CoAFvJDHkodihHY8ntKlB1vhul1o+YmhkwqI1z68nwQ2iwybezyiYbPj1JqG6eIkjFRFA==","signatures":[{"sig":"MEQCIHDuBa07jSvrZHrFTcjdGgYEHQVRc2OPKQhUilZaGnmMAiB7IXeYcW9ict5RyNfkYg5BMx4B3098jpOWXzyRmVCTSA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeQ7yyCRA9TVsSAnZWagAAgJcP/i9d7E4RKCeoAZRllk9X\nopmcTwfB7yShRvTtjg8u++KDY0tGvgpbpKT+NbU3i5KmmPhRr6QpjBNoA3V2\ne4PE7nmj+QT08GJRkSYCxIEP59w4VB4xZGJwTCCoB0SyafbSXHpK7ho+N7Xg\n520ytrWDBg70Umfl7DFwApFW2qicyRlrmsVBvL+FMb8GxFVix7LRIQ/I35wM\nmU9IOGv/SiOoQXZLyQqT6HUqIfeBGiwifD8coDBvu7EoI3wkrSfrJhwoxDTW\nzfxmQim2CbYzoAiH8Sw8iCgdOJIS/DAqiJZrytVxo8o4W+NdwHwd2sYLgTVv\nEnNNBo4cj3WihhlW2N+Ux8Lu3gGSMcjELIzcd1F9gCun9a3XmLIwBabyAdLp\ncQf3vN20wGightwSgskz4+bYAs1kZXIivtATR/JJos79QXmTk5VIdgXIhh8m\n8DaOj6n3Npw0M10bF3VBoSZ04URimaPMHJGu8g8Klm+kIMpkSWzvLlOocutj\nxwg6Wwa16EnQnzYv+z3o5sgUtx8vr+ZyX8iSY75FnzQ1WFBJrimHzIDno+Qf\nAQpArNwGk6br6QHiivtxFE+kKxyVsxjqGvX8480wgmvYKuvOGf69F0/O2Scv\neGvKquoKp3jjbi2BeznAkYgwRG4qKMM3eP+oieLTf07I7OnY0OVWwPVuD6PI\nPVYu\r\n=1CXg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"47068a39cd18bd1e384c83a2ca5c3d53ef8bbbb6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.8c11ea2a3.0","@material/base":"5.0.0-canary.8c11ea2a3.0","@material/shape":"5.0.0-canary.8c11ea2a3.0","@material/theme":"5.0.0-canary.8c11ea2a3.0","@material/ripple":"5.0.0-canary.8c11ea2a3.0","@material/animation":"5.0.0-canary.8c11ea2a3.0","@material/elevation":"5.0.0-canary.8c11ea2a3.0","@material/typography":"5.0.0-canary.8c11ea2a3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.8c11ea2a3.0_1581497522208_0.5432246831430305","host":"s3://npm-registry-packages"}},"5.0.0-canary.b2f3d311e.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.b2f3d311e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.b2f3d311e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"195ea8335b5087bf75aae5d1b608366a0560de24","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.b2f3d311e.0.tgz","fileCount":43,"integrity":"sha512-x/MJ+YEdn84qg+ZlrfMRj96xZqL0Tt6+SnMnK471vyZiEWdXDCeXmy4keOAKV9QknnymfzuVGwKis6hkBftcLA==","signatures":[{"sig":"MEUCIQCNibUxvtGb5a07AD2Zhz/aaTrK74B+3y18NcUnZCbe4wIgCuAhGHMzIyN+VirXUVKM4ciMWqY1uvxa8dg+H7Tyjwo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeRcM9CRA9TVsSAnZWagAA6ncP/i2VHpeoWiwR9oPeXBcr\nXPlhKecwk1PJ/YNoaB7eZ2UVe33N+Rpg5ax/+2Y79jcd2fVroAb/VNs97pc+\nTN7xjyEJ15EkhcAM1i9p4Bq2LZHv4S7EBIorqYegfUusJ27MwJD6XlaBmF/w\nZxJURKCkl4OvgYKxT+8B8WGttHImlnz+6Zw6hlMG1vJx02kXtDFljGbuSVKy\nimGCeUbl/IWF6uI+BBpUsv5b4KCu1U3dGDmZe/Xbv3kuP6i0srNeu6FlzcXT\nCgHF8V8Etk0+lDnvM9WKXS80B3Cm4BscHZontg/S+kXIfUbN/3N6stkgWIz1\nQCgDbbMClJhbqlnXagKgUqVjXIxL7LTB/R/xJ9peHs0OYac8WbZr7qE+23BB\nWdFPKI2Y9/Ngkzde6JHJF/6wD/+oYZx7Q+YvlU6mmT+0/bobIpcXGpidR4JI\nQUGBnhBohGw6ANTBrS7uDc5bQ5aBB7sJFTHsZSldiYCa7QezY92I0Z2Xh1Yt\nveMfA+Jl1WdQhV1BlkPxFWs5xT21OimPkGzMk2v0eCdquWR733PKICi0vMBi\n+bFE9Zrm1bhNSjY6A2R/0qWdGsksJHgPPN1fmv2ViXdqgC7rhng6+9aJiuH7\ngRJyNiS0zrNflbmDNrAdxcVdqssn437UB5W5mu37S8WoYU1Gf6AfBpcRPtp8\nkv0i\r\n=g8+o\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e8b88d39be927e40deb73ae78a049ece8c80b9cc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.b2f3d311e.0","@material/base":"5.0.0-canary.b2f3d311e.0","@material/shape":"5.0.0-canary.b2f3d311e.0","@material/theme":"5.0.0-canary.b2f3d311e.0","@material/ripple":"5.0.0-canary.b2f3d311e.0","@material/animation":"5.0.0-canary.b2f3d311e.0","@material/elevation":"5.0.0-canary.b2f3d311e.0","@material/typography":"5.0.0-canary.b2f3d311e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.b2f3d311e.0_1581630268494_0.29073796645958083","host":"s3://npm-registry-packages"}},"5.0.0-canary.4f488d0ee.0":{"name":"@material/top-app-bar","version":"5.0.0-canary.4f488d0ee.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0-canary.4f488d0ee.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"efa29a2ab72b023dd78199920896f0e4e3985896","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0-canary.4f488d0ee.0.tgz","fileCount":43,"integrity":"sha512-UcCf2PiZJgq4JYFInz6XDfKR86yfc7SpfDvPWI/ll3KlEmV+7+JHYWJzGisQ/WYUVSINrzqef9vfQlqmUT94IA==","signatures":[{"sig":"MEUCICcwEB94rCM/Gg0dKYeu7iATdyqg9KJwI3z0KFnzbFxTAiEAwxp4BN3i1kNNz3CRcllSyNEXZhGyRrHe5NrnF/qCeEk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeRdaBCRA9TVsSAnZWagAAwjwQAJuwlu5XdeUEXfYahE7Q\n2srpGV+Z+0p+OFqcX8R/O75dQLCyOSSII9gtYpVIIb8IKu+c0bxvrVwgIF9F\nz9y8o92jED1IWsqV4VY7vsRi4drI1ywyLFbzE2ary1roPXCFXKuHFtBENHz9\n2hCa5OoYETXuyAePYNkdamJ/N8066s4fNXGj5OApFOdWesc85danWFOKBhng\nc8n/JkxhMP0KsDHetvOYq/3/ez6h3rxVcvoT8ZyOTMR4Nbbg0FWoEwjANwS2\ncrUs7jUlJT/tkDe6FOkyl5xt4UeNzG1UdzU73XYKsAhkzv3fl9fSD1nN7dH9\n8ebSLHF4X5p2OwYMwHzaCPGcsbNXuDmeiZ1Cgg+n5HMwYXZtxsMljPa9TyPL\nx6RM/wYEu7nzTRST6UwAB5oSJeSU1jabWTR6k+cPiQu0lfvenm5h3bP1ycnp\n6YCyyNU54PhWSj5RbLtaQ/WmJmWdyDLmrtMIv+HsqoG5GLxiUeUmxQaazUsY\nX4dsSg4ginNN5FU10ynLzYfPZmdGBi+mhktF2Ur9EdpFyQr3BQBzIGEjEnqy\ndNBxT4wXDqMLko6VGAtypRtKW3Ggouepplvd7B3u3bUuj4Uvt357utInwmS4\nls32Tg67cJLoyNprbbqCXfhjQAavH7V+B5QnOoHxiUHO5R2ucFmgsEpe97n5\nuQq7\r\n=zWNd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e3b2ff94a1a6e30260b88a9da6e55d6ed122c399","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"5.0.0-canary.4f488d0ee.0","@material/base":"5.0.0-canary.4f488d0ee.0","@material/shape":"5.0.0-canary.4f488d0ee.0","@material/theme":"5.0.0-canary.4f488d0ee.0","@material/ripple":"5.0.0-canary.4f488d0ee.0","@material/animation":"5.0.0-canary.4f488d0ee.0","@material/elevation":"5.0.0-canary.4f488d0ee.0","@material/typography":"5.0.0-canary.4f488d0ee.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0-canary.4f488d0ee.0_1581635201140_0.3033678079811959","host":"s3://npm-registry-packages"}},"6.0.0-canary.fe79de07d.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.fe79de07d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.fe79de07d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f9385779f2c8daf2e844c7d43facd69125b7d010","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.fe79de07d.0.tgz","fileCount":43,"integrity":"sha512-OpqQSy8eyF6sUl4wLR6pswARd8wjKcXXqp1x7XygkO50iok1FnYM9z0zq7Z7YQJegTEJ2EAGfpLRsNRw8RhJUw==","signatures":[{"sig":"MEQCIHqwttTgd2rBczhH5BtRswJkGsVwUk7aMHSfFvim0e7fAiAg8xRoGfe+18S04yLs1Uwn9pXNhjjxIADmxWGntU/abQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":460078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeRdqZCRA9TVsSAnZWagAA624QAIttdhVXkn+V6S2UqgBq\nj7noXWIguSZgtzPM0iL3ry788D64q0PzPpG4bQUN2s8cWG1IyQ39dGtEuyAg\nQnZw6dkgj2tjOV+SHJVu/4lxZjSUUSzYzQWztMb5+4O5+CEvD8WexWAvoWuT\nmmh3XRw5FfIvlkd2qUCoa4qOZCTAUyxshJJhRTPH9vlOsDYmpoCQIaN3go4L\nkI7R/a+093hVUWLKrVSma87efUGKmrv+lHkUJibGfjFnAO04LYMnFhkCDrDP\nmkdgMZmghLWNoOZaolSyQQWOuLjaMUcxY7+3FP8DJHZa2YQURnoff6iQGE/X\n/RjHOKcxUKCqXQK4DzqqDsbxRs9gjo6hgy5ENSl4IhqcDKla2kEyexIpOfm0\nK5FQzoi7cG18YXEaxVm2ujx8sVcwrAwb5oTuoemIp+Z4V/Y79CPAgPtpuLnF\n0jUyJY0yghb7I/68e3HTf6Sg+pEtlFe+Rsv1PtxPnSLC8YthUojSnM7AibFW\nBX3l33EV8fSdZVT9k0r4F4q53AZnYvgcqJ6/QbJyJ78dfMGzbz25kI6mLhE6\nE3jyR5hmWPtUNubEO1jsefpjnMeGz2Di8CogN3P6aR+1jbmamxucYutaImJp\n2WjdEqRrgxJsClOeOBLla08kydjts4vxruo6q+2gU+z0grh5wwIeWlhsuqIo\ncY8T\r\n=I1CO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e2b4b3810f62a16846d719ee7439bcbbac266d30","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.fe79de07d.0","@material/base":"6.0.0-canary.fe79de07d.0","@material/shape":"6.0.0-canary.fe79de07d.0","@material/theme":"6.0.0-canary.fe79de07d.0","@material/ripple":"6.0.0-canary.fe79de07d.0","@material/animation":"6.0.0-canary.fe79de07d.0","@material/elevation":"6.0.0-canary.fe79de07d.0","@material/typography":"6.0.0-canary.fe79de07d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.fe79de07d.0_1581636248630_0.09767089725097611","host":"s3://npm-registry-packages"}},"5.0.0":{"name":"@material/top-app-bar","version":"5.0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"334bec51c8cfd322ca8e4f87e6bf490a13770629","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.0.0.tgz","fileCount":42,"integrity":"sha512-GK9c1JJT3eoPYiM4qxLO+sa3rd6tz3wniGInZSw2x9f3fXcLO/aE2U7ONue9nny9L0ivCTFOdC0xw2MPRqfhIg==","signatures":[{"sig":"MEUCIQCrzNpLTvyjlMhpDZjgkA+NLHNp3j8rvTyuXCjlgB8+6AIgde7YMKf0UM/NmdNvkOBcoKJcCQGZlfhhlN5a8XRv4DI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":458895,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeReUyCRA9TVsSAnZWagAA2+4P/0viRfrhoOhOHFmuq2fL\nw2dYOuVP0JTfkeZN16wKYWWnAiIVW4Z93lKM/OVhIUbpNpCt1hYgT88+hctL\n99ROhVAHsybbHBUl7ZemUKi6yMQlGdSMV/0rDhLzI0ErXxU3ceXVtlf0XmLN\nItLd+gM3UjLNzjWiBXL8+JIV4wc+uVSPhCSY78ulBY2g9oPKzw7ou73eoONp\nmOn+ObTPdQYGv6LKLyKHlN+0tB4Hl8VW9HM9+cMd44drU+okLsB6W4Y5WLer\n0RGIueJlZpcXeEK5urAIxj14ECbT6lVul+ZyXw/PFf7NzicgQPhXTv8/uSd5\nTibBh2x3K49/DEYVq8TgCaG2nRd/VOQrcMjSolnto/uM4pVv1V4dmmnHtNli\noex6CxZJ1vpRt1CEZ1FD89J3wtkZ1GHSg5pHcA8/u1wRVWy8cuCrT98zDWGC\nQdSzagZFn+7pacU5HSxKIOALXlaA3w7RjVQvqnnNeUVjUk/LikY4FQZmf3YR\nnu7i0pSz6fM+UlMLIkpBZRGY+weS4cg2zcov42EODqTM9Do+rsAzD1BpaL37\nVL3D+V+094Ji3QPJv1dmcZ2Q57MQ4A5/Qc6BYQIiJ4Qu8WLx4k/gnULJ+3PG\n00UpE7971PInC8FfUuYSgoShfVBb4nV5SdAwUFDDDi1s14I52AQNExrAOI0S\n003J\r\n=Zzb3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","gitHead":"47845087df2f88107786b4577b1be4422b14404d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^5.0.0","@material/base":"^5.0.0","@material/shape":"^5.0.0","@material/theme":"^5.0.0","@material/ripple":"^5.0.0","@material/animation":"^5.0.0","@material/elevation":"^5.0.0","@material/typography":"^5.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.0.0_1581638961698_0.19763168622666272","host":"s3://npm-registry-packages"}},"6.0.0-canary.5e313b1f2.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.5e313b1f2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.5e313b1f2.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4143a5c2f5052ba167bb5fb28d1d915102fd8982","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.5e313b1f2.0.tgz","fileCount":43,"integrity":"sha512-Fl4w2/UpcN+TEs0s4QZ8kXbbD+2UDf8iHfMrO7mu3a8WbQg1GOw2zbkBWatGWJguYWr4kHpTUdci4SKWV4FAwQ==","signatures":[{"sig":"MEQCIHK92meIyd7WccEPdD/U8ft/smVyq1jcRrpk15wnFCjfAiBY+kYrP9d3bi32J+SJBMyXwcjMr0k77iLIlbVl6OZlSg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":459437,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeRzHVCRA9TVsSAnZWagAA1ZgP/jJMtfrkRIhq+JSTPSTp\nr63QR1UapXwMcnGnbhNEz98rfMHBzV/5ZlT3DO4i6fDThGdQWwNXiELyCpb2\nxf4V//9vNG1UIMtp4e38pyAA8FxSImaxBirLamvhk3ELjnr4TGzhBn6QcMUT\n26F9g8LvapqhI6dnDEbFqvRjkGw8tPOK0KkNEWQVMV8M7+OlC1GXcaGUkf4E\nhjSG4C7GupRHkFjwsb0f5646gJEC+JzGrNhno6SYZF/O2EMNrCLThIT+GKzf\nb2iRwNS5SXx5nCC9KVyMwdEtRa6paErqLFKZf1EHYC0jk5mpbQXLl2IGwzkY\nOV7JkaCFwHQfAgn/NNgQom2f/5wMaAa0j20+M8V4m1IEDsnbj4B3CyzpjafR\n7Wgh8HvpjM5jcvhFQkPETiVousZjCLGk4E3TVIqKhtureCst6xb1fC2ZQSoB\nS9zZgjzH8CPs14dfK7u5dn3Isbp+YPoHI+/OVj11R1JVVQzqXGHl+G/gbv8n\np9OhaWwRxxr2UdIzKhKqEmj0kOLnGK8ej1l0BW9ZoN7AHz+2mhYvkugRIEgu\nVY38mV9wqop3DMmJitPwuporiJ4ecS0Drjy2wKpk54pjEQsdz/7voUS08xI5\nQmKtr7zeJgL+OL7kCtdMki2OUl8JuldcsX5sV5oLwzC/8JvpbSaa5kFpI75f\nV0/6\r\n=Ode7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c7787e7880c79b0baaafb2af1123bbc383025b20","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.5e313b1f2.0","@material/base":"6.0.0-canary.5e313b1f2.0","@material/shape":"6.0.0-canary.5e313b1f2.0","@material/theme":"6.0.0-canary.5e313b1f2.0","@material/ripple":"6.0.0-canary.5e313b1f2.0","@material/animation":"6.0.0-canary.5e313b1f2.0","@material/elevation":"6.0.0-canary.5e313b1f2.0","@material/typography":"6.0.0-canary.5e313b1f2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.5e313b1f2.0_1581724117453_0.09034330908377863","host":"s3://npm-registry-packages"}},"6.0.0-canary.6a56f387c.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.6a56f387c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.6a56f387c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b656b5b7a4726a9c69137410f2ab2d801fa8bef6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.6a56f387c.0.tgz","fileCount":43,"integrity":"sha512-ZuyEVSB13vB94OxtAEQe0/Qj2QTiCr1tzeyq5jc2oP10P43/LI+nXrNrmZD6zSjg6acvk+MJl2onCJCBV73U7A==","signatures":[{"sig":"MEUCIQDwcGaFFWiYkZpx6csPZ+x0xwzJFs6KR/1pSJMIYLBTiQIgCIC4inxVz7UAeV7WOZ0opzK8X/M5vGIAqcov+P/kiC8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":463342,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeTD6PCRA9TVsSAnZWagAAnSsP/34VIkuBCR9TmSBf4IwQ\nIRJxb8j5y3oomQPdP1tT9TraiXgtJ0ZhtSpviqRho8OVNmM060CNzRUS7LwO\nQWLna+jIYPD0A3OmOctBQj8k2OIFHK7PnbRLOWgBllCuhAv3QOhexp+mkXDJ\nMCf3mDsvJfmo6SqgYUujRSDFbtO2IBJgOGwKTsUDCnm4z51bcD01XWFoHQwq\nMPgxOk6d/bfbL8/YlMIiks0A8g5sAp/pCpWClaU4QTrtxQN++Dq4QreljQBY\nlqkF7SglzaYiD3uHj+I+niWDM2iTD2d4c6chGGrlyHQNLHHd7bUFXo8x6dqH\nPJtDnF+RJcNKbA2m/RXYQ7gnqPj/+f1v4kbC5QM76j+qlskxIqCQrSNiWpNF\nl72ViJGa+rivhhWYqhGhBaFqdz6ipmmTdRJI+fa/PLBO+ZqR+tS8DrYkv1EQ\nM4ggpDRKzXCeAfmCZyD4eH9P6lsCjZysYcm+JVUPfiWi6yPuT4B/fdl4Woce\nnzki/UIKlIIG+dvZYkXYVtBTTzPC82BEVxQMGzTYZbT7u1MTKPUbJ4vtiPOy\nj1x8JKggSLsqsfMWBZoiB1TFzYAacCrUWraKVPEJqOzdECKxT0X1kQ2kKRCa\njT8cMzqrxhR4trmrDUF/xderhWBe2/kSZpv8gcVg7vMkOyakaVrGrh5seivw\nG9tY\r\n=ZBCm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1e3f916aaa994ac19a65c62b461edb01c08e95d6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.6a56f387c.0","@material/base":"6.0.0-canary.6a56f387c.0","@material/shape":"6.0.0-canary.6a56f387c.0","@material/theme":"6.0.0-canary.6a56f387c.0","@material/ripple":"6.0.0-canary.6a56f387c.0","@material/animation":"6.0.0-canary.6a56f387c.0","@material/elevation":"6.0.0-canary.6a56f387c.0","@material/typography":"6.0.0-canary.6a56f387c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.6a56f387c.0_1582055055092_0.3537862604411528","host":"s3://npm-registry-packages"}},"6.0.0-canary.bdfd52632.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.bdfd52632.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.bdfd52632.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6a585fbd403dfc6039780f847b7528da42afc6d7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.bdfd52632.0.tgz","fileCount":43,"integrity":"sha512-yTAQ/rRaZGxGRY68aW1fGMbxULoiyi+iLSWacDxyQOuKTXZOuMxxgyXiFj9hk2BiopnRpzpfNZ5mFiblXelqnA==","signatures":[{"sig":"MEUCIQD8unRXqDn7HpIRjr1YC8OHaOyuRc3RAkLUYw+AJz/jvQIgKqksASggA31VLkqagxjvFwvnLb0gxnOha5Nxf5wNAfo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":463342,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeTZknCRA9TVsSAnZWagAAfwEP/jz1LqFGz31NK/6dNxTU\n1nykc1eG2s1rFcq3JWNRUzVJReKEY94I9v0P4RmtJnEwJRwFvM6djnZPALP0\nBQKYU7/FFRzaN/TYqgh7GrJi7ciqE0T8y1Am+3tEr1padn9JzJX+4irv6rL3\nJHVwEDur+q+64CWlBAMZzz6GuPo310K1Jooc0vNThbUDBWQuRCNNZ5CL7qMp\nJTc/1Xz0E2yx7FMKLuw6zgZK0NI542vdYzFCZdgCb0VyECXu0L/vBhY2f0DO\nXIRNe6TpHU0b73i2of/OHjopX0xXZVHy1mksc4k2t3QvHPstyq+9O0vQFJzE\nu+FMxYH/G+XqL2SMrr1DmMMpRmNqLnlGL9WWkSvbyyfceDsCWafWFhI1RR8C\n0GM8fhqZZSpxAZWWZUBV722PHaYj8Lzvhd7plOs0KI56EiEp6B4D3ZFvzyFQ\nQHbrykzpTyEKsJ8jbZSzZjg0aU5yEidmqD4S6QZI8GzYCO46mCUkPEGB1iQ9\nOCjeMhhvnLbUCaygZz/JQnS7N4UfM7S56r/9tY0Tm4cIPqMzmYtQGfvlUZ6m\nGwSSvzI0i0DpPK9Ice93nslfzZevKdzRIWfcP+DVxOFfT9beM4xG9LVDcVQM\n+gQcCpzsAakjgy76eW2ygMbssWzIaifUSJZjZAGgGyO2KaBg7kJRSyj7XvwH\nfnDJ\r\n=o9So\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"533f28d31ceee3f93d9c7695d4f394323e37af4e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.bdfd52632.0","@material/base":"6.0.0-canary.bdfd52632.0","@material/shape":"6.0.0-canary.bdfd52632.0","@material/theme":"6.0.0-canary.bdfd52632.0","@material/ripple":"6.0.0-canary.bdfd52632.0","@material/animation":"6.0.0-canary.bdfd52632.0","@material/elevation":"6.0.0-canary.bdfd52632.0","@material/typography":"6.0.0-canary.bdfd52632.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.bdfd52632.0_1582143782640_0.6243413919098566","host":"s3://npm-registry-packages"}},"6.0.0-canary.ad2e4376a.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.ad2e4376a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.ad2e4376a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"02b5b7f3ad0280af3c5e472e9a2043df5cd88b80","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.ad2e4376a.0.tgz","fileCount":43,"integrity":"sha512-yw7Yek1h4b9ij/tTydwkPkGL0iG9js2c7H3FPVSknP5W+BR4yEy+WDPGNiPQjeJBzMmnLkxHFDY5C+uiCsuUgg==","signatures":[{"sig":"MEUCIE5mU0Y7VLosXQOCEhGX8JZYGyd702j3WebBdwWYap94AiEAxtFhyoJFJrEA5YuQ+x9kCEVcdyhsUmo99FFX7XIFHr8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":463976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeTxNXCRA9TVsSAnZWagAAZmQP/0I3NfxeGlZ5sFcT+X/D\n9ALf6F4luz5PKtTX3vx14axgOBbOnCzoZOyHFpOUitOJj39anIlz5yTac+nz\nBlKciYHZYZUYvsSWfyD+lsxeF7u3YeQBQ8nBBAnNIOpsX5MgazMi09GTM2lT\n50rLvMto+oOBj/UsGFw8JXA1mbiS8leDaqHD01RMK+2NlpDbrC8x1KA0shJs\nqt1VPQGSB9GHGiaFU427U12EBfa0MZt22CVQt4l+HZsopENWwDON40vWiPQm\no4+DIi3TaiJ/MEnrPRPhLXPD5bztpK1ENHC6z0KMCsUNbIXyi4DuHx4I7DrG\n6lD1X3zPyeqdFitx8lFSHdYuOn0O4FV7a7KU/QboYoZZWawuSOf1JEsmxVvH\nGvBEtvOD3yomexbSPHskXNVJC4lhuEHCvewJjeDBulb1bptYYiJoCZb+E1YN\nChRmKoLEejII2sYVPfAZVJJmqkTMhXCzdd3eA/mhg3G3r8DZDiyGhH11v4x7\nSS9P/n2GlWsVfpLRj+RKQMEiFovfdlumC+LJchXFFX51BPoK+DNI5oPN6kLA\nqoQ56hAv6DsPuza0T20fPy/7n0YGpadOstB3dNQk8nyyXj3Ms0YWYVSx1YhI\n+1lilAk+fP7wcxzx4exSfsnxfDl7oWFJpIx20Iy07V+TCP47tkQib7DjuA2z\ng1ae\r\n=8LTU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a91629ff788e0ccd5049a85d588ddf65efe5899d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.ad2e4376a.0","@material/base":"6.0.0-canary.ad2e4376a.0","@material/shape":"6.0.0-canary.ad2e4376a.0","@material/theme":"6.0.0-canary.ad2e4376a.0","@material/ripple":"6.0.0-canary.ad2e4376a.0","@material/animation":"6.0.0-canary.ad2e4376a.0","@material/elevation":"6.0.0-canary.ad2e4376a.0","@material/typography":"6.0.0-canary.ad2e4376a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.ad2e4376a.0_1582240598850_0.11739030378166437","host":"s3://npm-registry-packages"}},"6.0.0-canary.765caef18.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.765caef18.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.765caef18.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"49a471d5a9e4b292fde822eb087049913a16716f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.765caef18.0.tgz","fileCount":43,"integrity":"sha512-XUUqrOdm0gfavc+4eQhtSBWbjxNFxSoAXnYOWfDgmVq1sSVb7ogKnzA9n3d8E8bfdRHF8FVh48yUN9SgYDaRNQ==","signatures":[{"sig":"MEUCIQDk0zicd1WXmsl6fXWKrwtETRUfedIwCs8EgMDzDHWKRgIgB8wKFWWfn8cp09EPYs+6b8DuxJrVo8NWE1oXYi/zw0c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":463976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUBRsCRA9TVsSAnZWagAANeAP/iUT++9RSSxPQ7yT8HZ1\nWh/4Wl+M5LxWxGZtrVpyAndoOpHvTcNiouIhPr2+VrGA3X1d0Ez5wkJ9HG3k\nMABXOqoMiLmbBLZmFBdgfH9aqj6LeznCz8vXVAneaczats5ePOrFaz/w6K63\nYOddHKqH5oMIRU4q4nK4x4VipuqhJ6cF4NKDN7pcXDborm64RQbh58hLbs4y\nBMmxgNhO7lGa7aKNYnbg5bjlYztaABf+tjf5ZUFf8YRlWWWqgHN7PFHt2TZi\n+Sqzn5jvRgN6xaRkzGwYnwjgYdfKHNnEkSvKI3KUS0Magl/Bh671j7zRcraG\nLcT4Sc8JMISR93LJVYeHaGjL58IwNbCXmy8O9Fbf4Ev9tJuhpbJR4PDZm4tM\n2AEvb4X0dBU7YyXDG1b4tXgJte8B17T6AdbhTksCddblnYG4Jiqu78KLnsVZ\nWjes6+qEph83srjxEAQDR49+/rE5h0vCZxzRsGki17WaDxNytfQXcDNX5PH5\nFrdHHoHQg9gQZpIwKzOIivmBZyxA83Lf4D4T6kGCGdIbZNZhMD+e0jJ8IAhB\nrl7iweni+RJIieZTjvQxyeBJqUv9d/FPjzUygdVsTNbf0UKRxLS7t+UeMb2a\nsnI5iGpHdZPSR34n/7zjh7Wk8ucKzee9AFGIvSIpeY4eOkqzgU3bXqEqnjgF\nB5Uh\r\n=sT7U\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e18ae69dc972686bd9fa70c34bbdda38c5caaf0a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.765caef18.0","@material/base":"6.0.0-canary.765caef18.0","@material/shape":"6.0.0-canary.765caef18.0","@material/theme":"6.0.0-canary.765caef18.0","@material/ripple":"6.0.0-canary.765caef18.0","@material/animation":"6.0.0-canary.765caef18.0","@material/elevation":"6.0.0-canary.765caef18.0","@material/typography":"6.0.0-canary.765caef18.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.765caef18.0_1582306411609_0.3669526434774737","host":"s3://npm-registry-packages"}},"6.0.0-canary.949562303.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.949562303.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.949562303.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d65c96436e32a3b214ba1d0080584df8489c97e0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.949562303.0.tgz","fileCount":43,"integrity":"sha512-5WtNTQmLKPuE5NcLhMTa0dwnTtSP9Fx4PRM+UEH6KzaUC9D4gqUCvNNlnzW/MAyOUzX2Ay9dXznJL/ms1XlCWw==","signatures":[{"sig":"MEYCIQCBrnVLYxQygZ2qOaR9b6mcjc2DWXbxM6v5FCCD512PfgIhAKpaCkiyF5Ab45h/Bw5NvZKeEcseYS+GkkHOZ2pKDMMn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":463976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUD+5CRA9TVsSAnZWagAA+0gQAJRLvmfsndRxLTUPSvwk\ngbUAgddEypOIZW6LjReWNjfhH9nZQbFkUClXGa5HX9572C8aqH/Pq7OMzdAm\nK68/KniqIbw8PtRdYbG2NyL7WCte3IN3AyhMKzvMGp7UxpzkLz/1BAbowC0l\nHofKyBRpWEBsLe16ndWbTPfWo5Y0Pqfe91zrK1NZXARBykLs8bbrTIDCEebw\npeL8L+OOeLE3d0ZpPKaU6HilhmsFKKwgl6K5itUUCDYI36NJBFvr/3k8Sxy0\ngITKLtM1cuE3KmWP9tsKvzD+8CCNsWYQpx3Q3KvEOD/32z4VUscQkOjBwqGl\nCWcw1+4LB3/qFbW88kqvVkHfkdZdwBPdd17Q7ZrOukOQ5c0YML+TWICslmJj\nxeqxeThlb3bvbQoFZBiN91pc8SeZz67Rp0yj4Oi69f0VgqN7YmuqOouW4HsI\nNIJ5h863RcZpevpW7M8LKXT/3FyJb5+FoKUki3eGrVg1QBC1lK7pJQeFirJn\nJcuffSEALy5iBfATtTjTbN9+0e81MWbmbDah9lh3xqI6yYulancTQM7vBCNk\nprXMJZqWTf2NQaxBH+neGA64H/6Pri1/akjXiWZGMDZkPmuBGh0zLEjEk3nT\ndoUJ1fkfD/YH+OxcOCsbboSaNBzEtCjOfonZqFjcgJV70BwOuJeaiQ53tVIa\n5WQw\r\n=TXMz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b23ce78ac58e49e4a566fa22d5a4001cffa160f9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.949562303.0","@material/base":"6.0.0-canary.949562303.0","@material/shape":"6.0.0-canary.949562303.0","@material/theme":"6.0.0-canary.949562303.0","@material/ripple":"6.0.0-canary.949562303.0","@material/animation":"6.0.0-canary.949562303.0","@material/elevation":"6.0.0-canary.949562303.0","@material/typography":"6.0.0-canary.949562303.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.949562303.0_1582317497266_0.7695083506861919","host":"s3://npm-registry-packages"}},"6.0.0-canary.7ec96974e.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.7ec96974e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.7ec96974e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"40d5b00e82a2e44f697701803f32b7ac624fa68b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.7ec96974e.0.tgz","fileCount":43,"integrity":"sha512-aYEyqrsXZ2R3i0KsSn6XS7c6YKdLPFP9F49Tay9rkb5Aa79C/3IPpIIIbhS7QNb8JmhtwX08sQS4oA6AeocqKw==","signatures":[{"sig":"MEYCIQCVIegac+ihMZO72zHwvdABPaqMMF2exfbTj6aTGspVKwIhAJy2SE+z57o2+pEus+0ey1YPcoAq1Pqck4yx1uPsR82A","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":463976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeVBzaCRA9TVsSAnZWagAAoFMP/ji3qhC8LSaPe/3eksVm\nE0qzx3BJEA3WIi7915SSgeB2OWFJCXfd2HEqmHc/pMmDtWICulUJqsdJAXrH\ndAe/1Hh1k2PIjg+bl4fJ6/rWb2Afg9wbnbByUAd+gO0KNc5/CDygoWC3Cb8V\nzQmo/jqMuIIPjvmmF2HHufwB1x8uUzLjEwEZMltyvJtNJr2HO6QOs2QHXRW7\nmSwgVc/L0pps8aSUe82ngnunswu87ejcKWHLbje6GdtJmk9VeQZ6I3pU95Qp\nULYV56GgkPr3xpLRFHKjGxySMnkKWF1LsyYlrFVpQ1yEhBDM36QdsALLqC85\nFThTCP2qihkySR1n0CeLHC/K4BE0wx8YRG/yAeN2rufYegCCpv419TZPzMl9\nsaOvcvDYf8IEKfnriPUP+CLH0sdveKWDEiYwbPozF9d+zNegM2wOScyP2ve6\n8bbtFkaXkPjTWDb3WoXHukHZ+7uiUBnmDATBTU4EqJqK79MmnKRiNWjN715s\nEUDT5RPoM+4ecK4nHfAGEBCZ9yUmZ1L8Muw4rTkwcMovOMwITD5GUcC4l1V0\nGx2FqDf10XX4WOx2eRSoK7pTVoD2jyg/w77DTEnUv155eW6uN5g8+07oU+eX\nbAAyMyNx9MzjHqTo5kn+WN7gY1fV8nZ/oB7/fz9iz2+p919+6JZ0kYsiVmk1\nzREE\r\n=ey+N\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"79d3bd54f6272eb54a09e4cbd6a0e62f64e30a98","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.7ec96974e.0","@material/base":"6.0.0-canary.7ec96974e.0","@material/shape":"6.0.0-canary.7ec96974e.0","@material/theme":"6.0.0-canary.7ec96974e.0","@material/ripple":"6.0.0-canary.7ec96974e.0","@material/animation":"6.0.0-canary.7ec96974e.0","@material/elevation":"6.0.0-canary.7ec96974e.0","@material/typography":"6.0.0-canary.7ec96974e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.7ec96974e.0_1582570714079_0.7684438875876485","host":"s3://npm-registry-packages"}},"6.0.0-canary.265ecbad5.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.265ecbad5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.265ecbad5.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c2eb5f3dbb6f184e5a34859bd5e65565a896f397","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.265ecbad5.0.tgz","fileCount":43,"integrity":"sha512-OuezbzdiLEHBLc3NCy+gxc7tztHMnZoaL9xlhiHyiz3XBd7jblYCnoBVsqhjQo7mPmlYsDENrXsS5GFi5nPMhg==","signatures":[{"sig":"MEUCIQDKVFCnFyNNmi7+YVRFC48cZJfoIO/WXUEMJeF4YvdttwIgTDgJAlETq3fnY/KtYGdSog01zmqVC8i020xCpA5MFjY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":463976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeVYsaCRA9TVsSAnZWagAA7aMP/3cR8qjrceMXl/spEumI\nZLW4SbSnBsazmNgDtTzRSyyr5f1JxcRtOC6CFc5NeYM7jS8Gn6LTPpJTLig7\nX9LumwDtNO80eedf9SLtyC3NjA/Ybsw94Te2+ZHkUwLKUOnrVt43g2+Np/hG\nGrMAWnkckF1gNw2tcXBc36ri3nB6wW15vLATVujK0ifMhgyKKN7Q4Q52vfQz\n7KWIHcaDhJtph4b/YgZnx4K5Qwg9uHzrG/VFbmdx8/Aa1Xi60XXqrbZ7N4pP\n5v+bhI2cHsUgAdhpT6eEdWpbDPC3zlak8ShTsuPoOpl+ZCaoDc6Is7mSw++n\nrwTr9hFS9YLQRRUDzk2AjBpoq1NkqQRHHbgRVkJrVJjsR7zWmTQ5EiiHGbgx\n7iRmiV/mSokxrvAOvI1a4B1m3RCZR9uc+qkxm+7kBNlU1DHV3/AJrVGBAYXW\naFi5n0/6DHCzm8UNxLaBM6VD3T01pgp8BBVHprrSHV3zd0SGhWcpF5shzCUx\nMV+HHXoBZiPitQ4N8UHhm0yiR7My8n2qIh0e3pcaFc9N81vJfHOxB7BjrmxQ\nDFr/RK+agxJh7t9eLLZ9fwjn33wYKfpuH5V1OtE/CAPs00ALUIx40ODRS5iE\nVgP1c0hY+PlxYgwjHsg8IW3KPmQfsMwYqdd/G0/dIFbjA5mOM/V7nf9QeExP\n6uAC\r\n=FtyR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1600f4154da0a0943fa8aaa13dfa15c79b0ef89f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.265ecbad5.0","@material/base":"6.0.0-canary.265ecbad5.0","@material/shape":"6.0.0-canary.265ecbad5.0","@material/theme":"6.0.0-canary.265ecbad5.0","@material/ripple":"6.0.0-canary.265ecbad5.0","@material/animation":"6.0.0-canary.265ecbad5.0","@material/elevation":"6.0.0-canary.265ecbad5.0","@material/typography":"6.0.0-canary.265ecbad5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.265ecbad5.0_1582664473731_0.7100728668198326","host":"s3://npm-registry-packages"}},"5.1.0":{"name":"@material/top-app-bar","version":"5.1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@5.1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c67980874170e6d89fe1c19f03064bfe0257c52a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-5.1.0.tgz","fileCount":42,"integrity":"sha512-ySCUpwIFnCmY/I9/XPs0IPBCvjWzc2NQ7mquG7qQoaUVUqWTNMyL15zG6CeDf2/Nk14mlSRNM4LRPFWenCdJoQ==","signatures":[{"sig":"MEQCIHaO4rh+gulgmA9EEfp4804Kz0Geh0DH5epAoAm3IZNVAiBlHDhudQp1XXDKIsXhYBOYvFKBfY2UQME1Z/AmrExgXg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":463434,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeVZPeCRA9TVsSAnZWagAA32cP/1yqAsiQJmj68h87A3E0\n3XRrEnhpS3k78yFwa3klPcSMMquevrpfjY7MoIYWd+7prRdfaOTB0oiUvGHE\nmB/kkNmrVYM4Wmek7DDPvzV+j73DWpRaggbscL8FKKPsj+ZjU84jp8c0qYD5\nVReNgV/L4xpD1k5EbzJQp4/uUmGJb9MeZrssQak1vuk2sgLyqpsqglaVY8Hc\n3HHSV3bBYlq9dfLV8QPhUL6c/8/VcDQt7sSHl6wvg/EMHB78p46CJ2VK4axs\nWetzTF/O7Wn4PTl1z+8w802tU4usv0/5ZV90r6Hpw/NytLdvJH/R1QZJGlY3\nk663tXBWQBzhNkdbDilq187CWnw/zeNJwaAkzlfai3YCFKcczkBVyfdM3num\nO3vOSpK2qeSxD6BHKtPXfqc+Q3HQEjGwmttG+cC/m/MppnLuCSYuL7ch0jS7\n189TMjX7QyxxWBlc6MRjOQbGT1/VecZzd7juD1nvtQ2I1LA2ffdxSYJqddJ2\n0gxPTr/EDxdCI0dtAqdgrbzZvuZZy/0flJeGUOWiIMsXbtLppDbqck+p1bZw\nHagTGW7LsWHYRa+qEEDVOi7e4Bs85mWS5nZV0ferY9g3GqfiIAT2pavHJZf9\nBkjjRUc5JKARQVJyyUzE0qBkyX3zKbGVzL0NvaI3oZSyW/4X+OguEcf0RhlX\nb3Nw\r\n=bD1k\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","gitHead":"2cf87456f7b6bb4803ed5f1b18a06320c301a1b6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^5.1.0","@material/base":"^5.1.0","@material/shape":"^5.1.0","@material/theme":"^5.1.0","@material/ripple":"^5.1.0","@material/animation":"^5.1.0","@material/elevation":"^5.1.0","@material/typography":"^5.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_5.1.0_1582666717753_0.19520645629500888","host":"s3://npm-registry-packages"}},"6.0.0-canary.2cf87456f.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.2cf87456f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.2cf87456f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3a42c985176b2fdf075fbd7c9f16ea2d8e0c0719","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.2cf87456f.0.tgz","fileCount":43,"integrity":"sha512-9Mv/J67OR+BSPpLeZYFCO3tOz6p9HSlZjCNMpn8Q326FfoXJzEwkPCGF1dAuJYV6aIkpHydKA1hq03SvU2fUpQ==","signatures":[{"sig":"MEYCIQCUoZGY8L1IDSpAzpG/6hDKfg/XZQCiM+QjhCmX6FtScwIhAJeCP70NUw13a6bAJ+JacXHqtu9+Ec/eOAqbDA9x4j/X","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":463976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeVZQCCRA9TVsSAnZWagAAXUEP/jy0t+Q6C/YvyQHDrAU4\nVejwaM0cE0G5JhS6anBvVKO2fAdnYmIWw/1fBi+oqvSFQy4HzlB533ASplis\nn7nddCNE9QNSMYKubWsFu/MTrdgqulQ/F7TeLL0UC4zosqd8k59TPeJyksNa\nXTtP4MIjZI4ifQrJ9QimnhwVvqdh3fucw1QbcLL8EjisFQVv3L7L4CKdUwHF\nqXz4i9h1x1kjHh+Rqzo1d3p+oGjccPZUPBzcp8C7EDxoS6w2LU3OTlsi/wNp\nAKRdzLgsKqp6Rhf4nZzws1LVYD1DSp8dHeWgRv9wKIOtSyZwx1gQD1cGzqBH\nNWSaglcEjR+kBNBunexC+iKaYVxKWVB/IXkOg4I7/o+mlA4f11vd22YW33Uw\n6UptDtI+5uOTvYn2Iac5kJZJqd/261lPmNbCp4rCK8JrEZ2cKQmjPnEm1118\n+dvmBEvAuKv9A0Vr6xw0nIHQJv/RL58Jvvej+F2KG/ANADPtAY/HiCbttvwD\nBAtTDXuloRq93c6l9mkq5zL9yXKSDapuH6lRvp+gySbsusAvwnC9Hm5HCFMi\n80fsfK/rR/dNkA5V3HO5frENzLRoAMOMPr1OI9tP8p2Eqf2Ek6Vgapb3rkpZ\n05jwKLRND1AV0rhkEjJAjHkHDs2s8BNMV26vRRXQ8z9bobJtJdHM0Mpbg9J1\nLodC\r\n=ti+q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f8e328b58b1986d1b2e248ebeef472088137ffa9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.2cf87456f.0","@material/base":"6.0.0-canary.2cf87456f.0","@material/shape":"6.0.0-canary.2cf87456f.0","@material/theme":"6.0.0-canary.2cf87456f.0","@material/ripple":"6.0.0-canary.2cf87456f.0","@material/animation":"6.0.0-canary.2cf87456f.0","@material/elevation":"6.0.0-canary.2cf87456f.0","@material/typography":"6.0.0-canary.2cf87456f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.2cf87456f.0_1582666754550_0.5862853907451251","host":"s3://npm-registry-packages"}},"6.0.0-canary.781434a92.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.781434a92.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.781434a92.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d87529dc1a20636bb30999b1d879dbb64c732a60","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.781434a92.0.tgz","fileCount":43,"integrity":"sha512-jkslheBZdTVMVccRQcND7LAW8+ZJLCfbFJaISE/70eC2/gwAYKr7VOrqNIXaxJEtkZlTTK/KLgkCWXyRhTCE/Q==","signatures":[{"sig":"MEUCIGt/YHOKF7ABRVhI4G60c2gndIqcnVdpzXZMJ90vVRY7AiEAmQ/rZgNvoz8PsxRfUv92Q7JxYAjhWa62OpTa0Q6SxEY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":463976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeVa2fCRA9TVsSAnZWagAAkLwP/18xrsEicXyw2TTjT/Zp\nxOLwD+AlgOogR5TMC+xivakr1jkjKwzQl5LqDSlzThWAnmPs/Hzv2hPBhn/i\nLmbu3VCPOrMPOXBFfAFNwOFFebxgT8yo0eMyE2NEnF648o7LZ40jPNZgVeqb\nQRMsqjpE+NaZPxkblVnmEtETU/kmcl/387C5XJFddtCqF71xyBC0ZuKI4/Qj\nlrL/Cfqbdj9O0h91Nny0mLoA/gCfpNvRzy9O2QfeMEi7Rp6IVkk5z2D5VXsx\ny5Hh57m/S8e64dgxR0y0LKFFC+miM+gt+e7dJvlXAtg0PDYYkQTC/W+uTHdj\ntfWjbCSibRPziWyJ1l3reZc0hDzG4V4neDjstVKQfekecAY1RAWX/5KN7yFY\n5rpJGs/a8HrbDejbTBx1hqmJZuqWv5ZzMwp256kb7O3gAXOoJ7jImE2HmEHH\nA8DN3IPoR5oNsxuyGKfgduc2EuyNn+89GIJh6ZKuSFq5sW9AZ2mHbKDY46bS\nweI7Y+o+QJQdOs5lh9PGy2LUCiWNoFuDMf+wJCvFXtI3HDfmA7Jqmw7w5aXq\nYG1fgJwYDm8NeZZvkdVwosTFY97DQyto2rTPLMZAugMOXnzXAGJ8kgDogZQa\nsCy3NXDGn2vtOLBEP+bjxEeB15GQwaX/5dKvP5kGjwWNCxOIzBQu8mttXlMJ\nI5Og\r\n=XNWj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"550f1e0ff50e94ece83c72bc45536fa64683d7fc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.781434a92.0","@material/base":"6.0.0-canary.781434a92.0","@material/shape":"6.0.0-canary.781434a92.0","@material/theme":"6.0.0-canary.781434a92.0","@material/ripple":"6.0.0-canary.781434a92.0","@material/animation":"6.0.0-canary.781434a92.0","@material/elevation":"6.0.0-canary.781434a92.0","@material/typography":"6.0.0-canary.781434a92.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.781434a92.0_1582673310988_0.17987128780341965","host":"s3://npm-registry-packages"}},"6.0.0-canary.d6f60c98b.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.d6f60c98b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.d6f60c98b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f537daf9535669924f6d9b45dcb494b9189a229c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.d6f60c98b.0.tgz","fileCount":43,"integrity":"sha512-PM2w2qKWpO+SzE2+2n99PmMpqjhF9l4md9/sws9HjkOCuKsMT0TX1Z2UJhWFE295xgWbUsehL9PSOGmdvboSNA==","signatures":[{"sig":"MEUCICJ4ejdQReA6iWdgb3pA9Mt/5AuL8lgHuijsq+yTtI2+AiEA5Pnbr+3rQgbdHbqYU0SWpxhfWsnaOI8KxgOlaEkSgMU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":463976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeWY5dCRA9TVsSAnZWagAA9bwP/jbhqbkKhHOT/YyoiUWQ\nql4F3oXhm7EaWNyH52hqT0hisgRL+5DOGeTjZvWb4BSTYgzJOruotNG9jZ9y\nvcFO/Q5VLMRX4IG8PiA6TRQFGB6baj02JwINApl+SdOT8gIDj02Hc4LUNcSW\n4Om5evZl+Mf36Jnp6O4/Y9BS+7maMB21gZ5NX3tTGHPN054jmpiUhjncKAOx\nGnXEqYuRXPHjgMhsAqXZIq3VJ+r+vAT003b0n/puVdEmMEiMXsh7vxFR93Gs\n6gLapicNRzcCWkkSh7M0TO4pOB9duE1xQtOVAfbKLOw0TJ/jSzTIGMxydz2X\niXvlToDUePdbdjeSHPKeEV1iAqtY8vMQudkJhLBywsR7+wvc/SIZfH732VLW\naH6yJXq6EismGBMs2fkJBWGCsaUjV2QqVc2ijvQZWNV6DlSdX7Z3/4jeIhi1\nPGXANlXMBOqq4tyqtKNFMeynEu150ls7pbbkYfCO34RdLvflP4pFR5j7Lbys\n2HylLyCSKpFMZCqFq8gy+m+aXxl7X18w/vF6j8IgDXKXb3OzOtftP1XcIU8A\nMFDqfqAkOQY8tN2TXU0dr8IxULeN7UG7a9eTHIg4+h984SKU2CpmIXuXeIIQ\noSFZNDI3Nq0rCtzn4QHqKjiPVhjA1mqpj3b5gar0uPiMzOCRk9BQaZ/TOsJG\nE26I\r\n=wjnt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"51319f628dc2d5447017b393bcdda8ea48a93896","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.d6f60c98b.0","@material/base":"6.0.0-canary.d6f60c98b.0","@material/shape":"6.0.0-canary.d6f60c98b.0","@material/theme":"6.0.0-canary.d6f60c98b.0","@material/ripple":"6.0.0-canary.d6f60c98b.0","@material/animation":"6.0.0-canary.d6f60c98b.0","@material/elevation":"6.0.0-canary.d6f60c98b.0","@material/typography":"6.0.0-canary.d6f60c98b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.d6f60c98b.0_1582927453264_0.5160933601083753","host":"s3://npm-registry-packages"}},"6.0.0-canary.69edc6e28.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.69edc6e28.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.69edc6e28.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6e84ec83fc2c33523725f234632cbe60fb08562c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.69edc6e28.0.tgz","fileCount":43,"integrity":"sha512-5snz0lj59RjGvcpA2xbxPnLkb6GprgUG3fTV4hqF62j6GxHDJgjebDfrg9szJxPZ/GcHxXyC+oBBjUPsk+IJgA==","signatures":[{"sig":"MEQCIEloK76mSuJz5nWIK4E+IgCIoIZbh/kdAN3fEqcULGQTAiAr1l0ax6/e+K0V1n6x6f33RKKExlQnm6T7kTN6utW6yQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeWZBYCRA9TVsSAnZWagAAWHgQAJDHaCJX2GVFE1GLNzlt\nLPNRR2GRQJ80PPtW3MZV/SGLBeNfieI8G3UvvybwrvM3MmUwLLJ8cvR8fmpc\nCqYuRfg41QBJAigJvZRNYJiJV2586yJf+XMfzUO6WYNlNBx2d+jNTj/stTsq\nKXiDAGvk1EjQzP/8p6Pw6pABcgv1NL2NYag3vFlC80ff60HispEAFGDm7dT9\nouzy/akfzZMLdkmTA5hpkoZyzTKvu8S7fGg6sa5ddKSEsYVpAGpglgpdMtEH\nZcwjNHOWs2ZpKxAv7x9NUp8BXTNkQyq2JpyHTsXRy6N3PtRiT8pIB7bFkk2s\n3WbzOnY24tF03QKYgYOn8czWtQIoAs3ApcqK/3IvBJscXOgO6XCMiD3YtsPE\ncC8L0WLnrtD14K/OndzBkVugsg1yuM6t/20MYMFlAbK650OEMfTTEx2p1z3/\nRbb8SpFAZNRhtV5KAzibXYr7aoLX3GTEohnbKS7R1jhy3a2u4eWlrF5dPRSP\nGCI75zqNy/wc2CPwE/UoV6I2HXGCw+3/AVJ6ZBe8ChWx7WtOeiiFg9u2B1Dv\n8k/JxJTHkkqx/KQtysRj4paCjkWqvd6bjB0f8NNv129mw+M4BpgvxQGZlNah\nM49uWXdKqoyIen6ifx0TweZ366pKY2OEIDW/SBr0njf/u3akubwJIyaScUv/\ny327\r\n=V3dj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7394312b46cecfacb3ac97cf147ed16fcc42e538","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.69edc6e28.0","@material/base":"6.0.0-canary.69edc6e28.0","@material/shape":"6.0.0-canary.69edc6e28.0","@material/theme":"6.0.0-canary.69edc6e28.0","@material/ripple":"6.0.0-canary.69edc6e28.0","@material/animation":"6.0.0-canary.69edc6e28.0","@material/elevation":"6.0.0-canary.69edc6e28.0","@material/typography":"6.0.0-canary.69edc6e28.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.69edc6e28.0_1582927960384_0.628742575435209","host":"s3://npm-registry-packages"}},"6.0.0-canary.9372e4939.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.9372e4939.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.9372e4939.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8792198b48c11a6057e7e8fe94e1118e88e64341","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.9372e4939.0.tgz","fileCount":43,"integrity":"sha512-UTcOZrGI00l0fabjJl/aR5G23KYJVLdkL83y2xWsYpdtjPISELMmIo8yCofw5MUdry2QPL92o6su2SQUC15KtA==","signatures":[{"sig":"MEQCIAreuFccwAJp/OQx3cf08TYcQJvsZvD2Hb9fsApCDFv0AiBrfOAzbmoJNPQqDQ93h7TufGgow1un+ogkFzQoSninQw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXqvGCRA9TVsSAnZWagAA0DwP/2WbUzhfPxBrmMd2fndI\nrHcWnM0gZMmXt2TRx6llRR2LfIFhlyxClVVoGUqfqyksROE+y//j2RmiYWZ0\nyIFCdhBoQVuBS/ccWGDHrTn+GpRO4D3sJdOdZBceh5gQESUQky4pDQLUMs9H\nmZNruvMHEZBCiSjYeqaH3rspwXmsiu5WLFyS7n0utFYxdlfEY7d8r8WnuGDp\n/eRtwBaPpyX+kujVQSzf1Qz++julU6Z6vXkQTSGamdVwiGCphv1zpW8PamAf\nJMM2iuvbUqGcab8W5x1YfXUN2ek1DqHsnmzZ2TX/Iam52HOfljlvi6esxhQk\noRmjBUTAIOmuh1YwdfOoPSTNNEQJ/+Zg4XF+AfOGLd8vaigYEutS25b50S8T\nLfbEttLNHyfZ30mrALsWayXYxdBaZaoLjdj3Aopl+XQvxaA6V0sAFDF0ENtF\nhpd/am+9gsh6/BdZPWsXAPOlDika077pGFUMY/58l6g0wiW4wxuPG4AS5fSc\nA6M8EUBLfwjoBqTtEYKwJc/PbyQgN6f/gTzoEeb4+HjxEm+Fq2P5H9BBjmjI\n03nrqKny+Ex87FVfF/ej1tl5G3cfxMMrC6ZliCxnsHzlZ1oEQ6swg/QuMzIS\nWuTbD/y58AAnXJ4HGzJ8cUHy7MCq6XymmUAwTe6wYllyAdzIxQCFRIKaCQ1+\noNiT\r\n=5YF5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e54df7e88218f93cffe81e63d7e28371126d5611","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.9372e4939.0","@material/base":"6.0.0-canary.9372e4939.0","@material/shape":"6.0.0-canary.9372e4939.0","@material/theme":"6.0.0-canary.9372e4939.0","@material/ripple":"6.0.0-canary.9372e4939.0","@material/animation":"6.0.0-canary.9372e4939.0","@material/elevation":"6.0.0-canary.9372e4939.0","@material/typography":"6.0.0-canary.9372e4939.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.9372e4939.0_1583262661568_0.4736501782822373","host":"s3://npm-registry-packages"}},"6.0.0-canary.9cf5e9842.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.9cf5e9842.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.9cf5e9842.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0ec4cb838b4606269812b2c2ec36dbe6bb60b420","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.9cf5e9842.0.tgz","fileCount":43,"integrity":"sha512-RpT8IMAWMTNENE9SkmoJ1v9Jv8DBpyk5QeKrKxM/Iimhf6v7nm5sqKRbgdVPDBdvDZbjjdYto99/Zb5AuFpQAQ==","signatures":[{"sig":"MEUCIFlhKGsWhw/FZuMtuu+wSLf56C7KE6xAM2cwtuImXqo9AiEAnqHbAnVRz7JXgu9D1TWCnhOitdru57cJrWz5c7YBa4M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXueqCRA9TVsSAnZWagAAN3EP/0VitdXfTRzBXOO1DaSs\nBssKm5nQBNsxdlMbW30dBCHvCLutPjlEtHp7yKA9YaOgMeNnZs4337N821eb\nUvDV/sFQAWnAKzmXsuse+MYxMSVnScHti/PQxISa0FLoC/2Rh6jpx/fqsWO4\njP7vl30Y53rJHQwbOWU6yk5KUzSDtGa7H0q1tBN8gacQwkYA/3P6+xyS8Vih\nn/9vck8DeULoG9uNR6ZE8J5knqHfIug7EzX8M4LcMbsNzvEPG8XTUHdW3y51\nomDEQxxN/pHq9J3kNgRYiCwB7yGeWqjtjGMvbuh7cjW/5ZHmbJ7Ydy14Blpj\nDGfW/5HclSytGbrtNoUUwAGeYD2kUvLPFWRUBx9Qofj6BqXWJuk9N6/YOAvP\nEPEz47uoax5PWxJSdb+oDUaXK5DF6RfBqtDRhPpKCOEITlIPptc8t1AqpVwJ\ndDE5SDxb0AGEmUYMOS+G3evmYKKXrFQ45DEStVu4WzWzZjrgsDkFe1iuoVlX\n9SqGyzT/SBvZH/nQ8ouJIb9T2zb8zVu8CryW2ANxpnHTVx48gQpVQq0NsPSS\nBvsM8WswZfeX3jrxT2ks55LSpkFsnvWACW2SYRTr6hNxZWZuHc27rDWXySiK\nmW0VKV1ikhfzvkBEfk47/Q4/9doPrr9HtBCvcfWcuXGDj7y2wmlvos94P7PA\nb8r1\r\n=G3/0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9ae3d1faf8362261d4cadb5f9386265501b7f143","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.9cf5e9842.0","@material/base":"6.0.0-canary.9cf5e9842.0","@material/shape":"6.0.0-canary.9cf5e9842.0","@material/theme":"6.0.0-canary.9cf5e9842.0","@material/ripple":"6.0.0-canary.9cf5e9842.0","@material/animation":"6.0.0-canary.9cf5e9842.0","@material/elevation":"6.0.0-canary.9cf5e9842.0","@material/typography":"6.0.0-canary.9cf5e9842.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.9cf5e9842.0_1583277993605_0.5432111966426683","host":"s3://npm-registry-packages"}},"6.0.0-canary.3657f8863.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.3657f8863.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.3657f8863.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e5bbea05a3f97168913bdd5f6afbaa748be8fb00","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.3657f8863.0.tgz","fileCount":43,"integrity":"sha512-+LiR5DPKRcB0Gexit9RE7SxYDvQdTqP1Gdv8KiuRLM0Ul1yGXSNAMwbOthvn1oYNRvhBP0qtz6k8gkLx3tecbw==","signatures":[{"sig":"MEQCIGzokKIXFr/jnSx26l7xcx4LGU7Dlb5i+pJ7DvUpBybgAiARMQrSAixozH5GPjtcE0+m+xCBU4ywvh0QQpJcB7VnVg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeX+kICRA9TVsSAnZWagAAb/wQAIb82zQKmUwANYENOvM7\ng3bsK8aHpFD6qg0PDv/P89RJ5rm2WWG/HPv354XmHHy3yIxHIaDZ6m8vZz5K\noUuimBBWHEqk6lzjevknWssEJCoHVHE5/Ty+Do8sN6O+q+NSL94jKVFDKoWq\nULfkSq0A2/gqeuUMelbpr37rxdgjuRs2WG9TxMDZVwrHFRjAiP9rldhu/xPL\nK9mkK5qzuq+RHB/FAhWFIKguTVexu6ysGDDqONMFQbkGKFEksm0FmO35SJKr\naC9nZpkdJMvEAx7MMv86a5Pu6dtIIZtDuIjm3YlqhQAn1DR9xC37j9xLkkUJ\n9dgf+iwuseX4u6Yu6zTtB1hQK2KL4N6/6sisTfzeS27z6yBIx47DWmorf9fS\n4yr/fC1tE1bBTsY2S2eHHle6pnl8q4F3T7i+82/y7oo5rsDGQqOfdMoI1pLN\nFa8QPsLbVp85JZrW217vMV/081utCr3qOu46+iSBPKDIsEGCpGO5XdRNi8k3\n+Qbh4X8QAuLwxr6oJ9cNIS5FcfHzR0K/rNzTivsSvRGl5PMiRCOLwdypq8o8\nVvscvCdps7sXteUWWj8Pjiiom7Lm1G84tx7Mh2lmq2q29vhppM56muPccquh\nj9t7qqFglDh6FLpdb9UZXU5hQOJMBeP9vT0qZ7/1MBzOd0et12zKYc114B+a\nW2Ms\r\n=UbMJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4075a5619b546f352f6366e5e90c61777ee28f5d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.3657f8863.0","@material/base":"6.0.0-canary.3657f8863.0","@material/shape":"6.0.0-canary.3657f8863.0","@material/theme":"6.0.0-canary.3657f8863.0","@material/ripple":"6.0.0-canary.3657f8863.0","@material/animation":"6.0.0-canary.3657f8863.0","@material/elevation":"6.0.0-canary.3657f8863.0","@material/typography":"6.0.0-canary.3657f8863.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.3657f8863.0_1583343879644_0.9851148847937268","host":"s3://npm-registry-packages"}},"6.0.0-canary.98b843417.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.98b843417.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.98b843417.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"27e5df1713eef7e7970099db2866c29a3e8d27c9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.98b843417.0.tgz","fileCount":43,"integrity":"sha512-h3s2R4SzAlTC9NS9terY8c1gpleaXXyy4WwDg3Y2kcaBQ4m1FituIRMDYVmA3I8/KYUQaDbI1+KDv++XtuNVlw==","signatures":[{"sig":"MEQCICdvtt9V4qIFbM74Dw7yhOURDjKMe8n3mOqbY93j9GIyAiBltG/5+yh8lalH9rXHnarJR9YYL3HJto16jQ5UrbueGQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYUWACRA9TVsSAnZWagAAlMYP/3BwBJAnkPF8sT/fP5RZ\nC3hrX+CV5Nq3xyWzq4VMobdRViNsFg6yMXfmuL3J3CKFMd+rXoDTMCKKr5qs\nV7Pqc1Nw8reMZ5+VkTSnPe6oVdkAYf34s9AHGOWh0hnPYxzWq3qHa9G0czps\nV+yjrB+3uS/iEs41Yh5OhL90S8fFcnP1nefRnedXJYOD0ULYEM68sk4oY2TL\nYVF9JPqlbeJS8R5O06jAyaBsJTSJOCk6GnGle35IN4weT21rvMXBS6nTIo3P\ny81kKru7MlKdhFaUY06GtXONumrHDquxtWJ9wnx3Qj8degiVmD2j8453gIba\n+16aMxkBBCJ7MpkU74kiL4TwY01V3SNkg9rAklovgVoQQViwe+j6xieu6wab\nAKY5IYb7RTb2MZ2B0kEVR7oIbKuCG2QpsEIfTZ07z4sS0uboPK2iHN1G7o9B\nhd50Rk7XOpOu/9Z9OS8WlwgBDKv6tXx3ggt1A1sLsPmefDn+4CiVpFLxhUfX\nf4wGIWJFrz0ba7MzQok/7xL8NgpcuEpZequffJuLG6rk1utWx5jocksDJnsR\nKpRsCSGeZ/Xbqd1FMo/Yfb/8sZpMXG34dO90pZHpXMAwp8CYI4N4kXhagAli\nalY9/S2bMIE1RLzYT9V0IhzKnfEexYXxgWWfK+KQkC1p68AIJHbf9yBPS33m\nB8W7\r\n=2Egd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"68f2aa7dce5bfe926cedccaedf1c0c98166d0bc1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.98b843417.0","@material/base":"6.0.0-canary.98b843417.0","@material/shape":"6.0.0-canary.98b843417.0","@material/theme":"6.0.0-canary.98b843417.0","@material/ripple":"6.0.0-canary.98b843417.0","@material/animation":"6.0.0-canary.98b843417.0","@material/elevation":"6.0.0-canary.98b843417.0","@material/typography":"6.0.0-canary.98b843417.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.98b843417.0_1583433087987_0.8906877653910832","host":"s3://npm-registry-packages"}},"6.0.0-canary.17b9699c4.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.17b9699c4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.17b9699c4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"96e12ff743af43a065d2e52bce0035ecf4d9c8bc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.17b9699c4.0.tgz","fileCount":43,"integrity":"sha512-/Gf0g4CPn1Q/kTWkE3R2bcKazqxdhJDIcxjJHlHguVXRr/P27py262w6VQgTEkWY2OBitGao/WM4bNfonVEW7Q==","signatures":[{"sig":"MEUCIQDN+yzsPMiofb+LsUmSMB8WhChLqSPri/SIqUyBHWakwgIgIbrQjv8p5jE+hr5oWsxxa4ofin18YA2Tx9ODr6xINaw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYVGFCRA9TVsSAnZWagAAYMcP/10/s46aD1JNaCxcj2u9\nJtp6OKofyl7MZiiT4bVDA5wTVuEW8G4zlohpel0J/6HeR7ZUOr6Ot+TA5e02\nxqtT3GTMm5XrDESXNfE1aARVOGk0pLSnCCJrFFVqQ4MBqwwIacnOMUvLcNrN\ninIvqvVVADjQbsb53sxVyfcWouphuMDCGiAn9Hix4Gbjm3ah4QvRwFYgdNff\nvu62BHM+dLPdVHiKE2qZZcVMgrDAF/VbzhR4mYz15C4nDNVJyeqvR5N3EViG\n8dnL9aAACImN1763yHVLdiTlAhMaR/nm9Xb5sGQSOhlhWaPHplsdS/l74ES+\nzECvrSEKtTTNz6oFVndDeOVa/Ei2HLAlpzuQkvMn5mUVaLVzPP1jCcsJYMOz\nxQDqxm0j8P8/zJtpR6ve/9CmeD3gj4O6dfZSNupYSK4XnB0Q07leErG8ToIa\nB/0dMaDcRhCQwKEIvVpfx4OzADrE6SsRmg4r78xxQz44065KZxoZrrb9kDEu\nRqJCB1o/pxPiBwWuIJlW4zH/D4WVHm+wZqiqPAr0eplucDeuH5BsdAxzyPq1\na2NSwp604VvcKRI0QuKCyND+EOccKcsv3LIdvVVyIeyeD+F8lVFvgwW8e+bA\nzdo6OgCiImP26Th/lmk/FvGRvKtudDgqu7ebsLgdKSnaOI2SN9hOxHiP0iXv\nZERe\r\n=WEnO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5cc71188279f7fb4c0eb3b0b6b98b59815539374","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.17b9699c4.0","@material/base":"6.0.0-canary.17b9699c4.0","@material/shape":"6.0.0-canary.17b9699c4.0","@material/theme":"6.0.0-canary.17b9699c4.0","@material/ripple":"6.0.0-canary.17b9699c4.0","@material/animation":"6.0.0-canary.17b9699c4.0","@material/elevation":"6.0.0-canary.17b9699c4.0","@material/typography":"6.0.0-canary.17b9699c4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.17b9699c4.0_1583436165154_0.6083445090743622","host":"s3://npm-registry-packages"}},"6.0.0-canary.6ee035572.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.6ee035572.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.6ee035572.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3f19d23c34bccaafbf83bef1860b21e47202d043","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.6ee035572.0.tgz","fileCount":43,"integrity":"sha512-T9i2Lyq9CCrE6/2QLy1fDF3NwA2EwK4rX6a8F3lkQyQvdWVMHNqUX1NoOWyyWiZuL6pfj5ooXBadQMeyKCOrSA==","signatures":[{"sig":"MEYCIQCpPp6BQDzEVcAAz84gOIImuijqbLG+l/89UH3D4m079QIhAMNLKFQA/cEqP/2DxSwkIOlrF0dS1HfHsKsm0MMEdDsx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZnMvCRA9TVsSAnZWagAAqqkP/3h34fG45llmxeLve8Nk\nMyinkXzy/SiOa2zhEzOGmkeguDDHazsx+B23dbR8G2VD0sUog2es5Qwq/3ON\nk3eLx8Hx+qt5tpP4B21d2Gk7wwTwIRzkR2p7Id8vNWDNHZaSpxOUf4YkACEQ\nkPJHid9pVfuNlMgnUe8oLa1jPFaLrHUt42rbAkKUTM6Ur+K7G891sM6/ysMn\nyu9TJGpku1mWsZrW+ofh6HiYI8uDb1x1qdlQM1xrwt/Y61CxMQypbY5FOEyy\nQpRE8AbP5lw1llrMAJmkwuwR5DETUfkd+HD1TiiuSIdIsxq9sNfEXV7vU9Bz\nqK6NCalWghrv15ka21tdFo2831Tc5igdCmdp3ED58IQVPKtFkakGNXmYBCVn\nAl7m0dcq0kp3lan5NGZpGv8QOWW0+veMOo02FZwjOyfYjOAkZnW6pn2q1nsV\nIn3P1MT9A1isvLICtA554xH5TIxo00RTY0q459bKepRQki5CJgi8Uyy0guek\nfzvOEVzJ84MndaXJSCdc5O3iNyE+XYGzc7MpIueYt39ee3+CCLkX7em0vQiW\nkmyzQ1udQP5bn0JbHlt8nujbyQDd6HP/MyMgIuVkO2IUbPqlFWhfDVl1hxiD\nF9z6/Wq+8sq+R4euoCPv2ZF2jqm1BnmvRTmEryMMl9IAuOZDQHItwatk22Fv\nHQs3\r\n=d6UY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f7d234455251ae34ac1d568b4654bba0bcadc57d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.6ee035572.0","@material/base":"6.0.0-canary.6ee035572.0","@material/shape":"6.0.0-canary.6ee035572.0","@material/theme":"6.0.0-canary.6ee035572.0","@material/ripple":"6.0.0-canary.6ee035572.0","@material/animation":"6.0.0-canary.6ee035572.0","@material/elevation":"6.0.0-canary.6ee035572.0","@material/typography":"6.0.0-canary.6ee035572.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.6ee035572.0_1583772463204_0.06568926921069007","host":"s3://npm-registry-packages"}},"6.0.0-canary.bd33cb56b.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.bd33cb56b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.bd33cb56b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ccaf2c40ac9f22e433f3e2680627af2a0189f084","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.bd33cb56b.0.tgz","fileCount":43,"integrity":"sha512-6X5xc4hxRjddE7jPeIkNf0Ztsnj0B61KZESt33Ws8FH7/5EDtwjiKlAWGgQoYXPgLrVfDP7veMtvO2qGJy2G7w==","signatures":[{"sig":"MEQCIDa4jfyd0n1V6ZD8natsb8dDDweJchvcxEfwKozsEA/CAiBDYEhP8BWbooqG9Nw3a+3auAjX0CbyovrYI5ha6rol8Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZntlCRA9TVsSAnZWagAAVTQQAIWuRrlGDJ5qAABnKpjt\nxEzu6xPlAt3V9Ur7LHKxES1DXaQZR5c9RLcqRoOeliblQyXyBELOyteL3pza\nGKsQZYotZTaxEXAldn3xzidntJNMbg2SlA0NCNfEnfG38su/8rnlOaP4/uzh\nbeRCaqOigRyFstJPOdqf2a4aGdI70d+rggMitxsLgOco8VHIAwWhJ3R6zSGX\nzpEUx/1l/XU+FcKdKAA187dGmBa4ePZJmSBCz99FHPPLo/eenLsyAFmmohPB\nEc4sD7iC7gxhGMSWgf76RD2pRcRushNZiZZTDaU958iKHpig3Dt+KGH9LLWD\n0XlD2zH+ksI8s4oo4AlnIssfvDm4hU7o4fYWyLBuzCCogh6RPrEC+mnMhjDj\nWkz2DHGFC1+LL5yCHTSUgULq8YKqabUbdNmp9yGMCyJ3gya/duqTN9FXnUDm\n4WZ2K7l/r/23kYTINGFsmO8HCA50KL+UMAUilw75tjR/PsGeGmvAiLAH4fot\nIhGjmbxd9zbaSv68BvQ0654AHhQwt8mA3f+hY0/3vqEPddhIb54s29AabqSw\n3TuT5fxe0ojWYoM8nMNCDREKbsNdl9AwQ8PL11B8cdv9Z7F2lCHFJOJ5XHBr\n35+Pl5AmXIbydp7n+Wq4giCIsdDBd3oGTwsn1LRgr5KoiuTBmsDBV8wp39Kr\ncqbN\r\n=I5km\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8829857459a9b7c92653d2bed2a8ad63b58b672d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.bd33cb56b.0","@material/base":"6.0.0-canary.bd33cb56b.0","@material/shape":"6.0.0-canary.bd33cb56b.0","@material/theme":"6.0.0-canary.bd33cb56b.0","@material/ripple":"6.0.0-canary.bd33cb56b.0","@material/animation":"6.0.0-canary.bd33cb56b.0","@material/elevation":"6.0.0-canary.bd33cb56b.0","@material/typography":"6.0.0-canary.bd33cb56b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.bd33cb56b.0_1583774565440_0.0061277339059184754","host":"s3://npm-registry-packages"}},"6.0.0-canary.26c049afa.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.26c049afa.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.26c049afa.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9e305b8f580feda905f92561ac2da7d34e432a10","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.26c049afa.0.tgz","fileCount":43,"integrity":"sha512-crAoSAkpCRj/HSkxSbS93XQ9uS3755RU/yW40saOTHAmlV2SY6fztm9+wXbvBGeYtr4R2IztdbChr0mOZBOrpw==","signatures":[{"sig":"MEYCIQCvQMm3NTCUazM+SaHlBKW1KVNk8JRAylNobXZHtc8BTgIhAKIYlNfScvVCy+BiuEsWcxp0nuyJm6EUsMgN9Ez2UOk7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZ8hMCRA9TVsSAnZWagAAlnEQAJfZl2ojVnjxU5x6/njl\n0rX2u46/UajPv64id/k1GQCSAax1LCS5eBOMsGa3JYnpGR2ri0R/KlOkujGJ\nntoDUPSOSmH51U+10GBF9L+P267JuH15GbTWiNubbsUmgyTHG77d2ZVXtZV2\nPSCicNffaJX6NdqoOpFx4ggCAibtfepWhxs5iS6oXFeWvDsPnlZcq52s0U9a\n+b6Oljbz7aO9V+n3CeaeJI9Q+eZPCoTRsPobWhveo09zMP6/Rthegj1DZoGU\nsqYqGQ0cyrGyOuWrpFtGGz0Xu8I3dc97T575CFV8T2ZKhYeCvf99HqXn7M6k\n6stIfLrI+lKFjmnX17NMJLOSl5RqsRvb4KpT1vSx/RVfyKg+H8mh8bQ0ga7a\nDmcZTT2e0YBo6OL+mKxH8TIKNTo4pm8ztPXza4cMgL9YsLuPyUBRxKHjWFm1\nT1st/DSxXGGTvf5OOLxZNPIEOT3KDRhjRBxVuCeKMhuT85WI7I3f8Q6uL4ON\n1rvuzcSGeDeWn5uRhWEYKzvcyqC2qVXIhRfEbynFsxVwOgCYvwePHU62JGoV\n75eaAAaiTZpNqWCNymF/xOaZcKpPK3V0SGuHkJ5sLSZNrl8tnSVOo2q7t4/r\nji//aH5QEuZCMz/+EgAmVBsPrt00ztbbuY3/JgqH8iQJjr6KayOzP6OsHISs\nCPIe\r\n=pJHP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"042ad06994baa2c42398713e57185e4bafc82a3a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.26c049afa.0","@material/base":"6.0.0-canary.26c049afa.0","@material/shape":"6.0.0-canary.26c049afa.0","@material/theme":"6.0.0-canary.26c049afa.0","@material/ripple":"6.0.0-canary.26c049afa.0","@material/animation":"6.0.0-canary.26c049afa.0","@material/elevation":"6.0.0-canary.26c049afa.0","@material/typography":"6.0.0-canary.26c049afa.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.26c049afa.0_1583859787506_0.745521559934482","host":"s3://npm-registry-packages"}},"6.0.0-canary.1db5c9fc8.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.1db5c9fc8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.1db5c9fc8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6eb704d24611e99bc98a62e417a74154c3317eb1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.1db5c9fc8.0.tgz","fileCount":43,"integrity":"sha512-lyj+UbM80lina+L3V7IbXi4LysreET9QvCaeIQId/wZfTT6/gCGUMfgsbM+yZn7+1ph8Jbks2tzrR1TqtMMC7Q==","signatures":[{"sig":"MEYCIQCYN3pg+xdjfSBu4cgbhRk+OC4tH4kWRfHr14n/nXAABwIhAIyrNudotReaxaTqvSVJuKjznQjr50em8Qfnu/t3OopS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZ/qUCRA9TVsSAnZWagAAjDgP/2/3+D4TL6MAPxBZz0y5\nB395n6zqRMr1uWpdKWRCp3/sNdQvuCNYpK4eziMa58JpmblJikPYfcrIddy5\nVdYuR+bwdnHwnirDWU4l9YaZ5hE6egHKu/f0H+EshW4cdxHLyG4VS9dvOVJ2\nzUn8FsGdrpaME+l/7ZFHHgoMwqu7S8opr/n9Wf5fdWULr5fZXf3V3rAzj+c7\nppzJ+Tv4Hlp8Drl5JkgIaLYp4GISdEnIOc9VY+5+8wuDmv2c5navpJjb1ghn\nLsEIpj5P7D9bNCvgAHkebc8z/VsqcYmJ7eoLGbP5Fu8bVa2h3KB5dS4SmUgc\nrcUDiC1c9gRWYagvEvXslSaF2IHfcEsJiQhlxv7I2ySdkUWj0t8TdY2blal9\nJqfW+dHcUJWc7BGZpwPQqQbIppJvzeN9NQa8h0dR9U31aClR8l25WPYFisgg\nipjHH/caYBGUrKDBvtSoLCKjngM9FsQ7e1Eo6I0adIrc8y7OrI9Xj4jm7TQg\n7+ue5msfYpiAVwlklyjlJGG7+twn7rv4WIt2qej3lf4QSZ/Bf9uSwaxj4ye+\nzn8SvTp303nwMJduAdoBUY+fuQ3j/5F3fX4ReA0dWd2nApZtkmXNjsBVSimB\n6nkozRfVOOGo9bPAjthoOMIrB6Pq87LF+lPETrHk8bcpFFINwdF67ho5+KD6\nQB9a\r\n=ac3u\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cc90b13bf23ae60f937a981d548d55e3641c74ed","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.1db5c9fc8.0","@material/base":"6.0.0-canary.1db5c9fc8.0","@material/shape":"6.0.0-canary.1db5c9fc8.0","@material/theme":"6.0.0-canary.1db5c9fc8.0","@material/ripple":"6.0.0-canary.1db5c9fc8.0","@material/animation":"6.0.0-canary.1db5c9fc8.0","@material/elevation":"6.0.0-canary.1db5c9fc8.0","@material/typography":"6.0.0-canary.1db5c9fc8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.1db5c9fc8.0_1583872660402_0.8149530358141046","host":"s3://npm-registry-packages"}},"6.0.0-canary.4971637f4.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.4971637f4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.4971637f4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"701639f061310f4a53d1cf60f9c881872c9a3b30","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.4971637f4.0.tgz","fileCount":43,"integrity":"sha512-G0ftpJ79k1EPCUX/12P33pwMjnSqib8ehYs5diLrQCNNC/TkvEgeWh3G40DMn+xT5lJPI/yk1qVQtrQe4FZUjA==","signatures":[{"sig":"MEUCIQCo9Pu5h7BbA7pcxKJL7ijeb77dd0Q9j+nMHXEWX4vX0AIgR+bshFyczMLf9SZXZczWjOT+4o67GZWZ+L8URmH9QDc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaBu7CRA9TVsSAnZWagAAd1cP/jTd7TV6QGO4KJ80E/fh\nEcYJPJ/siC24yPG318zi0s1q1wBp26ILUTsj05KAUtcpxRQnOt/QqbOeje4L\nFjPu8ZTjZ4l0NaX9gQiOjhSh7ztpUBVamlnUOUQ9vV3NE9s6mPuIJEj87KP6\n5BeJdnYpcwUN7SAynOIm7OZL7SgBJbDwIp1s6hFQO4V3ZdyEqBD1MliSAYXz\nO3HXG9MO3l69iMEd5dNLBN3al7rMnG8eXS6cRENklkLoHczCTCMh/475oZX3\nhWyLvarpXkifwDw2Q2jD0E5f0dtAIDl+R6J1UVHLEN2RlYgoEg+gePHHzSQW\nRVjjLqEUssfzCqh+wDlhnTVsd6N/mLJKtQLZqNMc7YWAh171E0DEMEhmAft1\nV4LckMIoxjrwazCen6NSw1i4Jc85XkfI3IbGavHHbrjEAb3Ju1fkJ0iPiFyO\nBDRKNORaIwpHCXzhJ/uD0+hVAVOEFb4Sa/0VvWTNvF5NKlJJveqK/TAOsDZd\n2WsaMNF94kIfZz9RiZPgb+6sMcJjRbYl2UeQgRO3zGmK2lnSs8LTECZ2QpYj\n/iy335sppSsQHoT+lF7YFHWR2sGQG3zaSvuKpoBEzkZsS31WV4E13BVrdv44\nRuP3WYmvr385ZyOOPr3yLCt9acn1JYndhADUmdvvokTq7rOyVS8bX8zFuL1D\n54f9\r\n=9mMe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4a67187585998b5863a9eb407a3ac0a7e550061d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.4971637f4.0","@material/base":"6.0.0-canary.4971637f4.0","@material/shape":"6.0.0-canary.4971637f4.0","@material/theme":"6.0.0-canary.4971637f4.0","@material/ripple":"6.0.0-canary.4971637f4.0","@material/animation":"6.0.0-canary.4971637f4.0","@material/elevation":"6.0.0-canary.4971637f4.0","@material/typography":"6.0.0-canary.4971637f4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.4971637f4.0_1583881146915_0.245174272358333","host":"s3://npm-registry-packages"}},"6.0.0-canary.1ae8130ce.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.1ae8130ce.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.1ae8130ce.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"509c65c168c731e5d17e63696b06a0c85e3de758","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.1ae8130ce.0.tgz","fileCount":43,"integrity":"sha512-5yrb/W9NELsNRWUtdihm6H0aj9sJ8xINroVhc1vV7q3tvD1p0IgOi4z/bWbbN0iw120YjqL/Jq5s9QvGAnNXCA==","signatures":[{"sig":"MEQCIEcaTJMCIQR/xFsVbkyijT1QsdwwdvpyOfhhwyEax6jNAiBsfe0n9Lr8Q7WE+aOYx9isfFthDuMVFIoqEG+pEVZ8kQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaB1QCRA9TVsSAnZWagAAQH8P/A7bZV68Lf+hryN2EmKr\nL6W9auDFnnPH7XSLyO7C3nFxoAOsSFeGubtZCbLTxlDfimQdNWveoGa4gqWb\n+Cul5FHR9vUanZYMWn2q+rnTMMZy/ZagstV6/ErWb1AFYypXNRRVMH6+Z97t\n1R5pRgNLlM2F/pUI7KGSoqnGij0UA0149qUtUs6pxV5gmgd1AcvNVN6sXFZU\nCQqfSgkFkkajuvRxmkQasnpjdeNyT8ddFsXs25QATqqlONEzhQJWTcbB0IFz\nqiyHOGDkiS7KND1wcXX79iE7l9YRZ2ulrGR6su4+dfsBAQyfK5fCI2HwSAr7\nwW6jqlKwTjJgfkv25itTwA6wv6Vt6BDo5tibkcxJ4gzdD/fiKd1/tSU3HTrS\nPbs6LWSHUUibmzkTkbiifKReBYY6Ln3KkST9AXPm9/g2T3BrSpZQIYP1mfdS\naqlHFKIURwyNLGm9b46zocgEjSwgpfRFAYP2e9Sv36dUtxOYpllyA8iVfY1R\nGs1KXCpMxWgTd2j+yYc41lYXXWFhjcI23kyAGfdEg0x1wd7I+J5YzNn67lL4\ndAmxQtSL/won88FKG27Nol2h7kgVLd/7g1eGBOksFeZD9P8T38LWNu4Toug+\npOx1f02r5TD4PcB8ROv7Zv5wOZpv2v7Pyf1OO/yI29rpZDlvIHPq3sVPys5j\nna8Q\r\n=Xy1r\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e5b4831aec2400bcd99b87f3537adb62cf047dc2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.1ae8130ce.0","@material/base":"6.0.0-canary.1ae8130ce.0","@material/shape":"6.0.0-canary.1ae8130ce.0","@material/theme":"6.0.0-canary.1ae8130ce.0","@material/ripple":"6.0.0-canary.1ae8130ce.0","@material/animation":"6.0.0-canary.1ae8130ce.0","@material/elevation":"6.0.0-canary.1ae8130ce.0","@material/typography":"6.0.0-canary.1ae8130ce.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.1ae8130ce.0_1583881552421_0.17465677218324793","host":"s3://npm-registry-packages"}},"6.0.0-canary.8639c2690.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.8639c2690.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.8639c2690.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6ba6f60f5c9bfc5fac6bda5e612d1f169a697c0c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.8639c2690.0.tgz","fileCount":43,"integrity":"sha512-5J6Tw8SMjMuQih8KWod0GIyRRL3EXZnZzUEZ8oi3w8yXyJQFsMdWkZ1mSPwh9slgrb1MeD6fve2cONCkEJeyDA==","signatures":[{"sig":"MEQCIAcJy8Vp9yIeQOjhcVzUH7ak4PwneonNNeS+gzLxFYikAiAUvers6K7/dLg87GAdfau2vuOSE5fPSkeAmmeS9qOgjA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaIZLCRA9TVsSAnZWagAAF+8QAIcfLeBIfe8zD8muv9R2\nI+TBGPa2cmc48hL0+4yUm2+y+vY8xAFjEsO+5rcPswh46LHftSD6lRMVx+Lm\nSPPEXxEGauW99FFBJxEH2+x+uFH58uRPOgAHlz97Zamgyo70ZGnoSiW/oT1t\nmpwhl1CV2sT2GM6iOI+2T5pxwzcGYmkCJUx+Pd0zbbisf7cfr5c/MX2NQr+J\neGVvfVVDPjvD1v1XVKY2U9xcQHtDACwvh7UHxJjFbu73v6GiSh2JqeDi/I68\nOVLC2tmNHp6K194rT9g2pWPk+RLJIV6AfGQsVOMt+RCJ0nY0phdC1INRSzh7\nsOauh73HqF2MaIJRT7QP+THncNa+MVA0gICIhvDoz5TRCP09AKkZoU64y6dV\n7a2zORCdwv+1UIbtLwMjP8fNcibGTDSeUBGaXOhH4EEXMht27oYmokP0tnxt\np6JVb+Rmve3FpCeDm+lxb1zKskMy2L+7pLGFj4jkNtsRd32ijPk3MOvKQkMR\nzaIBllQH3bh4qZ8yzONfgC/Ddw1/FtF+ytm+Vjrqwtf4hdDgL5unoFRx4C2m\npF3iOAdTLtCX078h3rXKD7k0Bu81OkDoUKRbiKNI6z+8bSgiqefn2rzpkbWt\nb0uUZI7PZz3wfag7vogq+U+//tBgWM5FBKGE9hP0uDpl+xOoKNhho2g75KGz\ni0Zt\r\n=1zIY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3834dd0603f05e8710f74b00560d4aeb887e5b82","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.8639c2690.0","@material/base":"6.0.0-canary.8639c2690.0","@material/shape":"6.0.0-canary.8639c2690.0","@material/theme":"6.0.0-canary.8639c2690.0","@material/ripple":"6.0.0-canary.8639c2690.0","@material/animation":"6.0.0-canary.8639c2690.0","@material/elevation":"6.0.0-canary.8639c2690.0","@material/typography":"6.0.0-canary.8639c2690.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.8639c2690.0_1583908426751_0.5052214911574746","host":"s3://npm-registry-packages"}},"6.0.0-canary.d5808057f.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.d5808057f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.d5808057f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"97a49e6bebccbcf21dbd261224893bc5e53c20ec","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.d5808057f.0.tgz","fileCount":43,"integrity":"sha512-JoBFimXfaPdkOCYHlZCUVFHCqhSvrcXAkmOvMJgdfRcJac2z7TZXCHzG4/R12w4sgvBCBQwhju8fZOeiPz4uag==","signatures":[{"sig":"MEQCIE+qQDzn2zo+9vaVdl0UkdDRhOR6v5gQ8zCSXY38qjmHAiBWvatPYSsAzt10VBwjSxb88dKSSFTnuX7odw2f189/PA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaREcCRA9TVsSAnZWagAA56gP/jrTUJ2grPZgid4VmeYb\n6Jss3YFgSiVd+2P+6EEYEJaPFQjywXWel3HONmRT2xDfeU8Fn7jdLKLbGm0P\nc0fmvxX0VrmV1ckEjsUzhzjvTLsJFSYs01bUvqzyBG5hO5TMFl4gSQLLS6GQ\nuPqBfhnED16ztSkpSyYd/Uj4XxZhXEOooHRLtrB1Usvd8PFaCTfOvI/1uEGN\nEEO70jLV2Yil8vnzB4JXn7mjOZMSq1rFSgCuzm4RLd1zHNZfbK4o0Vne97Kj\nO6vXAIqrpwDczjOCeiOg8MTXu3NZFyInQZ5izNts7kQRPcKsltIb0T0VYuCD\nIALb9x+gW/dy5maT97k/L2ttsnt4dfal27EmB4g6fgyYx5OjLI4+Ao0TWVJ4\n4dfFsRnoay9eksx2RK+903GjVgUogtOldjjgYxMenE3OPgo3X+N/V5+/ybl4\nivjNiRvwdmH2blB9TwQt/INktDc0cZJbhUb8LeFZba6zjS0sxqCz2eUgXxJ6\nxRv1d27yyPNjaCDjvLQVsi8XTB4BJR7FdDUqQbQvSNuopSv5cjokpWrhlNu8\nWBKsn/bhFz7xXrtiPYnBpgfj38TpoHqSYjSoYUmMh16EMLMmn5KicBpmSGdD\nPHeJX4bihS+1WNA8K44Fl/BxSFQ5TxJNyIKaGsxof/xUCAxZQxh3vOmLsLZf\n/QdU\r\n=u2/h\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"00a6ffbbceea71ed3f3126dbce724119ddc06379","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.d5808057f.0","@material/base":"6.0.0-canary.d5808057f.0","@material/shape":"6.0.0-canary.d5808057f.0","@material/theme":"6.0.0-canary.d5808057f.0","@material/ripple":"6.0.0-canary.d5808057f.0","@material/animation":"6.0.0-canary.d5808057f.0","@material/elevation":"6.0.0-canary.d5808057f.0","@material/typography":"6.0.0-canary.d5808057f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.d5808057f.0_1583943964353_0.964595157177436","host":"s3://npm-registry-packages"}},"6.0.0-canary.b3f58203d.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.b3f58203d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.b3f58203d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a62fc4c6e2ebfc6916bcae2ede9aadf01aa895b6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.b3f58203d.0.tgz","fileCount":43,"integrity":"sha512-w8CrhKEtOCpQxqhNok26obHp/UNF3xtsk7qFj4o58ZVDtGqvwgaEdS7Ml4NPC6HCSvKmU12H7nFipfpbC22Gyg==","signatures":[{"sig":"MEUCIHJwG0oiT0tZvhj/4L8VFX0baJbe82Gp0i5DfsykgpGGAiEA0qljxCIz2gySdwF81dW6Vwyd7/kJXxULJsGuoyl52is=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaT44CRA9TVsSAnZWagAAPv4QAIhxqOJFmXCeSp9bfYT0\nQiqaW+xSBUI27B9Co3iF4VGAq07q2NqmzuuuDxBeY1zi4AfN6y3qe4v6F/Da\nXkLzYIyFEv4cQ8qlCoP6m4P5CYIVl2lUPLLeg/A1hyOQSuQC99IohZnDtyrY\nI+7ZXuFRqU5sm9Bjsj1ncHTCkIU2wTcLOPdwSHlLfJzO8BNz3Us+AY4Pf5e/\nWAC9CvDQWZyJOECNViYNG6leKbjUlEsZaZxpIm81UyLVt/ioPQ4OnG87vmKz\nhTaWnsUaeul2vXrisiGGU4LUY4HdUN/6a6+xXjgpFhWHrNXqgpZUXo66rJ0G\n2puV/3pOKPJK1KdFLh1G5xrrSQ5lk1wUDgpzh7V2SdfLvZdKDXPFvIbWyAPc\nPzmQzct/e7aO9CPqDVHyWH+1NkR4iMJkq3W+beAKv/nT43p370+chWzldpJp\npDEEho9E2JCWMSsyldPu0qw40Hhs9NgqMaBP1uNCE7GX8KyXz/qh68zHoq0k\nx1u85vRble1CSpwKitsR0XksRZwk1IvKD8epkYu+j7cHQ714Ethi+jUQ6CMP\nTkQ6iqsUIqBNPqBwJcIXwvp8PlyBdkpvYo1QcPfK3U4+Vt6AOPpDAHmWfo8G\ny2aZrV5tTYYdFOlIuu2gUML+M8qozVGlzpH1O4fbd6QiIemsMgLRXLuICQ7H\nPnMi\r\n=Iukq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b9ad376b2ebba49982e9b605c903e752e4fb28cc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.b3f58203d.0","@material/base":"6.0.0-canary.b3f58203d.0","@material/shape":"6.0.0-canary.b3f58203d.0","@material/theme":"6.0.0-canary.b3f58203d.0","@material/ripple":"6.0.0-canary.b3f58203d.0","@material/animation":"6.0.0-canary.b3f58203d.0","@material/elevation":"6.0.0-canary.b3f58203d.0","@material/typography":"6.0.0-canary.b3f58203d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.b3f58203d.0_1583955511780_0.05340858192269615","host":"s3://npm-registry-packages"}},"6.0.0-canary.bec065920.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.bec065920.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.bec065920.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"52b95adeeff66c0c114cea40547e3809e6ba94cb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.bec065920.0.tgz","fileCount":43,"integrity":"sha512-i2l27cuh/dbwk7BZhPcOZclP9tSePFjv6JM5VjfhxhT+kMN/JVqcCzo8n02tjuWGW7ZdFm0KNVOLf2kY6jI4Mg==","signatures":[{"sig":"MEUCIC4VJ5dWJrAZ+wfQTRsxV6QIF89zGwSioazW/xTrUUfSAiEA0kf2A+DNLDJjNRtahAqB4gEQMJRtTmdMtY6AVLfANvI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeapmmCRA9TVsSAnZWagAAdIwP/2ePBTK2JzOXxemSFnVy\nA3eYhE0CF8+lQQgUyO/ek0Z4HnqZaTwBZjfi29rJict4fUtkAgBqQWauV6or\nhUF9FTAbhdryq1eikxxqgVI/kTeeuwtj8+who6ErfLjylWAJdQMVndId8Tyy\n7waGuqzgZF1qydI458TEBHvp1m0sqySOzzTRyP3V6FOjyLSHql4IXJ9HnQ2Y\n5jPLEp7+1q35LetoYrmSoGDmqrsUnhStIda1ITAf5oreunOpshClldSd3mhq\novAv+2mvKVjlyptAw7YegPIIRFXHxl9UQD0Jwvvl4M3G4DRiq62expS2XnTh\n4I8fQG3vGLE7yHMmPQlHbYbEHtH+5cOHVwZ4Buu1bCKFs2V86o+ZB0iTWAic\nH6F9EzgTNDBJEyJfwvw7/RPhxKIAVQ9Q/v1wuD39q+mvQNwcXqY33zJf3l/+\nDQHW1lq0cf824lckVugfURT0OajZZQmYzpoWX/SftxIEaCytYuVHnxLM3vQb\nKq5ChqPJ8z+5w7YdJe3vkBpIJm9b4rGvcBwi50XJ0n0UmamoLWIFxH2/ca+/\nL5sw4Mr8HsOnii3YWTH3PGx07cjS3hQsOuLfTiASKot1NnijX0ZNBcv+gVmE\nGohv7qGRReljIp8q8pP6pPGc5BeFCNQWRYQPQKqVKTX5XUTMnCA3KlBC9QlK\n/YXl\r\n=xNPc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ff203cc1a864067909d369c1408fa7ce64954660","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.bec065920.0","@material/base":"6.0.0-canary.bec065920.0","@material/shape":"6.0.0-canary.bec065920.0","@material/theme":"6.0.0-canary.bec065920.0","@material/ripple":"6.0.0-canary.bec065920.0","@material/animation":"6.0.0-canary.bec065920.0","@material/elevation":"6.0.0-canary.bec065920.0","@material/typography":"6.0.0-canary.bec065920.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.bec065920.0_1584044453917_0.9875369530221039","host":"s3://npm-registry-packages"}},"6.0.0-canary.776291ef0.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.776291ef0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.776291ef0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a3103106d7c5505235dc10bf1a587f8998fa992b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.776291ef0.0.tgz","fileCount":43,"integrity":"sha512-50LAxX40104NBRc202Tg+PVOjF8y0R7fzBOhabQxIulPN7iy0lh82Rh2L1vakpAxgeyvjPLGtX7Rhty49rCdxg==","signatures":[{"sig":"MEQCIHO7Th0itaItTnoKfpUUPvlQgD3kj/Xf7cbKm3xavshuAiAITi/chout5P/gYsKDb2whT1vaK9mrz9zy2ixFOlQZUQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecSM0CRA9TVsSAnZWagAAmLYP/1A1Ei+HyGTi7iRquEPP\nWdWryt3CZZaWDgX/22SltQGJ9qEPWqS/tWCNID7puxmbe1uC6T27Np9YCtpH\n7WHQIJ7oRDmVxsgilkxX+VB7ulzK1wyiRilzjvJHV+1r4rCsQPxsCLSF7daJ\nOC8vtCR9zchoGqEWKkwHVu6fTmFXBxKE53CRClhEKzr9b9zRvC42M/6bMyKE\nc6Kew1GXxnpV59alb88OxHiK/gLiZexZrljbhXYgPLMIy++RGM2B14Xxv6xN\nkmLFfldFyuluO2PB8SN54kVga4TymJ8eCpnZ8XqfuxBZtn3PElQBsnlRTjgc\n89O5Ub6NEbppEdrGuP5HTakkkJXI7FdcVbNt6WWrtjX5YyQEBRjYbJQktbUQ\n4+ZpZMRl4bH3OrG2w/jcVnwkYAj5wxTgNAI9GnCP6GkmGIXZJvvvpsWUvSIN\nQhnXT84We/3cHp+BAWvVWDn32GaLNHlOdqlmw2KFLOe0h2qReKSenYGsnqu9\nA+cXmO6mPCkh1fBYHOR51a7uZ0Jo8kNOYvU5yAUo87NKotza8BXttvnm6p48\nznrKJq0vMtJW+r4au2Tit4hpbeoIWzS23dMZbF5+wOTHbRNsLvIPQpvpKfUP\nd2xt6BOS+kEFXiN7S54F7v3U6uxpom9LRb7fbZljND/OT06mAkmL8rzAnVN2\ndnnO\r\n=574v\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"32f95102d2dd047c662697060685989ec64bb05a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.776291ef0.0","@material/base":"6.0.0-canary.776291ef0.0","@material/shape":"6.0.0-canary.776291ef0.0","@material/theme":"6.0.0-canary.776291ef0.0","@material/ripple":"6.0.0-canary.776291ef0.0","@material/animation":"6.0.0-canary.776291ef0.0","@material/elevation":"6.0.0-canary.776291ef0.0","@material/typography":"6.0.0-canary.776291ef0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.776291ef0.0_1584472884315_0.5506714423698218","host":"s3://npm-registry-packages"}},"6.0.0-canary.ece19f3dd.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.ece19f3dd.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.ece19f3dd.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"38f79f49e4aa6ce94eb6554798246d4828a3d88c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.ece19f3dd.0.tgz","fileCount":43,"integrity":"sha512-+BAd5oaHsLHLzbY2TkaDaKK+yS6RoVtHS4k9zL+957HeZ55EJjIkxisv7JJlE0m5ZC0kd6OU1FPWkbuJf+P51w==","signatures":[{"sig":"MEQCIAHWqjq4nmmuNIwBD9any2Fpmk8BkPof+Kl2aCm0kJ0QAiBW35K4kqjoOnRu9k/SZswnDxGAzUsPrM6oTCfVcYvOHA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecUjFCRA9TVsSAnZWagAA3rUP/3c1mBsu0nQyTh3BEY86\nayOe4qBLCb/evSW/QUwVfzoJg6SMxAEGA3m8U3ij1Vn4Iai1x9sMq5qLTzrU\nprzDcZcMZF83JYE+bgqfiaBfg03dm0fwfTK9VLl8OZ9NqPRkBnYZufvdVzna\nSvwnxuqwzF+eHsjWLFIlHbxm2nKid6FR8tjfAxBemjSCuUkzyWEv4iRbGaG+\nPOYwGXqZLKAScHkpKMWVO+lBE2XHCr55NbwZHTuis5HxHDyXIgaamX7MEEed\nc2rqGL7ZxGalheVWluKd5r9zbKVx61e0eJvJceNVr2uSnqi6Iwn3XUjSg+BJ\nK5GvUrrdtB4g5iNkvzO5oVBqcQeGIfXVXbMH5LZpaCK1+DYCtRVH+OCp0WdR\n8L+mzvX52FrkDiKEBoKZkou/KyT3Clox0e5CrWP77H/pn2s0r051/KEgaZod\naxAiaeYnTeM6uFwIhtIqVwStWoYp5/D32qGexGiQQADPG52bKiyBsxi+gk79\nnQtPY/MijxKxlWT5zQrG/MTnr6veo2pidEwkLULVbu7RxfrAh2WdYThEO5+u\n29Wxfv3n3lNXE15547aHbK9CtngLXrnjrTxUujaZMb+0XFokvNm3X0w812es\nkh0zCEBkZklfP474yOZg4l+CHpc3posnsiJI1F7qvGBn6viUSb3oQ4NlgYms\nwKFM\r\n=T0nV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"41a07e9906ac09ddaefa5cbf8327260df4eacd59","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.ece19f3dd.0","@material/base":"6.0.0-canary.ece19f3dd.0","@material/shape":"6.0.0-canary.ece19f3dd.0","@material/theme":"6.0.0-canary.ece19f3dd.0","@material/ripple":"6.0.0-canary.ece19f3dd.0","@material/animation":"6.0.0-canary.ece19f3dd.0","@material/elevation":"6.0.0-canary.ece19f3dd.0","@material/typography":"6.0.0-canary.ece19f3dd.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.ece19f3dd.0_1584482500914_0.22695829025025738","host":"s3://npm-registry-packages"}},"6.0.0-canary.4dc45af6c.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.4dc45af6c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.4dc45af6c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1d1147d752516361de1618eeeae80fa3b49bb5db","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.4dc45af6c.0.tgz","fileCount":43,"integrity":"sha512-txEdw5Qd4rnxPjGGx2wrpstKidhsLDo8KlbatZfbzCwmj2KTHZLIo/162vLnSMI2JNtecnzp2griENcefD6DKw==","signatures":[{"sig":"MEYCIQDiwi1yA81JyPM9fYxERQs7WWhmAvEo8S4FZHiQqm9aggIhAJPIl08i+RdTSWf+MMiIa1T8pVIOBc40h5/5YbGH8ILa","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecX3pCRA9TVsSAnZWagAAsA4P/1O968CklKZ9dGupGZFy\n7+/whBcUgFvZjwyAYLwRkGyp+kBbMFR+pGm3waoU3YSYxWQX6pUEUmyFIxJZ\nusVRRMCSf0Izfy2DwcN2tO8aJ32DnlsjMtsq7P0W26+9KLE5g/OWW8cPN03n\no3tqt6SU2EIlLPDXSWLVyx6tw/hLxH63+CGfy+iJ6YxrgS1IOfb1+w7LGqE+\nGwj9Wl9X4zzyR4J+lyDdPLqwKr02B7jVCqx/xT1BpknwCKolVDf0WINJ9HiQ\ndg6Xv0dUsATJJdlcH4YBLVCDFtru79uG1/0Ilg7bWwxzvwZu4DxvPgA2DKp5\nHIo1TDbaJA01ORQnrzZKToENoweBjVTzIFeTPqqGgAPCRuiuwjqi4+vjy7aD\nVqZeeYiHy9n/bw8qq6/poiQtLGVS+piL9OWa0zY6g4ojlLDFMReCQDGIzVg+\n+bdnMmjMbqcFYsjdzU7FB8nBJbri5yn5cDTf9XiF9GD+bq2u9Gml/W9YtFXL\nX27+5oXe0P0okz8beBgys+awx/+KO8RVSWRpstkJI0llFjirz6H0uXlrfE9y\n2Jqf5uX1ej0jl4IVUURyDX4dphA5U0+A+7HY84CSrk5/6EMjJQWQ40QiwtTz\nPlFXU9jr/oirKuuA3kevBOb4KP84fHADWpn1NQBCm4Y21a6JG2E7huz+hk6U\nc416\r\n=Ra6C\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a2b97fbd4b046de86f7e8aac6b54c5a6d31583b0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.4dc45af6c.0","@material/base":"6.0.0-canary.4dc45af6c.0","@material/shape":"6.0.0-canary.4dc45af6c.0","@material/theme":"6.0.0-canary.4dc45af6c.0","@material/ripple":"6.0.0-canary.4dc45af6c.0","@material/animation":"6.0.0-canary.4dc45af6c.0","@material/elevation":"6.0.0-canary.4dc45af6c.0","@material/typography":"6.0.0-canary.4dc45af6c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.4dc45af6c.0_1584496104709_0.19767474595679713","host":"s3://npm-registry-packages"}},"6.0.0-canary.6b48781bf.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.6b48781bf.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.6b48781bf.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5e393e851be2ff4cbb672c903fba0485063f5151","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.6b48781bf.0.tgz","fileCount":43,"integrity":"sha512-UhiW/giv5gKsKYiAOE8A7D315EJSb3qaEdXYmmWZdfLOSrm1IG8jj0Ug+MrL43EcIyqk7NCsYOaVkpsxgtCBzA==","signatures":[{"sig":"MEMCHyUWWfAgjcHgfu62PYG2MrFFwv/QEKkM2NnxD+C7zGECIFmUf2fjK7of3Fywr5khM6QDt9uDwmIxZSz2H5pH7IUZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecj+3CRA9TVsSAnZWagAAF54P/1JEZzhUpOLUq4tBRitU\nzmv/0qKoEwGYLN6Du39cAE8IFrNRgLFf6ikUboNWgGC6ydpJzf5Toqn8njGh\nnsFP8PNKBlY1k8daPOE2x54jwZgVYBIkiScuPmfzRfGQDUkbWlO8l98Yu90E\n8jf1JSjocnpI+HlGzLo4WLGVV3etD+X84cj0rlCJnD4QpeFVQ2iJUVi68gAv\nw7HrD6H4nNetJTnYlTuEPPvcOc0Uev+sDJ8Ka7tTuhsfLRExtD5OR2jcikpT\niBYOmpP1XY6M2UbReCZSiCOlBNyvdg9zcRbQf1wWhfmdqsst+pwUnFNRN89D\n0/gG1oeNus4ijfBbff9+AU2tZFnQ9aj7qDI+W0lO1YcC9VXbqf6u8ApqyyGV\nYvnnoQBUC7+LFQ8jz8rL8SrEYcAsRcUI6RZHexa0FgGoYtk/iWYiAwPS6UMl\n20Wlzq2DTenvEtLusWePDTsLwhwCV/Cca1YlEijdDEXmMnC1KhAc2N+KBZ7k\nAtG5Nuhqr1xHCoDEELNazaMvyKQNsm5dlnwGrtllCg2RpH7b3Cj82zE7Xomx\nabkjwWBQvGimy2uuagorkJ0YcmGrSU5YwDzuo01qrrRwDgMK3uDJadAstZy7\nnd+Dokc3gro+fbH7vFHBYo5oE44XCFmgTG8VKF1Rs02HLy0BjMTOagPc/SgC\nVaN+\r\n=KINh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1da9fc619190678090689bcdcd73eb5885c8a35b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.6b48781bf.0","@material/base":"6.0.0-canary.6b48781bf.0","@material/shape":"6.0.0-canary.6b48781bf.0","@material/theme":"6.0.0-canary.6b48781bf.0","@material/ripple":"6.0.0-canary.6b48781bf.0","@material/animation":"6.0.0-canary.6b48781bf.0","@material/elevation":"6.0.0-canary.6b48781bf.0","@material/typography":"6.0.0-canary.6b48781bf.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.6b48781bf.0_1584545718680_0.5725405352081758","host":"s3://npm-registry-packages"}},"6.0.0-canary.a88c8e4dc.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.a88c8e4dc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.a88c8e4dc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2223fe8377d1550fd2554d68ed06f4f64d695c3a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.a88c8e4dc.0.tgz","fileCount":43,"integrity":"sha512-m5fzvYzgPOeHSDA/UDy3NYVXZ2viW5z+y2wxfW9w/J9cbOIbl5DeXHHRZkn3yoMme2nX5uCIGRBHaivXzscgSw==","signatures":[{"sig":"MEUCIQCaglQIStyE2Mn91ey4c09Rz7bpSudTcqdo9KErg8tBnAIgOZx8CYC6E7Ey42pVw+2wCMdOVRjBewuyWoxsMTyEMxY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJec62VCRA9TVsSAnZWagAArSkP/0zGZHtKpB7MCMmvk3El\njLFXtLG2RWfLVor68i9WPIgzztW3hOvaTwiaItzrufks1m0uENBf9ROHEeGO\nAyz2l/Yxa2hfbIbLfOKO6Q49kYYJKhAkZ/T4LH0uVkFbG4V13AOZfTbVJrZW\nIT0X4y/u9XtZg1hexqFc0F2OmSlkHGRvtB8DaD+zjNYEGy2kOFhlsF9ozFTz\nOX7Row9aEiCp62myPqZ1fq2o9fl66duMEonJ3Lf4uTnuOWPpO5kK+ZJRV5s8\naOc3SKgtOTFs+dbGtL4X3cZi2xR6pC6eKdzR6HldJuxgYzGcRpgVqphx5J7q\n3pTPl3jY+Np6inprGU6ECQNYBlCblSwK9x2CAObLIeAi+SNp5nx5ihrn+p9C\nZ15sHokG1AF/f25Fu/YYKnG2+2P+3E1sQf/hqCYFH+h1xdmUzAeePa6CP1B9\ntKQePIEONgbYjpZyOpQhnhUJGF/dAdRppXO2QG02ozSEtfUQ+msJaU8qUT/u\ne5E48OMtKxedh/Qu04/oW8Y0Qi1t3aGCAD93VR9CmAEDO3sNz0BMERrJaiFu\n8gFkvEK9LkpXblXuqVcXkbxhUKx8QN/hs1ZK2s90yjZsOXDaqVPaK5a76Xt3\n0F+eCxEB17XhGpIF9BipBNem/i4dGBeCujNHhBd8tEy0krdMo59HgjLbIxda\n8Wgo\r\n=Gxls\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3d8bc73a5f46456d2ada622785f02cbd3b81c6a9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.a88c8e4dc.0","@material/base":"6.0.0-canary.a88c8e4dc.0","@material/shape":"6.0.0-canary.a88c8e4dc.0","@material/theme":"6.0.0-canary.a88c8e4dc.0","@material/ripple":"6.0.0-canary.a88c8e4dc.0","@material/animation":"6.0.0-canary.a88c8e4dc.0","@material/elevation":"6.0.0-canary.a88c8e4dc.0","@material/typography":"6.0.0-canary.a88c8e4dc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.a88c8e4dc.0_1584639381176_0.2861230495455245","host":"s3://npm-registry-packages"}},"6.0.0-canary.cafe18860.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.cafe18860.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.cafe18860.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e6568f9709cb2b75c2853acc993fde69ed5b504a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.cafe18860.0.tgz","fileCount":43,"integrity":"sha512-QX+YMzj5PeFBN4D3gjcyKf7/3NIHEcJT1R9vVmOnP9UgyV3Ww8YRlx7xut9Pp6KvdQgsglUzJzJAv3EAkqXc/A==","signatures":[{"sig":"MEYCIQCGQljXGiFoDCzz2G95PMTr8b9XHim11uZCZBk4F+3yAQIhAOj1839J3bdBAxINvZ7wpCDDeMgBicBPc2YMjrXZB+oD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedNkDCRA9TVsSAnZWagAAfpMP/31/7TDNXH4D83dEPop8\nDgRmGDG4wwhx2KZsRi9wak9gW+s7anzVSxJIr3vJmCXE5DZ7ez8dmmKkgIpm\nTcru7IASjASgd1xALgGmc3HQ7WLhHigp4ObL9UVnL0k+e8GnKKMuPlGdc5ZF\nmvBJch8CpUrwc8q82MsOxClGZ+vJ7RMUT+BRJByk74Idffrq9Nnmq8uoWU6G\nrpYaYnda5NFiSE+YrTURAJQ+04BpzZx7qX4b3togl90BJbMh8suG1iXRdeDk\n5TAKPhm9uA1Wr8iMMDam4plJa3u6wIPOAZr9DieviG+WbAGSv+ztXLPQGrOX\nqsvwEEBQJjJL9+U5qbVXU7QFgWDJDTUoT5JniCCKInfoFWDYaxMv+NST/hLE\nsZVwOvDix+YzuBhCZ+/ni8v1flBu+th0ZAnry69xjRFPIXG4QwA2YYyj4scb\nyffmlBmvKVmV+08zB8aD9Au5CESFP4YBB7dv/yrwqmZeEzbVb3ozTBV3LAXs\n7eIT2yq9JyxmZ0Q9lprDLyPCkWkAS9YvzdS7KIZ0Rm7dcUCoCf5JrbYp7kzc\n4UqxG2oq22pf8LV/ZgsJWOXeZRzUoGw8nqa3VqnZCl2R1ety/7Gah9zFdm5s\njO3hPVp7LVztuKz+92bx9hYYXobwTwGOwhGHYSDeZFv6COdyAdcHacl3kmrH\nrGNu\r\n=27U7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"51706b933143947baefab6db8cd069a22ed080ae","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.cafe18860.0","@material/base":"6.0.0-canary.cafe18860.0","@material/shape":"6.0.0-canary.cafe18860.0","@material/theme":"6.0.0-canary.cafe18860.0","@material/ripple":"6.0.0-canary.cafe18860.0","@material/animation":"6.0.0-canary.cafe18860.0","@material/elevation":"6.0.0-canary.cafe18860.0","@material/typography":"6.0.0-canary.cafe18860.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.cafe18860.0_1584716035529_0.6021566791135862","host":"s3://npm-registry-packages"}},"6.0.0-canary.35a32aaea.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.35a32aaea.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.35a32aaea.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9bed94d0f352c9091331d39923691034fc80f6fa","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.35a32aaea.0.tgz","fileCount":43,"integrity":"sha512-g+F/VuNPNUT5bu5xijkVeEwBwyyHJ46En3/lINOghuUt6q1b9QQGK82+qKKWz2nHr/Ap3l6lpfTV6RhotkjBzg==","signatures":[{"sig":"MEYCIQCcdm5kAPdU/ZK+M3CjxalaIQ3ud6VeHXad48SNSW9YvgIhAL2P9cuV4b9cAqHWm6AsOqYWgV2VNil1A2zS0La2JjCT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedSCrCRA9TVsSAnZWagAA8BgQAJJvh3UCPQYoPPG/4jE3\nXM8iIaRm2RiB0WpCoA1jmezMxK/jWHwz8wvVHvQKgNj/o6EnqAaRebZQJQI5\nF19882U3hyf0di113iFOe2FPA8N4HAOdF13S/2yNAbqg8qG5/+cncp7kJ6VQ\ncejzHbWHY4/BKXpqPQ9ismP/gVwopEDK9cjYMMC2hqBUBR8xDS2o0HeiEwFK\nBQqQQuA2WMFoGyaoMK0HTiinxQLXGhIoTPH7fhCz+avrI0FBBMc8vs1EwkNF\nW0XJ/O5KH/Ske75q7Ja57sChu57MAjK8kNn5v+B99NqbGIjjnXOUdxsQ1NAv\nJoOiHiYtvYzdKj0RV/GXHk70b23V4/0Wnl4fv64cEP/I7in02bBXsUQ70RY/\nyQIkpjhY0qqGlu9HNIsvAR+56eVSo0VVHqidZs1RDDuiv7FYFdz2H3x46BYb\ngJ50Epf8Abdu/Qnumed9nbq6xSFINS5/exw34R8FmSrZ5aA3lRP9yOTqWLqg\nBrLOJvln4DONzBEtdTqhg8J2ZrZmwu9CkjScc7eOxRcuehWoxcDqUjwvpENe\nWuDqp97B8sMwUoAZmQdR8DVV7m/hJdG2hdcaPcX0p+NaDOQRltmKZeKqXZEe\noIes7e2eyiim6HfrHZdHHzbAXLYpNUkqjPLXkbbV5ztQC5xxWSSeBWYDt6hP\nglxT\r\n=1V0H\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"09df3d66223ea8f4d4a6ee61b9e34bfe08387774","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.35a32aaea.0","@material/base":"6.0.0-canary.35a32aaea.0","@material/shape":"6.0.0-canary.35a32aaea.0","@material/theme":"6.0.0-canary.35a32aaea.0","@material/ripple":"6.0.0-canary.35a32aaea.0","@material/animation":"6.0.0-canary.35a32aaea.0","@material/elevation":"6.0.0-canary.35a32aaea.0","@material/typography":"6.0.0-canary.35a32aaea.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.35a32aaea.0_1584734378786_0.41193734517430536","host":"s3://npm-registry-packages"}},"6.0.0-canary.e75deb854.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.e75deb854.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.e75deb854.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fc32ee8c7eebe99018290a8d155c1758149353ee","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.e75deb854.0.tgz","fileCount":43,"integrity":"sha512-Y+eOHklrxIhy6/qjRRteaqkfgclRW4JZEcW/KZEneB/6sWmu3b5XNGttXd16XdnBjYqwrCfxoJ7qDSgoii64ew==","signatures":[{"sig":"MEYCIQDnS5xZ0Tmo+KAD+i1UrahJhT/Tuo8sZ+plxNYgD6U90AIhAPWAbXXeMX2gQKAkKIzAOdymfqUw1QQp6GO2mYuUt9lo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedUCRCRA9TVsSAnZWagAAzAYP/iUafCZ77Krtml3DMVTJ\nhlL6bv0Y2+vo2Xi00ivhtyXFem5R4Vl60vg+FBmXwX0iiMY/RWoliGzZL4lD\njd75hozohGL/yswxi1Fc9DAoRqBy7CcAYoFDM9A8MoOftqBYNUDaL5lYrbbA\nrcProE25kDg5O+1ceZmZaeJyvVxyY/MWve+o423uHogzgSqhIaqLwlcpQ6OP\nYoVJlYtKcCwodrZNFtgO8WU/F3tAQTJQB52k4hS5eYVuVf7+dZPLYwv5I7xx\nHY8PDzle/Kl5WkfvSRRA8RsTSmRhr8G8XCaGWPbbdDhtJ/i1Ep39s4eNQsZD\nsOvr284Z4J2iCV7w0GpFvF0WdY722+AlAdSbVs1TcU3RaCDW8il/dEBmoelc\n1n9PQ56HkWvYTiZciZTfEk9+K63DMJeWa3Sk2ywwwijIt2nGxUcWSdNDX1Sj\njDVh3QlxmqWE7hD2TusFuO1N6lhs7Rz02K0iQXfkxFV7vbMDHtk+xhmIUH7n\nrWiJDKnvKnrxpHZeBF5HoSRK6HFzhWLOwEV2lkcVJd5fkERHQkmRlCOyDVo+\nK4iRI98t458cUf1Pat9UvR991fOWWcoX+dFTLucLSwPuGZGZBkm0xgPoG8x4\n48JBTdXoRVPWRHYGQ0qcwKCRC+feGOWl32j/H2asH67Z+u3uyZUc0bkxe0JG\nK77C\r\n=cS14\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a461f6b9120827a65ed980dcaae3ff77d0581d82","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.e75deb854.0","@material/base":"6.0.0-canary.e75deb854.0","@material/shape":"6.0.0-canary.e75deb854.0","@material/theme":"6.0.0-canary.e75deb854.0","@material/ripple":"6.0.0-canary.e75deb854.0","@material/animation":"6.0.0-canary.e75deb854.0","@material/elevation":"6.0.0-canary.e75deb854.0","@material/typography":"6.0.0-canary.e75deb854.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.e75deb854.0_1584742544763_0.47659531621979867","host":"s3://npm-registry-packages"}},"6.0.0-canary.2cc6966f6.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.2cc6966f6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.2cc6966f6.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f250b9ecf3a7f8a56579fc9f0a84cef3ceccaad4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.2cc6966f6.0.tgz","fileCount":43,"integrity":"sha512-LUFsXPgNOm1uK1H1mkxQcIYJCUVN7dnnDgqk/pH4BHDvAoPOg8Edv11NOw5JbS+XrfGzEV9Qgodhd25EAWmUxA==","signatures":[{"sig":"MEUCIQDz/AWjE9R9SPmN8dNK+NPYylTs3hB8s3+gvbOmwXXbzQIgLZ63XZvq6Ej2OIVNlHbUngmxANCKVR5+HvhSDBkswCE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeelTzCRA9TVsSAnZWagAAIfMQAItauuGJmm8m3xzpzqKM\n9KodAtYFp6bus8Dazh2iMYQWiZe+qJpY2ESxOrQ7+pQSaWrAxGJrWK3arVtp\nDT90wn37tteIkR1bm1OObgMLVu830EruwSbkVY1lcPHB87OLhxSERvp3F/W6\nKpz+1HkfYdR5HFWRDu8sWkJtuBev4KMOGY25EgPAD6l5uSSKgw5CXKLniPnx\nSrPS9CACpUbQtkhosvgbX5++gVUbTyX8zSXqZIPGh82fwn3m249eseeTgs6H\nY80MR/nsNfC95bs5rfozTTVgSRtLeiEzGtf0Rejm1sd1PilE11fUAOEAPPEy\nm0blYCqxCNreopLt3anzYBj69Umfq+7JwierLkoFaAtbYoKaKoSMLfHnTIuX\ngYk7KuDB7WJWS2omXLorlsMMhTAtqMroGTRju/AbfW8Hd/4RsEkHw+DaOL/x\npvh3vIJtPvDV7kuYYzS8PMhbpuazij1RK5o7GNT7O0ZbES3dSsU2i1s2KLF/\n3RLQUuExEpM4XBdoTb3u5LDuLPCMYDpctxxwAzek6ajS2oQM290I+SptxL8l\nUpkW54g1Tl6BlrxN9dZr9reOVlM9mYVe1Y7wh8RtSRfmloTMGGSils/f4RHW\nfEf+PE2FiTwk/CC+nUvdMVzPmkIBpHEO5GUPauJmpzmXdb2XdZumNok7Fo5Z\nspos\r\n=uGOJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4af7a6e31c561afa46ba7b74cb35de52099583ed","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.2cc6966f6.0","@material/base":"6.0.0-canary.2cc6966f6.0","@material/shape":"6.0.0-canary.2cc6966f6.0","@material/theme":"6.0.0-canary.2cc6966f6.0","@material/ripple":"6.0.0-canary.2cc6966f6.0","@material/animation":"6.0.0-canary.2cc6966f6.0","@material/elevation":"6.0.0-canary.2cc6966f6.0","@material/typography":"6.0.0-canary.2cc6966f6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.2cc6966f6.0_1585075442844_0.3191914377093801","host":"s3://npm-registry-packages"}},"6.0.0-canary.8707953b6.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.8707953b6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.8707953b6.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"dec43cba1e616607f7d8dad91f7e3348bec3708c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.8707953b6.0.tgz","fileCount":43,"integrity":"sha512-3hoWsr2bpoL7xxBQhxDu8W//xreA7UZJ4cYcrg1fhq/lZIbnbRAhkbyTihC6Fmr+6YJ4IxC4CsOOIT3u4/sR6w==","signatures":[{"sig":"MEUCIQCMS9SsCGfwP9IwAMRWRL7ajLGokq1Rlc7LncuefLchtgIgEJuj9ewIJ65nLlZSTBGQLfsSqM36zCu5AHeRCswkPiE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeelXPCRA9TVsSAnZWagAAnKgP/jbQ7NonzJJclgAo07z2\nYY/rn38Ko+rCP48YNM/JmekXI3OKd98JocYCr7XKi26x119eFFNMbALQOumT\n+T6z4c6IpvrhiGa2MjidD7ZrejB8GivGCZUDl1AJpdz7mBHMPd95A0YDNnzv\nX8cdWBCP2t1VR/tzNsgKmY2sFnzaanW4eVjJ9dbBJ8et1zCOZKZ79x4mlDA5\nfJtcEa3ky7HlsgrTrcKfBHhlE8jAiKi3Gejhp52y9LD88ez4XYwXhXMOEWdy\nQQJmV8Iz+WWJAcxRzp8rfMC6dNu2cQftD/TOUlj5ka5W+GyCWx+9bPdqh/V9\nB4F5S2kCuDO/rzwa5NeIfi8/2qLDPmXO5/XHqzWW2D/9JnZfRTHxdDA91VuM\ns3G55qHB0nmvtJzfchxn2koBqy3cFcSK34Yj6vWdW4e8Gk4P0JYtw4bPIAop\nH55psuQZLSHH4EPx2QrDBWL7u2a8iFDMKM85mNJ4EhvBM0wk68RERT5h924W\ndCjhjkLTgmMM4cyDSwoRqLLYsmw7gUL4Osb1tghdb70KRFYcuGFRs5GfJNYn\nKKi7sVigdgPK56DoLNt5z7D3754fp8ywkiUFCbH0GgyNRkaypK5UO1TETVs5\nCAlYoGrPDL7rqed5PENugLJK7TvP6inKlrnHGdsVhYfJX5HyRHyOhtkGEnkl\nuI0I\r\n=Dho3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"595709807214943e737834107d12d3318e69112f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.8707953b6.0","@material/base":"6.0.0-canary.8707953b6.0","@material/shape":"6.0.0-canary.8707953b6.0","@material/theme":"6.0.0-canary.8707953b6.0","@material/ripple":"6.0.0-canary.8707953b6.0","@material/animation":"6.0.0-canary.8707953b6.0","@material/elevation":"6.0.0-canary.8707953b6.0","@material/typography":"6.0.0-canary.8707953b6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.8707953b6.0_1585075663143_0.24511131583185364","host":"s3://npm-registry-packages"}},"6.0.0-canary.10af6cf39.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.10af6cf39.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.10af6cf39.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"40e7085524bec1fd33fda4a85432509a5b7c9b9d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.10af6cf39.0.tgz","fileCount":43,"integrity":"sha512-P9vg1Lz0qDswiDagujSHfe2D1ZSO36hBkPI30DcGEIhQi+pUrM0FDX1xvZ+zEYeXWGFJqYscAKRAkkODo9qDgw==","signatures":[{"sig":"MEQCIDU03bD/0CAOULpSASQ8k+ZFJ7JVFlF/30svMGUA/+jEAiAKgNmOnoko8is79jv1p/5LH7fFKgwLJjQTmKV1nuZB5A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJee6CNCRA9TVsSAnZWagAAH4QP/3KyAdbuWHMm30XNzJ2c\nvhpGyx2n6hjqRkxPKYp/6zXUZtiPUy75gfUtXrkkuIvEZ2pyjcnkBK8RW8oH\nb0X+xd7Ydt5tTzZMghMGD+9HLn6svZn8oN9SFmmtPrpUz0TP9kBgCOu3uZ/F\nBu2CQ88DGKOiPX5yVqYQs2uzWk5gsKa3Kr/05LMzOMJVcpYBoYGc1Wtr9uFN\nGVtvDLeLW5P1Re2Q7eKW9OJupsng/w6tC/ml/lMVRqPcFmwyVbQMA9IIDHh9\nZmbjPdOBpkxiq9Tsw0vERZaxW0uRwXsHEjjAtPd4vSKHbpLtLMjIdyyFohuk\nI2OxU0cGVep4Ss8RsNq7guhCNtRy6eO3UQfejlcASCdKV6MTkfuLa4cuahVG\nxjFQuk/kCOd3XdpZkeQDhKTndU27vN7Ceqvoarm/PMGD419Bki5+ks2i3H2T\noTc62xxI8GfoTQsFQ7wsFAOT4hknfnWs3CiMi5YF0fnoLIhUVE/F/l9FuzHX\n3pkeszxH2+gaWjLXm3MLXaUhX1j5JOCymyoqOwMmHNC9Ori4i66gGnORGK2G\nEb+SzZGCzAdqWW6WLUaB7HuVENG7dWnXdP95RaEWl4huX6eMjbFejzIAvYUi\nyQuUefGw0leCW8zXRxCAx1vgO9LghXoljj9aIN4ckJb6pE8FGYveXQkUcBaR\nO2hV\r\n=cPtZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d618b0c9ce2ac312ce4b887450bb947ed367e100","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.10af6cf39.0","@material/base":"6.0.0-canary.10af6cf39.0","@material/shape":"6.0.0-canary.10af6cf39.0","@material/theme":"6.0.0-canary.10af6cf39.0","@material/ripple":"6.0.0-canary.10af6cf39.0","@material/animation":"6.0.0-canary.10af6cf39.0","@material/elevation":"6.0.0-canary.10af6cf39.0","@material/typography":"6.0.0-canary.10af6cf39.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.10af6cf39.0_1585160333499_0.17601560251763404","host":"s3://npm-registry-packages"}},"6.0.0-canary.7d8f9c8d7.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.7d8f9c8d7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.7d8f9c8d7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6071eb5644353e41f3095f38f7881ad1652ec39a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.7d8f9c8d7.0.tgz","fileCount":43,"integrity":"sha512-4tnaIAAZwjh5jrhwuQoJw3KslwcrOHEjN572pDjldipdni8/UXXJmGCinN8AOiaS6aufWQodyh3XF36j+JJMAg==","signatures":[{"sig":"MEUCIQDHnKSBZDHElp5kxqQnCeLefHmLmD31MW6MH+BDAs4ySgIgCPkRtZ1twELDH843FYJvJo1Diu78RpfWFUzwfNkm/es=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefkBnCRA9TVsSAnZWagAA+AUP/254qffYjQveqTgaDWOF\nbAW6hKUwwiG3ZCB1dQrQRjoy5Cqudfh7VWuufRe8zUAp7PwO38NDoNYKkkTA\nU0XfttHWjX73cCuhqsWEILdctLqDFQaCr8bJH2/407ZFS0pxDhyYgG5olRCb\n2Eg2cPgqBlftmh0R5PlQwXquHH/YSusR03KpqFRft5ZQSlucqg3m611iL+Vj\nIEPv6afr4X6b/Brg6ccy08m+q//SZpEhMoeqtKdxx5VrOE/B4PMgJ4Uf1adq\nLVxDSyqfoaIyzc2bL4G2a/hJh87O40WuRZrxCBf002eLR/uJbW9rf4tKz4ku\nBWdNJwwTxez5/IGWQAGzkA/zdTv2EZ2UcHrIXJlR2KX8qhSX15a/L4bdyxD4\nbEsMAvJlWw8AK9ZnSyHPEmTdmqFWM499bYxzr6MROPbZq5etTA2kX9aiE7CP\ne2gdnd+SrmiGGF1U22BVBsxVyZKvxhPRLsFmd4YyrFy9wAAq8nGsX/rpaPPp\ns15rZG7sm4dDExOrvymoIs5VoUz5Jrj0LfqaRWdfVqtxJvXaPfWOnyp8WWwG\nMwtJJ0BIuMTFA3Bef8EW9SWELmgP4pSjsVnUX7B8IvpWu50KnSUO35jLo8aX\nIieu3PAucseCZPZoO6bJ3AfFpY23ndhxFEhyH8cUwQ6ifxH4lm4u48Y3s63w\nzRfK\r\n=bii8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"764519b823414bee993cab6845b42f5b60f03c1d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.7d8f9c8d7.0","@material/base":"6.0.0-canary.7d8f9c8d7.0","@material/shape":"6.0.0-canary.7d8f9c8d7.0","@material/theme":"6.0.0-canary.7d8f9c8d7.0","@material/ripple":"6.0.0-canary.7d8f9c8d7.0","@material/animation":"6.0.0-canary.7d8f9c8d7.0","@material/elevation":"6.0.0-canary.7d8f9c8d7.0","@material/typography":"6.0.0-canary.7d8f9c8d7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.7d8f9c8d7.0_1585332327251_0.3371471709633467","host":"s3://npm-registry-packages"}},"6.0.0-canary.d6315efe2.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.d6315efe2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.d6315efe2.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2a30d02b839a11553193f092084440b3feede470","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.d6315efe2.0.tgz","fileCount":43,"integrity":"sha512-cHuU2KdWVYDI2cIsG36FRt3g9Iu//NBBFINfKwCPdqvQwORmHbLBy+u3e7hILxiNyEOAxR+T/g0gR8Hk7qBlog==","signatures":[{"sig":"MEUCIQD7beMwPBG6h4hxz/5WU9MvpiyoNYNLvNMfRtHWZXMAjAIgLVBKOBkZnzsXhgq6aCD5zJyZWQ+S9Ee1gegPzao0fRc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeflqICRA9TVsSAnZWagAAoykP/R7mKezkcDmgEDfu03ym\nK/nJYYOXVdy8Pd/MNIjIKserE1bpT3lH06rvoyPeE49/h7hQrB+bXbC5yCci\nmTbO1gSqNhS+a7uFcP+tqKAXRQl8Q8+dLOiZLY9nhVvAr1aZck3xyNSkXEDD\nyEQYIylcihJmLYy91KWfxAXqBY38QF/wXMZCZqIdVvOhIrvaaO+44anWMo2W\nr70IUmP/1r1pBMrYM7ae7Q/tDCCx8gR6NYZcHkcA7pWZhdIMQjojhP/er223\nUl4mT94R/3Hs8ASS/JB6boW3aL1dXf2CkcTMp2lgGGiQ1IemDcDEsrZSc/z9\nZ3Ch5eySE8H09tvvCBZn/LauupfoYglPHPTeEYCszfUA78iBM/JzvObRqpJj\nRogb+zeVcdVrzHTD18QTX7LAtg6zfF8MYpsnaaA1f2ue+ELPsj8fdEZ14d3h\n479lBa6tAkU++XetiAVOxZU/miyFpHAi5YYkfVIIDo+BjplImjdxFiXPRAMh\naVYb9AFpfWsQq50NLYIYcPyGwGos2IG5tDYx7lhIJtlRS/SXh9qwnW+N4YTq\nk2uIFGlX9/IdnLDW0t3fMVkY/+vQpdKZ2bROHCSmNq+rgpDzZAmUfms13b3n\n6tuyxwPliZ3M6RvZM67VeHsewAlpyqBuECykfA6RuQ++FFOfXESkf1S99Ezr\nDbKQ\r\n=ce4W\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"87fcfa262498dee051bef9a0a8e8b8f39869e6a0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.d6315efe2.0","@material/base":"6.0.0-canary.d6315efe2.0","@material/shape":"6.0.0-canary.d6315efe2.0","@material/theme":"6.0.0-canary.d6315efe2.0","@material/ripple":"6.0.0-canary.d6315efe2.0","@material/animation":"6.0.0-canary.d6315efe2.0","@material/elevation":"6.0.0-canary.d6315efe2.0","@material/typography":"6.0.0-canary.d6315efe2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.d6315efe2.0_1585339016285_0.6184248113580717","host":"s3://npm-registry-packages"}},"6.0.0-canary.a3016368d.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.a3016368d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.a3016368d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"39f0526bc3599282b273fd5248823a68b7e20ed8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.a3016368d.0.tgz","fileCount":43,"integrity":"sha512-X72xZXJ3AckR9xNjm6/KRFicphSVyasnBfb2xYhZSAZcYZv27nPQHtiwL1uWkqVFmsFcnTLRw+Ux39tqPNixNg==","signatures":[{"sig":"MEUCIQDu2LyNQkU2f3xqLJyDXea0NjH9M6r0hTmb+U3ILj2vaQIgIa08/wPWHF7I+tvuksgNisfv8Pt+S4s/v6/ijVX0WpA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefm4DCRA9TVsSAnZWagAAsJYP/2WRxAWDb4FEia9HWgwJ\nWMzinwOZu3U4yP9OirrfQ3XjdXFPR8DnXG7U9H54LZ8Ea06otJai7ac5iAT9\n0k3wDGwe+YVpDDbr+bxqseGaJ7z1wvfsqnqDm5D0gKNumWZmCi+pRRZ1yjiw\nvNuY+DMIqLcKPCyaF1T6jnUaYGL9uZck8MY5yF48v5tFA+tfOBxgSh/VUJir\n1dgqzFzQSVZd+jDbSsOUq5sloVkPF7T3+qXRi77AmF0LbDO+wmfvRd+VmNf2\n7qpaH+sGp9VgwsVuAM6DoTHHpcC02UdOv/xcoi/j2C/2j0GGMi1L9PFOYFBK\nUnnCUjivlqTSgI0XlHRgS+W/xnk5CQsDRt1wNrzcQ8N4R3tsaNcXAQM5/i5w\nctF39+r0u/EGBRYeNDrYXTJ52C6OyxcjLxDsNwZlPNu+mWhFCmcdYtDekEBk\nnNn3W99fP/DK4Pbnn2x6Je8LUDZeqfGBsXzfYV2q/aCmnzzAON2ced2wW56v\nWmey7vhooz1Zvlq2iqzGuZkCjIYCTFk8oD9+hffwGCMES0a0Bw3qStxor1t1\n1S2/TqTMV3DJtK0aboNIimeWNbILJq8GReHK2Gyzopv1EFftRxRZRfgU+oh5\ndmg7HPZL4Za5GLB3aBIu5ylvRok4d5eQdbk8czSkZ+Lbu6LiYc8gkmfBk97b\n1WMJ\r\n=w743\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e41b28d8c25aa5e36e88910a1404e7a0730c5d2d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.a3016368d.0","@material/base":"6.0.0-canary.a3016368d.0","@material/shape":"6.0.0-canary.a3016368d.0","@material/theme":"6.0.0-canary.a3016368d.0","@material/ripple":"6.0.0-canary.a3016368d.0","@material/animation":"6.0.0-canary.a3016368d.0","@material/elevation":"6.0.0-canary.a3016368d.0","@material/typography":"6.0.0-canary.a3016368d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.a3016368d.0_1585344002845_0.4406166465334602","host":"s3://npm-registry-packages"}},"6.0.0-canary.4b45b6620.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.4b45b6620.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.4b45b6620.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8f637239a1da1c29a4bcf7857561f35158fc81ef","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.4b45b6620.0.tgz","fileCount":43,"integrity":"sha512-/TCmExj1Y+/sCtF+qEMiZ5XQnFLdrUvWks47R1aCcKCLkBaaRJncJ1wev1Xj37lkZ90n5wMaK8knKDp9bX8vew==","signatures":[{"sig":"MEYCIQCFOh1gPs3vpHGYYqVBJaYD5XXFGB2K5CPbZDNhDm8x1QIhAMkj0CIoAx5NmJGTpOehZC4JYPadUlbeoRgYRd03u4pl","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeg2hECRA9TVsSAnZWagAAuTgP/1n9VhGTatrTuAZZangU\nQfNJtKRV637xGkthiaua30Du+oBWKRo25HTywOVMqy7sglSufkhA1veGmCuQ\nlhmyqOc/pZ7Vyf8kwZeNl2f2wu7B1wAqZTFNIhAdrlyFPAJcz7UMKYcMZl6n\nUzXAT5zPN9Uzc1ggeH1atstvHtgV+S+tKXWD2HRey+863zWC2qzvicRBcZJE\ng+VOpc7780KgcW8j4O5narCnwYsPGMS2FcfBLaNvUdkFW6e4wONzffY+dY11\nHXiliXwLNNsTRY00P3Ld58QSUm7ZYM345Ph7r7QE4OZyEkWERtQNVjv3jGxD\nr9+gdLUxEgPwv2dh1bk7Qa/G5iZlPQKi2WVEJG10ZqV7KGrHN3uXSWc8ijIF\n+wBNfTHm8wOpRtv5/bcGNCY7urmhG1B28rM3ikKfkf+UnVb6VLhsa3cEp3PK\ngyj/brzuQeC9fcjiFUdXgmVRG5+tOylj3htSI1ZuBCBQHv6/jWvgUmn56nXd\nGSdcilJBhKbYuJeK2/iHMUm7AiWcQptDxcPrJPYTPKzrMwaqOU8gJRTuUF1G\n2g4iLJlp6KfOut6WxHjHg7yhLrX22HXEUQp/3EYw4LZTTFza7veDxWQ3B5lv\nk4TpUgWkESdMor2tuVkI6rkEEgOTAi09R/M4h7JJprtKb8AH6Bw/x87oUq4d\nze2V\r\n=blMB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9d49d0fd4e563f312e9b2a25d111cf5753591eac","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.4b45b6620.0","@material/base":"6.0.0-canary.4b45b6620.0","@material/shape":"6.0.0-canary.4b45b6620.0","@material/theme":"6.0.0-canary.4b45b6620.0","@material/ripple":"6.0.0-canary.4b45b6620.0","@material/animation":"6.0.0-canary.4b45b6620.0","@material/elevation":"6.0.0-canary.4b45b6620.0","@material/typography":"6.0.0-canary.4b45b6620.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.4b45b6620.0_1585670211955_0.46542354761229054","host":"s3://npm-registry-packages"}},"6.0.0-canary.e84b9c8.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.e84b9c8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.e84b9c8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4bf6729308c3c3cf287b340209194dd48888ebdd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.e84b9c8.0.tgz","fileCount":43,"integrity":"sha512-1S7VoiWjidFd+dgPqgM46RB8mqrV/1fyQSOMTCSF0/RKbPVsoR2iyech76CDgr9GO7n+WaPhYSPshga6If6VbQ==","signatures":[{"sig":"MEUCIQDolT979eko5bS9VKqZAWS+qHB5Xb+dzM9wO9FL6UbL+QIgLduWShcMXA1hl64COCxGTOTm1adPZy72s97XbSCckoQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470355,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehMfECRA9TVsSAnZWagAAHLoP/3ApbY991HM96TemtbWa\n00/TXHt5NF8XlaO5CgOylwqYmUkN3thEobCN1LZb+IrCy3a44Itz5NsfGc4m\n7c5oaOSc0xNhtgcEWvQyGm4XKKPYkd4GhHDvxklHkgF/jXmvVv3N0Heyi3iu\nazi9SpwxiNfj3g8EGvn/S28+BZ+HKcY7R5Nn10/NDbWGqcxYjCmxrJr1mchI\ne4YMna/c/wwQD4aIqosVfw0U2gNZ/pjNprQFxkqMKSGvQ51YcrlW+Q+7YNJg\nvQr9+B77CIYOBLZZ/qfMCxxSRjLEugKRYFbGfdFr9f9czpPJmvzHVkbiDRVH\nIsxBhw0dcZQVF9Kx/AOwCw2VWvtpgf/nDYeD1n6caBYD7wLOdncltC7a3292\nApOYKjZQahi7MyzXkhI6gQxe/PXyFzbGrqE8eQvtB7UzT8C3wbun+BywQBV9\ncflq4PxaUb3R8tZo3UE0Xi4j7ME5NYy+xIKMTW70uIBgGGH4XisjZGh1s4Pp\nopKRmOZN0wIXFmzKpL1fpGUSlmCvrldpHSgUq8+catJPwqjrhi1ISGuf8hlT\nwDLFB89gp5LYZy8gH72xZqVSU1npMMSHIgU6Tp6lQ5DtARN4G3qibB6POd0l\nCNVoC0pQp6e4TthrsmrEjpcwAY1sXqienqwL+VKSjv+4bG9Uu7G1N0Rbsoml\n6Hoi\r\n=kEhL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8c119e9b02d2718e7b4df7fb72c1724650583b0c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.e84b9c8.0","@material/base":"6.0.0-canary.e84b9c8.0","@material/shape":"6.0.0-canary.e84b9c8.0","@material/theme":"6.0.0-canary.e84b9c8.0","@material/ripple":"6.0.0-canary.e84b9c8.0","@material/animation":"6.0.0-canary.e84b9c8.0","@material/elevation":"6.0.0-canary.e84b9c8.0","@material/typography":"6.0.0-canary.e84b9c8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.e84b9c8.0_1585760195698_0.3333773267272473","host":"s3://npm-registry-packages"}},"6.0.0-canary.e33c49e.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.e33c49e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.e33c49e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"eb1b9353ff5adec04ee751897af57c0d76875311","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.e33c49e.0.tgz","fileCount":43,"integrity":"sha512-ZgkfrNdsvwCG14FMSAXuI6Prg8P9hUpe5bIz6ci8YYaPoHXq4u7mlNmt2eHM0fiMKLALDLLMldFOPusW7TT1aA==","signatures":[{"sig":"MEYCIQC1uyNE/rCRW6AeH8YCd2MTjPEgtKjPfp9yazS6ngF4LgIhAPkKikjMuydYQj+0P7Jt6eMul6Ug2advgkNJCPQFGL2/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehS1cCRA9TVsSAnZWagAABKMP/Ainc16Xqw2HM86jQOOu\nX6ynt48fDJVNvPBvfU8/9LuPAsEtZcyOhkrUc8VK0rVVFySufE4azf1OPM+/\neo+5zcJPMCw0Y27v58u7cZfnHgya0x06WaXkpFg1NcJmxNhlo7NJk464KSXQ\n4JDgUCVzbMP2yZmRjXF8Mvlwct+MWNpYjcAH+7PqY1rQYu5Cb61mnE851nM1\nq6CtSHm1KUP24Xii8iUoEfnqOZprW9uAsPqEBM4odg+shq6ScLfA8bcvzG/m\n4ngUa6D4qCR1liIrartfMqOYmmz1HYnWru3xStGgLWEMuVgTQevYuIYzFRVV\nsIBYKLvfxMT5SZy0DB+v6RDRXlWG7mQT5zXtFO25cHCbHjOjmWf479EcUbBO\nx6C6sYjrtfvHEosOm1BM2BEWEj0k1TmCF8rhreojRrOKtN+q/lTNPuw49Dud\nL+Spqgz8yuCTIM7R9+pOXRfSSJnFd9s/aRWZ5fMYLMFsF/sCXpPe7m7iRobL\naKWwBWHVMvwb283ca/yCp44gcITN8K54A6Nn9U+bLQa+C9s6hjdFNg/RbDEb\n7++UAp6GavryLfAmL207XJ0YlHU2xq7LW4pZvm13TwsS/ImRqMTCk+rL5JTu\nSCWMihumRX/7XfhnuepUxt+tZV2hxTFcFA2ksQYmtiYTB4P5JN1/sMNOrE+I\nVSyV\r\n=9DOw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e369357845cadf1687509d31fac95d3131a90718","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.e33c49e.0","@material/base":"6.0.0-canary.e33c49e.0","@material/shape":"6.0.0-canary.e33c49e.0","@material/theme":"6.0.0-canary.e33c49e.0","@material/ripple":"6.0.0-canary.e33c49e.0","@material/animation":"6.0.0-canary.e33c49e.0","@material/elevation":"6.0.0-canary.e33c49e.0","@material/typography":"6.0.0-canary.e33c49e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.e33c49e.0_1585786203955_0.9559086437542694","host":"s3://npm-registry-packages"}},"6.0.0-canary.f1f8e60.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.f1f8e60.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.f1f8e60.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8b0292c4b5a321476c2aefb133f660ffbeab5262","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.f1f8e60.0.tgz","fileCount":43,"integrity":"sha512-R0ekJBUIkUHoBAFGGNEgJYY5R9rZpdi3+lR0sjFpsvFG1HMtXALDq/Lif9gRTDuhKHzYcCy6NkOzHU7HBCG6CA==","signatures":[{"sig":"MEYCIQCxFp1ok5pXma7V7XOOqEIHHejz1hJVJUj2SwjBDlk9/gIhAPAGu+pHEKVXSqxbMNzONpOZtuaWYG6xydu+FX07Hprt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470138,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehjmbCRA9TVsSAnZWagAANrwQAJoDULtBUiCAxsDi6fbG\nwSuP8W8f0XLKdPMsSTFbzvrjNv0vwg9YxaLHPZNBX4PZHtJfFSr2q8XJ8elI\nMo/3Y1Evbwqq0DRJjGlYI9nZ37umsEpkv+Y501wEtNaSCCTK71PyY5q7W0oY\n0IKoMq0rZcm6ADnE+dXl6dEnvLdUWUNCXFX/srrVjwLb9rt2eRK4OH4vGIce\no7ia+asefCE5GaputRLBpj3jlYVPjFiMzw6wrNYgAY66fXsMTSk5xRMmUGX1\nF9PsP8LJh/uU8+dPhy/FU4TEUS3jiXvCl5TQL5tPaav8EtOnkvciK58bTbaP\neq1buDAIKlEBn+NwWZHLIn4R2ODTRa9MuxRxQY9SrqjF7BjfslI+UtDDIXFp\n7JxkyJTL7BDAiGWMK00JWd6fkUHDN0JFTq0M6paFX//hFxAPbg3go0Sd58rP\ncc0e130LGNRj/6X9xJn5hU2QjKZRFDh1u5rKgTb9soUFmRQ3S1J/+z9+3YD6\n3DSfR4KdxHxlIkSBm8XeDl0XpOITQZ+3/tZwoFbilwsd2QSWuPrI7JFmtaMR\nQbdPwgVH0S7K4/Ek8ZyFWY3xmfl87U6milvL3XUKlUtFZIjBN19niyEkGEhS\nzaNy8IVownhiR23E3PoVtpQ+c/Wv20ZAir8Rk6IgG3xMh9OSEHEZa6ohC310\n3nRw\r\n=hf2B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top App Bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nMDC Top App Bar acts as a container for items such as application title, navigation icon, and action items.\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-app-bar-top\">Material Design guidelines: Top app bar</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n## Basic Usage\n\n### HTML Structure\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n  </div>\n</header>\n```\n\n> NOTE: Please see note below about `mdc-icon-button` in the [Top App Bar With Action Items](#top-app-bar-with-action-items) section.\n\n#### Menu Icons\n\nWe recommend using [Material Icons](https://material.io/tools/icons/) from Google Fonts:\n\n```html\n<head>\n  <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">\n</head>\n```\n\nHowever, you can also use SVG, [Font Awesome](https://fontawesome.com/), or any other icon library you wish.\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n@use \"@material/icon-button/mdc-icon-button\";\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Variants\n\n### Top App Bar With Action Items\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. For further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Download\">file_download</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Print this page\">print</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n> Short top app bars should be used with no more than 1 action item.\n\n### Short - Always Closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style Customization\n\n### CSS Classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass Mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` Properties and Methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within Web Frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"aa365c532331b10b868579dbf1fa4335e9499185","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.f1f8e60.0","@material/base":"6.0.0-canary.f1f8e60.0","@material/shape":"6.0.0-canary.f1f8e60.0","@material/theme":"6.0.0-canary.f1f8e60.0","@material/ripple":"6.0.0-canary.f1f8e60.0","@material/animation":"6.0.0-canary.f1f8e60.0","@material/elevation":"6.0.0-canary.f1f8e60.0","@material/typography":"6.0.0-canary.f1f8e60.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.f1f8e60.0_1585854875314_0.7207577317091913","host":"s3://npm-registry-packages"}},"6.0.0-canary.1e17c49b3.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.1e17c49b3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.1e17c49b3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"57fe1544752f8dad49bba1d5e26e19880ce40cc2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.1e17c49b3.0.tgz","fileCount":45,"integrity":"sha512-wUNzKEFOdz6FPGqWJp//KJdSgM0VDW9vEvvX1av/oihmevMXuVlkYTEsK0s8omtqv8/Q1L9DSEJCABKzz8oF+Q==","signatures":[{"sig":"MEUCIQCWJMZdjr+VkZ2wTutR3UMSsFlIDonU+LzG+zK1Q67cEgIgVhdjYLEQvXNL/4LK6nuHn4SINzIAljAwRF9fkvywuQI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081041,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeh3q1CRA9TVsSAnZWagAAuogP/Rfc63GWqMakiU6cpgNy\n738Xwf86DZbX8KyRIT36UYp8ji1cxJuqxZcW7h/ld2mBiDbTzep5g6Q9n2ZS\naQyxSU12psj2cSFqA02khDsArPkLKlxc0eC1D8PTSuJYXl46CXri96hWggBh\nurv1RcfSoTGHD2g8ZKFjF1rfFTSXMockg4ypOvwJC1dEcOR2U+LRKmQfJnX6\ntGucLNHV5bknvcuXZ8adWihygmzmwi0kcntkkqPxQTuksZZNvFtdWUgbOr00\nVX2fl+ysS4UyXJL4+ZGKi+zvYmqA4YHCYbjm0VlvqgRjUNsOrqQzjTQei8O9\n5LDMpE9ODB4o0QrJdoIRmodV6Q1EkwC9hym5MviA1IOjFjZPWOPXTiIcEOJC\n5UcrPZpsoTiC6PvZlU7ys5E03fa98V/VoQoeSr8qPKYSchIMiC16Oaybz8cw\nb2U6LLUfjzxIr1UiRp6jKnDal5Q55rj713v5QMazJz8QfxtxxjrJLTUsRM8n\ny1MDB3Of0zczvFS9NJ+3n5E+rLcN3m13dKsEGWb8tPHS0P8/JWNpO9EruzzM\nPhaiFnKc3BMX0oBuUjI/ZufeljT0YoAoE/A4CspdCl3O+EXOk/2lprr/golR\nB8daTP1XDs2qZylWWaOCJy4G8n/rtkZQM+WYztlhPgRiV2PrHh9W6BGM1YBe\nPOHT\r\n=0GNZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"08bf363eac26d705e8c4b0bcda91042b9c73f82e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.1e17c49b3.0","@material/base":"6.0.0-canary.1e17c49b3.0","@material/shape":"6.0.0-canary.1e17c49b3.0","@material/theme":"6.0.0-canary.1e17c49b3.0","@material/ripple":"6.0.0-canary.1e17c49b3.0","@material/animation":"6.0.0-canary.1e17c49b3.0","@material/elevation":"6.0.0-canary.1e17c49b3.0","@material/typography":"6.0.0-canary.1e17c49b3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.1e17c49b3.0_1585937077133_0.0683968774851178","host":"s3://npm-registry-packages"}},"6.0.0-canary.6a40ef217.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.6a40ef217.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.6a40ef217.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6e514d97a6351d398f0e4c22874ea8653543386e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.6a40ef217.0.tgz","fileCount":45,"integrity":"sha512-h7Kgx11GXjURci+YDSOQBbDh6ZyCq7QaZnZUsaZ9NJ8jBF+N7o6osJ77jSxmU49njI7iYae31qR1Rcl1v0lLhg==","signatures":[{"sig":"MEUCIQDyKZb/DpWiEaHvgQcwmvvZ/7W0A7UsGCHM+wdG4NiXcwIgEQIHDyxBYCxPzkzxoYOHghN5G8nzsgXljI051/X/2XA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081041,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeh42aCRA9TVsSAnZWagAAUdkP/1xRQDY0PlnJhT309Mzs\nj81g2+TMkOxpXU3uQKMX2XGqHj5igRxR3SRIawQQcUexU7Q2cCVLe37bwYF+\nAIgP8zOVF4UIscxP63Dccf4Yz4C1meya9/ck0RMXXOG2zJazf++fP2Wi1bng\nIoZrKVYH7sAnoh7Nt5osjHuWzPAevnI/GwZe4uO7j0vxjVs+os4BtEJbLr3L\nCpThSnKs5VEd41xbC3qbyxE10UKjU0e+lbeopmMGNMzWonQKhHPtCQHtCL/f\nOiuvA8huX/VfnpZ7HKf0qoaDaipoFIQjrDmAeageIpdLAs+Mid4nNyglTPS7\n/xWEBsTjBCS9Cjdwto10XisVNVTP2u4WgSje61+8AG41ynh30NCz56jkEKXa\nYlUPp5UYuINULKwOsFrQpDQsN8cddMuK5qRscnukH0uix/5qF2ebyJjOk3TZ\nohZpsv0rV2BQAlJzvoZEmoCn4Zmh9Cy7ZHHgMcJT7w6tDN2GjH9tsDrB8Aoo\nWMGfkdLXIKHnySxmltQFFkkziTzOfkEWeWdkzWX80rPtbs0Jjrk4o7BN2OA2\npulWgfaPyjnBX3HYlUKYEr4joWkGM3FIxQWZ/ruhUIo0GzDwEOAKZdvDjrPu\n369+Aox74rdTWBTuJkc9DQuBjz0CdoRM8UOEh5devjNJMJlPjAZObVJrS5eU\nhpD9\r\n=GA5Q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"94e553cfa7e3fa8977ae7bd2ff7df4021f815787","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.6a40ef217.0","@material/base":"6.0.0-canary.6a40ef217.0","@material/shape":"6.0.0-canary.6a40ef217.0","@material/theme":"6.0.0-canary.6a40ef217.0","@material/ripple":"6.0.0-canary.6a40ef217.0","@material/animation":"6.0.0-canary.6a40ef217.0","@material/elevation":"6.0.0-canary.6a40ef217.0","@material/typography":"6.0.0-canary.6a40ef217.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.6a40ef217.0_1585941913604_0.7540371789757425","host":"s3://npm-registry-packages"}},"6.0.0-canary.5f24faacb.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.5f24faacb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.5f24faacb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"20d4ddbf845f11a1277369af2e3ec2ad2fdd62f8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.5f24faacb.0.tgz","fileCount":45,"integrity":"sha512-u0vj8YJssvjn0h4CK9+VaA9hqJDXx9zyDnt/7a6/2YxSR3dlf8wZAo1Q79YytAEkUAuhJF9GY1v313ei9C1Mhw==","signatures":[{"sig":"MEYCIQDKRlK0F1R8obdXgX9sSkbz98XUwknNRxh8VwiO3Ih/9wIhAPBOncT/PTMX63gX7Rc2CrN4rHuQDAeH5NYQ3ZE/Pd4K","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081041,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeje+qCRA9TVsSAnZWagAAHu8P/ix/FGBOIOmNtfmJuhUl\n2icGH5bBdJU6hl9p94fg7ZTtSTUNYgQYAE2+NzumH25WargqtpETtZ0DB1tu\nH89uGpxNTs1Rry0HALQbCSqM624B+oBwrJf10rwvEg6EfLDW0x4OmABIi7i8\nktO29rIkdIoy9R/ig/jL/rRab2mwbNQYGj6H+tQZ3W3OMryH6qjr//MhrBld\n2gMrCHbUYHJqZmygNIF+RgzElet4qnbLuSwW0rm8gNrP2NN4CnvXDuDhQorJ\nIGZ4IwBdxQWSRUYttBeFCpL53crLyzLObQSobNXf1Ib3XxQ0zdaLnU43hrcv\nxlMKvV8WF8wp7igS/b1mFY+i520pI8Zmtp5lpHWd/iS4Jj4G8ovjnOSJOYpm\n0u13wy1X21/LKu2Pa1+Ylsp/wKeh9yj8a2fmK3D3O33TXTxsuIQMtRuvR4GB\ngVEPyHSPQDOBF0pFXWP0FUxAny6CEaOIg/q1BkSvC65n/krDOmgsMbVqb/NO\ntKW8urRwa5Izw2s8x0iMLl+R8HROJoek06aRSjfjWJeJWklz+MRfQmn3Lotv\n6gGC5ffCdLwk7dCVx+qIq22K9fERtgPz9ylA87W2SYMf84b/k2D0e7DA4b/i\na1X+qOog7eXv1GNFEX3queUnVGXp9j/rGAZmO2v7YRVuGTzn7k8O4KiqMN/H\n5ta4\r\n=vSXV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2c7c3d8feb6b7bb5281c1144c43a06f3ca963316","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.5f24faacb.0","@material/base":"6.0.0-canary.5f24faacb.0","@material/shape":"6.0.0-canary.5f24faacb.0","@material/theme":"6.0.0-canary.5f24faacb.0","@material/ripple":"6.0.0-canary.5f24faacb.0","@material/animation":"6.0.0-canary.5f24faacb.0","@material/elevation":"6.0.0-canary.5f24faacb.0","@material/typography":"6.0.0-canary.5f24faacb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.5f24faacb.0_1586360233865_0.4788946154016025","host":"s3://npm-registry-packages"}},"6.0.0-canary.82fa986b9.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.82fa986b9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.82fa986b9.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f890bec4b25ba1a649d6c34a6469a8635674201e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.82fa986b9.0.tgz","fileCount":45,"integrity":"sha512-pE0S/5afN/+rz/9bIwzFXCO4Uzuj+zrSRX0aJh8pfpOFOstX8UfE3EsWg4aEUCFURSMr2c10ZoOdRQSwvvbSSg==","signatures":[{"sig":"MEUCIQCkzU4xWGG4jAsL6PFvKq+nevDIlJi121uIofK0TNnj9AIgcWvec9z1aKww+/NTbjAb0xrTO38IlSM7anqhZC30lQw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081041,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJejfDcCRA9TVsSAnZWagAAsdYP/AhtgizlIRxq4kIJJIJ6\nCBIwFxU6fshj5ZAn5lRDxgpDBfHYECAUeLOXYmnRmkzsbGzMeKF5y9Omj+rk\nPK4x0g2jKbUGLBzM58V6h5oDTx+j0+P7/gn6My4D+rbk/f7MHOUHd+44cgfx\n3L5nm84oUppsOhRWBrY54kR/6Dw4PYIQTxWNOU6ZcARYR3oMLHAGBhG+6JJF\n/4rDM/NTvGJ5gE1Csq+L0+12vrjbVoMbpDwTDIxGz3py3bMqHpnrPd9K5VFf\nZRUZHCQmtPL17TGJgLBQcuKmCZQo1qsMbUHkYKnYtp2tZ9mHjgjWHWFJwHpk\nG8oUp23lkYoZ8RJUEFEP0UTiBzaynX+lYgWVaMKPoSlShNh5H+DVPlNjaa+6\nlR0r4hwx/+jSwu+NSCpy90oF39+vTqm5UCM9WrHhbebIqXbQZlPjaV5rHyQ0\nKH/jnNcWm8F0nevPaMNjz7Cxc4jnDwbH7ieSv9QjIQ7tPEHIejCv7irpULyr\nn/PbC8qWw2wKL/N5A8MGA/v+xgFFQlLD2YsAk48ej3qdZWNd48nHNxdsbqk5\n+Y+RyXV5AQvtCKQh/BNhNzxzp03UGpbyzpGxD+TJlFyF0MnDNZM2NHDO9Aln\nk9fiIvHMULFOPbprjMzVTWVtSGS6Arwyhsn7iahFuT8JZgGVt5Kk07oBplsa\nrSfT\r\n=k7IU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4fd9bd21072735eb447e594a5fade5eb1e846831","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.19.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.82fa986b9.0","@material/base":"6.0.0-canary.82fa986b9.0","@material/shape":"6.0.0-canary.82fa986b9.0","@material/theme":"6.0.0-canary.82fa986b9.0","@material/ripple":"6.0.0-canary.82fa986b9.0","@material/animation":"6.0.0-canary.82fa986b9.0","@material/elevation":"6.0.0-canary.82fa986b9.0","@material/typography":"6.0.0-canary.82fa986b9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.82fa986b9.0_1586360539660_0.4122214465489269","host":"s3://npm-registry-packages"}},"6.0.0-canary.9930d9cc5.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.9930d9cc5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.9930d9cc5.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1f60932b4ec685091dc4d6a9d57256c223482ff3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.9930d9cc5.0.tgz","fileCount":45,"integrity":"sha512-0ygIIO7Rk+r5pXXvEzhqle1ALKDGFLj/tFe4PwdDfCa/D8/Nr0IzLo3ltGOAXBJmTIaH1sCIJhImM1oWZu6j5Q==","signatures":[{"sig":"MEQCIEG6dtoGRdRxeKgfvlAkLfaDf5nONcBiu6g3q+CcJyg5AiA7tHEazZYbDNtNzbA09JwNWKxLElPHDGRDa/6IeC905g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081041,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJejibtCRA9TVsSAnZWagAARpkP/j6xOBtI0fmlpNpO79PD\n1HE3b0xE05z3htHRX6ZtStdDEblmY78HNZ7hEujdyylRFiWqpg/VF/httHK9\napqWPaH301UNpZD6w8oy/hXL0IITXGFeim70fY/Nsc31Huqpy7RKAi+Nn8Wu\ns+NDmiPX9VP8HFjH6MnyzpfizC+bWQWHIi9hO8o/1Hh8yjQM6lCXJM795XUb\nRTnMvbdtGT6fUuQZ4WkfXpn5376OX26HI3MCTnE+u80k/xFfNGweRgFMsyFi\nV0mfpWPCoi3PSV8UADtvnxLuUAyTBYkgxRESzqonTWLGTpgsDcw3jDsC/7hb\nmgcgNSGU988Uh7Sly/KOE/g4sYnhOjo1VtZnRCyXLWupbkul/j54nLyQwWBo\nHWTJ9fJ+mWdx1b+OuL0buV33FLtRPlyLPI31bfAq0q2bte+wPFEbSN7ymC4g\nR0v7LAUzjAeQUsLxk7a3F5YCZeSk6X6fnmQIdSImfQhluUIvkohYeGr6XojN\n8Z/BdWBYDiXb5MecaqD7ZmFmo6yRUvs/EOhHGuThcrzsCrNecoubzms9QcKD\nBFXc6qcuEcJOxJvkicFLlzRWGS4CiQ6e3SZmtcd/Oy7feDMGcJV7QWKwi729\nEV47vmimXsmkuJy4N+SYE7zyrWN+rz19fsEiz8FuYb9PHyaJxVTEZ6Sq8gDS\nX50Q\r\n=i5ja\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a0382987a27373aa348015a5e2529f301f638d57","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.9930d9cc5.0","@material/base":"6.0.0-canary.9930d9cc5.0","@material/shape":"6.0.0-canary.9930d9cc5.0","@material/theme":"6.0.0-canary.9930d9cc5.0","@material/ripple":"6.0.0-canary.9930d9cc5.0","@material/animation":"6.0.0-canary.9930d9cc5.0","@material/elevation":"6.0.0-canary.9930d9cc5.0","@material/typography":"6.0.0-canary.9930d9cc5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.9930d9cc5.0_1586374380655_0.2294407022891587","host":"s3://npm-registry-packages"}},"6.0.0-canary.6601d24af.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.6601d24af.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.6601d24af.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"894585b26ace26cec17ca9d2a5520868eaffc0a3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.6601d24af.0.tgz","fileCount":45,"integrity":"sha512-tjLIf3uYbWlDF42MqxpWFGLkURuX4n8024dMqYfeGeMfuI57W6ZJPQXJ88EzX5It9LeULculX6NkwIlBiGz3VA==","signatures":[{"sig":"MEQCIE1bQBXYsUI0Uqcc3MTRwpqeDZQGGFb9uCRDZ0VcZy5mAiBSSo2sSjcACLlD1M8wGc7dSfONQPmFSYCa6/ml3h143g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081041,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJejmyjCRA9TVsSAnZWagAA+xMQAJVzMcROfbgREcgPOwW7\nQXdKNTTAkjsnc9g0nQUZdi4wr7VGX1hv00iOgO4v29tcmP9Xhakh1GoTsQ10\nUPO4GYsbKbDCKwTZrHY7P4R3oZ4bm78BB9/Jvuba8FXQbrfqcLh0WKGED5gd\nL/L69CRciLL1wnODRQCeXmzssX9V1pFvwYL/Za6Ea8n1SgupiHJoTpTz2jxl\nH8lYX0/7ulBekEWTBY3S8GFuyG9OsIyMrrkkjWJwYSY9yUNXqcPJ5xkEbemN\n6lSTShAPbsoCJkzichU9UA3IAZ8z71lSPQk9SMDkZj3u/FrlZC5X+So6VTTg\nNaOqLpZGxOtojR7/07DcwlmYzj1pVaiKTypDUCwcrJajuNJhAkY1iCMNlXM7\ns4yto4JrBpooWGQ6h0QjeEFvZ00lRfoDavTrWFtgekkfW2xhq4Mim9jDLBeM\n9UjRvmlLJnFlnax9W0N8x3keKqsIRRVlizj+ia7vCmLIdeGFYUL8gnFQr8i0\nzvjA/kA6ls6KWfGVCx3EVU720S8ZitkwhQOoBzXKG1AnMa6ktdIsvQ8MQf38\n8/TjCtexetm7zQ8ak+0ckt2J86z/vK/iCUF3BYK+6+9NGMbK36B3fT4WNtSy\nj7/4hjO3c8BHik67o6Z6k8JmzWvH+ry6ebb1D4dK8XCTcbhO2ZoKihgmkrHj\nrTMr\r\n=3jTG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f22a45db8a22981a17395184998a94e6a32944c9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.6601d24af.0","@material/base":"6.0.0-canary.6601d24af.0","@material/shape":"6.0.0-canary.6601d24af.0","@material/theme":"6.0.0-canary.6601d24af.0","@material/ripple":"6.0.0-canary.6601d24af.0","@material/animation":"6.0.0-canary.6601d24af.0","@material/elevation":"6.0.0-canary.6601d24af.0","@material/typography":"6.0.0-canary.6601d24af.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.6601d24af.0_1586392227088_0.5651680563524224","host":"s3://npm-registry-packages"}},"6.0.0-canary.05f5e1583.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.05f5e1583.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.05f5e1583.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3aa3541ceb4c35a1f4a1feb77af89b6fcac58548","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.05f5e1583.0.tgz","fileCount":45,"integrity":"sha512-Jh6cz88RqzNqaPlIzZ+T0ua8ao4dlZ5C9JxYsRe5n+5RXY9OOzqDVXyW4ZXc/h1gmgArTZ/Gzw2AJlr5TrHO8g==","signatures":[{"sig":"MEUCIQD/LjuDe7qSv/BZyBYiqqRleL/mgZMjXNehQXkyuWnlaAIgd/ujazvloUp1WuMX+kS3HNNIoXAT4oMsxL6cF2SMmgw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081041,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJejnC4CRA9TVsSAnZWagAApEsQAI5dQtxctcAfBshgIJeY\nhfvjvoJ9Xc6KGW88vl8/D6TDtft5JbqZNLCYM+AZohUesVhqOWcBaSl5XgvG\ngG1QrKP6otA/INlJrhYJaNg88N8+N6CsGbWu32GeioZ/gZM/w6C4Dtno2QqL\niByE2eSqI85A1blx8/y/kDbh39XqyISUeTEZONb2rJoS/ezcetuuWHcldog8\nUlofepoL2ETSJku6UNN6HsCmTfvaOznv8E/S5IFzc6e6uDWf7qU3gOH+uUUt\n2rOdsSguhflFDUn+qOR+VWwm3VOFaL32/xRDxG7Xj4VfW5aSfabbVkid9nvs\nSqse/d9n7jxzA+DHY/nLASU2FHT6y1Lz5bqOLXRSNh3tkVqfR1FLv5XoDY8Z\nCjafY+CVSBOWZ+HPe1jkFHaPkYKBvp3eUCdS/fqPJnuuSKhJFp+mCQJNq3UK\nL8yUY3tiTrJKfhXbqJO6i9WW25HAKoG6vrWTgtRTYXBzHiXqgIMMJeuicizY\navoiGN9ZJEOUl9fj64PeVrdAlhwD1N1uYY8L1Oxz7+IcnGftC4hagMYax3HK\n9/r+vgwdL9fbS6scouqKC6GwP5k+7BsKB6Xnw11Brez9gDz1tbNS4x470AYt\njaOFdVONwwHQoLqvHBK8i4Bin2XFtC/rFqDwG6TaUUaNnxdY6Yh0sGZU2fwe\nRbfs\r\n=SKnl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"413c1908165c032ac95dc5456e70978d3994b6d5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.05f5e1583.0","@material/base":"6.0.0-canary.05f5e1583.0","@material/shape":"6.0.0-canary.05f5e1583.0","@material/theme":"6.0.0-canary.05f5e1583.0","@material/ripple":"6.0.0-canary.05f5e1583.0","@material/animation":"6.0.0-canary.05f5e1583.0","@material/elevation":"6.0.0-canary.05f5e1583.0","@material/typography":"6.0.0-canary.05f5e1583.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.05f5e1583.0_1586393271543_0.14473391147940418","host":"s3://npm-registry-packages"}},"6.0.0-canary.bce00e186.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.bce00e186.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.bce00e186.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"599618be7cf37d075b2de3c795fb9808fcf8ad6f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.bce00e186.0.tgz","fileCount":45,"integrity":"sha512-8vM84HBY01aBmOI0MSD/8md9YCtdcjBpBNfjyTcHX5egCY9k0wlTN4V9rnuGfa+PrSrz49IcLmP7C+kfzbvCyQ==","signatures":[{"sig":"MEUCIQDJHuJ/cFUkmWkj14JYG1moB4jKgfMnd/XYWpGrZOAt4gIgV8n54v7lt9KEbJqQzgMnKmUgFpYw+n3+kKdNAvPCuxc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081041,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJejz3/CRA9TVsSAnZWagAAii8QAIiKBHmtDD88pidIBQRl\nhl1RNkBAkgOIzOcti29qYnTzAJEBUn/zvwdxxHLhhgUapwwHnwKU2atBQxeS\norU8AK0NJWFzF8Q5izIW3PIdpo55NPRRIK/xSh5UBpZ2KL2GafQbFtJvGOv0\nu8EByuL3/Sh3JMXOBlT8za8O2z5rfL/Hnj86xEglt0KLdnA/1IYH9L5QwelC\nzx/41S3YodKqJE52Volhcknsw530K/dzSUpiLG72BeDiQa3NOSFLXu4gjyAm\n1mN6Rmv77R6o75DKPPC0K+62QJrE/EhK3FXcQ2gMUymQHmtpZ3S+9M0X12+s\nRZLrHwrZ9cOw0nGggDXb4zRiJCEg72AH9jwD7zRfmQgGCTqg/OwWJ/HYY7mN\nFVdcW9N5jGX4ImfbFb2TFZZ7hx0yF+itARqzcXbPX1qA+4sh+v/t7/XMlQJJ\nLIgjmW3aWmvzC25suP7aj+FR0B5Y68yP3xyTrXm4u/5fUGcAMRJfaaWbTcsf\neXNsNyQ8/hzAyu2DZ4aOI0kR6HQPtbzrsOB2AUZ0un22437MSRPVPfFiUCrI\nbEi3o80/Nog/TClEN1sKnGtQk+oU+FiLQmiEOaRw09KfPPUobgefNgi/frwG\nGrR52S57xQ1pzU59qvORVy96HeDZIng4d9WsOf83u+IBA9ZiFFrEB8U/1BOY\npZnO\r\n=lXWU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"36e6ce5271637d131432d915870da208d16bef74","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.bce00e186.0","@material/base":"6.0.0-canary.bce00e186.0","@material/shape":"6.0.0-canary.bce00e186.0","@material/theme":"6.0.0-canary.bce00e186.0","@material/ripple":"6.0.0-canary.bce00e186.0","@material/animation":"6.0.0-canary.bce00e186.0","@material/elevation":"6.0.0-canary.bce00e186.0","@material/typography":"6.0.0-canary.bce00e186.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.bce00e186.0_1586445823134_0.8887273287286201","host":"s3://npm-registry-packages"}},"6.0.0-canary.927fa902c.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.927fa902c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.927fa902c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8aa7e04483fafb5fdadadbacb2a83b823eef8ab2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.927fa902c.0.tgz","fileCount":45,"integrity":"sha512-X/5TNxxbl7o3MI8ZgOFKisRSyW13gZ6sNabwish6BNMmHPX83aBRAv4ZhW6t3hNgrb5Nx5ind4DqfWWf2upwRA==","signatures":[{"sig":"MEYCIQDYzOUZvgNVEnp9W7kzPm2vV2OtwoHCrscbkAqe6aKefQIhAPuFeEhgWR7HeleCqAmRfwmChfcqKtJRftxcuSUEhOlo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081041,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJej22oCRA9TVsSAnZWagAATAMP+wT954IywV59MM58kFJ7\nCLA73g9E/REM6JlI3ORNbUEMjd7SHne7FhD1OuHPkh6YjnumoHGLbXCPsJnI\ntjYsyBBJliDp97rM27DJ4jdjv/xBbetpnJ4q2Y3ykTgTUBOlY14PFtjxvNEI\n9cdvITw7EKqkaUuFGTGIu4YmSm+4UO+/5Q/GlyDgZoKRz8rliD9SN6zHtdFU\ngT18uP8cVxZDcq6ErD5aJ7Qw92stlD9Vkh9PpXBUPLBfFJgW4FWgijcBAtQX\n7A/FzUWcTchs084IkS6I01WpvOfKyVjv/mirlPVlJypopEBDTKmtZX5uswbO\n+0KV/EjOAypdiilCxVxCKMd6KCQhRtbPCRUzrJ2iGzvYcFwJadKDxKzGE+Of\n8FpmfTouLxYRd3gGZE6k15bHSaDLaZluQlB+dKqvg51qb4d1n9EAx9VE7XCd\nOn8RxasGaELKv0/nC1Bc8rqmcN4OvjQ4zIsrJgU01QcXMTqZpYwS6F5NNiI7\nkYZvsqNfBIvzWJLwpZH7xUl9t7m/G8yKoz9RYFASniqw/aeiy8crkbJZK/3w\nYDNbKz3LEAi705WwtutpqiC1rJ7nZGYevFYvftZSsvxrg8Z0WK+UQVRKb5Pk\njZdSn6gfc4buGrv6wu8qrNp3cd7Yyhw5CzD9KEY7fH3X3JiR7lde5ZZCHt0c\nMf8p\r\n=ZppG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6993aa2a4786dba507ed6b641b4c059925b7ddfc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.927fa902c.0","@material/base":"6.0.0-canary.927fa902c.0","@material/shape":"6.0.0-canary.927fa902c.0","@material/theme":"6.0.0-canary.927fa902c.0","@material/ripple":"6.0.0-canary.927fa902c.0","@material/animation":"6.0.0-canary.927fa902c.0","@material/elevation":"6.0.0-canary.927fa902c.0","@material/typography":"6.0.0-canary.927fa902c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.927fa902c.0_1586458023802_0.809364546067048","host":"s3://npm-registry-packages"}},"6.0.0-canary.eb28b6ecc.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.eb28b6ecc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.eb28b6ecc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cab8bff29b716755461805045856b0833379ff5f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.eb28b6ecc.0.tgz","fileCount":45,"integrity":"sha512-mIerEVZIqSl2Cuh8c0fUHDREZ0oLJYGDGdCl7DMzP3YqUNudPAiRbrOMKLy0QEh3H++GMCXWFou8+H3BEf1mSA==","signatures":[{"sig":"MEUCIQCo4yi21MTA2H/W/IXLLS6JCTR5yCWl1mXrvU9x/AFmRwIgBk2bCkz/0S1ACg1d82YCvS5ZZuvR2pQHHqSNLNe0UCg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081041,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekMmcCRA9TVsSAnZWagAAHysP/jY8YY94oVVYj7mJJ0Ms\nwUaulzflSQGxktn7VuvmYlUEbmgNfcX9v0tzsGBUdE2byve0FSF+rjwP/qlQ\nTRhrUaLmVdiiHyfgHOklNvtZpirhOoukqMX3ZVwZNqd4DATsigphiVCVCYbz\nHyLmDIiHxv/HgGd1CnGHIVwWbnYs6+gaMpWkFd01Q+sOUYoH32fkkBw2xesL\nPWtoFTSAef1xe491RI83Zxpy17dg5k6vUgCfnX7fVrxmF2QILw1LKpOKRzoF\ndLTCKIPTtAggf3U0z4daflgFFNtziURUhpwg0Sc07o6jj68VxgxxEut+IuXw\nCdhMJNB1suXUBnXaqxTvnweVJWFRhs+mq7Fy2je6rQGtCi8RCqJ/DDmmwR6f\nA7Bxcs6+VccmWNdvghsDdcmdf4z1CdcrhCTGKUPTp+tLZgeaK6XVlp49SHYU\nfB59NHO6RmKuivGvPGBk0lXQ3b8MD2dCDrDkeV2sS95xI3PiZrBullvoCekm\nIEcWCrTqQpu5J2YWp8lY7RBJ7WRadkttLkMpMp2I9h9nGPqLy2qodSDcrisQ\nAau/8udXwMkhKFlxj6+Kqqjdkn8UgrjNwUEo3ZZgDwK2QusDEieeFdjplv/n\nigu+vMXG4JRhBLmACk8OcxPyWO2JPOPOKLwfyZRfpj9X5wHfg4ypfauMgd3F\nnp22\r\n=ZosT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"14b97cf99132f4a85a978c1799a668eae031d75e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.eb28b6ecc.0","@material/base":"6.0.0-canary.eb28b6ecc.0","@material/shape":"6.0.0-canary.eb28b6ecc.0","@material/theme":"6.0.0-canary.eb28b6ecc.0","@material/ripple":"6.0.0-canary.eb28b6ecc.0","@material/animation":"6.0.0-canary.eb28b6ecc.0","@material/elevation":"6.0.0-canary.eb28b6ecc.0","@material/typography":"6.0.0-canary.eb28b6ecc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.eb28b6ecc.0_1586547099900_0.04370205165721974","host":"s3://npm-registry-packages"}},"6.0.0-canary.816a43b42.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.816a43b42.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.816a43b42.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9377f9420894b84ee725742737d2cb4794b691ce","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.816a43b42.0.tgz","fileCount":45,"integrity":"sha512-l3T5sjEc+Meb7H/IHUnvVtEkYTGnri0vN9kJJVvAVVEYdEFVmgIBjOIBqXHkOiHDVsEY++FEFlAfI7uZO/TVgw==","signatures":[{"sig":"MEUCIDn9+si5WVYY7sjCL6k98ac3//tPU/sp47S9fdKyugUBAiEAmc4j1KKj26rjGfg1qOGAHCwkJDOn5iq6G/ms7sLMPzY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081041,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekNy9CRA9TVsSAnZWagAAYL0P/1K002TpY9aLxLZVEKxy\nmk3Tv0mY7NoiG8wZjji6Neml4i7AI7khzBPSQSncEOoUugnBhzIPkx6eCaYq\nbh8RWfjAZTOuvjVdm08pUBNSRepp0B/CaBsIkSlteO5cSctvYiN+0iPWpKhr\nxP2GKKLY+vsCrKOrsetYm/nH3xjiKa/mKfAYrN5kIghGbnhtIdh4lHja4ZAg\n2LRMxOn+ptJzfYOnj97TEJiYaOBRpmZRvZDuIRGw1LgtqfR+INcd0lNLo9Cg\npSANA43OcFGL42+uigjIqN3SC55omD5xrJcIELYCF3eHJJxlNMHMxnqEqcsA\nBhkZm+Fb8OCuPFGZ3IDcWghadLNjjSJmVyvRKd8yna0tQfjEKWrVO6w6x+ZP\nBOO//u+egDhRvQPHz9wOkQh4fBaVjajYAs8a0XReT9Cda8QYnvNo+YGRk5Xz\nnQysPvd66qrKNX9DrZNIXkANfj1QGqxsGRUqPeQ6+t5iXrkwcxQGFSXxY8Hk\nW+Qc1UbpsdYAjPDzP6xrx0eKWWPqbHWW50zZBUQrMmWjeoYzTenVbMbjh1ss\nqJX12j+1wt0vTWVmDDZIXnc+FfGKk4YH3+BtFP7tgrfYIBdzhQLF+ll2L0OW\n8HXxd2xKPzaIOF0kG8AyQY3LYfeTSkNvyS4mJym9ceJMsOtzy2c6FLcz+Rnk\n2++R\r\n=mB//\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"55d118d08a4432484dfc732189dae38773d1f437","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.816a43b42.0","@material/base":"6.0.0-canary.816a43b42.0","@material/shape":"6.0.0-canary.816a43b42.0","@material/theme":"6.0.0-canary.816a43b42.0","@material/ripple":"6.0.0-canary.816a43b42.0","@material/animation":"6.0.0-canary.816a43b42.0","@material/elevation":"6.0.0-canary.816a43b42.0","@material/typography":"6.0.0-canary.816a43b42.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.816a43b42.0_1586551997058_0.7982257351598656","host":"s3://npm-registry-packages"}},"6.0.0-canary.008c4d319.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.008c4d319.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.008c4d319.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"22688d5df75aee76c25eea895515c1ed8784a3be","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.008c4d319.0.tgz","fileCount":45,"integrity":"sha512-x3AvwLwwV1ibe4s1EQEtMF5Djk8BaXRYnY3i9WdGJwQ2ufjdITOTH2ls0KB7U9OaQHFdvpiQCGfaFERod1o8mg==","signatures":[{"sig":"MEYCIQDy6A/o1U8fyvkn2xNslPW5S1+dyfILgC4fsamilPIS5QIhANhyM6GXU4Mn0T6R7ZXAT2bwXiuCbdS2TO/Z+HV9TdkP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelJSeCRA9TVsSAnZWagAA6UcP/jAq6Bh3CaGeaMY40oY2\nFBO6cBbvPz2jEYK8qogoPTpRxkrpFef73ucKt0O5EKgcMGV8LFz+5EMpctP4\nJuCmgj/5mnG9yAmeySLV4CQEFtOmI/8ynkUlEd8rva5/z+lXDoNkQ2z062+Y\nBLruy0YXoSHoSNVwH6EFee+y/lESQKfHdgHi2vPGUmHoQqejTh8MCXJ8Sotk\nskGgvUdxHPUWJCYucBsu+Prhjy0pi7r23qY0jpay1sn5JjE2FyZMPE2P93hn\nWpkS06qsFzPPfCbs3sfNsaC6tpE1Q7ZURY4/ONVxSGHbUfX3ql1nGS5XRrd8\nJvr3PSVqBcJjr+mehvtK04CWs6FiM5IqhfSvaquhWmy0sAkBJvhbpDR03iYU\nw9vszP/HouRHITUgfAi4f0VmXMR4H4j3rzn+zn7WV1Xia0z6toqWBI3Uf0Eo\n+d0cRQssuP3WuuWK5O9RX7ljIM668VGEg+OkbPdp5q1bIoRzqsntuTXUhXfz\n97ppbu9KvyXuYK6M1rTf5Ib86d9XzyD5VGsSXwwCm+YM+Vnk9ubdO2GERrzX\nIsSNdqnLGAZ4XJY/3KH5fru/VyX6nC+7iusdybkOnx/3m4PjjHI0MHeTrvrL\nJTt7WUzDeQ+56+QprUeFIaOsdfup4X6suDnfU85XnN8awHo0Hlw8CgAu+a/J\nSQBq\r\n=cJm1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cf7ff62c921da3167d96b5f7cc7f07ac2af41a19","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.008c4d319.0","@material/base":"6.0.0-canary.008c4d319.0","@material/shape":"6.0.0-canary.008c4d319.0","@material/theme":"6.0.0-canary.008c4d319.0","@material/ripple":"6.0.0-canary.008c4d319.0","@material/animation":"6.0.0-canary.008c4d319.0","@material/elevation":"6.0.0-canary.008c4d319.0","@material/typography":"6.0.0-canary.008c4d319.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.008c4d319.0_1586795678322_0.9983513080042368","host":"s3://npm-registry-packages"}},"6.0.0-canary.cbb3f28ca.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.cbb3f28ca.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.cbb3f28ca.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e80630cc2fe079a38b112e24dcb1c62199bdb2ec","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.cbb3f28ca.0.tgz","fileCount":45,"integrity":"sha512-vRsYzQCTM4QFE2hb+7LRqXYfefl+/7vHaN7iYUPgphdemSuRM14B4eCAANzwatfJq0fJNTBHk1SOwcsnZgFS1A==","signatures":[{"sig":"MEUCIQD+83cJ0W8m+clPIm1oDa+/CIbwDB6Qw7C1bYbTGCgjDAIgRQBvR2OrJlKGbpzkZkCg3ZW3QmgqtWsC7qf6vATfjY8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelUTZCRA9TVsSAnZWagAAGcQP/RGXIsi62yQG14gcg0Vz\nJExvYUIO+Bd5Bn3r9TSZMPzUZ/B41upEvWsrxbcp1PYFIKouoqWYe2nLifIj\n+mkpIhb8/S+bIpVAeZOKzEUiXF5w/Z0izuwKQ5mUYKdSo/CiMhqNPSu3mQjD\ntav59fMFpEA5vJxFy2SDy6/CjRbuggjZQITPBlVdhn5g1k8cf++vGpB90izE\nx4+CL26inNOzMD5rrKymAyA/FOjaK/SfLxR7Tz/AWTdF0OFmu/+/Y5Jv4XRR\nqwsgb4sDsL15+kNaXsUP4yxUm+Za7iRZd5pMFDDcDJIcxcQEBzVWxtggq8eF\nGmrOeuAF9kw7Kq6kpZ3u0luU+e/XFUx1t1qHYbtekdKMfANNhwLc/EMieZV4\nbx9lKq9imDncsyKBkUfXJK2YQ9FQedyyGEnLBj+QsjESWARkdtHW48esGa3s\nqEModN4Rz8gSlSMYqKxoD0qiIHXpOT+x95tfDArUcVGPW+rK6YGhWvUYnNKu\nXnVc/5OLTUa74lB8U4mxaJJFTc9y9KgzW4SjM3QK05Ru6xDdpHgHkuYeB34H\ni8t8iSCG5eMgzOcfwLflr493PJS15oSIIi7yA3jFXNB+SLlW9FX1EurGUTWV\nuySspg+UZdwKappMVAYGkDaKh3jKvyGH0wCdSvj1JlC4o5lzZiKaUioT5qiM\nibiQ\r\n=FLQc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b6cb89b18de9f28799535d82c5ebc759433a5307","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.cbb3f28ca.0","@material/base":"6.0.0-canary.cbb3f28ca.0","@material/shape":"6.0.0-canary.cbb3f28ca.0","@material/theme":"6.0.0-canary.cbb3f28ca.0","@material/ripple":"6.0.0-canary.cbb3f28ca.0","@material/animation":"6.0.0-canary.cbb3f28ca.0","@material/elevation":"6.0.0-canary.cbb3f28ca.0","@material/typography":"6.0.0-canary.cbb3f28ca.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.cbb3f28ca.0_1586840793074_0.21972757166277246","host":"s3://npm-registry-packages"}},"6.0.0-canary.f172b0f90.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.f172b0f90.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.f172b0f90.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8114b897bb0465d5a90c62c195eacdff12221067","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.f172b0f90.0.tgz","fileCount":45,"integrity":"sha512-jm4ECpPnWNlkeHBeksqLVDXRXj944HztfIdykCt3VexDztt9kJGhOOTCN5y3qEDUGcwZdukgk3zKXIyEqjlXMw==","signatures":[{"sig":"MEUCIDmCGe8FC/cVFK1Wp4t/H/JBzMAVGNxYyVymj7opg5ClAiEA5eNLCedCQ+yIqFa/5wRbks+aUrMtJuvZ88LuklO9er8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelkMACRA9TVsSAnZWagAABaAP+gLWKVs6l2zZWX/tZlaJ\nOx81sQ6PEJyb9MTXOz7bAzCOkLHq33DccQ7TsTxpucZa8LTNkspxQZjQUe16\ncvmEtQuooyJMvQg/CcpWR3hQFzAh6oz0Yua8JOMvizuTSD5nlXFmqa6DMJvT\nTcdcmLxEB5qg4/+D9CiZdeMVBVqsUzMA6k3/yjRCIzs6fR/n8FiIpQMinPW0\nYWZ2P8QsLoldLd3IqIlBtI4giibgvihj3OpLRbECbfn2pR+dlAYJhKZDtDxp\nudwrX69PeUe16sWjyqMU6jBG4Gr38FO6CwgPY4G9wpp/dn/ljyZ0J9jXHGUf\nfTS5xHcYwXToQvMy4mh7RNAHVXZuprzJQyk7x3jHp/J0b1y9GohZsSdqtwar\nksk+m+CdZnjOw9txa27kBg0vG0ssa4XA/TLiXg+vHuh/8tdXpZ3bXcftf9SW\nVRl8nbrAulvofpJ+hZUKSbWrDg6tRIaVjrj4FQVGoFSF21GFwgJhoPDnpWJo\nOfvuc141ZeckCMXaV/dVtCZ4IiCFAua7D7gqgHwlO/NcGhjrqN6cV99qaP/j\nVQ4t4GkS5oF/n+7fm35GMKhRLFlP1+nRsDMQD/1kSiBty9pxAoHdri9r6qmI\nyI3XioRAdeDYB+aoHJxM/6581x+/KrB9enR2L7DOo36kZiCvhdQpqBym1N+R\n2+JS\r\n=CgFN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"eaad6fe33949c536d515e1177cbadf504619cfda","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.f172b0f90.0","@material/base":"6.0.0-canary.f172b0f90.0","@material/shape":"6.0.0-canary.f172b0f90.0","@material/theme":"6.0.0-canary.f172b0f90.0","@material/ripple":"6.0.0-canary.f172b0f90.0","@material/animation":"6.0.0-canary.f172b0f90.0","@material/elevation":"6.0.0-canary.f172b0f90.0","@material/typography":"6.0.0-canary.f172b0f90.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.f172b0f90.0_1586905856407_0.3126852351388081","host":"s3://npm-registry-packages"}},"6.0.0-canary.c02642273.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.c02642273.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.c02642273.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7f5ebb18942f83156816b9a4bd09721013ee95cd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.c02642273.0.tgz","fileCount":45,"integrity":"sha512-N8yAM5WmU6tueTYuVEi5J97UQcW4ll4ZO62EfhMxQXnxqeXKpcj0Hk4J+CxjPLxpghiPPt3826cc9bJvH+/4Sw==","signatures":[{"sig":"MEQCIEAX2BX6Ku4PMaViPm9GrsSF3HHQ5Ki3HPjFjEclMdGvAiBkhnw1BeoNiMPzMbQ/SEYhl+5FMr739ct5Tb0NB0C3Kw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelzO+CRA9TVsSAnZWagAAPcQP/2bbp1gACvTv07z3UfRP\nc8ISb1Pby9gIje/RsyCzafNNLUP+V5rUZOi/ZcJWr3P7cObaSou0qfAMzXGJ\nrfERP6TW4sMCnV7boyMtV09+E4qn+xTkWN/Q+yTR/AY4IyE0th+aT9YzGhI3\ncuRjGCeySXQmByyxKcwG8XCwnU4JskjgIQ7+mAXPrMYbPO/Vy2S7/2YTjTow\nUeMVK+0CuGeY/EiBiEYNb7k4OuoBPgqrK/bLleleYX2IdhKRvGkhZPKam1xP\ne7+zttTXpm3E8n6StJn+7BG7SKFohf/wNCFj3rDs0D4nKkjoRZs6iYFUwk15\n125Bk7roX65WgKWQYNZ4BCGb+uVSsGy5cYFLN/0fyftSFiz8ElOfQf2Wy53T\nKIeeOh5LT2wDAe43++RIBrOB4BCVnx2+tfAs9uFMNgiBKN16V5npynjEtTv9\ndOyADE1qfz9pe1rESoy5tu5Tl3+mCp82oB5ewyXFSonfaBcgKQVFkpwflJEq\nhpkt18WE/hmChvGNkK2JPu4aOa2OfKIQHpWrkzlf/hry3t3JioHH22AKKqUg\naED84vsVjspGsVTnX9/0vEhnjNEOV3toWjCajwXPdEL8j2RHEIFvS1Js+QIk\n1+Ss8wkCvt/xaBSs3RcLykFUnyeeeDemoM3E80aNxartefqpz6RKsKQT4SwK\nb6WR\r\n=0k6W\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b648ba2f886a5d6cb78a9dbdb435d18b5f600bf5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.c02642273.0","@material/base":"6.0.0-canary.c02642273.0","@material/shape":"6.0.0-canary.c02642273.0","@material/theme":"6.0.0-canary.c02642273.0","@material/ripple":"6.0.0-canary.c02642273.0","@material/animation":"6.0.0-canary.c02642273.0","@material/elevation":"6.0.0-canary.c02642273.0","@material/typography":"6.0.0-canary.c02642273.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.c02642273.0_1586967485407_0.7006308529835756","host":"s3://npm-registry-packages"}},"6.0.0-canary.8a299b568.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.8a299b568.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.8a299b568.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8ed5b75f1f73f79afcf272ea1410acff0c883526","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.8a299b568.0.tgz","fileCount":45,"integrity":"sha512-tx1zqcGEzhFLKEtQfKX2q6zGyw/6ZCXqU4faTLcogNSwJXJBtoq7yKCOlXofbi8h/rkFoGxxSkq5nf6ExVP4eg==","signatures":[{"sig":"MEUCIAfLm0b5yuMtQgDJqAC6Ot/AgYBo9Cf7vKo9Od6DDB/sAiEArN++0mV7GaUdnqfRER3jiqwcNa4GhJTq2akBArV7Chs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJel44oCRA9TVsSAnZWagAAgsMP/0BpvrrrItk9NjCr/qFR\nPmmoRFMGTUR6TuBLtDtrD8tUXevocEbuXSaOYLRcmDzyDNdAZyfqIHsR0bNu\nQlFXyUtj15YQgvmcSAI26U5kkoqS7Qj0GT4y1KWn+ogBETxZf/zWTKg2qy//\n8OkQUs7wzdeYijng0OW2qMgGcQoAzrjnpBoqmU8ls3kmBYXltga9JSF8A6uq\nRhtbpC+SX6EI9CSVeSMpyT05437Uw0+Yhe2n29DyLlLKp5vFse2Mv2fe7wiR\n3gK0BeYkk4V3oh5phRoQ8esLfg/4kDj/oHuLQAhVEhEDYy6l4FgV9I/6e6H6\n3iz7+SsczN93N1+bsbreR1XvTz2FGma3jymj4LtE7jFAlIraoYInVxyIhYED\nGg+1IXPNTLo5F0Frl8o/iI1F9ICoVhfwLuKfiOoVUKaEY5ZKWp9buy5BQyjv\nco9dFKneju1wPVwzoSBiPnMtV7457xaTATuHRM9pN+mea4osFplnxmQ0bULo\nIiFE4NGVeKJe7pIp+Ec9Jp52pGVnu4Wu8cOM69owV06/cQ48Y70w4XjvSPU2\nlMb3BqFJtlo4rJZ5+5LNzCvHx4wdt+ymd9Il0+9LLO5dZ1O+6PDJ2p7d0ioU\noKmgyWrHNXS4cnh/X36unLR/kzzC8rMZs4cvpdN0lsnieGpGg5/iKYTAptkz\nDFoV\r\n=Z+Rh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1cce57afe783f6d0ee960b6d55080fccc7424cb6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.8a299b568.0","@material/base":"6.0.0-canary.8a299b568.0","@material/shape":"6.0.0-canary.8a299b568.0","@material/theme":"6.0.0-canary.8a299b568.0","@material/ripple":"6.0.0-canary.8a299b568.0","@material/animation":"6.0.0-canary.8a299b568.0","@material/elevation":"6.0.0-canary.8a299b568.0","@material/typography":"6.0.0-canary.8a299b568.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.8a299b568.0_1586990631704_0.8125196612306744","host":"s3://npm-registry-packages"}},"6.0.0-canary.490fbdc09.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.490fbdc09.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.490fbdc09.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d85f65e9cdafa18b33fe3a786c5efeb935ec6050","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.490fbdc09.0.tgz","fileCount":45,"integrity":"sha512-I1EOKMG2Yip7FcuMfYE6F3AgfMvTwizRekoVeYCGzrJi7WLSzZG3BsBcdUZeToGlwhuclJ5rZCS74aqePd5iTA==","signatures":[{"sig":"MEUCIQCLicSedxRB0rmU5oUIG6GJKDbRMlRiE8EYoB678yR3KQIgAZeMMx2upO745WN9IZOWstFdmk7b4aUGmn9jflth65g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJel/RxCRA9TVsSAnZWagAACksP/0o8EqJ+EvTjYHfw8ZXO\nyhaTts4XWVIbThrl6Bdzg8x4Ss5bsell0cbuisH/jzkZne7zH8oKsboVXWko\nnzbHBABjWqXLlfBjivU+iq69RVD9oecPxvhT3ZQ/UwAISJ64aXGT+6wEiIGt\nGgcWKf/LIKhao3qRdeg6niVe03YK3+xM+0ubPpqqImkBepA0sF7iXr0o+sMA\nLg1qoIA6rwznVFyX5q1qV/Xaj74GRNwbL5RK5pZ7RsjkcEEO1X9GvFoQeg7S\n29JBU4IiX9Kr0jPPEmVOXwbINs/LDCIO3kQhKbOLqkRpTnNVUtenc0qvbf41\nBzofWoLIf+3RP9wQRZWFtFVOd47LkRMOjnhARgEuu33GdNIlLtBz9AfDvI/d\nKExk9pBShUUyHiVwh3aqWppdlzHiUpOiVV/IiezPRxQTX++JHXf5mMoo/x5A\najsII6crsiyeU5urj3K5+FsIFpAmTOT0fXo9TbxXSVTpzt5kKl0qqyCLhMfJ\nSX8T1jd3WAD0OAzlx6Y4m1k4bZa+z+cSPkBHoRyBuX2KgvK400J3bd7UnVXw\nCuYCg2EgbkLPBkUFP0RT34xjWWVmUECvUhAh3Kuh3Pe3YBD1cgnxRhMPgqRc\nLzsD3cDUuSS4Ug6KQieEk77+gvfpXO+wl00TXJX5UdvJ7lZFfFuSFB3Y7uyC\nS3pV\r\n=4NzE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"20bba7dcc3290528bf225184ac976a3b486ccc00","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.490fbdc09.0","@material/base":"6.0.0-canary.490fbdc09.0","@material/shape":"6.0.0-canary.490fbdc09.0","@material/theme":"6.0.0-canary.490fbdc09.0","@material/ripple":"6.0.0-canary.490fbdc09.0","@material/animation":"6.0.0-canary.490fbdc09.0","@material/elevation":"6.0.0-canary.490fbdc09.0","@material/typography":"6.0.0-canary.490fbdc09.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.490fbdc09.0_1587016817414_0.36504410041411517","host":"s3://npm-registry-packages"}},"6.0.0-canary.f838c6e55.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.f838c6e55.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.f838c6e55.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9843fcad83eb38bd207e6de71af71dfb561dacd1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.f838c6e55.0.tgz","fileCount":45,"integrity":"sha512-8bJOo76ddl06mcPkIAn/fKT2xigjrN0Avh97ukxciBle+yZ0SJl2LT+icnsnj+2kQYJK81bTFt1rBN9jH9iy6w==","signatures":[{"sig":"MEYCIQCkMHV3vGSYVMHlGy4r6PqAubS+QqxGX0XKvvhzE+OA2QIhAJ1yMiQalCDXjfaO9jjFStjvfX7+IVg92B5asH5ctsQV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemGtGCRA9TVsSAnZWagAAkuMQAIwOfXxXsa3/o49VmKXi\nq2VOLtdQGec7vmxTEqI8LDuOiVsZeMy482zFwQDNmX/ciK4bVPwbbjQSmSQ3\naGL0b/pjG5aPTJfiyJtal/LOxpncgQyPt6jT3NYpIiWfMbJjl5Wp4CCtGCSz\npD7FluOMf6h5yy3ls+/6XjwyDkdgNd6uubvfvJRqQKUJ+Nkv86WCrBQgeC6E\ncJrA8xr+BMFS0gXYdNGGNq+dtV5t3cdfPpP4qZaXe+4Hw4hTalwxfyQ4oJc3\ncmg9h6KzSSwhdasdOdrCgIbXe9dc2EnkC28X2ktKqPyYqFz21TCB9paO/W6c\nGOpx6fzmY+QjGHc7k2BvmHj/oyfOB96PdXiFbWXdp2zsYadsGUZQ8DZZSVaE\nhVN2Tg9sFwCweN1tOW2EelUKpLgMrJjcufEft0l6Vs4TgPKinsrtRL97L1Ty\n/0BNoHnmLto55u6oNr0NlEO1vaUL5X1GoSnljv/hEbBdmxIszzutyKYWyRbB\n55syT7tXDXrBxRsn9rDCoh8SC9Q+QzH/iPOJ7P4r1Qz9MCF3zugDW5zmqKSr\nTCefC5J9UHptzCQAvHFCC0igm6lhk/OCRuCgYG1sfTQL3r7rbPcJhv4TlYZS\n9tkyHHvTMdauvK4LHx0ayuClmK7YmNFV5tvIILfASetkt2ttkQBShLV8RHUA\nytpL\r\n=MHlq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\n<!--<div class=\"article__asset\">\n  <a class=\"article__asset-link\"\n     href=\"https://material-components.github.io/material-components-web-catalog/#/component/top-app-bar\">\n    <img src=\"{{ site.rootpath }}/images/mdc_web_screenshots/top-app-bar.png\"\n         width=\"494\" alt=\"Top App Bar screenshot\">\n  </a>\n</div>-->\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4088837a2a2d0b4af544090557a8266202e13a8c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.f838c6e55.0","@material/base":"6.0.0-canary.f838c6e55.0","@material/shape":"6.0.0-canary.f838c6e55.0","@material/theme":"6.0.0-canary.f838c6e55.0","@material/ripple":"6.0.0-canary.f838c6e55.0","@material/animation":"6.0.0-canary.f838c6e55.0","@material/elevation":"6.0.0-canary.f838c6e55.0","@material/typography":"6.0.0-canary.f838c6e55.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.f838c6e55.0_1587047237737_0.5840158506071531","host":"s3://npm-registry-packages"}},"6.0.0-canary.ce6cb7024.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.ce6cb7024.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.ce6cb7024.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"75f6fb090561064d115887daa2765af0a602186b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.ce6cb7024.0.tgz","fileCount":45,"integrity":"sha512-UyV3Sb1Cw2YI92ffOtBbWYeJAA1eSH14f4S6Zuj1rpOt3Z8Mes2aGsKZYPU1S9OKIC3dr3blEMUuIFE9XaI0tA==","signatures":[{"sig":"MEUCIHnVaA/MCQO4PN1lzysdlAE/Jtnm4TrqJ75vd6fhc4ndAiEA5kmbmXanK1AxVTcLJwm0EJYwQbH72qwkVXGTo2X9r5g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1080841,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemJO0CRA9TVsSAnZWagAAIKUP/j1yJOawADMZ0n6zImpZ\nwLW/Fb6vZ1HoMnOBLertxI7JO6m59ie4oGqXGeuJjWoAVOV0sN/TRkiK7iUZ\nmtPM5aDlvzcdURJbTJmznHratRZET9CWy1WUwjE5WqIcyQtZdvIzusQvJGBm\nsQhjUXTZDG3YyOIHi+eOR3aAt7xdwz7sfJQFD+5ZaY8bwiBBJGcKZ7OcKNrA\nvteKnWdgyhnc2SB8/jZP+tsHWohcDIQLdd8TIe00LQcSgrRFPrn4tvHhV3IG\nCpzqOlAZ5jJgelaS7+n+2C8Ni0dk4ibsNGuRa21Zz5Dcae4Gl3FO12OgBOAZ\nzViRRoQVqpvhmF8wOhKPMjVhDwlp6m58IZiIQU/VGHZGDOWzR1mcHWwjMJQG\nPfDLJeMvVWJ/LC6DE5U1m5h3vz5svT8dyr/TF9Vls+EBtoosFyCOnQ2Y5oQw\n+vSJ+hB90gLrHyqCsOUVG24gMFZK5JMiAdAcHXTYytGs5B2S2SafKQ5AfB+u\nuorkFkOhfq31gNfnw+eodVn37aj+oxZzo3TlgSL4Wdn9G5RpXFdJxTrDyros\naAM//bz6h99IcEw6O1R511jXW/XYxb1l3jkSfAFuI2ABEVBF3sjOMly6rIx8\neYuH2oI8hta8UpNwLQLktmP105dg0V2ZRMtt/GURLYN7Ja+1pYLcPnr4bB/t\nZv0P\r\n=fSJY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"50c11d42dccdf93592bf97e9211f34d95983996a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.ce6cb7024.0","@material/base":"6.0.0-canary.ce6cb7024.0","@material/shape":"6.0.0-canary.ce6cb7024.0","@material/theme":"6.0.0-canary.ce6cb7024.0","@material/ripple":"6.0.0-canary.ce6cb7024.0","@material/animation":"6.0.0-canary.ce6cb7024.0","@material/elevation":"6.0.0-canary.ce6cb7024.0","@material/typography":"6.0.0-canary.ce6cb7024.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.ce6cb7024.0_1587057587761_0.3790364584170032","host":"s3://npm-registry-packages"}},"6.0.0-canary.0ab62a65b.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.0ab62a65b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.0ab62a65b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e678705480bb409b7eec24cce514c865fb3e3208","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.0ab62a65b.0.tgz","fileCount":45,"integrity":"sha512-kQ7fvwl0eZPab4LwdCw+c/4DibPTirUODzPLErUNLxJfH8XHmkj2g50MvMRnu+26wGrBvF2GarzZf4GXomWE0g==","signatures":[{"sig":"MEUCIH40L2c6cCOHMou0JlYffGpJT2GObQmqLDu9o/wiKhLDAiEAkJDXEFeuDa2hroF+Aca5XHDasIaR8uTBV8PTj4BUnYU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1080841,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemKoKCRA9TVsSAnZWagAA7lcP/iNL5HFWkj6wGTIThI52\nKnWedZVlWjifA2xdA9gu+by+Ok0FyLbdOGsHpf5r9yvsUzFy1/zBXGxAOIi0\nSmBvPLNUZcNQcXLOt1cnWzo7KxBSu9mLx7ZhZm8SYZ62vLZHdhRrWRgmbpNJ\nE0VrpSyVGODkDYtlacycGTai9PDV/lfa+VIfttcbuTpYD93kBtnBNOGo4qVN\nQ6agf+cT7Scr46kVjSWla3E+F5DDjpvUp3lhSCPOzG3OPSW1zEi23u1DSaIH\nIACZm1BGZtcYhE8X+Jug04afiQSO7zcLRZAOGalkE1nuQvscJ8b0hqlI8IqR\nFCxjrwkpQukkrv370bP0FPqu62nacLNM4gNyW7pHZLM0Irfp1OrLKeDH0fMU\nY+i0tHyvUJsSUwPCxXBTDWs7LT5A2DNKhafUjlwYy/lsoClvoLQ+xcrPJYpk\np0yA4nECIvUndf09FXcZr6SLStVE9fKGnECTnjiE4MRznKqvPUqYkbJghgLg\nDTKtzAhqUOxk/dKp1ZZYtlnojDXANSYcZhFn2vkv+XyUbAOeMTjjgTfxDDhC\nhMP6oviBgK1Cp8Z/aiXQ8de5NNUaKpF8Lm8xraAFqlUFW4dGWiFsoz8YrixE\nuQfwuZRHwyHfNvjCnkgVbk0fadAFn0vHV1T3cxk/wbjKui5cXoCcQMZMoZvg\nXwVt\r\n=Xjcb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f8890ca1119e1fc3b197f172b8273c05b5fba35d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.0ab62a65b.0","@material/base":"6.0.0-canary.0ab62a65b.0","@material/shape":"6.0.0-canary.0ab62a65b.0","@material/theme":"6.0.0-canary.0ab62a65b.0","@material/ripple":"6.0.0-canary.0ab62a65b.0","@material/animation":"6.0.0-canary.0ab62a65b.0","@material/elevation":"6.0.0-canary.0ab62a65b.0","@material/typography":"6.0.0-canary.0ab62a65b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.0ab62a65b.0_1587063305735_0.40625797694270616","host":"s3://npm-registry-packages"}},"6.0.0-canary.ca61b656f.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.ca61b656f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.ca61b656f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bba7819b6b439011235346dbf8f6a9a3831d0f00","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.ca61b656f.0.tgz","fileCount":45,"integrity":"sha512-hPELJ0jGSVWsUzQBGiitY+QRtFIVdBImts2sWbmcf+La+70TCKUZXWvVr4aOzjx53fIZzNYFWJMiP3quw68r3g==","signatures":[{"sig":"MEUCIQDMtHPIEiX/NCbsrmA01Ec5Yi8ZJmv5a1+BnhRZktGxjQIgOL46WSLcuOWwBIAhOBnU2L0teYYtTRj46pzYWK4HLLQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1080841,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemLlpCRA9TVsSAnZWagAA8sUP/1TxUjGsLgBpwql+qPNF\nBhGeXXtdHiK/vr6eNeErR7nYn48/8aqFHMNDWCTxw1BEdA1FSrj8hwvuS+it\n/apeYP20nYtdU1mVi+/uJ1Ie7Hd7OzrRswa6JEJ8oCnrH68Syfv5QbUTVSMX\ntFXht+wWP8ge8vpwaKie9BlMjbAqll+g1iWhpHHId3Vy9CN4zdmHXqoFGoX7\nAij0I8/ONQUTNQ6VQOXtCw61mk70fL9hl3hDq77IbtHHIj5q/dsEZzNGF6Fc\nJuj/4h4pzreMulYUfnOko1ByXaDJLm34mvPmPxvs/I03bLHW3jQlbUtUSkm+\n74A21P8fEUuKCnCPtDD0+rurB3FLPWMXKOyN/zxOMj7Bn1xdEdBDd+66npY1\ntsXSMWCsd95htJlNtt0lwhxB9we2XjLiZNw3bR/VnNWetU0gPl3sLxjnJGT3\nBuJS7tX8EnqPGGu3aQzvuCZXaeruL9mvn2FHa2SSg7w8bXZU1lZZkxa8CbXQ\nZXsbzvXYWyw45lQesVVSETa1kPX5aYoA6szR6dm4fkP4Ov02quBlWUgDB6rf\n9fJ3mStr4Js+2LkNX4bXMTvafIDR+32h9vr2SKee1s62TBGXycZzfOF1f/Sq\nVM8bH6fFxztnH1RUMj8vKnSVgd0utKgEUix1jzOsNdgadfjHyJ0rJKU8xAGu\noTdR\r\n=pO8E\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"967c93bd4843f43b3821bebc6113ab9c73533ac0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.ca61b656f.0","@material/base":"6.0.0-canary.ca61b656f.0","@material/shape":"6.0.0-canary.ca61b656f.0","@material/theme":"6.0.0-canary.ca61b656f.0","@material/ripple":"6.0.0-canary.ca61b656f.0","@material/animation":"6.0.0-canary.ca61b656f.0","@material/elevation":"6.0.0-canary.ca61b656f.0","@material/typography":"6.0.0-canary.ca61b656f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.ca61b656f.0_1587067240551_0.8979131267548639","host":"s3://npm-registry-packages"}},"6.0.0-canary.45a6615e3.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.45a6615e3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.45a6615e3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0ee710a2312562d3c3453d9a7887d0d509f3d5bd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.45a6615e3.0.tgz","fileCount":45,"integrity":"sha512-+iQC6HqZeiY5Jghv2FQ9qCiGMI7u/cCQQPsWfpMPo/aJlHAIceXfFXwsuQtopjMU60Vd3WYhFnZYEnP9npKDXg==","signatures":[{"sig":"MEUCIQDmgpafeMdgqTB46SqEgSTT4PfzOUKvkTTzuRk3CszRvwIgcRiilQCSBSolgsbU166K94TKEH60MycGgYiVzYU5Hd0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1080841,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemMEYCRA9TVsSAnZWagAAAjsP/1OOHdl2kreeHDXY0+Gz\nB4wTVAJB43WelpDFCOkZUIAId7dtcZ7uCtV9JKv4XiqRKiGdTn/yD+EbMzbX\nhN3u2aPcm7kksdYKnXF3uYO3B/GA4OR3HtpIIBpRrZi4+bObRRlwGYyOlJI3\nBBIU6LKX1Zt+TIs0Zd4CcqFfUJdh4hu5parisQaMhhbMIS8zTn34+CvqeS4K\neVjTFqMtrC3XMKRS2XCsPSYcbSb/Ndjsy8EvU/liaukFl8VucURcYl/kRCPR\nehVhlcxNnG1FppfHTNauZ/lPX0Ky2StB9G0Rvz9YN69VFUZ24XJiwHlH5C7H\np2Phg7ewDri5OZE27grK4Qkoy+FFaWctsc6RzQbenefYoS2js25if0L4QC1O\n4+bbmnq5H0BI89aFntEnQWvRGutPOgp3t9Pk2skhlopEgZSG3pfOCyG9cFDG\ntQ/Jo1T1OOdtBIhQQL9KAMOOBKhVh6N/NQ9/w4837P8TWa3nD78Bmy1WEfZ5\n9f95XZkQJoNWbcPlRBAsmpqc8nXOKIWDvZog+bIfiUY8xe/beeE8+wkcaBLa\nTaTiLdCjwr9JTX3oO/5lP5rJahDCp0RxJ0s1iZArHC1iwhiKCkLKbuWYxXhu\nwxrs477EzCpjb8QBMLLJgXMB275mSgk2YMayMK1EKGUyEBpjDqvbiqwZ9y2m\ni03J\r\n=g1q5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0ad3ae693731b43b2c055b2fd649a42e03abd2a5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.45a6615e3.0","@material/base":"6.0.0-canary.45a6615e3.0","@material/shape":"6.0.0-canary.45a6615e3.0","@material/theme":"6.0.0-canary.45a6615e3.0","@material/ripple":"6.0.0-canary.45a6615e3.0","@material/animation":"6.0.0-canary.45a6615e3.0","@material/elevation":"6.0.0-canary.45a6615e3.0","@material/typography":"6.0.0-canary.45a6615e3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.45a6615e3.0_1587069207349_0.661248305081606","host":"s3://npm-registry-packages"}},"6.0.0-canary.4b04cdb0f.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.4b04cdb0f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.4b04cdb0f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b8d1c43b32e3573f5579f69871e88163175e77e6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.4b04cdb0f.0.tgz","fileCount":45,"integrity":"sha512-U85gzv5QliKmf84HZCe3gPGisRDscZqVXxetvalIW7MUaNpSwoqZwckGRECyBrL12vpwRnb6JOLnKYxRE5/xyA==","signatures":[{"sig":"MEUCIGuTBZMf6TebkzCNGYOnIoysekl0Ho6UTbdBxd3KbGjPAiEA8g2OlgJpZb46Myhtz4Z2Ld2/glG0u7hxe4IWbJpjGqA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1080841,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemepkCRA9TVsSAnZWagAAVfIP/ijjM8wvNmlDJh7cZhRE\nLX9rvIpL8SCd3TK7vi2zTZ/O331JePzKjm51WZO/od8XEZ8SsH41b1utmems\nMldoYVOm1ieuTvuGTFXb8/gnZT6S7MzlUffza8av/xaP4EkdyNb0ftnoDPlz\nL0xx7DrrJRgHj/mEsxRHx5ZpJVWv6ssfMIpFlGCP8/bbWyTTLNZD1eNURTLe\nY269J3vQM510SC8i/r+Bh7Nvb4DN0HG576jVJYG+jSFwNCgYtW6U9tY+KmIE\nCOhNjO7xfbhHQRCmZm6GXpi0brhK1nGvDcMhLPq4ouZHuRX0rdSN2e/GbrKg\nh7/YV1jhi9BnhqN/DjRcYSCjyk7mLSzGJplaziwZoEckhgwnGqgMTa3466g3\nLigIK0u9yLWgSoNqKDcMDQ6y8yWEh7Ep5+WNj0bQBYVWo7DpJLVvHxwsrMQB\nIYhXcp6WES/gNCgdg8BVPcjwZvMfkp1Hvp8c08l2coOn7Am/evXOlJxGzDek\nu/Je+uVhS8ZL9HV8zRqydmVrCIf8Bu5Gf19AolrW3WHpIrXLnCsIN5Z/Sgg7\nT2wHern7bqzxgWqqJCUrG69QTMcFFhPbI8FpW6MIAwBUHzYUIa9wZbqkVYXx\nnkLPjB/XedVmEriN6qJvOcWYj0ahsgFC+pN/vO9c/ltr2MipgbHI27XIJ1uZ\nMtdv\r\n=aJTk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/top-app-bar\";\n@use \"@material/icon-button\";\n\n@include top-app-bar.core-styles;\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bedcd48d2eb94c37211fc93847852f5261655559","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.4b04cdb0f.0","@material/base":"6.0.0-canary.4b04cdb0f.0","@material/shape":"6.0.0-canary.4b04cdb0f.0","@material/theme":"6.0.0-canary.4b04cdb0f.0","@material/ripple":"6.0.0-canary.4b04cdb0f.0","@material/animation":"6.0.0-canary.4b04cdb0f.0","@material/elevation":"6.0.0-canary.4b04cdb0f.0","@material/typography":"6.0.0-canary.4b04cdb0f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.4b04cdb0f.0_1587145315880_0.3690603661357139","host":"s3://npm-registry-packages"}},"6.0.0-canary.b273afa93.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.b273afa93.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.b273afa93.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7b05654fadaeb9cefaa79182527c6a47a3323543","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.b273afa93.0.tgz","fileCount":45,"integrity":"sha512-bhMEOCVDN8o9a52/HjBVQZBJ0RmMLe2Z22IQ9OPOkCsmxTqk+dpqwnFg8OmwGjOtR90fm7l83vuNFOzVLejjAg==","signatures":[{"sig":"MEUCIAZjhdGH1LgX79gkFj/7CDlJGjnYdifgvNuc8/3J6ps+AiEA7RivKH/AJ0ZiI8QEpa/7u7VrCSEw686A3Fj37G1fgj0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1080823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemjXBCRA9TVsSAnZWagAA6gQP/2hOPxOLwPJ0n09hq+Uz\nQ7N5Hi9nFk8Aug5SDC9PWJKLK3GX/yHy1r5ISmNmKyJNz2qPdJsaPoDDpOSS\nqNzui6mHip+HUnaxK5E8eQPlEhs/sZD0uH3CNSGfdLThMjys9BMDsroGhI1R\nn2yRfy3swzErdeo3zh4ZYDq5AkThK6PU9p13bjbiQCQKytyBHcMsboR8ScnJ\nLb0QN1q/hU8FTgc/Y1SRSleFthfhxJbVRzMkjQ2SEHTbrSY4gXxDnQS4pfTh\n4UvxKIxY025hY0iOhk8oGNA/y6xaZtRtEwV+7e4qJKwrYsApR3JX/wCeYma1\n/f81rs2tBlcohOUlIGSRMNLvUX2+tSjzgrGztGeqsC4aZ7h6IRZv2XJDbpvJ\nqjPQHnn0NXQiD2z0D/TdMCHs61+YvKKi9EprXdomRAwDiZyezUl4cCW/RdPP\nBGNZisOxHRUNSTIKcX4baISBhZFS4FTziCRMjLSa2gAqxNvvvjEQZ1b2CL8W\ny0NfEbknVAbbat0YyAi9eowwgDCp+otRmXwSoYEDC6IR8hYdvuQzGxvfzfZj\nqlLRyAa3MqES71YVxaavWJdw2R9QZ64s6FE6WrMXfqgHkoI1RZj6PviCASjN\ntNlITGjf3YeHQ2798k+Qqh55H3sLRluYZ/uUcwFqrP9qS5biAFn9X1IIVoeO\nf81J\r\n=SWr2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"446d7bb0e65fdc3259b7b9025c6c058731ff02c6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.b273afa93.0","@material/base":"6.0.0-canary.b273afa93.0","@material/shape":"6.0.0-canary.b273afa93.0","@material/theme":"6.0.0-canary.b273afa93.0","@material/ripple":"6.0.0-canary.b273afa93.0","@material/animation":"6.0.0-canary.b273afa93.0","@material/elevation":"6.0.0-canary.b273afa93.0","@material/typography":"6.0.0-canary.b273afa93.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.b273afa93.0_1587164608933_0.43951358133044205","host":"s3://npm-registry-packages"}},"6.0.0-canary.b70bc601e.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.b70bc601e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.b70bc601e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ea18d37f35b6f03951c93b424a0a33c1bce046c5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.b70bc601e.0.tgz","fileCount":45,"integrity":"sha512-hsPbG2yEA+Yid/KU7mAqMc4VbX/kTx0VmnrUR97YZ6T/KW7GyPKjajRK2Wxxu5VnBEmv7862anBCE6Que4OjEA==","signatures":[{"sig":"MEYCIQCUkDRdtpeKL/jNQnIN9LSjlwFvE6Yrdf+LHSluVdlHKAIhAJrgKgSL89XDFhuZUpQPr8knFvyaVRhM9+G3eN0pja/V","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemjocCRA9TVsSAnZWagAAx4EQAIzB3sFqmQQasjTwJFWe\n/2uYAPrM5yurMkr1BSrJlHCqKg/iWnjHDhsxwKEHw0IlLstXDwNeVgpGdiRY\nHMBH8QaX7S2H9nDHtavxYtygGxSAWnrZa+06wEuhDAWbbfWMkdnxrrVkNdvt\n7khMXFBofVAkS7pr+8X5IuPnmQknO2vAf+0tKPwABCSBdVDpp2+DbCe8GQtx\nRioGR1AvtaSEpvJOJfmCzMvLMNPvRtDgf7b5JHyUkGiLQmdzJj8UNwtDYca5\nAk2j1bPB1A2BpwqdiA4gCM3wVMslthhE/q7zqD7i7gbdlcI3BwMo0qCTOUJF\neqnzWap4yWk8W5ZpiiZ90bBY/mlPGg2WiQ28sSOB7YuO2ypW+ZKqwAOoy0QV\nPgxftpRp4qQyK/M+7NqDLM60s8H98bR3n4/P+MS+8rIWBh4KDlZUO5aSQMrb\nmPoAb4YbP7mf7TcAJcvA2Cj5wF4rECrnU2396zb3aB941vz6FpCFOWGx1kAU\nq/hS37JSHlqZJBjoMiQij6ljprXw9I9yyrVeZn2XZsMxcrjRqimkPnZNLlcJ\nzJsbA40CXe7IifX/UxPZtYhLi1jiYnrccriVEjVuNeOQ95kbu7GWQ+Dez7/6\nfd3HR1EJ3kzsRWu+SGOFIen/PUPL3FrYPAHhDWVoHv+cx8hB4W5GMlGe86AY\nSy1R\r\n=yWIf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"90c3468e59a65aab424bb59d4e91a4d522fca3d3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.b70bc601e.0","@material/base":"6.0.0-canary.b70bc601e.0","@material/shape":"6.0.0-canary.b70bc601e.0","@material/theme":"6.0.0-canary.b70bc601e.0","@material/ripple":"6.0.0-canary.b70bc601e.0","@material/animation":"6.0.0-canary.b70bc601e.0","@material/elevation":"6.0.0-canary.b70bc601e.0","@material/typography":"6.0.0-canary.b70bc601e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.b70bc601e.0_1587165724143_0.672627329569554","host":"s3://npm-registry-packages"}},"6.0.0-canary.c4b4bba96.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.c4b4bba96.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.c4b4bba96.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2b840026a1e444ee1ccfb1fabc6aeb2f56acb0d0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.c4b4bba96.0.tgz","fileCount":45,"integrity":"sha512-iNN1ZJWf0LmkQbEgiLskgw+0RUXPxunEke8s4kxefgvDWs/M7B8u6fFxOZXuI6Xluouak5yGcSaIo/Dv5RfFVA==","signatures":[{"sig":"MEYCIQDpYOAe/mLdtD4T96sUeb7TfLq5LdMtAMazH3UKfG8tuQIhAJzx17O8N+HmKtRQ+FDrDyyJzM3oD5wcGWirmkHbIUia","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemkdXCRA9TVsSAnZWagAAa9sP/ArjY0tdsRPxkTOEpd1d\n0aaUcDa1+TC6IM4D+bwU79hSgD+NqxwQikSKEzoZstrZgwfX8zglOYqaAJfE\nTQ+dVJmstM2S8Duc14i9niQwOUqBHG7f46uVAolU6JDWvLz3B0IAeGPnsNsY\npa4V6dEnEsPT9TNn8Hra1Yafhs3GBsHsoO2dMCFdFiKrJh0TP/1/f3ajw5jf\nlLwlvP3QzxN0hThsSZXovdSy2KskoLYHsRfyR2CtE+iP9DUk7Via4ghWWt4m\nLlFxUyKnK9wjCly0cty3OynxM0Uqud4hpTjBf9KvSfRau/nKn8iJ4yVdqOOT\nVXnkNoAHutyN122yv3BOt0TODzT8CJdxOmlzRSCoCGKeVppC914Ek9b4i0Di\nrMYfv7QD0V+Ry1C5ROFYwO6pp64bkpauiWD1sDxXfw0wreMe1PMlF8e/hV8g\nwYMpqFMJiapgHM56DkSgeBuJB9DlW9NE5aFueMQ7TU48kQiGq3i0O/2fNmgr\nO/gxX1jtbthClxEyCrUIxXF8iO3IcfRsVkWho6agWIy+r1mH0gIWmbIFIZeM\nFhZr9YTu2gt1iV59CmndmzmIKyup+0TJJCGj2ugdJIww5F2zZMgcTJY1CfjW\nELrDkN2fVJpgoAz/abPDlIgMyhzs086/fm4FZirNSilSo5ytLAjDwtwIErGO\neBWX\r\n=anyk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ee02a718dbd2e86f9ea056b6199c1664c5abe70c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.c4b4bba96.0","@material/base":"6.0.0-canary.c4b4bba96.0","@material/shape":"6.0.0-canary.c4b4bba96.0","@material/theme":"6.0.0-canary.c4b4bba96.0","@material/ripple":"6.0.0-canary.c4b4bba96.0","@material/animation":"6.0.0-canary.c4b4bba96.0","@material/elevation":"6.0.0-canary.c4b4bba96.0","@material/typography":"6.0.0-canary.c4b4bba96.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.c4b4bba96.0_1587169110769_0.04145047812199154","host":"s3://npm-registry-packages"}},"6.0.0-canary.6c1ebc721.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.6c1ebc721.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.6c1ebc721.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ff778489476bd14dd965c87390f01dfd43a0e494","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.6c1ebc721.0.tgz","fileCount":45,"integrity":"sha512-crRPJqa75dU0kcevuByHZVw9209D5xO1LpiBSUy9JBOb6GI8/sVO9b+YirK02opzkYZb3FE8swAB6ZVZH3gF9w==","signatures":[{"sig":"MEYCIQDnxSOMxlEHrA8ssc6lVR1yKisJ+NuzWIB5+sStnZPuygIhAPP2QAJQFo71J4s55bsYfFThESz5KgLC6hpxL6o1di/3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJenf8ECRA9TVsSAnZWagAAnyIP/i7Ie/xLEo0zFf93pnC8\n89Wlo2mdjuJkK2p+JDXWUCJgoSCs5z3i99J5npYtTx+iFPh4E0anTn/U6DgE\naIBm3Z2tBU8+1r1fY5vZx5iDFoA4dOvlYSAjlK0TDrTel5MXeB7QNjuNS6ls\ne/30/MIXeBZUL4RYnfI+nODCC8zLcKvlU5Ju/RG23bMSw7XII/MUgbL2lARD\n5uDTx/93QgfjdSkvBnIjnC5BIZR/FVXHUp5KQXaJ7xVG/FeeoQd/too0OBGZ\ndabay0jD0Fsss4o3DfknCVe4PmXK/Zy1J1mVm/q72t+F1YJEKjEDn727we8s\n+tOXRnB++qTnjIdS8tkmBy5ma8+ez+T9AToiytBdUut7MgrEnQ2EH/SKU40h\nEAjFbpWe8fAzqvbTYRevp9rYcg4EgdWxbWN+17w9QDcyaYXw+s3QZPoJWCcv\nGqhUZs4WwblKdy/c7auuDklmdafSMPyQ46zQd9J2HqmrEjSnkHMNVhtBx9UR\nr7URmJ1ShiL2Qi2b14n81tMBPuOMteigiB2fHaiGqTP9SYJtkGyngdLbYviU\nSf1b2k6H6QirbogITjnnMSdAC++9/kGv8jBybLqiPycYWKJIj+mHh04RHPNY\nqew7B5uV2CCD6gkcDIojjk+Z6YnI1sEOPZVEIfPlWStn9MszFhL2tHPIzBN2\niyY8\r\n=b4HT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b1a71b1e525edb460d6fa48e392b09267db9d2a5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.6c1ebc721.0","@material/base":"6.0.0-canary.6c1ebc721.0","@material/shape":"6.0.0-canary.6c1ebc721.0","@material/theme":"6.0.0-canary.6c1ebc721.0","@material/ripple":"6.0.0-canary.6c1ebc721.0","@material/animation":"6.0.0-canary.6c1ebc721.0","@material/elevation":"6.0.0-canary.6c1ebc721.0","@material/typography":"6.0.0-canary.6c1ebc721.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.6c1ebc721.0_1587412739890_0.9702906200865924","host":"s3://npm-registry-packages"}},"6.0.0-canary.9cff4318f.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.9cff4318f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.9cff4318f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6aa5f9717873362e2c457acba65e89fabcbc8fd5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.9cff4318f.0.tgz","fileCount":45,"integrity":"sha512-5Qbo91QtGGNv9lHMUWgSGNBrTbiwXhGAdSBx4NUxXnvvxAgvHEQKTSEHpn84Zjq9l3d75TY3TopkE2HHPTOPjQ==","signatures":[{"sig":"MEUCIB9J7T5SoioHF93mtvSjrfrFEBwV+iLcfzYANw/hHsMzAiEA6T/uMPg/Sm//c2vNb9VFJkZiiEwyDumMyfNLNIN7IwA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJengyHCRA9TVsSAnZWagAAVDEP/3Pma/1kQHVv9ZaaH5Ex\ndc2Kv0uc+hOr7+MXDtwfj+qHT9Pgp5UxeutCkB/J4SN4wha1i49VdWHC93/X\nO0gEOn3VQ1xiHyeFG7NTwe47BiMUu0guAaT+1hRJFekJ4aMdYfgusm63LEBL\ni8v6Tpjcs+1voy7zWvgYmJThguR7qOOkFihOJB6gIwPhUTRJWa9pueJex2OI\ncFQarwz5Yf8GpsfyDpB7gbLbcW5x8CqQxV2fYxojqrk1wFieIUazdTw2amyd\nQgoVo8m7+dLBAypHiqogiFFHF6748rVi7zo54s3iNJr8Vii3QeK0vLakC56x\nczM10gIobGd+OCqltOLjZ5rQCg2Ql6Z7CMRvHK4kwSLBIKVVijf4TVJVdWTh\neRF9n9B5PgrbWL2BU2xduGMaUwzjaPm6Tc1QjBU5/CM9nkMr1CGPKzItZOIa\nvCT3pLkxo+EfNcgis37ehgwnZAHssMJdA9+wFeB6KWflYo4LYZxs8lGZ1MT9\nnQ8DRdwyPFD3l9w+/4iH3eKhy5VlFK/yj+tF6vBVnioU1eMddtXMlgn+tILB\nOc+4fru9z+PL6j2k4CPg4xUe8Ubqs+TUfXvwg7/HquHKc4nW0LRrtV8iDm2o\nUMAAQ9CmvnUk5W/3gb72PD1gSM66cNCFJWKNuivPfR5OtPv+0G+Sn7A+dKlI\nwYu+\r\n=TWl1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0ff1f177754c259b5b0021494616e96f7b6e0d8d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.9cff4318f.0","@material/base":"6.0.0-canary.9cff4318f.0","@material/shape":"6.0.0-canary.9cff4318f.0","@material/theme":"6.0.0-canary.9cff4318f.0","@material/ripple":"6.0.0-canary.9cff4318f.0","@material/animation":"6.0.0-canary.9cff4318f.0","@material/elevation":"6.0.0-canary.9cff4318f.0","@material/typography":"6.0.0-canary.9cff4318f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.9cff4318f.0_1587416199143_0.7981302953636036","host":"s3://npm-registry-packages"}},"6.0.0-canary.7b4482402.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.7b4482402.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.7b4482402.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"55cf7b91a0bbe908c9e46d3361b44d183c10822f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.7b4482402.0.tgz","fileCount":45,"integrity":"sha512-aULd/7hTMAb4uCPPqY5NOCjfARHk+QvqDooV4NDxhLmBUDIGkzfBmZsAmMO8J7yl0HjRS4DMpGaRlV9cqL/NsA==","signatures":[{"sig":"MEUCIQCNwAIE4Se2stuk8sc0DvsC6QBdUq+NQululC3CgNQVAgIgcu6PsbXeA76z0qMUfW9Ozk3T7Fp2uyAa1z1L9loXU3A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeniBGCRA9TVsSAnZWagAArqwQAIJ8GwGwl0CNkbk0faRT\nZ/uReBTFxTmLTCnRvXcaVTq5c2Fm6n0J3XTbHfUkzIyMwQb2OLX+mpTMaa4l\n4HIFlkINUM34HYA1I1QcYVJxDVoAF1Wv25We2faZqA98GIpGpAxonbd+wrJe\n682GJiqHrZiksM5uc18TnvAml9FINr1cLkwzjQy9HsIbLF1WngvEJcxWxw4j\nwbZmQ1wePReQpFws/fak8mmShWeojyX+Y5wi74eX/pvYH7q60osq4u+PvYOY\naWlf1FzoLATq+IJhoT13X8aqM/5cmiIZr/L9JmCyziAwzXMgVhiNfUKS9Jyr\nP19clrdkl4AE/0q450tnquU234mbYfBBtsWwdnUe3pBTtiEw59c+BCphOmRn\nHpcqz7t7hWR1hZMIWFupI6bXA2FsZccnMw7PtTdLRrBdUXki/GgTsBeopYC4\nV5edLNEtqEDjyXujlMcGl2cvR1OiV6aNIV773ojnv0dFTg4SI5qHtvEsmgjJ\nPR+IgKCqVF6cDPottix69RwWZ3BdLHFOWetN1cHt1Im/3P1/utv6roei9cpQ\n15SgDDu/YxPxsjwtEKQcllskYCwviwP7UYNGFCtRvbYgmOD+bv8ujodnuz0l\nlRNiJCPdvk5Gt72Ji4Rd5PobgQwL7pfvwn21l0a9gP4Z+1ooXSHiW2UzVGx+\nXUm7\r\n=D9aT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c25f7586d29e2c5a6d3c289197d47b826d499cdf","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.7b4482402.0","@material/base":"6.0.0-canary.7b4482402.0","@material/shape":"6.0.0-canary.7b4482402.0","@material/theme":"6.0.0-canary.7b4482402.0","@material/ripple":"6.0.0-canary.7b4482402.0","@material/animation":"6.0.0-canary.7b4482402.0","@material/elevation":"6.0.0-canary.7b4482402.0","@material/typography":"6.0.0-canary.7b4482402.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.7b4482402.0_1587421253455_0.7148689980607201","host":"s3://npm-registry-packages"}},"6.0.0-canary.deda86d8c.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.deda86d8c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.deda86d8c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ada33ed67c970c7af850e25cab1abf5fde3da9dc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.deda86d8c.0.tgz","fileCount":45,"integrity":"sha512-N/l+wIlJWfFIi9ovY0GCsEWYJpIhdsqH5jXFyA1IzIZPbhpBA/8WsNCswbYlSttSjxE8vhtL72H7fqwaV86OyQ==","signatures":[{"sig":"MEUCIE3HVodt6kou0K2/jRN7BnGoqogsoXCXVnVjeu6lhZQVAiEAwL169pp0iYwbxu12fBfDxbcCyBXcdvHkhRIu+RCop6s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJenkkzCRA9TVsSAnZWagAAqSQP+wddXo0egWDwug4ArP0H\ncJ/8HgQEoiQ2jJMN7SHtC6NQIpUqsY90C0XgGxAed3auPBKlf2LvNVUfo2aA\nnYZME4xnSfxM5PZ8LBmZB5Fq2HZ66wmk5QiC8kGNxP9B+JBlImjjoWMfbIoq\nAw2n5gvjmEJKsNdYGL3ElDjLO/ZSl+s5tDsFzbkNZwCFjhUDhi9qOEygxiX2\ndLuqeslxpmMHHND6J/PcX9fCcIB67Tq6h5H2zCvgS4atCGVbW+OhO2Bc+StG\noypE1K872Ap15cHvtyD6eSvGqZ9TvnYsvzOaZy+imJ0AGLx0JUE3BEx+rkXI\naAuK/bGMkJm5tbTqY2evIxgieYbt/ylv0V9pI2uyyNVkm3a0xE6VNBfzsLF9\nOd1o0SB2OVyNtGGnsDbpQAlINVtTZuYiOl7Ls0RGerV76UDYpLWrSVmhp2Lj\nocBCXCzxKUarJms4noKkBx91uWw50XE3N6gpTxRrbO8lJsFVL/Nplpzouhf2\nX/7JDRnNFRcsQM1mDtnSD8Js8IiKFTXdtdqNEggnb1qfOIoyTBJiV2BgOwwf\nrQ5J02mhmvb3oMpE2RDBbcnoDKYLJZCWlSaXHPhcuAvSeqYwx81SMzkwJkhY\nYagcTH1rrHQhHMS/0M00dfFGIsfyjGi6RnHpt8jgAjhcFOJcOGu/R9l1cSB+\ntJFK\r\n=6msu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7bea6ac56136246274e77c281cf8c66e2ef3e6ca","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.deda86d8c.0","@material/base":"6.0.0-canary.deda86d8c.0","@material/shape":"6.0.0-canary.deda86d8c.0","@material/theme":"6.0.0-canary.deda86d8c.0","@material/ripple":"6.0.0-canary.deda86d8c.0","@material/animation":"6.0.0-canary.deda86d8c.0","@material/elevation":"6.0.0-canary.deda86d8c.0","@material/typography":"6.0.0-canary.deda86d8c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.deda86d8c.0_1587431731375_0.36205645534726716","host":"s3://npm-registry-packages"}},"6.0.0-canary.d10412cb2.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.d10412cb2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.d10412cb2.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5af4cc5463b7d911723cef3d6f662f92d71ee3f6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.d10412cb2.0.tgz","fileCount":45,"integrity":"sha512-2ZVEjkuNBLRuLadXW+p80eB06PYynUTCzG+pnab6XSDnL73NIyBrj9Xo06X2odAkXnCcqHA9k/ZUciyRaJCTRQ==","signatures":[{"sig":"MEYCIQCwZ0DFjCIitIrC0npU4rBeXWx0TPbXNUZBHT+51rQsWAIhAMHvytdCz131GNtj/OvnClc9hpOpsBS9b7VZuCYEUu4a","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJenzkcCRA9TVsSAnZWagAAtG0P/j/7j3AS2b8XDEVjpHSn\nMVGwxWWJkypdpCLkQK5nnQnBk2OiD6PLsfTOLclw8tRuzOI2jqqvyXOfMWmv\n2nkG1OC3zrr6s0myGWzdOD7uVQLLVBg/SAp7N05qyRFrEFJhlNxh7hWU6F+J\n+nWPkMJcnMzVsS5Kl4+1q/i4nS1wuA8cUX9PDKNIncfOC1BoFObNOlsD0YU8\nWYA8gQnyFRfSqxbIED9Vs86q154VVDe2QWudwcGAc1abA9ZQzNns9s8Bvtc/\nLQtHW4W7r5EN1fYQ2Y8+evgneyfk6mP/Id+BVycl/pyHvRc6AGMFLwG+5qVx\n9Bn/zjdIWnrAGxaUCALMGdVEbUwINgbq+2YFmD5GR2gv8Ws5lp4DVQ+NRj2C\nRFZAMDpaqfe4auH/VY/2Bh0sJ78BrzsZ9+JH5jUvtUhAo1pElat44rfmg99S\nZ8LwoG9XPhXbuW6HIijnzBIh9820HWwNnX0eh/bd1DitqmMYyk0qnr82/Ynw\nSOJvEcFH5/NQ9dRMMIDZilHZxubKoHy+vSL8XcHleLFUUqx3OgiOBlxE6Vwk\ni1RYKlFN2DarDAIv248HIPTlcWu3ZoRbgqcGie2/qhkjGza8j0137+tLKBbw\nrDX/cZHaDas0THSLAQxTMQvWHtuIWI6VlTY8JbLB25IsgOsR5fmJ939lFvMm\nhHFm\r\n=3zUJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a2946b5762e597bce2d8e4e72f321bf4934e4543","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.d10412cb2.0","@material/base":"6.0.0-canary.d10412cb2.0","@material/shape":"6.0.0-canary.d10412cb2.0","@material/theme":"6.0.0-canary.d10412cb2.0","@material/ripple":"6.0.0-canary.d10412cb2.0","@material/animation":"6.0.0-canary.d10412cb2.0","@material/elevation":"6.0.0-canary.d10412cb2.0","@material/typography":"6.0.0-canary.d10412cb2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.d10412cb2.0_1587493148356_0.8568678094054314","host":"s3://npm-registry-packages"}},"6.0.0-canary.c141801d5.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.c141801d5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.c141801d5.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ad398e08089708eb47f4903a30904239f3c36a96","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.c141801d5.0.tgz","fileCount":45,"integrity":"sha512-LeMFkwZbXeKcBFH2gwk3LNvwmL9dmelF5BzG5iwfAPBaaFFIkuDHAlLbMvbapuZPTR9H6UEu9orspZDuv0FouA==","signatures":[{"sig":"MEYCIQCf4WoPPCrwzP/hgJ0z5eBW1d+JTx+o/TEb2QzV7lQgrwIhAJk6TJvdnyGSWFuKx2DJtWlFs16ZcpPCjQUXbN439A8Y","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJen0yyCRA9TVsSAnZWagAA0wwP+QE7zcv9qJ3YYBjlnMiM\nJEjAgkGWH6ypp3PCatlLbVlgMgi6+yP9MYDBDgqDpcCQAg1I73WbooXuY74q\n0VskIy8iLrfTqRzr5boh7XqPwCIlp0QaRoWXCeKNY1vOK9oBQRW7kQ+dw53V\ncPR7eqy29hy2RZrW6kFOW0RTUartBS3SGW+r1kcH8wVEB/e2S/60mhw8fiR7\n+RIV1aId1O+fEb4XtTESAHB+smv45gNygoQq929x9fvA+bOqnwg0TuD/n/80\ntpIEPlDV8yKa7ZdT++vS9AkMjMI98PEy+LbhZYIQ/KWy5GDN6rFuz5EP0n2I\nfHiEI9p8n0QeCF/3j7MVFgUD7/gxoTNJV5tPEEs9DngkjKs/AS87vDjuplF5\ndq9miqxeXyrLnB26D95RO5trFo4TaXISr85SnMcXtPzj01xMiNji1/FdDidM\nEGNtcNzXyBkkhk2G8vK0dbekptVOnwEsT1KBLUtiWExGKOEOoSk1bNtQ4+ny\nRyRdyCzhdRQiqVNU6FkAoI8ZxkRhOPxXkbGsun7uPA7ZWV9KLtNURUveTrYL\nYWBbDSe4D7eNLDDOXkaaHcL9bpCNBlS0mQsdqrGKq9iDvVqjxrBbHZpABfIN\nzxS5mbZU++t7xJDGoPNDkQ6o9qGJYmmfK//88/eWZEzsNncGYQkw1gTmjhxG\nRrkW\r\n=bVgs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d026173e9bf7440b69f1e3e7e4c1bd60dc5ce6b5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.c141801d5.0","@material/base":"6.0.0-canary.c141801d5.0","@material/shape":"6.0.0-canary.c141801d5.0","@material/theme":"6.0.0-canary.c141801d5.0","@material/ripple":"6.0.0-canary.c141801d5.0","@material/animation":"6.0.0-canary.c141801d5.0","@material/elevation":"6.0.0-canary.c141801d5.0","@material/typography":"6.0.0-canary.c141801d5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.c141801d5.0_1587498161470_0.425491472839848","host":"s3://npm-registry-packages"}},"6.0.0-canary.28d10a96e.0":{"name":"@material/top-app-bar","version":"6.0.0-canary.28d10a96e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0-canary.28d10a96e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0bb54f7ca3a0a72a8c0c44802cb7dd7175edf0de","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0-canary.28d10a96e.0.tgz","fileCount":45,"integrity":"sha512-yK5J6DrVj89gG9t7ji8QWBLkpw3kBGfbzK7xjCPiU7kkwrnuEnAQeQ0s3vpzpeWyYL7t9Q/dszmDomvqmGKYSw==","signatures":[{"sig":"MEQCIDmOzReihkGD1iu8lyzhnddPqJ5PVbQYJlg1/545ea9OAiBruv7h9L4fFEsd0AQAqDNX+zaBpt/xgwZ37iyg5/ScGQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoMA7CRA9TVsSAnZWagAAQfwP/jLtB7N8tYTHd+sOKL/C\nDGLfJ/K91Xl09LfnI7f1UrduXA4FHuupGuvxSoDZ39AC6dNz+z7yIYFYAfae\nNob3k9198uloS7hVqA+c5jFfr5x1B8RyqpGbKpiLOACQzeAg7qMfVeu6FciS\niJ0ZuSnrxn4fzdQBeCX4yIfaqCWkfAk1MlmEwvHFfWoJKbiWPeM3t3F/IrSQ\nGw8J8prSLhKAY4Wf0YvgBSD6XcVrQCgFbL4QsE4LLn0A2EkPYhm7kyj5SpsW\nmOQHN2UnJrcMs7Sr3wzmA2/5jZQM0XqcCQAX0p7OIV6pRGpOr8EiYoWGBCb5\nBpFS/U3+7kqTA0lXSJ6w2JSbnfXSoisD1ZvkBMLWzBRIGTl5+QdaNl4L4+KQ\n3qchDKQPQv0HtLUB8AdFxT6StgosZkXhoRsQFKGDDGxzYw3YrTIiys9L6Jcf\nbkYtSOjZcFxmeTrWqS/pfZ6guRPZe3968qn/W5d2dbcVV2Rdrxd8pILn6IVu\ncrEfcN3Q8nNexVHbi/tcIN208rabdOMb0xxBmXY7TeNiMZy/LkfoYV1azW9j\nMdts4KSVgZ9+8wRXrNTFAk5elKs4edS/G1xmFSxbSpR1PzE6XyPYNs2gqJJL\nbdB6elGuW+qvefEdLE8mbMk4H7QZhtXByVjfTg1hGUTz6AIxp6xud/qAxrwZ\ndo/x\r\n=9RtV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"20feb77e4dc8d7c73f3549e0dfea4b381106b061","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"6.0.0-canary.28d10a96e.0","@material/base":"6.0.0-canary.28d10a96e.0","@material/shape":"6.0.0-canary.28d10a96e.0","@material/theme":"6.0.0-canary.28d10a96e.0","@material/ripple":"6.0.0-canary.28d10a96e.0","@material/animation":"6.0.0-canary.28d10a96e.0","@material/elevation":"6.0.0-canary.28d10a96e.0","@material/typography":"6.0.0-canary.28d10a96e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0-canary.28d10a96e.0_1587593275288_0.4800013835359602","host":"s3://npm-registry-packages"}},"7.0.0-canary.8540808be.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.8540808be.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.8540808be.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f439f8e00fa7abcbcd1cd2ff2e4b4cf0751bb4b8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.8540808be.0.tgz","fileCount":45,"integrity":"sha512-CjFKtrtDorxmclzUGC2BznBoDPRqZ3ASiWJiE49kmP2oolJmLswLfMFuJlXm3fQFLWuCHqDT8yO+Pisyq+B9fw==","signatures":[{"sig":"MEUCIAKoQjK3tSXnXgJDPo43L6P3RYyQcROSTS8ku+lDIGqbAiEAmfHln+2RSs0pBGwv8s/f9HPD1aAfEREYICQ58DlUVr0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoc/RCRA9TVsSAnZWagAAAkoP/0qkf5GdnHrE0LEzEcEm\nRODrn1UeFGEdZquhoXdBJTsyq/9M7AhTjebqBXpBkUfKqENsKPQcibh1zDiV\nXaawMERzENBfVyxC8SaNggvwZSXtsK8BKAshHByj3HHff30wx5HCaDjQhGpx\nCOfskoRyF9Q0orP0YrQDpcEKGCV4kr5GoarATkMftUq1dlXLgpQQU0FY/6se\nmuVCsmzApylLvC4Kwy86CDvtraQaWJYg7RqP+0+e/5bJ397voSw+LCenKUyv\nM5OgIGmvkbVN6mpgYJ8BsCwvqcauCPEbNDlTXubRnBsZgwx5doSM9YDR262O\n4es6hfRsWksfEoybFTNDAM5MTxsC80XGASl1shDW/6ywobIRjBdubhUT2XcD\n08Vd9WQIoT/Wemr45215Wumv2v+ibMXalGDcYYOlmXHXT4S35CTItLsgeBNm\nCglNOgWADwuIuH3jiiOqEe+NYjxf49SSCk6LzQpprgNey73jqG9f5/dkPQp1\n5Oc27/rls22IWAHnJYBk6Wv8yQ/eg3YZkkUtGprVUFuvQyZkdnaWzqyVtldC\nvLpga0lK8xqHWEfCHnZX2aoXGVemVrfEZlez3OCCxYeIDbFLhL5jBN04mDPL\ny0o1Y6eRFYoEqazH2NWg+RHMnqkwh8Hc9DFID5JDG6VYZNTgBJzNW1ZswFFA\nyox8\r\n=lt7R\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a99320a8e5b4b718dbbcaeee1ec4fc8feb72b592","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.8540808be.0","@material/base":"7.0.0-canary.8540808be.0","@material/shape":"7.0.0-canary.8540808be.0","@material/theme":"7.0.0-canary.8540808be.0","@material/ripple":"7.0.0-canary.8540808be.0","@material/animation":"7.0.0-canary.8540808be.0","@material/elevation":"7.0.0-canary.8540808be.0","@material/typography":"7.0.0-canary.8540808be.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.8540808be.0_1587662801148_0.00597228952059381","host":"s3://npm-registry-packages"}},"6.0.0":{"name":"@material/top-app-bar","version":"6.0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@6.0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5c76d2b8e4104802db7e288dc3d1fce1425e91c6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-6.0.0.tgz","fileCount":44,"integrity":"sha512-qw5kFyFkF9Gps91x5zQV3jMgCY42yhbuEOaSQ4E9ujozZTp4dhkFWD0ZbZ+NvNS0KPZ7fTWmCKqxqZ97Ofl9+w==","signatures":[{"sig":"MEYCIQCJTiL/oc0lfDc+ljHw9q96CAWYRg7cUhvStznHduHMNgIhAIsrAiNUnwgLkoNv8oQ/zlabSg/Y9P4qYhSTks6aLsXq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoc/yCRA9TVsSAnZWagAApisP/08jBjIPNSCUuCjl6nDL\nHhiL8D6Nv29b9qoz1er2RztWWlfSZ8wqN3IL/pRF7eyXesy1ju0ZN31cfCnS\nezJSBnONLPeqoa8t00yeQbL+uldqEwYNMZdPfKJNKigOdxGLzgiiZ3gvRlwe\nnyxVblRiLDiEqvfvMo3WGNSrKk7AeyXtU6dGUcxZjKj3FzoSy5PytZnHCaKO\nV3R8v5egyj36sxA21Odq+OnMRSljsCSpHXBjsQlm+4PUn8PUy4F144EzTvq/\nj6Fhxl0TCOeVpPcKpnbWu9Ed7RsFFjvBd5eBmXEoLmTxJBw9GYPIDCtlJT4B\nFqaezkyj4TmCL3tulx2j2lzyRwdbESom2HQUVPo4ixu409yO9g4y79gPz4SS\nBK2/3vVoDpUM7quvrj29TiBn5pTOI3Nky7edcVowi6qE4B3CDcVAml6wXZGG\nArQFchAJs7+ygDNQhti6x8JNBrJrmo/B1zAN5OGql1C4e/lYXco//smwKXjM\nsw/iqFu86w2jgbr21YNqam+ITio/ZblqwxfN2TdfdNJae05zUoHbxqDDl2BD\n15r2Pt3CLKetaxPg2BhdWS8YWbIWZSOzUMUICLzxYyh1IABfp2U+453uLzkx\nH8w6/SpEVNjCJ5TUTXJmtCoXwLDGWcSc68vLu3L/ioqgVrIy5MWFDihNE2Ch\nYTZV\r\n=/v8A\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","gitHead":"8540808be4296e60f1c1d3a637413e433ca7efaa","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"^6.0.0","@material/base":"^6.0.0","@material/shape":"^6.0.0","@material/theme":"^6.0.0","@material/ripple":"^6.0.0","@material/animation":"^6.0.0","@material/elevation":"^6.0.0","@material/typography":"^6.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_6.0.0_1587662834020_0.957309848495981","host":"s3://npm-registry-packages"}},"7.0.0-canary.2673adb74.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.2673adb74.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.2673adb74.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0eb0229fa0c54c1455ba00f26de1c9a456dbe33c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.2673adb74.0.tgz","fileCount":45,"integrity":"sha512-iQ7tAsvVZI46S9wHz+RWDE5O114HTScQ65l4STnBr/9vw8YJCUMiHmi6tutm0+5oXMcONtamf+1zxzr2ikGfYQ==","signatures":[{"sig":"MEYCIQDOOcaWyBkBgEF7iElgNGsGwUnaBYtwL3e0uxnYY/qZSwIhAK0hLJRzzkPc2E+J46YCmrVuJ4AKk4jhsB0zF8NIK030","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeohq7CRA9TVsSAnZWagAAy/sQAJ79c4qJ80U12K723Eo9\n1ZffsxDIKG64fUURs1cXCtyidy87/vBxFk8RbYq20UNihYyTeS5n5rDzEKP5\nzSTQVpL9IriNJ1cRBwOpGaPJsgDOB4tmdxdhuZc9lOHRkZZrVoahkRjqYFxM\nCKRi2Ca4g6MeScS42uxCZgMuFMk7ebS2kwoSPavaZn+1gQAaKJqKmWVoZqu6\nnYlDeIYpwNcs0Y6ThUEFofKV2kqqhn8/ejMMvJDF8H9Ji63ys+F/wXw/ckuj\n6NJ72Mdnu2JJBza/QswSgg+P/VDsVYXLYR/qEgcUwDsNCdthBjIzsGLn8uad\nsNB7EwW6INbVBoN9H3irScm1biRpfvTbraj2jA9oQQUuIqd4gEdy8CcABSN3\ntZrF1UbuTsbcbyfqv74k6eApzDBh+NLXf69vMOrxAdMwgCfRvnt0Z8uc++Md\nyyGYzsBuXXYlzT95C2RWmx8GJFgMdDxcfL736pZI0B/1OZ1ceiqck8Cg+vCx\nmmfB7iz8dX6edxV4ImvuNjmEoX34rF0Eu0vAZv9n8fCQyBkjlCdDfZrvu8oE\nH6ORSjLs1ATO4XxAhlIOf+c45zEyjCfAgUuQcz6cYMjfYmwrYbLNjxS/9mM7\nmydqIzvN3nuKf+W4yIcMkDhW1p+4iOTE4hfGhwnu+k23puoRvU1lesrYp0bA\n++yl\r\n=Qgw/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9cedd1d83d1c7d125a3ed38281072b6e50b57e9a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.2673adb74.0","@material/base":"7.0.0-canary.2673adb74.0","@material/shape":"7.0.0-canary.2673adb74.0","@material/theme":"7.0.0-canary.2673adb74.0","@material/ripple":"7.0.0-canary.2673adb74.0","@material/animation":"7.0.0-canary.2673adb74.0","@material/elevation":"7.0.0-canary.2673adb74.0","@material/typography":"7.0.0-canary.2673adb74.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.2673adb74.0_1587681978771_0.9432434328209087","host":"s3://npm-registry-packages"}},"7.0.0-canary.b10d0d7f1.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.b10d0d7f1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.b10d0d7f1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f66dde52ab48abf1286e7bf31627d845bfc6b72e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.b10d0d7f1.0.tgz","fileCount":45,"integrity":"sha512-ykKHB+am7vQfH9g1bBdwEM+WLPsroTf9tp6APF2y6KFDzoGKidpCaOFCNYZIfUqkkuVgaXm9fU0HfKNDSjAgaw==","signatures":[{"sig":"MEUCIQCuEWd/Z2yHpopAMD9+TlYVhTQnoWcqyQu7NAbdcgJWAwIgYJXnb87FCPXUqPJ5WpIwkMkW+px4UZN1yuNSaEmuV0k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeojEXCRA9TVsSAnZWagAA63UQAIr69AseaJ6TDKnku7PW\nNvAtg7x4Lv6gUmDX1tljeKJcLiguWxYUunPFxRBdAri73hJ14PHdXAYDolpK\n0FvDmluDYCl6p5un4qLGlU/7BZRFQ8hXwCcLD3Cw0XPIXFALHDlUlNJtp7m8\n9ls5BZjcJjT8ONRqmUS/BBbi/gRPdvMIKvsZDIwv1StMjWMQJ+iAnjE4cJVe\n1BY0TvFTvw8WDOQ9feypfOP3wM9CfBgXDkSpsXFjwNp+SAWgogDQyGyqH0Gx\nymEx00wVv8fJ+GOPe9Nwcy2KzY4tmWDO0HiTu3fH8sUNGTvR+mtLqWwN4Pf6\nW0wyxPItNbFfT2IcuxkYz/sloabl8Wj+iRWwZ4NwB+93coP4pLoBlEKJWehb\ne1tX+jgnpBH7fiKefcNWWo2wa1qhzf9HCikMSYZ00s/M85tbsKZcPGmo5GgY\nVUyhb/gW6KK5VB1OzhxccUQpucXV1JVWJijY2wMnrZkXPi3KG0X2SgM7LSxz\nH9SCmMl5p7RHKaQ7Pfw5jgWBQkddQ3KlEl2gJdDqBq+qQj/lP8LwXgXOrdrr\nicux8F8aH6gTDlf4Ud5PV/7ETMxtdzcd9EXTRG9OBjJ2EYQRuWQWFPx8u7Mz\nywJPRVnCp5DGpfnerhLtQxP1K76NyCYx1VdrzKXqM12ulrAUlIEMHTzeYXFV\npxSK\r\n=fyAF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"83fc566b3c065e01bf601ac65cd6d17b634b7872","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.b10d0d7f1.0","@material/base":"7.0.0-canary.b10d0d7f1.0","@material/shape":"7.0.0-canary.b10d0d7f1.0","@material/theme":"7.0.0-canary.b10d0d7f1.0","@material/ripple":"7.0.0-canary.b10d0d7f1.0","@material/animation":"7.0.0-canary.b10d0d7f1.0","@material/elevation":"7.0.0-canary.b10d0d7f1.0","@material/typography":"7.0.0-canary.b10d0d7f1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.b10d0d7f1.0_1587687703033_0.3691374769195539","host":"s3://npm-registry-packages"}},"7.0.0-canary.3bd8c1bac.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.3bd8c1bac.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.3bd8c1bac.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a5d18385b77768bbe20bc96d5e3da24b84e19fb3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.3bd8c1bac.0.tgz","fileCount":45,"integrity":"sha512-fFbRpJsQus3UtaBCX4XyxpUeOM1rn8waouuwktv95pz30bJu+MCagXfOUX4UX3mK/0ep0VXpskFO+ExpIpfakg==","signatures":[{"sig":"MEUCIQCUm/K7cpdzagFMJCvjeFKIRSjpvRdcJk81SK5At2BaxgIgCruqfS0YDvnmLBJ89r+/U/x5tkzpynTyuJt4wSt87gc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeo1TeCRA9TVsSAnZWagAA8aMP/1ySiBC70XwCx9GkTimL\nirR70AXAhqBrKtIoRV2euMMxZSkgbNAv22+zED0OxCsFoBTBOmaqLeo+5q9U\nPpXNtS2eTMzyldPaiuasA8Ibml5WzMirPYInsLcmFoAB7Tmt3JnMuxSxrZx/\ntwgZKx7BH+qAABGIB9B8VeHQXqOBHWBGqqR4yJRz8qNzkBJr3eW1Z8aQr0s6\n7sYya/lAI203GTvsq/QX48SrTPg3Xmaj4xsC4OVWEUqhb6/w+lTsVcuLJ0X6\neZR7ffFfvI5u1RwQFHdRfPo7oZvjFLXUouhO9RKmhIkiy+3qLtpTWo3GVir0\n7x8xMduzrVeyMROd9PyXHAw2beowkcS4Jvs8ApApk6R80vMQDTmBnUB+pnyY\nekErSxGsrioJXgbBp3XvU/g+j6J0ybaNEvdVH3Te9e5RChynStakNf5Kv3Ts\n3cM8G+FD2tbyUsXoPpxsJrm4/EJQ4lwXsu1lP7qzEP5wNXviRRpRln0EC6Pu\nSkX3NVAWbA31zT0gU8lPa7tAT1r1C20dawDsOiDPgDiUX3exh8GgGvZSYrdD\nWDbCmYWgtLZJ3YrXkKtTgqyO/V8HXKHpw7kv9XG39TSh7eb08e37GGA+xKVa\nsb2HRhHkUZ9EIQ+0jIGjLRTGjhmkkdpTsfwhGM2AwW70UxcRxIe9l3Yg6LGa\nf5E5\r\n=4lZW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c6f324d1b107431694d9112a3e94b90e82718ccb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.3bd8c1bac.0","@material/base":"7.0.0-canary.3bd8c1bac.0","@material/shape":"7.0.0-canary.3bd8c1bac.0","@material/theme":"7.0.0-canary.3bd8c1bac.0","@material/ripple":"7.0.0-canary.3bd8c1bac.0","@material/animation":"7.0.0-canary.3bd8c1bac.0","@material/elevation":"7.0.0-canary.3bd8c1bac.0","@material/typography":"7.0.0-canary.3bd8c1bac.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.3bd8c1bac.0_1587762398107_0.7091643903498643","host":"s3://npm-registry-packages"}},"7.0.0-canary.b83c8dc22.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.b83c8dc22.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.b83c8dc22.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"098d795398b1264755e86ed5abe8b6436f21a7a8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.b83c8dc22.0.tgz","fileCount":45,"integrity":"sha512-b+axZBKCMvOlzVaClEbajZkBAj0RDcN59HzcmHsYWW1aZZEiXa4Nfqubp8fcQnS3T/2sSRX5sFhPTgRxscXr5g==","signatures":[{"sig":"MEQCIFLFbxgEaIFy+x29R0HKm4qWCHLaReWQADm4v7o5UzPFAiA+cnvlP+DZNXNU9PBYZ4jMcYgXge59LmNRcI02kkrByg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeo1fdCRA9TVsSAnZWagAA0F4P/3lVg9gLmgD2ANLJnK0+\nnefL2TDPGhSJiA5EToy0q/RxQpFoWFMjC0QHIfWetzucNUB3LuPp0vEz1his\n37ZPlv/cOYG3JHrIc6WvZYwa+ZKLIngadBryJMKJQtoZunoZCFTclh5Nl8DF\ngxK8Z1mJZxuAdGVvFS52zkpd2VMUFHHBKQD2ZlDCW5qXahJxWzYqjS4ccQnm\nDsEVe75DsKRl11t0nFyPISkFYLogds5I6/fAnucElT+kgMt9SjPttUYVZdqo\nJDM6KbDIFNDekDgbclIrOTmeKycHVTSsmq0AI1R8E4o1yLzbcWL+92gnzeXw\nMhXkWvzSmFyQoIav76alB1RIrjscHIAdAgevhoN7gb/2c8E7IFd8PLvxL0Ki\nTcNaqsk7YnyHPF2BCsd/VCAOp0IDgv9FkZ/ny9aRM3BNVyQQRJgtl+rSTLfU\nHuXaZw99Yh9CCnnbjmzTKg2mn2kwFDzzwTrcnRf3BKI1KqJv8ZG8mEkHXcUW\n8FkUM9P6c/iNM+GikJybNbuJ16N6d+vhO+BIm5IZsTzzfVzzvdqnmH8q49B/\nOTtJFfZeRiMHXi45ViwwuAxlBV9i3zB4+Ko7ocWKAuc1zUfwtHlbMDlAI5eX\nnKpkzHvY6uFVOIrh6hj0D7sliqurWLyJ5uw6Ya3SZ+U0/1SkNR3G27uSKQWy\nseI7\r\n=T9Of\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"92cfe3e927d76c82fa2d8a864bb852b8d19f30e3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.b83c8dc22.0","@material/base":"7.0.0-canary.b83c8dc22.0","@material/shape":"7.0.0-canary.b83c8dc22.0","@material/theme":"7.0.0-canary.b83c8dc22.0","@material/ripple":"7.0.0-canary.b83c8dc22.0","@material/animation":"7.0.0-canary.b83c8dc22.0","@material/elevation":"7.0.0-canary.b83c8dc22.0","@material/typography":"7.0.0-canary.b83c8dc22.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.b83c8dc22.0_1587763165435_0.26925114708285647","host":"s3://npm-registry-packages"}},"7.0.0-canary.1b3dd846d.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.1b3dd846d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.1b3dd846d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"812e6b1880b910549062aa166650164239868788","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.1b3dd846d.0.tgz","fileCount":45,"integrity":"sha512-kAzy4ukKzRPbyAFYA4fWvLl2yrfSrw/urYhAYd+h8LsUrfAEVfiS2hktTiEtnr+2nQKZ5NS+H/Xw/e4przRaOg==","signatures":[{"sig":"MEUCIQCwbXjyJijQSLdQ5n+ghZlS9fGFHnBvUJU0ClD/YEpoEwIgIf3YRj4NIA9N/TW7ftaoQcYtCPH5fomqZgztsT56m6o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeo4ftCRA9TVsSAnZWagAAIy0P+wVvp6ymv5HkjxKzkxYr\n4p8xRndPGYmblUjlY1beUhdh4Lqxf3jGZNlHD+btUfqjpJGI1CkymOc8IS/v\ni9HN+EHloP9ClQaHckwj1SOEd5GaQxXC6NgsCdsZiJF6MaueUAP3TqjL+P07\nSsQrm9EjPEO5hiFGk/X+qwPr+i77SFtoTGKStc2v2T652FSQV7rTrAhCaXwm\njs4m1E3DGW9GC4mIVdFvvyGE4Zjutpuh/0m04hK7s3scfTSiJE75KHcMYjT8\nO2U6JzRcz3HEW47NIK7jDFTaglppbGgQTOEaUAVdWNgWPJbmB35KwaEkCemE\nw58r3cv3PYfiVCAJ3fN8QW69BWIO6TQyjkRsXWeoC/7i43cV0vjrsy4WQkau\nrdLlUhc9uTh14EFj02MZsdN706R1vmlZpGUuYxIjLFZstSM2v+tY1nuH/L2H\nCR64tSCt6Zjh0FkapbBaiwFW3qo0T0svvhUQI+8Bcr0l/tovXoy58d/tC3GP\n34IfKJgbK135xQEBe6HHHv5hQjXQ9JGjbaDpLqSo7GEYxl7jXTSAFU9qFI6I\nKryRirdHdRvI5cVUsc27y1y2TK1oZO0+zMPm0JmzyURwLNZ2YpoVUwLNO97E\nl3/85kqZQy1gXSzKlC/mMwguJFdGJMhc8xdQCDlqdDJ68AdaQz8mWcmGH5Wi\n/Opr\r\n=2AyH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"370fec5aeb98791d923dc357e46611e61cf6eb0e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.1b3dd846d.0","@material/base":"7.0.0-canary.1b3dd846d.0","@material/shape":"7.0.0-canary.1b3dd846d.0","@material/theme":"7.0.0-canary.1b3dd846d.0","@material/ripple":"7.0.0-canary.1b3dd846d.0","@material/animation":"7.0.0-canary.1b3dd846d.0","@material/elevation":"7.0.0-canary.1b3dd846d.0","@material/typography":"7.0.0-canary.1b3dd846d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.1b3dd846d.0_1587775468928_0.6888937692860346","host":"s3://npm-registry-packages"}},"7.0.0-canary.29debfea7.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.29debfea7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.29debfea7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f569f8832d5f62256ee729f2a29d7540df1d54b7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.29debfea7.0.tgz","fileCount":45,"integrity":"sha512-lsY6+LJ+HJXzGkJaa5pSELYI56EKIu6gXF8FO5pHQy16WWfTaywzISxOffH5jno3shN9t3HT3WPQskye/Undig==","signatures":[{"sig":"MEQCIAME1KWnGeOJ5WtIKI+WSeq9bzzM5QsyVgDbIw5cm0GsAiBuNo3icI1peD6LlWcKIc67+gx4+xUoYDV0YpVA8Tdnzg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeptD3CRA9TVsSAnZWagAAeewQAJdvh55Bv+yOf59nz0ax\nytmEui+crOI4VRZSEBdpPJhzFX7v4xB9bJiDjY9UMvwH+PENGcXMiPlobk24\nLZy2t2rEko3iFIEyPHnrcocpo95T3DpZxmGWx3+eLJMM0J7MS9JbFwfoBSNu\n9X6AeG39J6ewky02fCXzHz3b596aHyNsuZtLVIQRQwBaGkPwVPg1m7nRflo6\nnQqkWTDja41d/uEAQjc6xA1G0j03h10mCSKvd8MtupkSJfH0GSr8q1Qve9qW\nJ1Il2cAfVY9/XoorE0izVYxRqqI67b+CE2pBdixapZuxSKAp3c6rJXWfT6BC\ndpNiCcAI55mcdhwhkYFocyO6JIk/j/YW01W/7N81FIDsoNedwrOz2Yf13Ban\nZruwCLFgRC43wsc6sf+5MJZ1cdZj99cUrTa0uMB+C1ptWEXU7X5miJANI+zH\n0zWVD4N98S3xTeyq8YkZkz1xvUtG3OjhrwscG3QQX/IHqldedBG8L0hWmXD8\n83mC//nyb2OFoQ2JcJfpW5+wSE9ByHhM8QQYYyawd2/ODoBZYxg/LBTA2vMH\nWX7E7DgESvA6w+4J1Sogi6R9u/YOk8AztrMhyM4Wk28DOg0FOdz6LNejZWxv\nuTyGAzmpxUkL+rJsXXWfvZt9//51GTy/vSk9vxjA9EoqEK4vLVx/vfIiUZLr\nhM8q\r\n=68jD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f121c350e2a52fc59191d5e843358aa3e3926ca2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.29debfea7.0","@material/base":"7.0.0-canary.29debfea7.0","@material/shape":"7.0.0-canary.29debfea7.0","@material/theme":"7.0.0-canary.29debfea7.0","@material/ripple":"7.0.0-canary.29debfea7.0","@material/animation":"7.0.0-canary.29debfea7.0","@material/elevation":"7.0.0-canary.29debfea7.0","@material/typography":"7.0.0-canary.29debfea7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.29debfea7.0_1587990774947_0.9267973764404827","host":"s3://npm-registry-packages"}},"7.0.0-canary.28d32f8e0.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.28d32f8e0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.28d32f8e0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c8b79e292a0124005a230114785266dae62ce0f3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.28d32f8e0.0.tgz","fileCount":45,"integrity":"sha512-O6x7hrtUyclTTR5Vn6uNzmeL4sPNRCZqJYOHT5Jkqlh2CZR3k0jpFPmfivexoKT16BZnuaqVc62t6zScpK57Zw==","signatures":[{"sig":"MEUCIQDsYOxKE5iH7CoMMt8LleCLeEz/739gQIJANbhL+3YaAgIgafUbTB0sjyfqtX1gOn0nK1vIY6BTo0tcw/DnIEcSJ6s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepuc4CRA9TVsSAnZWagAAtv8P/iJvRe6xZFmSilNZPZVi\nBbmFZJiPaDvYwIYqKeiZ9hJbgOtjtzznheWMR/vfu3mWlzbypwOuVypuruyZ\new8YKYCptSIx3lGeHOtq8h06b9A0An3LupJ/DEtWpGl5RL5w8aA8p/kjOfZk\nIumTpehLIl+ZmRJAvliFTYjiPg06HUdnmqr+UyvjfVkVKKvtIheUdAZVMuAp\nIXz3AQ3gigcqs4rb7HxvYcfm37P+s7YMs9ioXihZe1zeyn6qPeRnzqKpXalq\niQjoI0sm8mN0mxxX5qQuPSbyD3OXJlZJvGjaD22TR4ndQQrVzW5F+xvsexAw\n+X0fD/0kQO0FubNrdGQKCzfFCDJOmWB/qJ+N690D5iPk/pCngl4gD4loiRuv\nCRSD+S9qQiyn/fFnjv4wbb88S+1t+me4YO9h3if3GLfrw3urmHMGXUYITmDc\nlaE0D2DzFp/coxHpBQk1lW/+Gj2jNzalsoaSC9Bv/noisCawPdlXD81zZ6e7\nlIh3UJXQ8UR5I5uAHLj2tSYqgM3pAKbVw91dlJr0m5VNJlFqjt6pu2q4YNby\nvuC2urIlHC23oC7p39q0amI1Qzo7mZhMSbdiv3rcYDje/iFdWTqhpBwdxQyO\njZviky5j4qIQR0LE2CMAOOoEKiSas8VLhv+s2x4mQM9gR9xU6J4F9hCMVzRC\nqfc9\r\n=RPPJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5e2a5c88bb5127200d9f70d65964a419ffe2b123","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.28d32f8e0.0","@material/base":"7.0.0-canary.28d32f8e0.0","@material/shape":"7.0.0-canary.28d32f8e0.0","@material/theme":"7.0.0-canary.28d32f8e0.0","@material/ripple":"7.0.0-canary.28d32f8e0.0","@material/animation":"7.0.0-canary.28d32f8e0.0","@material/elevation":"7.0.0-canary.28d32f8e0.0","@material/typography":"7.0.0-canary.28d32f8e0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.28d32f8e0.0_1587996472396_0.09014915347338182","host":"s3://npm-registry-packages"}},"7.0.0-canary.af71cfdd6.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.af71cfdd6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.af71cfdd6.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b13feb80911699ec746cfb94177fc2cc540bcb0b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.af71cfdd6.0.tgz","fileCount":45,"integrity":"sha512-5klFSk4KmfqBb8EMf/mbHPtg5iNyynYfTcjRMGOubfHfBW2CF9x/SzDcBkB9n4yVMAoMp29ocgSc2X1XowyhcA==","signatures":[{"sig":"MEQCIFi29wHBn2pgW9ZFDfTxyktWDvOT76fep7YcqsFZU1XNAiBr1sS9X5XqviDy6QYZc5TtsCKFYMONfVC7MoipmsJAVA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqLmqCRA9TVsSAnZWagAApoAP/RWOYv1Mp98YEZrVvxqw\nb5XX1CnQMKuwW57rCjQ6O1uzcWdV9chlMZh095x/dj+Gj+WDh9O2litnl3U3\njYcbFCWDBQ8wrlb+4pw/Q7Wrv/3RdlO/yECh9Oy+uW6fbDIAA1TTyYMGFomo\nvQcw2CaS+eV1LW3KS7yuxDi+IG6rcs5/e17bUqB+q+uyvVqkYBsoY0srtoXv\nPTRLxUiFqa/Sa3ANGFeBGtzY58A8+7v2Keixi29viyoIStagi2M6zb1alKx7\nV+80Z3LVaeQR9286c8iSDAUwJZ3qv+j5ZetnPWuOAOPT4DjpxJCUwwKOXohH\nwbhYUS4MVyLXtSrTgpMYaIk9YpGjBLmYrDjT53s8EeE8m+j8j2s4BzkkTecj\nS6sBwoKhm9DNF8POdVTA7MYWFfRM2f7sC86XmCj1FkJ3PKmzsloLPxb4qw5J\n6UwfmYHlWtCKB4qf6SzGoAl/zNNBimUiKd5xOIcg5nTkZnjZGGB76Gr5yZep\nFPCx4hAGxjTL01eSfK5l4DpD79MCyNZ9NDou/NuH+6gcuTzOUGQ14cUEdDTD\n3GJYcnM34p4M2qWV+xcW/ISIokIFiMEX26CQvR7XIad9BAPi/cmIOv1S24ZZ\nQfDSHR5Bu/P4YeXIt8iq0V85Bt3s1GNxwKkj07wf0emFCkAmqq2asypqk5ug\nHWha\r\n=Os+I\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8ab654dfd65440046211cfc73468f20a57d7fb4c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.af71cfdd6.0","@material/base":"7.0.0-canary.af71cfdd6.0","@material/shape":"7.0.0-canary.af71cfdd6.0","@material/theme":"7.0.0-canary.af71cfdd6.0","@material/ripple":"7.0.0-canary.af71cfdd6.0","@material/animation":"7.0.0-canary.af71cfdd6.0","@material/elevation":"7.0.0-canary.af71cfdd6.0","@material/typography":"7.0.0-canary.af71cfdd6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.af71cfdd6.0_1588115881722_0.9493737436876046","host":"s3://npm-registry-packages"}},"7.0.0-canary.99d2fc961.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.99d2fc961.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.99d2fc961.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"46a27eefb67b3d35efd250abc0e9fd91b167acbf","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.99d2fc961.0.tgz","fileCount":45,"integrity":"sha512-4Wabm+LrvQh9r6UN9b5SdsCdXOAvthDXndTwUdN5kONVm8Yj0MsVst44r3CtO/lc/XXcZGfjf+jIkG7lqig/7g==","signatures":[{"sig":"MEUCIQCJSi/eGEB/9d0KhkwT8w0gD90JdpabUWMubiMT1ccWNQIgXdUbyrnt93A4bcSPl6AzO1lFir4BWzebiyFcZrl7zYk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqVqXCRA9TVsSAnZWagAAxUYP/RNApdRyLAzvLmshjYhx\n0ahV+nevVDy2pXgHYl9gR4K8/R3niHsMDpHYoMIfC54Ic61rGIUlWOvVNWbw\nIhva8EDRq1wMtXbo3fjVazCnGu246dIiGn39J7LGM3j6xd1KH8/r8Q0qPN+g\nI7ToyT83xnbQzaHIlog4s+CjCz3y3LWTeY67Dx9WxeLf6XTf70KQQZAWX/9l\nqe9VVLnTQs7HN091yK4oHi+m4rxNv6YjLyDRKBUJPw1/+5heWyoF9CDtwqA7\npxYOdmquJo1c6fP+9wOtkneey2HxKp0BCE2ByiRqeG4ptqi24L+Cjh64we/t\n1ncvD0NDCNs4sQy2tQQ0UpCBMdb3wXSgkvSP9H+v3J08r/JswZ1MzarOR2e8\npQeKJy5VnPljWmJAJlBYXau4KBbODhSkKHCT/gdvOMTLE3TesCygQhyzZL7E\n7QJJ4JaQfknnMJuLroouhi2d2LqgSn7TGJ+GzmtVGV9KN+SDC2aLut4RU/Hv\nsnWF3jgxaTBuj7koQ5My6N0qwQPbTbQmPh726Am5/pc7AbGROLwBgoipKBP3\nDv7pqpbDROYVmwrfdXhgtnbGtsClWb3HpVAm0eHnvFOgpCqRJU8GDKzT67kU\n1CnJTpBkMmYIM5FnqDEshRjr7wMBj4Mk7oWd4tjuxR8V2ZttY24BeP97DweN\nPBzy\r\n=fEEN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9b1ef36f20c436f96aa47dc90c983832edc5985c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.99d2fc961.0","@material/base":"7.0.0-canary.99d2fc961.0","@material/shape":"7.0.0-canary.99d2fc961.0","@material/theme":"7.0.0-canary.99d2fc961.0","@material/ripple":"7.0.0-canary.99d2fc961.0","@material/animation":"7.0.0-canary.99d2fc961.0","@material/elevation":"7.0.0-canary.99d2fc961.0","@material/typography":"7.0.0-canary.99d2fc961.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.99d2fc961.0_1588157079356_0.9449895063726554","host":"s3://npm-registry-packages"}},"7.0.0-canary.0e052b24f.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.0e052b24f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.0e052b24f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5b08d6cdd17a54010447a37b2d800689d017e7be","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.0e052b24f.0.tgz","fileCount":45,"integrity":"sha512-PeyjPHoDRATSuhPJq7gCtZnktoutDZ58Q+1NlQ6Zlfz38r1mVWRgSJNJIaYr1ldroFNDZalnDbvAqY89PBPnFg==","signatures":[{"sig":"MEYCIQDlkt4TDWI5CAP8GflJ0AH3PpJh+6LyFY2s6AQERzpl2gIhAO/Euros1r2KkTMkUjMexP9uVV4+acwLJrhu9BIhNl14","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqioqCRA9TVsSAnZWagAAV24QAJ77NJTuxzFpjWM4eYbW\n4E9XLRftjCYrAw1nt72lnfMDCCB09quFGi99i6zku2hvNHYBsgMa2TPqMPOi\naaDRTeeo39djmnLCgNXcaysMfcXMIWGgsiJhnVUUlh+5bBxzWyZJP/ERQh9C\n+zMksJY+K8KB1b/qfxz0IkG38VB40fYVmRuu1UrxmPnWRElPJ6bHXbPbCFa9\nqEDtQg/SJvC/SnfuFZcjDh2voabb7CBWb6rhyVMqG1EZsjGThc/BlTu8hC4q\nr/V/SYarzn5PNT568rmeDg1aU/wCvWaiKahZ4OSUlJUGfc/phHuwEzkzrZOj\nFirivsbrWcR4B4AK2IZse5GEaht2f5vLQskWWfingPjBcWljlLaNfL19BoqZ\nY3VNcda7lc9n2UtJdlu09FTRVOeE2PdbhfXPOi9A2VW1pQQaV4zePC/RlP/0\n0dDQB2pSwwQEu0S96V8buuQF+xtuhLLy/4B/6pdCDd9Se1pDUR9TmNs/quWn\n3MwDjTk9Cb4IMXHTZ1TvleoWyZE1OZONAAlQt49qAiYCi+WKuLudfWt4bKeN\nl9I+VV2MjU+/xrmLXrbiJRCVxNNm1+fN54EE+vgRbIsE/bklJkG1Veuidya0\nC0YPbUUTIZ2ueyWet4v+z/3ZrnC674PPztEPWDPlaC7iVPSskLfmrO5UTX9O\ncC92\r\n=tIWW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"69929564b970323734d16e9588636ff8a645f2ad","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.0e052b24f.0","@material/base":"7.0.0-canary.0e052b24f.0","@material/shape":"7.0.0-canary.0e052b24f.0","@material/theme":"7.0.0-canary.0e052b24f.0","@material/ripple":"7.0.0-canary.0e052b24f.0","@material/animation":"7.0.0-canary.0e052b24f.0","@material/elevation":"7.0.0-canary.0e052b24f.0","@material/typography":"7.0.0-canary.0e052b24f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.0e052b24f.0_1588210218030_0.19147932706089588","host":"s3://npm-registry-packages"}},"7.0.0-canary.ff4bc632a.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.ff4bc632a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.ff4bc632a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"87c84ba577d922249b6dca877a2629d27bbfc6d8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.ff4bc632a.0.tgz","fileCount":45,"integrity":"sha512-ihZ6uKxe6RjGMMKoGR0vfAMSs7JoLttxyJHwCy8YzJw+XqRzAsB/P7F1s/NJ935WrmlOCjclwFwjOl7+2BXszw==","signatures":[{"sig":"MEUCIDsLrvX4q5kemoAjH+ZEq4LBFLSGy7ep7WPujXwcRyVVAiEAtsCDNkLA8YwYEviuc4OxxbGlbNhTNIZCUgVDuenESZU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqowrCRA9TVsSAnZWagAA2qoP/2pY0AktakevNRqdnxy+\na6RH8SG3ts5YUOL8taFBuFT4wHS5ORGaGqwVBlLPHaNcXAErx+f3Cses1jaH\nd/0HK+ueBYflFlF8aAsG6SUh0UeF4/WfiIolE6ww6xnzHGqK1zjatpvWxMEZ\n7HGT91D074MmRLwvx56FRWnilvHnDmXb+mwSUBPcpFFqI3VcQAux/AoBcwnF\nmdnWR4R2gBZf3XnrUxv3R8A7DJzm6BDHCNVFRdJMvbMv5HZsVcK6HLbyVrnE\nRC/lZLhsjNwjhTQt3aeuU3gBYIRTusq8e5rFc/rdSjtC4l4nAgpyzwyIlSlj\nBOYO6o4K29WWebaX4v7LvXrdjd/QwrnKjgATwCWlUvF1jIsVF059vQz+Z5Gj\nKIxzERSesaIotDAiTULHjkUkmWJc6KNbCMs6xgk5HYk29f/RsrY6RMo4S5Xh\nJIf83SLjo27mixZ1UZeCPTX16oxSU0waOwAq6uH1SXERlkAHnbURXg3hkWsm\nXP49woeFvKrlRkGDpC4pLKecZ59m71Nl7vVXeCHzsm7zhHz0NZSc6rmM0orx\nd+8iUNz4ZLTvlTYcPR5StA9D9XPu7zcpAi/JuC3bzvz43tXY6J6fizDKH6q1\nQaoI3MZ8iwAdAcUij3lVczbQLGXqJn+SaZMCVgOHCVKuBm9Mm4b3lNLrazHI\n7K4Z\r\n=k5lZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bf4456b9aa6b24c3dd166ee7bbf96a700054183e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.ff4bc632a.0","@material/base":"7.0.0-canary.ff4bc632a.0","@material/shape":"7.0.0-canary.ff4bc632a.0","@material/theme":"7.0.0-canary.ff4bc632a.0","@material/ripple":"7.0.0-canary.ff4bc632a.0","@material/animation":"7.0.0-canary.ff4bc632a.0","@material/elevation":"7.0.0-canary.ff4bc632a.0","@material/typography":"7.0.0-canary.ff4bc632a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.ff4bc632a.0_1588235306665_0.9515340787493427","host":"s3://npm-registry-packages"}},"7.0.0-canary.b0f83d2fd.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.b0f83d2fd.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.b0f83d2fd.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fe517a0a3ea85895940177b4f750502e1e85db44","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.b0f83d2fd.0.tgz","fileCount":45,"integrity":"sha512-U4I3lOABebt5MgH81wyWCCDVlyD+CsuuSLSAlbnc/ZaVv79+tA19gBpR0oMwanXNTg1pbbhONDWDfiyOwzNxKA==","signatures":[{"sig":"MEYCIQCQ5Xt/f423JydQwgAUyH7lGl9gDfAinkzdSXfpwWG+wwIhAJA39fp3PYr9yteq8ZjQ61FGuERjXSh29CKLh+T4nt9G","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJequG8CRA9TVsSAnZWagAAWfAQAJc4vasaAp2JaTmdgXWn\n7fB9g6B4K0iYwUf6x37kQJxvkXWaudL+/y57xeaDn9cw4itI3sG8Na+uah+U\n0jVSZh4UdcGdgQ/EyTKr1tEvB/AumGdRhSPcRojvSBr8tZbxv02CwKjOgvPn\nL6KpbfnpAEKvX/854Vk4Ahej7QOXNAVL57F6+ca7L+Fz2mNyNwdQ3ZGVv/Bk\npvzegX2FoH9oaTIQMJ6LtUWgFtoHhM9PwoZWOddMr8Cto2K+xo60MwDJbJ7P\nBChyjCNOxksV+DNKSjZNEK8L+1bTzOo7QAAKf6hneVY4z5lrwWjVoWjh80K0\n7fAQwuHpTvhJw0oyt1pKD42C5F7R3P7GUsEzEcGC7XjQkh2/C61M6DU5vgP3\nRopTlXVkxAMLHciQFjUoSsFjSV4DDmoF45UbSLcInbukaC48D/rVwnInhRR2\ngUPlAQ4MfkESwhHc654HN5XUeU4cOg9L1ejEtJZ4lAN3m8HZCOBvdg4VeHjY\nqw1A/pFrQRvChpUcJA9GX0K+F4Jhody+aeDJBHiumj6vD7IqZ3OfyYEGQ6Vl\nhyk8QfddLCaNtdnY6xsBhuZjpXCcUzMsYDdUpWA0vGUXTgEHWvBPho4KzlFN\nQtle3jHYFbMHzfB+I1WbNJhEaNaKrCC0sm6ecuvA9vmA49H0zrgrCIwQen0Z\nzfhm\r\n=BJlw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a1500073e25d06ecb6fe752169f836de2cc6ba13","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.b0f83d2fd.0","@material/base":"7.0.0-canary.b0f83d2fd.0","@material/shape":"7.0.0-canary.b0f83d2fd.0","@material/theme":"7.0.0-canary.b0f83d2fd.0","@material/ripple":"7.0.0-canary.b0f83d2fd.0","@material/animation":"7.0.0-canary.b0f83d2fd.0","@material/elevation":"7.0.0-canary.b0f83d2fd.0","@material/typography":"7.0.0-canary.b0f83d2fd.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.b0f83d2fd.0_1588257211807_0.5461868327080159","host":"s3://npm-registry-packages"}},"7.0.0-canary.e59906a57.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.e59906a57.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.e59906a57.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"97fe93f78941474c54793d7c88ff960f1cf489a3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.e59906a57.0.tgz","fileCount":45,"integrity":"sha512-JoQKS3DfPzPdLhs0lkcFdAlQsocjy+RUewGibxSafECmSl8YnTyItV2Un+HWJfSMPcNxBDsH9yMLyeSCnms2dg==","signatures":[{"sig":"MEUCIQDwqiypeW1w61diVLrHiKX/fAhGqM4NOXgioYsMEabd7wIgB3y7mta8TKvnR2Ng0SXQI6UbOiByOd6OUfAdX4EZ8h8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerEOECRA9TVsSAnZWagAATTIP/3N7/BTgafeg1qBr8wJI\nQFsuOGEqGwts09/HhZ4Lgdm7GTt+hej62bmfKrlUw7rg4bkgjJQAWCqe/rMi\nJ/GPR43u0DT5txSep+8uk1dgdd7TPc15byGU/Mk2qXcUMEHcTFtQNVOs8HCJ\nsMtDyfGa2aCZclwQQr8JOZHXBMEI7/bbuzpDU009TXWCTlgk988osW0Xtu1a\nobD3HXsyEsqvY0hDRVDuYPlylU17VIM5SuZlwOazl1lb/w4K5r8qTaDnuWjZ\n4REaAK9vkWDMAJH0vxVCdtDwsrYYaMeQEgjUR68G2NcOfsbRhl1ZqslsDq23\njld+YcY0ZRUYRXOaPR9R4fayIEAjdA1jMnk39HOhOyA2NPtsz5z5hUnfotdL\nOXN/0jUkkf7bo/jNwy1zz1OXPxllXt3X4xZO3xwCvvdRshVD8f7Hpfnbqbfk\nqhS0Ip6yZYrrz5cTv1d/r6+xSJOwjeh3g7Hqm4Macno6vY9z6bw5szqTLOKm\nduCDGQ8OmrddM64jOsM+L9p2/I28WnuiABcaarNy7rVV5teZ+abvDNSXhTWe\nvIn5UCs0xFomDeSpJpSDnz0ic/a833UB62C1RtSMPCeFZEt32uDLAjQJp1Du\ndtIH1a+XKU3jcRRFjjWY/B+BvJfOkL6nnLP5TgKQbUcyiXv53TQ2fvzW6B6s\n56sr\r\n=t5Sh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fc7a5c94d345c5fcd76d4957427c551ed759a1f2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.e59906a57.0","@material/base":"7.0.0-canary.e59906a57.0","@material/shape":"7.0.0-canary.e59906a57.0","@material/theme":"7.0.0-canary.e59906a57.0","@material/ripple":"7.0.0-canary.e59906a57.0","@material/animation":"7.0.0-canary.e59906a57.0","@material/elevation":"7.0.0-canary.e59906a57.0","@material/typography":"7.0.0-canary.e59906a57.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.e59906a57.0_1588347779532_0.4656793513279889","host":"s3://npm-registry-packages"}},"7.0.0-canary.c02712b59.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.c02712b59.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.c02712b59.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ecaa52e01bbbe2c33f5c21cea2ea4541f84a98c7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.c02712b59.0.tgz","fileCount":45,"integrity":"sha512-FC2rZ82PMdP9RpaCDV6UtxVQl5/jUOhbLIIKUARxRMBYvZ5kJ4ghFMXjriYW0cyG0Ky/C1QajOFI0AacuT3MyA==","signatures":[{"sig":"MEYCIQC0Pm0HBelMXiQqMIx9+uWp3rCTbbOa9/IKbzTTlbX5fwIhAKpgd1JQsrBLacgZgcGnJD99PyIYuBdD1m3JwJAIQOq3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerGnQCRA9TVsSAnZWagAAtCIP/A0xGgQMciYgtNZeDz/Y\nUJJhjZanm0V7gLQ60n4920s2FKNzRvxKx6MeMq0duWtERHmC6erB3bwCsHKH\nupRBVS5wAUrKlBFq8MvmXMbpZKPUG2nIOYA1PlGNplEVDuQJ4cOMsCqRabZ3\nikp+JpOFNM1PBhHAQgD/9lZGsJ9BZ7tS0itCxTtGq7D8Kch2UGQnU0Ge5m08\nFbLdpQJxRkUxG0DrlqjYkjDD+6qGVBimDPRQ7YOc6lW8xmuiALpHYf0QcyyM\nT8AiPK+uVYn1WBVl/N5+m0/w1HVUTcnQa/Na0OUU5KU4FFMhH87t1GVJPoh0\nHXO1TBCaP25t6KfdqK/PrvYFv7k1HPIGjp6ODw+F9lF5rLdrNC1eolRLn01x\nzgr7ACtoBN1Y4bKSeB3WCVJoMGvB7LT94IQKGGhq9xTx9tOpa5t8rgv33G9B\nd6xA9fdqGhaKB8CKbr29aZmKuntVTKCTGVQaaPAC68dJiJbQKxYFeM7p6Wdi\nr0/5IEsuV2NkJpjjE+K9h0mfguZbD9wo1byLCzoOjOJYdr47DDn266iwBqlX\ncXuD072bLPEVPFIiUHwqRrCEskamBvMIze9b5G4REpADOkmr3x3ai8j37EwV\nnSqMSPI+fg3ALH1pRxVXcUE0xA7rHYjnZENG7mQRn+xm5blUBdkk88P2FHA0\n6VF6\r\n=37qO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ed5da0cff8ae5197cbaf84af0bc924c207d3998f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.c02712b59.0","@material/base":"7.0.0-canary.c02712b59.0","@material/shape":"7.0.0-canary.c02712b59.0","@material/theme":"7.0.0-canary.c02712b59.0","@material/ripple":"7.0.0-canary.c02712b59.0","@material/animation":"7.0.0-canary.c02712b59.0","@material/elevation":"7.0.0-canary.c02712b59.0","@material/typography":"7.0.0-canary.c02712b59.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.c02712b59.0_1588357584093_0.8841880057810902","host":"s3://npm-registry-packages"}},"7.0.0-canary.15d65448e.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.15d65448e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.15d65448e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e0baeb615dda872eb4fe57db629bd421dd08e0d2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.15d65448e.0.tgz","fileCount":45,"integrity":"sha512-NaGWL8FyA3y7NhxVDFlxdhOb8bdl2e2G+ZAp3mUiZSZZxksFl9fMsFjXb9fjlCd1cxNiZubukGEF2Mt9f8RYQA==","signatures":[{"sig":"MEUCIQC13HIgh9Oiie6wROmBVahWhY1y08rNLvgEPFK6K/3aXQIgOHgAMxSmFp2Riuubup9AR30DRe7u/Np0+l9VZ2YwlPY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerHclCRA9TVsSAnZWagAAtpQP/j3q9Nb1fJzEJvU59jjx\n+wH2wsKqx8cfCHy1alvdpcGq4lE+wAXHtTjlf59R7m0F3Wa3KYQdzXqV3zhM\nsW3rkjdIoF/wk3VdfpiMKU4hVYrmmHUI57kAjbLSKOXyEv2Uj+kFzNFTGmjb\n2M+A3ATLwSLPdgXOmt+tliuk8LL1BMWGL9hfXSYUXTD6WIANzuH+Qjrj1Feh\nv1UvuRGy0+s6qzxap8sM73uIteBetZALN0c5W60OgyL7oFVh7aSp9dDyHa8o\nj9pjwpDxHnuDgSoj8MJC1TPQQMbH164kFPObKLPs4Ivyylp+/BzirbLX7bXV\nVqDem7ivor5cV6PL88XPix/z1cBGbzE+UWciza6+4A48W+Yi2RQfOsPjQ2sL\nWWTsoiNxJH0XgKHa56w3oiSeweZ9Jf3ZL0igLKZnjwDrh56zGsE91cU/y4r8\nZeA/8/eZvcpPwHgWuFPyxCmnTgRrw+Qee4JUKGwjsgR4bi3r3eBRz+CgxQd5\nbNkw/iPmBQaR51DC33t4XXi8jhHOdScKC7zwFKagKF9v9s1vlRCG420Zt1MX\nzADfPLvslCuXeRzFsosT6Xqd/THjxQeoCTk8o80yGHxKTaQp198NZ/WNpl+I\n7tCCz8gKJZwr7clgfW8qxjUYG1o+O0D6HM26c72zKXov2SSuV1I3RhUeQrBQ\nETWy\r\n=0pjW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b2e16d6a45e857fdec3838c3c09ee0a1c61d1858","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.15d65448e.0","@material/base":"7.0.0-canary.15d65448e.0","@material/shape":"7.0.0-canary.15d65448e.0","@material/theme":"7.0.0-canary.15d65448e.0","@material/ripple":"7.0.0-canary.15d65448e.0","@material/animation":"7.0.0-canary.15d65448e.0","@material/elevation":"7.0.0-canary.15d65448e.0","@material/typography":"7.0.0-canary.15d65448e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.15d65448e.0_1588360996709_0.6010964198054936","host":"s3://npm-registry-packages"}},"7.0.0-canary.142b1549e.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.142b1549e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.142b1549e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7bb9afdaf77a273141be5fbef3523df0e762430f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.142b1549e.0.tgz","fileCount":45,"integrity":"sha512-FRiqnkeri3C96eF3yKp8/COZ7yBJxLL23e9T0qb5AgLyvFh7yAOgqShRnP/lf0nmWhfcuo00gKhQUtfx2EguFg==","signatures":[{"sig":"MEQCIBDIf1JK2OD9JqzYOCvw+JT2iAFyxFEVaOuQ9EcdespzAiBeN8jQznnTUzN6AaBTH1Je+pAmChz3nilXkrWt29PxJA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerKRpCRA9TVsSAnZWagAAuWEP/37IrSDPt9QmShpAn1O7\nN3AQhXCWfE9eJZhf56+/n0TCp8CavwTPLdY+CITPmeat6iYE5Vr1PGrLsrCm\nIWF+DEgdJZkAfji3Gp73pdwGb2GIlKHVttPPhanU5d9X1fwZjflhWUUaeR6a\nkV/N9BuZzFQ8uPghRGzHuvgDryxS32rfM+Vhx+HFW8FQEcuUrc5tsQIEPXKk\nkLtUoH/KZR4nMHqT1GXGMnUCJKzzF1kcUmDHFdBJdKtoL2ioUhQ4Lkb0dBTb\n4kiLvmWfJVpaqRQHmUYksgmNPjgAbiHsYhBwk2ox0+iM+/bPa7AFbvSRwIDU\nCFWNtSQXt/et671wqYuVlN/jqI5N2t8q6TarjxAPGZaW2FSR02b/I5krczbC\ngUoe10P7ugY4BJs0ZArU4HvQl2bsrQ5px++yjTrzZMYNZXRV8MlXZMH/fBaK\nEDsB/EAfDekCpBIgKZXr/ECGYjkJfQm7RlrM4O6lHTN99UMuHmfLXkOw8BYD\n9T7GnKspvG1OKoTxEUeX6YpR/n/D02CF5/LRHlWIXrzx6b4UK5GkNo1QgMu2\nhyBnpGINUVVB5H21kC9jxFI13UbyehJoZLuvE5V2ahcPFMeQ/hkc+0V74j/k\nEebaUheK8PuAgZ/Elu6syc+mqwnJ67LczQdfiTtFg/IXpzH/97roJfRFYSuR\nr+90\r\n=2pNm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c43c6e2e74a4352aad7225952aeb9e7154d35751","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.142b1549e.0","@material/base":"7.0.0-canary.142b1549e.0","@material/shape":"7.0.0-canary.142b1549e.0","@material/theme":"7.0.0-canary.142b1549e.0","@material/ripple":"7.0.0-canary.142b1549e.0","@material/animation":"7.0.0-canary.142b1549e.0","@material/elevation":"7.0.0-canary.142b1549e.0","@material/typography":"7.0.0-canary.142b1549e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.142b1549e.0_1588372585425_0.14732405959261063","host":"s3://npm-registry-packages"}},"7.0.0-canary.524b7b812.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.524b7b812.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.524b7b812.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6cf0796815f25ed2e01c732a670462727be40b79","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.524b7b812.0.tgz","fileCount":45,"integrity":"sha512-pEuGot31kY1xW6MJUaTe+r0SrD+bURrxaZBnffdquB+TOLY+9K8V/g+6cwnEoLawi0Fpq0+JV14vnNXAQ8gBdA==","signatures":[{"sig":"MEUCIESAjM5jZ3CF/iQQ9Ttwrr0dRSfn1acZKVEyogxROBMDAiEAuuSi1Dtbrx4lXYzdurcyWYRw/Vq2VCsWNECO2UsFpsM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJery4HCRA9TVsSAnZWagAAmv8P+gLIK+vKxSmG5nddPsJD\nMrz+cUldk1cuAjRm41qJ5h7hPWc6u6Qcbu/lIf6S5nTrAWwQJw0ly6/+rk9S\nyUaNZ0WRBlrT0+lNDLG+FFDgmipfLcqPdvG1yp6VxKVXO1f6o9E3qs0i8lXX\no8SXgt3wtQrDbpWcpdMkOv0MUNlTbvGNwwfmUb/zEw2Sm96NQ0LUGvY6tbnH\nKrkuudlE0ATDJxa3rBX6mSp76MtOGYAQzxEH4NC06se0FLeBz8Zh49RKCoMi\nBIM4/civMnYupKcbZvjXOQVu/t1C5StT3lEUurfMSVoVUgw/2QF3nwxd5ueW\n4Vsc7bX9RlXLxOcdadKXMKeNeUctpfg5CpYIHjbv5l7uOZQGBnwWfaZ4IAK6\nRse6M4GeTqLBNiKNtg7l2rcCpgmpgeE9lPVs7/ipSZ0QRfLqizXntF+il62p\nk1w3Q2SuRqoZE+iBcqLPKBUeZ+Uv/SzBH8JdVgjaW9Zk0DloxKxognBHRjSp\nOqxRvkOGXOizK+RIFoiy1+wrM8OeBqnNa0otECfI1dTR20jFrBhPuomLED3A\ndCspB63TZPTtZtlOmXLkepVjop2Ssz1niRT2h+KmtSH8jGSRta447JmnIG8+\n00jdfxe37oakKjtWD2GMtZuNj06a5FdvlZ08Ixi93ndwuTQR2c7fQVflpiKi\n88GO\r\n=k61A\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"82ab8bbdd2373b285c315177e7054a727b38f4a4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.524b7b812.0","@material/base":"7.0.0-canary.524b7b812.0","@material/shape":"7.0.0-canary.524b7b812.0","@material/theme":"7.0.0-canary.524b7b812.0","@material/ripple":"7.0.0-canary.524b7b812.0","@material/animation":"7.0.0-canary.524b7b812.0","@material/elevation":"7.0.0-canary.524b7b812.0","@material/typography":"7.0.0-canary.524b7b812.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.524b7b812.0_1588538886821_0.4690065970475754","host":"s3://npm-registry-packages"}},"7.0.0-canary.bd8ca9678.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.bd8ca9678.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.bd8ca9678.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cafeb19f1f6409f9bd9de23ac30c51592e062c76","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.bd8ca9678.0.tgz","fileCount":45,"integrity":"sha512-ZdB1YY9YuNs0f7NBwY31jAvxJkvCtsfAqnefNhmihzPRlYpIaQG5s49mv2hepUj6i0TQ9sTkfQTP3UPowV9M+g==","signatures":[{"sig":"MEUCIHL4UgHYnowpHm/iac4ZnCMU1VokyxupFtL9zNy3jM6aAiEAp2cC/pdDBFYTIhitb+9kuPwOB6bblbrzDsxABVhvBh4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesE6uCRA9TVsSAnZWagAAdLcP/RXpeEK3rVsvf4afdsZx\nILxQzjnnWs+Vlf6qGxshq0pB7i/GDEG3XP+X1FUI9OQ9hFRUyQqF5zjmR1XY\nBKZtO0vpsIdCv/+FC1MypNLaTr3Pf+V+Gp0uTy21W/ZJtfJs/GurZR2rc+9U\nB0BOLpHzyiCqDnYZ2utABfkOD9Oaj6FRV7rYkQHL70pwDqEEthBQ8edHvR6r\ncwgS6iWLKHyNJg6y5qwfGSyR3s9m+pFOtAk36m5W23EeWS3Q/9m6VTJ6Qede\ngLSdHXmwDeO1s0hEVf9AXGIT3WgcL3CkAHuzJdFkPZW4nl2I3jqJbgbTJH16\nluEe1FtLO/ZSzTY0moPQVw7b7eG2Hhi49xP5+1bSW/EZEz9R6qQqA2N6EoTg\n9WDWxVcU2UAr2WGP9UTUMehzmCkrx+Xs+/hafAUNhadTM4TPKPfmnQivKx+I\nQ/V4ZqduFIuwbgLxGi/3rJJaN1w67aohOr4aQH8W5Y3HA8SPeSlzXqdj0X4j\nft02zQDW5dqopCfRoqtUsSZVEAiwrWzioh0dbziN8tlGaM6gOVik2LQCYuBR\nNKGQBxVIVPUJ6oQOJXa6/onwIjnOzmFRHr1VVLESeXWsVIVLb7pXX9y1jMTO\neFe45rFW/Wm8+kdZZlVBPegDwyIZS2/8X7knSho/TFs+KVKqMXl85nM5OJ6+\nS4LY\r\n=Ckc3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d21e98ae16f9c893bf27272d187617574615c417","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.bd8ca9678.0","@material/base":"7.0.0-canary.bd8ca9678.0","@material/shape":"7.0.0-canary.bd8ca9678.0","@material/theme":"7.0.0-canary.bd8ca9678.0","@material/ripple":"7.0.0-canary.bd8ca9678.0","@material/animation":"7.0.0-canary.bd8ca9678.0","@material/elevation":"7.0.0-canary.bd8ca9678.0","@material/typography":"7.0.0-canary.bd8ca9678.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.bd8ca9678.0_1588612781979_0.5343908375187534","host":"s3://npm-registry-packages"}},"7.0.0-canary.2553e86fe.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.2553e86fe.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.2553e86fe.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6f84b29d02c8f8881c358f2b579f0ef8a797313b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.2553e86fe.0.tgz","fileCount":45,"integrity":"sha512-KPSGQanHL6Tzq9g5fzM4Vl2E0xA0C2b3UFHRbcKMdBTaLAXv2RYcZu+IRYkolIW4/VjMMVoCX3Ackf2LBHSIVw==","signatures":[{"sig":"MEQCIHgmhlVEc/wJ/PBoz/yijK3/y4pd9uD/h1dgjLeIQKK6AiB1l+B2B2pjeaJt2HRc3ofV21BxKR9UPXvXuuBo7FDHdA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesFGICRA9TVsSAnZWagAAuPQP/2c7JY+Zz/cMVPyFgdkd\nm4NvSRuQfpE743T70zP9OiPLMFKFCH6oCECzGfTEsVEJgoSBUCEoOJbpCqiP\nKkqGpy85bJc4pYQnK/t71k1tTyOAaDQTG+WUtNNuDJQKe1/gJLWsKhlyuMtQ\nT2PCiTGDxi8bLYgO5CWTtz0GhF8Sd1FEWiDIZf96dN/VCZPsc49qnXLCvVfO\nSpi5gTXn0COaFswnYwrdo+U4SLQZo4yy+VPBu68izlcsgJBrAbxF4wXxjUae\naazJbBO1m3NLTxN5ZuoA5D4+zZ39PrJNYfwXTrfabj2AyxSd4JennM4vN7cV\nzDd8H+k3dhXkw/OQKlhWhm+kdmC0xoXYI7TFmQdnPuKl2Jf6/ss0IL3xswhI\nwbwhWHeN2zOC2/euiVY9SNdDiGPdTNHtg49igs/5Cz/3D6ZX28/35G8/t/C/\nwTOFpqbRhdoNY7eJWHvd+f4P7GhC6tbSMsDo9oivLX7FRxEyu/FAo+UMqrCw\n1sm5TQ0SlJqz55cDrDdddoC03N/UxiuSkX6WzCo2jyxE4+j/M6wsDeGrSQsc\nT1uJCaxE/aNRREPR4fk9D/fJShShOUlmyZVqlidBT0/W6hs7T8Sg7PoYHc6J\nTl+Feqneei3i1K1CU6/E0te/t6QK7/SO7rVPv+QoSDorrEikzCczXxd377jK\nDt9v\r\n=TabX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9fa3a214bf3d70eb6522a1f75e622d936e7c0273","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.2553e86fe.0","@material/base":"7.0.0-canary.2553e86fe.0","@material/shape":"7.0.0-canary.2553e86fe.0","@material/theme":"7.0.0-canary.2553e86fe.0","@material/ripple":"7.0.0-canary.2553e86fe.0","@material/animation":"7.0.0-canary.2553e86fe.0","@material/elevation":"7.0.0-canary.2553e86fe.0","@material/typography":"7.0.0-canary.2553e86fe.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.2553e86fe.0_1588613512384_0.12468569947642871","host":"s3://npm-registry-packages"}},"7.0.0-canary.03dec929e.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.03dec929e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.03dec929e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9ed321d9306eaad34b35f3713ce34a174f62b55a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.03dec929e.0.tgz","fileCount":45,"integrity":"sha512-lY9kw4IClLv2sV98HMSI4eIhmiwIRc9U6MFfIXao7ghDahcwlzA9HoBjzLWe7dPrdFTqL257+L8HCdOEvgm5GA==","signatures":[{"sig":"MEUCIQCqdQUHIChnb32HNq7S6P2uWfA7xoHqYFNIU3Xr7HBeqQIgIs02HyuJrphkEVOcPuE2F00g1e0anXvN6WydPnU7a3k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesKaSCRA9TVsSAnZWagAAcLkP/3d14u8VQLwZYds/0zaD\nY62lAZjcWdk30r1jYoZzBGJ0nQDDNduDnm2xewOWQl+rjbDKFvR2yjH+OvGe\nuSurefIpfhOHJxNe54SGYWkqkSxoA9filAHuIkHbLxdjFoYiQccN4Ok4XwUn\nraxRnq/yUdEv59xUcx3RgbpM2MLmlCXhrvgZAJFZP6vRCWxyqX0jbY2W3L1l\nZVS+f+Hj1XYVNIfRPvtgfeM2Td+ZBRqXTjM5Ge/Y3b7fkyX7zAftQJIGdirQ\nlicN0x1UGnnNXoR6QKAPxuWveccuG11RBZF9nNPnDGKv05ozfqU2xnPr6NPT\nGHYjrWKOKQd4z4DOJ6M63BODB8RCXbkw4mo668ze/bY3p+fSd4JMVglTeElf\nF41kpbA0eCvzXO5D+7bLn8Bo1NVzV+WNFSvdaQBG405wQqCXN/i6u5sLPitd\nvMw1i/CA8cT8fSQAlDZGiPQb6ExEzkvmZyuOkVJX0eCV5q+oYFkIRUnq6MuH\nOAp6xXRnvkyOaIrI1GnxvwIZZ1h27WjVaDi9m4a3GOisA8S5eO/jEPHCgF2k\nHVRHbEhXMp73imalm87L6rhnGcx8seV9VoQEn59UDWwpYER4OPXYRhzhCEot\n+jeiPilA1Pd/nM5DoGnwI2I5W5ZqF45oluihvwbiNpOUrhN0DYnSe5QGNzTG\nDp3Y\r\n=VJ1T\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"976244ee82fa3e080e074d9aa9a254e6428c90f4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.03dec929e.0","@material/base":"7.0.0-canary.03dec929e.0","@material/shape":"7.0.0-canary.03dec929e.0","@material/theme":"7.0.0-canary.03dec929e.0","@material/ripple":"7.0.0-canary.03dec929e.0","@material/animation":"7.0.0-canary.03dec929e.0","@material/elevation":"7.0.0-canary.03dec929e.0","@material/typography":"7.0.0-canary.03dec929e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.03dec929e.0_1588635281940_0.16633606224867958","host":"s3://npm-registry-packages"}},"7.0.0-canary.d92d8c93e.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.d92d8c93e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.d92d8c93e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d563f76067107bf50ed8ff8eaf3f032a89aa2ae3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.d92d8c93e.0.tgz","fileCount":45,"integrity":"sha512-1fCa1Yt8MzAKpKrU7OqsOVas0ZUXpQ6dPBlU0OEs+/TL3ZcqwOec1qquOB+zIkonwrs+KstfxLn5YUjL73mACQ==","signatures":[{"sig":"MEYCIQDPvd6dLlvp/Yk7fq1vNzmku/fwfLuOS9EDKc9lAG6bigIhANuBmLeSfDf+lG302HHoFwMUaLvxJ3oNsCOeWNZCNUZP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesZuKCRA9TVsSAnZWagAAhtcP/R8hf8ehEreg1q1FcFbt\nF7y5V3NzSi/hh7oXS4iCuUBu8C3lun5RED97yXA5jBcV/rq7DUpZh3MlFrgs\nefI37JmWnIk14zhggIDUeXp6UxM68ZTfKkzh6Gg2iUmpBKeIgAYkq3aysasK\n5G/Ay9cA0T9XUM8+PTipz/p0NFjqE3NuiYflIjncrFYbVtqznfbfNCwVLn4L\nVAPeq7yOv6beMdmlUjezNBgVDHn1oXCFJsQBEB2Prg/vz+irrpvk0gUaysUP\n5SJ+JovkiQHTnkgntNTCUBtatY3XsMcWt6qS8oqBRP+PW1EPCCjg/y784TPd\npCDGeZp6OP0zWmkFLFXpek+TwhXmu871hcnVYm8QVCp3q4iz2mq6tsq4q69H\nEB7S/89HjUD9LRaYFvHG8nUmbsMeUmCddsy2xE3ja6Q5642yNNLiyoAG8L2D\nO2V/r2S5T5ydgDOYUbB/63xHXb4/V9xPV0iunww4IUOIyMif4wzJMZt6wdRl\nrGn7fcMyBi1H1VmRCtX53kfGprLEeFUJhlmkABa3nmLrfnWHx5p8JrsFhFpV\nyLu4QQtWufMGhIwaZSW+AzxO1krkhb/pcxAn4vqYheaoXgPIZ1p8Yao5MAfr\ntuSMkrMSfI0cAoJFT5k3LXQvK8y5dme7nnyp4UAeUeoBRZoVNSPdvs2jlejk\njCwq\r\n=870Y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0781b5a0f14ce17201271abfff044630d170700d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.d92d8c93e.0","@material/base":"7.0.0-canary.d92d8c93e.0","@material/shape":"7.0.0-canary.d92d8c93e.0","@material/theme":"7.0.0-canary.d92d8c93e.0","@material/ripple":"7.0.0-canary.d92d8c93e.0","@material/animation":"7.0.0-canary.d92d8c93e.0","@material/elevation":"7.0.0-canary.d92d8c93e.0","@material/typography":"7.0.0-canary.d92d8c93e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.d92d8c93e.0_1588697994442_0.639766614265423","host":"s3://npm-registry-packages"}},"7.0.0-canary.09f591967.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.09f591967.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.09f591967.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"099bc98dcafecb87504bd15dd2c5a9a4f2879282","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.09f591967.0.tgz","fileCount":45,"integrity":"sha512-tC+9Rmq9uyrzautguQ+HvejafT5lJk4DTpF9EeOFxoi0h4RitRuZj4+BWbRY7i2Q0M9dj+T4uZ3cNpWwObBrUw==","signatures":[{"sig":"MEUCIHldn4P9VSZ20163WmwwYGXBjkIznyX1BWnTg6qHqwCQAiEA+9F8EOtJITg9z1K/QwLxs6jJoNHhP+thYh/O5pZ4pAQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesdUCCRA9TVsSAnZWagAAx5wP/iqLIgnFMmAN5kDMbID7\nkhHy9PlJVTVJZL9+T80T4tE1pdS97r05WxvhD5kj3peHQAEZjzIwNuTXwf6c\nwLHAT9kp3FnPh11GGCxb5YX6ejY3EFQxyZmLaVBuXSKlicjKgn5ZXfrT/xC4\nVRA/x7Y4MkZ8/5+FE7OfDywKPERT4YgMnhf701feAxCQnZRdcM3XCvbDFfjn\ncjZgVFxsYS74nPW8pnPgiZS292dXwDB6n9j1qI5hYSY7yNksHiIbSBSPDGZC\nPSsPzKxIhxHTXHhadsd4rA1/Bjibp7xrAUYRer/K4FsIirV0kJa1nOtUymcq\nIVHqmm4U+Zs3wtarXpeO3NX/HebmlD6iQ4BXA7QJ7YIYI9CmgkPllMOXOBPI\nPOGbBaHPSxUjxniGl2s1BWkLUfN2eo6ZXcG5MYdfeMuP/NZFtwYQohTxk1BY\nBUVofsACTqJLv7eheRoHPuTAyiAVzAAKAKSOA5Z6djv92Ir//RfIEI3ktfYP\nSZPXKMLaqAAIoAEYxlgNKzZM3iNUPiKPINMK1KNQ5ZLVnGdrK3OzL23uePAH\nqStxjNsSs4ipoomlFTSNLv48FtUbpdmFUGWM394qJTGfWFUnNp+at7r9aC0s\n7JaBAls63YshTAESqp3xFQJBIii1a+yswN2JOvusfQxfTgfOnin+3FLE8PGG\nQ2c9\r\n=qkON\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b1c5f494b8c0fe5f6f9710e50d51e2736a01b227","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.09f591967.0","@material/base":"7.0.0-canary.09f591967.0","@material/shape":"7.0.0-canary.09f591967.0","@material/theme":"7.0.0-canary.09f591967.0","@material/ripple":"7.0.0-canary.09f591967.0","@material/animation":"7.0.0-canary.09f591967.0","@material/elevation":"7.0.0-canary.09f591967.0","@material/typography":"7.0.0-canary.09f591967.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.09f591967.0_1588712706464_0.1948199404385611","host":"s3://npm-registry-packages"}},"7.0.0-canary.3846ce311.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.3846ce311.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.3846ce311.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f6f6ed50f4c94d14ec91bd16102c4437c9b54c3f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.3846ce311.0.tgz","fileCount":45,"integrity":"sha512-ARUt7fExv0nw/jajPDSMGkV+7rsLWdoYG3KRZ4EBQZxdMKo1rUycG0PEqNW8EOn65hCzy7aQ5e8A/gDW4gK+CQ==","signatures":[{"sig":"MEUCIHUrV5HZnxfp+m1pq2BgSgQswYCB12ueS3COC4njkQlRAiEA80pR07cfcscE7BzbkaE+478xXhrtXjTteq9am9XncIA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJessU/CRA9TVsSAnZWagAAELAP+wa0skoftinrkmBVjZtZ\naF7b520bpCiDwTspFZBKe3kqoisAtH3QtfBz1BK2NnWyUYSKQd8XoWS2+SSW\nPWU6v+PZUNxbzI2qQ+TQQGpWM6E/UrX0W68SOXD2m3RU4y9VdYCe16eTfTDA\nceUysVtCtvGXF9PX9hT4yRefPpw6C9P5ru3aVcF+NXSBJuSNBeWe+7bnv8tu\nWUvrRZNLRSC6U+T4zku9750ZnjGlokl5bV7YfkiVnMMYZ/CzVfLrCiYaRNTz\nrrVF7gELf0fEcdt/YcdW2RyycSNBd6KxJuuDSsyJYDPTtwIHeLlP5J5XYTQg\nsKIOTAUr1FGv62khT1+ADyxElViOSx5FqRNhBFBhOG2vh6i9aAYykkElAjRV\nauwTzE+BciSFLFG0BSL8VPW58vIge+yrVdBECDB97yTDtbW8jjRtBnILpw67\np9v71njTHvpC/wvF2/xOe7t6vvSZOYDD5Gq5oEzYazYrAd0Nk9EOT+PzVUjh\naQLfpKCW2DSsL4I2PcPK5XQYdsLQVK4BYrJEZmzeeCoCYXt0wkbPTLPs26Ft\nSjrmwnaUnsOVhWsg6YIm2NzGAQTjJTAr1VU/oTEB611pwU+78eZd5iag/ivN\nCq+gcuqUVsrKsUf1CsqSbelLQVxpB2O7dtJ85o6zNjvKxYJHjknKdPcV7Y3a\nZT+Y\r\n=VLmy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"80b3806d13f75bd5b77443c9e504fd6468a5820b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.3846ce311.0","@material/base":"7.0.0-canary.3846ce311.0","@material/shape":"7.0.0-canary.3846ce311.0","@material/theme":"7.0.0-canary.3846ce311.0","@material/ripple":"7.0.0-canary.3846ce311.0","@material/animation":"7.0.0-canary.3846ce311.0","@material/elevation":"7.0.0-canary.3846ce311.0","@material/typography":"7.0.0-canary.3846ce311.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.3846ce311.0_1588774206818_0.9937619088117766","host":"s3://npm-registry-packages"}},"7.0.0-canary.ed7f32463.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.ed7f32463.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.ed7f32463.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e048ce1f392ffbc042176f752694e17189aa3566","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.ed7f32463.0.tgz","fileCount":45,"integrity":"sha512-A5d1vCBNa6D513wZxnxWfiz8NJvXSt7QCEkmsnDFDfHEcs3alEqVEhKANaSp5tnNqzKbCYUwQngUYzGL/cjgEA==","signatures":[{"sig":"MEYCIQCH/oke3yxUzZ+t3J01lcOsErVJ4gn3/mqFM7Yh2/uWQAIhAJHxzz2EnFVY3FHHtWY+hvUthpZVORQe6ZvRbeLXBmiP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesuD/CRA9TVsSAnZWagAAGkkP/0NwH7MEtX55x1WfvMfw\nHj/D/g1F34uZAyftWjAcl2cRiyNimGwKLlAkRDtFBveDYSBN9L0gmOfPQMD4\ndnnJUoV1L1EvqGWk+jpqrYOnQrHqg3/O/vBlODwSAAh7hJibOGAA/Ww7Z+3i\nPBPjrcvZkKVk8tpJRCbauU8H7JOfElyE519kIlk819K3lKyCWUzGcKPE78Kz\nlOeAatPxI1bfQvGocGrrGgaPy9S4DegYY/4K2VWJhuLZx94rzaxLLcZqQEQ8\nFouPlzttTdJ/GhH+adBQPax+jaWFIhClZD6ofpgf+4R0QyYb6AUr8r7dZpCA\ny1dOZy5Eo86pCQzL7SW/RHg4Kocc9Iz8deOyWfnL4kjeXTghEmoSN6cS65U4\nW4HWdK3HJQc5HyiNi9gW5Tk4QEli+YNopTRTdMFnqdU7lRvNvMoW62aI8tZt\n/HCebc5HmjmsTlqY9BrHxqFU5Z/Bi1DPhIFpGBJh2E+0fjhrRnhoqXSZfdrC\nGu3BAWe/qWyhUN8pSB/rh/EDo7n3dIV96SCo4Kye5ckRdwlKLhlIIW8pckgK\nNHgsPjKnj5dXn84/5vCY2N8hlFI14R8snLakZgwDRHkwNcN1LaOoQtHo+LLm\noJUx4SYT0OVEWtTpydOar5CFRhmR/9/ZuLubzlKrDqZJcyLXvoykaOKyppWA\nUl+g\r\n=7DXV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"84dc461d7b4d6f61ef286fa2ade4f3d05018af62","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.ed7f32463.0","@material/base":"7.0.0-canary.ed7f32463.0","@material/shape":"7.0.0-canary.ed7f32463.0","@material/theme":"7.0.0-canary.ed7f32463.0","@material/ripple":"7.0.0-canary.ed7f32463.0","@material/animation":"7.0.0-canary.ed7f32463.0","@material/elevation":"7.0.0-canary.ed7f32463.0","@material/typography":"7.0.0-canary.ed7f32463.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.ed7f32463.0_1588781310417_0.39041206801216477","host":"s3://npm-registry-packages"}},"7.0.0-canary.8135cc085.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.8135cc085.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.8135cc085.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8cfdb31284a699c6b31ad3f9fc0b5eeadc88f1cf","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.8135cc085.0.tgz","fileCount":45,"integrity":"sha512-kdSLyDuKLATNt2CnGEbBDF8NlYxkYtd1txPpEWNO57jZnisLvrpSQVNd6CyEfWyebUIA+qcv3CyUbllB6hc3cQ==","signatures":[{"sig":"MEUCIEp5CdBUm+85KXT66WJWU3bPWgAKAsdqXnk86RQhB/rtAiEAjW1MosnyNBz5FLpCRZQz6Hzf4zinHaBuAbNzxerX3v0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesxY+CRA9TVsSAnZWagAAm/cP/1O8jQH7ebU9YHsW6UrI\nnq86WzqtonGUmkh0UQQoU1V/wr1zQYbXKwMt/UmJIwlG2xmdwEBwQ/CzXTTI\nZjJg4rBEvGcQHq+hcLqaBfhGuN2FJK+SAKvmDyQbS753sMCxBWTO8gs5utM7\nVgs2GzhQQGTuNjrHL5lpEPJ0+4oC+s6ogQ+QrXjeyhCPJpAM647GA/ofHBYp\nMI7I/2wTD5J931iKCrpVnc3lSLRJ4PlK0Ryhj5SR75SVxwTy8zVvzyWrCEgf\nS2nCXj7UvNBC3L4X13cymDHRl5VKyM3DiWBanfpaCmUJQvwnUZoTjwwCxp22\nPyY9PioTNpe3JnWlNoyVNb5PdMoOoxj6RoRFhRJ3KYUWOY0arQsWIlaOwbA8\nKTp9LL/pvIA6racqffSWIvRMt3MowYPQe826GvBzqPmMzDjf0yFmJnOdcD7r\n1OlYy5C+aCNzdbo0u2Xx/h5SNYGdLHCNtUg+FqbyweYfsxGQl9kF6cTHy7/N\nRa6YTXQKoDTfpla3wUkfeLqQdg/ib8Q/MZ0+XZb+H5yhBgPVn14F5fjruFdb\nO2EWXx4OGolmhbcqkyd9LwnMfWNhhTjnb5WaQXmgA6delqj0iuFAMcnNirur\nPjxfKjJoLhQfQa7LFHBQ5c/ak1nDbo27xcRodTTZ4AVxw1LJ1LN1XoRN6a4N\nUJOA\r\n=w9Mr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"56422959574aba25d1461d4e7ebd168437ebf9a5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.8135cc085.0","@material/base":"7.0.0-canary.8135cc085.0","@material/shape":"7.0.0-canary.8135cc085.0","@material/theme":"7.0.0-canary.8135cc085.0","@material/ripple":"7.0.0-canary.8135cc085.0","@material/animation":"7.0.0-canary.8135cc085.0","@material/elevation":"7.0.0-canary.8135cc085.0","@material/typography":"7.0.0-canary.8135cc085.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.8135cc085.0_1588794941650_0.653634598543491","host":"s3://npm-registry-packages"}},"7.0.0-canary.deb212de4.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.deb212de4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.deb212de4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a38d46ef1d94c557ad1643271e8e2d3f5e60abf5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.deb212de4.0.tgz","fileCount":45,"integrity":"sha512-Uf/RddjGPqmDovUPhOH1NpAbDN/w8GRKxHhWKHhSCGLTFaxlulOXUx5Q9DBlt+5DnzUYvn82+r2n1FoueAkEhA==","signatures":[{"sig":"MEYCIQC0gUGUXBHfkSJM361R+mlAOART8WOwl1iACeWJpdTaCQIhAOodVKxMcoYt7fp2ZArZg2ej2A7W7d1QpGt0/6B4zLZV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeszfnCRA9TVsSAnZWagAA5IsP/R66lSKpjsTdfSWm7I4J\nUvhWeBPmbDVHs1UmwURkjR9f78T/NKPofVtKIW2kqVmFCr21lu53CV3mwiMp\nU7/RK/eQaKlQI6W/K7Bry3P4siaHbKd2Mpikt3+ygtEFniTzbr5pb8gEEM21\n1YXQ1wNmxq0gh+X28N4xWujmidKHWiERGTstFmjmXEFFLNCWZ4p1OjjZ/ngd\nY0jihJk/IpO1sQ8cpWW6VBuNeQVa1UVTUNnQBMYyb/6S8+CBgpMANu1202ZL\nVCTkf+LDVtpDqqHmMTMjODmmEsWpOuvGW6A6K6I/SbslrfiDVe2qb1NWyHW9\naYtkpWNJ8Ut/3e3lNkjJ5CJ1X8rEs5IShwnn3uSGqm1OuiGuQbdphOmOCPPP\nZz7mV5OKkFc7MHG/GKCHLSQgiN9/X8xlwZRiyJuQjyH2kVZyIQQ52sp6LAPt\ngRX/JuSwhyu6pVFiCco2aiSDzNEvWAymxP/MaThASmlbmFUlHNF2W+7ZEyS7\nvArzy+bKWJ6liRMs5QBT9os6vR5DfDbaUxCI6Q/G1soK3YN2vfrK5ZCY8Fmw\nJhQ3NQ5aZzNK9k6DwNgeUVMpYNaNdxiwEGKJoAPg3p6LJ+cll3dJhxaWvQHa\ncL8yXB4Rcl2/93aP8UMKBKm1mfqXuzH1CRSOcV66ny2VSjdUhQxmHJa9DKIK\n5xdX\r\n=yuOl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fe9c146f82589e5f1c471dbb4986ed6b3a7caf54","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.deb212de4.0","@material/base":"7.0.0-canary.deb212de4.0","@material/shape":"7.0.0-canary.deb212de4.0","@material/theme":"7.0.0-canary.deb212de4.0","@material/ripple":"7.0.0-canary.deb212de4.0","@material/animation":"7.0.0-canary.deb212de4.0","@material/elevation":"7.0.0-canary.deb212de4.0","@material/typography":"7.0.0-canary.deb212de4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.deb212de4.0_1588803559067_0.5676929538941315","host":"s3://npm-registry-packages"}},"7.0.0-canary.f83e00898.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.f83e00898.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.f83e00898.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"29a5858ca5c7987af76dd29be2dfec617c32e59a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.f83e00898.0.tgz","fileCount":45,"integrity":"sha512-zSOwX18ctLiFMwgRY3zimnAAgZFW4VB1FAVp4kTTvC3tZXS/n9O6rrYHTbgmXTtZqNO3boMufHx19wj9xq/yHw==","signatures":[{"sig":"MEUCIQD6Z58cVmFQhRyiis/R2W1zp+HrG5XRGNKOXIn/zVFnmwIgaOhgsSi4s9Z7mhNDbgxhX6Gty+GBBQVGLE+o4kQ3uSM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetDw7CRA9TVsSAnZWagAAfFsP/A1rTrg+wPyy/0ChSKE8\nfwQQW6w7uYLY0U8V+D2Peb8w0xPFGWf4qWTl0MxJPJ0B14MWN/HYFWcsk1yt\nuc1u9QmoofgDDD5Rv+H2E4Yki6m75tTDeyP8te9lTEj4USLMB3APqqSaAxTp\noJ0VxuE6fgdvr8Es5JV7zUJL/otKd9Ouel1joiCszznvrvS0t9BT6pgPD1x+\nPCntO7xQ7OLbZTesNzx8sUwheOffCPWOhwZunMJt/Z4BAFjZYTRKxXWTwP3b\nWfSDXnVWpfupATqIiiy/z48P7/q3TMvB4LONi68k4JqWSt9Yjt5q8uYEpOqc\n8W3VGDMaP42ev3L+3RzQJb+tm0ZA6Esy8w7PdZJmuAogthzKvZRCYYCX7h8W\nu0F46wYiXGO1zCb2ZPvs87Sb/rHLJuu51ZQ5Q/481dDoydjcK9nhSiOcSVjz\noBvwd5+FjHKSEmKuHVVUQaDrjtUlKscreXD1T12w7ZQsYKUkghs/g7DTB4cx\ncq6UiWuPwaU1Pp482TgJ4p2AAM0VK55tXxm/N49ahcresktqMJ0HifkTW4B2\nwUkdMFoTLRH3JI1QzuCxeMznyhwqD+bRV7q4DwRiAuxj+W6m8qCZsbl9mbUo\nI3eh6jNt4QycMaBP/o9LoTkKV7HYplVr3HiusTvgBSpEnegXHuzMdQ3NfsAK\nHiSx\r\n=3kCq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"02060afc2f5dcb762e9083970f865f1c714a38f3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.f83e00898.0","@material/base":"7.0.0-canary.f83e00898.0","@material/shape":"7.0.0-canary.f83e00898.0","@material/theme":"7.0.0-canary.f83e00898.0","@material/ripple":"7.0.0-canary.f83e00898.0","@material/animation":"7.0.0-canary.f83e00898.0","@material/elevation":"7.0.0-canary.f83e00898.0","@material/typography":"7.0.0-canary.f83e00898.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.f83e00898.0_1588870202419_0.30035927602376566","host":"s3://npm-registry-packages"}},"7.0.0-canary.047e6b337.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.047e6b337.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.047e6b337.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5d61712092e07f444fd0a6db308d02a08058110f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.047e6b337.0.tgz","fileCount":45,"integrity":"sha512-HXfxTIqP1Tat+tPRfkieWmLJCGvf6KcobAfuGmDmhzWvo3HaOUcCXSPR1gWm2XFTOz5PVkAwM5NyLUmTWn36dg==","signatures":[{"sig":"MEUCICa8jz++QK1j1U51rcn/Cn2bcXwyRuvcIU++bX68YBeUAiEAvAQvfrUmYv0NS6dUSUrhNCWe9kwFdYEVs2N31nXhSJI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetadFCRA9TVsSAnZWagAAtwcP/1zV8o+ZmLGdhubaCYyL\n2Bh2wnM0Cc6m94n9blWEnbTslALyOX2xDOqGCDf6n/4a0AQ7/4CQT94HmTVe\n7SzTJBJo33itBRXxG7CGapMqCHV/zWZExjF4+L0IDo6S1D3d17H1VD+6j3nF\ngbZ3S76L91Nv8WCwkO8YXwsYZvDnDMj99tDdYoiBZ0FvhoXt0lOYeVkQ3mbt\nnv4Y7U9p88UDb3mwnlVS5tSF45TyxfbW2287JwqzsHfjwzHefsRsSUqyJs7/\n8TpIOf21UAr5ibXqV0gU/Fci4l9UFbayuKfz74rfAXsmFiHjsgVMnI0VO7gl\nlEBVJ9w2MyKv0EzWlUiqzc5RpsNOyuv4qucQOBet4zrLdnE87P0YOx3195cH\nS5SDbQpAJhiDVU3QDbRyT2FfxOrisMXSScyX26HGTUSexBojLtjJQ5AbbN7M\n5iN3/oweLajL+v3A4i0CpISASKgWdMAbgQh0bE0o4ZuNCj+Utk9flH2c8D7M\nynJsnkmNDmxB+gQXcccp/MIfYF6aNAniZy1p0MzuV2KLOnSpbDLDevuEdKDP\nNMvZKrHUwdmbTC2tceJgY6W3SeP1nsn6ci+1j2c9YnXyqyove+F/Rrriyv+y\nCNz4IAI06atXYF9wDi7Ev0/Mu8nZnmhWhppEewTZrmnotH64hqC3OdRiBGzQ\ns2Vd\r\n=Uci0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2be3b5993e14d0bddf55fdb157837e5593ca217a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.047e6b337.0","@material/base":"7.0.0-canary.047e6b337.0","@material/shape":"7.0.0-canary.047e6b337.0","@material/theme":"7.0.0-canary.047e6b337.0","@material/ripple":"7.0.0-canary.047e6b337.0","@material/animation":"7.0.0-canary.047e6b337.0","@material/elevation":"7.0.0-canary.047e6b337.0","@material/typography":"7.0.0-canary.047e6b337.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.047e6b337.0_1588963141021_0.29829720865408826","host":"s3://npm-registry-packages"}},"7.0.0-canary.119e21426.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.119e21426.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.119e21426.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"abc5344385b4d4985911cb32d83540f158703eb6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.119e21426.0.tgz","fileCount":45,"integrity":"sha512-KyoDPuFi4wcXJ9kGyAVC1giW2ub2K/5krQ/zbeNylB0EFfeFBKa+HWTQ7zimBD6I5DwcvltbUvXfYVDEyFV4UA==","signatures":[{"sig":"MEQCICTJdyohl8woTFhD3kJpuhhTdAZ7dxCwYVeTNSHAyviTAiBsMJIBwuf9bQsActePwF5TCTVm6c2upMOKXNJIBJ44jg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetb+tCRA9TVsSAnZWagAAQDYP/0VxKyQXIrg137Ij4bCs\n27d89C/xgkaihj0ktkWBxdRnYYszLxyQjU0SyLlOUVC4y/hoi839HIAx68JD\nv8lVoRQYfTJF/bZP24X1qLIGmwDZwalvkF2GCGbtzzIdRUvwH2yboeZYIzq0\nW8lcT+7Hgar4WfJVwIeC+dBzN80+LkiXaYeIET6JUYJKRXWGkFY3eq7dzB35\n5XDN6uJ4RFEpKqbTDzVpOyAjmrmkoFXs3jV9iE92FIwE6y+cVwdY3HwHjAbw\ncHPE88g6p5mTXfNE9qCnC1LI4ySl/SbQNNFB/saA8XpmTq0iGcWre9ALkNvl\nfoj6LllO5TCT+pD3QZ9nfi8I5inODxEMYSvaFiN3cICiai+Lvg+K+9Hg2205\n4gMs0UGccGlPWopI6eSx95uqjyuJxbcbpUcVHYjsnf0yfXVHcsteoIQfIuqb\nAhgKG1BVJqg0vdnZFlXx9xIg/4yPVTpJ75Gpo0Rt99+f7V38Kv+ggzT4w5pq\nw0XhAyzjZpGEcYKImNgZ46Pm5nl9m3Ujt7mXCPS8CGkJitMqR5L97BoH1JYv\nfxGuJmVzeXSIm3+K0pZ8CAdwjUGQjfSDW2Hlvoaf78gKeDxIOax9QcYwf8HW\nMn58ZdqK/2aqx1HIaH2DCywziykKpZSR/Mxzi7DZB9XTGbkUigQJO7CbV4h4\nl2YA\r\n=7sEU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"693ba4159b1a25af6955ffb1ce0555d7a989aba9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.119e21426.0","@material/base":"7.0.0-canary.119e21426.0","@material/shape":"7.0.0-canary.119e21426.0","@material/theme":"7.0.0-canary.119e21426.0","@material/ripple":"7.0.0-canary.119e21426.0","@material/animation":"7.0.0-canary.119e21426.0","@material/elevation":"7.0.0-canary.119e21426.0","@material/typography":"7.0.0-canary.119e21426.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.119e21426.0_1588969389336_0.5205282163784162","host":"s3://npm-registry-packages"}},"7.0.0-canary.2f052d824.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.2f052d824.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.2f052d824.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e3ad292d51c32c03e5ba02711636af5f0027f4fc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.2f052d824.0.tgz","fileCount":45,"integrity":"sha512-AvVordZn1ZreYu6N6gEBTeKHhxPA2l5JjSrQ31s5TGzPKN04Wu+LnbKw5+IFxB3JxFN0HwcEoqptCMoJDRg/kQ==","signatures":[{"sig":"MEQCIEbphgQ3rTaUW4e5qvnFImyfUGtJ4CIb06uywJ6rpAYAAiBhyppTUEeTpe92A8ayewf+8gUDUCBRhvVR62sA/jtOSg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetco1CRA9TVsSAnZWagAA1ecP/iF+iiK3ijEnmgeLiQxy\nqtTxDS5PnT8m8ah7DndJpCWaPftFSjjGV/DIVoLTkGSrF/STG2iPRcbaK8kx\nKDetS2ELzHPToZgW8259bF96qj5s7trzkf9DedoSZFaHSkDB2jVIOQc+jQAa\nx3KXZbm506XQ+Coo8N1YTczQ4N+nPMs7yiYV+opypGn3J6yE3QxBiEBol70x\n0RcjS1gqzd7hRjayDoYU4c+kvJvO3aq1YIdMAPNNKqGMEoW2n9gH0lpglACK\nP0/iCmum0QG088oxojJehWFCT6RIX+cgNQFtiJO8BuA3S65NwhGEngHerkxY\nTNmNj/IWAwPJ2GcKenzla/9zmU42L0pedAtx5ckB/L2iJ3sT3YWH1Ho7SM6U\ntvZg/VgEo39i8kaKOHIH7+bqkVqTwrHeKS98FcZl3gdPJ56eGHPqcFwzZ8ah\njKm8sPa84CU6Gluf5+9f2aKwjd8Jn+UvfprfMyRHPk9EHsA+LAlntNgZHTB2\nlSDwI/QYyTMEFTXOfogYyOEIn7soj9wYJGU/jyxT7jL072yBuUS+D0ltuRJC\nraxLkPqwcga9uWWs7Ng6Il8xPKTkQyWCWefHVRcR4Gut5CRl2EfeBa9lluSe\nOC1shtiEe5/9V3XN3aqQ4yPfb59tcg3XfdHRlWHHS1iitUfsMpBLp03RRqT0\nbdmJ\r\n=lJK0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e3bfb78e98db35607ba75f333490d9693f14e844","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.2f052d824.0","@material/base":"7.0.0-canary.2f052d824.0","@material/shape":"7.0.0-canary.2f052d824.0","@material/theme":"7.0.0-canary.2f052d824.0","@material/ripple":"7.0.0-canary.2f052d824.0","@material/animation":"7.0.0-canary.2f052d824.0","@material/elevation":"7.0.0-canary.2f052d824.0","@material/typography":"7.0.0-canary.2f052d824.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.2f052d824.0_1588972085472_0.9523198448561707","host":"s3://npm-registry-packages"}},"7.0.0-canary.e84444387.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.e84444387.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.e84444387.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5096ad6384686c1148e25cfe8a505bcde7f6fa2c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.e84444387.0.tgz","fileCount":45,"integrity":"sha512-THAvTGt/FpSxVIhJ3spM7qxwHcmzfqllzGwz3cH8HuSsKPYFxSwAFuXJlgX2Sa/IeVXFh8q3TpS5IvvOGrCNxg==","signatures":[{"sig":"MEUCIEfNLkBOv6QAxL1jjfXfYGFYuZuXwZj4nwPU4x8lGnfeAiEAxSSQ5S8xoosD7RVTLIvMcKmgthN3LRZeorKSf2aLWeA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetc/aCRA9TVsSAnZWagAA8SkQAIoWnXHxna9G8II0hdc5\nbaVkZACkZF7w+wTiKSc3MsDYEJNhY+R8/Llm4mjPA3yCvqYnr6Kl8qVYtYSP\nIYcZj/H5t600EFP3tBS2ob9o124wcBhOGrTTlt1HQsnm6o+K1HoyxkWLSyZb\nM1p7H6mBh2ftNJlUTytw9aIQxFGZscOUYLA2BNH4CO8AEerQb/JrfinTX+vY\nXipGXA0m5QxZVjgU5+phMBkl4sfmY9dJhGy/kwrsTOinB1rYmqk6P9K9bROm\nWRytfJUP3fn+a7y2CE/cSetLzBiyIWT3gys75cGWTqurqbGbEFG2QH0uvHzE\nqRFpteZwrmInQWp4uuKeVzhB+jx93gKD2+LPcuelQKgWbOsyKkjBB3yIASBH\n3P++uWvsrvgEVp2SKIO4RXcxGkQiLSMG3mADZ00cbo9r6kDorXvKUWjQ4tsD\nXecFhqyflsfODiV/5q66+cRnomxZaFJxZ8piVy7sZMotQNMAytZkEMvtTdp8\nEPJSz3cVW7JP3ML1TZqPzTAK6wWPd27QIE/VmComThoJmLzteM01ilPodVU0\n8qvGBOAHmhLlrFAf2vTpf0bN/0j0JU5YxfLMY+1k1Mk6SjuQu1qWBbkO7L3B\nY3EGvZ3HY4GcEegXdRPA91CZJuuxxVVUkSU9arppmGFh6S82KQarme8Kwqyi\nijBb\r\n=NQas\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"35f59683bcff8d7b2e79ea4f582488d0d86b0b97","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.e84444387.0","@material/base":"7.0.0-canary.e84444387.0","@material/shape":"7.0.0-canary.e84444387.0","@material/theme":"7.0.0-canary.e84444387.0","@material/ripple":"7.0.0-canary.e84444387.0","@material/animation":"7.0.0-canary.e84444387.0","@material/elevation":"7.0.0-canary.e84444387.0","@material/typography":"7.0.0-canary.e84444387.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.e84444387.0_1588973529436_0.7328687242674037","host":"s3://npm-registry-packages"}},"7.0.0-canary.893eb1876.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.893eb1876.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.893eb1876.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5a1ba3e479bc0c039618a60163e987c64c177dbc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.893eb1876.0.tgz","fileCount":45,"integrity":"sha512-QlWcNpYjaR6+z8nsLQF9TUd3JGEpVLVd+03Clzf5garOFF2maRSswjwRi+ujaIWFRlpO2TdhQk7Qf3g37L+m0w==","signatures":[{"sig":"MEQCIDvZrlA/Lx3a0CCYKPlInCEYb7WorjvaTauQl6/ETn0OAiBHHpbbkEBdrKSztIlbM5N4CtR2bm/pUvYfvx4Si/Xvkg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuV2gCRA9TVsSAnZWagAAmqgQAJLmL+sPRLc27ly3raMZ\ndSqJk1Rv7BBtdxw9lkyWYUtIjP0lpmCZYZge1ShqkghYGwN63z84tUSWiL/P\n2lhb+n467SFK6JDaBZ3R8YLYagXaMJmiZmS73G43CvkI3WixNyZbIC8L5SP9\nUrW3mKYQHbc2AnJecDLAwBeJP40O+bEddmiEQIQC/m110EJ+LF4fRl2xe/zH\nkcRXr6FprQ9G8zxSNq7b+Po2h/JegmG6mvIdKRltqQ/KQcxp8FvaD0j9yT1i\nPYy8ijiTYECsVhuCvVmJS/O2wi51bye1tmtFSbQA4A+gBos5ZLJGbwo1u1T2\n+uGKZ9sp3kGt7PkSwKg4Z+2x8LVmH4whg8W0vPtjIpMpWGcccxb05PT2oFEZ\ny58vE6b/T7Q7PPfT7Hp6tHcRxGy3iCT2T61dWuJ2zveUuc8tEbtq9fWwEhEW\nn6fgb0A64WlpycKzE0mxS1W2prMd62JTZSVPwQOFuWKKXJZh/Z6bNj15uQpw\njJc5DzDIm3uTWPxS4ANbKgo61RsOFFz2aLtJcJ0dSPiYHa5wv55B2sI+Icgm\nNy3MwGvbfM+OpUEK0lErLaIuy06evF4yIA9KGilt4BcybSdV65qUaI4hH5TC\nz1rCNUnuKcYhX0cx5mYzDfUKxmXvvHKxEXQlxED+2+FFicS67tW9MUsgKcIe\ndyF6\r\n=K84H\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4bf9fb733753ef4cba5683a95a2f2a71a743a68e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.893eb1876.0","@material/base":"7.0.0-canary.893eb1876.0","@material/shape":"7.0.0-canary.893eb1876.0","@material/theme":"7.0.0-canary.893eb1876.0","@material/ripple":"7.0.0-canary.893eb1876.0","@material/animation":"7.0.0-canary.893eb1876.0","@material/elevation":"7.0.0-canary.893eb1876.0","@material/typography":"7.0.0-canary.893eb1876.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.893eb1876.0_1589206431601_0.9938420497737124","host":"s3://npm-registry-packages"}},"7.0.0-canary.a5aeb3001.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.a5aeb3001.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.a5aeb3001.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"479a3fedc8dd8b30585b01fe2388d3a7797a1d5c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.a5aeb3001.0.tgz","fileCount":45,"integrity":"sha512-jmKmHupgb9o2Osj1qefhWmjKUGDuz8jwcQ3OBlX2g9AiUq7TZjeHgJdadjPhNtME9ik+D0GINZPlIrQ+qLBZgg==","signatures":[{"sig":"MEUCIQCUsCGz3uSQlKiyhs7beqLUsE5ep7BwxTbi7NVWUpQUVgIgG1sMcDIeOAlbEQkWMJTcs0YiqTLSW6cicpEfltrIa1o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuWFjCRA9TVsSAnZWagAAAKYP+wf6zsfAQ8912ELQjzQP\nDmFkU5TRvazr96DZzvaOVfSerODpSji2/SR4XV487No8CazlC8SEbVKXxT2G\nJrtQUNZl9savNS0rY5HSYIFpC+nNetWFxWqWDYYUX3T4VtE7eHAv1tnHiQqH\nWoPtn4rKdXBsx1HOmvmkx9kQ3Q03/sWkvOPugEsR/Z1GMyJDA9+sfTl1vwWz\nlfFIB+FYBS8dDj6Tlip2P1jgpAZUk96a0PVV7JJl0ZP6JQhFbgsdzmI+UFx+\n0xv47h5APY+1l5HsmbCJhhaglfQ6nPBaxOLS7JtYfs1+ZEtshSZSIJt5/9lX\ndlaH64yDHS602Jp4Xihox786tj05jkBs5v408p7efqRlQQxTBBwBld3+Sz/3\n06+8lGCRjI+yZDT+NMISPGuYz6vlOy9R9XJxzzKeUl0SJCkdRatljlNEsfbY\ny/VvkkMPnUROJTipv/IaZXoZB/lVA3aMD4jdlv2k1QEZ8tXaGVy1DJrgC9u4\nrAIzv7GOrWqAvRG7yS9WXrkAcDiX4mKs7TaArTD8sFI3PFvSXylOjadoM33C\nk7kZk7G1jSG8qu6j8S3848RcsEYg0wgzIJ2WWvE0GltHOc9DCtrl+tO9mHCw\nHfr9qe6BXO32CMXDWYMQ/Wz6+MM8N4YxrePYlH77Z1F7pqDFKelF5MsK2CvB\nGO2J\r\n=/aEH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"01ce640dffe32b7838dec108ffb4d0c40d3e7bc1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.a5aeb3001.0","@material/base":"7.0.0-canary.a5aeb3001.0","@material/shape":"7.0.0-canary.a5aeb3001.0","@material/theme":"7.0.0-canary.a5aeb3001.0","@material/ripple":"7.0.0-canary.a5aeb3001.0","@material/animation":"7.0.0-canary.a5aeb3001.0","@material/elevation":"7.0.0-canary.a5aeb3001.0","@material/typography":"7.0.0-canary.a5aeb3001.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.a5aeb3001.0_1589207395340_0.4304906793354437","host":"s3://npm-registry-packages"}},"7.0.0-canary.610c68d97.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.610c68d97.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.610c68d97.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"322c741b84347cac6f6e3c4d5f09a6e0af2ffc2e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.610c68d97.0.tgz","fileCount":45,"integrity":"sha512-P8CZGLzccKdStxE55Ren1xODALXzsZoDqAtArCVVILnLh/zQwIiZ1LTICLK31IlQn3NmsoI9+VH+o0A49Ciulg==","signatures":[{"sig":"MEQCIFTE7SsV8l946lWVYpfEYVCbKLphFh3o5m2E0s6oUuuoAiAmRjR+1+4O8jmr1iC4XWrz4+BKHaWdJdEq1mjTjFaVlw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuah6CRA9TVsSAnZWagAADNIP/027NR+H4eIwZ4i2mkEB\n76OWNcYyTA5NMxiVYp69IGr/Vd2P7R3h4l/QG6qyTfkO3UKYuBp21f1iEgpv\nafYUohC3zFnuMXacSiyVk6EcTU9y9acpb+eROsCTQfCua9rXghkQm32ZcHl7\nSgKd0rBc2w/KwqdB3BVKj9QzWTNH7MH4zUH0nDOOfAM63IP+GNxaNGMDneLM\nBLDoPdJijRyuxfL6WfH3DFTGo8ZSQux6YXg/dpD5WzbNB5XBSLOQV2NPKMsS\nfmXELTW/z9gU27s87Nn82pbFHa6nnSeI5N6k6x4OUz8KTXK//25cdFVEouXl\ngNJS4lub09CObH2I/qSTgDEnQNUSr4bqmyjoZPSfjVzEMXKuzab7KDmivKDu\nO4LywbNBgmKXkCV8wFH86/g1cgzXm2hGowG2iR8vsynjp84VtcdPKmb1zpl2\n9u/sRcB3Ci0vu+VAecqQFkSAxlqAcAPNki+8bzUnWHIMyVFNJTp/FOKOup6h\n5WL73KdhBeXNfAFVYwrMEAOadQ+f6JmmgXh3BTQy7HVOZVLtV1s0OEZRn7hs\n10px9viUpjWbKxOFrEPrB7b7GQ1o/OJOlMw0nsorezSBMg3gGwqgqeH5SBwL\nfRUattmUeNm9flNNY8hfMSbmeCft/+kVN7QCOO6Lb6oDE27xIgPVt3pF5uVg\nssPD\r\n=Ifhl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ac4b0339093446110cc551732ef34ba30b4f4a49","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.610c68d97.0","@material/base":"7.0.0-canary.610c68d97.0","@material/shape":"7.0.0-canary.610c68d97.0","@material/theme":"7.0.0-canary.610c68d97.0","@material/ripple":"7.0.0-canary.610c68d97.0","@material/animation":"7.0.0-canary.610c68d97.0","@material/elevation":"7.0.0-canary.610c68d97.0","@material/typography":"7.0.0-canary.610c68d97.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.610c68d97.0_1589225593775_0.4539221880149866","host":"s3://npm-registry-packages"}},"7.0.0-canary.ed52af767.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.ed52af767.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.ed52af767.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"40fcb0bb84228bf637b52167723b7f751d5446c2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.ed52af767.0.tgz","fileCount":45,"integrity":"sha512-vQL6jmHGu0Zde2hN4FoCg7EduO9dkUh6ji7hkiiQjNphT7ddUNjIrntaKjd4wK/4PR8W/YCBRYSSme9Y0iEVEA==","signatures":[{"sig":"MEUCIQCNi3BVX0ecQM0jacuzxtRUzxXoQQAtZPZl5L/2SpQJZQIgdhXLHVCDf0OS+qayyVB8yUadsgQ9r6ZC3RLJqoWHXpM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeubVJCRA9TVsSAnZWagAAG9QP+wYZDJtLP/l4odLF81CQ\nZ5EGyUQ37JwztFUhq1KuPcwBhjb5qAQIUw3Kn5fPBHyW9IKruxJhbpwdlVH5\nf6TPwuDceRtQ0f2fxReQTcZv5Smo3AWbiU0LJiVt+qIjVKXY+twD3KuL9THa\nqTolrgIdZnvmEv/umwm2vkl/D5ioD7CrlB0PIM/YR6D7puXLXDC85w+IRken\n0KHjXfzobzaVC7MxV+4C5yL/dfg9+N5eVkL+n1feouGGfSGVHyeybeprpf3G\nCKqfmDpzuTuHTMfi/Xpgs8O15MP2nFCQHHX0Z/JHRf1gOx2GHo0xrdE/6PsE\nyuAdhbBb6ueHgA4+O8d4rd6v9/WgbsHnOtvCe+HPOds4BdH0l5k9Yn3/NF8n\nbHyOz59++w2kuLisDwvTXCnlyzIYjp3iFP96DtKxAdI8Y5b569seaT20P+c7\nJaQcK2bZXbjN9+bb/NcZNMY059xuoKLYoQ2CSuVgYJTeiX/JLzpZ3hsJ0A8F\nH4uhGTi+zxNHu9F9gbWff83q9FH03cP4NtAi6qZ37iHFNvLUdXTg4pwv+q3I\npqJUiUZfBnQ4aLyxz2TORlz+GVUXJNgS+X7b67sRB6abeuuHxW+d74N2UUwL\nJbq5q7v0enEzO73FFPsiFC/LmiETFL/IcEt3x0AZwdOqhNdGjmRICPh4WYVE\nJvT9\r\n=/NFF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"06b24ff740d1a29e8764ec98f735b6fef77dc5dc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.ed52af767.0","@material/base":"7.0.0-canary.ed52af767.0","@material/shape":"7.0.0-canary.ed52af767.0","@material/theme":"7.0.0-canary.ed52af767.0","@material/ripple":"7.0.0-canary.ed52af767.0","@material/animation":"7.0.0-canary.ed52af767.0","@material/elevation":"7.0.0-canary.ed52af767.0","@material/typography":"7.0.0-canary.ed52af767.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.ed52af767.0_1589228872682_0.9070698880967196","host":"s3://npm-registry-packages"}},"7.0.0-canary.058cfd23c.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.058cfd23c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.058cfd23c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"62fbe227acdc5b39945c1ae52bc186abde2b0be0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.058cfd23c.0.tgz","fileCount":45,"integrity":"sha512-7MigcSG3+yoHjUYKVdr+6X9+wLWCq5H80UEo+TKQus+w6vGlShYa3F0uJ/vgSHLbHbZrO2w4sx9OpY2cJ1+ZhA==","signatures":[{"sig":"MEUCIAcwPxMAPDV0gp1L3F/hI986ZMjlIRMeChbyx3tb3SJ8AiEAhrxvrmmOVZztl6gQ1CfYKwZUZq1GYX6qpkKapxqS3CA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeucLYCRA9TVsSAnZWagAAGkkP/1j3rOTvvfCz7w48PtY/\nX5PlHMkx/N2sC3t8AnqTA09yYJKrEaqN14/Z/LKg249gSnXRtCEOkZ+ZRLlt\nPjPbWLiV85ULSpwY2wGjkeqYYSlyxXJUsRxwGP9iUR2aTq0LT3/YTS/VVHBa\n4/PqfpAxXhN++nETS6vgOWx6CUXiXbsqNH12B5CKnkPfzK0hh2L6QruZGPiR\nzGnNtmtX+QsxRnqvex4dRngsiBYB2fIxYLX4DMnAfRIpvjl5FjHyrG5ekj8R\nBsbAbicRJ7SLI+Ch6uvb0Y3oMNcHZRRKdyAyYg5L9x7i/hZEXH8WWfhQsIFt\n93DpC0G8pFveQ6nd9iMUoNV2hVt7ewTBHSzydKlCDqRlgJvSedwfrqvHoKJA\n673DLTcJdx7CHzBe2mKjFuxAKZ7Cv8Ry63PtzIXZWhdhxvNkMwN9azUZSBEq\nNJkydjuOH+eO25OwHV8Fhegpxpc+M9xoJ6noa8at+Ro/paC3GLjYWDTXGS4/\n9pQt0NeW8mnpFBhT3I5+snZsHVq+8vVd8Qy13C8UTy7RKDpxTA4UUEOwRfzS\nfZuMKuxNONFIzlOoghGHNK50SqMdT6NzxpwPuVrbmxiocHXhbRDki6yqGCye\ne1BJIwaminizKlCfxezOJcNcwBOtNJXOixD/ssaLHd/lbbzvSvugLn2V8/C6\nzW7G\r\n=+EZq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e012af26b00c720a751210639bef8379d1085234","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.058cfd23c.0","@material/base":"7.0.0-canary.058cfd23c.0","@material/shape":"7.0.0-canary.058cfd23c.0","@material/theme":"7.0.0-canary.058cfd23c.0","@material/ripple":"7.0.0-canary.058cfd23c.0","@material/animation":"7.0.0-canary.058cfd23c.0","@material/elevation":"7.0.0-canary.058cfd23c.0","@material/typography":"7.0.0-canary.058cfd23c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.058cfd23c.0_1589232343615_0.3847413067163292","host":"s3://npm-registry-packages"}},"7.0.0-canary.0a371b4fe.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.0a371b4fe.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.0a371b4fe.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5d19c8a306248b2c6dbc62f52036eb36b728097c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.0a371b4fe.0.tgz","fileCount":45,"integrity":"sha512-QGz48T2MUD8VQliuRuPvn+IOvnYJ7ZsUSfM6hG5j2zvtjousRcRFOMUlOySpsZKEPl2yABRoLPDqNdoQsKkISg==","signatures":[{"sig":"MEUCIQCR2BXA5pws+ZlCtXUARSMgS4jHLRuZ0WE+fYO2kj86vQIgbPHgNOTmAqBQRNvdTVVPvk8WR2xf/XGrAMoq49o3rQw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuy7dCRA9TVsSAnZWagAAPE0P+wVnjh5iy7a3OFuKjoJc\nyvehycKvEeEYO6vIKenlKleySZzsZPv0DEowfR3Ze1w0p7utFKxzN+GxFi0W\n1YS+hphrpt7kMZJROxhHqjCEeuY56vFlRnV2qM760Pltgt8jr1C2V/bm6kcI\nmXMYhME/Ry8thsB4yOwSaDPeb60fR0l5B93SyotcfAfEjG3NlEfmTGQl+tx3\n+xyasN4ly/vgeQ6NhraoQPQ/ZkcCfrRB4PZMW9kXNw7awZhOkzsghni+6WaI\nqLCuQqlH+my01dbXUtuwcjTJ/nvebMr5/FvjY/U4Jtc99UTe2uSfs8I9Ejac\n7HQxFudNBuyHAEv1AiM3enZ2ZfHeNHVJziY7w3sWO8Obf8ti3itjxjUkiZdu\nSAGM93mrX5sQ7u1FBPu84JYhKP+NhOD+dBZt/shp87OvpxYisPZz+pob5I0p\nR5ozri4c5GBFEA8tanBATvPwL2upan40V20rT1ILpzp1vW+VMGCCeWy7UsE/\n3SXSXHRvqpH+haS5i2zUNZGWYIcykX4EpInm9ER1LdWoCkjVZEQYwWOYDudj\nSooS9OPZSG+vky+g1PgPJxZ0CZnkWfJG+CHOh4mk4QyxCLn9T4InMVYUf2WM\nwInl+Efio13rua66wAM49Wz6isaPvhprYm/qhIo36wVXEvfFa0m2fmZ5eNus\naJ16\r\n=c0LH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c3c5efa159a3a5dd1da72a8e4e94015fb7984f7b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.0a371b4fe.0","@material/base":"7.0.0-canary.0a371b4fe.0","@material/shape":"7.0.0-canary.0a371b4fe.0","@material/theme":"7.0.0-canary.0a371b4fe.0","@material/ripple":"7.0.0-canary.0a371b4fe.0","@material/animation":"7.0.0-canary.0a371b4fe.0","@material/elevation":"7.0.0-canary.0a371b4fe.0","@material/typography":"7.0.0-canary.0a371b4fe.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.0a371b4fe.0_1589325532788_0.6438254187529122","host":"s3://npm-registry-packages"}},"7.0.0-canary.2139200b3.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.2139200b3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.2139200b3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"90c9c8814b061cffacce37f1c1539a2425ac7879","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.2139200b3.0.tgz","fileCount":45,"integrity":"sha512-Xn6nHoq6uCIYWVCnUd/oL27bmEj+ch5gic7CttrhoUIwTRZ7lWg1KeSXJ8Tszt7YcD5wve3YMtAZIDP3Qvfrhg==","signatures":[{"sig":"MEUCIQDUvAbtYmSzpNmhCk6MoZ4vCAsIxNyrsmhVuLRCOBiHNgIgZi2sMAz/m0tncHxvwEqylBtZ6Sg1YDTqs++RgSZmScE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevAihCRA9TVsSAnZWagAATfIP/iH6uYRjiKvk7VCqekvl\nOX9DjjJELFkt4CLDi9Jd0CWJtJ5wH6InJQnXlpQfkgQXdQ9WX8PXESAR5gms\nmxhHfB+ofyG0EfmM0mnOuJ2kBxkASlWnSXH7rb02u9+4QMQNDgYFU3j1+z7l\n+xcYe9v2TM8DBb1d7pEkegogJPNL7t7KNsXiX48H11seO5deoVKBDI0xDVsk\nKMjwskC4iJB7/ffwIEh+pymX6hP0ISBVU8bzfHajPqLu5ff6UALfmwiZ89pI\nmrwYrYziFavDL/5TQfbyREASNt8WwmxqmdH64vh4q00PJHuQoQ+w08s9lh/w\nMtWOEp1xv5Xe92pGubFKM0Y2x6QrLkb3Q0jCHZyG6LylSi1d0oroVOSk/ZOU\nM7dQ/ebUo6H5rw8mD0BAZ0gVAe2DFOjP1jl7jDwMv1qRQ3RV1wSswJOIJrmJ\nmcjL+mpU4TM8GvUeO+mGKV6XflAqX1I2wotjo4nY209UCT/ZouMi+E6GhnYf\nwP5vlbzSMoKyTrWZhLJshIdoFExiC+WRI/63MljqR7PlmACFazDc+t3TikxF\nyR0oqHqfbKu8b2mVWdpAZuO2buJeD88jCD7UhzgSThqAq/5ULhZxvPUq4Nev\n0ykJf2xVw2/R+n6x05K4iVgU1YRtHeN0ts1mCoNT4qMTSFSL+gjQj6CLVAPr\n2Bdb\r\n=hdcM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"42c214d2b2b544f76002d71be276eb747a69d9d6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.2139200b3.0","@material/base":"7.0.0-canary.2139200b3.0","@material/shape":"7.0.0-canary.2139200b3.0","@material/theme":"7.0.0-canary.2139200b3.0","@material/ripple":"7.0.0-canary.2139200b3.0","@material/animation":"7.0.0-canary.2139200b3.0","@material/elevation":"7.0.0-canary.2139200b3.0","@material/typography":"7.0.0-canary.2139200b3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.2139200b3.0_1589381281403_0.5268685919331699","host":"s3://npm-registry-packages"}},"7.0.0-canary.744d751a0.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.744d751a0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.744d751a0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6bdd0bb5725458225896d53ab4379a0bed2e6a7d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.744d751a0.0.tgz","fileCount":45,"integrity":"sha512-HP7zyZjlxaaycbKsJdAPe7ar0JdZl+zPYXGVSaWA9fRpEGH4DwKfQ/CqnZ9GGmw7Ei9AxaB0pDsaiL6xNLGRww==","signatures":[{"sig":"MEUCIQDcrlbaqLRNwaah4Kc/9iCBC+aA2mDmwDB53LXVBjk8lgIgOPATjDmtxcYk/5ECvi1Sc+p9bDkzhPS7AXdi/myLuwg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevMxtCRA9TVsSAnZWagAAHgUP/2QExt735K/NkuRZv1Zl\n/GWgWvmgmupvVE9yokrW0ToZI0rGiBJ+dA3XS4s6hcMidvvitqc+L/IyyEpn\njcbeCYKgJVZwOhyT9I5SNRrFtqD3tX1GN3MQ4bL2FEU8XRAJi5Dwu9kAiTGD\ng9rqLdl2pYTYuwvU69d9ZDKTdgigpySBHMVJudaDv6TNSXOzTdR68x25h++B\nBl+/IB4w7Od9ZuvqZsjOJiapFkjrO9C/b4O8hGztnP07nPQxTNysAoyJlaPz\ntQAntnrEqLX1fFkmd1RrWdYx/0c1Ljwei6IyDq3vC2h8uUdn49fa6Qi0WoOJ\nWEXvxbXj0yZk7UyjZFO84m3DafXxu+DIO1P5xfvgBPhQ5Gg7PCoCjF0BX6o3\ncXquxFr7XyrXNAPD4MHCW5xypwjtHPpdxENHzqUt/K9gJY5cOWgvuD3teIry\nONDQQW4sU9UsFkfUvogBuWeFaNdN9vH/KoGUVBjEgVS40U/fsEcYfENthXI1\nfwxTJnnB1wyAZkqxcWCVnaYbudQ2Gbqfc8KfrG3Lj0dO6MixHCv391Vx3MGC\nt96az9ZkQAYlmERhxqCUaVZb9pSAbHmVkB7qeP57CqJzcLe5UMyM7K/OIRxp\n6PB32TJcGya92dnPWbrU9643MIzx+ttEqaWe7Xd8NLiZTGZ9n1K8XF+Z3jPU\nzo/y\r\n=BUsQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"afc5bacf5330bcdbe874e652a8d6df5e4a35e7c8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.744d751a0.0","@material/base":"7.0.0-canary.744d751a0.0","@material/shape":"7.0.0-canary.744d751a0.0","@material/theme":"7.0.0-canary.744d751a0.0","@material/ripple":"7.0.0-canary.744d751a0.0","@material/animation":"7.0.0-canary.744d751a0.0","@material/elevation":"7.0.0-canary.744d751a0.0","@material/typography":"7.0.0-canary.744d751a0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.744d751a0.0_1589431405269_0.48681862841727863","host":"s3://npm-registry-packages"}},"7.0.0-canary.ad0c0c103.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.ad0c0c103.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.ad0c0c103.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7a95935a3a10b8fc07e9a0a8ca85d24e6b015cfa","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.ad0c0c103.0.tgz","fileCount":45,"integrity":"sha512-Oe0wpdpR12Arp3p+cKxD1JKoLqpd7lso7CtIQ00DyIJf7va69XBSc1o2hQnymbr8UD6vFBMuTfUkriIUyhz4fw==","signatures":[{"sig":"MEYCIQDapyB6Bw6WzeoskJ7trw04KrsO8OgPMMRF/7alpAByqwIhALlX5uf6Cv4K+HDM6/QF7ROxhtSRNVLLFFyMRaTK4fZy","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevVsVCRA9TVsSAnZWagAA5UgP/3iGmSfoIHvPWNZPI4b5\nuJIYOIykwX1w9nH+fH3Z7Bc6OYw2fV4NevOoc+P9KnQQT0ZxJPvkXhC2/a/m\n2tYVCWok9ofOwsrvicTXhzVmLXm7Mv2dPqhivU9+IVl+CVzpz9UyAuoWwUpA\ntKrSlVWK7kv2fi7ubiRwHdhzDf1PeQfjYz3N3n+BtMKDjpq/oNOITN+w+f74\nRb4KLWjXmTWe/tpxsv3HQW2mzD5yKkhRWPm0dwccMl4IUdxKhx+csJ2e8De4\nCduUwWLHHzfwEJVr6dYt60Rmz1hl7BambDJnjyKV6uSf8nVniEDDxR/u3KFU\ns2OL2MnfMC6K2QitbK9gKFfQwZQPCOEwhYLRmdwDMLYD6QqnIlzCytYheQsM\nEu5803i8FSusdL4aqhwsULb5jeqLrnQyUDc6B78kgP9UfzWoOqHFSI5h/C5Y\njC/JLoPuIBGzapWzU0UgRErWz9YtiecndZfQfKjkhEfcOKlrxZEhWSjiJxFn\nKauPB09+ZWaqcO0RLZex/KpVbnSiVUcwZG7zP+HH/FWD3o5OgQOAqL3rsXu3\n8/n2OeT1pzltZZHv/0VAR1CIZ1jQIr2+yszyx06afA3BFb5271CjH3HClECR\nVz3rzlBCbBxKWnLqiRahftZQEWN5o1JIm7fobI726a2LtRZ2EynhTicDSEUB\nyqnU\r\n=lSP/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"76a0fe161f579d30f0d739918fe09f5f4eef04c0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.ad0c0c103.0","@material/base":"7.0.0-canary.ad0c0c103.0","@material/shape":"7.0.0-canary.ad0c0c103.0","@material/theme":"7.0.0-canary.ad0c0c103.0","@material/ripple":"7.0.0-canary.ad0c0c103.0","@material/animation":"7.0.0-canary.ad0c0c103.0","@material/elevation":"7.0.0-canary.ad0c0c103.0","@material/typography":"7.0.0-canary.ad0c0c103.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.ad0c0c103.0_1589467925329_0.515520893675683","host":"s3://npm-registry-packages"}},"7.0.0-canary.fd8f8f2b7.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.fd8f8f2b7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.fd8f8f2b7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e1f765ba265c360ae1f042401b7465fcdef96a59","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.fd8f8f2b7.0.tgz","fileCount":45,"integrity":"sha512-+YEoxz/u8ALfWLkJI+umS52DblJaOSKgtVVtmGimp3dFdp/cXZwkoKH0rPb8Hhi2hIyXcat5mkXa9/XUfFPc9w==","signatures":[{"sig":"MEUCIH0d7/5H9nK2u7ojpmE9eF5accqy5AJl9DCWJWnQLUF/AiEA/Kx++Wh5NzS1TAnA4P+BNl1kujZHE0EjmoFe94luUQE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewsvECRA9TVsSAnZWagAAClkP/iGgslHS0a8tHeUJGgkt\n4SqT71DhrZnmikf+nhfm9SzfTvdNP5pKRgKNIBBVynWBEc/UDivuTBzGc7u+\nSdD5ie3zu5yLSukCYrBhve0+g0xuzlHO9Lnwu3CSyRLBPjLV7mQDiVumNOSY\nIingK2BgC/rvC1KSstFSYNJZw7gxeiuY55Q591g75bZ765qexY/54ibOY9Qv\n2Ueql9e6x1WDeJUJakD7lLdN7CI+1YVC+oYN48J56NTwFXRgqa5B6X+/drWE\nCUJwMrU1vlc+LTNOcXfDwKHoY3xBbs0AHqBbsF/zf6i7RzgGn2F44sCd4w7v\ntt5JKlD6p0ke9KsrCazozmxqt2CfGgN/fypAJ+488+cHRurA3Kk3Wdp0uEED\nt4b5mIcMrtqsvU1WDoXLQYLsrMDH35ohqYymrjmhkfGKE+Nx2+XMjzrIl0fH\njt5PC9Jxf1620qH3sP26oLF8o/pPYRYllw99rNyleHMUHnAHJZLq3qgpj4Z8\nEuBzADgggpiFSb9SMhsZzfsSVxv/CD/VcYgtX9KK05UMlkx5+SI1S2m+sXR1\npSyLPAvriOEEL2zkrd35hYwnAwGdGgpoKkoR0OSLyC08mFRFVuxKcPyp20+H\n/5udr9/eMs+X+dypULa/KIHenAiDisg0rR53OsC4DXFNbf5DZqVPcRGXi6Ke\ncGy3\r\n=yiCt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"30fbf3d1582cc530b978714ab043f92bea7c4b83","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.fd8f8f2b7.0","@material/base":"7.0.0-canary.fd8f8f2b7.0","@material/shape":"7.0.0-canary.fd8f8f2b7.0","@material/theme":"7.0.0-canary.fd8f8f2b7.0","@material/ripple":"7.0.0-canary.fd8f8f2b7.0","@material/animation":"7.0.0-canary.fd8f8f2b7.0","@material/elevation":"7.0.0-canary.fd8f8f2b7.0","@material/typography":"7.0.0-canary.fd8f8f2b7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.fd8f8f2b7.0_1589824452133_0.9237458827070641","host":"s3://npm-registry-packages"}},"7.0.0-canary.730920fbb.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.730920fbb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.730920fbb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e4c0bad01798bf65ff8a74b63e8579778356eea6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.730920fbb.0.tgz","fileCount":45,"integrity":"sha512-+4/+RfuloFDAvpAnWNH6Z3I1nnqrSPl8rbnzjYeid2anKhCDTl7JXGjBSkWvdHwLgP1/GWxScLoTZs4Rlq3Ouw==","signatures":[{"sig":"MEUCIQDTbq+xx48Z+Pi+nBsqTSZxONm3/T2hs2VCVaVI4npWBwIgfBpO1CP3dCNbXGtQtHMauXZU59fAlKQq2HpYl+TeK5U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewuWtCRA9TVsSAnZWagAAYw0P/3LMZXbZOjPyepobbU7I\ncnC+ezA41jnjld9jRi60QuiLtLyBchJlhjBBIUkJ1NMcBHlW2VKkWrj9Jafu\n4RXTBFjbK8Ov3adoNnglsEwObcnE5pe0/fVnvfhFsVn+wUKsdA5tZMz+Sc2U\n7Ml0TmIKEx705s+n7a5DKc2umjbnGeUYpNK0MEYEC12MCGEY02TSP+0710p1\n2yHomJJ0xq8tMGC1cwXKhQF/DXAwBBG/TDndSnUff+w22DBsgsBT2s56An0C\nW2xGyODi+iViaZhj/EOJP4q6iMDkEzWnBX4UCIb3mfFLV0Uv5+GNIy4F13BY\nT2PNZNtxmhg8L7VCdfSsh3J6ZApUUXZ1xnsLT4X5P+vjgZmK3rqz48myHTju\n7aQFykxB6m3Y3HrEPwNTgbK0xozEy9ieR4/HjgznxFrMtQoxb9hdFYMndKiM\ndC/v8F3z9HBsZ6zTU79UKERBPK8E2xJK6qBP2CQuG3Oyou66Sef6u7QL6VW9\nP+r6bt2BZlNLD+nFm7CRb+/lZsmz8r8hYhtJH940jPMyh5IPZyTcer7EAgRf\ny8nLc2FJwEELqW0m2K7m0J4a8taEm+wXMU8fJW5wt5ZFGX5Hrt0QYVgLUKkd\nV8DA5w3EYzeUkWmsfccSrJajXGKyfa/PdXFVuSv3yWBYbERaHMS71zEx24uJ\nwSRP\r\n=MGgN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1acee01a3bcc1944050bcc6a38a1846c507db43b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.730920fbb.0","@material/base":"7.0.0-canary.730920fbb.0","@material/shape":"7.0.0-canary.730920fbb.0","@material/theme":"7.0.0-canary.730920fbb.0","@material/ripple":"7.0.0-canary.730920fbb.0","@material/animation":"7.0.0-canary.730920fbb.0","@material/elevation":"7.0.0-canary.730920fbb.0","@material/typography":"7.0.0-canary.730920fbb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.730920fbb.0_1589831084290_0.3687540091766537","host":"s3://npm-registry-packages"}},"7.0.0-canary.bcdad99bb.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.bcdad99bb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.bcdad99bb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c0b8731d4f3301c439e6f115e5b97ceb3cc2500f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.bcdad99bb.0.tgz","fileCount":45,"integrity":"sha512-usbzn5DaJRqQTlYTHnVgw3hDwUCMglr/RbGNpo6TBurO5p3MGrpi7eZWbI+71IJJBv/FkOCUZGhqHuK1yi4EMQ==","signatures":[{"sig":"MEYCIQCyb8KHqItuZ/n3XFFjD7ZEshgesjv3Mby9SvRztr+RdQIhALaHqE+wPUhQ27StJ+uHaKex7bqMqdxycTIJ7Vbax/no","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJew1AQCRA9TVsSAnZWagAAgEYQAJsOGfd2uNiW+etS9g1y\nUNeG5jxl4U4zmaqcfnFsGWxPvVzrcn61rGwstisSpRiSxar0fJuz4fUbbjXM\nKUL5HDFLh0uFqnjUBIrVQpqkvCRhgWnKyIlPkBnLKNVMRQmXaB1DBPd7kxje\nTURGIHE4MxQI0sKObAt3hB00kO/1vA+a7PbNDn6xabmQesSgqF/lYM5O83Y2\nfP5QuryxNzSCAc5OPwG+vN2rqS33EyaXrQE2rfstn8U5cEwH2hIjRWBZq/C/\nUh72QkM9s5sBoyXngVWeVDuYh39e8oTLFrE1MsJiseWRmrz5eN5AxgGjuhYy\nAFQskf/KY8bmKSyH/JYbIbwY7LeyJ64MgHell8knIZIXCcA+YgJm3RxnopAY\n/bky2KrsWej0ey+UHni4Ge1AwVNVzTVfGMavmQTaesByUpeOHsXYO5Y985P0\nOToQ33+/EaDhSgUnNgCxbH5QFjxeGaHlQM211P3k7fTu3E6f4QhxPTcOSfXI\nLW+FmBKT6HouUkqOCE2SZKX3JHA7IeMP6GQjZrXTMW3+AacWrHukvsz1v2KM\nbJWV84v1SqSzzpLpvvWbBPkUsizx1k9tmWE/q04pdxuQFx7EMi3qi6ZN/PqC\nFm9EJYrc6KZ4tw/JUFGWDTO7G0H1x2Nd3bIMkBND1EBXLOTtqPLU4JKVNi+X\nas0w\r\n=slw8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"33c3545075b4fec07083bb484fdd7245d0b243a2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.bcdad99bb.0","@material/base":"7.0.0-canary.bcdad99bb.0","@material/shape":"7.0.0-canary.bcdad99bb.0","@material/theme":"7.0.0-canary.bcdad99bb.0","@material/ripple":"7.0.0-canary.bcdad99bb.0","@material/animation":"7.0.0-canary.bcdad99bb.0","@material/elevation":"7.0.0-canary.bcdad99bb.0","@material/typography":"7.0.0-canary.bcdad99bb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.bcdad99bb.0_1589858319670_0.8629638119776395","host":"s3://npm-registry-packages"}},"7.0.0-canary.4497b86ed.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.4497b86ed.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.4497b86ed.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"830b27dff9f48b26ac30ff7b921f7e5517cfd9ee","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.4497b86ed.0.tgz","fileCount":45,"integrity":"sha512-GnUXpJT2DZSwirQkkPIeC+E3fUjMrnnTsGKTlH4eH7ONwQKYy9VWfNcasnMOsAEsu0iofdR3QE0LdX/w0W6Q3w==","signatures":[{"sig":"MEUCIAbJaVmLmFVlinQ8xL5cakAiT9VXcuTRYzN/w9zn+8PdAiEA3cT0iDVS0X8Aj3TXhp3A95kTvtJ30n8vyzIyNxRX0mQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJew1e7CRA9TVsSAnZWagAAuOMP/jlfGR5BYai5I4FtLcSS\nYRpmtDER+1l8rSJW1yuQXnZwUZ01sVpGBNmt98ZNj7ACxsM6WLO5EubLYx93\nD+XohINJjn1dkbCYDgBYt/klsIrjoIQ5D+IMw7NC89fvmbufij14JUBtubaL\nkknUnhm6uvfY2a1TEwhJo/rtmQzGvGLntI4R63Qoc2dH+xpouLfyU8H8CSXz\nSiYK0ERW+ng3Go0M/ICcW7EV8HpYdpnPezbs28BeSYHXckp+s1ePHQSbm9F3\nIvefcm1mRBVszUctfnXBVTSBri6F/kpB/1MOyQtbzOVuT5HzCdTpV6zL2zMC\nS0ASZUVOQgzAhNfC9OGIlB7MCoReByJJXSlillgyE+M40CfOwhVB5pyMXQvQ\nZHY3aaWPrmhAFz5iY00H7aOZFglPpJC59LkhEqgwgr4FcZrocAqcXn8ai7Px\n7vX2VZz8mlzXGtY+qk5oih/RnSf933lVExZhDMhx6KblLde+yYItFOLWJanw\n2tQ+KNN2IJ0GDELxbt8VM5jSyyU0gl2Fqz5ZabVJbSkYKN586gQ/jTlDLpyV\nzgKyIEqtQ0+17kLSNd591hJlTOI7e4Kp+rWy54rQWaiCUjm0M4Z8TYsII7bD\n0NNx9fAN2pSP3KvGVIvOIVDTR5wkDKwLKQjdNZert/g8B3eQEvr+pyc0IPZZ\nd7vX\r\n=mlxw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7ffe8b9fd24f52b80e2fa6a7007881da7c29f885","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.4497b86ed.0","@material/base":"7.0.0-canary.4497b86ed.0","@material/shape":"7.0.0-canary.4497b86ed.0","@material/theme":"7.0.0-canary.4497b86ed.0","@material/ripple":"7.0.0-canary.4497b86ed.0","@material/animation":"7.0.0-canary.4497b86ed.0","@material/elevation":"7.0.0-canary.4497b86ed.0","@material/typography":"7.0.0-canary.4497b86ed.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.4497b86ed.0_1589860283320_0.8447256452080558","host":"s3://npm-registry-packages"}},"7.0.0-canary.2e60575da.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.2e60575da.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.2e60575da.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"81e8a7d722b633d540d57d172df03b852926df8d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.2e60575da.0.tgz","fileCount":45,"integrity":"sha512-isj62iC3Q58suzh9DjZWsfoGzRDbQKPte+Nb9HH1mm4SC2xsnENS4BScrJTJdFket5PrW9WvGyYyq6X5m0o3Tg==","signatures":[{"sig":"MEYCIQCh9ktLkIv8oBIPHqLbJEOdsEs21SukUYvEqdHmsVokaAIhAKGj48TwfVoPa+72BJPWiYQbZwZjhcf20FWVzVksr8cC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexATWCRA9TVsSAnZWagAA0XoQAJRcO/gbJHH0dDmdUq19\n/1ASk5XvrzvumVKiE18IYEx8lwL/UmmUF1gU2CWUsN/9yH5QXn9KYkECWeMm\n6MvjAAbGgWMsTmhGd9KuGTluL1DoXG1xMeAGnTWpiLNVE14v3PRAhDrVrqGX\nK6gr8Th26o6eBPhHhXSnQ9O+ftdBzvZD97AdLpFzDU7KRtI825aqunF+hIZd\nVP/3yLpT0HsDAKjQ3CoPnYLRoUCwxpiYaoTY5LTqLtpSe+Yfj/3BaAc5wnQA\nUM4zSKYlXvDJ7Ob5fbyHNs3eVj/+pIPRoGWjPcLI4qxAoZ1bXoNHxbcG2kyK\n3MhiecahSVydOHkFKcqJ+pBueBD5O6nXmkbjdJHKFsjOXX/fILyqq5jejsY8\n+xLLFkEMKKH0XTNVkvxqee5LZXYUNVT433r0q+JAComM6+kTjDaapXvdGyRl\npj6pIDjE4iYzApn1ouZuiQvOpVXUWGnt0Ko1RLbcL3INim1znbtzCrEn+HWW\nBTYUrl3QCpzYLoL5ijgvZ/CtoIrKFx065i3A4qtvfneRm0OCu45WYhc3RgXl\nFZZ7GT6DOpRVqBgPSn3nW/VKrSvh4IC4aNWwzEUEgroWz3jdJLnlddXYxO5P\nOk5c7Z8tabSCYX0uQETrVRs1hXk8835nlWQmhXy0JzS5b8FiAIyofj1+nR+j\nvSLJ\r\n=ewvP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a4b6f1d5a01445ae9c14845614630907beaad190","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.2e60575da.0","@material/base":"7.0.0-canary.2e60575da.0","@material/shape":"7.0.0-canary.2e60575da.0","@material/theme":"7.0.0-canary.2e60575da.0","@material/ripple":"7.0.0-canary.2e60575da.0","@material/animation":"7.0.0-canary.2e60575da.0","@material/elevation":"7.0.0-canary.2e60575da.0","@material/typography":"7.0.0-canary.2e60575da.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.2e60575da.0_1589904598222_0.9357701418232185","host":"s3://npm-registry-packages"}},"7.0.0-canary.e3eacefcc.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.e3eacefcc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.e3eacefcc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e93115e468e6c23cb8ba1f0ccfa8fe5609fa4e2c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.e3eacefcc.0.tgz","fileCount":45,"integrity":"sha512-JXxQDgr2z5f8G7urkseKtJYPaeIaG7fou2nghKI3wujfX3fwn6o/Z8Ilm0NgJEwvLJAhJlf1fS5HsmGbJA4ILw==","signatures":[{"sig":"MEYCIQCNnTeNz6jgMm2uZXIB+m0G8c6lD5iH4pRI1ZAonmn8KwIhALxtTNnLo2XUXL1kW0QDpnZh4StG0pOz8y0Dl8fypmxr","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexBmmCRA9TVsSAnZWagAA2QgP/R/tSFhK6Fg8WpBvphAs\noYUcJ8PkdkW9JsWn5RpYqO103eZSHPqCrKr5S3mkOKswFBUiEFJ+u9kPdp//\nJLt1uRBRg2ufzC0ZBtwTo4sF5TnALiHkoHWwhjL8QWBCCHNtAFwMY9lwHddu\nvFdhglQ4CHj4feZoSpzK/hp3U0nY6mAfuZQ0zKvS/e62e31CsRZTjcV34HOK\n+zlC4kd45dNXAcFn/kh6JMfuM/Kl5eJ0NWfZlQpi7dDTMQCkmlDWkhjMo1x6\n92VytOmfBuPygNd59RLo1N63thm3R4Fuvupq2h1KmNg6tqXh10qRL8T5WL+J\nBULrEy+/03p4TyHR5U/vrsiHxm6qSIXb/Yhj89Veixc5+3t+VLZUHTAZChNw\nGAsX1i2nVNU7g1VN8zZdLRoGAFdaihzkqqT/FFomg08anKYB3wvx6/i01MKo\nRQcC9lSKgWcgszvTYOnCTQqU11BPJFOUdpYwgIE9s4+UKVpRjMIwl1RTXVqj\n0IPRN5dCjDlhPnDIQfVAxQ2SosLWw/IdSr54TOcTsNhQ7AumIk7lqdykvECx\nDx37by13pd+eBgbYTGMwsZOYXklFrQ4vB+xijys4hiMElZACozJ47eozTqL7\nFasPEz+nVG2G926HkFmzS7YN0nBi5rsY0z33ND3qh3vLm4vhWYveCo6ISaJ4\nuDXs\r\n=UTar\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a80846c07f1b98212ba692bf027c2003093d0180","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.e3eacefcc.0","@material/base":"7.0.0-canary.e3eacefcc.0","@material/shape":"7.0.0-canary.e3eacefcc.0","@material/theme":"7.0.0-canary.e3eacefcc.0","@material/ripple":"7.0.0-canary.e3eacefcc.0","@material/animation":"7.0.0-canary.e3eacefcc.0","@material/elevation":"7.0.0-canary.e3eacefcc.0","@material/typography":"7.0.0-canary.e3eacefcc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.e3eacefcc.0_1589909925958_0.04397842895425663","host":"s3://npm-registry-packages"}},"7.0.0-canary.b065a4d2b.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.b065a4d2b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.b065a4d2b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2498bce24a94530582409817c1deecb86c1b52c5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.b065a4d2b.0.tgz","fileCount":45,"integrity":"sha512-rJrPetq4iPo2VF0GZ0GtOmiRkMAaLbjEeUGdC15AuoJsmO7QbFnAMP4r4OUB9JMPGMiTX1FH2X95MFoe9rE8aA==","signatures":[{"sig":"MEUCIFzzXS9f44iswFpjxPniaS2P6nMKt6JY2+2z8A4VInq6AiEA9qBSEMuweFJUGIQnUlEj+9S6s+eJUpJbzs2I70e55tw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexUCuCRA9TVsSAnZWagAAfNUP/iHkvhbh4ee0U/GDbV8Z\ngiNG8Sg4cN7DKYRmK0IrTlfeeHfafUlkA7Dwme9sw4teFb1seGRiX8UmlvLo\n369CdjvnjmdEsuwVJkeNULx45gAt7rMOG5zuhEJfHetkvF+qEAw4C5aWrTq5\nAl8QOXyFQiTt4JVHJMbzKsUsRC1o5mM6hyuQZbs5ypZldwzLaCoYMa9kvyO9\njWKnbkqhkaI123UuEW4y6I+vUI5jligJHZxB5Y23uV6vqBJ0OXdY46CvG2yQ\nZCZo5UUsZwRp5pKj7MSEED8shjlwylr+AIBdcJGhffZfaV6Zw9c6veqqMpxI\ngzl92/ZlUPweGLyGamqZOVK1y8rzkTH02Q+OOjSafpsnC4gk9MlTCQfEk/EY\nN0lp0r8tpHhArGppa46IhdthXNSEu2RtxhBuBQmUr14/JyPKysKjKDaAeVbF\nlbasiAjEpnA+dnFddTbMevZgcgq7C/TahlI/wT/9E/eDMIQOxRK8woMKq12o\nmHZHj134rAA/jSM5LPNDS9nj6L7iNIN7U0k2k9i8FQKEK+hnmY68E0RU0Cyi\n+KqdEqd4pUSoEr7dRyuruBRGE0n7ih1XJ3P+JiRTWQ6Vi27H0d/a20NI+fes\nz3C8GI2FQrdsDwe7VR88G7innrghxJLlardH508ZrckkSSi3BvBqhqsedDhg\nneZR\r\n=OpWY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7de80cb2ccfd67196d7be3fd614cebb9cd73499f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.b065a4d2b.0","@material/base":"7.0.0-canary.b065a4d2b.0","@material/shape":"7.0.0-canary.b065a4d2b.0","@material/theme":"7.0.0-canary.b065a4d2b.0","@material/ripple":"7.0.0-canary.b065a4d2b.0","@material/animation":"7.0.0-canary.b065a4d2b.0","@material/elevation":"7.0.0-canary.b065a4d2b.0","@material/typography":"7.0.0-canary.b065a4d2b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.b065a4d2b.0_1589985454204_0.07745969612386472","host":"s3://npm-registry-packages"}},"7.0.0-canary.4ebce8d78.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.4ebce8d78.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.4ebce8d78.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7d34c0c68f4982d816f791a8cc6bb365bb000dfc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.4ebce8d78.0.tgz","fileCount":45,"integrity":"sha512-QFx3hCArUA/nKaqyTCGq6bUiZFVfU5ILhx2Ri5oijFORnNkxfXuqzk4+ho0AM0BG3GoDSXo9WRjEIgI2gz5L+w==","signatures":[{"sig":"MEUCIQDDZUdi9L5iENfmh5UZ0MSDgMSt5AQ/iDz/QDJ5GmpaWQIgPS60ZWRr8LTA0DIY8hlBafrjqbKYNL+Gzt0CJSFf8ME=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexZg9CRA9TVsSAnZWagAAlCQP/38t8AmJ+96BxILrNq13\nWWR4P1bd8kXbjWsZk5plBSWS1zY4OPf/k8UBniDpDmG4p2ZgOltR7Czqc21m\nb/YHdu3YR/j/WTqJJRGteoP1sMAiZAluXfsbnQK7z9TgdJOla4T8C5hJsO+G\nHCtXNkjN19RSNCiM12fr979bIqBRrIr5Ib07iw3XBNWKAipyu5EsGTcEwmX5\nTfQBhHIDznyBELTz5b4sDzjx7Xqr5LPk16jlKa9oTxj5TGPiRcqq7xSX07Ot\nY0n/v27No1khAmUe+R2+H2StGQXlbnevJKQ5hps8uSMVzdBbPfw827lVOCqP\nmG6ZWs61yUgL/0ijL4NQXmiIJjaKALF9hhSSvsd96YV1k8k1diJf4Icw7xTf\nJc7zk+CwsiLhdZ+gvdERjTnodGC7r8oJcU8BstdPTM/QZAGZur1Pvxt7hLYs\nG05Y0olQF4s+d0u3uG8pDbGcnWLiB8gSOHLgk4zxpdF0a6Wc9anZH9TPQIMN\n7X8z2T7Ea40JNWyDK/Ibkl8umI2aGVeYQS8KwjKx8lqiE1rfqm2FniQk44qa\nQUrTXtMjdQepFDEl5ZRS35CPlIYCdpg/bi4oU9gieEwbBXP0hLOBKFtu9CJc\ncbGm/7EpCh9PV5dx0RGaNC0J+yBSMH17SogI53P5RDVjmfqBlct2nqtsfZTF\nX+Cd\r\n=c9Y1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d7cc6c4aec24377070d4417765fa102dcd7c7e0b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.4ebce8d78.0","@material/base":"7.0.0-canary.4ebce8d78.0","@material/shape":"7.0.0-canary.4ebce8d78.0","@material/theme":"7.0.0-canary.4ebce8d78.0","@material/ripple":"7.0.0-canary.4ebce8d78.0","@material/animation":"7.0.0-canary.4ebce8d78.0","@material/elevation":"7.0.0-canary.4ebce8d78.0","@material/typography":"7.0.0-canary.4ebce8d78.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.4ebce8d78.0_1590007868928_0.8266350974910042","host":"s3://npm-registry-packages"}},"7.0.0-canary.b0fdca492.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.b0fdca492.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.b0fdca492.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b0e86cbf2dfaa49ad4128380ebdd9b447dd77d7c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.b0fdca492.0.tgz","fileCount":45,"integrity":"sha512-tcWKWSBAsrVwmiSWEr5RPd6xu5msMj/tWX0wsaQnnSYe7BEIKNXiepjEqeeUkAqU5WAEArYvRkVonhw2cT5FCA==","signatures":[{"sig":"MEYCIQDVn3ygd5wAabqZBKFApGOscKgUCrbHlMO93GaEiFrdOwIhAJMrEKioNh2hDwKq34QXrz0dlP+bT+KVt6MZJn6kIYec","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexbc8CRA9TVsSAnZWagAAX+EQAIDF3I35bKQZ5g05MjvZ\nnk16F7AlESM86LtaHcXNYm2QPxCX8M2YedHgwZCmboTNhdY8BXNxqZaJI7Su\n5u4j7suO03eM2enLjkxS2x678B8lqyYBd2G4rgmD2E3NMddCvJiSJ6cnJQJ5\nHNUUVsxvZdWlUkx32PGYuh/asx1xfXd7pvlbmmxJhwatJRdlOc/pVxP8zrBi\n1TH/wDHSo6eJp8yhyF1ERUeLtNuJ4g62Q/aT+RyBd75glgfGqsMfP3GdoIea\nKlzHalrw3qjd6yvOcC2gc0vtKIg8ZaTJLNBM1pALhmfw8EpfdwNoC802tIWP\njPOcl+vmyFUBxVyJCFs1XIZ9ZVLBwhNxwOd9xjDDNW7KxaoluzN0Fjmas7pk\nk6/XAwMAu31sfjWp7aaeKijOkm9d5RHDlzxCRhsId1H8CScxRKMYaEd3t2Mx\nXWRJ0bxfDnWM3KWBoomAsBBtYyYyIgWifQwGrgDnMPRVbphGbuVorUbqVaR1\n2caXhsnoz/V7Xbc54+Z1aESzangC+vsG53HQdmduIeeGRCdyxs3jHarAvwWh\n9eKlv7Tz8O0a0KrHr34371kLmbRIKR1XdqJxEQejx/E2qt73cKcvmjzqF3Nw\nRu40mVLPdKEjJH7De4hKM4QvxnLmfKUWguM91LhXdqJPmUvOAGkRMmwkDxaC\nc7Zu\r\n=8mA+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"590e5f052548986555dab713a1bcd253b6dcd01a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.b0fdca492.0","@material/base":"7.0.0-canary.b0fdca492.0","@material/shape":"7.0.0-canary.b0fdca492.0","@material/theme":"7.0.0-canary.b0fdca492.0","@material/ripple":"7.0.0-canary.b0fdca492.0","@material/animation":"7.0.0-canary.b0fdca492.0","@material/elevation":"7.0.0-canary.b0fdca492.0","@material/typography":"7.0.0-canary.b0fdca492.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.b0fdca492.0_1590015803282_0.5395887016621097","host":"s3://npm-registry-packages"}},"7.0.0-canary.c67667e8e.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.c67667e8e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.c67667e8e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d711d4e6219d9b17dece2a326b1fb6b7c85d23e4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.c67667e8e.0.tgz","fileCount":45,"integrity":"sha512-pfhfYA6MxTHIYvVodszO79QE5JOw1X4mS3/GkMhYFw1DVvFqRKt3Zjn1DzydZ3ECLUDlwLwN9o7GgA1CRLepBg==","signatures":[{"sig":"MEUCIBg5elsSqlmOo9DjVDawIJ4RCDT82XgB2tPD9kCXo+o8AiEAlo9Y5sc2WwRRautFUoCYyvjneTHpcrhp9cto34l2ZOk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1082905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexoyDCRA9TVsSAnZWagAAFm8P/RiINQyW/sFhJj4IQNJ7\nKb3NYLwOXIAkVtU9K29aIVDYtxaSS0Q/esjY3fnoqkmFETCWxc0ikGrIJF7p\nhK4EOzvK7s6plbUHEsQZcCBqHkY595JSGDAi3r5GwziGW1grZ/wgt3o2FSBq\nLAq/FsXF798F/vGTfKPTxFG0dID0/LnLsVNuH+VyB9nSfIZWmcjfIqCOtP4/\ndZoBbICthfYzrMwD1nRnfNg/YfzHM1XU/dNme3yf0YtGvegaAumUAu5y0IUU\nHaUZMJ92vzTzv3EA2+1NGA7nt7l/WFz6mKUbU8aahdQrt7hZvq4q4b4fuszk\nO4LUPuY/2yuN6eMGa7MTx3HtVa+Nm23IeXtAT2k3r9M1ChSfInIKEUvVyv6s\nwiMlNkO7LrlQnCTV/mnj1++1AAfmGjefPTjWt87WXKBy2taQs8jx8FMrFCJb\nwiWmcovyjfpgGHBiEo5WwNOBhOhXHMJY6KIuFKqXS4nCL+8dAEszXLvqrjpl\neR998xYsWibqeweF4X1vbdB8XPRMf0ah45H/L9Tok1H2dD2oUiFaiUYgDLiB\nO9It2YCtkXpaTvvhG+4FmPuMZMMX+YlJjPwGXR0AigDm/tut+6J2QoMc6HfH\nAkFNjaoCDGW4Vj0SWfoFqnziHq83uCyFsgxpjrVB6KkSF7nGHDUZlJB2JUvR\nQ0A9\r\n=b2eb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"405f1e85ef85a7cfb12bdcba9816d716433463d5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.c67667e8e.0","@material/base":"7.0.0-canary.c67667e8e.0","@material/shape":"7.0.0-canary.c67667e8e.0","@material/theme":"7.0.0-canary.c67667e8e.0","@material/ripple":"7.0.0-canary.c67667e8e.0","@material/animation":"7.0.0-canary.c67667e8e.0","@material/elevation":"7.0.0-canary.c67667e8e.0","@material/typography":"7.0.0-canary.c67667e8e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.c67667e8e.0_1590070403025_0.4210707030359615","host":"s3://npm-registry-packages"}},"7.0.0-canary.62b5f37db.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.62b5f37db.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.62b5f37db.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"51c026511cd363c68bc8cc157ef00dee820fa953","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.62b5f37db.0.tgz","fileCount":45,"integrity":"sha512-mNbmP3+NWw56/xP31Ln/V7o/eaXs1Zt2wx8C6+o3hBwsQ0Jv8oiIBQ90Lqe9twn4kD4gnCJ3pGnD8EEC6bCNWA==","signatures":[{"sig":"MEYCIQCvBghH7xnIeN5boIzz9QJ+JeRjEf7Bs1D/UeNjySRpxAIhAObZPBW0/UA+IlOEcXzmhkGSiWp2NPOxN7cELbU6u3oz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexq9VCRA9TVsSAnZWagAAu7UQAIqOL637+cHYf3/012f+\nKhWNwfagyLLnKS2rWXdfYzDC1N65kQWSw+ZSUewE8eoLlZfC8H7GZZ9Musln\nrS+rEnPp2YqZSQ1SjybT0EO3Wr6aticpwG5F0eL3eNn6vnPLiEZyoPh4BoMj\ng6kR/DJ1t31yxE/pFl/PmVgA8hhwMWg9SMrNJ7ffxu7Aa2fSmsf77ZV0NgW3\nsCWf61okOQ7V58Fz/UDuKBwdk1+P5sqNYWNWX39HoKj+yijDknMslcGIPmz/\nUQSCQzvTUT2SFDVhPiu2F6e9KpXtR7VgW4a++noROOlJYqtASwlN5r+W1xRX\nLfM72C0+JCyg/eCYXUtPhGU7wwdwM7nS6A89mpkCsG3AvMeIIXPtdZiLNgcg\nqJ+fkxcA9BWL2EQyG1Vl69OUYcjYqY2wlRgtIcAp7xk8v8QVo815GtJ+jIO3\noatOkpmg+rihs9dKu8+q5wljAnn+hZ5QzXvucskCvRBtDwFpZxJEJ1nLc/OG\n+gUXxgBpwv6yy4oofEL6H5A52prNr6PYUGfmbKo1ct7CXkOyCfj7Y7aHZQSq\nPJpQhJ4Kfj1Ehslu/aafFs0kiXE5vcDL0TUTAHLZbo6PLhgOTJzV8pPC9sSa\n9/jZHG9km5zdAdFW4akh21qbg9LdU9ISVPr8Ny91RSaUDNjdVVaFZhXPjSj1\nbtVL\r\n=qBXP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"62c869c9d490fcd3f25cd87f251a83b273e32736","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.62b5f37db.0","@material/base":"7.0.0-canary.62b5f37db.0","@material/shape":"7.0.0-canary.62b5f37db.0","@material/theme":"7.0.0-canary.62b5f37db.0","@material/ripple":"7.0.0-canary.62b5f37db.0","@material/animation":"7.0.0-canary.62b5f37db.0","@material/elevation":"7.0.0-canary.62b5f37db.0","@material/typography":"7.0.0-canary.62b5f37db.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.62b5f37db.0_1590079304187_0.5174523602605754","host":"s3://npm-registry-packages"}},"7.0.0-canary.2e218dbf8.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.2e218dbf8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.2e218dbf8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6b1953d0fe857d3b91f48a261c20fb2d2c0386e8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.2e218dbf8.0.tgz","fileCount":45,"integrity":"sha512-wTg+bz4yARQeErD9Silq+KmakAFO0IV9T9BcvkdmYJs5xRJWs0OAthOvkezKgIGrkivIm0gW13O231lJLXd8Gg==","signatures":[{"sig":"MEUCIE2HkVtvj+Yyg5303yXzAfpJvsdimwkyQ/7nSy3wWZjSAiEA+tz5rT3yjNoblCXpdHss/xUPrk7ZAO04OXMN3XSUqhI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexrQyCRA9TVsSAnZWagAAtKAP/3Ujdk0JISLOJXEr1h3W\nLTC+hL6WLqhRdtUVxzcqKiHH9ALGCeGl/Qo450NzRluAmQ28t1VfP4m0ZuSI\nKaMlzTbBoOOxRRks8bQ+kAaJIUzB3/5hChdRVKD50MmVD6lrf/t8QT40/079\nzbT0pYc0wCx1RzcbhAsutizWuvVapS2nT96LVOWUpkCQlWuNYSJd0FYq9AoR\nlDr85HNFNBNubUJ8em0nEPotErkYTqCiIAzS7NX5n8ffaOpR0YMiN9ImuHBY\n7WjWRhg69piU9KdOREYPCWEiK1Px3s+jN8oWYmCf3Yj3HBjveNF4g2a51owM\nKUCwExc5+vmry6VCdB9s2Mx3RPz4OmgIdXh4Ykl81KisUbo37tdnDSLewTG+\nI/EvJoeTNKDgl2mBk/ZC90T3uCrNAbWnWcE610PLfoezRMXO4/nXjf9yE6o6\ngFIyBmq/Z0CUJh+KweX4i2pemkdbRDXCPppz1wdk8LOZx77Brj9vh0cQsSMY\nDZeHlYj37CE9YLcw0spShhazFxopru9t+qjzPH9KxtZsE8x+c6IISfJiwtab\nCWbK4ISV5TO93+iCsWeuTXe4gFstc5re9lZVTozR8ebLx65Hlj6rbaUN5h5l\nr4HoNRZBLj9HmmRUCOzcnBVBRgoKHhhqaFKfSvBj8nOz50cOu6afRvz1GVVn\nZ4cw\r\n=q95d\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f9b76f9144a233e7569877ab8f0dbbb1be555055","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.2e218dbf8.0","@material/base":"7.0.0-canary.2e218dbf8.0","@material/shape":"7.0.0-canary.2e218dbf8.0","@material/theme":"7.0.0-canary.2e218dbf8.0","@material/ripple":"7.0.0-canary.2e218dbf8.0","@material/animation":"7.0.0-canary.2e218dbf8.0","@material/elevation":"7.0.0-canary.2e218dbf8.0","@material/typography":"7.0.0-canary.2e218dbf8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.2e218dbf8.0_1590080561729_0.062035529170309855","host":"s3://npm-registry-packages"}},"7.0.0-canary.7fd792bb9.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.7fd792bb9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.7fd792bb9.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cd40b33dfc26e74f5ade4014ce1484418d01bb30","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.7fd792bb9.0.tgz","fileCount":45,"integrity":"sha512-+ozglS3BKawIqtVmbppckuhFT04oq1ezSiIDN6KNrFRWVSsQKrz95fDztD2r5NLgzCiZcuzPp5ojv2Zg3br5XA==","signatures":[{"sig":"MEYCIQCqaEqF64f3TnyG1GCp4JWdlMD8irU1rsaWhDKoDcoIRwIhAOi+hgD200fqPwVOsS4CixMClbar9L1x8NyZaS87ls7F","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexrckCRA9TVsSAnZWagAAtP0P/i9bjsyWlg/t/Iv2XZV7\ntTYwKl0XJ9hRLxpwDQs/+XHfbGwvStXxki+YmP5Df3fW8V02auFI6CFpbI0q\nuJwlURQH4qr+j5mWp/ZJG2DHl/xBKmpY6MUMsL0DImIesiZPKgS+mng/ayfM\nRjPmL31awkjP6EWrjim9CrZRhKWcrDv6Irrm7W0898Pv/HD+TZDwnxZFI1Cb\nsrXHTjR1qNn/InHnRus/KnDJHfL/Ev4/KLbktkHLeqtlD5ok7rWE3uB1JSyG\n2qSgsienLYHODjfcuNJY7WVERDiwuzrXtXSRvHFJKFsRqQf4cwWqTIN6gIxc\n9UrrCWd31qhsynzRkYqTnE2dPVCooWHHjikY+nJUwAd2SCVU5OWEPb/U0bu3\nFb7fEB7wBvj8jXobK3ti6oeOzvHxM2XoLAvKZtFRUWyhkgm0fxC0YUIJDmsl\n62/l7J8mGFTd0hdn3fKts/KbMSV8nI83xUKDYlksi2X5BYkREWbKis1NdY4s\nkQ8pdufQHrSV0CJkUEbfk+jcIzjGPrEpzYJ2mDeRPKPdADViTqxg1xFeD4Q6\nU0AFZK/gZUbclq1OK4rVIyZI9Xdn4jRzp0etdcqhaJaJCF5nWuBYtM+eCSHz\nS/1b+W8KHLwS9P4dipwkx8GdHw1OxmeJHuS+m3fmmJ2Z7M1lndPKx2l7MZe5\nK3X4\r\n=KoRX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d5ce4b5e7914675090d101b10f10374783326ede","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.7fd792bb9.0","@material/base":"7.0.0-canary.7fd792bb9.0","@material/shape":"7.0.0-canary.7fd792bb9.0","@material/theme":"7.0.0-canary.7fd792bb9.0","@material/ripple":"7.0.0-canary.7fd792bb9.0","@material/animation":"7.0.0-canary.7fd792bb9.0","@material/elevation":"7.0.0-canary.7fd792bb9.0","@material/typography":"7.0.0-canary.7fd792bb9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.7fd792bb9.0_1590081316092_0.3019230353903255","host":"s3://npm-registry-packages"}},"7.0.0-canary.a66493cd8.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.a66493cd8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.a66493cd8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"32ac4f8b536e188a4913a57b154f5303a836309c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.a66493cd8.0.tgz","fileCount":45,"integrity":"sha512-mv1LDqWDN3M7MfJJ8/7iCis6UEmS9Mujc97wRiJt+M6SaVAzvvU462CjPFuZ+j+AfTOmP4HNVj/vSlQdJhSjGg==","signatures":[{"sig":"MEYCIQDg4DuQNfB1bhGCcPQlxetpAKnEgBAQlKByVB8SHEgIAgIhANOrGHQat9iKlVeTmY7hHI5xo1ReLio+VCHKE4JAvXo1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexrf0CRA9TVsSAnZWagAADR4P/3gXhlYTCu4VeoJz6F64\nEv+G9S3QhKpaA6qCFFEiYPQ2c2n5dTNcPU8F4YnwBvOIhKnV99jk2NRkl2TB\n68evYtTAN21uOYj1bq44HG8Src/Jw3bLy+YqN8WqmwD+KsA2EcOjFOVVHsNO\nzQKI9Fu5A1VUhdcTw5wq6X80n0zfPQ/lvGaZiuvQ28vc/mypLLQQtLMdDoow\n1QVOlPEIF0fxBw4/+Xfh3bh142CvHrm2hGYbqcv9IiyiS9VDfVwOJxo+l0OT\nc4OoYJzWQqKOgLDJhKZhVQHAjdFXKJIwV+Ck/VsMIdQbHV0vxpmTqyF/TdS+\nfB5Wh79xl4gdGQT0nWVa1NisIqkRl7Djb7dQ33B/3RvGf2t3X84/d8Ur1Z4X\ny18ZshqdWnuhK13dJVu8T+CQB+SH9xMVefdnKINbW7ROaMve+ReZ3TXdBaa+\nS8c+UnflWJDHxHc6MBXqTkqOGxm+t2rzxGl9c4OU5EUXyWxSq31qKYBUVlHn\ngwJ2MgpKndKdNin/EDhpORSzipZF3YxvVlAxMo6y2/CLNnMkdWBshCi9n0UI\n8kDus0aC+v/SY012O+mWyjhVG6EC/GEvGuwhIt8t+UfIxwal5lTI+KE68FD8\n37eWhmJjKO654uIjuraAmRTj2dWIlEuTMDjP6RcXs1lm3zGd9T29KaIFUcub\nMLVQ\r\n=4+/t\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a14e3cae1fdb42680777a9a6b5706060924d68b5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.a66493cd8.0","@material/base":"7.0.0-canary.a66493cd8.0","@material/shape":"7.0.0-canary.a66493cd8.0","@material/theme":"7.0.0-canary.a66493cd8.0","@material/ripple":"7.0.0-canary.a66493cd8.0","@material/animation":"7.0.0-canary.a66493cd8.0","@material/elevation":"7.0.0-canary.a66493cd8.0","@material/typography":"7.0.0-canary.a66493cd8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.a66493cd8.0_1590081524272_0.26694980649059175","host":"s3://npm-registry-packages"}},"7.0.0-canary.da05f66e1.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.da05f66e1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.da05f66e1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f44ea11cb92a964e991f6f671135dea97019179d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.da05f66e1.0.tgz","fileCount":45,"integrity":"sha512-j9GsbwX43vLYc3Jm8RhE8xm64UT4yR6Sz+Nv4TC4/82MMXsIECiaTbhCAdPlYJGzhY7HThadlycYe3XKrKizXA==","signatures":[{"sig":"MEUCIGi4zuZuj/UszChwp2p6jpkXO+F0+ahdzIkUlz2Vq7bkAiEA7fkzQKv6lgn4oJcQlV4FINmnqQjjKfa9yYJrN6DY/vQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexrhpCRA9TVsSAnZWagAA6oEP/09cNtfqBrzJsqx9GGbi\n0wXcbqpTh748HNlZ1y6Y1Bbg4TCyXWUcY6Aotf+kpnSoh6w3uOBIr05YqbjD\nPKIG9+kG0uXwjFXKtfQ65NBgHDYVmR34EXLtOhsiR765DpDKKW4E0PmM29NX\nd6Ru/13t50NqLaM/Gk/7BqlAJSZ934A1VPeh4HZKp0bQISJj7OX5AyVBF2et\nfuxbVIOIpy8nNYgrR9vq7fCbK7craRavjdQSEI64du2oDdP7a7w666tNbCxg\nAlLqc4utpQv+yfx7AJ8GRyKcdaeD2h4qSGjqIpQ+G63QQcDbh0zG+PeR5Rmx\nfWKqrexAavYehx+gdw0gh+gYoml1NZKJdbaom5/ldY8V5QCy6ixrMSLwdN1z\nvMbp8Z45Otk21XOShVXls5PVwzgRclU7NIFIWRLrf5PsiiBAs4WoHuIskWzB\nE48vDMNigQdR7X7CPnVzQBRZy+SnVa61yULIeO8COPUWppBxno0VLvlF6Yql\nrJPnYBwJgi61XW9xytPzBGGjMDi9gg6cIX4vjLcf5Sgf8fhNjzPD/NLDar3L\nigOtFPwVqxPb4wOdD4Buj9PQut9gnJPh04zO0rCoUJ8ourS9Cl0dC7YFUXAr\nHgr0/6m3U2EHLx7ee4n9ABQuf70nfLcMG/CXTDMct3YFmfgU4WL3k1OMN34T\nx83o\r\n=eROk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"97f495e74f33645d8f066a4be88eaba95700a4e3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.da05f66e1.0","@material/base":"7.0.0-canary.da05f66e1.0","@material/shape":"7.0.0-canary.da05f66e1.0","@material/theme":"7.0.0-canary.da05f66e1.0","@material/ripple":"7.0.0-canary.da05f66e1.0","@material/animation":"7.0.0-canary.da05f66e1.0","@material/elevation":"7.0.0-canary.da05f66e1.0","@material/typography":"7.0.0-canary.da05f66e1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.da05f66e1.0_1590081640908_0.13156259323967623","host":"s3://npm-registry-packages"}},"7.0.0-canary.740860e78.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.740860e78.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.740860e78.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f5362851d54d99bbef82b15012cc151d391e4cac","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.740860e78.0.tgz","fileCount":45,"integrity":"sha512-+xfi+E4oSCzen88ruMIUVX9I36uhTIx4c/Le8oSgxqj+04P6slV9QWxoEFNwQblsakT6fQUpIfLgIIXWIpgA5A==","signatures":[{"sig":"MEUCIQC5twMSYtKVC0TdNpEemwdEZX71tUIPMiArLAnr1PB2CwIgDcnuY6S9cdVkXFII/qa31Q48ePclpdh815scGwOY2+E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexrnzCRA9TVsSAnZWagAA3DgP/2B6ZxiH9eF7Ja5nutQd\nr2lp0SjQIRgqM3io/vDZa6y8mf9oanO8Yj6cfYA92DR/ZPq+D2psIo0QeKAm\nZCBcWVEb5RPqwCUc9gT4vOfiwg8+vyBsp2gXLhsf/FvQYJItZLFVf/x+6tzh\nMTBZILiXXGV1uFYgiau4x73VKq2G3mwEwjlTl6LLHqptEn9hB4EXv8wn79Gk\nlDY6M3trfyr91tfH1waxm+ygTkOMdu/0o4FgZKUQ7mXMjsG0wXhM9MI8tlWN\n1iYTSP3B4A5UPJak0FdHLyeaPVO6tGl8u9CJFfGWgQ0MkuQP6BOCgXvgeZW1\n7vnCZ+Uc6PBGMDUQAMI4mpELj1FZJBYANkUTQV7kNt6kj4UfbvuZ53I9/UBu\nrJKPC/ppfX/E7i4eXvM0yyKWx3sssWmD3RnfnCdD4Tb9uDNQRqPSR4hOJ35T\n802uQ0JgrchrDZDm5RgPUOUNuZ4vWwi721ku2Uyrl4czIX8jb0m8rDU64kmD\nNkmzJc0+CQrXNTdAM2slsnuiigaOT7/cDgbTGxCBG4Mb3tyQ/2ne1b6Zo4ah\nfkvg9hm6sbe0VyothDCWmN27dL6pqfEapOthuVj2BIgwOEJJDNA6KIYX34cj\n53APKM0gjMEN2KOVoN5pGhXZfA8IaZZngF6P7iGfQgkSnciK1h23bu1Emr4a\nb8PJ\r\n=Giz4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2319c23e86ed8e7ed27865b711bb6ea6970b98dc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.740860e78.0","@material/base":"7.0.0-canary.740860e78.0","@material/shape":"7.0.0-canary.740860e78.0","@material/theme":"7.0.0-canary.740860e78.0","@material/ripple":"7.0.0-canary.740860e78.0","@material/animation":"7.0.0-canary.740860e78.0","@material/elevation":"7.0.0-canary.740860e78.0","@material/typography":"7.0.0-canary.740860e78.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.740860e78.0_1590082035432_0.8863047665590384","host":"s3://npm-registry-packages"}},"7.0.0-canary.5cea2610f.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.5cea2610f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.5cea2610f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7b5ad9c2cf3880acbe1f00cda359aee33f561e01","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.5cea2610f.0.tgz","fileCount":45,"integrity":"sha512-rNST/X3fuIQugnWzayukV1p4kG7eE3lCLANtgSxmCBqxiyNO+tCCxAW/fQO1OImtKTOOkEULriuYt6vCZNQF3g==","signatures":[{"sig":"MEQCIEnuqeES12HZPK4uWr/hBA/TaD7wIrnKxfpEik3MXILJAiB8zyjYVV6qDSbaxY/lnytTsUywq9pMnuuBc9gfOepfpg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexrpyCRA9TVsSAnZWagAA1KsP/itliounyaA3l5GTbGuh\nzhxX5olUlh/wzz/gH5xsQYmndyTewMfmBXIRJaobs5gQQi4t9V1hmOA8ny2Z\nOj15hAcfD+c0vChQy0rB/tgyBzbCZlbK6RyJTIfEAwAd6VpWo9zDhK8bJn4S\nYHv9Q+rMCCeq5Pu6Wy28sCGMuPh0c6jG4USgtwcZ11lyS6U+hCqwGI9NbQkM\nTjOkFoJyH6xbnSmv5+xq606crzfRtK05xp52wdimL80lcFYXccHDgOyoDasN\nc4SoGtwN4QwqAazACl1rKBMDOoJYCvjhXKivxzFJLqwy1Q1WAdXQz/SfBhb0\ncdPaAdowrzynvphuUeY4DDFdOnqnkDIn3WeRtNJixAr6HJ5Dxb26orquh5+Z\ndCaKKGiNLP/yq2RncceYNX59yO1wM6e3EMf7u+qHVddHlhWv7J61MJt71+AA\nqTiGPEquas5ROWqlof3oOj+X52GJT/H+/987eybpUKS+O4RgVYZmC7MIxigJ\nS+LE5sh9Q9X+eEFkVa7CcHqVBe85C45VGaAZEU7T160ZuLdgT+UOdNSazS8K\n5qkW1QwYiqAo8t8on634ZuhqKhBRYDGzlBjMLOEeNmjB+cyJSxPGYkucpvN1\nEV7Dv9q5fMnWUIbiOiT5JuwptwKrO4WzN6zxj0nPUphJ6Xq/HvDniU+BfBYQ\noZpt\r\n=BlrO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"647d4356b68bdae8879ed7384b0ed1ba4e1954dd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.5cea2610f.0","@material/base":"7.0.0-canary.5cea2610f.0","@material/shape":"7.0.0-canary.5cea2610f.0","@material/theme":"7.0.0-canary.5cea2610f.0","@material/ripple":"7.0.0-canary.5cea2610f.0","@material/animation":"7.0.0-canary.5cea2610f.0","@material/elevation":"7.0.0-canary.5cea2610f.0","@material/typography":"7.0.0-canary.5cea2610f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.5cea2610f.0_1590082161501_0.5252873509178186","host":"s3://npm-registry-packages"}},"7.0.0-canary.cf7747ef7.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.cf7747ef7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.cf7747ef7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f1284a20f1b28d35abd4ef0ad5376efe4cf29412","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.cf7747ef7.0.tgz","fileCount":45,"integrity":"sha512-N6q+DjHYnLaV2FPhaiG6NMLHwWCV6GaXXl+0l483tUKTjx5ubjxelzFXl/ZJZpOqOR6LWeeHuFw1Am5nZC45FQ==","signatures":[{"sig":"MEUCIDTJffNpvnubGIEMnsA9CXT4a8P/oKOCHncWP2JXTIYvAiEA0pfrCZ28H9BXtDe0e8OlrzIFq8gnznzx45v9Hngn7J0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexrqKCRA9TVsSAnZWagAAKXgP/jIgE8ljOIVbCLpVjgSh\nHsdj2Q0F79QBXuJ/2u+zGz9QBOrAKeEnKCyjYUYwaxeQ/Bmw672DJ9ngjeUZ\ny89+VOFARxrJNvtZ+0FGxhjJ7PefCaSBlu2TGozrHPSLHsjrTQlRWMvSunPK\nLhbFPXvms4wpwtPpoXRK/m3gKy7TjbFnU4vkHFZN07aq7rVoOOFgU0uWhr6F\nNaO2/VEE1sS1oQgZw1/fUuK7DW6TmaIteUrFjctYRgptzC2VHvFtHMbgwqic\n42cyyrthZYzhb3Ly17C149ME9R0KKhsM7mZpd6EwGN14zUbcWt+Ko77gyAZ/\nRI5ujuDhMg2ATfKCR9fpL6zDSAglBpQ69v0cG++zuS49fdLAvUTHBt+dS0qn\n3Xr7vSSf1LA9ZpoA5Y+mPIdZfgL1YSSKBRXBJxNJ4h0wQSmKpQ0KMo8VDy3j\nxhucZoWbCeEStb9JROoa008ICopU5j+2mftAYoTS2eKkeIx4Jz9cLiw9mqyv\nWFOC5k8IvORp6EkA6yTvsSV/ksBHPmhBMMsgrj0bTkWwoIBskGy7t/KkRXjM\nH5E/NmQR4lNwZa5Qo7fEPvfGlVkfa6yd31Obk8+NX/RWEdpSReP039aLtWRw\nziv00pnXkfA8T8Hox1xeDvENR2Rzz+iAneh1cHQX9MO2V0YTEHAdZmOrRCI1\nQHI9\r\n=E5H6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"12d3ae46d64646ae020ede8b9ce88abc7efd384f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.cf7747ef7.0","@material/base":"7.0.0-canary.cf7747ef7.0","@material/shape":"7.0.0-canary.cf7747ef7.0","@material/theme":"7.0.0-canary.cf7747ef7.0","@material/ripple":"7.0.0-canary.cf7747ef7.0","@material/animation":"7.0.0-canary.cf7747ef7.0","@material/elevation":"7.0.0-canary.cf7747ef7.0","@material/typography":"7.0.0-canary.cf7747ef7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.cf7747ef7.0_1590082186342_0.8246072909385425","host":"s3://npm-registry-packages"}},"7.0.0-canary.862d0d7bc.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.862d0d7bc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.862d0d7bc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9df9fe9df96559b2e81decc6f51d8cb09a4d312e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.862d0d7bc.0.tgz","fileCount":45,"integrity":"sha512-3fozLJZfIu/Jx5CPjtuv1/zJNjdqeXNJUIFse1eeuqdgKCEI1ZXEwr8qkRXmcpzsNacuoa3ze3awh5vAMi0qgw==","signatures":[{"sig":"MEUCIQCWBlZiIJl2jb8kXrw2M8i171PZb6vsqPQhZaBcyON+GgIgePZYAfMu5KwYAe8fHhr/QHnb3yhxnNs2n4C36niN1Kg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexrskCRA9TVsSAnZWagAA3RkP/iA4/Yte/v4QjfHLEltt\nFQhwq7MaS79MRMK+AxhIAURGcDl3brlNQj6AGzhkrSMLRuIihXF0VRE1ukrc\nfAhGwfjgEXIUYLQwYyw/fmtsZpJsW3r0hOzNRrNqTKn+7eYRxTeAbMq+jHHA\nbCmE2acxBwcfrGnF2EaK/HSLwhpUj7GU2wWOf0nzHDr2DQxO4/uGboTJG+oy\nM7k0eQnvJmObSVbicDLw0G9u0g2gHU3bXp722JvkC2/AQX4r8a8YrbCx4pJ8\n8r0cgkKyx9XMBb1rqcKWB5xbet46et5syHpoXTf5XhxCs1HCK1XfW0bpqAaT\nnDRxQByXtCUHaj6R60s6kPjmXO3bLqz2h4+/+dqCtD2J3bQUDt3V+0tRCkNU\nlFQ4BZiSiPlNgwILIbXcrCS8HS7sYEpKPL7kN1lBobXZ7g6+os2iu5qlwZoa\nKyxpUny/c9jEWdB/iogJn0JaiYrEwYOQ+JR7F8QYn7h8M2nrL1yUq5dCihNL\nd6gN/HZR+OIdx8yFEAf+1iNz+4XkHlAjIP4RWmdwJDVFX4TcR4T/P9nCNDru\nmwbJACyCVVsDZQ1FgVT0Ca1sjKlayh8SQKbRvVhEtc3DpeZjCiSGQLANtTVN\nlA/9avhZAszp27ICPWMgXhFaKMQLmvXpEbHdWhp2ScDaMaJFCr0LW5t6jiX4\nw8H1\r\n=7sfY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"534ebaefbbb3a8abf3be3e2e13c05f86a5461127","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.862d0d7bc.0","@material/base":"7.0.0-canary.862d0d7bc.0","@material/shape":"7.0.0-canary.862d0d7bc.0","@material/theme":"7.0.0-canary.862d0d7bc.0","@material/ripple":"7.0.0-canary.862d0d7bc.0","@material/animation":"7.0.0-canary.862d0d7bc.0","@material/elevation":"7.0.0-canary.862d0d7bc.0","@material/typography":"7.0.0-canary.862d0d7bc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.862d0d7bc.0_1590082340219_0.016916063175982377","host":"s3://npm-registry-packages"}},"7.0.0-canary.0008c8a91.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.0008c8a91.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.0008c8a91.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8802f5eed3b6cf43d915e7cfb5e4f253a34acf88","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.0008c8a91.0.tgz","fileCount":45,"integrity":"sha512-UghLM6qIVswyfv4NRYukFpvByBsqv7BIuSxZNSnSOv3pKgTH/NiFTxzNcRIXe7/8INDd8kHhwbs7cbTP6aMcEg==","signatures":[{"sig":"MEYCIQCCxPAB75bNj5j0SL7wsw9XJfg9buC5oDoy/9vo5h2C8QIhAKmB+n8Gg0dG/CEarREYApFzKf8T+fAipWS657UWAhKv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexteYCRA9TVsSAnZWagAApZoQAISO+Q5lf8m7a1kaFJ7N\nHyjYqvxVlsXLU6nyDvVq5rZAeq+cx+An7ZvLyObz+Xl16NfpvqUYN9guuuKU\nOOkuJIFXmOjn5mOtD2pGK/6in8vr9xstFusYFjGvoOCbAGT5ePOUCKeC4NT3\ngtr2E7XJrx/qfzJOungRNNpAUaAvxFRsuz39So9J8XMqQS6UC25V1hRR1ACm\nTaLyx3fIhr//aOL/91C1PPlsuSaB5UCk1O8GSXJDCzJFY0DwJN1PXiPvjLDx\ns2V9NPPfimu7OuDk41UgZcrh59R8/MgimS5iaRcslaW2dAhWblu+y//PUfzM\nqR+0kGLd8N9UF0dokRHqH3b4emD/iNuiNj7DxIU9yxYFdzKMOacl6GBVmvmR\nHEjl787npxdXeeHoqYxC63YN8a0U0pA8BEUmf4M555WTRDZ2+mpf1dJ/OytZ\nMSsiuzRMzFAHvwJO82OZ/El/iwcvD3PQQdul2n4WsqhH27fjyrzoz26CY1yZ\nQ42dcSF4jeo06oM2Wepwk4wHjULaAN2mFaGffsz4ZHHrG/AJnbgkxOIgxzC5\nbWxJa1SYltNr7CNpO9F7876DcAyxlQCAMNOHXQ9flZhy3hg3l44OIdNTadgl\nbQO0EIs+hle/XSWLenlo/aEoc2dYSF9ZRbO1ZlkK7mICfS5W0cD+WM3gOmo6\nYVHL\r\n=XVZg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5bafcd3cd9f6f60ca813af30e2b0a8974de09ec8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.0008c8a91.0","@material/base":"7.0.0-canary.0008c8a91.0","@material/shape":"7.0.0-canary.0008c8a91.0","@material/theme":"7.0.0-canary.0008c8a91.0","@material/ripple":"7.0.0-canary.0008c8a91.0","@material/animation":"7.0.0-canary.0008c8a91.0","@material/elevation":"7.0.0-canary.0008c8a91.0","@material/typography":"7.0.0-canary.0008c8a91.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.0008c8a91.0_1590089624068_0.4495629516954973","host":"s3://npm-registry-packages"}},"7.0.0-canary.541638fa2.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.541638fa2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.541638fa2.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fd4d40ce5cf1a38e90c9112ff460e0edbe6a82cb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.541638fa2.0.tgz","fileCount":45,"integrity":"sha512-sxR49IYlZLoMNrGrVnOhnkIhzEAVVDfAqsFObCK3WGvqWndFsNwhE85fYjQfR2c+jXkm+Whvtq+4xEqvBL4r/g==","signatures":[{"sig":"MEUCIDzhTliJIbs+rZaAdWfi/yN4ZfthisxLUnXk57BRzndoAiEAihAmkDvUUJec2fAlBnjxW8z2mPfWCM9//u8gHWF5hsU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJextsaCRA9TVsSAnZWagAA35gP/AwIn6pqriMw3MYQdCDC\nrnCmziYEx9j5lkFLSyhmFck7ReNwpEKIbQ7I3W+DtzdeP31CfX/6TZgPx0Aq\nP/TS92+2GirbnfIEAOdkxwPVeP6N3r31FIpSEhvzFYTHyCmcOwkAQDXgtx5s\nfoEDDGgWxYQQP7hoUyEpcLuxLXrwSCE+9BZu2dvS/Aw3kofNgludcQUMNR+f\nBkPpswb2OVcLOGSvxBnU1z85GtiDpfdSQ9SZcBmPMs1aXMlk6aWXeEuMIb6w\nL1m7LfjvZ3j+qbT0bZUc/vFwdsh2ybOx/yYeOCJyoM7N++rDozT0/kHOTcbH\nHmH+MJjnCOkZB0IvfbtspB04TpoKpjzweHpGDVscSXSC3YdlBeZ5WkptfEDU\nTqiNSca1TIpthPaPBUKYfMzhmWYaeLlmqAWAOZxjTQ7oWAmPH+CcVE04TYWn\nIOfiBm2SXmuCmiXxgOlgETMKxcQd132zcd/GV8NqQLiOsV4Vn8lCVYapLma8\n3ZzqFov4T3elyn9BnWPiFoS4N6QNQMaI5kyxPjmYB/iuiS8ImkQ21gGwb62n\nX6oOMkt/+eppJyyMLwnbyRdhQ2tpRoNQEOkAUHuDkRQoILHDDaWJB9S4SPGp\nEsXik7SZYHBPyP3Nfvkbs8iNdzoT+Mzv4t93pXmT+1UiHofePRulhpgMfawU\nYiZ/\r\n=NZOW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e9634a8258477402629947671e06d007833e14f2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.541638fa2.0","@material/base":"7.0.0-canary.541638fa2.0","@material/shape":"7.0.0-canary.541638fa2.0","@material/theme":"7.0.0-canary.541638fa2.0","@material/ripple":"7.0.0-canary.541638fa2.0","@material/animation":"7.0.0-canary.541638fa2.0","@material/elevation":"7.0.0-canary.541638fa2.0","@material/typography":"7.0.0-canary.541638fa2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.541638fa2.0_1590090521786_0.17995218097816323","host":"s3://npm-registry-packages"}},"7.0.0-canary.6167cd075.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.6167cd075.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.6167cd075.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3e4db2aca85ba2037336b38c125c810d48945463","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.6167cd075.0.tgz","fileCount":45,"integrity":"sha512-Lf7utJQJGR1Ii7hvO5hGgi2TyvLlTf/+MyQIVmxoxvphbQ0CtchtG1wArfO7TZI0LHHDmAgQ4ckdyyQIMqza9g==","signatures":[{"sig":"MEYCIQDRf06vUo61THp0KXH4RDq8X13YsXdjj19oQIBdPGGKzAIhAM9Ln9nGMsj3MUOu6Y/7/wATtHPJsaAfLY8C5JiVX6uG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084582,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexuLUCRA9TVsSAnZWagAAsWcP/39UD9RUzZYu+ITLceu5\noKFfzQvEnNlh8pWHNKS/bbnIgwwW0FwuOEB5B19m4qmbPOD/jIoEDPhp7A/M\nBpAFIk2MlmxwyflSrOHXQjGeges1xZ0cQtLobb9RNPCVQbmvIxliiXW4LtDY\nAwfb9BmWy1cUCHj4+BwQW7ZX8PaVwkHbFXhyFCoBem+pLAXiWTC/D7nMHAzN\nSQVysReBdp+UpG31hnlgZ6VlphUX9foRxb0NKLXxoDY/LNXKA6ATPHDq9YeS\nXpnwBsEErbI7xvRXL3j7GMaeOII9Ratkji6AtkEeAFRKpJDK56W/X4rt3wgp\nUPg82uuAlbzhFV7j+x+77yyh/tBupt55ek+8iaICoMKAFhLz/mbJ5CUb3Bw0\nOkSXDSKZR5H+UD9D/zYza0oS3hszLSIQq4SirBiHjkP/i2Ll8CG7Rdy2L4B7\nUGmL6UFF4KGbhrmVepoCC1BI9VqSiQfMd5dQYGEgVT2/jdiMIWQCbiJYCl4m\ni4CQRB5U8huA3pNDxwACYnQm535QQM9zBFSkv4iR+As/F5ZkAI9syWeC8wZz\nkDjTfH7jMrDCKA9GgEd9DYCHbYtXDqfVfcN91L8D1q3Jk8UlrcQ2wc/1tGp7\nn3rR/QFj4Wx4WP+EYamt/P+HROiK8QXARYqGHi3T1aC+kprqySMcOLBuaFT+\nzF5k\r\n=mHcI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c86a924ab304fc32e4e6840c7c8962330b6b0fcd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.6167cd075.0","@material/base":"7.0.0-canary.6167cd075.0","@material/shape":"7.0.0-canary.6167cd075.0","@material/theme":"7.0.0-canary.6167cd075.0","@material/ripple":"7.0.0-canary.6167cd075.0","@material/animation":"7.0.0-canary.6167cd075.0","@material/elevation":"7.0.0-canary.6167cd075.0","@material/typography":"7.0.0-canary.6167cd075.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.6167cd075.0_1590092500201_0.8341612393587647","host":"s3://npm-registry-packages"}},"7.0.0-canary.863ac1b0f.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.863ac1b0f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.863ac1b0f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b712abce97d6da5d65cbfa3f9b5738900f7917f4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.863ac1b0f.0.tgz","fileCount":45,"integrity":"sha512-D1eiV2FxVkwQ5WH68tt4beDWZ9F6YiFCRX9pHmCHyfJ8L3OmxPJh84NCHa0TKIu0ndOhXnOBFweFmL9WQr6YIw==","signatures":[{"sig":"MEUCIHZx2ot0oun1NRkp4jgiMC3DywFjlveMGUbKjuRZRg9pAiEAq5VJx7VXWvhC62WgR2uWseaQ/AXCqLcl0J6cIxyDBl0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084788,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexuvtCRA9TVsSAnZWagAA5BwP/AkPLnh4/zS/nLZ3JUBP\n1hpgHaTCCN6qFSA/Xbjmqam8lpt0QMDIzEJWjKrKsJBW2ET3Qr5/nRsGTXBz\n4r8re4rcCpcL/imOox0l736DPSQrt1JflH7AV7PEWTmzm7JC4qmtwBadbrn4\nHzJyCBEMYnr7FGwFW7Rgj1uEgP2pJv8Qtao8dna6mbwqe3KMxIfMR8SjFSLU\nQ/khJA1LEVpuzBSaJhhLEJn6+6+dy5pvMt3R9HtXPT3FR+uGNrxHcHbagktC\n/nGovwSPFn4ataJqgz4OWVnmJp4vhjNrLuadXs21IpjzQneZpeOX7BJBUWUb\nRMNXUsy68kse/n/Bs4RbgOsbsNedy5Xsa231f8G3eOj2bOVXINigtoQS1IzG\n0tYgQizfvCb++pvYdxCmhOx8kBtSq+pOxHSmIyRhIYfxEDEq+teS1SIeRKcM\n7nO8LlZ10+/8UYRT4P++F6lq2o6EvZT/2z04OmWavjiMSFY1k3McLz9Za5m2\nSva4fQKrODyWqqO3KQs786eI9h6LGrLCC5rFtib+IubBZCMPMSnq4qCVYQNj\nkVNiyfMIIeNNCfJjs4YPTQkWBRiSWTayB3MWFavNiQdeCOQ1beClu/xFuVkS\nhtSwUhSIvSSXevthTXc1WmzBenlBBYgeOXa8KK4PaYnRxNEXdu4vfZKiFw90\naJlR\r\n=3AwG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c1e7026720dc12f1bd465dc892c8718b429563b6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.863ac1b0f.0","@material/base":"7.0.0-canary.863ac1b0f.0","@material/shape":"7.0.0-canary.863ac1b0f.0","@material/theme":"7.0.0-canary.863ac1b0f.0","@material/ripple":"7.0.0-canary.863ac1b0f.0","@material/animation":"7.0.0-canary.863ac1b0f.0","@material/elevation":"7.0.0-canary.863ac1b0f.0","@material/typography":"7.0.0-canary.863ac1b0f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.863ac1b0f.0_1590094828581_0.0009442753368129608","host":"s3://npm-registry-packages"}},"7.0.0-canary.d30a214ac.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.d30a214ac.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.d30a214ac.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7f871e26a2c267d9f272a4f444b1a9586859ca18","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.d30a214ac.0.tgz","fileCount":45,"integrity":"sha512-mNphHzJ/EaMYhTLkGua9Ib2zmUV3IdweUvDGfF+4sUnTDxc5Tg+Ih8Q+zaAz9csrXu0pAgNkhGixz/3DuJY+Zw==","signatures":[{"sig":"MEUCIQCtvA18gYvYjq+qfIN1ACp7ogOfmgXhHqTF6QAgvgUECwIgHSQwZBRjE/LhGDnTXwzs0v3bjrit0TWoxo6g8aCqcmE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084788,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexuzmCRA9TVsSAnZWagAAQfQP/2y4k38D+89yvzAHv4o+\nJsG8OD/BQotr+4H9YM0ZYHaRGSDmn0QRNSM9cT2xPP6WoTF14Mc7hKaaVgIf\ns5t//gCPjFaVUWyHgHrfZcwWefPjhTHSOXGOF856lwwGUqJpDTb3HmGYq+1G\nGeU5lLLoYVnMhAaWK6qLEHkA5ZDDoWCzz9JkRuM64cXemiyRcCoKsPKhj6go\n2nWQHtTTdnyp+isnH3ARCAy1zDysYwNhfGC439T/IXSj0RS92rDdQ/Hp6lr/\n1vKoj9YCx1kyjxQ/89Q2BQShyp0AnlHhTt7eTMPyqxCf27OfI9QAuTyJsfY6\n9qeCisjDPqXbrwskrj3xOHigh7hyQFRRZ3Se96hNznJqfYRtedoYBmJtm1yd\nlo/OqEVRJenG89NBMQzSA3fDi/GU7ncNjf4mYApzqNN4icrq1TvLK8KrVr3T\nwV5ZonbRuvO0JlPv5TPHjE8eGr7tYAwJDpjCX+hQ4fJk9l/8Md2fHP4pA8m4\nUeVGYqoqnZty6eReLVzHVePguvtyHdZCsoV8EkP791FFF7UcwnS2Qdq8g2+x\np4/XPqaPmG4EsF0z5h4ajkCSZvdSl+o6xUnSOQARxm4bVRNFBGAWbnOiZ/L+\nPhSkGv/j0fqExwjL/uX9O/+jObvlVpnArZm+jpJokUlP5Pb+3HzShlBdgmtk\n+0ZW\r\n=IBoy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"635c0e7c484f851d2ecb4be825abc36357ffc685","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.d30a214ac.0","@material/base":"7.0.0-canary.d30a214ac.0","@material/shape":"7.0.0-canary.d30a214ac.0","@material/theme":"7.0.0-canary.d30a214ac.0","@material/ripple":"7.0.0-canary.d30a214ac.0","@material/animation":"7.0.0-canary.d30a214ac.0","@material/elevation":"7.0.0-canary.d30a214ac.0","@material/typography":"7.0.0-canary.d30a214ac.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.d30a214ac.0_1590095078405_0.8763162973659226","host":"s3://npm-registry-packages"}},"7.0.0-canary.62abbc8d7.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.62abbc8d7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.62abbc8d7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2a9f0150fe098fb068a88461198813d5e64b42aa","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.62abbc8d7.0.tgz","fileCount":45,"integrity":"sha512-6WIy7JhOiV+nAV72q0fIcTQkEjJA7/m3HLOf/BRBrxSpxGy343ibDticeYKzDDQXsZwAK4D3Kbxmstd5i+1+/g==","signatures":[{"sig":"MEQCIDxumWW2EVolb96i5g9mFMGTmZkz/J50t4TUM7xgsGlxAiA3rSMjdg/V06wDaZQtJfVD1I8tR56lQZK1R+Ae8DewlQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084788,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexvKsCRA9TVsSAnZWagAAw4sP/10AM0mmEsIvriuRFlD8\nUk5v2ia5+O3xxdvIdbOQitRiAo85k/NQEDNS3JHf7T/0v+0Opc/g9ZRWgi7Y\nRHc5THJKwxmnGKSgrSDMP/TLoxwglxoDxRRm3vtAZdinVV2OyDDsOa95ZBt1\nRKcUnanxrNYOiiXf+HWAouwAqPp5pj6xVUn3I8VoB0vosFoYUvFOId8bV8sV\nMOq1xvvJQQgvleogcf96k/zg2hBt7bE3NW82TlZmaL4YJ8/myWVpozXerIdM\nxsanJyfYuX4RN+2RCZ7lENDHJ570OviOOQjYmjZEw9RSs+8lkVpNEUOCfx8Y\nS0ZAvCRffjRhHHAAqa4DU7Si95tR7GEfXGiYE5Pfr3aYCH1GqKHmFfzhUPGT\nrx78+i0KWhNGE5Inxpj0v0wd0GGCv4ntT/C7X9zEB9fWnyo6N/NNpi9hbGpP\nTMyQYALax/Q9CRV4NHNHliXPQG2IfEBNIaC3YPlYrQCoQyA0/muwkBRr43vx\nZPFdXYqcRNYhz+kXQRk5mhy0HDZ//HT/kkhmzWBOmiLt3NQnR/UwqHLMdQtr\nH6kjiZGCng0IFJoElIzZZFY6uDEv9mTce6dVxSxTN0tzjQjYb2JOmLvn9H2z\nxsaeYTxyxc9GFQZwMXrdqru54DCHiO/64aqFxjuJ6kcvCza1uCW0iG6LsepF\nfqTa\r\n=1bO+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6758c29e4b065e2aa9cf633b0838c4ebefb9f54c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.62abbc8d7.0","@material/base":"7.0.0-canary.62abbc8d7.0","@material/shape":"7.0.0-canary.62abbc8d7.0","@material/theme":"7.0.0-canary.62abbc8d7.0","@material/ripple":"7.0.0-canary.62abbc8d7.0","@material/animation":"7.0.0-canary.62abbc8d7.0","@material/elevation":"7.0.0-canary.62abbc8d7.0","@material/typography":"7.0.0-canary.62abbc8d7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.62abbc8d7.0_1590096556155_0.8892502931466817","host":"s3://npm-registry-packages"}},"7.0.0-canary.49bf31d5c.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.49bf31d5c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.49bf31d5c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e6ea9c6b2d6d54ba74880517dc9c598cc91b71cb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.49bf31d5c.0.tgz","fileCount":45,"integrity":"sha512-wSQWtttWTOlHlC/uhE+xMMXewiRCxhzKYUey3Ibh9DNS8grBYFIO25hMqT0gVMgZVF2LCgSuXB2HhyOwyIkOGw==","signatures":[{"sig":"MEYCIQD4f0H4fUc8MHnDcXKsSwtp80QGp13omMnlBnYPt6vR7QIhAPCn9nISoY2Bq8h9KkYPmgNlvzkv027ELs6Tvz1ypzhG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084788,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexvN3CRA9TVsSAnZWagAATPYP/jz/MBJDw28buzbN61Sx\nZncHdW45nMFjIZAqR2n5TYbQ8UD17ZoV93WofCtrUEemTumkpNGzVHlRIw3x\nBftZekrFbU81Rrw8weBRemLim4jCO/ryGoo23p6XUkRiTCySYyrZeObj/fvN\nglRTJLwMROPPm7CIBVp2QvSEewAEsMT+fDUI6yllOR3EY761HL+gUwtbTfOM\nHrfljN/5pe0UESBlNGzBHjgAGji/Gq1Al2QPjRz8sZif75Q+iKS9gO9RcqW+\nZz8BMbSnTm+v/i6UBsDUnyYLnbFxYej7WLigomxmcVzc4Lr42AHGzCrJdmwp\nOW43oCoPVHTI/YbuqoRIn3N3FlbAwzcxzmbSxt+cpexEp3RgZz2RrVC+ip3m\nFsjsVBBPy0pk7ZuGj/xH6nNQRPvfoR9wSy0XaYPmbdRQkYyv/mInXiUFeo7+\ntaUNDEM9nvWP+AridrMSA0PV/4vNegqgSkAiNJ9x8rm7Jo/dqp0N4aHo6ViE\njo+o4WTr+uUg2BVs+GKpJ3yQZkeqve22YisRbd0HxkBi+aAFv7GWonC1Jn3l\nd+FTX/qS7fSz9ppAnYg8ZYESMOfKutdAkSL34nQKJZVXB3EMiUl0lJpil5xW\n41ZkxGOgcVgNilHmBpeJaD4rcwugrRHFqz5Z0w4247Gj3i77h0+KAT3IYayA\n4lCK\r\n=srS9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"01cd7b0082a754dfb042df35ec48efcd4aa4c52c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.49bf31d5c.0","@material/base":"7.0.0-canary.49bf31d5c.0","@material/shape":"7.0.0-canary.49bf31d5c.0","@material/theme":"7.0.0-canary.49bf31d5c.0","@material/ripple":"7.0.0-canary.49bf31d5c.0","@material/animation":"7.0.0-canary.49bf31d5c.0","@material/elevation":"7.0.0-canary.49bf31d5c.0","@material/typography":"7.0.0-canary.49bf31d5c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.49bf31d5c.0_1590096758858_0.6327341332597984","host":"s3://npm-registry-packages"}},"7.0.0-canary.8e17857d0.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.8e17857d0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.8e17857d0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e6202c1046dc240acc0ff2e888220bd042d18b07","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.8e17857d0.0.tgz","fileCount":45,"integrity":"sha512-6XdKVTQ4yZJXn7obVG341P2kPx4UFZfNuAiN9HBKJIywmyUDBG88JV719jd2oXKD0O8FHzMxt5r4LL5j5h6Xhg==","signatures":[{"sig":"MEUCIQCRgbU11/+C6HQUSpveH2COFTUHncb4EqqWEVT5S/K7fwIgZLMD84/kSU0cuUahOia+TTwEwss3IRp5QQRRM54BNks=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084788,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexvOvCRA9TVsSAnZWagAA5lwP/i3X0ri+7dI17G1YcP6n\nty/kSPuozjRgu91vNtuC5b31BalVdM2QT5MN5XLMCJWr9IufgBFwTvq5oE1T\nIMfuX1LuU6Dq79qK+98Xh0yNfCIs6P0kVdLR6DgkKqXlMuOk7LRJN2x7M7Hn\nhnvYKNd0Mr+5PpFS+NJeEeOyWzwBmYUKKnr5UYrYsk2Fl3qhf4xIObYfVTeQ\nYA5C6/aQSdzfHa4/y78Clvjf/8ydOyO3B9sN0Cxfn14n4LlHoMXKM27HXJTm\nBNctpGrBCbtvyCGOj6Mpehi4JwXw25lt5SmI+pyNP3vj7TOln5da1TnCOwJb\nH2ktAFTN6EXDUXUds/ryJO/PKhE7UyOybo1p+C9WL7Aoe8cCVAStQ5WhHHs5\nbqrELYGgh3u/L3GdEl5vI8D0sXWKQzvDZU/6WWC2i1DLlGBYiQ7Q5xaNR25H\nuQl8MotcYyl4nuN93qUOLe8E3hMAWMOabh6Fg55ubIdHrVD1aPqVnFhkmr5a\nML5jufl+K6DzGC3wFytbkZwbvqtFBglg57N1A+WZRUoqN9Xfx9stLIsQZ4FS\nixyNYwcEeZsjEQnKN8HWAYUybEPuJwL1fjReWr0BB5D7TCYro0XDfeju7nba\nppFCzlreWo7lb0Ibk+6dchnSLALZ9pKgJoXLM6E9N6ibTPlhxUgC1/NSEkOL\nsclG\r\n=8Zkm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9b03d700366fd287f2ec053c5ef4ccf802ac600f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.8e17857d0.0","@material/base":"7.0.0-canary.8e17857d0.0","@material/shape":"7.0.0-canary.8e17857d0.0","@material/theme":"7.0.0-canary.8e17857d0.0","@material/ripple":"7.0.0-canary.8e17857d0.0","@material/animation":"7.0.0-canary.8e17857d0.0","@material/elevation":"7.0.0-canary.8e17857d0.0","@material/typography":"7.0.0-canary.8e17857d0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.8e17857d0.0_1590096814914_0.7762558656364096","host":"s3://npm-registry-packages"}},"7.0.0-canary.c113fc942.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.c113fc942.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.c113fc942.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1bc292352f4eb82934c45a0e7a135c47520d7394","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.c113fc942.0.tgz","fileCount":45,"integrity":"sha512-UcvACVsvRc0fcsaworAOgBqX1manxF/pzXN+p/YCGbfu7EFwJWKiEBBxxER6ZXqPuppmIwnWvkurP8jHGN75Sg==","signatures":[{"sig":"MEYCIQCjVvOYhrPyXLCsJ7aq1LsuIXJ2WV6pMj0iCKkw+yV4zwIhAJ9bVR3TDu+chvEzwINv28PLZp8HwS4DtDAT/sQ/6c2N","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084788,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexwTmCRA9TVsSAnZWagAATUsP/ir2GAw9CPahujIXxkrc\nucj08XhOJCU4FnLpe/fhActoQm08orN/dgHjxRifnfPeSvmo5M15wzF5ulaa\nu6/umSoymRP4m+RqSJktd1X4adyIFm5xmRBPzkZN6ilEFGEoyjbYIcDv8fNx\nYHu62bIZgYtFBtyAYENtSYIZ9q6ouK3UwdsgLDmtXL39zpAP11LKu7qSGjc5\nDK8elKHfwCJIKu5JmVePXF88ey/j8k/vQhWhh3BLZP9ZpLI6MD5T5kagVppa\nZ2DIl2HFdzb1i9tUDaNxxpfdlxh9saf9UreOEKTboiyRXnGclFiogUm6ht4x\nsxRXWJe+y6c82pCTTfoZ2oEB2UxOruTZc+gxs42S2+Hww+cDQC4Fd2+6yj3v\nvyNpgOA8pekyTxD/sqd89NJaZ7WwZcu+1/Bx0Sp/2UT48oDIZRW14R4rNkUM\nrXkrTuKyXVV9NTIvsDDFNbAxBHGXsk+mtFZA6KvP3JRWHM2KDHECtC/1Od/5\nScHBkC1MOd+742FlgTda3cBakrNVh8pyfZSRmm1EP1xpF59yVBPRDplNcIM8\nxIIu19QmVY0lQROCnwPt2agLWhadBYdo+RGDLZ3d9nyiHVLwuciVoPibeKbT\n1kJNYbn0krIMpyhH5W60VDLuRlUi4BRrl6vVZdPeaCF30zdfs3ZEHvYmMSR6\nfJ3Q\r\n=kNwG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"49605d78c19f78dc1b28a35457efd8dd808621e4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.c113fc942.0","@material/base":"7.0.0-canary.c113fc942.0","@material/shape":"7.0.0-canary.c113fc942.0","@material/theme":"7.0.0-canary.c113fc942.0","@material/ripple":"7.0.0-canary.c113fc942.0","@material/animation":"7.0.0-canary.c113fc942.0","@material/elevation":"7.0.0-canary.c113fc942.0","@material/typography":"7.0.0-canary.c113fc942.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.c113fc942.0_1590101222464_0.6613206806603436","host":"s3://npm-registry-packages"}},"7.0.0-canary.912d9021d.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.912d9021d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.912d9021d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4e475a7665b1c8da33a108a0d5b79a4b8fa3cd2c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.912d9021d.0.tgz","fileCount":45,"integrity":"sha512-wzdatDoecsw84rm2NooX99g9ATMzpXZ6I1qc/XMMg8e7i8AqmghKUzkyOtJJJU63/P0aZHaulDidiL1wtPA8Pw==","signatures":[{"sig":"MEUCIQCP1KWN8jwhLVE0p6BwRXdMQybXDfDptQqEH/0EOaViFgIgdNqmcQZOGwBk3Fd1cNO1H3sfVtxvJyAR3Ow04sIEdqQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084788,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezWPnCRA9TVsSAnZWagAAiFYP/3/qDtUf/ufqmpxvxeMU\n6TqaNMIzZpw9XJcQOyquXQacs2gkOWuQxRNaW+03lGms1KCJy1CbabAc7gbQ\nnfjkZRwZ7NAlmyjySKAMM6+0fZ5CBfgP7RTIE3HP2pC12Ga0SR9ph09fX4OL\nHSiu/TYP4D0+SpMx4dlUWVj80uG/9j8kqN2/xD2Xj/vvHJnmN1g3oNTL82s6\nj2c2UOQ0pGmtErC5jAIsLq8s7S8M9++ppTUXU/Nbgfg+mF9uqPxpjazgbiyI\ngpR2HTuh8dxV+YzUe9urV8nxA6EbxU1KH925by4VRnzhZeV1kMD//9K2v8Lj\nkhWbwcWG+WroZ8NFKkxsNGxr9PkGlHCCOczuOcdNnNsJ+OA1ZYNf9Pm0VVJm\nh3NZsBOQ/wADuZ9iuGf4h0DzpUr0n6nES+gvx8SvBW5TkQ6lGLa+YIez8Cbz\np23WStteKLaCnyrNmosWr/Qy9vzeIsyMdh8gJFnzQgzbIb+lPJXGfu2NuYeD\nK6RGJDW1XB9+7UVyELnc0v4mzuS3Tiq0Ek65JjZZsR22Upxg9XREgsYBloqe\n3kqCTT/B04AEpmZORWtSAHCOJkleus3xiX1f9APn5epEn0sQZQujWxiZHa4V\nJfbUHPHy46M1qvELhdevclevodLllPGziSP/VVkjcxH0ngEW/nvKP+wjSve+\nia0K\r\n=YXWb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b7080ce5675d8ab69b7f361d040e079511499175","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.912d9021d.0","@material/base":"7.0.0-canary.912d9021d.0","@material/shape":"7.0.0-canary.912d9021d.0","@material/theme":"7.0.0-canary.912d9021d.0","@material/ripple":"7.0.0-canary.912d9021d.0","@material/animation":"7.0.0-canary.912d9021d.0","@material/elevation":"7.0.0-canary.912d9021d.0","@material/typography":"7.0.0-canary.912d9021d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.912d9021d.0_1590518759133_0.7184498609150554","host":"s3://npm-registry-packages"}},"7.0.0-canary.68a2af131.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.68a2af131.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.68a2af131.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"df311d67ff708ba5d6cc07078052d7939c45788d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.68a2af131.0.tgz","fileCount":45,"integrity":"sha512-eXWSMF/eLx0apA+I+8Er4ttXWf2erBpLM91fiMoCn4HINtn/0uoPVg8FyOdOY15c1l8MEK7rahKIWvsVdc+qGQ==","signatures":[{"sig":"MEUCIANpVqAM7trZiUaL9KUm2E6vfbvfCv7pY3OBvEuNfy3NAiEA2ibaoyWuuUtxbkyq8E2C0XP/WvmFUOpssEJ90CdTcNY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084788,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezWkZCRA9TVsSAnZWagAAz3EP/0iQ27K+qjqHn0f/pPLk\nSiScB699oJSyTT3wqhbWKbNjslJGAW7mzkUUD6Mhdu9KICxxY+/DqRbKwO7k\nK8MtcH7PvK01/cZusuDQTqipOj4iCTxBKSTSAoB/Wx0KiZTzhN4ct5gMA99U\n4di6+Tkv6GjtPB2b1UchIQPknja8VRCJJ5gY6sQCCC+hOoIxGkAG9iNSdhOP\nMEjKhmPCQZYSiXC8NXqQPQS7b+qaD1vU1JqSP84XXS7ExCJhKE+HZy9GHEnC\nMl8jT3fbNrHd3WlRd+q56YH9mvuV/HpxwSlwzumfnxqL+YoTZ4yJtKSgAZ/k\nV64B9QJ/ftG648mLyvGVXqbecC7YkMDMzQDQsI1ksAiudAdzliJt7AeWdNtP\ngR8wxT9Whn6aegyZ7+DMXHTUsujBKerr0K/RazJqfD1/31z8PMk2ayM7rhJw\n/hpCDsz2MQT8E2E78XY4hJRH9qvruVC1GGSCLeZDzpqlFv4S9HlRZZ5EQh20\nFdUxWJxm1qz72dkya6WJg3RpwpetE4jyAFPctjB6p8l+t1KgdlEdMuAL7mEt\nYk1HdhTgFHjHth2z103iBJmWCAgb3DZN4+adqUmEFF3HzJuSh9Nit+88RP2U\nLmSLFRnJLCEO7l3M/Rw/q7A2tCdcodQGHzuDAgVtU8sitgSGXVNL5Nw09iEH\nXQ7o\r\n=V/k6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9fa697d39bb8f18500434764b1fd608819d2e194","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.68a2af131.0","@material/base":"7.0.0-canary.68a2af131.0","@material/shape":"7.0.0-canary.68a2af131.0","@material/theme":"7.0.0-canary.68a2af131.0","@material/ripple":"7.0.0-canary.68a2af131.0","@material/animation":"7.0.0-canary.68a2af131.0","@material/elevation":"7.0.0-canary.68a2af131.0","@material/typography":"7.0.0-canary.68a2af131.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.68a2af131.0_1590520088881_0.823101054262801","host":"s3://npm-registry-packages"}},"7.0.0-canary.01de07011.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.01de07011.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.01de07011.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"16cf7ceff3dbadee4274237bd5b2622999bdeec4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.01de07011.0.tgz","fileCount":45,"integrity":"sha512-AWeOmklQ+NErLv0kKdOIVtidgVZaIN97yx57nLvXfE+TOFAd6AVlCG+9jPRCH6SxBeXWI7+n5COc/D4YmDpTFQ==","signatures":[{"sig":"MEUCICmHQ/KwyXGOBHgVKi+Looze+FyyMK7lwVQySLnjvLQsAiEAi2vxqE1dvcrJnb/PDjJWYsWp3f153Mq85NEFTkdj/1U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084788,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezXOkCRA9TVsSAnZWagAAO40P/RIwIRhzdNgj+39P0pQN\nbVR4BT+Pc2+wHb89rmx1ZSJhtAEfx8JImLCGgLb7aOg9Hkz/fiBKiMfXWbvx\nOZveqhsfp4s4Fmh6JnhRjkqVgWuGl1/uuRiCq5gSxJlmFezBM1p2jlrJDmCA\nmWvkY/jfqGSXfKxuuL37Vs8gXnLdFQZassS3ELR3rQ3vPyh3uuzNHN/lZ9qt\n8iOcXD3PA/mo7a4qEgtBk4a2MiJ3FRuzDNSij9ivMYDgIG8dwH/ZbKV5M5Jn\nIRz4S4Am+4THI6LJ6nAw8dJ31JmNrDmvZlmJa9kEaR7WG2ymjk4UylN6VYYg\nG0PS7MDeRHEYKqRVBdfHMpyr6H8wQr3k628Zlxivl6Lc192PwJNim2UjGS+v\nrMgHNbvXwir31775dhwNv/HSjnlC9qPymuKqOv8zMFSlNDEK3DpS3sVzQq2d\n5Wi/Byj40UiZtUqT0Pz8iN/YOEvnSKip7gfyW6VfIiZRcSas5ZbI2s91+pir\nKjD3O8Lo8WNrgwaOFt4Ov7l9aiLVhUisomBCdZED/vykElgqDsbExwmadAXn\n/xr5TJfg4Q8nbrWMJsLNmC5rjRCf11lgpw8wcmRJx7hwILFPptiJ3MzFtdB4\nQA+iPPGnUyzQOLMjWWMychUMb5CdG+912axwee4WPF6+oV5jTzJ54WBgxABZ\nl25S\r\n=VwFe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"58ff4055affa7a1d66e79813fbb147990e5360e1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.01de07011.0","@material/base":"7.0.0-canary.01de07011.0","@material/shape":"7.0.0-canary.01de07011.0","@material/theme":"7.0.0-canary.01de07011.0","@material/ripple":"7.0.0-canary.01de07011.0","@material/animation":"7.0.0-canary.01de07011.0","@material/elevation":"7.0.0-canary.01de07011.0","@material/typography":"7.0.0-canary.01de07011.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.01de07011.0_1590522787536_0.3658274916011206","host":"s3://npm-registry-packages"}},"7.0.0-canary.51d4535fe.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.51d4535fe.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.51d4535fe.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4ece3fe1f7b0c2ebed994f5fbf4f257600cef08c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.51d4535fe.0.tgz","fileCount":45,"integrity":"sha512-cdgNVoKj2C7k69ca3CtEfNvWgnw/YXWHozKFbVoPww56V2uzhRc0czJRJ1jdOFC4XVpNKZusCDJlhHLQScRSKA==","signatures":[{"sig":"MEYCIQDlgzk8O/d1kbyEyXdtdU1CHx7BmnZp5MmS4lUM9mzenwIhALX6qnu1vQlJ6LH8T8wA9PrlOwBXdDLZnd6Jr1SR5Iax","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084195,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezYu6CRA9TVsSAnZWagAAEw8P/0N5PFbnRqRKw+WLn/d3\n44xuGmPpGRjUkM8CcRzPQmHrHv3Q/5eSCIMjfqwFIriWa5y111qbvdZKoh+4\nfqN6unZeu7juAN04dIh9M6g1X0fvD4Ezc9A/D0Or1l4sfFGmRzPp2XrQCZkn\nGlA6cYGNz44ebcmv6vj8orzsWHMEEvR2xxUwKrY1KlKRAijHN2KVL/yY3coA\nu21rF6YrD1ptXSyR3ySf3rA/gaans0yPIlKsRRHfrzJPCfV8gjvdy/yPlHup\n2R+eN36eLsRTq/V/lEf7E6yeY/UWcQsmuHPY+PLPz0XDPJBVK8vFHYV4howv\naRq5aXjf4RR9YPqUt/v6Z5GDHfwrhMS02IUAvgSSlg5S4XaZMnBgctTIanEM\n23iB41aYhewpFi3Ii0X74N2327Hwpbj1slBeZT5ztEdSLW/JTSB76630N2s0\nfqiTJkDs3bWCLVgAeZJ/NiwfGTNPUCOSkya0Rv5Oj+wkm6V/iWXR6t3Z5Hdr\n4WNGyHU/j2WP9HHFArZBWwBNQ7VHARqrcTS60Wz1p0O9KVRt8hVWAn7Uek1L\nQ2IoSMYmExw+eg5L3E8dlSJqDQ2tdeByEtq0JLh8xFa22yEC+My8BpEzj9oU\n31tKpfNwHAj4UbcQy3bw31/10VcOfjsDzf/85tbTdr+TcKCJO13GaWOtuHPd\naSDB\r\n=mF0B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2ea346ccbcf8fe2cc90f893a510a194ad4f67356","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.51d4535fe.0","@material/base":"7.0.0-canary.51d4535fe.0","@material/shape":"7.0.0-canary.51d4535fe.0","@material/theme":"7.0.0-canary.51d4535fe.0","@material/ripple":"7.0.0-canary.51d4535fe.0","@material/animation":"7.0.0-canary.51d4535fe.0","@material/elevation":"7.0.0-canary.51d4535fe.0","@material/typography":"7.0.0-canary.51d4535fe.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.51d4535fe.0_1590528954054_0.6473261472442817","host":"s3://npm-registry-packages"}},"7.0.0-canary.b86d826b7.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.b86d826b7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.b86d826b7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e779108a618dec13b6472c9a3c8094cba5315306","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.b86d826b7.0.tgz","fileCount":45,"integrity":"sha512-WQuCmHzwU055T+jYHX621C1jv0yeK78yWkfOq4hfOa5wb4rtOzZgR+upOBXSfD64HS21eDhXLiS36pMSouZssA==","signatures":[{"sig":"MEUCIGVwT418G0mUR4obL03ePul0Pa5tYq1wvpC5u4SlG6zYAiEAzE8VB58o987nskT6ThZDraFJRxAvG7euXboSGOAspik=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084195,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezZS3CRA9TVsSAnZWagAAuLcQAIytAQIPbnCbcn/UWGrf\nEa8cxjDqLm6oK4owbKv6bohpJxtDfQFpoBpzID/MVu97HJGiFOVeW+AIeNVy\n9Yq5ImUK33xU1+hRrz5tMu4JtXTfXjQeE5xWanWeRiKfndzHhOv8R872e9Hv\nZmbH8jBBjITA97toS3uv+kzL0SP8o9o7mymmgz/JD+RQzr9gmwl+qN0U5q7X\niZ+U2By66bSxzwMRufVrdE43ElMIZAeuK8wK+t9MVnz4bIiVKURkm81cRwBE\njHb76faNgrQ3/ve17tDlp0O720F10OsIxHJb2M4qu8Lhpgu5MMCdmn5yIvT6\nBZ/n4cPKyPO1yKcCbelxQtqxUDLozHuvBTA/S9MKurAHIeYh/OxQOpFGFWaw\niJsDbKh9rn/5gXw79BhkgoVhPmuVns9UxgG5n7fFG/vmfCbwBdxLFVCjKjhE\nQLwFTF3n599lxPHRao9WTiIkBzRk99gpcfDJscN4VTqJB4BdvLVXfa0Sync9\njd6WiViamf87kwnHAHl/SLLCyOYlfDEj6bCwGV3zDh/GQNGIzpWmKeR3WUhD\n8lK1v/7CUXm/mypjWSgBvvkqy7LKja5PiGRBtNxAXNV4fQ0PvrJ5XA/ViFfI\n4KhfnKRNEGaJGFdyOFOCixsnDURaI/OeKutysSSWyHGQfjsaphACar1wU/YB\nix3e\r\n=IETV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2b22865938bbce871e6d1ce8ce0129227142073c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.b86d826b7.0","@material/base":"7.0.0-canary.b86d826b7.0","@material/shape":"7.0.0-canary.b86d826b7.0","@material/theme":"7.0.0-canary.b86d826b7.0","@material/ripple":"7.0.0-canary.b86d826b7.0","@material/animation":"7.0.0-canary.b86d826b7.0","@material/elevation":"7.0.0-canary.b86d826b7.0","@material/typography":"7.0.0-canary.b86d826b7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.b86d826b7.0_1590531255160_0.607299523268289","host":"s3://npm-registry-packages"}},"7.0.0-canary.d91794c7e.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.d91794c7e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.d91794c7e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a61122ce6931cb3cdf4e1a11eb167b1eda663935","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.d91794c7e.0.tgz","fileCount":45,"integrity":"sha512-0JJeB9enTHey9h0YSD0vnAyVMtBGr7EhZXBRkPjFdAdpzL8JY5SzssIgaAJnAeFqDrESUXAslm4rYDXwDQ9Fjw==","signatures":[{"sig":"MEUCIE+oR9Z4685K2wD7eEUG9RaycpjpzJH/tBK77oQee/eiAiEAuB3TFif47PRVLvYneoXDQx1cgPErZ+ILVuJTjGpPsdo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084195,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezaxuCRA9TVsSAnZWagAAeyoP/12xKw4yIGIwt4bccc27\ncJIHBQJPqp7QHgOwkFPwDTmJBLOu5ocy01793fJuFCstUpboIAxrCGn44Wop\ndshqnm2FUQFn682HqWn9NdmExGwQCRzbJGvvekcI8DecXtOJOpTh318mj831\nNbRZHQFQxEzF2akMcP8fTdPQSLXV6pxvPWpipmLjeTh4Vz+xtUl4+LDRRiPj\npHDnrMAolPeooxfa7dcyNn6I28rQsgJUdQ7g+D/EnQTGpCvwNjZ0foccVAft\nmDdPvPtyzgF8uPWt01Q13xdxjjOx7IQhGvZDdLjZOmAPrxIR0QezqXc+0X9S\njLMYQLw0B4ht82anniO/XBiwn5zlQk3Kjm4LfQiD18OUcB+ytVcF/7V+A3fv\ny9mYhfXtgQFf5qCjTDT2iDKNhWY0dZxdeGzEGjqw8mmESdp8+xkfl9s4QHYa\nvfOJTOS23Dacukf31HlxMOsMuE9PKX5EoUDawzIAJWSuGBLPC32EV98DIWan\nh+xNo7HMsocA4idro9mjffsHAnzE6NruRm9wv2eaOnbuB/XbNZ/OsqpwkSFb\nJOGzhqYzRqSMPxsvVqnKydUnxF1vAX+HsB3PE1u82ANpJsVKHiTzm8+b9VIU\neYjqsS3EBWnsepGNpxM/s4IBX3rYLHhF/nxk/BuBKDUMLNua+IwoneTw6OF3\nwOUd\r\n=IzeQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f931cc9789364ca07cac4a17cef0a225bf43c168","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.d91794c7e.0","@material/base":"7.0.0-canary.d91794c7e.0","@material/shape":"7.0.0-canary.d91794c7e.0","@material/theme":"7.0.0-canary.d91794c7e.0","@material/ripple":"7.0.0-canary.d91794c7e.0","@material/animation":"7.0.0-canary.d91794c7e.0","@material/elevation":"7.0.0-canary.d91794c7e.0","@material/typography":"7.0.0-canary.d91794c7e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.d91794c7e.0_1590537325953_0.2328583937488351","host":"s3://npm-registry-packages"}},"7.0.0-canary.8c6d7e076.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.8c6d7e076.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.8c6d7e076.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"dfaffb070177d11bba9d3291c0e5746b74022c3e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.8c6d7e076.0.tgz","fileCount":45,"integrity":"sha512-yodbHvRkDTZ8m65xVsUmIJpEwDlgLmOv3/00bhWdUhfqffNuqrwCrQ5qFcexFRFGDw9CmHhHUahWrGahu+qAoA==","signatures":[{"sig":"MEYCIQCixYGRrkOkPBmC5o4+KIcsRoFj4J16g54W5NkMWbQRqgIhAOGVNkEHp1YpEocwG6XO6oUDLV6rwbgBiGZivi180UfQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1083297,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezri4CRA9TVsSAnZWagAAyiIP/i9cL6uSZ/i1oVhRZDRT\n1jDlhxwYWsl+CjAjZ8wa9b13j2ix8jIWe0G0zBnl21uCxJ5WrS7dJQfRtCvs\nkdwtunh8IGV7eupDxJipIhAFrBdWkJGRLTSFWP7KzmBEHXkg0yYJSQpYAs82\nIuuV84EkPaAXUR8OnhmgTbnOf3w3eGin5w4W1d5EUPd2m8DQIIGCOTQhMxzd\nLCn14OLhvuEL95OAF3yE6K0fdMyizWuO3MnQ2L/QZ+dKE+1lOWnGVPnM0TYh\nerwl+5vtivhO/crIFkszvHKs6PiLo+eNIEOHAdjyBpl0SfdReBxFntmoBHkP\n9TLetdTmxy4oL8mmVq4sHQ7w9+toxy4mNLLNtUKnNp6cSvDeDP1VlD2KnGGz\nndn9B4YSaJgjaLd5gx/BtehXmtAE3hM8KyicWL8gWeeNJyLGY7lfN1pRirqe\nf/BR6W2UtWgPHykZBYqgXVI8lYYPbL263YFgTPeDKLANX5q9qRUXpAfwJygo\nzuMabglKUqHmXxRU2mU2JVJRGJKMrUJz3g6Lz9z+HpqXOrBzzr5hqlIEzrbz\ns7m3KBYDk8YUfTaW8aO4ELf524SQNr+f+kvzNuRMjwrkGQhPdvzglgsdeHJX\nwe98X/7ylWohyKvCCtjBzV4r+0EKQaocktYWI4iebKVjbi2ZHkciFc5KXbyY\nXvXW\r\n=Sz/j\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ca2efa9bf20bd3fd24c7f6ff263721fea798614d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.8c6d7e076.0","@material/base":"7.0.0-canary.8c6d7e076.0","@material/shape":"7.0.0-canary.8c6d7e076.0","@material/theme":"7.0.0-canary.8c6d7e076.0","@material/ripple":"7.0.0-canary.8c6d7e076.0","@material/animation":"7.0.0-canary.8c6d7e076.0","@material/elevation":"7.0.0-canary.8c6d7e076.0","@material/typography":"7.0.0-canary.8c6d7e076.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.8c6d7e076.0_1590606007922_0.9905700050128561","host":"s3://npm-registry-packages"}},"7.0.0-canary.5b5f62f93.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.5b5f62f93.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.5b5f62f93.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e13624d457b65b95cc7e7e7ab37abab23468a66d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.5b5f62f93.0.tgz","fileCount":45,"integrity":"sha512-3IZIFTt/3ZkVmDqlks339cu8px13PnhhPH6XSBbevjUzYkVlNBR0AC5ubh2EGIVro86/Q3sH74V+5riqHN2yGg==","signatures":[{"sig":"MEUCIHbdd3hr2ZYSkGYw3MLYjSUav4UVCNrXK8MJXmQw65cTAiEA/0MsgBYOoK3PaD9MqjtuMRIvW3Rz+h/Eis74/v834T8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1083029,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezry6CRA9TVsSAnZWagAAolMP/0iH1KXjHG2Q2R1a722y\n19B9vmteSyRVPQgShapjq1zJu8hcq7KaPv5MfRRSeZzR6aNM0PFgAgWweKRM\n250kobK6leptzp2W8Uv41/lgBHzPpslniTUtkBUqxvgaJLF+MKU9Js6KayD2\nNpcuh9kxNajege7rNLoPFED4nans2MQOI6E27s+IhKlFVeTzLeGgqSES1sNV\nqgXGD7OxcxCzlsrO6ftFrgSEgKEJqojIRTGt7P8gGZowhP8WCihvudy79Mvs\nucwNonOUewcOH7XWmaNWiJONpwLvycj8E4apHdxCtSqqLb9Uufu2FNRJegCM\nr3vyxQHKoN76Qfk72cInjCjVhzLFlSPiLmTvfTfEw6lub0XP1Hx65oF0t1+/\nPWmj1n8aLCkvNsyWqNkq/j53pyZxnd8ra+zmNLkfXsE4UG2viNJJMkDc/rc6\n910YwvgrvIGMhZLsSS+3iotKUOfUZrImPNgbIWO7D36SSOqFM50JoMIx4fx4\nFCZn89r9gx7S+3f+oRvFdUqEw/YvyUAgepHRPKD4QAqevCrRe8BSzegmOMxn\nfHfthTqla0ZFx0l2TSiHYnzZG9H+h2F0ubpVih+GQuP+8LZfR54vNq7cZ1aC\nhjVlLiofs4W2G0q2tjFDtZLM5H7wrvFh+YECY6cdEMPU0FhE7Cb45i2n2MJt\nE7er\r\n=Ou89\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bdb576423b0f8020c453a5473bae420ee287c240","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.5b5f62f93.0","@material/base":"7.0.0-canary.5b5f62f93.0","@material/shape":"7.0.0-canary.5b5f62f93.0","@material/theme":"7.0.0-canary.5b5f62f93.0","@material/ripple":"7.0.0-canary.5b5f62f93.0","@material/animation":"7.0.0-canary.5b5f62f93.0","@material/elevation":"7.0.0-canary.5b5f62f93.0","@material/typography":"7.0.0-canary.5b5f62f93.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.5b5f62f93.0_1590607034122_0.5737695540097105","host":"s3://npm-registry-packages"}},"7.0.0-canary.d9972abb1.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.d9972abb1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.d9972abb1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a0c816156632710f99de64606581d60a75a1a543","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.d9972abb1.0.tgz","fileCount":45,"integrity":"sha512-iob2W7pxAcQGhBxL+dvr/WyRLzreZcQBtj9L7kJfRjnrCpMMS3IXDbpCDucsHgqWOTtL8BnQ/b4becNQufIGFA==","signatures":[{"sig":"MEUCIQCKG+WzM0xniHhTYSTZXgVGS+4tPXYgnmfCi8NcCuNfbQIgdxQB3n7hSYfsqL9WtrW6pvAviCX1kgo94xN+TAbJyTk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1083029,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezsvECRA9TVsSAnZWagAANs8P/03/SfU5moOISC48qrll\nhdroU0XZSs7G5635SFfKdtVGyUOScJOFWr6FOzmRVDZlztc9ms/6Y5Vs2/Zx\nbTOg2ZbtCrWMvQ3vbl7xLFaLqkpBiiCL9qehdupMw6V5nRdNQPzgcNqi0mO1\nYjFGY0qVANjmhDMZ+o/ZbAr5MX1QeHGap9UASn523Dh1RsOmeuTq92a8C4MV\njUgfxNrn9XUErMfKEgMg8xva/07InTOXpIQP0EkW8/vqqw2ty34C35wQohPp\nEidF5ab/DvrVhxJxt2ZMU+tG2gGssOTYwjG+bOo2I3BOZFFCkJ2YrIcLCGVf\nJ+TsFunfMeU/0AOXOT7L03TrFnu/PrgjoyM7FcSAj7IaNjPAHOyB0ElCsdlH\ndG1kk5sGpwZAKBCUcn58XcI1ICQn17ANSB97qX+ms611CnQYZdISmyLD6ECX\nw83HhUe8wGYtBSIceQU9noomHCtJWE3Rw1YS3YJ2yv/0nzXW5+qxvNftimaL\nzIxgQClRvx3e/9Xg84Kn6oLTaIqe1IQuRu5m2lLZQq4VdHOQfOr3aXlqiDEY\nCfsHDd74cvbfSCnfjlpdaufEjT1ReMXkG+WxZGYxYUffrEgQkOGW8KFp+vq7\nK0ccq4v0FlVB10jIyXrzDbyqMRMnrRKGqZw4l6vz/UjkeH7s5JuE4b4JrzS+\nRS0Q\r\n=W9Sq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3db449915645c45b366327c8152342a34f1e10e2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.d9972abb1.0","@material/base":"7.0.0-canary.d9972abb1.0","@material/shape":"7.0.0-canary.d9972abb1.0","@material/theme":"7.0.0-canary.d9972abb1.0","@material/ripple":"7.0.0-canary.d9972abb1.0","@material/animation":"7.0.0-canary.d9972abb1.0","@material/elevation":"7.0.0-canary.d9972abb1.0","@material/typography":"7.0.0-canary.d9972abb1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.d9972abb1.0_1590610883663_0.31438164365014054","host":"s3://npm-registry-packages"}},"7.0.0-canary.6556eda2b.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.6556eda2b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.6556eda2b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"10fcc21ff1dadc7c52d89d582f3e7d00e0ad10e9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.6556eda2b.0.tgz","fileCount":45,"integrity":"sha512-w36cqb68k71vjdEi8NKSAupiojcCFPAaBlCmA8VPdTJUQT4ZYzjhwWrGCCUUUm3rKXE+O48SjIULw+fW3RHIWA==","signatures":[{"sig":"MEUCIH8DTs2DBSK6IVgQYnvkHRbMQTlK7j6/M5oxdVe//5a8AiEA0t9ePg38XZG5Tp/1Qua8LqRlw7IDL+gbr7oBoxmP+Kc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1083029,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezs3zCRA9TVsSAnZWagAAdYMP/jSonGXcTDV23U0Dh8WG\nVSEp8IU9w/h3OK2kWpaMmGxLxDO8FuSWCd9ZSX2XVwqSj6dXTRBMeip1Piic\nTtjd1X6AJvWkaYjGK90aCYym7LxOK+EQ7iwJ3OLaCSMB6PZirUWba4FQfZtz\n8AAewFE8ecOXOhGuCh0rcA4P9ssIQNiR756nY524YaODLCnDXS+O+6WXglWw\nkJM6f3FjXUShRNNCtoaioKRvR8MK1V/bA/ttYtDmzPYj+8BsmH7e1p5idl4K\n9HpFiFPG8lxtyMBfIKNjG29VbVah5rXN+QUtVngpI6tQfXLD57ZL2DV89Kzu\n6tQOJXGUXXGWSLIotLw6Pn3dcmtvFLk16pzXo5hfSvExgpmrjcq0jyYa+7MK\nuvUEx1Ho61hgrKcW+zE46DrQqifNlBPK92fI5OTMkn25CHlYSygFlg0khbIA\n8hNrmZrPwUIURdPgaIBksLNVCXnz5Pcad2LVD7ytB8pkLBwSw1d6a7cMT7/i\nHGALpHy1FFVTzQoGlr4/E4xOjShuLskF3PKGZPIsJfSycXzxC+yHkG1k9MII\n6sV+I38wWiG4hcbNpTfxDidkFuuEqWO78k5kUJv1UEguczcdmRcVMJzrj6Vb\ntCRuJWAVl65QkKikdLDZTbous2PFuYzYa7WFJUgKtvpmG6KJ8G8xPjc2daxF\nogQV\r\n=pn0Z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"504ec59b4b401d057e70ba4bd1bbef2f87218204","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.6556eda2b.0","@material/base":"7.0.0-canary.6556eda2b.0","@material/shape":"7.0.0-canary.6556eda2b.0","@material/theme":"7.0.0-canary.6556eda2b.0","@material/ripple":"7.0.0-canary.6556eda2b.0","@material/animation":"7.0.0-canary.6556eda2b.0","@material/elevation":"7.0.0-canary.6556eda2b.0","@material/typography":"7.0.0-canary.6556eda2b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.6556eda2b.0_1590611442938_0.11344519975769507","host":"s3://npm-registry-packages"}},"7.0.0-canary.32aa23641.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.32aa23641.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.32aa23641.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9326863c9a396bfd3f55d65e8c6be608ff5fd35d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.32aa23641.0.tgz","fileCount":45,"integrity":"sha512-LBLJYOzBFScig+9BwJVNS2HrAzCwFH59RH/LXh4yPR+NUWbPGCLBH7gkFWwnQWTLsYLVdL8wCSpk7g4xDtZVNg==","signatures":[{"sig":"MEUCIQDIWRVzcfBmiKK5XEiup8GvGTyuIU9jJDA2dG83oVbqPwIgHI26sUvqWmi8VZTj4p6kPyYnPhfQIstL2CYUI6fLOlc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1083029,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezt3sCRA9TVsSAnZWagAArw0QAJ3CCRCUl99WdUFOxIZu\n/aS2YaYSDNWAJbOp54ab1X/2a4RpqfrgLyU0LBMhxGxM29yod8qZ98pxE21V\n5hnlIeNf9lhI7pGVyOYvLHTWQoK3f+9GBUSSusB6y2KaFKMZ6YEytHGhSTBN\n3GyETQ+xvLobQ1oGIQyPSsrjB7MMGtdqhaWb+1U986ltbOWwwMovsvmSHQPq\nuQBpQXenW+d3AihaGCnEkOy6W5pbBbYNHNi2cDyKh/urojjPR5T4mvv6/zoU\nknC7sZCWLjdYVIxweaDL8O7rGI0A5FH5QuyIur3/xdosSJHyNaiDdeTq09yn\nWSvZJezclbjOC71EMsHPs1+fNFLP4qynPwM41KoAWQ2HKoz8/GWI6VLmv01W\nlTWZ/EltUhSmWgtBcj8LqHX2Ch+CsQ99/dPOWclu3vzjJ27dRIf5lOf3+q/K\n/kwACmu63dW177zJZTXYk/i6Ov/dGCyvLVkzvgw/27K/KXStNPn4RHiqQU3w\nc+PR+iu/3w/EiRwDnzKRcsCo0cfLcI9SvE5Q2g8YDo2TmebWfesKTN/t3gVZ\nuG+AozLLOl97JQYeOgm4eN3dKsR0O8fNkZoKjunGIdmvsJGYSxoZclQIQGnz\nBhO8hFIfcWJeoPUAJmmtiGShANaJSO3V7CtmRI/7urCkZqsdPQl1uLKDI2sU\nrU7/\r\n=jtRI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4cc39075dabda7fb76257a3403f0bde13084b87b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.32aa23641.0","@material/base":"7.0.0-canary.32aa23641.0","@material/shape":"7.0.0-canary.32aa23641.0","@material/theme":"7.0.0-canary.32aa23641.0","@material/ripple":"7.0.0-canary.32aa23641.0","@material/animation":"7.0.0-canary.32aa23641.0","@material/elevation":"7.0.0-canary.32aa23641.0","@material/typography":"7.0.0-canary.32aa23641.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.32aa23641.0_1590615531659_0.9849442421771115","host":"s3://npm-registry-packages"}},"7.0.0-canary.654934dfa.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.654934dfa.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.654934dfa.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0ee9c53ecc3a13298db74062ee220461ba9257a4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.654934dfa.0.tgz","fileCount":45,"integrity":"sha512-AqNFnDNGszFvaVBd6CjhPZgUpXWDhLw6/t3tTg9jQ94pDl41x84npN5V/vU32u+WkGe0lMVXNWodLgXbgitGDw==","signatures":[{"sig":"MEUCIQCJ1J8kL+edy5lOyu9PPiemgectsrgOBJcbDLlF5uiznwIgEM9oY433ozVbpP0cfTGqL41m/pzAdfj6WgTswa9vB6M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1083029,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezwfUCRA9TVsSAnZWagAAwCoP/jzgXPxSHHUuuIkbgV2P\nlLzVonjuSPZeTY6P5HWeuaI28ohLaTH/OYTsm4aGk54wsE4EGl1lT3BrYSBN\nNybvMG867ZOuJrwqpqkj4j0a6Bw12IYdexk58Ddq2ZDBVIzNhmChl4w8UvaN\n6N/xiRznKd15IYdaOpUawjWQhzC6onA0cObaNxGDwWsoiIjBOco3Z+7nWMYF\nGkXlv7+RB4ToZ+91dcp+eYAHVlAHJZwjUybl9SAxWX7XTicygDNvoImTpwWf\ncTHka2lS7KAGjvAjdnzXW47ZRZ0gbD0JzwAs7EDeWOLgSl99jTtiDO3UEYqi\nyifh/7n5zij7ETcwMNPyfdRo9w+q9iLSHlfLUZG9KPUYHyzKfd0UDZIv85Ve\n7vbnqi8HMlVEKO6Wynz+dwlVBRP22evOsdXRveNwDJ6Rezk9EkIuN5Wg4Mj9\nqgltCIFDn3mx3cLFyH4Uq7aSoQU5qJTXnOwzFe9t5Xa7m3uBhNOgc/Mrfvli\n6mRRqy/PWNUs+M1UzH50BjlMK+/Rwl1mPCLAkAupUKd+I2hQlo7vBzpt/1Qb\nziCSI/h5MdNOUwY3YjOFMbhLl5788k+8c/Vt2TjpZSe6P9QBtCffEy6FVVkz\nr0+oUW38fx1+0/8phTV6EnaCjAqEk1QiiviTNiX86DAFYaYXM4KC5sOjSbxa\nKM2F\r\n=PE5y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"99e56121d157a5a30949b826c0d521a365a1ae59","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.654934dfa.0","@material/base":"7.0.0-canary.654934dfa.0","@material/shape":"7.0.0-canary.654934dfa.0","@material/theme":"7.0.0-canary.654934dfa.0","@material/ripple":"7.0.0-canary.654934dfa.0","@material/animation":"7.0.0-canary.654934dfa.0","@material/elevation":"7.0.0-canary.654934dfa.0","@material/typography":"7.0.0-canary.654934dfa.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.654934dfa.0_1590626260184_0.16636606147404787","host":"s3://npm-registry-packages"}},"7.0.0-canary.41910b8b8.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.41910b8b8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.41910b8b8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"27f96673b3ba481259f5dd832857eafb9a79c760","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.41910b8b8.0.tgz","fileCount":45,"integrity":"sha512-YfFCe1pVh2G0/a9CZ1KB9XFG4Ezz/4JobF17HIcvyR7Jwe6VWY8gJIuObizYOV2d0lZztgKsG29kKFdg4G9dig==","signatures":[{"sig":"MEUCIAlSELHjNVB7eUQZ9ap4eCaJWnfFQ5VW0kmB68+jnnigAiEA6gU+99tkmpS2NWYT38Id63IpJKSzASkAsLTAxxn7iyw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1083029,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezwsmCRA9TVsSAnZWagAAYoUP/i6kk499Zk5EwUjB1q0c\nzk7bTV5PJMb0INyGMYBNxA9rhl5m1uI4OmNqfGlHE/iqBzYqSghUzj+fUem6\nRweRk6acr2d0FYYFI+hWan+/VbFHA7GzzE5fzjOktMbCysm+z2rDJtsRbUvF\nHlY3mTRal9MnBqcWQ+Q9ILJaC2xgC2LQi6W9R31rbBMbyCId1B2GUGJph1zY\nnVP5SvXrecftF+pkpY95l3+bplKYpjwV6ccVYrBuGz6B0X5CqZNf5U1mdWHW\nrWWQ3cDjRf1yQrodtfJP4p1IpAafhHdWRMjngXwWdVPkifK5rdcw0RD5s/p8\nrVncUV8Kg4TZTD2YljeTwvMQSGtGg9WUOsW9/cjEBsSLgE6XT2oEfXEGoBHC\nSvM7QG+rNykLrCvMm3NkWSI9FeSGKlu+fV1nYzS0K7gdeRwW/QpsqlHYuz2M\nk201gQEFVhLoRMFTQixGkh3jKWEr1V9qARlKO3eSpgssfS3+hupfh7qhkj8J\nABLvB9N/xk0Cs9WjlhapaNCBEykhevx4ki0P3byTINbpNmENfdArZInlZQfz\nVKlI6ezYyf1CdBoqAqmB0J1KgQr4d99+c5q75ciFvguAHK3xUQ+7Pnv6xMd6\n8behn0utyR/HroxJtLhsruIlM7dKg+YI1VVK3+tq5fL5B7CX0iuUY9Ywune2\nu8eC\r\n=uTi+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"14656d5f31e9a410c15eaf9b47530d57a5901add","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.41910b8b8.0","@material/base":"7.0.0-canary.41910b8b8.0","@material/shape":"7.0.0-canary.41910b8b8.0","@material/theme":"7.0.0-canary.41910b8b8.0","@material/ripple":"7.0.0-canary.41910b8b8.0","@material/animation":"7.0.0-canary.41910b8b8.0","@material/elevation":"7.0.0-canary.41910b8b8.0","@material/typography":"7.0.0-canary.41910b8b8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.41910b8b8.0_1590627110472_0.5150425130146588","host":"s3://npm-registry-packages"}},"7.0.0-canary.d66d22bf9.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.d66d22bf9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.d66d22bf9.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9683ea3f3e67b23bed45a9bd2fe21bf97cee0296","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.d66d22bf9.0.tgz","fileCount":45,"integrity":"sha512-zbAGWsCUkn/munow678TNcPeLKJcQ3OBeTnbCSn90fUl9VQETfT6ekbdA5D1PA7go6iCtvPeMHQz0WXKLNwQfQ==","signatures":[{"sig":"MEYCIQC9ZxArfbffv4h6p+yhGTdhYdfWDsYxvu6KD3aSIq3hYQIhAKcfSF9hXTzKz5AGxmowzbG6FpyFU/Bwu9nKib9vJBrS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1083029,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0BdNCRA9TVsSAnZWagAAqvIP/iuIWCTSDB7V/S6FCMW9\n3OLJx2ge4afGPj/CB8xwNQQkWTBTCTfZy4tM6ag8B0c3dc18d1SFrCylX8XG\nSMtTYLjxNiL19YJdJTJorUZag0Suwq3mGqdBj24UymSbA6pWVB1PKzZzWrLD\nDN9RKyTaTpgr0xSQ5wOI8DFXGC0fAID4T1IqkJk3ZMeA57RQIJyScpPvra9V\nozYdb2rz9GovvAM6Co+1StKmf/FRK5q2yRXHlcVefTSpOOyKG7pQSIWEQbyU\nyLVB4q0grwVwY9Q1lfZlLcw+a6B4UkbfEbdmjybWg/M01HyAdzt5eEZ+9PQs\nncBJLSa2WCDQ7ubIKlUR/ovN6lOJ8lCfKLrFeUOLVOsw8Enfh/NPeqGlHBl8\nBnkjNxvLuv08rYvwYiE5lShqDEj0ZPCkSN35xLkyosl0bIQVkFEgxPmzC/ox\nBGrbzQ02Jjx8kcpQbI4VOxuV8ndMzBrw2+z3oivlPQPjN1nmXjDO33tiARHw\nEnwBnGrY2iX3R9/gHPNt7eoV5BkKwjDOu9h5Ipb19+oM4OA0h8XMUfiL7UNt\n1k+Sb2rLfYkJ4CWbWFHAs6efjvHpqLO8wz2HSWImsSGlJKIuo4RPEjV5WyDB\nZ7jMCx4habpmqmc4/0MkEoUc9t9DWjxs4KbBR1iUaMs0oDQ16LEQCx0dGXhF\nzgWE\r\n=mUmZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cc182def4daea4d871df41985e6d893429174b3f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.d66d22bf9.0","@material/base":"7.0.0-canary.d66d22bf9.0","@material/shape":"7.0.0-canary.d66d22bf9.0","@material/theme":"7.0.0-canary.d66d22bf9.0","@material/ripple":"7.0.0-canary.d66d22bf9.0","@material/animation":"7.0.0-canary.d66d22bf9.0","@material/elevation":"7.0.0-canary.d66d22bf9.0","@material/typography":"7.0.0-canary.d66d22bf9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.d66d22bf9.0_1590695756839_0.8220061693378475","host":"s3://npm-registry-packages"}},"7.0.0-canary.8904f3cbe.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.8904f3cbe.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.8904f3cbe.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8b47510742e989af31cb8f63a043a8f25b3995d6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.8904f3cbe.0.tgz","fileCount":45,"integrity":"sha512-ET5eID0rwrS1nYTop3vSDrgsuMQS6cIOknNY6QnN8mdc+a/WINecrHL/HvWQqhWIV/sSB29dsMys8wWD5X933w==","signatures":[{"sig":"MEUCIQDjbUMduvt2uAX/dfi/AhrhzZzL1vHrZMP0U6S1w8pgHwIgY5PrmfD6Fo/nNTmQJcDKmsMDX08GN3q/BsBK7d+b3Wg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1083029,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0T1wCRA9TVsSAnZWagAAcvUP/Rvoh3aAcQN59quf3CQ5\nzJ0EL0/iCgD+vQWZMUX7tpByU3fRJiqT+KxEXeoZnJ+qK++i8PkKH/8GJsth\nMYbwNmi3NAm7nvAYCvNETtRyB6EGuDyb09NF0Kn74JlfRRcS/Ug88/u+ujUT\n1SGzI2ikyEgBnNyyxpowJch8E1LkUOTTQ87VR8EsfPlcR59YO7O03nJKHrM4\nFZB7NM9sXaZ9VK1TLQXdRgBWFOLaetHanklsHnanjE8iIVJoAYWYKya1f2DB\nnbd7439821m239J4DqSL1MI8Y/BUQWOYXVAvszXIpHF3hS5EpsY/HBGRU9Dx\nR00HeCFhIfiXKgGdKxkiO3Zyqt9qwDKtHDxXK+RpXA9roQzJQPd0peJw136A\n5SbKyTIGV53XCsnSpUZ777NqFhvQzt7B3+DLtbdJ+MgmaGuLPqDVdPeyTlpP\nv4ZNZhQXqeCO+imrvgHYnW00LSJqsPH47/rujIsquPLzaybvvKkuJ8tD+ODA\nr51IM6U+qdScFLljTsaAOsm8AMIjjdU0FmWxZ9RLIN6luhxqz+tMYOVIoVv1\nxXBKvCJe8PHjnNGefBpIsB/yk30yKvERyM8TstTGueHTTrMyXIAh0RlT+2C1\n3ojWhy5B36usAa5k1zdQ0jAvcMqk08gj8fIeEbDr8+Fjx6eSjn42BWiC+h5K\nAKIc\r\n=d68R\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f78dc612af1ed0ba397842886fe5bc41e32f181e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.8904f3cbe.0","@material/base":"7.0.0-canary.8904f3cbe.0","@material/shape":"7.0.0-canary.8904f3cbe.0","@material/theme":"7.0.0-canary.8904f3cbe.0","@material/ripple":"7.0.0-canary.8904f3cbe.0","@material/animation":"7.0.0-canary.8904f3cbe.0","@material/elevation":"7.0.0-canary.8904f3cbe.0","@material/typography":"7.0.0-canary.8904f3cbe.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.8904f3cbe.0_1590771055940_0.5560948910414774","host":"s3://npm-registry-packages"}},"7.0.0-canary.51512a4ac.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.51512a4ac.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.51512a4ac.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6b7ecf734c1cf7d2ae34db557e78eaf6d086dc3d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.51512a4ac.0.tgz","fileCount":45,"integrity":"sha512-34bhdynj6CHwv8fNpjuHv9eNE4Xuzn97kGdktDSBMBi1QOrTRXvfXZ05fO/ZLTSJ7lIrQ6fxf5Jqw50Ag3bxvw==","signatures":[{"sig":"MEYCIQD/aOV4dRSqB94rbfrfdjHHgFnwdQy8EoHpKfhfeqiSCAIhAODaldax0qW7O1xIkLS3SuRfDW4A8Wqcr9wLNGyTbnEP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1100573,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0V9iCRA9TVsSAnZWagAApuIP/Ra2lhoLZBAYc1icVetu\n1tkJqKvNxm/khnHaTirg830y47kAyQjTzPoSG0n0EfyWFj5wehkGseFiW1p5\nc9D4z+bKdtR9bl5Od0qY068B+q5Z7aQ2U0NWWfYLJjIf/A4RUdQM0gKmg2VJ\n7WYLo/yaH672ZZuw9UzlrjCwoncJOqc8TKjxu3KHQlZP1jNF1yfy7fiFAB4w\nAJeJigDEEN9OfDUfWEYBWuNwXasr8cotsy+zwn60PEFZ+GClTuUx0cCq0Gou\nZiEBM7Z6aYpNJXGF5R+868GTUZOYskDM/vRMD5zUW6Ewv1db00qQIu9UEwfn\n63S6UeQHjR8EFCNJt/Kufb9tUwKIrR/XIX8VGOkljjLCdYkgjlUOw2TjefiC\nLGQI0GqbnO1PTGfC/H74x/YqVssDVaUOda2yhJtau8R5zApOzpuyhoJKzVy0\n5n7C4NFMPpp3LUpwqm6itcRwvJj7ZYLUdRqs3nf8wzM7zCVSyI34cc6cTUkQ\nmzWJmgaU74/3iOdZMySEDejl7k5v81+L5eYnxiMyKheiyTVKhnL+UMEl1Xta\nO68thf7jj9toitlA0CchUokc4OfLPxkvEogXRF20Nre6EWwOaK2gelSXzF2Y\n4U5Oh3PHOdx3kq8KZSC2ovx/jDFIwLhh9kKUFP+SEogNxc8o1lKcAj6/Kf69\n/jZR\r\n=b0kT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d5115fe8118e1e2bc71fc7a491f672b079f281ab","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.51512a4ac.0","@material/base":"7.0.0-canary.51512a4ac.0","@material/shape":"7.0.0-canary.51512a4ac.0","@material/theme":"7.0.0-canary.51512a4ac.0","@material/ripple":"7.0.0-canary.51512a4ac.0","@material/animation":"7.0.0-canary.51512a4ac.0","@material/elevation":"7.0.0-canary.51512a4ac.0","@material/typography":"7.0.0-canary.51512a4ac.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.51512a4ac.0_1590779745611_0.37649551363918476","host":"s3://npm-registry-packages"}},"7.0.0-canary.0743288fb.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.0743288fb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.0743288fb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"12a1c49318ecf3b8f6c161e4b1cdadbf0b39fe12","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.0743288fb.0.tgz","fileCount":45,"integrity":"sha512-plL6EJxGmQasxuLCHlpsdIy6DIWLlQ254CkTqyLiOfx6haBYW0N02JR8zv3e02qUr3wSG3f7tMB+AwWb/QPylg==","signatures":[{"sig":"MEQCIF3pvvcRQxUqGYJV7fqAtzOonKzuDPnvdWMu1Z/W1u9iAiBdhQbyeZGp0ILCu/8QqIskqFFt8+7bGE/3My1JQZ8cYA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0WsSCRA9TVsSAnZWagAAFJkQAJ+kpzpti6Kd+3hMR39X\nF1UFRyAuJxISyunQOmJGPs+bU+Ksi5slutnso07cbubsGoAnAthIjyOV16zW\nNErrnm9amSiEXJfCIjfuEA3D6wK9zM+p7NhS3ZNfB2zDXHsJeVyf30DYPpoA\n89mvkkskSGaGZwhrPybwNOEeQSRlTgEdPV+5W2iLNHvHZaLHshlaq77NOPoO\n8P8LPJbABc3Gdqv7pwTkJU3D5J/9nwogNHHtS6gH4Y/sCpfxkBESfU1IEceQ\nlBTBw1IdEGrIKQA8fzdj3QJUrllPuAhxVSEhlRb+o6MWHWmdNTX4VjR0bFC5\nUVAmPEb+9ds6rD/mUt+sY+Z6TeCss6oRkp1Qr7lTIlhlyvbyfdOFfb8KcM9i\ntVd4hFKaJjul4Z/GHbiebWWKFRrazQD8ayWGrSMc7OpMTP6DKX1+PlxEeWXG\nxkwB6PPP/J4h2n4dpa7R/S73HnSQ2q0PjESjlndDuJTNDBRwwsHrRzg1Enkq\nz2iXN9jlkEYwG2DYZ2tbG15xpNAbO+YxgNcx8WsWV2PyzEhXNIAItNDth/Wz\nLAxr2fjMrdgRybMxHeJS0i3KyrkTFehfCTNNk2784oiLa5rqnqV5ZG/20Yfz\nw9JnNu82fBgWwSAN2bIBBH11/Iki1w6swUFLrzG0uec7ta/Wze291s6fNVYl\nmINE\r\n=D7g9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e0c92eea0cf28bf0f2367fb0666eb8592ef2f8c8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.0743288fb.0","@material/base":"7.0.0-canary.0743288fb.0","@material/shape":"7.0.0-canary.0743288fb.0","@material/theme":"7.0.0-canary.0743288fb.0","@material/ripple":"7.0.0-canary.0743288fb.0","@material/animation":"7.0.0-canary.0743288fb.0","@material/elevation":"7.0.0-canary.0743288fb.0","@material/typography":"7.0.0-canary.0743288fb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.0743288fb.0_1590782737640_0.8782561142078142","host":"s3://npm-registry-packages"}},"7.0.0-canary.06ef147b5.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.06ef147b5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.06ef147b5.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b2e564cf75b2606970bc33e605f9de5094fbcbef","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.06ef147b5.0.tgz","fileCount":45,"integrity":"sha512-smrlJv7swNmdJ921KP2A3me0AEAw/FFMo1h/eM+QDc9o4YkCvWN85BbSmQBU7QZcFb01M3Xs+VdC8RUNwMUTvg==","signatures":[{"sig":"MEYCIQCebUujNpCEgCs0R/hAvGYU1+QKwIcuUZD5N6eBQgMW4AIhAJKh8/svZBozLTFST92EoN4q0Jh5JdNbemXTW6yaumGk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0XNtCRA9TVsSAnZWagAA0cIQAJZtPxGyWfl0YFTcWzxr\nVqoWKMHGznFvHioW5YUxUGV22jwUy1kDKjwH6RdFG++Agrqjwoz+mcPjkddH\neP7uC6QH0BRchUcXohO//09zPPAeghypfDjKu3hnrAdHY+dwPQ4UlI8Dze/W\n1qWP5/p/yjsJ39KsLQTvJpX646clcxkfhzBIbDTUIzkIcno8Rah9eVs4plKB\n1fJqf98sirWW1F78GY7KwfmvdMp/zxXqJ1S96XLjI8rKc0DgU4mSEDcUIKdQ\n1Op6NW5kG5/fA1wRkJN3GAjvh95znXVrYHsE3DWqQiO6Y0EwKEFhzGr+bxMr\nFIJBxW8p7rRI7DbHnjwxQ4rjxbT5owjVBQeT5SMdj8Vydt1Ru3+SB06+WxGu\n5mHM1dwQrK1b2AuFp7cFhGt+3+MUfyaBLPQsyxWSQBClhQS/vrbhVNRB8y/1\nxENjMQyuEW4UJyqGqI3l8UPkzSMQbnBpP2VL/lDPIw4nSl+ytxoQh7KR8AAq\nFRkZltcDwq14FE+JaqWeURKCLkmSysCzv3s26V2BPk1P6C81dHPnY0Vq9rn6\nENwaPKsL7PVmBg4QSnBgVaQye+LZx1faPHF+IJ8eJNmNjmKRb1FW8O7+xwPH\niF3/mxFDRJKovlDibGQqhOxzr4evp2Kj1w/yaaY6NDrF62+zA2IZImP82kWv\nqtFv\r\n=+S+3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"43f043010a4682138cfe1d453ea0460f912fc2ea","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.06ef147b5.0","@material/base":"7.0.0-canary.06ef147b5.0","@material/shape":"7.0.0-canary.06ef147b5.0","@material/theme":"7.0.0-canary.06ef147b5.0","@material/ripple":"7.0.0-canary.06ef147b5.0","@material/animation":"7.0.0-canary.06ef147b5.0","@material/elevation":"7.0.0-canary.06ef147b5.0","@material/typography":"7.0.0-canary.06ef147b5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.06ef147b5.0_1590784877229_0.44713871314474374","host":"s3://npm-registry-packages"}},"7.0.0-canary.8073a20a9.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.8073a20a9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.8073a20a9.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"24d610a002a5219f0357e23c28f8e88ae4a7ff40","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.8073a20a9.0.tgz","fileCount":45,"integrity":"sha512-Ol2ItJdnBlS9t7Jmf+EFe34oAMf374TqwUCvtL1NU3E4Bpp439vRUwzBhpQo7BEtAVqQH16yEkJbCzAzbBaRGQ==","signatures":[{"sig":"MEUCIQD/KyjSXTH+joz61dRPPO0hjqGQVTN71mHvexW6gXU1IQIgNffQXgKc31MTD5vojWBP69P/A3VQ8SaIAUIXKhxFhfg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0ZoSCRA9TVsSAnZWagAAZQYQAIKkgZ17F88ViuC6psHw\nEQZaw7kJfpNIiQmwH/hE6YaL2SppzBftP3KhkMG4luXlt3KnF7dPO6LDd704\nuc5CMt2XClZ8n8nKFjZSPB5ZzcO3peRvjjmgoy/1t977wa29ib4Z267uZ+g7\nq9FUp+jaxOK6kMxzk7EX4PUWw1GqL39CQbyhwhxMuh8ZB/r8GvqdzTib5LAx\nqeguTTVl6JS58S1W3oWXwjcLIFqEb0Lsne5ELsIfuKe+aZE5y+1x84SRZqUO\nK1NLYcCEExPW0MNHmar+gxqFHC7KjNuziO8cLRQz9g84SihnNtr41/tnLtHU\nKrrBC3UuT/+A6KhMV/y4rWyvZUIyAZVrvMV4lHJTsXqmWh6YnTdHPAB8SmdQ\nESSj+L70nyX02lmkFW+JfyiCHCzxROuxRlWUkuFG55oPshBC+/+AbtGWFepN\nUCerjZQ7nV2i/C/RgewyXhjdP6s5CfVq7Uio4LmDFv/w99zrh+iyYEyJWBA4\nnwxItbhlhY0wszqegs8FHsJ/Q5M64aF39hCyWYAHOUCBu4D3aLGVAOBpLHX+\nAfbHgXhVRO2Q3ZkBK3HFSDYjTAOACKcOvBWpDGJLJM+hVtkJG8jd1/xAUItM\nMCYpsSTJqHGjAMH6PzJXNn18pkv1zugiJmXFdYmo+lISkHQqEopAW2xcQsNi\nQsD9\r\n=123Y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"576fa22ec00234b59b1dc4215b8dd1ae982c7c8b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.8073a20a9.0","@material/base":"7.0.0-canary.8073a20a9.0","@material/shape":"7.0.0-canary.8073a20a9.0","@material/theme":"7.0.0-canary.8073a20a9.0","@material/ripple":"7.0.0-canary.8073a20a9.0","@material/animation":"7.0.0-canary.8073a20a9.0","@material/elevation":"7.0.0-canary.8073a20a9.0","@material/typography":"7.0.0-canary.8073a20a9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.8073a20a9.0_1590794769848_0.5620400491154742","host":"s3://npm-registry-packages"}},"7.0.0-canary.72ff42330.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.72ff42330.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.72ff42330.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"71cac0fd678d865f86aef0c13221a9a17160b012","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.72ff42330.0.tgz","fileCount":45,"integrity":"sha512-1ww8MeNegF1grapIWnckXDtz4X0slfVFMeKLll0xHX7oxTgSlSs73Hu8myXxBPq7Cvxj6OtN/fvuECUB7GtKiA==","signatures":[{"sig":"MEQCIES+jjAtp82w1//Sr/GfVKz6f8BNF21BTkqEVgCqHn+yAiBRl7SryE4HX7owUyb+4wNHFBURj2hhjgt0RJCbTvlxfQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1TCHCRA9TVsSAnZWagAAE88P/1kWup4Tgc90DXtuV9v+\nj25r8rEbE5Ddp+RX6KAMSAoNggeGENASkPgrpTvQoRqRJurv9eyiGO6hjcuC\nrWFNCmyCWOSlt2X2UVBEpFRf2LhvDxN4Ni6NU7WvXS4BlBWAp8EfFw4n+j/F\ngvnzTvB6NavS5urxPNhgvT4V8A7WgLmBDCP5Pi/ndEgtXV1tKJo1MU3/HUlU\nmFW0eFIJetoEJq8ldiHFeMsttVFpT1isX+D0vv0mWC03TaO8kwW8VmtHhqcY\nahwqHmIHv0fJqcf/YbIH+zzpqjvn0tNxTAml6hHqDY+s0Mjeb4V61c1sxnsJ\nmoI08n4FtX9H3tF1TX+JZfqNnZL1hNFY7bnvo/vACV785h+HgW5e8EoI1tz4\nQpRinrMSpJYIPdv1Fb6ydNf7UwnQUx8CR/Dh4DDDSQrjccL+kwicPUQggUg1\nLrGF9uqjEiROGQO7pBDhebGkRWwzcxRD5koDTXbnVQAANcJ68vIu+BJo9rjd\nnZLZ4XgBX2Rx7kyojfn1nzhUOy4QoFA7Q2UqLRpqXnObsph+aihwZjIurw3J\n1U0uUJAhafXNU1qE19fQBRefgQF9tgqKXpueqUKMd3AlN73Q3r9CBZkaFp1v\nj6KELoAZlRHyCdX3PsZV10FydnF+JLRYZ3YZzOfBdLXb/+o1T/QJTgdOGdHs\nstsn\r\n=sPSf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4c820e9d38fc1bae9a502ae78e336f0e8381f432","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.72ff42330.0","@material/base":"7.0.0-canary.72ff42330.0","@material/shape":"7.0.0-canary.72ff42330.0","@material/theme":"7.0.0-canary.72ff42330.0","@material/ripple":"7.0.0-canary.72ff42330.0","@material/animation":"7.0.0-canary.72ff42330.0","@material/elevation":"7.0.0-canary.72ff42330.0","@material/typography":"7.0.0-canary.72ff42330.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.72ff42330.0_1591029894697_0.26448075850181474","host":"s3://npm-registry-packages"}},"7.0.0-canary.9ea52070f.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.9ea52070f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.9ea52070f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d86f3a25bb5daa40ab78b041f87e1bac95a8db68","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.9ea52070f.0.tgz","fileCount":45,"integrity":"sha512-kQgpX0d+VhQ57TbEbtjePBN/c1EyJXA+EIBu/UMyumob0P6Fw5Fx9+T4zAPtsOV9WXQmQ0n7tw+YloGQmHRPzw==","signatures":[{"sig":"MEUCIElQzyJJrXAjY/LfMW9eQPtov9fKXiyqjbR+18pmkTIXAiEA3XtFHjfxQVLsroac+cl/IqhZf5R3w5CA7jnJmFYeXh4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1TGiCRA9TVsSAnZWagAAsDYP/20pkbQHkoj3Xx45bges\nQ1S4pwIIEBpb6i8u6JGb1qt8k2shJyZwp7VP/UmQSizd/X7L5YV7FS8kGiy5\nwihqUfceed9m8oRU4xvlL8FNNEdE2kpmB+4ioZgjmUpuk2XHsurgZEKZW9zR\n36DzZN+UQud/QSciCYXR1JvUaTohrn+kDv3vGoeSxU06mrCbKv2TrEAMsh0a\nDstBk9kBAuJX0PP1mYxtgJEFeGmfRY5qigw989KTT32BjeJqRS9OPG1xRNYh\nmyYrezpq7BGsUjZPeypTixK5KL5qirNbNZzgU3UIGOG+XJ+ry7pW0aJqWmPV\n7F/v/8SiDvR+I6xZe10UXjaRSJfLppoYaD9v/1R96iKExtktlsUKmAnqMAe9\nh73kcZ47baxH/JNA6u/w5gCsZ9hnuGnUfUNzTAsAJONeWVTy8HFve9n8Th4n\n3oYxUsX6FdMxQmAdOHL8gdO/3vEJSZJmoDp7B6fbVsjlcFWdsoFN5Bj5u8rl\nAeqRxNET4o0C73cEWn8CSnroDx2jUSQEJBdJ40UFDQeDxQVq/Q1AYqkwLzKj\ne9xDBmX3YalPc1Kkm+Atsv3Z3/pAn4rLA5lKv9c0WYEF3Az0IR05XCCRWqwt\nUP7dI2pCWIZYCAMP+aM4mGDDBe0U/ApL0TowtyL9Ska+5hILGW9uxaDG9YDa\nRpg/\r\n=Otvw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1c7aa3231ba2d87e7abffc33fbc156ee0889131a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.9ea52070f.0","@material/base":"7.0.0-canary.9ea52070f.0","@material/shape":"7.0.0-canary.9ea52070f.0","@material/theme":"7.0.0-canary.9ea52070f.0","@material/ripple":"7.0.0-canary.9ea52070f.0","@material/animation":"7.0.0-canary.9ea52070f.0","@material/elevation":"7.0.0-canary.9ea52070f.0","@material/typography":"7.0.0-canary.9ea52070f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.9ea52070f.0_1591030178284_0.3468811792270201","host":"s3://npm-registry-packages"}},"7.0.0-canary.d86ad3b60.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.d86ad3b60.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.d86ad3b60.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"02a253f60746b48c79c9827b1cbf6ece08d54a1b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.d86ad3b60.0.tgz","fileCount":45,"integrity":"sha512-1ckUQsLz8z4Z9yAaIAokNcp1iKsJvsTQryrSuvL6jeM4f7e2B0XiF/h5tXMpe4l4FDAHqKG5/ZsZovHSAEsDRA==","signatures":[{"sig":"MEUCIQCmBbdObNcl0rDTkNB2krTVXOI7RHetKUYEdm6eU5YpVAIgJethrxkhTaG4zW9wxunoRMqYQIatPXh6+4nompp6Xe4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1T+jCRA9TVsSAnZWagAAjksP/1gkczeoHJmCN/GKqcTY\n7IDGLxPO5dUO6nzWO/kE+XbatgYclsc//C+QYujN0ykpcpiuY8VM57dgRbIj\nb6UMCQoglVd6u2c8gtSW7FT9w3rRuwrgypQSYkCH7JF5O1/rpSP6WwpSskkt\neTXKYeBpUyyVOO3/O07ue/2BmMMkdRNdZb0acFjNZUibiw/rK0gkXxtQIsk2\nzSYtmMS3vYZwZ+VTEcYbBd9MKddygx4ukWzD4QUOVP69J2Rk3dwfNkRiZ3Ir\nUXMIm56YivYav6uqQOimsrZtKDzMJ1wXZZY7Sv7vOH0x2ypr7VutQwLJLova\nRehSsWIIczWyY7IP2TGgq1Arg+guRt50k0haix9hAiXjJIR0meK6e/hetHNv\nHpeIjaUqHRpoWkVdETg/TZwA3ij02OCCLHc80s+cD3zwWvl9yjjIM0DjeBz1\nzyYM/Qh05mdUqdwU9nxdMDoCVGPR5NBLqtMAbV5AO/H935vIWzr78/zWLqJr\nnofHYCT80fZuirDfnxo8aqQk9N+0YtO77iho9aPeAQd8zLP7UyWx6MBQFkDL\nCDPjAVsJDIaoXFPYEsVOYCToXIBIVXR9rFeklKF2DDpwaOmLsk7/s4B0L5TE\nkMULv1NNzn88WA+Xd4RhRJqJyTTL9WVom305gHD94vObuMSem61AHTE7tXBp\nGHFf\r\n=nQYa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ff64ee77c98ab8a932f9397689714c078eb9fd02","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.d86ad3b60.0","@material/base":"7.0.0-canary.d86ad3b60.0","@material/shape":"7.0.0-canary.d86ad3b60.0","@material/theme":"7.0.0-canary.d86ad3b60.0","@material/ripple":"7.0.0-canary.d86ad3b60.0","@material/animation":"7.0.0-canary.d86ad3b60.0","@material/elevation":"7.0.0-canary.d86ad3b60.0","@material/typography":"7.0.0-canary.d86ad3b60.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.d86ad3b60.0_1591033763364_0.08730620921225385","host":"s3://npm-registry-packages"}},"7.0.0-canary.b9776b1d0.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.b9776b1d0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.b9776b1d0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1595257299fbb960566c6db2a2fd3e2937067918","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.b9776b1d0.0.tgz","fileCount":45,"integrity":"sha512-59ot0svKqRu55tJ2QrM/V4dCMPRGcVNJRDrNlMR7wo5GHqEhaN0NHJ9GirLfyNax91Iwa0g1CVHq6U2zhS/Bgw==","signatures":[{"sig":"MEUCIHIcC3cdQ8pYrLwRPkFsGzhq1IGjP0BTE+5sPdrjviAyAiEAxZ0QZ+pjyI1tdJMTbyZYhpkmNffJvKrxQ3ocDCT98XI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1UhjCRA9TVsSAnZWagAA+48P/27S0SR59xWJztrkYEAS\nIToAG6vLVL4PppX8f2Fa7pY8YGNLRVXJmjRUsCQcO1jRL4bhzWDHy1HZ89Lp\nes+irSNzLhDrOxHjUexoTGtGEZhlcLHNcHGJzfLaahWmybDb53o0sViBFc0n\nwi0uA+uAwY//cgrwOXzWSKPCW+iXmYIs9YvOchcALQ5kLoWCUC1x8ly5OHzE\nhbs4NKJ8MWEI0o0Ni9/TP/KpqoVt0XycMIvwqJ/x/+t8a3K6T7RkIAo7SLY4\ncLdFdEYAHEiwV7SLETcenP9GYKtcyHuFgmnnlJ6Upm1fKPcFko0AjhYQsbBj\nA3t0uDhqQNVPA4VemdbHxH0+NUWTlDJaxN3xB6Kz1Ter+ufxGSfYRAzrXG+/\n4vV1ipFXh7D+U0E0A/04bHA60iHrzJsN6lbsUp1udfyKczkr1W/WJWvCvIFW\n2wBdy4vZKKLN7vt5CKF3u4STXxcaqnxmANGe/YubL2SvuunPcpOKXCiBc27Q\nuS3HcQAPqrSVvMSaV/LP4NVAgxbTc1Qxq0Uhohv7eyfO2B6Uhrqxyb+dQceP\nQZxxUA1mNAD7/iWl0rgrTywkq8MxMRNZSnzcpYo8r2HZzT7KW8D81k977rhW\nvA5ugc642x93oM6bTWDJhYwQpOKWSd8ILBfg6zrrF00KekDy7Uv9ec0lziQQ\ng4h5\r\n=7aNS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d43f6785558859ab233dac12d042ada9fb8c1b84","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.b9776b1d0.0","@material/base":"7.0.0-canary.b9776b1d0.0","@material/shape":"7.0.0-canary.b9776b1d0.0","@material/theme":"7.0.0-canary.b9776b1d0.0","@material/ripple":"7.0.0-canary.b9776b1d0.0","@material/animation":"7.0.0-canary.b9776b1d0.0","@material/elevation":"7.0.0-canary.b9776b1d0.0","@material/typography":"7.0.0-canary.b9776b1d0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.b9776b1d0.0_1591036002667_0.986980789999437","host":"s3://npm-registry-packages"}},"7.0.0-canary.ba6f7c294.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.ba6f7c294.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.ba6f7c294.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0db89adcbc08a931d5a5ef516d64ce6fc5b437fc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.ba6f7c294.0.tgz","fileCount":45,"integrity":"sha512-r062y+JQb3UfeB8DQR9oAF0/TFAqlNPeqnZP9YL3upI4yAhfRN5KjUa+YAsjviDYZF+GfRHPH6/Wf9ezgzcEow==","signatures":[{"sig":"MEQCIHaFdobShOkXQ8Gf9hNaLSDVMQs9+9PV6DMkqm5URYiRAiBjkaJDMKWnTu0155s4L1lQ+DUs9RK/x/c7L71IcfNmdQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1oZZCRA9TVsSAnZWagAATvIP/iPtGA8WIwZlhnM1dMWO\nO0cCaeRTkcdHfx0jkBbINuySOIr/3deQouN3esGu/3LdK8yMzYWABDzN036U\nRiXE40SBvEAy7LnwltG9MQ+Co3lW45P5rumWtcn6YYQrb3DgFQ0KFdeRL0Z2\nK6pWZpgqkS20IMMLSV0spcH8gyo7PcXoacjvZiezf4sHEzFsH/DPJMriC8re\nmRNuY5yaZVIresq1YIANIw1nZ185bVGiVoVfvwyjbjpAmTv9ds2rSI0ukctD\nXWhiVTIzxTwAbyS1Ishig9iiFuY0y1ftLnQf8nt9Px4pgb+bANjszq1uCG4h\noa5LkP8PBPusGGKtfRuwZwF10udk4bIgzz8rKMHYYNPejxDe1DjLx2lb0shU\nl3h0ivhlpv2Mt2w2mty8hVcYDDJYAMziLERp0VDUxsgQd7uasZFXLQPg5CwW\ngAHZwUYpYGpjO+BBB4gYMsUiZoHwtDgI/4gfr3AAYiT2/j0odJCn7kP/fPVx\nTKoieO1GaVhiFiSo+g25/7Jgu7lph02G1KHEX9whAzwUxUX3iXQe/YQzwAoq\nJIIUNHrgMbm6Hg9SvKqgWsydf0uDFrWHbPYKvzPKBneOs8KdBSMnk13Lhd0U\niehwiIszWMP5xIn/zu5Ay58F22FErvkkFRFQb0yETlJSXFTxNtIzUWuitNoo\nvwqU\r\n=unmO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f181fece0cab022dd478b7c2f4b768aa14f7ebf7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.ba6f7c294.0","@material/base":"7.0.0-canary.ba6f7c294.0","@material/shape":"7.0.0-canary.ba6f7c294.0","@material/theme":"7.0.0-canary.ba6f7c294.0","@material/ripple":"7.0.0-canary.ba6f7c294.0","@material/animation":"7.0.0-canary.ba6f7c294.0","@material/elevation":"7.0.0-canary.ba6f7c294.0","@material/typography":"7.0.0-canary.ba6f7c294.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.ba6f7c294.0_1591117400908_0.6381155617795453","host":"s3://npm-registry-packages"}},"7.0.0-canary.cf3b664ab.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.cf3b664ab.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.cf3b664ab.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5b55204532815025b54dbf7202224eb275277986","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.cf3b664ab.0.tgz","fileCount":45,"integrity":"sha512-GmrzvYuzIqQjrpVm1KPA9oXt0PSnJMovDirCECi4umRmOt5jiPiUGAheBuew17OunyrQSNsigb9VfaeDpqmezw==","signatures":[{"sig":"MEQCIEUTqroR3AM6ywGIsYF2K6pQ3q8zMjFYLWGyVGsX948jAiBD98KvRfINRiBocPA+CpPUCZ0AmYyk7zbH/ndGRreK7A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1plLCRA9TVsSAnZWagAAcKcP/iOri3MHPHLUYB8tf+Pl\nXp5x9HsQdNBCRd3r609fDbhE54WbeGUajqOM1ETsesPF6bGnLo6Zq98sXMK/\nrrL13KWTxSeg9FUdqswLx76cf27AzWfIfiS9K3NwvKJqCthWRj7CBv2zNanT\nEgJjtRzLweYoUYlyLFV9TthH33K9MRoJAtlS7iO5ToIcOISco9noYfphI75p\n20x2cNYIzPgAVJFNoAd/CvfNAHwlFKs4Z+IXuxCkfF/0uIdh0SPARDe1+o+U\nuJh5IemJMg4SiE7rQDj/wTZ7dnVHCMTzXyTaCmYbmg27FGfFFwcrwuKOx+Uw\nasaU0KaOF0WbkdI32mz58zQRty27WpleKgTXTSBjyuHlQLazMeVzZL0j4jgS\nH/XzfWMqJ0722RNpnoRWYgu4GteTu9fxNoj60HpQCdYN2VCMbl85k/1peCz1\npbmRaywU9FU6q8fmgzek2FdZYew7igoZSKqzO+POidGE5Ai6Y6X8BMHGeMDv\nrkWNKJ3t/PO94uRJ7c/3jGuT5IVfjMgzweOS1/xnKCDpE95QZU4Av/2dmNvW\nowzYAlJ7A9uAkA99fLChuNr+tIU/DPeaEn/5FjCXJHhK/L7/PSwXuNN9aQ7P\n+FIxZLILxirg/YAF5qr4JICCq5QUpJadaYhx5jBFhixPnD8bRoiHbR+UTMrf\nSBO+\r\n=bGok\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"708ed8576095ca5e673311fcd970680f855a7b59","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.cf3b664ab.0","@material/base":"7.0.0-canary.cf3b664ab.0","@material/shape":"7.0.0-canary.cf3b664ab.0","@material/theme":"7.0.0-canary.cf3b664ab.0","@material/ripple":"7.0.0-canary.cf3b664ab.0","@material/animation":"7.0.0-canary.cf3b664ab.0","@material/elevation":"7.0.0-canary.cf3b664ab.0","@material/typography":"7.0.0-canary.cf3b664ab.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.cf3b664ab.0_1591122251106_0.6947741491799087","host":"s3://npm-registry-packages"}},"7.0.0-canary.4ba3c9a31.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.4ba3c9a31.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.4ba3c9a31.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"11c4deb3e4b06bac1c01c0ee46b32b7d1212883a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.4ba3c9a31.0.tgz","fileCount":45,"integrity":"sha512-nnnIX3/SJA/oAvamJ+q2yySnKuWo5OLaRIaO9pht7q6moXKwaznWITZXdf9zZYYC37z5SN+crMfBKe6WdvTmzQ==","signatures":[{"sig":"MEUCIQD2kD8r1YEJza4cZzSlSB4vH82qY1zVXUKM4fJ6YVbHzwIgB2rvRUHOOkgYZEpbkUKeZSao+Y9oO9HeEQ7VhBTpUVY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1uZuCRA9TVsSAnZWagAAVk0P/35TY7+1hMSVbLYIsaNK\nLy4wPJInGmfESCslKBrWdSQSr6W2MEiCulTo3JZGthuHpfNqhEFJVj2BxTm/\n/ePJR1ZUWx0+VgYu34HrLeku1myCzdXelEhbMyVrrmaYtRhlGsJ4h8aU1tTr\nI26o92whGYyB+adXb2cg/e7f8adSEhQyccpasqshcnlV8clLPbL7hMSNXl5D\nv0dMKSMNizr4j/dYlwrdi3rslNgw0H73Gj5Wwd4TUBI8XrV1QH5NMnWEFjeV\no+GYO8uwGl5UbMyLwwOQQzZzROsIFTv/Spv9skH8F7piW0QvJ9LTV1aslb1K\n48h/lbE5A1isX9ZPaNIEDiF6zilPnlftgu0qhQUIqKT4mlzihLZKgu/cK6/v\noD8YNwYVccZOLtDjKZwi1ArCoCq5bBC9z04t8lWTuFib5aPACHqHIjSEAA/O\nAwLoCr5deo9muxPlF15A3X/ljEDvRlHSBMiumzf41T0xPlj8kOt4w/KXshsq\ntTSKXwnr5pAxegdv3XQSS5Jeo81Ycbnt3qb4ADlUe+r+/OByp41rwzZlK/XI\nXB8x7CKB+L5arm+D1E0Zh2gMkOCV66SEzikWN34SWkOVQ1zUjPKvzgls6AdL\nVDa74LnagDCmVeQFohYrVHcfYlqYmz3N/KCBy1m50rButdNGlbbfhYaHKqQs\n4GKE\r\n=l0ca\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cf7f823aac5f803db06863c865c07f432ec4fd09","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.4ba3c9a31.0","@material/base":"7.0.0-canary.4ba3c9a31.0","@material/shape":"7.0.0-canary.4ba3c9a31.0","@material/theme":"7.0.0-canary.4ba3c9a31.0","@material/ripple":"7.0.0-canary.4ba3c9a31.0","@material/animation":"7.0.0-canary.4ba3c9a31.0","@material/elevation":"7.0.0-canary.4ba3c9a31.0","@material/typography":"7.0.0-canary.4ba3c9a31.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.4ba3c9a31.0_1591141998447_0.5058131590078894","host":"s3://npm-registry-packages"}},"7.0.0-canary.388b042c7.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.388b042c7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.388b042c7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7280d209eefa4b95fd96e3d63ee116cdd4369fbb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.388b042c7.0.tgz","fileCount":45,"integrity":"sha512-HcHeaJRQ/6c2YlfpsoES9NRwxIZ4jL+IYd1gCU9jm3AKblkOILcGFMOhZ6JlUieBd7BobcbPmPVdXQ4/+o4Cnw==","signatures":[{"sig":"MEYCIQC8hWVk2lEahTOj6wdX035YKjhi35MRNSrRaxzauvS+qQIhAIjAPkrdtan9yXoSr5vv1c6qhPXJKniBg8Ru50xVCyl7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe16noCRA9TVsSAnZWagAA63AP/2iSIobHjua1wDhdQc4r\nCAy7f4nWr73DmVEpCDeo0vA4AqWKTwxS8FWc4X0Stitr55AwqH55baJKcMG6\nvrklte3zyeh58tjuskq1E14EgDzYEeINMv5mBASpq9ujk+/rb2KGPvcr2RRH\nIkRyin8uj4wGq2l2Iba1CmO+psviuihax3HeSli0QlhP+C3+bPT2L6Bkd328\nFi6vIUky/1iZkOeJi1ok0uEVzdVkN4ZNj2P0gjyntSvfgfC9hea0g55jsf+i\nmMW6gd8wWVzf0uJ5smK0VHVM3G4soyA/cU3wvy+om81nNElwe3cAqJANMD61\nMPhBFSqApmKllevBOZUUv9RaBkx0lwLrrV9kC5cjMtiihCXIoFHMxcHbHI+j\nwf3Y0+n0zW3wotEL82Wqw1AQehBXThDhadH3eo2JEerv/HLw1JYzzxlLOU+6\nC5+UdWCAq1wpSB4sk11RFORn2sjTrvx+kSvUiWWM53o2YEfWUNrpeBPNtL2G\n+h/kVVE4cCu8ilWWY2VCAwfzePVIoMlufmHWqzChD3gOuMX0vZJRuXvtGyjf\n3Z3gYoIbB6Y8HMAfkdAXRDNu9hqDqbgLgluvzMAG9gAKW6ECgz3Kh8Pzmzwc\nCJg4TEoFGQdS2JWvyv9iO1U3eCUk3m5rTToIx2iH1DyIFYcI/R0oaVh/MBow\nGja8\r\n=Wn5U\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7c9ddf94f1ba2ee332d7acea141e5022b58f79ff","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.388b042c7.0","@material/base":"7.0.0-canary.388b042c7.0","@material/shape":"7.0.0-canary.388b042c7.0","@material/theme":"7.0.0-canary.388b042c7.0","@material/ripple":"7.0.0-canary.388b042c7.0","@material/animation":"7.0.0-canary.388b042c7.0","@material/elevation":"7.0.0-canary.388b042c7.0","@material/typography":"7.0.0-canary.388b042c7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.388b042c7.0_1591192039488_0.4307722296869194","host":"s3://npm-registry-packages"}},"7.0.0-canary.cca1ca84d.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.cca1ca84d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.cca1ca84d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"34f548be42a93e41d70c5d6288e5fc09c1c67e23","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.cca1ca84d.0.tgz","fileCount":45,"integrity":"sha512-QltqhlkjJ4ehXYZ8LNdCAMZA5fEGnXxseC4LLArWZpLonCApVOQJ4A/q1yFv36LHES1nOjx3swX3RsVL48ulfQ==","signatures":[{"sig":"MEYCIQDJk0z/vjRFqXGWMq8ODoX3cHcyBuqbPflXDLevWlTIVgIhAM6EzA32OAQCr2K2sZRJMLbaB812Ofvbmr/t3FU+tr9E","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe18nnCRA9TVsSAnZWagAAXSsP/26YsPlKgo5CRTO/Xwia\nK5IGcvlqZamb25I45Icl+jJCyrMjeMbb9rsDa5hN1NDzpDCoZjwN3aMJyaqo\nnKUOQsiFAQ/cLsMGBF9HoXXGzOWPZ0zD4YFrb3b5LnCq2tpaNPWjmqjTEdPr\nD+SBDHXtYyq083/Y9GsDVPQmCEPNUOTV7v3umParuTdeSp9cTOA4yJGZ9Ucj\nBgl+ECAyPVlehY0S/jCmdu0ZwP0til4NVGPMqv37tcKwsIsvljdledo2UHz9\ne/T8u7ScMkBste0ePhSTi/YEWde4/FjGHoC6XevlEajrWEiGy06BeYZIOYDp\naPDUqtey0bVONIQUYhZqHhTjMG0g6lE1TL3bLU0jeXTjOK7V8UkjfKoOCit5\nndVaA64nM4PbAZwSw+ul+IHb05sPK1i43m8foTh27PBwXtvDyb9G0OmHUbHe\nGojUtQxwpbq54GOTrDJpGnlNFvMo1VanvP48tAFRrRmWNPgYWINt3P0d+OSW\nscZTonUPfqE4v86R/cPQi8YOK3PVGcI0QGeP4VSL44cUIKDAJM3zItTv9t0W\ne7NAxmKqkyCoVOXbSkJ5xW4qSnnMz4c42K8qWOcr61VGZYv/Jeikw3qToLJR\n0z3WVcBGYMKiOtw3i34jfTuQpslAZHleact/gqywmhJ1M6BBCdgTyz2Q8ZW7\n8P5z\r\n=BdOQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f154bcb37f9df5f07d3c6dd0c397a436794ed609","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.cca1ca84d.0","@material/base":"7.0.0-canary.cca1ca84d.0","@material/shape":"7.0.0-canary.cca1ca84d.0","@material/theme":"7.0.0-canary.cca1ca84d.0","@material/ripple":"7.0.0-canary.cca1ca84d.0","@material/animation":"7.0.0-canary.cca1ca84d.0","@material/elevation":"7.0.0-canary.cca1ca84d.0","@material/typography":"7.0.0-canary.cca1ca84d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.cca1ca84d.0_1591200230944_0.7724078603839386","host":"s3://npm-registry-packages"}},"7.0.0-canary.9b0b5f2e0.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.9b0b5f2e0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.9b0b5f2e0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"37b9d81f0aea487c990f78fc24b16b4e7bb56077","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.9b0b5f2e0.0.tgz","fileCount":45,"integrity":"sha512-qIQLYZ1vnnz4QG2HCZRiyNvJdlgSgZ6vMli1lOlfX/00peMwEMUgmf9IACGg2hM2nfylgzyLDnkilFd/NzXVyw==","signatures":[{"sig":"MEQCIEsmkCh47QMn5BMAzn8yP/WMpcZFgLJzGFTBl3hvat5PAiAXGdKFTNBxXuIcwlr7o94scs49Ta+Qg/QUeTSXA1NVVQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1/LgCRA9TVsSAnZWagAAL44P/3TAgspFcsMrzhORRzDt\nj85PPKKxMizjkubXGK9khtqfs6PiOdGwdupCeD7A/EF9PkpPT/Y4oS7CsDV/\nGN5ZSWhhf9MU8blFOZbKLyrWBEfWC1ykQGP/XHrnqTEkxR3/tGQd/VWaIguK\ndEsJ0NlD8NOA63zoHyg2WqlX878ffEpsQBrUvPF37PidrUWpSO28R95I6CV9\nuwbuH5fxZiRa6TXNXmdVdJAYVSbScKtR5VxORm7z4YMOaCwQ4wMLuLEQ8NYY\ny7AQ/caMsnUO9GZjz6twy3Fak6zjDquDUcndB/57WrrYif56bUCbhr8RJPXo\nfPM4CtTCL1xCvITEUfxEooZJ93fWXUSBSu3NyhZvN64nIqi+gPTtxvWIdZQI\neEu2Jn5u+7DVnpgkdrve9h13dGM2Dh7GqpzR0GSDnaLDPaTBr6hRJZFnxmiO\nGFJ3imBT4wSHQH4w12el0JmczxgcNCnK+4jnS0cK14vMmBId7TpnEbKlCwiM\nhVdpesxdzdK9qzoPMW4M/8IpnsJ56c6Oe+czrbzk6HjVw3a+zc6tnrc7MII3\nMJ5sHLb2d/5eH/RmDHC75RAgYnq9B88jt13GB8QFGJdW/kijV/QsBa7OS8mr\nRi9hzKnEZhiQGOKKU/Y64Io9o25L7nkwrVUz43cMxwHd5QP9BseFeAT8+GIM\n7yY1\r\n=rUJz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"35348e60387f88e73ce8e1376b7f352877821cb5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.9b0b5f2e0.0","@material/base":"7.0.0-canary.9b0b5f2e0.0","@material/shape":"7.0.0-canary.9b0b5f2e0.0","@material/theme":"7.0.0-canary.9b0b5f2e0.0","@material/ripple":"7.0.0-canary.9b0b5f2e0.0","@material/animation":"7.0.0-canary.9b0b5f2e0.0","@material/elevation":"7.0.0-canary.9b0b5f2e0.0","@material/typography":"7.0.0-canary.9b0b5f2e0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.9b0b5f2e0.0_1591210719626_0.35667629748162377","host":"s3://npm-registry-packages"}},"7.0.0-canary.0a7895f4d.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.0a7895f4d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.0a7895f4d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"547803570e700687a62db9c25b403be225aba91b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.0a7895f4d.0.tgz","fileCount":45,"integrity":"sha512-wUpia3nfuoilCGw4/ywpXtYwcUe471EsGVZVL1UzBwXg9FtBamqyjz8RwtQiuFY9DuXsJipBYVk9BJFpmqcaZA==","signatures":[{"sig":"MEUCIQDX91Wonnz+q53ncyB6gP5jYfjrQy3jze7rBYBzn9ATvgIgYcO8uAE+RweQIQjPXIQXIZ7KNlF5LCSvWWAqpbEEBsU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2BGaCRA9TVsSAnZWagAA5tsQAJHZkT42z40QiJfTSGPU\n3xUIUYJiq3bpuP5gR+9wc6H8aotZPWmXLgOJLxq5dzoSce8PSdK4LuTAE/LA\n4q9EeczkcG2L+wVFvVokeZ8arvHuzUxKm6cQDcDmERkQtQ+boZWPsxvfCBPk\nGuMANZNfPNM/o3St4RroyWD6dr76xoWTO79u6Hxo7UtEZbf/IQfOU8qnxnfu\nCBMCLMjNbrwI8EWm3YOYzWG1XjQCi/n2HIMegzNC8YuQ4UHIWpbo8SHBNBTz\np/+svUXijuZmozNDH6XEEaqzJ9kQDKhLSwN2DdlXTHu56ToF7/q53DjPy1t3\npMbJZ1KfijUZ1rMD5++c5D/R0eBW9xjMvfkvPqa3sPGIfiJZcQBJn3s758YG\nYKG9LIx6Zozs6rZIHML5VaIxlQBusf4FlEFwMKYOL8qAE+ziomIC3mipaZFN\nY2QDbxV+ZxrvzzC2EwQOSD+bBbAXkWzIOqjDlABlnKHj/Vk4t8mUcX4FqPoE\nM3Lv5o0LzCBRUXXNC0soZDVvT9pw7IQKCi2O4HV2l+ci59aPvl30xKzDYJqS\nfzHvByccYaAiZu4zenT5ykexEk/gYGm+ghFTiGdjVi7OW/YC3Ya5eSlIIC26\nEtsgRp7bSU/Zh60bH8Uo42SrWNFEm7qPQQ+hgADeQOm8O3WsqKTrv9T5ix9o\n1/zh\r\n=7uZc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"929c9bffd0636490958fcf34e0b40578b44a9cd1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.0a7895f4d.0","@material/base":"7.0.0-canary.0a7895f4d.0","@material/shape":"7.0.0-canary.0a7895f4d.0","@material/theme":"7.0.0-canary.0a7895f4d.0","@material/ripple":"7.0.0-canary.0a7895f4d.0","@material/animation":"7.0.0-canary.0a7895f4d.0","@material/elevation":"7.0.0-canary.0a7895f4d.0","@material/typography":"7.0.0-canary.0a7895f4d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.0a7895f4d.0_1591218586147_0.40307053590608266","host":"s3://npm-registry-packages"}},"7.0.0-canary.7461aad68.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.7461aad68.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.7461aad68.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e7d613ca0a6d2e78be315bb254d577e61f14ab20","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.7461aad68.0.tgz","fileCount":45,"integrity":"sha512-wpdt63xiOTfR+hRDGF4xheDtRgJqp5EHNHjQHA+cRyqfdVSfIW8H3cyXnMkNe3Da3r6VgGYBROG6mSz1UKJfKQ==","signatures":[{"sig":"MEUCIQDgzUb/yRpsHKyn2k35i1DTA8r6jCJk+AuWid2YqzTWtgIgRTzv/Q95neE2hou7ry3lmYjfXahHgFTZJHQRJFD1588=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2CB8CRA9TVsSAnZWagAAXMcP/35eU2QTmx4nuwQD3Qhb\nTa3yUNKO6Dv8M7toUd6Rxx456+p+9moa56Y8stsFRiBBmTz6GwMmIYgTMBv7\nM7qddgzOZB0TUZHiqzIvHDxPZDgB9hu/Yy6Cq+VW98PFHnQmej3Xza+HhC6L\nyxY7lPYFr8gprF2NHeCirdg6DCbcWNQnNS4oiPgAptmwzL8MgVAHW4DiBYFJ\nE/NNC+bOiwcNKptXVVNiiLvNS6wtR7K898ovh/lHfdTaZVX1q1ysfuV9hvGr\nha1usqbcR7BlA55wd4fz6xnhitNDHEHiZTp8cLREKyUgH1hDbf2QupzHI/1Y\n/AHjJR/tLvtiHDDvU9YUrXmk4/QaYHfRS+70af45aKMCFyHCxt/7FN9L/g5A\n1VYg8w3nZaTrYKY7/skTZExFzGjdeNPzCJ6AsTuOd6enUzOGGRdtUyisOcSe\n2XyGjzmdkhUr3qDpyzm4xejOFyuDZuZEGz4OpqKkxPk9Qiqv5WioBWmpVmTz\nTkfW2UAwZE5jfcSrunoq5DOOQMXNyjs4vcj7WKFfhCU8KVDV9aJh1Lh8xRLJ\n7Jzb3YFfloLh/NRWK5+XpAo0byewhDEbAIKS/D6qVF2MkXOXnNbTn5yE8InC\n4RVbVSvt+i4a94xiXh/P9HaNMstTjBx0s1Z95rHeF/Cv+MG3+jh9sbs50ImY\nrbnJ\r\n=T0C3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f9166e39b20f57c6b5cdad1ce684529ca891bd81","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.7461aad68.0","@material/base":"7.0.0-canary.7461aad68.0","@material/shape":"7.0.0-canary.7461aad68.0","@material/theme":"7.0.0-canary.7461aad68.0","@material/ripple":"7.0.0-canary.7461aad68.0","@material/animation":"7.0.0-canary.7461aad68.0","@material/elevation":"7.0.0-canary.7461aad68.0","@material/typography":"7.0.0-canary.7461aad68.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.7461aad68.0_1591222395593_0.8632324741948874","host":"s3://npm-registry-packages"}},"7.0.0-canary.a0dc2b5c4.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.a0dc2b5c4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.a0dc2b5c4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b2fd802b60aaeeaf536b9429044575fa5ea71952","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.a0dc2b5c4.0.tgz","fileCount":45,"integrity":"sha512-7O7wYw64ebvxU9MDCsQU+LM4/L7spm/3KOQK0EH9jwe2910N5HlLbuz30fvZ0pjhKPOHNapWysrjncSENkluJA==","signatures":[{"sig":"MEUCIH+pCHWmmNWGl4B9VURhrpfPMxDc0snHBLu4GjlVye/dAiEAr1OtiocssMGnhyYmBDa4qeWhjlVosXCiEhKOF/JXHZU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2WRaCRA9TVsSAnZWagAAd2oP/A3fMPkoPiFGp1mijWrf\n46TSMOkXzEH2HvgB56wW7xC+qQSWebs7zM/6LMCVrXHK0tox7xDw0eC2qwTD\nlWNlrvaEKzQu1BK93rtBbm5OMomjvEeorV1ENrcbCLvx6HdvDqNtpVZMwem1\nBlEF/jRd91NaRONR9FT33B2HWy+dUyi3to7FJNqh6ztw5yp9p6zL2QoVYrE0\n1apMulLxIC1egIbdFx/H3RzfajK9WUewIc/o4nzpbCuv010cmmHBhVTAjvk3\nDaXQGMA/xMokTodqa53cPv143iC7co2+QDeJlm90l36oXU6VN4VlC3VKYyWJ\nR5BGGEYyx37C7Lqtu78YuoHVWabWjMXK6nPGxMFoXR9InwrtDFAC1qeAqf+n\nTiwL51DH+/R9hpawhuJCKsFwkngBrDZgtaYsnaHdDtJTW2sBQW+x5cuIkzzF\nC8gyhZlG59Vmq+PQ+qb10QpwVIsNhM+gzWwDZNuAPfjhx5KGcOiPVidvypSM\nQ/RTIY4mIq1ovQijgcOeYKJXBXny6ND/yumkaGYzLUUWQjfT5LshX2IWsAYa\narGHGQ2q0bQPuRYFQb4L5cnHVnI3gmp2JkxvIqPSOS8ePTgxoFX0Vqhj2iAk\n8JZs017sL+qmnTpf3B4pq+GIwqz4Gej8b9Ahw1ItPXwbnG6gfkkPHwdXUXg3\n1se1\r\n=qPxy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5970f3857673cb8c032d0d4532a6cf1209f94c47","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.a0dc2b5c4.0","@material/base":"7.0.0-canary.a0dc2b5c4.0","@material/shape":"7.0.0-canary.a0dc2b5c4.0","@material/theme":"7.0.0-canary.a0dc2b5c4.0","@material/ripple":"7.0.0-canary.a0dc2b5c4.0","@material/animation":"7.0.0-canary.a0dc2b5c4.0","@material/elevation":"7.0.0-canary.a0dc2b5c4.0","@material/typography":"7.0.0-canary.a0dc2b5c4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.a0dc2b5c4.0_1591305303046_0.1909983196183751","host":"s3://npm-registry-packages"}},"7.0.0-canary.2b420c5b3.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.2b420c5b3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.2b420c5b3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f7bbaac44f2efc086a2acdc6314353d97ee5242d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.2b420c5b3.0.tgz","fileCount":45,"integrity":"sha512-bbZhc/B0bTTt1h9rjRE1AvLPDe/nyTsiRVP6QTzZlEPgYdYstP+U+DbYa2YHQ5Bd4tng2FJnsXLh4VaigWGx7Q==","signatures":[{"sig":"MEQCIAovCCKOUMZin4Qnt5y/x0sLiMW2mpiiFZChNffrarfHAiAVoew0Jn+FbRgplWzDMK3+DiFcSO072gGZdnNiIF2Z9Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3mQOCRA9TVsSAnZWagAA3dQQAJl90Oo6OOMMOe+EfBHf\ntSF9aCgCUuX5kB6UutRyB6vBy8hZviCm7btAgUSaxzM2L+KkfYj2KZ7Muw1n\nKPsnF9mLn6zUtNY+F7Tj4pNx0B5kW/sGpDrlFBTQSkHSEpXs0wRJVbVdZGos\nIE9AALBI5x4CvTGo5JP9a9n+ppOymN0D1fKaS9LQtJCTeZdQ6j2qxwrF47DB\nLFCE1seWOraZw1pL9H1mIrMVLps5UVUnxvkFzaG4raszNpVYmMR2yNenoiUU\nSpKBNOSdIjBbHM1d6tSIgs4YUatF4Df5QxZWmFGsbj4sZbcO9Qj9fG0pyf1t\nLitzHPeOsMb3z+bK+kJipm40b+vHezg4dtGrpLcF0heWBs09kgPganOF+Ts7\nIm6UoeZUJ+ymLNJv3QI/ObqlKcYSq5Qjds81awPEyTuGT2L2jGwv2oowiHq1\nsBnkH72QNizghzLFvJro1sPTfl5zgcU3fP7TaJ2XUI4EgBeVlQrIOAlPguXO\nLVlv//BmVG+3EplpYXLXKv1o+/rdHTyaYPTeygJw2lEdKt5LKBJtt+dJ2q6m\nXQpnRROyd8U0zU8J6oo1aL39Qs8KYVUHrnk71lb/0Ixq+8K+z72wvyeobJO4\nD8eOsGQT4Yfl+DrH/5/qAK6n+bDuG4f2Wynvks4jkIQ51kBHEPR0VSxkPlbj\nXiTw\r\n=1Ez3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"80cc16a27982fc781b2a68accf38760a98fdbe2c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.2b420c5b3.0","@material/base":"7.0.0-canary.2b420c5b3.0","@material/shape":"7.0.0-canary.2b420c5b3.0","@material/theme":"7.0.0-canary.2b420c5b3.0","@material/ripple":"7.0.0-canary.2b420c5b3.0","@material/animation":"7.0.0-canary.2b420c5b3.0","@material/elevation":"7.0.0-canary.2b420c5b3.0","@material/typography":"7.0.0-canary.2b420c5b3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.2b420c5b3.0_1591632909937_0.440618941110962","host":"s3://npm-registry-packages"}},"7.0.0-canary.8fa22aacc.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.8fa22aacc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.8fa22aacc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"91e62bda471b090cfcf5c20745b27ce789c1b0cb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.8fa22aacc.0.tgz","fileCount":45,"integrity":"sha512-XRkF5Vovgulm4yyzdt/HxMov1JkVi78fPL5VkbU7uUXKFm+9h5SdWeyDour5+7xmU/BkubAPRPKwG1VMfgHb4A==","signatures":[{"sig":"MEUCIQDEQFyUOGcU7+vvT84vFS/wlk5iwakvGF6PXJkFunJ9SwIgTg+h2C5SY+hX4CzBaDbVOwVIMgnZUFPEIARTs3lUPdw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3n3YCRA9TVsSAnZWagAAyRYQAInlk0qXTlxpwwW2Wvp0\n0735kYAsToYtHNEJG4zEAWbru8jRKf/JHbDguRhtSfEkRDwRrYmWMzLCzB+O\nAaMK+hM0vvFq3mzukaZCMZyZ1p3SxViCSG/W2Mz4l0F2UZODboPFxOLXf2y9\nzNBPjzIBokuCnpftVaY5ZADkkW5a7M/Z3PpS7Us4shPiTFOfMwHN1V9pG4ag\nDoduJugG7+K01jOUCBqF66oGBjM3XiLUPPw60AVltMjpdP0cmmJxS5pRcgNf\nWubf68z+Uw2FFwYclQ18ST/wguCLNTZ/iOZBWg3GsmkjImq5kYWuDl0sefXq\nzsOi7BRQSkx+Ssv6TzHB2rPlh0ktKBMZZpp3yWLaE70WDD0/nNHx1w1TKlw3\ndDl/YIALCgDsgMU+6eXuRplQSULnhmYYcG+WKkZU8cs3f9VyI8KV38IUR3bj\nNzHFxG3JGdf/9EkuJx9KgswJF6LZQaBx+qZqD2kV3GDXnD6126htkjMs/rJu\n4Xk+C4PoHfhqqQHhNktL1ehGIXe8GUJNPhkVp2r+9HXjCd2aS8VjRjv3rLkX\nhhoEN6o3m7+LMCGYN+48SQJmvFjMd9x1ASsCrTtnzGccGsxOiu0vQ48aJGtQ\nLMOm3sCh6H8m6K0lbi4Uamq+uEY2hftIJouLuVm9ynHUhH6h4jqRPYvFP9QT\nEvCp\r\n=vZDY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7c66b081ba582f4d58dde82c8b83ab1dfbed6063","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.8fa22aacc.0","@material/base":"7.0.0-canary.8fa22aacc.0","@material/shape":"7.0.0-canary.8fa22aacc.0","@material/theme":"7.0.0-canary.8fa22aacc.0","@material/ripple":"7.0.0-canary.8fa22aacc.0","@material/animation":"7.0.0-canary.8fa22aacc.0","@material/elevation":"7.0.0-canary.8fa22aacc.0","@material/typography":"7.0.0-canary.8fa22aacc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.8fa22aacc.0_1591639512115_0.265733559013523","host":"s3://npm-registry-packages"}},"7.0.0-canary.21c4e4ed8.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.21c4e4ed8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.21c4e4ed8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"205278b99f9f8b91861ac6ebe7e429e595e8c890","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.21c4e4ed8.0.tgz","fileCount":45,"integrity":"sha512-x+kS4r6ZynMIheuAe3FgLRwOmkXf7pFuxRhbwiJcwFaT5KnWHWKsrx9TPIMv4nN4QOPHVebqQdneH/1d5XUhNg==","signatures":[{"sig":"MEYCIQDM+RKmJDBOwZy/HitT33z0eO5Nz5R11+Z60vQDdFrpNwIhAO6P2nxBXIjXi8ijyxb9hzrLdcX/XUsxMHu85WHBTAMs","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3ocpCRA9TVsSAnZWagAAYWIP/jXdyrMtpOewPoBBe+Q5\nOkiAl1rE3lrpjO6Y4NnkY6F2USFaWBrq1tRrqJBg5G2/9E9wBegPnbvXU/kN\nPah/DodfAg1bAU0firOQR5ceP4xhTxbOEye9GVqL2KTmDOBLuel84dNIkh7n\nhjLqn63BDhMdFn3MW0evJsu3YeaFQ7qbxGHHM10Bq+hgks4MW6VndfLPy9v+\nx9muRWZWRflJMoyN4BPwzd9rxJ/o4BPfetBOaixEsnSLQe7tGcQs5X1B77pm\nJS4TdHsI6HeM01fSx/WWqFIt3FdeAx9q0I6LDHbAEZ0ThD3aPdwZLyEKPzu1\nnwUvHPUP8K2c4oCaWjZSQUsfonVOHGs7Ue3cjdMBTZNaX9mAveNvFgkGKVcG\ndMYGLXeE02n3OG+in7oE8+IB6f9BfJFfIdM+b6CJa1Nk8izyPgj+W54CrKrz\nVEpsE4AAvDnqJi0bZxlF6JD+pT5ReNTGK35fJvu+lTsvA7Joc5bM7N+H6W3s\nPlCLytwzlTkpGZj1SVsUrg7fl3kGkaBb3l2a8oZGCyFNlEUQ8pedmANABOSh\nWGziYHE+nddi5Sg+8p0D/aZE5VSD195eyHH4x2Tk705xOn4IwBmsCTXJvSLZ\nH5uGidfYoeup11Zk+Vegp91TOGuhbpmAPPC6D6Xju9QZYLDJEytL6YWQHsCq\nXpoY\r\n=28Gt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4028e059428ff6b13f79ad3f9076ddd853ec1904","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.21c4e4ed8.0","@material/base":"7.0.0-canary.21c4e4ed8.0","@material/shape":"7.0.0-canary.21c4e4ed8.0","@material/theme":"7.0.0-canary.21c4e4ed8.0","@material/ripple":"7.0.0-canary.21c4e4ed8.0","@material/animation":"7.0.0-canary.21c4e4ed8.0","@material/elevation":"7.0.0-canary.21c4e4ed8.0","@material/typography":"7.0.0-canary.21c4e4ed8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.21c4e4ed8.0_1591641896859_0.006711419251673734","host":"s3://npm-registry-packages"}},"7.0.0-canary.dfde46516.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.dfde46516.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.dfde46516.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7648b88d0a955eacdab9237d8554f45d41f57871","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.dfde46516.0.tgz","fileCount":45,"integrity":"sha512-W/bP3AaQph7TYFYtUiaAwhJo4WdlOX01NwSpElm++2y0tvqI0buranDhmbW6zyx3PPep99QMU5IN5OYxN5hvfQ==","signatures":[{"sig":"MEQCIGDzvjNIzv8jjupI1RKQaha2teCDTLhrHtjUGzaWzukBAiAbcvA3VeOKJdB9q3KbKKlIk6877w6GwvltR4IkylqUbA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3pSuCRA9TVsSAnZWagAAMJMP/22nJ+0FELDIRPTI+wdk\nhMXuvHrZ6jSr3J4qjy4jKPDAaKc6uUr6i420r8rnyZe7XMStkUTOWbpkzy0Y\nLBJJN3OvLjUctytHshoRjE/hD7Y8g2ZwjC0jeGHVI0cGCf6aNk56IhKPJrGA\nhe2mogLNRnEGXyBDpmHzoMXBu5Vx2X4BLUIQfI8siuuE7wydIBQVQo8KgPND\npwOs/mO7Z1MrairmbYQWKM6nFDJG0cW5F7cU2K+hHkK+DoI11AN/PyMrBIIn\nqzw5hCrgKbNxP5Bm0iYOml24IhsrAYxnQtHgRXknckeJiISh9CENqqpI79GL\nPelw+rvFVQdGmg3oWd2+OxlaQnWU45sxdJzdg1mCT7+1QLTmXv44m8Sq2Yov\nhzBAIAIkMQ+py9rSdmo6yILv6PVMY5NBy7GWgrd6IaXtWnkuAqdQqPsuj1LV\nvpPr2OhuMfDTkmzF79U/u2XlQBLHieurC/jhc9OPousqIhBtHj+OFjPA2gl3\nEOkeulw8TGA+rEkpnQeU6cNNiJKxoz7TBCFHYZK0z9HL7BTrcgHYGzvwWCA6\nfO4tn78cnww9WycDeIME96Jq1NcVfsu5hN2uoW6lqpoFyw3tXpCdBXZ0Mc4f\n6+PbrElkTPCEzNEp09xAXpwX73x4iZUEF854mM6y6wQ8HVZtJiuDlC0OPcut\nIYln\r\n=l4JU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c25d474d22b404bd6774ea12567f0916bd7fd165","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.dfde46516.0","@material/base":"7.0.0-canary.dfde46516.0","@material/shape":"7.0.0-canary.dfde46516.0","@material/theme":"7.0.0-canary.dfde46516.0","@material/ripple":"7.0.0-canary.dfde46516.0","@material/animation":"7.0.0-canary.dfde46516.0","@material/elevation":"7.0.0-canary.dfde46516.0","@material/typography":"7.0.0-canary.dfde46516.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.dfde46516.0_1591645358083_0.8228462970230317","host":"s3://npm-registry-packages"}},"7.0.0-canary.05cc5c206.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.05cc5c206.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.05cc5c206.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f52279ff804fb6256eaff7ded72d0201b3690158","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.05cc5c206.0.tgz","fileCount":45,"integrity":"sha512-3pRJCOOV4m/HxUwDFiBvo5TvfyXyfO9qXWp4CbYAxg93G7Fr0AJ3nKVvflPDy3encWxVg6Jsh7Hst5vIPAfsFQ==","signatures":[{"sig":"MEYCIQC5lHi2V1ctlrrubzpDsWRmTDGtJhZyO3ducdDMHhwOaQIhANMwRvGZ4PFcMGPTnfNoJegkBmABNr+sHI95dF7plarz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3qZRCRA9TVsSAnZWagAA8tIQAIzQA75I7ulBQ/aaemwO\nstE1449/bPVxFbvXDUAEmXOq5a2NnWMVDwQMkUklCC2EKHIgvC/OegpNC8oQ\nSl/feVBcnh6l6kWKuYYIhp4G1CdWqBMbG+85amb2pfuICF6llhGOZAKNLNLM\nf1W+sFHT0wSc0Afo8xbeDHyF0qsja9bljZDS8ol1g8curslgUd5ZLHSmRPyY\ngKsnUh6JeUO2OQA5MZTa1Obn2mb8dtU1j2KrFh3AJKCyW/O3HFmO9inMtPZZ\nuyT5ypeYmbRiyTqctm/J7p6GpXFKL+Si0IPKMUHjcKTUCnWAjPBB437yOzCK\nSU82TdFZijJ2fiQNwAT0WNC+D6f6TPMmNu9iJFkweTVeLHznG29wcUXPmL+C\nFi9rj0megOcy35+Uwzh911jtd4Rj76fRqaNXMSqjeMLINK1Yl0u9ZiIJ7JbT\nGllZGwJJNlQBJcX4RdKdnCAUzvlFNy94VJ6O6DhWsLCsZWisoI9X7o3ONKFj\nUQeeUjgq5099MUWu3ZiE6G3hAeNaVMyv3MIfGgLqB+BEeWD1GfQicB0Kr+0O\nr2PIl8YmBSc7qL6oCM7jH2Er4w1Dc6JTk4xc6+Kt+YWxf1/qd0tPiKyzuqzM\nOV97YPUF4sOxgUUxffXtr2CVO703mOz7yVbY48mduLdktpS1LEVs69SBpNB3\nOlfV\r\n=Qgsv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"933ae32b3f02920ab3f6f1660cefdd6302297532","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.05cc5c206.0","@material/base":"7.0.0-canary.05cc5c206.0","@material/shape":"7.0.0-canary.05cc5c206.0","@material/theme":"7.0.0-canary.05cc5c206.0","@material/ripple":"7.0.0-canary.05cc5c206.0","@material/animation":"7.0.0-canary.05cc5c206.0","@material/elevation":"7.0.0-canary.05cc5c206.0","@material/typography":"7.0.0-canary.05cc5c206.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.05cc5c206.0_1591649872833_0.930134976222236","host":"s3://npm-registry-packages"}},"7.0.0-canary.3ee488f1c.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.3ee488f1c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.3ee488f1c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2eb2a2119623e8c133a67502be159b08b39b5daa","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.3ee488f1c.0.tgz","fileCount":45,"integrity":"sha512-5Y/wwdKR2om86iWJHtBGxghc9LVnJs5HqXzUEDYfMevnIDKkeXu1mNjPd/GvZ6VlG60IAmKQrlPhJPKTGpP1AQ==","signatures":[{"sig":"MEUCIGqKbGbF7+Bbrs4HNGBNN4bV8vaOuztlCG5UxQ9xzjFAAiEAinAmdyTkfYrglvKNILfcTzDlxpf7aE04K4WX+hT8Ki8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe36KsCRA9TVsSAnZWagAAWR4P/2DN2Y7xmQllen+AS9Di\n20g1tdRPU8i5Vkv/O5ReE+lk62FdSgGs8kCRXs98sdpWt33tjBYTJ7B67uBJ\nAlYaxrHb20AhDjmIGiylGKbbjY68WrXRrwZOIMxnReOROPopO8b36mk0VUsd\n/V0zxxsmoi/9hqIjIacCvJ0BhLFfv/rZahxpH9UdxPU0VkWYdhSFSVGEWSr4\nkjc0DKJrDJcmYGeCDqqKO1ajddUJ2gVUhE1whHJSzJ7F+P4kqBmmqFVFpFgQ\nSrkKNkhsvLNUUt+4FYRVjHtV/3kfxrNa/YOYQMGKsHVI1tXJFvxuZ/NuGrQ2\nTDx6wt7M8/ZmQ+Id9z2qi6Bk0br7J3Qu68nQhX+Nn9MQQlW8Q1k7XMgWOUZ6\nBwV32BNStAh29o/FDU/xUGhSU6/fMU6G/45dB3OfBtd83mbzrSg9H4FatOSN\nO9neQF+MvqMo90jxYQDC0DgoXl7dUUSN5zdVLy1tSMsHV927LXzYhP6yFaMb\nSWM7Sk0aLZvDR9nhek6t4uq+yTWw2qabW91jSl+29Q+a39W3hPMpbRLiFprC\nLGBbdhvb0HzCN8v+6Nt+0j/uMLT//6+I1dOXBH4/NuRvxU6U9vHVnr19nbXD\nzQk4bDTrGSu1N+qSEnurU6OrDr4Avesxuq7BppBFBBGkggU4YSylnGdYquTj\njJ01\r\n=NMdY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ceaac97d295d5d50e71137ff6d4b390630570b8c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.3ee488f1c.0","@material/base":"7.0.0-canary.3ee488f1c.0","@material/shape":"7.0.0-canary.3ee488f1c.0","@material/theme":"7.0.0-canary.3ee488f1c.0","@material/ripple":"7.0.0-canary.3ee488f1c.0","@material/animation":"7.0.0-canary.3ee488f1c.0","@material/elevation":"7.0.0-canary.3ee488f1c.0","@material/typography":"7.0.0-canary.3ee488f1c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.3ee488f1c.0_1591714476183_0.09185285021037148","host":"s3://npm-registry-packages"}},"7.0.0-canary.b83d720ee.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.b83d720ee.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.b83d720ee.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"174ed404a1b6f1a6809a8998c44866419c045b2c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.b83d720ee.0.tgz","fileCount":45,"integrity":"sha512-lvyVKYUFzqXLRKIGLsBVsNgnGrGmIQ1BwUbhJqFNNsXUUJEOXSTa/iL7dXyxAiM5V6+/gfzSUlwUmopjEy0yhw==","signatures":[{"sig":"MEYCIQCgGmZi43FakTJN81jfv6jHsU/2CP1+S85At6yulGtNOgIhAPq0ubnKo6XkCHQDJNhHRJKxzVRV0MtJ0gNHEupHODw4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe38ZfCRA9TVsSAnZWagAAZAEP/Auyzq3u97+5kx716n2r\nDkq4DFnQ6T6KM3ii+z/5yv/CBkqB6iIXq2+KsIwsSIA13kRbfAUsf3kY63ZK\nM2dmNwab5ATeDojaNK/uSoaRGDcvX0hwH7uvO5UoQn3MM8aQKoL0jvGFCSw8\n1CSgMufKplXPrM26gjsdIgr0vusv0TfUPNQCZGjv1f4IFx6CME5co/bWycUR\njjG3fdL34XApkW/OTj9sJJUGPxv8NfgmQFc3/80gQvfEBXkmSYKQvh62ux68\nt8q1YCAAkKQxLZgpHrd0Ak3v6W2lX7hHnDDbVEWDJ50ZgmyDr4paUnbJjpEo\n3zrcOrirMUcsqntYr04+Mh/mOm254v7kCoEthbff24EzbIEM7yZ62pPGE2RD\naESky2SIHlmxTqYlTELpEqNX3xh7V5dekKkd1Bxkgb0OHMVpk0eo9h86rCXo\nWM+lbPEasf7jXWMCIFL+vK+jD3X70KshcALjdH1L3cl4xSitZMcvG7ET+iM4\nU9r01sI2+AsnoOk5xhSQhwy2ZL49LhrlUzt2NlJz2qo/v246eF3nszoOzGvl\n6yv48NyTxsLRHLkueMDfWnXAcZ+4/U09OJ0mHCAoLovOETqVYVB1YsHyjSue\nBtJNyRaeVv93m4rWC6gT2Slpqoj8+eF69lI3rz5CNghBh3W7xmaDVGoEWgfk\nRRTC\r\n=2OMD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3e998e476c86bc89c3bb626240ddd068529062aa","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.b83d720ee.0","@material/base":"7.0.0-canary.b83d720ee.0","@material/shape":"7.0.0-canary.b83d720ee.0","@material/theme":"7.0.0-canary.b83d720ee.0","@material/ripple":"7.0.0-canary.b83d720ee.0","@material/animation":"7.0.0-canary.b83d720ee.0","@material/elevation":"7.0.0-canary.b83d720ee.0","@material/typography":"7.0.0-canary.b83d720ee.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.b83d720ee.0_1591723614828_0.4468496648300928","host":"s3://npm-registry-packages"}},"7.0.0-canary.afb1c11a9.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.afb1c11a9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.afb1c11a9.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d82cdd6b954c3d22d95f8c7d9225d109bbc82b5e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.afb1c11a9.0.tgz","fileCount":45,"integrity":"sha512-JgCnn/KW52SEPLz3SEQvdxreC+CIEPG2Cf7PtGydjpanFss5xaz6ZQqZGRZSwRIylaIdfB8JyTAXTOWw3qhlzA==","signatures":[{"sig":"MEQCIBTfCyQwUqObofAb/M6Wh4jybx/3m79EyZaNkJnXcAERAiBQfhqv4eSmxOG0Rb4y6bKgbsDN+5+YqJGl3NH8cgahiw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3+5GCRA9TVsSAnZWagAA5y0P+wTNmc9uMwtUiRKm3mZl\nbppInREkKHJZ6JA/BoSOkgCeFSwwoo1vlFXwV0RCI/QlTMQveufKObw8RBe5\nzz5bTYgLZQzVQl2NC8XpFoCWfx7Ow0M+6keFsisyUZddEiZq78A5m8aaphhZ\n3l56rKLD8zemQ+1KJahIX30r7mDHbX1LyhvT8nmfzvCqI09p9/mYSizcvZq3\n7Fre879Y/9SD9iUZV+DR1/P2stxCJSK4LmflATpZpEK7pJUjoG7dCYlwyOoU\nEpSeT1bOgaVfqrvSO5BQR9YbxfJ7P2ozWiykhuhAQk07c0Vr76F9DSlqFqRl\nzhYo2rYK9kops0tSSWuX6s8E7yh/SL9aTTET51CYU893MjhiuQQSlDcz0+bI\nZdaCaOeKJJkjXCKnR8PlXlmm/OZi272wDIsY2GbmSWy9lA1Yo3yFbAYnB6Vc\n3IzOgkR/CNuQaAL2zeYwUv7HpaGbwMW4YNwU7fshqmwAocYejd593ed7MPvO\nqWusyFbIWYlnA46UkBnKKywjlOH5nLZVkMHKMTkfOBX3+264r1v2cwvD62hF\naRWVxeZoKBDxzt4pO0tQJbsRsLU5grYYU98C7sER2kh9q3GkrLcyJi1olmVK\n+g/gzM4CIZpmZrG8iZN73T8hFMki0iVcI/xDVe5ke0znZv6Vl4VnMCHkFn/l\nt1PC\r\n=75Jf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"893f09ebba8aeae1b012971b66ce3c77c410b823","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.afb1c11a9.0","@material/base":"7.0.0-canary.afb1c11a9.0","@material/shape":"7.0.0-canary.afb1c11a9.0","@material/theme":"7.0.0-canary.afb1c11a9.0","@material/ripple":"7.0.0-canary.afb1c11a9.0","@material/animation":"7.0.0-canary.afb1c11a9.0","@material/elevation":"7.0.0-canary.afb1c11a9.0","@material/typography":"7.0.0-canary.afb1c11a9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.afb1c11a9.0_1591733829719_0.6340243740924223","host":"s3://npm-registry-packages"}},"7.0.0-canary.39e6f71e2.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.39e6f71e2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.39e6f71e2.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c019d0820308bcb9760a5315fe782ce5d20143a3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.39e6f71e2.0.tgz","fileCount":45,"integrity":"sha512-Pg0RlMRzIUEHyIsGl6Y1kKXte+jsvPE0qjgkntADqiD0xSlR1VZBMDuo0sLwZbTdp2iJI10d3xKS+RtYTmAdvA==","signatures":[{"sig":"MEYCIQD+eps3GoyYcvZci9S53RmuWQECAYJDlQCmuqG+ZhnW5wIhAPqkSA1AXA2nkICze1S1FRSmvlVe+U8h78KjdpD+S6vJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4B3oCRA9TVsSAnZWagAA3xQP/jSzV1iGsDec1xeWLmhI\n72lwo6gytkItUgr2rSrcIx2wfxmU1dMyyJr3fdDbo2ssZQf1TqfDOlQMYf3j\ngatBgJHG38i/sR2xYLcIKxIYbFcnFtZP2IYyGOfqIgbluY3sWdY4i9L3w5ZT\nUd8q8xiHcTp84ughwb5Q/HfIy7XDRXN1nHCQOpPceTJjYGrKS8pp5LtbIo9G\no5/KweZX5JZW6bXmLzhkIDWalMm6hTA89ONwwSaQsLYcEDoxLzxt/AGF6xM/\n0MEuip7X63kRhCHu1AV4M/6nqjgl1YIQeH5zYuGCYyoDVhchi9Ifd4TShQlL\nHzG09UVqNEe66G4v5FDkdg6NY4XoeF6hfSTygqdXxYKzvj0dRol3PQxr2B7S\nIGBED8HXzCFwE5+0moAc/CUYSvcOApa+sh/9rzpvB+yanpLcoU3FWEvooJG3\n5U2VXaar0Cl2+ianFqToeEP0N2R7ZpmmzePgp6uDp4V48vIUOSVejd5KSXY2\n7XwcGFbXcwdQ4xiXRN1yLiNAlL4djEcJBHX95GxChLg+h8kLIew4hpFRuqQX\nnIzosWmgIeXcd8oZmyMzX7/sWAfm1+Qpck7JwU2e0igsXmtcDmXKGO1HDMVO\n4EGcUwFMIiCBUcyXV9N1zu1uGp4OyLCeNVO2of50taxB18Dd0wBam8KEKYYg\n3Ql4\r\n=wqcN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2f7273891cbcb7da6646bdca0ac4c5dc2ceed9b6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.20.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.39e6f71e2.0","@material/base":"7.0.0-canary.39e6f71e2.0","@material/shape":"7.0.0-canary.39e6f71e2.0","@material/theme":"7.0.0-canary.39e6f71e2.0","@material/ripple":"7.0.0-canary.39e6f71e2.0","@material/animation":"7.0.0-canary.39e6f71e2.0","@material/elevation":"7.0.0-canary.39e6f71e2.0","@material/typography":"7.0.0-canary.39e6f71e2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.39e6f71e2.0_1591746024150_0.18741628784742814","host":"s3://npm-registry-packages"}},"7.0.0-canary.d4c66dc7d.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.d4c66dc7d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.d4c66dc7d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2b8d76f8ad374c3d308ba6991a1935a23600fec8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.d4c66dc7d.0.tgz","fileCount":45,"integrity":"sha512-R557FEmzhraSUNGsUzIVo+HaBsQcWbgJ3e4b7KdG6mWmXmgR/VVq/DutxvKft9kM8Ag+jKD3EJagOBZbtyUuaw==","signatures":[{"sig":"MEQCIA+c4oVvAvRBI3w6erECE1G/YGBZKU7RIePt5GWaY8nnAiBZd3gJnDg6nTfafOjb6zUfzusLMjrJvUaoq4p/A6KBcQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4m4qCRA9TVsSAnZWagAAgkwP/iXGvBZHqozX1iSRj51h\naOZATafHVIxZOZuvBGyY8C/Lsei8IRBzhWe3t64BMa3QzOMMb12GDUuBkmfn\nJLDHdbE45ioD4cjft8kGG1qL+BszWhRhgAGIFtsgkTrKoX3sPEvhWKAKQLAg\nRvQbIOfk/Drjq+jhTmW9KVD6IrqED7nldWObdnhvaYCwkpVhfXPW+RsfwEhM\n/B9EDnUcNKkgbxHLSoDvzNusfgGoTDxb4J9Ef6nZn5UhK5P7jLdqoTqyHzX8\nYY3iSZiLbZY/t434zt+ACK6JzqmLxX9iYH8/CEXF4wLm6iEQ00FsyJnDP9dz\nDO/Xu5RZ5O3eJ7OId3NyfUsNWjFsXsCVo0S0tdClK/7e/t91YqMa29sOGBdt\nxo7cOs3LuNXhU8VZq7caW+YJL6DjYETCfWZ5cMAcJvMNxTeadwuKYZNv33Ob\nnafatMzHutjkkEw8C7rJI+HECyyGqeNxRzwKF09plpAG4LJm39TMUiX5s7f2\nchibisSjMdV8OZvHICd9wF3eMk9B+SB8iTJjzWzlPjgEvYIi9TAj0T9TmcBx\nlHFnnYp/tm6SFJZFA8hDdXMC2n/UjBiOagg5i0DoYQrp86gTJ7cePiSesuUX\nb0Nibg3yC0+v3SWot0JHRmoolpkRUu/NptvWALUY1UbHFdOwYcTyiFDfjeEa\nYs+H\r\n=2Izh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5964d9e6836962528334c54ef81ac4cf4898392a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.d4c66dc7d.0","@material/base":"7.0.0-canary.d4c66dc7d.0","@material/shape":"7.0.0-canary.d4c66dc7d.0","@material/theme":"7.0.0-canary.d4c66dc7d.0","@material/ripple":"7.0.0-canary.d4c66dc7d.0","@material/animation":"7.0.0-canary.d4c66dc7d.0","@material/elevation":"7.0.0-canary.d4c66dc7d.0","@material/typography":"7.0.0-canary.d4c66dc7d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.d4c66dc7d.0_1591897641927_0.6663010134454017","host":"s3://npm-registry-packages"}},"7.0.0-canary.be4a19f9f.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.be4a19f9f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.be4a19f9f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ed603add1d250b2b3820775722267a7cbd34f4ca","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.be4a19f9f.0.tgz","fileCount":45,"integrity":"sha512-gq1IINxXROlYUpild59WDa2F8RJB66FBFvi/4ZF+bRod3g7C9cQ//83WXqhy+vwwWgOJiXWGS2ldRkQGltvWyw==","signatures":[{"sig":"MEQCIBQuvRkKagRFIgNlDWUxC9zQLN2UJY+NPAD1YRsOO8X3AiBgRmi1obWTSrwIJ0MeXlk+ictS9LMoBfm7NfEsxwucEQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4xwDCRA9TVsSAnZWagAAquUP/2xs5x1J0VvZQBpSi1DT\nZ7vGoovpr25K5QZCmjZT5sJ6rNH0WFKBDLwWijdG1YimDjFiRvXQnhcjzZI4\nrOln3Va0Sxirbuzp7QTjx8txXX28ONDDgqzy05Co8c8HoRrgNMYcN1dBDy+9\nWaiRSAIBm42YSZ5iMvtjdVWh8IdtxCKyxTv6DyufayN/hlc2h//zZtTTvM4P\nv8DxRDkKc7dSD2lpKG3/z4PkHTgxC3vkq8oKNBhA9eV6sIsI6kQCIzwbazwe\nrqYXiCAyiKyX8m9LRM7PJTou/gZe+3kLHyzXrUqsgngO6zie643++ssiMgmB\nyarij55eFaZT90r88HEil3QPpD5qYnedLj1RDgDkJXLpEId0nd9fKEVBG/89\nzxrNt08gO//CHAvYCf3urEfWMBcwI7fUooNrEAUkcClLukPZvmRHxJl16GP8\ncuq5syJnbi3NXoxSqfz2lRDxu9m7Xvdl7hig5V1oi2IwtBInohQ3O3y1Dq1X\nKayJ4ktvOdxCzv8sw4nalni5au/qtmguPZ6ycsq/TRIehZLfgUMlv4xzeUx3\n5TqjTfOTyMmhZQwz9NK5UGV0QHA75gQqP9f3Ydc+5ejzlMS6u4USnVTOEAEV\n26RemdBBJQx1a8LRR+as1SMAfufk5DziUMgJAI4sgCM1NW2cz3Z/j+7UaHlE\nrWNx\r\n=YBaS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d7a0b89cd18efc7fec60e96de627e59883e3657c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.be4a19f9f.0","@material/base":"7.0.0-canary.be4a19f9f.0","@material/shape":"7.0.0-canary.be4a19f9f.0","@material/theme":"7.0.0-canary.be4a19f9f.0","@material/ripple":"7.0.0-canary.be4a19f9f.0","@material/animation":"7.0.0-canary.be4a19f9f.0","@material/elevation":"7.0.0-canary.be4a19f9f.0","@material/typography":"7.0.0-canary.be4a19f9f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.be4a19f9f.0_1591942147232_0.6066772722654867","host":"s3://npm-registry-packages"}},"7.0.0-canary.a6ac8f629.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.a6ac8f629.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.a6ac8f629.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3248c6623bbaf63abcf25f5445d531f1d8834647","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.a6ac8f629.0.tgz","fileCount":45,"integrity":"sha512-z8QLOuJwj5HdA1kGAEw6L1LFrkoAl6/Xl5soGxayf8ZXgino3ROFyB87VGe1DNKe7d4UIFxcl8JhEGVXuELX5g==","signatures":[{"sig":"MEUCIDazU8km9c9b97+c3phPJYSnxZxaKvdH1qMWXGBrDkyPAiEA7A9nGvW0DiwhCGyiUza+nJw5J1bt5dPEImxMDabhAR8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe5+isCRA9TVsSAnZWagAArooP/AoUDtrmAV3bCckMTJc5\nBji+7vM0LhPoC5quf9oOjUX5Ss5Sfk/hTUkH9EhlzWks3sW1RiLXto4zwFg7\nSgFoMzLnDb07RnxDqCyTa7f+x+IJkgtz0KTj39B2VVbpQKcAWDxzFScIizQg\n9Icm80pCZrKL643Z4a2wGVKoTpUeteoVdI38MHFZ8HZ2WmNO4CsIWujmT+OI\nY+hDstZ0u0bXhDzVCvCze8tQGrOjqfvgTNw+9dhqPQ7j9d4yqoFHyaY6LAZi\ny6RDh2Zvs6XU8IV7OLDHF1EG1FtdN0HBQNLNdfg9FlQa/u8HPKV2FclhT9iu\ngWSsM/vju3DCrtDvitzDmrD2a5dID8SA+8OWLHDs8YQ7lSPxSzzZNzpJWByZ\ntkYXqul0ig0PefmaGKUIgIAcxdLU6SijseZvJKEAJkEMFmLtMxBswmNw0Jba\ns8lg6Xw1kWJPYus1ZBaUgPyOckBkvUVkzykp2BvMMSGuHZWeUeWgKCvcIJjT\nNIdfY6EHrWPpjTO8Sot4PikryfU1xeYsOhkFvrLso8tXFvz/1x9UYDZpCcIA\nFM+gHJJdk7cd6MuU1c3lfRjQ17fyA1FlazICgDfUTdIVgOTLpo0YWVaI1U5L\n7sphJ3UgWiXDfvxOmUotF4cXZF+aKMUrE4NbOxJz9ylpFhlEFfWlAPhWYTYh\n3YG9\r\n=OAMP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"30d2dc59ec3530f0f21233e5b8e93c990a4a2776","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.a6ac8f629.0","@material/base":"7.0.0-canary.a6ac8f629.0","@material/shape":"7.0.0-canary.a6ac8f629.0","@material/theme":"7.0.0-canary.a6ac8f629.0","@material/ripple":"7.0.0-canary.a6ac8f629.0","@material/animation":"7.0.0-canary.a6ac8f629.0","@material/elevation":"7.0.0-canary.a6ac8f629.0","@material/typography":"7.0.0-canary.a6ac8f629.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.a6ac8f629.0_1592256684183_0.1304826409902149","host":"s3://npm-registry-packages"}},"7.0.0-canary.9833dc287.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.9833dc287.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.9833dc287.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"38df191893a155855d1a7bb8f05dba022094a541","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.9833dc287.0.tgz","fileCount":45,"integrity":"sha512-NhxwmsTEPJC1Je5WybAY917TweU9e6guv1oqTfLZnDG5BGuYxp6an0I39toV6dsOWAXYFYOSniZdGSkL1D01sw==","signatures":[{"sig":"MEQCIHFQWbLvRuHuq7Hxt2gc/c7bLN7snbSSh7qoyJNetFrfAiB2O1+7/P/VR1fckFRNWRK0rxFUa6XshLoPiayT586X4Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6SJoCRA9TVsSAnZWagAAGYAP/0sHE2Jd+kCHivr03yRO\npOWg9c2vub4fTCvoUOawihuemFHEGTwivg3ZWH1HQzzPE20KgH3SeR964Dgk\ngjPbbbRB1323IytL5Rv45mFboLnjEMNdydX6VSzIA3ZC0SR1cL4MN44801BW\ntN/ADoEFmQVGUgXJsL7eQK1beEPnXUlXt7nUVVDfAGwxU18kHwOGOfb1pnpj\nE/hBTEv4L5FLGyNquGRL3FNz7Q43oLFyUaoq5SkfshiIIXI3FZlzO1Xvg6gs\n03+HlN+kcjQ/2/rkSGs8lw6fui17coUPdu+ge6fp/eyUeuQ7OJV0+N2pW2xN\n8dft3TL6GC3avleYNaTiUv0we85+j5XAFcBn9Bgx0a9O0Y+c0QU6cHhv2oCt\nIstSCG8GcNASidb1F1Zhly36Em2QsXhalgvWArm9/cVHR2eQb7dvf7vXllFp\nGilrNYlDVXW3CWDdVkTKyWeS5Lq5PXeTDesX+hNXAhVpbiDv/MoaMNb4/e4Y\npeIm+23yIAGA+Bsu92gQ79XA0s8V2H5FI7oYniP4HzTHkFUf7zZDA8jKpFUY\nu9aqkzelaaAPAcAZppUyAcfECjVygk2/SRyOrfOepq/3ikdHzUwpZyogiWYN\nXsqm++ay6117VpOr0EtutJYIwJL9oyLwWM5NyvwjHWR22zxmze8hQAfIhHv2\n1Qal\r\n=ZXlC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6852334e45da838c4140c1aadc974a39d80a83b3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.9833dc287.0","@material/base":"7.0.0-canary.9833dc287.0","@material/shape":"7.0.0-canary.9833dc287.0","@material/theme":"7.0.0-canary.9833dc287.0","@material/ripple":"7.0.0-canary.9833dc287.0","@material/animation":"7.0.0-canary.9833dc287.0","@material/elevation":"7.0.0-canary.9833dc287.0","@material/typography":"7.0.0-canary.9833dc287.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.9833dc287.0_1592337000418_0.7369700466312823","host":"s3://npm-registry-packages"}},"7.0.0-canary.3aa33998e.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.3aa33998e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.3aa33998e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"15e9fe244e5ccb57bae51cfec3dfc6fd31062b85","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.3aa33998e.0.tgz","fileCount":45,"integrity":"sha512-5yx0yrhbNPC9xidD/Fl9zZHCxxYK3aQd9RTLiIUFKkd/4kCpwfhasVK1tBDUFroDeaGbJ2YPs3f0PSHM0ezVag==","signatures":[{"sig":"MEQCIDxxyVVXtHEnqq/NnelYU96FEDzDrgYqg+/1JfFyZwaOAiABXJuEsHKKSm/7CpDqgtWs02qrp4yP9mdRRZuWeFBKJw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6SnvCRA9TVsSAnZWagAA3lcP/1bzMM5jDZOxQJoxOjhw\ne3NVl6D0lAv4RuXoJ8fL+8+/IOPGRf6LFs+/IZ7tb2Q5+3Mo3LhlOJDX0OtU\nP/h7jhu+PUFb2QaR9/plO4330aPG2DcSg33GmT1fXGlJ0S6We6AvDJhqelDN\ntqJQMRhmh92zc99fWsjg0PMCPtmYHNZIQUGWSQrCvwj6lfnVL6UZAdcaTVjB\nmE14g21cKIvspwJtDQqn6MyLER1ECenWX/2sCI2YmAR85ocJH7jbFlk/wVtU\ntPdtn08+7tzludRmW4jzkHvDYSlkLGazU2gW479hctB3GmQ/EKPaurPlVyPZ\npNN8ZsnroaJNuvLilvIDEY7TJ6h7TBd4bEwTSETvkN3csERJRjqx2gDExVJe\n4xXuxqbVikjzdq9B3qElriGpG6E+Lo+EphPv05oKd0XIPfLLDJeP7Gbsy567\nwUsWHRabr9AVxEEWWGqRXjeDFZlsloM6C6t3wYoSBbDTjU8s+SZkmQIj/y4f\ndBl/BU7xie8j1e4C3AxUCKmOCmnqhc7lfW3R3XqdzulJAkzo2Ku+F/cN3SC9\nyS1weXMHuFLaQEyeMnjRCsRhzd/nHFlPVFTcqVLSCL0N0OPOJYtYQl8svabf\n77S7z3yVj/NyMRZQU0KO3BhZqSMwzGuUmFOnPtTTdbJ9rfrL/XwgHS1IV6Nf\nVevS\r\n=JY83\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"20873613db8172781d25b42fda84ee1fecd88558","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.3aa33998e.0","@material/base":"7.0.0-canary.3aa33998e.0","@material/shape":"7.0.0-canary.3aa33998e.0","@material/theme":"7.0.0-canary.3aa33998e.0","@material/ripple":"7.0.0-canary.3aa33998e.0","@material/animation":"7.0.0-canary.3aa33998e.0","@material/elevation":"7.0.0-canary.3aa33998e.0","@material/typography":"7.0.0-canary.3aa33998e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.3aa33998e.0_1592338927446_0.5397617119856088","host":"s3://npm-registry-packages"}},"7.0.0-canary.d2b54d183.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.d2b54d183.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.d2b54d183.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fe8c75256205f4ae1a5f3dbd3f83d7745e850749","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.d2b54d183.0.tgz","fileCount":45,"integrity":"sha512-a9U/QI/CUw4NyjU0l+zCkFm/kpRAfjjYb74rPFu7vWXH0hUS7K6rQIm+m++LcHz3qsFIexNp28k8iYEPIf2Y6w==","signatures":[{"sig":"MEUCIHlVl7tD4J/lfXLOFdfpZGwShxVYmqZQkAdbnyO5r2kbAiEAnLkFlVqnD4s9Dtg9KTPJ28r0zPKmTGp5kjKb8w9X0Ds=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6sBmCRA9TVsSAnZWagAAhjIP/0W10Cdmpvx3QGJ32Swq\nJ4/gjbJjkB8UvDdKzl/ISH2OhZ40Xetb9FRccK2BqXW3NRXw+B6/fzPL+nls\nTn4kbBWcYE3vodAr0XYubsHNloLpD2qz8YuL1UXp3VIA58GReMpEhPez20JF\nTU6hQ6oQOEYikGu1f1ACY6DcFM9bXjGKfwbw3Nk7M9+IXQu4H3aj967VH+8o\n/JfQ6ZzrwAUKT/LHwTwsNraS5VDJE0UHXgKS1s+kq0A2nloOuhRgqYchgYqv\n/YykRXyD0ZK4amHmnymWXQPegEWPaxn6l4QsFLSe2zgayUUNYpE7GeWTHu0I\nDw/e9kjzSIHOfNY+9rm5hu9LgB2TwZYT9XymiAWEzjfz7psAD9ADtJ370WDJ\nMz5CmLZWs2ngEoHfwwAIAwMPOHTDuVWVDAqKmii6oMj0CZoC9kUUEQ03HLzb\nKWwUY07MzMoxwwxXvNo8hBgb7/p67nSw5kM2cTxzTsVnAIr2OtCucWC5KK5w\n/37dstYKau2Ftmovpe3DX1z/rvRMhwt4KCg3lqST+8MXrqs+431YCSd7ZS72\nwLvkpJBbd6pHhumjKeuZ3pgFw7rSDQEn2s2/+AxT0edkTYkUcFNdsswJ8Hqh\nt2U3RwZpYf1tcXKJDldbIts9XZyUyaaJa0cQnl76b+RUpuXW7KfIB22QCS3u\nYbw8\r\n=7YrF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2941697c8abef0c194a923cf548ee231dc67a2c9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.d2b54d183.0","@material/base":"7.0.0-canary.d2b54d183.0","@material/shape":"7.0.0-canary.d2b54d183.0","@material/theme":"7.0.0-canary.d2b54d183.0","@material/ripple":"7.0.0-canary.d2b54d183.0","@material/animation":"7.0.0-canary.d2b54d183.0","@material/elevation":"7.0.0-canary.d2b54d183.0","@material/typography":"7.0.0-canary.d2b54d183.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.d2b54d183.0_1592442981883_0.8023300623904317","host":"s3://npm-registry-packages"}},"7.0.0-canary.f2a488e95.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.f2a488e95.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.f2a488e95.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"957264e2d80e8ac2f8d08636a952b403398a8024","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.f2a488e95.0.tgz","fileCount":45,"integrity":"sha512-YQozp8pEK5/xESnvNaRwAJRi8s5r++4bgA6s/ldnJsPrKjcRLrGv7uh9G1P3VCI0nxDI8JK98PWPHymoBXdyQg==","signatures":[{"sig":"MEUCIQCpK04fBmmF62N6MkWkPKQW0qUNWwPPvvPtcjk1/cjgegIgZvuVNrINbzb3tOkOiAnZtJkNdWyhOt7/xHVEmzXZljw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe64KdCRA9TVsSAnZWagAACeQP/RhYI1kZMiSO7jpTe77N\nseNBcz8ksChAnyw6rlZcKztk1cGW/QFxkYCf5rbCXdKN78lVRx593dxyS24j\n73xsDC9/U40WOTR0PKLjs7fldHGOzzJDwPmlfVI3KRhmFiskDGe3DzvnOY0H\nbMqX6HTic/6fKAbtae3xuMXd440tfC5afaRzSLdeU5RK02PHBjgr0t4gf802\nyZYdGVUT+mfvA/9Rv/QhLWtbclrDq/mDvp6VvnvEpXqtauUdoFOwKtasFtma\nmsHIuqUmBSCPeygHHiAgRhAda35lvwasKhc847/ZZjKjveMZ8MOlMMuetATg\nh3N+hOXE/fP8McETrcEVxK9dMg5toMGULjnUPEtwc4d3zpEr8EvFAJ9Iitb4\nnBP0WU+0QK0zmE/hmrU00LdsQ1tStBEklKBv/mHU6QKwZQDzGMLtUKzPkNDm\nWaU60Tnv7/EEDpDv6rCHS38Q4YHuGRuLg5k7NEV3AHE3Vr3bD6h2cqTYJLDa\n4ck4W6Rsyw7IbUOGGz+7kwzE4Rlrl56G8F9Dzceb3YylNJaoiuLOGx7hVWEh\n//3Us3wWL+QAlde9Q9ohJZaX+o05niotdIcn5W9LSlkgEWnghd5I80KXVvXe\n07gb4FPGxAKcucsdS4ZA7P1pZRsd4Wtp9/Zuw7XSg4sunD3B5EbopE5h19x2\npiYK\r\n=atY4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bd7f6aafa23ab94aa2f862ece45e1775f1895b88","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.f2a488e95.0","@material/base":"7.0.0-canary.f2a488e95.0","@material/shape":"7.0.0-canary.f2a488e95.0","@material/theme":"7.0.0-canary.f2a488e95.0","@material/ripple":"7.0.0-canary.f2a488e95.0","@material/animation":"7.0.0-canary.f2a488e95.0","@material/elevation":"7.0.0-canary.f2a488e95.0","@material/typography":"7.0.0-canary.f2a488e95.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.f2a488e95.0_1592492700548_0.7478072864020646","host":"s3://npm-registry-packages"}},"7.0.0-canary.bd8d1aafa.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.bd8d1aafa.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.bd8d1aafa.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5c45e6a64f560ec9a327638a59d85610f0540216","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.bd8d1aafa.0.tgz","fileCount":45,"integrity":"sha512-ijILVmWPbBAwt0uMkRCg5tvmybDmPw4hqCnaBUEI+LJ6YTEJM+u6TcZmYRGPhCXSkBwWpai4OMO9/ImKm6EyEA==","signatures":[{"sig":"MEQCIGw1ZgwzOmnilmDaDVpHdHskMW+eC9RUME47otXfkszEAiBDa2alb+Wtk/v4HnPyr8Z/CKOdCjPdzvINlmD0XfKdFA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe64V0CRA9TVsSAnZWagAAxA0P/jMJbN9B1vDou2PTiTMy\nWQ/lG/IeEq1GKQhN7q+4zXUKr2iunxFWQQfiR5w+Zd51++Zqr4D/mGCpdwFd\nu7GwoBgUS79bD74StRV2aSOjv5np8aqoQfOOAduJQZE8A505tWFCHv3PRn+b\n7f27R3bcg/R3uN7jH+pNDUyJ+2eHeI9mRRpM6woGRSvYlZfY3Aoq4cc2hhuP\nMfYn1+zu+PfpJ3QXqGkF9ct3IHeVts62gA9B9iy5Ue1DYez8K0ep6/8z9NzG\nfV9gJ0tm/YfboGuYAaJ7+Nt3ulAei1bQLnfY7scm044kQUeIjzIsDDrk+btp\nXF6q4yZPW2T09nPJ1feRsG0EqiXBKsk0pEM48s2vN8ytl182WnHQpx24FrI7\ndEVeDxW4txoGrf3QxJYE/YSurfKNe2y8tOFw9CD5noVY5g+qS6IYI49kme6X\nQkoHv/2x/PzTkIUmqWk47TkOPcsc9/Ly512cIOP1WVo3osC5ZfHRHoGg7rpN\nmTMXjem5vQGV26I/CVzFXkloYUE0V/h9IdbqiMtNOqaqpohu6MzW8R1+n0hz\not+Tk3YX8uuIoyBKDAqSxhVMArYJivClQW3iuOQ9wc6jadFAd1REWX5RaWIj\nRA8IIfNnBRq+7OwB6EyNbb5Q5rTBtv6Txq7//pJkUS9yMotnEfXd9ovKqRXb\nIXo8\r\n=wK1+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"05dd265c139c96ecaacbac16c7128e4a851b00f4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.bd8d1aafa.0","@material/base":"7.0.0-canary.bd8d1aafa.0","@material/shape":"7.0.0-canary.bd8d1aafa.0","@material/theme":"7.0.0-canary.bd8d1aafa.0","@material/ripple":"7.0.0-canary.bd8d1aafa.0","@material/animation":"7.0.0-canary.bd8d1aafa.0","@material/elevation":"7.0.0-canary.bd8d1aafa.0","@material/typography":"7.0.0-canary.bd8d1aafa.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.bd8d1aafa.0_1592493428481_0.6043634704228762","host":"s3://npm-registry-packages"}},"7.0.0-canary.1321eb968.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.1321eb968.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.1321eb968.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"06613d97f51b86928fbd006111ed495d7a28d810","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.1321eb968.0.tgz","fileCount":45,"integrity":"sha512-FMXQMEssJ64XccY7JKY2vIg1in/PnjCqrd8RxsH1+S5P50nGTAFk+Jk274yV4xNTXh/KJrXPCN77k6u/vbr1LQ==","signatures":[{"sig":"MEYCIQC6VRw1rkUAW/EKMN3TETanJ58IEodny1y1Bdd5uZ/reAIhANUyo5Pj0L5BH2ajZuJJOLynGf2wNwVi3wibVwu1onJ7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7RBeCRA9TVsSAnZWagAABKAQAIjo8oYHcFazgwXWa0g1\nUFiAJgKiFVAID3qI87Hz4lDkpJdHFj3fkU5O3X77n/B3MqwfzfSI2IErxiMV\nT4avXPDg7btY/b3TVo6K/N961MnTRIdtNm9jlaCR7y3+bTps6RNAvkbkWBXm\nNMNVCwGK+2/p/9ds3M4nU6nEr7bTU9SIeHnZWII6N6k0i73IsXPL30dL/lqI\nVsnykZW12gd+iQaCeVQ4e3FhUUjSbKKILbkabu0ymQQ0y/uw+NHLr+zqLFRU\nKX3t6TvPk3yzlCYhhx/56xPDffJpJT88e2lEi7KljMOdWtIsy4p/kzw0JxLO\nSNL3PmwufakJ/WCd3RESYOwbFl/QOLMBHi85fIJOG7o4j5GfRSbcb3tNiyNi\nraMLtfCy7vVzFPOUXn8juBS6XfLYGduu9R/nitLnOARzZVCMNLIWvuIeb3L1\nOhj9086qqyDyLLNc9GHu6DiuxUKGWC30BsY2k8rTL+59lU9TSX2WZKuGEnYh\nmXQ8FBlmv8MF29fYlOIOhMEC0O/YtTgGnEqkAhVqFH3ehJOQoeG3bA7f7GEf\nOEi+DrZA4YJ8m2Z54kXh+ED50P8i5AIM1+0h782OQkdxCBevcxzFwZutk9RZ\nJ+WSlQxKgw2nvVrFOMdfiwimx8sIXyVFu8/AdeZYFk891c9uB2/DDBpxk7Co\nUkWh\r\n=zUUB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"41c074a3370c2ff9b4dd6af27f2403d15cbf2832","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.1321eb968.0","@material/base":"7.0.0-canary.1321eb968.0","@material/shape":"7.0.0-canary.1321eb968.0","@material/theme":"7.0.0-canary.1321eb968.0","@material/ripple":"7.0.0-canary.1321eb968.0","@material/animation":"7.0.0-canary.1321eb968.0","@material/elevation":"7.0.0-canary.1321eb968.0","@material/typography":"7.0.0-canary.1321eb968.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.1321eb968.0_1592594526092_0.9540141683742385","host":"s3://npm-registry-packages"}},"7.0.0-canary.db5cc0382.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.db5cc0382.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.db5cc0382.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8ddc56dbb5eb1968a8d94641f5ecb04982f2cfdd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.db5cc0382.0.tgz","fileCount":45,"integrity":"sha512-ydDXrJdFr6fHWknjJZTvXHkJrjbbY+tQD0YIaNP8VpzHJ/+sVyOHd3uZWlL4S5v0hVPBUou6YYZ/dmNTfPvmDA==","signatures":[{"sig":"MEUCIFJkI23ydYv3QAkxEVVhFrTA6BWXKlwzpt0Cp5rjzGhrAiEAib1dJxU492e1y9AAS2KPmy+uk5ahevy4mz04vShEOSA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7RHcCRA9TVsSAnZWagAAIeMP/iL2HThqMih7vFqUh1cK\nY3RPmTORYzFBxw70EdRavqPrUDj15nHQL3Kc85ax7SRu7PRege7OuB6slH2N\nI59farrAjl4w8SWbFTDN35CY60m5Oq610ve0Zb5LuwDofvy6LdU39mjHl8oO\nFhUmq5g5yW9SqWVYbU5uYb3Dw3DMtr/TVcz27VeBmNxe+ldLo5JE9hcMpnJi\nPge86UnYPTXdNtDvD/lCAX9AbkagFmau/lCqTZ/wKUbROVhGuPViu1CIR9tf\nq61+smGUYSHfqjSm52yiKj23JvFO7VKFnMCycm1KAPMEu5NSYUpnYz6xGo0m\nZQqIm2TY6eal0xYQI18ovqRfO1sjijGJIXDOTGS5Sx8uajIODEgBpZMw2CT3\nHUmzjUq3pzqvNzXkv5Z32PLyskRktMk5GrK0uLe9RaqHlac2Zz0tn96/WO4L\nqJ+LO5gFYbKldcaozz5DFXedsK+3lYjLWenu88bQ+1B5qRQXMqGtLJTPWeZW\n7w5n2BSpfQAhAm+8ohbJGA+w5ID+4Q7Y9d5nI5Ait3Qi65sN8pvkgtfOno+y\nxZHk8nD7PO3KAPhFBI9LwE4LtN/NnNZaZyBwDV+CuZKsq3hbVkdCfsVfP4rY\nQo+qxaE/FbaV3nDhUUAntSmomlJ0z+T9funA6UV25OWjKMJzdqN+voTvh4b2\nBNul\r\n=KeeP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"698cb6184d0d6e6823147f7d050c39efe9b8e3b2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.db5cc0382.0","@material/base":"7.0.0-canary.db5cc0382.0","@material/shape":"7.0.0-canary.db5cc0382.0","@material/theme":"7.0.0-canary.db5cc0382.0","@material/ripple":"7.0.0-canary.db5cc0382.0","@material/animation":"7.0.0-canary.db5cc0382.0","@material/elevation":"7.0.0-canary.db5cc0382.0","@material/typography":"7.0.0-canary.db5cc0382.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.db5cc0382.0_1592594907763_0.1842182755440107","host":"s3://npm-registry-packages"}},"7.0.0-canary.6ac9bf031.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.6ac9bf031.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.6ac9bf031.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9f1d7b10fcebb99fe48adafde0b06b5950312727","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.6ac9bf031.0.tgz","fileCount":45,"integrity":"sha512-jGBHXRVwi93vISkLc3mFi0HyN16qxnYQ/5OLYtV6w5geBCMJClqgCDI54gznq169Tov/hbP4LOkbfP7W++HYAg==","signatures":[{"sig":"MEUCIGQjeFPinM5Ln4muCBMGh4p87/E8gDtF/cJF2XQAm9KFAiEAvHYPwIhhbSUvazTEFo9VJdkKXeNrPDh8UiCQsq+Xq3k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7RatCRA9TVsSAnZWagAA24kQAJYohh9iWr5YcbgKBBQz\nbL3vf/LA5jLPb3KHaPLcqAka5XT8ZSmbKfzT4+5kd92M141E/xE1k7BkY8Sf\nvkZ2xvVLF9xljutj/P25arGr/ACj6hxv6XCUWBBNyZftC63eDOHV1RdeeM1d\ngr9WSxjBdcldvnhWSKOoRjvemQAyWGMB3eFB0b9ipuXOwmvlyFY5PGQmF/nf\nZSjKIUhOaby4Ce8MV8QATS3RaHABNlHM8TylEAxcQj0MYiJFrJp19JtHuplN\n70W9nuGvuyDs1+dKo3L3YDdTbLggSB2YEuaHRCJiKkNOuK8jyyfLDThebkqM\nkvcE7pvEFrnbb4VWgdmILmI6EYLVlvLT5/5qc4+YuXQFaQHGwoGyOS3tVT/v\nQ06beJCp2LeLbGn2sAZsBkH5T8TbTeovFa5ikpxbZAVb/f6IrvkcZBv5YOKA\n5bMUM5NnrCZqLIAX8NZHPnm4H7MR4IaYv9gEE8KRRefnC6Qj7lLeLb+ANyLt\nSQUYzSMKxcm4eyBfy003ZowR1EKcUDJBiav1shTCZCeGzZDCbBTtmv61F0yi\nmQrw531eapk1CF0/s7bS5eAl/JeCE+3KwzhZgJBW4ef54wNwUpkATdX/ylFV\nFHsx7QUklGN+oxD1AXPsEORAxVP2VPLKCZUrupStJKKoEQpahjcSFUPTWMI4\nyGim\r\n=SnfA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e80b52100d3a9ae7653579d78250cf18752ea92f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.6ac9bf031.0","@material/base":"7.0.0-canary.6ac9bf031.0","@material/shape":"7.0.0-canary.6ac9bf031.0","@material/theme":"7.0.0-canary.6ac9bf031.0","@material/ripple":"7.0.0-canary.6ac9bf031.0","@material/animation":"7.0.0-canary.6ac9bf031.0","@material/elevation":"7.0.0-canary.6ac9bf031.0","@material/typography":"7.0.0-canary.6ac9bf031.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.6ac9bf031.0_1592596140921_0.8156650461502359","host":"s3://npm-registry-packages"}},"7.0.0-canary.c21b5c367.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.c21b5c367.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.c21b5c367.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"af6ccdc73f4df3240ce13a60af29614620a68957","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.c21b5c367.0.tgz","fileCount":45,"integrity":"sha512-wsCxENq7M9QycRNgaFpF9yjWrKOLNJ7B/cZNqYRBltQX6hb3u6ZFk8gw1qYtUKBBAd61LHpcNZJBz/1aw2N8LA==","signatures":[{"sig":"MEUCIEJoqMV1EPPU+KNJlXqvIJYtQLdMdkq1gWNjVdRirzhuAiEAnvGZZfLdEgw8uVpXoNJhD87lRtIJ/4waoF1qDJbRrlY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7RvvCRA9TVsSAnZWagAAOb4P/Ann10iLo7KBYgaYCtEz\nFnrDAJrzju6jaOdfSWPI7epCSzNPXTOVNmoKnoul1btNwBAjts+4DZ3ZKg49\neOjNGkq14Hyr6MkF0N43zLGDyEU7KxM68ozBvUtnEUS2SrzFEywXutlrnkmM\nByblwx1Qj8H6hIdNrzLnwk/Z9tatmD/ScJATsxCkHohiGn/mCLDCDHN6QHKD\noRp2bjjcr2CMyv/V/dneCrNayt/G7lRZ61C/lvc07n834SaaShWHpJe+KQwi\nO5MmlvY5kpAZg6it0oocsMIhk63w4RCeIRE4SeYEqasTVwKgLxW89ip79E04\nAoNjfw4+Fh1i2a42Rkbih6F6WOsY/0q+OixgQJkAbPFvvvw/UYFY68mhfx0U\nGrb00Igj4puf2bZo5bgHpE4pG5wQYuxHGX67sCSzN0Wj9owgc7L56PUlsHDl\ny8F+vAWHKfHgg3bX6T77UPbfWGDo5n+wzndGrw7Cwvv1I9fKWd3JZ3MNY6Bm\njEjWTT132G2p1GcSdeQE5j3JRQQD+oH0NSNiwKbMvcyXWRREDPBgLh5AJZQ4\nDtSyP7Cazq3fQhMVYYWHysVFnfZz2qlCPL9dydyijFx0l2Ph3g++tfF/dLFy\nmMUyXMnBK4bKPGdmHXHJ9KfIALW3htWRhixRaRbqQOPPoqODC8zduYCJE0hZ\n6pUT\r\n=9yVQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"08c734c10ebecdcec22cb27e38dd9d3941fbe847","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.c21b5c367.0","@material/base":"7.0.0-canary.c21b5c367.0","@material/shape":"7.0.0-canary.c21b5c367.0","@material/theme":"7.0.0-canary.c21b5c367.0","@material/ripple":"7.0.0-canary.c21b5c367.0","@material/animation":"7.0.0-canary.c21b5c367.0","@material/elevation":"7.0.0-canary.c21b5c367.0","@material/typography":"7.0.0-canary.c21b5c367.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.c21b5c367.0_1592597487483_0.7240421204044651","host":"s3://npm-registry-packages"}},"7.0.0-canary.bfdd7fd39.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.bfdd7fd39.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.bfdd7fd39.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4e251c0a2167db5145993095d57fd130fac78c51","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.bfdd7fd39.0.tgz","fileCount":45,"integrity":"sha512-k9WxRX7h+sHH4ejM8IPO7J/AvGsY6A1QPfVI3YLYtE3z3+oDsouxLw4r985IK/TC2RBHQObgXzEOsGv3bzea0Q==","signatures":[{"sig":"MEUCIEbbmAFwMm7JwJeQPsb1eT/9SdmBbMpuugcj7KxmQLSeAiEAwDAW7DyIA0HMllgy9+MLnFsLB1Kv6NOu0Tf0t6u/Pqg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7R4XCRA9TVsSAnZWagAAg8IP/0whRRF1GPWYmiV87o0l\nuf9eRwqH1+7AHoo7f/Un17tZAfIEIFkskLdPviLhkjIuwThh4D4ErB78T9dq\nvE3tAkfnsScf5NlG3MlPyQo2MZlwfdQ1hzAsN5XNP+ntmJxkvPK8gISpY3PO\nmSTDyuL3fI5QXAQVruZDbsGG6zLG2Hjy8Z6fkX3ETn750xiRI3QAEyA6TBRh\n1LE3//6A5u7lax31jdAesgberv3rRPv/v9UVGJw38kh5kFNniJnSpEDf49+H\ndxaBTlQFUm/jZ7lELJE3eWBuf7Lb3ZaZGUwzUJ+pPz85FCIOEyUfkaclPoAp\nCuTwkKhLwH4NQLNxydpMkmtskpRK29kK5T8ePS46lRvW9ZYvezhDqP8+r5rK\nBv3BVBpNy97px9hrj/++svEqmlMTM7q836NkD0WFoS67pCLku6IhDD8D/7v3\nBYuvwyvyqMNMgHSKPycKYXsGzlUmWbevDSXw0dlJwWuiSUpxPUp9Oxl8gnN9\nbeLIBjae90QDnwQAUaXc42++Z9y1dkRIqS5ANwmFoNSany4Md9C20CQwsNKG\nKRBs3Q9buY75d08icq5mwk8zQpdVsA4Ad+TutCAEBgDvUUXq3v5xOgCyoykv\nTq+7eunn4tboZolCnnIUyZ/TmdtxqWCL5M7unxy8g+Bm01NuQewKZqWTSZyO\nQD6+\r\n=0mgP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b9b865bcb7a8ad91c21f4b1cc433f6a49dc627a2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.bfdd7fd39.0","@material/base":"7.0.0-canary.bfdd7fd39.0","@material/shape":"7.0.0-canary.bfdd7fd39.0","@material/theme":"7.0.0-canary.bfdd7fd39.0","@material/ripple":"7.0.0-canary.bfdd7fd39.0","@material/animation":"7.0.0-canary.bfdd7fd39.0","@material/elevation":"7.0.0-canary.bfdd7fd39.0","@material/typography":"7.0.0-canary.bfdd7fd39.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.bfdd7fd39.0_1592598038776_0.10572358906463064","host":"s3://npm-registry-packages"}},"7.0.0-canary.10b505785.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.10b505785.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.10b505785.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fd2146e4f643ef82f1a24bc8b0db4b55a02f50be","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.10b505785.0.tgz","fileCount":45,"integrity":"sha512-EtEU7aZH5K5ADwTq+qd7ljKqHOImZAseKhx7IRXQseTmHDly+Wxgxu2Qnfkfc2Kh8WMCxdILYBpsbPnpcOJSmA==","signatures":[{"sig":"MEYCIQD7CVEyyhkb9WMkWS6OSNkkD3kXJGtmaNTmzXS44KWJcAIhAJeCUcRKfWrcQZfbBLJE+VLdHuc5i2WErnyR8+CdZZWP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7R5uCRA9TVsSAnZWagAAZW0QAKJc61DCbW06UhLPIzjH\nr42UU7BwBxGtKmr7/kMv09UpAxgQUjOKefSb6Y72lNgPzQ1VrM900bSfoy9t\n4Evw4093zBe3on+ALFyJh/gHzrukxYyKEss4ihaPL8RuiY5xuFzPWYOVqKuN\nB+3LaSOFQLs7EFIQShDdHj1AfX/+D7maflBSHXiooGlqfRRrasxh5Pam9Sz1\nPHmxDHclGbdN518jN7zUeAsaAwaIIPO07ISdFVvGW488WywvpLukjLOiS6Dh\ntZ9+e5UDjbIQrzvqvDzOkL+EgRJeu8WfzPLUzgSjDVSjxBXaFuOpXGyVz7sc\nkapBx8lBbs55NIca2qWUKjQdCTrI9PcoEny8t2ZP/IURHocs96fRjjLfzIn0\nvWA0amAPhoHbuNcR7fj+HakDU0s8MiM6HrZfkBK3FnlmJDfzz6ION6f3Jtcy\nWHOn+XrEvMhXbGk4cU39tSae/COh6fIrmNeP9yvkQI89SMy3qGyiCmBtovVt\nFGHz/ZY1nXms0wEjbqSRtaMmsh/TLhU6IvwIIM46RRBpH1FVhIE5bE6wdGCy\noEaK1ITnYHScgD7hHEfWS6XBnGN/bS8YxfuaNC98Nw6BKgTe7GUhT3GXc1GL\nAJaxIyuD0+JL/YKSIXgbyuQoVNScTsoFXxIzkeS2pZVhAXtTbgc98N6kXPJ6\nBSPf\r\n=yTKs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ed5923edcb43bfccd9d40cf56cd605eeaab00d1c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.10b505785.0","@material/base":"7.0.0-canary.10b505785.0","@material/shape":"7.0.0-canary.10b505785.0","@material/theme":"7.0.0-canary.10b505785.0","@material/ripple":"7.0.0-canary.10b505785.0","@material/animation":"7.0.0-canary.10b505785.0","@material/elevation":"7.0.0-canary.10b505785.0","@material/typography":"7.0.0-canary.10b505785.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.10b505785.0_1592598126070_0.19118094008344055","host":"s3://npm-registry-packages"}},"7.0.0-canary.6483d3f44.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.6483d3f44.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.6483d3f44.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a3c883dbfd3a3e75e6c12b8ddf97d5b47a54ca57","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.6483d3f44.0.tgz","fileCount":45,"integrity":"sha512-08e/lKgsIBqdaGX2KdswVx4MMR6+xY0cORaSqtwwG2yx2u+19y34AJHTrUgooV6pq9JAFBBvm9eGS6+I7HkIBg==","signatures":[{"sig":"MEQCIDlZgcKziRLNbOEfPYTo5WK+hQBx1MVh1PVuqEuzPUhKAiB98xnZLzsp6zmsM0ywgyTYHt3aEiFN1GNge9q4MQOfjA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7SI6CRA9TVsSAnZWagAA/rQP/iQe2hqlz7gYoBHtXVbZ\nfDYaBITo4GyjYn2PRIlBP48q9roJNHupeirG2Pv0f5DxRsXqr5sJsWhYjez7\nxJ9JKm/Icx6y9cp/CeuoOoZ+xga6rreZf4nsjYQ9RM3v/vfJEYoM3sPHNr5B\nBQrRhWVIWk3PB559kNe2bVTaPvVp+A5cKigrFUFTyUR0uOa1GyNCmPA24dHn\nc3RzjVRdWKP2/POcb/QIoFiPEABVk0idEiSEx+wTtsCxNDpIRwVnjFnzXQeG\n4lgKbOF8WprknTzBk/ggjmRbEPOKllJZdSrb6UO8fKzPYiWLMn8FExtcHU1I\nvqLEcW4qJlLK7k/uG8zF2wF+VISN2qrSJf0GIrvLjcZUb+bPD0ODgPk1s1aS\nOKYZr3G/a+DlNFQ2PGRPY3jUS0bLGrOwuNuTNAY7G2KNOaDwdFgtWZPk2STP\nALDLGWurTiroEcDtlWYeNfsFE4I3PO+y+b1woJ3uWWLNCt7jUsRw1wtlg6qc\nuFsqDLbo/2B3ssBfqFqy3T5Q/bn0EMmuPklNgLfZNshztsafoha3UbcRP5ja\nX3yU2i5Ja/c42DqizhJeiI1N3HiMpPERZVRut5iqw0gNK0AeuWDnzrRgxgMB\nqUXNzoOS0q1ffhDXQuVyxHFpdWQ+DRBx0CqSAZByVfPrdDL30LBY1AsBeHNj\nhyd0\r\n=7k8S\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5c831da018408423d31c9c4813c507ca591a010f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.6483d3f44.0","@material/base":"7.0.0-canary.6483d3f44.0","@material/shape":"7.0.0-canary.6483d3f44.0","@material/theme":"7.0.0-canary.6483d3f44.0","@material/ripple":"7.0.0-canary.6483d3f44.0","@material/animation":"7.0.0-canary.6483d3f44.0","@material/elevation":"7.0.0-canary.6483d3f44.0","@material/typography":"7.0.0-canary.6483d3f44.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.6483d3f44.0_1592599097920_0.3230036615223433","host":"s3://npm-registry-packages"}},"7.0.0-canary.30a74e921.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.30a74e921.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.30a74e921.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f608e3b89a1dbe22eb5f4b5898942aa282e821e3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.30a74e921.0.tgz","fileCount":45,"integrity":"sha512-iA4mbGb9heVESFCu2n/4GaFCEYUn8FCjyi+I4F0AoDkzQRamVdzji+PUsgW2zp41HOKrJeyZrRl6eZ3OEVc9Eg==","signatures":[{"sig":"MEUCIHsQeZPHoR4bc5BfNavex31ePT6Wiu+/FsHCk6j1d9YbAiEA1DLBZUZj87aMANh8yXllUErioVHrfnI3OrZMEbOPY/4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7SLBCRA9TVsSAnZWagAA95sP/A1ZDnQFV6gFeLYEBhMm\nxElIXJtIIZeLIR+zMaljVocO1Sn+wBqMbviWtROydyjdOJMvrjvCsbN6DEKP\nI3WW7+lQaw+nDRybmrWHeK8Gn30neN8McxxKc2AIx4tgzhfqXR7ihK9EgcQK\nIL65KO1fZs7KDueXXXmVIi6lwSOk/4+UbFEYrsaJ+uCn6VE4Ucd4sl6eaKC5\nhmZvvRC0vC9l8kWm5ryhyJnr+9JrBmw2ngQ+HAMp828VhM/K+pbq6cu6rkcl\nj+MqdslyeFPGef5ZfCnZn0a70LZS8w+SR5ULH9pGNqH2tnujJaXp0MNUseyA\nseeAVkseYRD//VJ3sXGzifwgjIxTNvbIdQk569mRAz+Cfn47JgmVGF/M+Xe/\n7pgPHdptiEovhINu1r17Togzu5vNEiIsDUKmvShxio1fpULngE4paoVyNkGh\n2ONpy7MOiTH910/xpSJE6yRL7eXrkVRTgN4FwOcsm/KdIW5v+qVF35j3tWXT\nko6kY9mE9Z8xTFMtIUIAb7FUqnU1Y2FWniPe3a9LOqz2Eu+9qd085OvXdFbf\nHcy4nZRlIujXlAvjyvXvPc5qpES+qIegxGmbcTtjXaqpkeiLO+hdePLOiIoY\nXGkgLSOOxFeEhPMujuoeyJmtzgBdQOseN1qqc3mRjTxJbRM58r7t0vGT1yNU\nOs4v\r\n=AzaE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5f983e004147b05efcae5aac51dc16aea4a18a8b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.30a74e921.0","@material/base":"7.0.0-canary.30a74e921.0","@material/shape":"7.0.0-canary.30a74e921.0","@material/theme":"7.0.0-canary.30a74e921.0","@material/ripple":"7.0.0-canary.30a74e921.0","@material/animation":"7.0.0-canary.30a74e921.0","@material/elevation":"7.0.0-canary.30a74e921.0","@material/typography":"7.0.0-canary.30a74e921.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.30a74e921.0_1592599233128_0.5734702374188339","host":"s3://npm-registry-packages"}},"7.0.0-canary.c20727498.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.c20727498.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.c20727498.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"82edcc4f880d0ffaa2a75643d2d79a53fa73e078","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.c20727498.0.tgz","fileCount":45,"integrity":"sha512-VbSY2dsfHrZkvXiwLA32wgAWJZzwG+/w0sryL0GY0e46b04skRTqETr7qzTagXx25XPFMB0P4HmnR4PuXSYmGA==","signatures":[{"sig":"MEUCIQDOtAB941LKyaHY4q14FZWdMYSMwS7gp2yS69xvV7mKTAIgd9cXD7WOIfwTzA0v8celjiRkF6TLwn4kfiwhSojgkDU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7SNtCRA9TVsSAnZWagAAvgUP/3kti3vZjoVwpzzRs47X\nzQ6nzTx2Rj0/4MmV3e7e9H+i/5mtSr7jjdrK57jeYCYXNor6rcJS2o9kJwpx\nbhV8VcRI3Kf8Ev0U5Qw217859TXkVDEImb7hHmpj6wnrnmUgZk8QwYS0n7BF\nx6XPbGNstYQ7i/kFzO54TmYBlokXYb+mwzfKX0GTXpIvtkTOlQsDKrcu3yfb\nfb4iYlEjWPAgKPO4Pq4TJ46VaEyhk3NgmM5HznzrKMoBS5q5trzczHNqtj1v\n8KLiuTKTXulzSSjafsbYAcpO3eE+KIh8NRHybQOnUzww7agiUqKYh8HPAjk9\n0woMyAeWrsOhhEafCTQ5ZW1AOTeXxQOiMP1OKSC3G6gaU3HxbSvghPBkoDeE\n/FYKSwGOiEy31IpEJ8NWj4/EHkgU9GuuFeUof+x2jW1NEIu0z3CvsbAmAIcq\nOB8VgdLQqeYdD3lImG0lBrZGqDenA4DGqDHURDqWkhgWBiidqT/2StgyaYCZ\n3r1zgskF/AYkJFpn1fUGHrbXRbNaZfRqIcU2km9yK5/KbiFKUt7HcixWs/uE\nfuacGCIUzfJZ1AIv/oQtFDoNN6Vaz4sCyX6fWnKMDoOZQaAw+3E0jbhOM3UD\n3WVZscNN0OAKPR+ypiz2xIeULUzqFNrU/8K2Ebjw5gDdGfpalomCY3AlKT1d\nT6Gb\r\n=H8OT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f9ac75746f7899d34903c19ff758bcadb9ce2d30","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.c20727498.0","@material/base":"7.0.0-canary.c20727498.0","@material/shape":"7.0.0-canary.c20727498.0","@material/theme":"7.0.0-canary.c20727498.0","@material/ripple":"7.0.0-canary.c20727498.0","@material/animation":"7.0.0-canary.c20727498.0","@material/elevation":"7.0.0-canary.c20727498.0","@material/typography":"7.0.0-canary.c20727498.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.c20727498.0_1592599405080_0.889398443468693","host":"s3://npm-registry-packages"}},"7.0.0-canary.4e360ae94.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.4e360ae94.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.4e360ae94.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7919ff61d73ab57ac31400da960aff37e5e4c6b7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.4e360ae94.0.tgz","fileCount":45,"integrity":"sha512-4TOPVbdE3mrdt6z5QwE3NbITP/xPzSPWX5r0puB/0v3qKb0AX4joSYpIjCH/pGugOnApkazd/LX3MO5cwwinSg==","signatures":[{"sig":"MEQCIEmRYbp0yW8WMtmIf25BngHTrEu63ugSkAm25fkXaRk/AiAk7khjGAJwAAB3/12zw/pzoRKDkqEKGQ2/MnV6ld5H3g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7SdYCRA9TVsSAnZWagAAKeoP+wWxWrwMkagIEiMbQTiT\nWyMi7cO6VwlYN5pHvjY/zLBz983bewi8Z6N4NXQf5QdTLhKuM71O4e5RxT7w\nvZc5pvYOlg/rnfwVghJsMW5AjmP5SACYGoOOw30NQ2MlYmRZCPRKe+078Deu\nNvSojnUH5XuV4rkSToEiFyaBpn9Q6+8VBb+pjDJnzepcBI58RgJ3SehWwwAR\nswnS6gZOLr3+OB5YQe3u52v0w/Mtr3l+XEpAR9/I+wZssnlXwNGasCKjzVeI\nGNvDlDvBZPQsRve4WFS9NUWOvGEp+APZs74ForA5Kjb5ldzA8OIquXvZfw9U\nWWrBe+hlZ1HxgOvJsZPrO6rAcKjtGiiple+rXNwiC1LS+0IpZrJvJVwsM4PP\n4XwbXwmeO3/GtCMK0/TNke1lrj1PvyObu96/b+O7tddisKVzNujc3Yj6yXU6\nmmFmWPbmp1FARglX39dqdqScREfDI/6qQSj4pzvsImBkOGG3QqUUDIZj15ZN\nLnYslt2FILyp91bfcPSOHgdDnc7BMruunhX0w2IezEz2DvfGojfLeOad2YG2\n9Ab8wE+kR4uysiOwEaEFCLNNL2H4gkQUf1mpZculh3FtCkwxWcjgfyJzL6aI\nHzXzbiUstDFYF6J8LPSJJd3H7dCYG7oj7F2lFqTzo2nZVi3VaMtZ+IsIXWc4\nGuqP\r\n=qB6M\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7bbb3adc3aa84c4095304613145fa53862e147a7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.4e360ae94.0","@material/base":"7.0.0-canary.4e360ae94.0","@material/shape":"7.0.0-canary.4e360ae94.0","@material/theme":"7.0.0-canary.4e360ae94.0","@material/ripple":"7.0.0-canary.4e360ae94.0","@material/animation":"7.0.0-canary.4e360ae94.0","@material/elevation":"7.0.0-canary.4e360ae94.0","@material/typography":"7.0.0-canary.4e360ae94.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.4e360ae94.0_1592600407999_0.24941765649407954","host":"s3://npm-registry-packages"}},"7.0.0-canary.8550fa53b.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.8550fa53b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.8550fa53b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0b54b15902991b790159af400234142b69c58ec0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.8550fa53b.0.tgz","fileCount":45,"integrity":"sha512-FgBIziJw3v5aHltkudTH1JSgs0eTZTgjxE6V9Q2t9wLRKHfyLLFhNjw4NzcWUnt6RYuh5H5x6+rlfOtBVDtlyA==","signatures":[{"sig":"MEUCIQDO1L+wdCtGP2dHNdvi3FgwGBqRq0lcofB6CPRtXVXltwIgeLbdKnk+5jvrP87tFDamoTBEv4O2oEEnKBXemvIEBMw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7SfsCRA9TVsSAnZWagAAXPUP/jONO5uZNop4hs4pa258\nY7eYdn9ft+fLvfuL3bEApjpOLw+0Y4MY7jBRg4zRZgPFJuWJP5lzjysl/yVT\nf0ecQ45rNHT0wcMKwFzJfXDHEk2YHB1QdLH8B4txmf8euoRBd6msLBbjOgFL\nxoEwU1QJXUzgYPQ5Sjn/8WYhiaXXC0gjivcKvNUEEFLXm1zXI7odNDXcEnlH\nr9mqSJxv7OqI4NEWgTteR6/VNGwcSwbarRUqQl6UhgTqk3RxOIYtBlcxtRwU\ngnq/iJE7ghhWkHaWr5CQeD5vCo7M5EO+6ZDj4AEeHZ6yaqpW9ZVEsU1VLMVP\nOtjJTYk4RSbFnlJN4Tpluaf43Jap74j5QmdrMwQH4VBPb2YWXl0DMbrHh9ZR\nxLVbGaYrzJ8w4CTU6EkNe5VXq478ofPgdxgVhV2gYiYF3nF/KoGaH73wbBc2\nvJXCb3SmKU2LWvOr9XmFEPXAq0hEY0vuJk/VADT2T+WY3/W4puooi9bkeNvI\nDrBLx5C87itg1yuLYq5RFTP6oWo1zompTVWDa5iV4/KimD4pZnx0pyDglWwL\nFWpH2BFL6EZRrJ9bKJSdeXMUAn9+sqUKubdzhRysG89fTPiEPBoNVuvbZL6l\nx7I1qzcsQ6UXl/tTBFE4oRXxFWijnq0PNyU6Yx5AEOzB9oGu6lSjIZROTG5G\ns6Sc\r\n=R10v\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9d8529cbd579dccb2470a1f19fac57883cb2a5ef","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.8550fa53b.0","@material/base":"7.0.0-canary.8550fa53b.0","@material/shape":"7.0.0-canary.8550fa53b.0","@material/theme":"7.0.0-canary.8550fa53b.0","@material/ripple":"7.0.0-canary.8550fa53b.0","@material/animation":"7.0.0-canary.8550fa53b.0","@material/elevation":"7.0.0-canary.8550fa53b.0","@material/typography":"7.0.0-canary.8550fa53b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.8550fa53b.0_1592600556207_0.41788157298884565","host":"s3://npm-registry-packages"}},"7.0.0-canary.93ade142e.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.93ade142e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.93ade142e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3698584d27ffe56473a24d1c6a547b06a0b765a0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.93ade142e.0.tgz","fileCount":45,"integrity":"sha512-W0h2Nf13nS9TNlJwBrVHNYPrQwNnDDrZ30fQhcC5hPJqMJYaCrwKhG4eS8CqzuuZVu42ZNnH3mOXRBa+K1zJDQ==","signatures":[{"sig":"MEYCIQD1SbwB0grhJr0BkgRxDsRB5c9UDrdzk5L65yX5m+ofCAIhAIeGuVclYVtoNQ+ZQw6KmYvioDInzjH9XuxxoiEknBme","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7SgvCRA9TVsSAnZWagAABB8P/0N1e+Lavyf1Cv+HIwaW\n2QEwhWzdKLqT47m3W156q71RlwBMtmURSHcNhhh9ZXZmHiXdoj9lw5xiGlyr\nn3oftHTKmfzmKz4tbDk53a101oWtbt/95CpHefCBE0PONphRCCsMiH1G+y6T\nvE4bIb0iO5wvH0marJ4I+w0Ma5JbUT5FIpQIrFoM93YA7KRebSPk4iQ6yFFp\n08X/dVk/VwYpsBH0J8uRMB48ohRlbu3kRGw8FSEtsw69Xaj8li2hQEn7J4d+\nKUFPhLGaHT+9jItxEp6O7/u7s3zfXcoem60qWSWBkNd9sB+iO4HDT3nzUoMN\nCbf/q1lZMzNpztzEIj48XkSH6MC5GE3vk2A+RH89PLSOcdG56KjJDLsBXD8s\nd46vxCLeNs/zY5hOI7VQCJtW9aacODSfKDLeHXgQUG6bPb+GUdXWT3tpfCLO\nPvewBxNQzlC7BgvBp/DmyFZxXDJ+sI1GYCI+SrdyK2c4xWrBBWImo8T3vLl0\ndv0CZMkj4G5lXrWPaxkEQLSPMbkHfadcZVO6td5Q9rRjU3+V+ypf5OTNjcx5\n+nbXY9inJu+HR1OWl8W7+Kyl4fJZnMRORHQG7ArBAeTpqzVJMJOgbw6nDGus\nTvyjYb6nJzjwFCtE9bGUT/Z49vFuoV6HSqrLI/YpQdx7FGrxpYwwV04oZ8Jk\nNWDo\r\n=ltfQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fe392b7ba8c7033e5614eb91a20bdf2e6d7d7936","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.93ade142e.0","@material/base":"7.0.0-canary.93ade142e.0","@material/shape":"7.0.0-canary.93ade142e.0","@material/theme":"7.0.0-canary.93ade142e.0","@material/ripple":"7.0.0-canary.93ade142e.0","@material/animation":"7.0.0-canary.93ade142e.0","@material/elevation":"7.0.0-canary.93ade142e.0","@material/typography":"7.0.0-canary.93ade142e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.93ade142e.0_1592600623026_0.6786382928921337","host":"s3://npm-registry-packages"}},"7.0.0-canary.a0032f5bb.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.a0032f5bb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.a0032f5bb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"15b988fcf45dc3055210baaf50563f5ca247c9da","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.a0032f5bb.0.tgz","fileCount":45,"integrity":"sha512-CgqJNLK7fqZbOvplb6MNVSH5037Kg6tw/s/G/kfKGYF40wPy50icIFTWy/pssVSoj0XHPa9Wl36VKVZnewH17w==","signatures":[{"sig":"MEYCIQDIUBOJA2r9v497zZOg6sb4B8m06lTGbxWTMsYml/E7IAIhAJp9wrIXbO5SUK/GE1j23QnuycQ4ZtumLMxapL+16DuM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7S4VCRA9TVsSAnZWagAAkq0P/jT+fkOyNAWrz37uDXDQ\n9HoNDjd0fodDsvggVtaz8qh8dYeI0hoL0LikP8QGCRQ80lw+Cd57anChbVzS\nH4iv5XZU0d4ydsU1fsMzfHGrLDMc+1HUOoIy81sVYyX+ank9nKEtXY+vVBBt\nJiPbEpNGpb1vKUmvxQJAAo/E0daW8m22C42ehwUFJ2RiebV/nhHcnnznHsSX\nh/TK4tNyC1fYUXymC6G972Flla/MDmqUgnLbQFpKw4bmOAEO8kU1gcgxtB+D\n5I8Hn+qCN/yyzVuvjr09jEk5GvQ8y2fZ2SAdBkVtx9HKyOtaeWEJjAQjuMWP\nYzYn2mdlVkaOReXyxsMqbeI6g8rJAR/NeGHSM8JiyrHolG3fRYP8QV3AFg36\nXS62ejAIaYVy8i5f4Sj+iZr/MypXXpSxwDKer0iZwkrDm/TP9Zeq4oPt7mrY\nB32WlUN6p76gGa166HR8pOiXTPPxl/rKdFmOgz2sfMloAsEeDRTqfkPMH4sY\neoItqYminR8AbBDOnU7/9IorV6GUWhRW4u8qxlGNh65/dRZLNLmgGNPFBKHl\nNnlAB+hdy9or7MFN8+ddSl2cFSy8IxdJbq9lbzVuhUXrTypYMNekREzokYkU\n6aIgEuJ2cITIP2BalejU4KRREEjJFqckKfgylF5bVNqxzfkMyB+yLsJ8hQuY\nS+Kh\r\n=U0Kc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8c0789d8c409d91f7f4e13675ac80e0f355bac02","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.a0032f5bb.0","@material/base":"7.0.0-canary.a0032f5bb.0","@material/shape":"7.0.0-canary.a0032f5bb.0","@material/theme":"7.0.0-canary.a0032f5bb.0","@material/ripple":"7.0.0-canary.a0032f5bb.0","@material/animation":"7.0.0-canary.a0032f5bb.0","@material/elevation":"7.0.0-canary.a0032f5bb.0","@material/typography":"7.0.0-canary.a0032f5bb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.a0032f5bb.0_1592602133454_0.7261594964115772","host":"s3://npm-registry-packages"}},"7.0.0-canary.3f342e721.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.3f342e721.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.3f342e721.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5ab3904236b5bdfe8d555b5f2e9ff452ed22290d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.3f342e721.0.tgz","fileCount":45,"integrity":"sha512-GuM7HLBvxScCRBRyxX06883tytWQ/gYw4+g6FBJcmeWhuvPcWeBdweSW5qUD/Kct4jzDQn3EFqKjBOMSb/RaKg==","signatures":[{"sig":"MEUCICDM+ozJjMjSEOqy597vCLi5pWGUykviZ8q5B9XHKPZ+AiEA7k1I1jiERPgiIHN8RbgO0KdWovFPTn3iv004VZW3s/k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7S6ZCRA9TVsSAnZWagAAUDIQAJuZC5IZ1TaI8M8gwFbT\nP178J9KZuaiill/hwIoe1fh0iC5zBnv3wNlmwHXrpeAlhTP7eODWJ0GiSxcx\njNtkXGn18DoGqsoP8mGNm6StabgiEASK6TBKJdJO82TJu3Esl3gehbDZTwof\nunV3GM9xI7nzI1PpRR5TQFICeHwXrc4q4+f20b3T6VFs4V8vQvwlrnf42oCG\nVxJsxRH+XM14R2NiiNhRAzf1zwyiK9FcQzqlKLrDkagm4YmwrsjX217YMtm/\nfFa2F8kPRpGnczITehshitLzqe/Efb4sLclVOP9qPQRlGa1kYNVgNUWQRyNO\nSAZNP4ckU3LKfZusPOpQdwnZbDtxTHhG/Mpx+xzyb4H2dnDujroRkV4zy04j\nUrC08b/3Yc4cbj4g3R6OuJAeeDqyCQRvmkwRrEOIHmbd2V13mWVz1F57bnls\nRFi1mK3swlWTTtlwd1thVuA7JEGRI2/Nsy3+Czceq57QZtyekZgb9Zjnj+5L\njnJm4HH4NtCw0RwXrCYKTaqNg54s/G72bQyDMEsQrNVVvO5rZO2T91IDOjf2\n+lOJx+16+D3Wev8Z2QyLXTBaatY73lHtSLY73WveBwYUQZu+rVwExhXOAhff\nlrO7rNMChN7hItVHjEDrC9r9Tlo3OAvTM62q2n7XNchcCS6BTp4pGYjotanG\nox30\r\n=nt4e\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e972042c8ae08ecc8469492707d55d647e3495e6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.3f342e721.0","@material/base":"7.0.0-canary.3f342e721.0","@material/shape":"7.0.0-canary.3f342e721.0","@material/theme":"7.0.0-canary.3f342e721.0","@material/ripple":"7.0.0-canary.3f342e721.0","@material/animation":"7.0.0-canary.3f342e721.0","@material/elevation":"7.0.0-canary.3f342e721.0","@material/typography":"7.0.0-canary.3f342e721.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.3f342e721.0_1592602265083_0.4892631811285759","host":"s3://npm-registry-packages"}},"7.0.0-canary.ff89457cc.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.ff89457cc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.ff89457cc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ca685d321d5af254f4dfe7166878644286659cc9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.ff89457cc.0.tgz","fileCount":45,"integrity":"sha512-qoE1McxyQ6cpRxEClRnDRu+y86VKJ0ct2ZeE9LNy2XsKB+rx/yIab85E9aebtkM5MVUYKQfASKQp4bK+tRcFng==","signatures":[{"sig":"MEYCIQCDZuRuJvcsT9K/P2DOMi0yid5F7eb03MTv787fkAH2PgIhAN/KOyD+zlO9NsDM6UAPvrja0xyIfYd08QOk3F5DNM93","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7S7WCRA9TVsSAnZWagAA2fYQAJGpHaYRBV1miksdaPHb\nKJDqrSwfn8/XvOSAG9TtXAWZV0giyFl1i9htVLYbiiJ0tSENgkljPbX9wbZs\nOGfVXA4cRvATCKOLPax8iSFYgCw3YLBChB/RRia0PtgEFHryN+Dp1/MK9wIB\nRd7q1jshZvyHLNlnWW4VDnUDq8s357rYTpSqFpUnzAAodozBNC7izMntazRM\nhtDSQECqsENKjY7MDfH7INT/PiqgtWrRPDDOnAwAQpSxa3GNZHq+XUL0VSBA\neps7XCiGLjA6IYS6h7YsAKZexN/SL5DGMw8SgqTmQB99MIHJ1p6IdVPCIOlE\nPSX8Mv5xIg9mjSI7ugbKwFpA34J7krpq5Cnfmfb+CavRYoZRuPqkk3S4u2FU\nufDJlFDgP8w/dkYkeeab50nANJHnf6T3bX0V2gNj8BQ4d58ZZU9bGrl0QwAc\nmbDLnZ8horxM2E3rLggPxZZeo/8mSEMH0uzimyPScFhgpT7hoqXTDwBF7pg+\n+I3+QfHn2DLOoVv+LE0ChZrlc/A2eshuRerTRO+2tSWzCg9+9Tw8zeqKCCt3\nA3bA31Ubta8TT9aXifZV+QbH14KchRCt5uqpz+l0/+GWh533DEfvA0IlrU25\nrOK86HnEOJNonJQ+kgDT9wcZjEUoWLVTdtcmU+jhcvs6MNa9/fWsTPzBsr+i\nfKDZ\r\n=3Y8i\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1a3ec64383e8afdd818b5edfb74f32f6acebd044","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.ff89457cc.0","@material/base":"7.0.0-canary.ff89457cc.0","@material/shape":"7.0.0-canary.ff89457cc.0","@material/theme":"7.0.0-canary.ff89457cc.0","@material/ripple":"7.0.0-canary.ff89457cc.0","@material/animation":"7.0.0-canary.ff89457cc.0","@material/elevation":"7.0.0-canary.ff89457cc.0","@material/typography":"7.0.0-canary.ff89457cc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.ff89457cc.0_1592602325934_0.8015200694837099","host":"s3://npm-registry-packages"}},"7.0.0-canary.4a1855cf8.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.4a1855cf8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.4a1855cf8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f35ff663d5d310e60ce2cee7d9a8a54d3ddb9407","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.4a1855cf8.0.tgz","fileCount":45,"integrity":"sha512-PfLTGVKzOtEMl77p5A1aUqBarbH2aPAT5hNlPuWWzoPkzMTVu8NKWlPq5ucfyibqHH8JZvW0Bc0OAY4WQFy9cA==","signatures":[{"sig":"MEUCIQDbXMHjXF7q+QEtGCrvlb4hpv8B7Q4wcuCdLjZWBP+wuwIgQpAW4Ow1+aurqTmZamO0FvF2SQVUbKyWHdSk867NWrI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7S90CRA9TVsSAnZWagAA2fQP+wdXCuiUcEf2BD3lThwn\nUDLfB6y3xbUu9QhIgRfCMhdO7BBK5Kj/YP0TNWnpkmDiy9m/8qvzXcVwf3jv\nfYalAXrbHykJSfRd6dv3GXmBa+yYl6QJc31N9BYPILYx68sQdyYZx3Y120rr\nZrDNLGIrwwerkf82TfuU7SGdWTsq6dNtD9L9pigRGQk21qrbSyYUejYaCMjd\nMsDoe3Fyl+Xpo/JwWDuxWExDZ2Dic0EvrjRLMRCUbIB40HXAiux+U4HvZRdh\nfFaytHKLB7nNzylcrZNZcFb6fAY/tfyyHez9D7IClWlL/Ft7j5DZqJcpqccm\nfkoIBk+RuyAygMqhAWB8o9RSrO5HuzJK8fShlz98BDXW7NW+tFo6qwnEVG6M\npc9F2VJcwUGmaprMRMUIzP3VTclj/Dq4mVBAThvsU3zRhf0+dke3KFhPTBos\n2be1hoI7z54fTZBs9kba/sTIvlbUTdf7+bXNl3asFi7/8cEdlf+GkeAaIcyL\nr3V1elT2a7uwHvVYAlzFOQrueFiA4obKSG2U/Mn128F8zKN6VaTnIFH4slnQ\nKjoxiX7l/1e7cAMFI8UOh96ykZ6PEdyosfC1lHn2WG4NwG2eTY0RZn9msXtm\ntdfiY8XqzweTcQhgwLmDaN3rzUvpVvEua2OLgbB9s5BYANbTzgjdP3qPN+/j\nmVZJ\r\n=ykDz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"eaeac5e820cdb30fcedba281da8c2c4a846f0e73","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.4a1855cf8.0","@material/base":"7.0.0-canary.4a1855cf8.0","@material/shape":"7.0.0-canary.4a1855cf8.0","@material/theme":"7.0.0-canary.4a1855cf8.0","@material/ripple":"7.0.0-canary.4a1855cf8.0","@material/animation":"7.0.0-canary.4a1855cf8.0","@material/elevation":"7.0.0-canary.4a1855cf8.0","@material/typography":"7.0.0-canary.4a1855cf8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.4a1855cf8.0_1592602484179_0.8359553025790531","host":"s3://npm-registry-packages"}},"7.0.0-canary.8602f1b4d.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.8602f1b4d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.8602f1b4d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"21c26a3767f2b2c24d17d9eb4dcac37ae0675cb4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.8602f1b4d.0.tgz","fileCount":45,"integrity":"sha512-l+LA93QRRvg/1TrJmi8tw1qSgDuBRis3UgoZbczG4f40JnD55zjYmTzqV9AqpT+JW9dBXjNV9f+VDhazUhXh6Q==","signatures":[{"sig":"MEUCIQCLUAU9gTryfJXRh4AW+9/+EtmB5MmRe88E4oDsbDrOmgIgAtaubikxi/6+diPPKTzYNcIFjBMb0OodzYoi3o82Fy4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8OlKCRA9TVsSAnZWagAAIToP/1mEIeFL/orDbr6NYzkL\nZegcXd0uu89BpG1MmKO+O3y2xG0FEmZdi624V7R2uufGVWjRa4Y61crhDimb\nufuftHhVbtmxhSOvUgnMmduWfQPSyC1Nt36zxW1dmt2fceeTqf8zMBJm5pk/\nCtwtDFvOXeNUAOQl5kcLItmt50XUecz68+P/mFT4TJkzYXNeOy3BQfur3VB1\nmPlEqwQvP2hLnwJrSTmHW954GHOv881uIF5Go8YRCBKb3wwZFRh4YNni1v0N\nddEQlxi05OiVas6BTSkMGbE/04rAp6z3OaI6LBJiBXUum5NdZv/+FNtISWn1\nVj9PFIDcwC4Zdm2JWll3LjGN8gvIERTS4GyJpou8c1t4p2BJxA4Elv17B6fN\nztT0riLh+socXmOnlhr6IWKueUhsg8TNuPRc8VWhl2T9PpUCk4S2MbIArC91\n/j+nIUqBKYWKD3Qh1iqKzjHZg5haHEKadgk0fWrLWM1qMOaIM84X7ghSvTpo\n9ScqSiwgvqIvQKtqD3QdWsy44Dj30I9Jq24DxsUfnnR9kEAHKMlMp0ksNdUo\nHybYq23exW3frMpSKiV79Qvm1dTq0/Bpd9zA3XSFiA//68m+VNRfmk3ekRYN\nw9YIPa+AaObBpdtwCxXgl0Tc2ooOvqKXVMKroyGr8mTUvURIuO6PIxwiREcs\neRAZ\r\n=y8XV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"07f6372c5a2f6f8add971db62aba74793d912f70","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.8602f1b4d.0","@material/base":"7.0.0-canary.8602f1b4d.0","@material/shape":"7.0.0-canary.8602f1b4d.0","@material/theme":"7.0.0-canary.8602f1b4d.0","@material/ripple":"7.0.0-canary.8602f1b4d.0","@material/animation":"7.0.0-canary.8602f1b4d.0","@material/elevation":"7.0.0-canary.8602f1b4d.0","@material/typography":"7.0.0-canary.8602f1b4d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.8602f1b4d.0_1592846666326_0.712091461400999","host":"s3://npm-registry-packages"}},"7.0.0-canary.69f9f0982.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.69f9f0982.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.69f9f0982.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"21289360eefaa07c8e26e5b7e895b5f873d02a31","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.69f9f0982.0.tgz","fileCount":45,"integrity":"sha512-xLDUiAgC0R8ERveDk0KFWCRtGtTMyya9u+Y6I3xbzv8wCUidiNu6ZVDNXFlX1Am4TH3MbDeLGXZ6gQvLZqmUWQ==","signatures":[{"sig":"MEYCIQCkqG8V91faTPEvyH7nGJRVRbFA7U8En6XPoaCnWitmeAIhANfadB6r/yWi6YOzUEb/2WQO+3TmHNr0OncY3/sxN/mD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8R9oCRA9TVsSAnZWagAAjWcP/RdhT15qrvajlnTQf5J9\ndajFP+KREQbPG6CDUjB7hpR4bDQkz0CnMviAb/WzOude9YuFpYI9VgsmndXT\nq3tQqhl2Wbj7zNQpy5Dp4n3yUpZv/+Tqai9zPPrz8FOwYaxoQizVgZkyxaCd\nxeD0K6gyq5yOJfS4CHIH/45rDh+j3IqcOSzJG/2mtnVsfurJFm1TCmkN2m2y\nzSgwBSFp/nwDtsW918MzDXKC+RLCYC2WbzwmAAxV1cg404r1NdpW8OjXoXe9\ne2o9ZVnAiNNITePxu+ds/viZSMIQyF+Oaun7yzMBWdVA1YJfPhQW8oZCc2Hq\n58EHZflqw7NquYQDsHihJnHcMAdbjk2DdOCuD6fLuQptzTjNtAVw0MPANo+s\nxEY0YJ4CMb67f+BN+x5K43Rnl5DQsZiBk6LDq5mPxTyaxmdpYXWiXeGkDSg0\nR8lDwpXEYut9yXmxDuuQd5UpAafTAwFrbNdT9h1s5j6xw2/voNdSP+qVRTfx\nlfqWypK9EH+At+BHLejenjI2fRQLu7Qd+fcj8NZBQZAuhShLcObYg+6wVrFm\nV+WY/scvy9MiMO5P9O58ujA03oqTszX6NWp5ZLLhlnRdRaT8ik/933UN0cJJ\nk00rEkKvmZFyGa9JnCVn+vy7bB9j57MsVfeelUlWay6GUM5P/qU5g8KMCD0f\nhJx5\r\n=my3s\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3aa0430a8c5f21a2aa9f3d54afe07b1c1b1cac09","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.69f9f0982.0","@material/base":"7.0.0-canary.69f9f0982.0","@material/shape":"7.0.0-canary.69f9f0982.0","@material/theme":"7.0.0-canary.69f9f0982.0","@material/ripple":"7.0.0-canary.69f9f0982.0","@material/animation":"7.0.0-canary.69f9f0982.0","@material/elevation":"7.0.0-canary.69f9f0982.0","@material/typography":"7.0.0-canary.69f9f0982.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.69f9f0982.0_1592860520284_0.30639187136718005","host":"s3://npm-registry-packages"}},"7.0.0-canary.369a293f0.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.369a293f0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.369a293f0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a13b4486e1c067c4cc0ff23b38d59145b93c7f17","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.369a293f0.0.tgz","fileCount":45,"integrity":"sha512-klhrpsWiPjdhfHKlSZPQWzDKrOPoJ0f18VxPYMAYRfGgTB4QSeJ4/YbVmSbwIG1w/Rdsa17la/IAf2Ek8DfRcw==","signatures":[{"sig":"MEUCIQDWKCGSW/FfBmyaN8E8pgW3SPdFJttAhW5nOQRYJb9LrwIgGIb3tQGtgkmlNR1e1zodztK+b/EMwa6uL8OSTrZwioE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8SAMCRA9TVsSAnZWagAAXuAQAIHREC6fQA+zAv9OnWMr\n4XE66MbWI08vsk+kX1WZWorxVouLdP0k3wkbYjy78oaouZU2vxTSyll40NZ5\nUbLNS7mCvgpRa0YSQ+LrwkQWV5GBe23ofxnFGMPOhEP4EEUI3q3MWGJnXIUl\nzJWqyrEJMDZjWdIaer1+A9+/Yg2iGPWSFyag2sAGfnVf18ikRuLqjjHBhU6w\n12y9QWaa0Dncd0IW0FnlDpld8xtLxY4GfHxlHTDrG4qwplJu6uqd8g29USAX\nwYFEdVsM+yR7aUkWin5SMVEf2WulFMW4nKkkhmbfykqRz2tM0XFsxXGlyt8Z\nnUDxBJVM+YVLjgoWHuPeV3866RVYE4/zTRUPvEb7tQw+ZRK2dVnpndnu++hg\nyl4z/GHuLAMRXsN9jeXfvBW12z1frotgLBMTBnlZf1ToO9FTEeg2iMlCKn8+\nmNj1xwC1UvjkFw69U1xabzkXrEamLkLpTHdhwVaGOskg4UfTD5uS/MvNRCDj\ncG+wrm6tGC2PoPpwF9d8Zj9jURezOhQ5rw6tg7evkWSr6HfVPS+XUtBk9YLi\nDXvyduRmyeL23xCvdK2EQe1ABfkxws2QtFiKrug7ROJysEL/LMfyvMr9zQdM\nSkU77h/Ih17NSski/Pr5fwLcA4YPEUgZq+NgLlEPoDxCwYQWwobUcmwhQ2y/\n33LD\r\n=Qj/J\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4b9943a16a4fab61aaa8f5dad0d4f7aecee862f4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.369a293f0.0","@material/base":"7.0.0-canary.369a293f0.0","@material/shape":"7.0.0-canary.369a293f0.0","@material/theme":"7.0.0-canary.369a293f0.0","@material/ripple":"7.0.0-canary.369a293f0.0","@material/animation":"7.0.0-canary.369a293f0.0","@material/elevation":"7.0.0-canary.369a293f0.0","@material/typography":"7.0.0-canary.369a293f0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.369a293f0.0_1592860684002_0.47998696488369297","host":"s3://npm-registry-packages"}},"7.0.0-canary.f1432b5c6.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.f1432b5c6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.f1432b5c6.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"902aa40b3087eb9ad4ffc1ac156086b30d57ceda","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.f1432b5c6.0.tgz","fileCount":45,"integrity":"sha512-2vSIiN23cAA7zoP/iothM5xImQHO+DCieVU7Wx8jG/if6fdrP0iAlKLKAuFtYNkEGpj48sHYomvqqW+AkhGTzA==","signatures":[{"sig":"MEUCIHjOiZrTDQnKvJSPSdmtvqzl6CjouY0Fje+rX8BPMzbmAiEAqbPhXoZBjqB1NIWjf4zGZbFW19hwkDH4da/W7aCAIUQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8SHkCRA9TVsSAnZWagAA5jkQAJPMbHgmP0wIFzcZukzg\nYrKTUW+IWNqHQPLMVLoIrzsGfcVJFiDZLVtv3YvbKRTAQQ0KhT78QFUu2d7b\ntObcnniBcTkhq8g8rosrSJO+vUgDkY7s4JukpDHdNKdgYx7YYlGpKIO4zGyY\nTv8z+1aPDBO26zjy3t1GjmOnaY9ac3AV9otoO/W58LFRguyLb6hEi5gGu7Ny\n2rnJMUWcNDULoNCs3IRMUl96pCrVB7zP9XxRKw+tBy3HH+neQ8JQtMvWae2N\nZz5RnXw1OVX9McNdCpzWCDdGw+05kLtRIT22dce+4i3kpUbAweD3opF1C13s\n03og04zGpSGWNSAoo6T3D+hXy7IXD5qX5C33+J8GuGxEnLGgdppjoJ7Hujsy\nLL/hXuYhAK8U9yckGakweGPg8vSeHSuGQzLfzhFiBHDRoeYpFxWIeQYCDxPX\nhikg+WXmvGWz5CgHcoh9K6oE6J40CyAYATXTRLlReV7btuJVkZJMpdaT/4wa\nBvqfNj5brOtuRhmwoeAJHpA3Z9JXj4islVxac8RCAnWyxF2SlqfA0S8ogity\nMAN170kM/oeDkZCKWTh0x1WlPY3iNurt5P0TbEdZun4zxoktl6XKWq/OX33d\nocb0GcHJpKoMnrrAvx7UMp+2zatIsVuWShT6sil0+JuTiceix+oaX8uSCnGo\n8zUg\r\n=gnp0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9987341fcee9f9c549490bf6cf1a6ce57b5a83e4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.f1432b5c6.0","@material/base":"7.0.0-canary.f1432b5c6.0","@material/shape":"7.0.0-canary.f1432b5c6.0","@material/theme":"7.0.0-canary.f1432b5c6.0","@material/ripple":"7.0.0-canary.f1432b5c6.0","@material/animation":"7.0.0-canary.f1432b5c6.0","@material/elevation":"7.0.0-canary.f1432b5c6.0","@material/typography":"7.0.0-canary.f1432b5c6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.f1432b5c6.0_1592861155722_0.7200010882431458","host":"s3://npm-registry-packages"}},"7.0.0-canary.4757a16b4.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.4757a16b4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.4757a16b4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"10dd070c8f7461f94e6f6e655ca2577399c6d67c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.4757a16b4.0.tgz","fileCount":45,"integrity":"sha512-FamwW53KBPaRvqIo6nINgrqcjlvSmcbE4ku6fm2xdTBSXsjdVMgTSZ6216c612HNFzGqhMWgWhowi6ph0IWHgw==","signatures":[{"sig":"MEUCICkxE9M9+5Ft3/tmitARXTs7ijTBe+sgsrurgNNCn3AcAiEAolFSCiUyRV3wADXuxbRItHO0OIApXwYfJnaWU0QEjxI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8SiECRA9TVsSAnZWagAAqA8P/39dk/Az0IHHt7142ZfH\n1r4oSwgMsJpJl/KoOtx2Zo4RLN8x1gKtBXZjKOmx2XPYsk7FF+0z9IgaGSf1\nZtM4S6bxXxFD+WVzc//t01rigy0zDiJvcApImCi5mM3RezKPrTZoL9aDJjOS\nke32F/xEHbOy6qyQtjtlkZmr3s3KUK97GTCUcqMTf+6VcBTtdTyYd6ksQ3NN\nToDsvKSJ2bV3VZtbDpumL6qC+EU0dQ1k3InE8qAM48sBXz1PjAth2Jk0i9CG\ndf5VKNLG066gVe6H1pd9MsPxkbW4qUp2DM3BDjwG9RWFEKUXbePY+Li/CS5x\nrllV8OtBPlG7oP4LC7bva22wBK6ZIF9vFIF+wtbhJ7uIykdSKhlL8+unvoUo\nqWrGcZfE256Eqzusb8eClvSnAEv5pSSSmYHZHyb7s0/kpBLogFcQzTQZJT51\nhel1uZoTeEzQlyyamSF1Fk+oJublpjiAQQvWwQr7fMzyKZges3Yy7FdXEwXd\nYwHCNxquuLSXmR8FftqlPVFi5rfW9UztAicXpoPI7UqA62lFsveukJOoEk48\njct5YNl7D5o8tGg+0PMwQyDMLlju4NHGV2/cZmhpUZIh581ueptiPm33jygF\nkmpCs5KgIRAPZPC99bHV8AC9l50k/P5QgGWxoaTP8I380nZugO6CZOFO9irE\n2fYe\r\n=YqcU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"50b08262743d25109a9cd3d4c87d82d0631d9c79","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.4757a16b4.0","@material/base":"7.0.0-canary.4757a16b4.0","@material/shape":"7.0.0-canary.4757a16b4.0","@material/theme":"7.0.0-canary.4757a16b4.0","@material/ripple":"7.0.0-canary.4757a16b4.0","@material/animation":"7.0.0-canary.4757a16b4.0","@material/elevation":"7.0.0-canary.4757a16b4.0","@material/typography":"7.0.0-canary.4757a16b4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.4757a16b4.0_1592862848846_0.7963949133537218","host":"s3://npm-registry-packages"}},"7.0.0-canary.f8f472762.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.f8f472762.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.f8f472762.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"76a7266fde66f2fb5280a7d495581450cdaabed8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.f8f472762.0.tgz","fileCount":45,"integrity":"sha512-FmwdIPFvQDOGxk9AhTxh5zEdb9kRURUQuIagoxc6gEUmAPsi5kIcIbqHUCFPdRjV9AbCe1ZIWp2XDBfUul2FCQ==","signatures":[{"sig":"MEUCICRiwvn9HyxzD2OybMoZ9cPxV6BVgmizk5nuxwwWiwnRAiEA1nHU+d5HmIIjCRjc0fNUSLvD1nWp+70su2wK6e15cjw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097773,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8SluCRA9TVsSAnZWagAAimMP/jT2VP8zPo9D9bBFfRct\nYZYW5w/tLmCOaEzPRGG1p4cp0QuoRf9kSyjPJtf2kGZNS/pRk5fOi7S369Ug\nK0ULYBEaMjkNep4vOyvX+ubS7iC5dTTiZ0u8O8R2mpsg136kF0YpOd6Vw+EL\nzYU7cWioWd5WPKBCIDcH6w+lSTjosDpgKeRGNUbY9dtm9qrdvfRNThLzBcMc\nVaLsW4Kf54L2giShF1iwEXagpyZ04QNWX4fFBxntU0eWWHFs/exYV7bMBNS1\n1QtuS4STgEOKig8rnK5kJBEOAUDzoKoR7acslNGhTrpy47exVHvfWGefnyIh\nTblW49Gwhgs1TlaG2tZMqeIX7Fxsmsl7b8PhQrMF87jaFd61DlSnp7bkQnmP\n3PQ+qo82V+t7bA8DORBaCbPa30eZd4bfrJUpqbBB4Q3hNJcQJhBy1gSPogZI\nI/aRZGps0qDgUlBCoQTCueK4Mdv20OiQe2cjVhhrcX9Zw/a0COMjPUMcnb2R\nxe05EWIR1aFqBZkArHn/2nS7Pv7FTPzRYJ/tMvycWPg5ocnu77PxtIkXtIaD\novN+ADbPQhy2vv35nBIeYS5RST9bOny9wbRsnEeNl6Y90iIc58YJDhHDjsuZ\noHs47RECL3MDyrN1mZ5mwDzldJzKlEu+gZIsQi3u2JidobTvOJzNU4moEoCX\nM8AF\r\n=iykK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b72e40a4e5c11a670f3423da9ae1ab370f088535","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.f8f472762.0","@material/base":"7.0.0-canary.f8f472762.0","@material/shape":"7.0.0-canary.f8f472762.0","@material/theme":"7.0.0-canary.f8f472762.0","@material/ripple":"7.0.0-canary.f8f472762.0","@material/animation":"7.0.0-canary.f8f472762.0","@material/elevation":"7.0.0-canary.f8f472762.0","@material/typography":"7.0.0-canary.f8f472762.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.f8f472762.0_1592863086554_0.7555550618795079","host":"s3://npm-registry-packages"}},"7.0.0-canary.7e4d55c34.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.7e4d55c34.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.7e4d55c34.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e005419ea9ca3b5bfb4475c28bed0ff3b4e8cd70","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.7e4d55c34.0.tgz","fileCount":45,"integrity":"sha512-Tj1emtN+wdRgJ8dwsiHL0ydd+cIBFMis6MGIpQjccvi/bZc3htg+VzQoKZOPzT3Q6z6aBgzl6BXx7aHIsdiO4w==","signatures":[{"sig":"MEYCIQDPnY0OYlAcCb/v+m4bpFNaQ79fOsmyHRZcQ2TCwE+prQIhAM4gyGj3ikOPd2lgtKpExUoEZEc2WLs9jcGtK93CZoRt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097773,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8TDsCRA9TVsSAnZWagAAP2QP/3hdHkz7OcmnDYYyzNjb\nvO/EXcSV9aj9jYLRz2EdNlBBwGyaYgDzDyLqz9r8M4hA3D7FOgwZfSpOGj4l\nEDjkLRlmPxXGCOqnlvSx1sHcVsg2NdzN49oZDogffoeRGCFbGp8gSVqLmvNw\nHBG20gcwKF+4N+ypwy/v775IMed8EdqaIW+/hsJ0NLa1QYQVqZKVF8CVxBIa\n9j5RVsglya/YAhFHdocbUoT6Om0yh5ViNC00Y/E8Ow7ODz+TNaFcXCxBTMaI\ndTWyPW8SDNj1iA8kA7rZehY2ssxEtRWcGIfGUiZGRSEc/UJZ6XCpNF7zeMuJ\nRjWHl057XA423iBE7bAaHgIgcpL15Si9T6IityvHif+qwKC3LhOoddK0YS9N\n7RC0XGciow8p1Gh85BGJY4Q7ZvqWkeUIMS92ptbxki0W90jRIr/VZlyGRalG\nnP2N/8yJCctDoFmSwJllTa12ilk/hi1mRc5e+00q/TM/kXkkDLIZ+q/PDOec\nqAQ3gYV/sQoOKf9cGugumB58FcXPLiEfhKcT9qOMwoN2XkE9Xg9bdeT5Z2Cf\n3FCiwDNcjAFdAQVkevzAEJkq7qBLoaE9k8lQ9okduiJRNVYTgrzQCGoXEvA5\n5LSzjR4TUDW2rk7Cdk4mKnn/C49BTNWRdDHrkYIvS+GK/JltiwsAuhn0j5zi\nmfpb\r\n=a/bk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1dcee78d27cafcaab3b8f265b4f1bea83600563a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.7e4d55c34.0","@material/base":"7.0.0-canary.7e4d55c34.0","@material/shape":"7.0.0-canary.7e4d55c34.0","@material/theme":"7.0.0-canary.7e4d55c34.0","@material/ripple":"7.0.0-canary.7e4d55c34.0","@material/animation":"7.0.0-canary.7e4d55c34.0","@material/elevation":"7.0.0-canary.7e4d55c34.0","@material/typography":"7.0.0-canary.7e4d55c34.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.7e4d55c34.0_1592865003648_0.9645670723166058","host":"s3://npm-registry-packages"}},"7.0.0-canary.bd1dbc91f.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.bd1dbc91f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.bd1dbc91f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"585ea4bb20eb334ffd0b4ab92ec7177969ddd8b7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.bd1dbc91f.0.tgz","fileCount":45,"integrity":"sha512-9kHVhe+ZEBVQ1D6aRL5exI4SbuB7UyHyLcEmIQT89oxnHahm+dfYgs1b4irs9eBnMnpeLoCX9dMbUmiiNzWe/Q==","signatures":[{"sig":"MEUCIQD2ym6JX/dXyZCFwVlVZMCi65HDewN/9MqrlbJgZedW2gIgfhwBQJ9aN4k32cyZ5+rAiTu/zUu7zQ3wMjuazLUtw+c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098298,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8hGpCRA9TVsSAnZWagAAq1EQAJv9/AWbU0qn8Pmuc6yA\n2Ks5+IOLo0PuzGkcM1ODuQ4AeydTXOG3IIV5CZScx7zABkP+BYLT+LYsJ3cR\ne77jT8P2ihdQI7LECLILGxzmmdl86sIqkFUjMLtHhIRBlmT4zduM9CHDPdqV\n8Ju/YwdAj2m6uUvtg/I9PntT/TKUKYQON2LRdYZPo+/NxDhkEYGMFmA8v9AY\npCmDB5qDCfjY0raV9N5pS97WoDVS5vm+Y0PRcPvPwcmSuayQpCtKLQjhPpCI\nVnnq3Rq5NG1MtJmwkFXAxhsO3sIa9Wi5lPCFtueLcwfgg5wNgB+Z/nFlZRoI\nkxxeApA2rVU9iaIxsDWeZSnxtLqHbKhXvF6Dui2gAIc/mK2vo0Y2NJmg9bW6\nRARa7j0HeVilvtA/uKEZicep3FtgxIjfo+RaTaL8W7cV1dGBu0cKewXzjbHN\nycT1d7E4SFbGRWOrxYyhgAhVUF8hDuOnNUL3oOpRvguFJa9wFXiH3e8SatQl\n0jZEGW239QxkMEpfkmXqiWbBByqHkHIj5VTPmMQ7Koe5/ued7kTKMlqj/IPt\nakUh86xKWShbRPsIri9DDOdAv/EptQFx0SsQwBtoZD+9meZ0kJYlmrJkPUF/\nJ5EB4P2sXifG2N7CudqbxHAg/S1A5hG8lvBSLmeFSE4ExRFRZSiJj1PRMFLg\nMpkP\r\n=Wj8t\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b63b8059c82f418a3f6134124de3ad8bbb08976a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.bd1dbc91f.0","@material/base":"7.0.0-canary.bd1dbc91f.0","@material/shape":"7.0.0-canary.bd1dbc91f.0","@material/theme":"7.0.0-canary.bd1dbc91f.0","@material/ripple":"7.0.0-canary.bd1dbc91f.0","@material/animation":"7.0.0-canary.bd1dbc91f.0","@material/elevation":"7.0.0-canary.bd1dbc91f.0","@material/typography":"7.0.0-canary.bd1dbc91f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.bd1dbc91f.0_1592922537244_0.31539886268056083","host":"s3://npm-registry-packages"}},"7.0.0-canary.31523bc62.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.31523bc62.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.31523bc62.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"19df50014accd256d5c662b3c72a4ebcb6e4a487","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.31523bc62.0.tgz","fileCount":45,"integrity":"sha512-0lADrISA2o3U4sGiew1x1f6srweFVcMQs0nkAG7pL38KuOvjT94nvUZb528GK0cSEOKPriZD0NomHqDT3pP/Lg==","signatures":[{"sig":"MEYCIQCQA5Q0nFksaie2+02Tr6CjNzxY/W+GNne31W76KMFjBwIhAN+JwSzYElXgKtWRv/uGch0jpbND2CWyvvb/omdMOQO9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098298,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8hL7CRA9TVsSAnZWagAAXFMQAJiogRtlHjXxj/POJkYK\n0xJYz9LyAxdM74rmjiBzoeOeb94BZbRht7cFOU4St7GXB+eHVIBlRYmfjSoL\nAqJt9NTMUBLlmd2neYE66C4/Kx1yOxFe3z5oN3iLZHSEu//oO4IELWfoGrSa\nX9ogmkJQ8s4GLUGM1dqaRbYBDRrezwgC+wuEgqpuzj1HkP4q3z2N8x39REfg\nU7W31TAnJ5tMGRI0vhQlI5AqyMHIBzrwqEPTdv8lB5R8YwFensHuBEcbhS6x\nnUS5ThEBvXTL4yW6l6zcj9WbGiOSzpYRzR77CkM5SzPJ+FBLVNJgGEq2qq43\nafL3zGbIK9VVUIuI3mRhBvcEaDV+b5vZQEKJiQfWVOiZkW1sUkg5gz7y6Io8\nwPt/G0lq6L4O3EzQocm2W0SrRJiYKf3GdJSsA0Kdy39LLrsBNEQos+V282dw\nQxrHIgLirfj+KrZD22uUGIUt0pdolSAqyXyQbpzl8HS4iZcCfQX6sQYo64sO\nJRG2kdCJktr6n7QKl2CgSbEmcRgJbDfDz3Ad5ZsQLF5jFmtTOKOkqGaCS3o5\nbCO4707sJBXPxtBuIQKebqt+zaHAyzo3m4MHmzWuMZDWnIFWQrmNk/5kZ5lr\nj/J6XogilWxyD+2GYAAWL3dWNMebyRXNv2ntbfnh3j3zgtpMmRbPftC0VPXg\nFVqk\r\n=A486\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"035ab4d41a8c444abf721e44192fa6e10bed9f79","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.31523bc62.0","@material/base":"7.0.0-canary.31523bc62.0","@material/shape":"7.0.0-canary.31523bc62.0","@material/theme":"7.0.0-canary.31523bc62.0","@material/ripple":"7.0.0-canary.31523bc62.0","@material/animation":"7.0.0-canary.31523bc62.0","@material/elevation":"7.0.0-canary.31523bc62.0","@material/typography":"7.0.0-canary.31523bc62.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.31523bc62.0_1592922874904_0.17682372845056737","host":"s3://npm-registry-packages"}},"7.0.0-canary.a96b6d4d6.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.a96b6d4d6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.a96b6d4d6.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"557c38d4c738f1feefbe27846023b6f86a753f2e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.a96b6d4d6.0.tgz","fileCount":45,"integrity":"sha512-g21wmcI/kLF5E0gFA7k3Wv46McBVxPxOa+NrBBMqVfiOM/uOXYvVrTtUOCzlqtgsXpLtGDymPLgvXdLJ4vr0gQ==","signatures":[{"sig":"MEYCIQCAK3TFh2uEXWO9iQjiGFLYLgdc08Gy2tFSCRVFI6ITbwIhAMYJlcyFa84QYYjKZGFpiXF3H+QG/wgBxyhwuLw2je+e","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098346,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8hT2CRA9TVsSAnZWagAATNgQAJOKOgiR1SMSoWEVwcc9\nOz5GB/Eg9bf1xj3u8hPSgeVo5U0vfGkC1b7h4cXd7GKcomsiVWlmLo+w4QmD\nTq9E7GIqOXq5TG7pnW8pTpFtNfA8N1uAnd7lDi0ZXdpxt9oiU7IoLUsVgTdz\neMGk7q9m63znoif3bUU+XGmqM5s/k5YG0i5636kHrzwPx9bRVL5GB1t35IVF\nOF4HUjig2Z3pTPspa1gLb6ohJqj7aZ3aZX2U2osVF/S1WtpbC8zAvQw/A2J2\nEOsn+3ljk8zyb1Te0agE0XYuEkMictwcZQFvxMUkJh0u38TPj5uVxlq8nKPj\nCe9rmKe5McilpIvNUpME84g5gHcxajMYJd03LDJiTHw/ixV2WKuO29WXVuqr\nzu7suNXZGBtWi6DC7L41gHzivfRkIMGVsaeOnh9SSBkK1nJ75hWmMTtCaRD6\nKiEXYTvYI27YoGtSfo/pj+59bupZaYlD8LLsmF7I87O9OnhKng/e7duWYoN4\n8XQ/d7DvjyYswTQkxHuUnDYdOmwRgnQNsaAYA9JVRqG2Y2xRW4cUe/kvMu4f\nvyyq+qgca7A/COG++fFq4o1ZOvPGvM87s7uwvOL8KI/p6kHPOp1kkKSGKuha\nOD2y1obNzkGo66QostwvLH8M2jJNNOjtiAQ2wN08C9PF9z0NVPeAd2CfaZp7\nAhv9\r\n=FfwX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"96a5767feee3e2fd2ff90ed98a721999f8cbcf5f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.a96b6d4d6.0","@material/base":"7.0.0-canary.a96b6d4d6.0","@material/shape":"7.0.0-canary.a96b6d4d6.0","@material/theme":"7.0.0-canary.a96b6d4d6.0","@material/ripple":"7.0.0-canary.a96b6d4d6.0","@material/animation":"7.0.0-canary.a96b6d4d6.0","@material/elevation":"7.0.0-canary.a96b6d4d6.0","@material/typography":"7.0.0-canary.a96b6d4d6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.a96b6d4d6.0_1592923381585_0.20457953157588582","host":"s3://npm-registry-packages"}},"7.0.0-canary.ef3a09533.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.ef3a09533.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.ef3a09533.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"63bf317c3f0d7b27d2666edfd8759965bcaac853","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.ef3a09533.0.tgz","fileCount":45,"integrity":"sha512-p6V6x0DomjPM8RSAhn/7UQBXAHEcDv3ISxTz1LlagttBN+3rQiBkGDnZkp15tD1ov1zDJ/71byHbVswkvLn0Og==","signatures":[{"sig":"MEUCIQCB7l5diFR6pfTzyEGvzVrQEn8Mqsb4FeSeXI4ir2F8UgIgZwqp8e0+oGT58m7j6+I813Pln13E9pi+AV3C0TEoq+I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098346,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8hZcCRA9TVsSAnZWagAAnQkP/AiEtdfmr7U4Ln3uF5lZ\nLh9v52fENgYsoI17yKhMuf8fCXJ204VEhRuc4R1ACdiW4L7sv3vXXUk/mXta\nHEISfjtw4IzvrrAIrXyS3bKsltLeHdh9gbMZMLbY9VxHMPlXL57HNVC0OAqF\nlgrRLkMmgU8DxIIqHbsUhlGuPMltsBSE8B/O37l2KrpUWq6X9GUR4cA+jh4u\n/c1nZs/GwNPgQdl50/aLuMBKSinmIdLbVFSe1IgcydmMwnhkuovnCtUmAoTn\nPGFPYiJ6jgGfFub8Nq801b+ndHUNwo+VtbPz93IymMaA6YVcLSPLAsu5iBer\nvTFj/f+B4NA2iJetM0hhC4wsG/l/DgPbT4awtIFuZD877FLqGNIczz2mMRBk\nkA4E+bNDgtLlH6GxnK+G8yycFm7z6KHneN3SotcbR0cxLvFz3/IYYKTRMtqL\nc1WJJW+tyNzBlpa/WhhU5qJrfAbl7lJdGHZzrMtuW9ZomiXEPc/Q9W27kVRg\nADK1KMC7rjuNZY9zAwJIt+N7LGXA7L9FOx0s8TlFG76JLAycYsiv/zjFFgWW\nH4kGwxnrcjC1VYhGd4QCOKiboVLRwY+NfBkYyHS7tf3hoZWihRICot9WRUdv\nSC9E8T5tvglKhdzC8duvYMl1VWXqLAUIlGNB9Da6gIVLVPa/UbYB4DVkdxMX\nV76o\r\n=6SEA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2af091492939e0fee42736977683591ffc221f15","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.ef3a09533.0","@material/base":"7.0.0-canary.ef3a09533.0","@material/shape":"7.0.0-canary.ef3a09533.0","@material/theme":"7.0.0-canary.ef3a09533.0","@material/ripple":"7.0.0-canary.ef3a09533.0","@material/animation":"7.0.0-canary.ef3a09533.0","@material/elevation":"7.0.0-canary.ef3a09533.0","@material/typography":"7.0.0-canary.ef3a09533.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.ef3a09533.0_1592923740460_0.24640299227254614","host":"s3://npm-registry-packages"}},"7.0.0-canary.080965f39.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.080965f39.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.080965f39.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"73093da4799eb8492f9cc1feb3aff53f8964af84","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.080965f39.0.tgz","fileCount":45,"integrity":"sha512-3WBq0b1D66MiyEl+97kN+703siA+G9UCZmcfA/ZUsCxNxC1YuYXxeVM/FzxVskeCNpDxaOIJnTQpjyCHKuD7cA==","signatures":[{"sig":"MEQCIF/x2HMewQpl73ZU+JVQUQQTvJ5z4f4go05igvvxfGGPAiBJCf7N4HKDwuNw3gEp/pdceGauEqvH254WdRcAavwN8A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098346,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8h08CRA9TVsSAnZWagAAFhgP+QGaj4mb/4aSJTlpzcFT\n1YivFEzYA16cCaS+wFOQLpD+KnpNTdctJZhrV5yfbcx4iKl8I/oQ77QUY2DY\ny/7+srPqhQ2XsgNaO9a2uBxQPDWIzt/2HuSY8+pR25jfvmXRsDiaVR7N7n7h\n/BFVs+Aat/aPaMRE+WsC6bMPFm4uG0Gbr56iU3iqCQJwGDJrhwm8VyJhnLBb\n/OInY/m/QgGuQfFLfETyTvDuRXLKFg9sSLS0u91cJoj0eOUwCJiw+RrcJbN8\n00OCGREMvzkSgiBbx7BwuEJq7goBv+v1POLKlAGsd1zovLs5b/zChKNuXLDD\n5oY989gFswq5tjXUIdljCy44F8e+tJZbBhAFuLJfIf3Fr52mM5BfXatCToNN\n7Nb3Z7QGs2KXZDXPdGFvM3odF8JDDpWY0rYCMjiOzyFRk8Rh4rc9uQaz18aw\neyTcMTD7dt5CoerN+YSCwJeI8MvJzbUSHbt+9+maqMAMSUJO/KyX2JVQRVK3\nVNH72f7bc55R2o8FcQrbKF2hH/g7T4IknvRBRBZltVhacnUf31BLgWDO342P\nVMH6+qwTT4FKun0gQnmlPrp1fpR7OhPsgC6aOVcH/ql9T9DVfC2YFI0rjQpL\nI3EmWtDiGSCUHXqRMhgvDu9Rlyh6aMNgiCINeUtVm44VAZeTduj1RBI3JWIh\nYJWo\r\n=8cDD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c0d7c5371df46e0114aef4ac9bc2b3aad1377f76","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.080965f39.0","@material/base":"7.0.0-canary.080965f39.0","@material/shape":"7.0.0-canary.080965f39.0","@material/theme":"7.0.0-canary.080965f39.0","@material/ripple":"7.0.0-canary.080965f39.0","@material/animation":"7.0.0-canary.080965f39.0","@material/elevation":"7.0.0-canary.080965f39.0","@material/typography":"7.0.0-canary.080965f39.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.080965f39.0_1592925499531_0.8747160852550828","host":"s3://npm-registry-packages"}},"7.0.0-canary.1bd67b65d.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.1bd67b65d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.1bd67b65d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"91cc7ca9ae1718882cab2605b2a6455177684e03","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.1bd67b65d.0.tgz","fileCount":45,"integrity":"sha512-Vqh0kVKgylJZjM21b4DJYKTiuiuRz+XmB0/4kSsgt+TK+7tlgaEu/k8qllwp3PfUtknRR98e2XLybopnProLWA==","signatures":[{"sig":"MEYCIQDj8oy6fBkD9LeY/qTl/Mt+/ZjjXGDhMJQjQ+wdtLc/dgIhAI6ryMn8ohgvahR3m44eV4rhqU3xjBj8k9gS1crca1FT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098346,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8icwCRA9TVsSAnZWagAAiIYP/0qI0ym12i8KGsvJGsQ5\naxbov14bmrVk4oZbx54OF1EX4KJ7F6BI3tIbmJzqvuMqR/QqqVswgVsjhlub\n4i5SiEmUYoRzhVZ+5Dgtme/vwQV6RGn/uCqHXYtXL0wtORDtCsqCsHFu28p/\ndotyW+cAXCvgythBTQrF3t3IQ0JMAXTTLjk8k7tLAV6luY1kcMeOe8gzLGcK\nrUUXSEbQODFCxK4i1i49uWP3c3MDnLuEPwFO6/BTes9NpSP0Wvyg9k07DZga\nqkUgM7Cgjry8gOiiaY2ikayAUiSWCwVhDPeyww1/VmLivox4Ca1AgMJH3iHy\nNCLW30fGu6yXpQ66itgBRhukz8VmL1r9lXelAvct6CRtehtywNxXj8m93WHf\nGNlYh20wiffZKftNbRVS7VZ9wfH1eCUnGlbYdNHRxdg7A3HZY7M8R9imgxHf\nigGGiI8z38JBu0tR/glFWOHWrjZQyv6mlJzFGOqzne3tuUH6dnnpDkqMc6mp\nAGvII+SFvji205EN5NklJEGr4+Wah+L5dHtDbehLEv499oQaEzAl+gpCATtv\nl55GLRS4qkvqZruA+Gff/JF9l5m3d8IO8BZfjKa4l84jnEDXlPT4pf7kKwy7\nDQxsKJPdj+6lL8UaGFxLf9DfRFzse9BmOPH+07FLV0FEOBdzk1JITW53w9fQ\ncMXA\r\n=LlId\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dcb3206c3f6c1567eec203025b36bff594d66678","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.1bd67b65d.0","@material/base":"7.0.0-canary.1bd67b65d.0","@material/shape":"7.0.0-canary.1bd67b65d.0","@material/theme":"7.0.0-canary.1bd67b65d.0","@material/ripple":"7.0.0-canary.1bd67b65d.0","@material/animation":"7.0.0-canary.1bd67b65d.0","@material/elevation":"7.0.0-canary.1bd67b65d.0","@material/typography":"7.0.0-canary.1bd67b65d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.1bd67b65d.0_1592928048123_0.37910143209224656","host":"s3://npm-registry-packages"}},"7.0.0-canary.18ca31248.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.18ca31248.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.18ca31248.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e4ebcbe44428c2a3bcb1dc7aadcc9e6bf17ffe6a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.18ca31248.0.tgz","fileCount":45,"integrity":"sha512-0apHSxXzOhRMTMLYdoPxAUWVhU6XjHaM6/xRlMxpaMcp99n/9+LlnMLCqFRc6T8/aXo5K3Y707zid8m+ZONKOQ==","signatures":[{"sig":"MEYCIQCFbIGVp/Lxyxxa1lkLFPg0Sj/1FL7aeqbeMViwimE1RQIhAPUUsR63DRij6gBM7N78zK0H3yrJRmfcqJ1I/DVX3y/c","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098698,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8kkqCRA9TVsSAnZWagAAPL0QAJuF4zAEuCZXCbhDJHn/\n4XMoG4rrI4G2g9WT9dF4CsR/tqUP9h8z6/1uX3rzlgIg8UFpZw2VdMtbBSjW\nWlRU+jz1MLduui/ePvYCKwIEJU+/hSapT1sgs78U7jLcvVFHAa/A5UJqag1q\nJ7SRRSGj997+k2vPz0c4LSutI3PLeB4vZRvE0HlGtaLDwZzwX63hglxq67fb\nrNEXDhvcZk8B2iTiMaFNf96baQqPrq/6OhH4V5xCrP1YC3lw3Rmjnh9M2qg5\nKLOmTxUDyJsVJXNPq2XB483/0s2PHi5x9uarCrZCA9chaJ62iVs7yvL9MfWB\npgOF+nbJdDm2XrmnePe7Hx+kO2xNW92PCBmZN0p+SKtRMJrOwaARDGtqKzcr\nje94O5WqP7Q2Ol6dFVfVPeht7i7eKT9iWGox2TVoq2bSrWVHZBFKpKiLasiL\n/CVfpXILfQpXgzAatu6A8KAo27nBWToWx+2I3SEY7wh6SYGEfJtURyMOM8T5\nsP08+6fB+jwSJwXbVzC63lU/Dd826Q56Y7JOAOfEVHrliGTXcPeT1XlFbeDj\n9xKizj2iEPvCrWFSvA6hR+urivOayCbAzt8U9UHtz4BMwVU/lgJwU15Aw+0J\nIR+QPrb1k6i0sfYXK2MeA/lPG9FmzNmgGD2DAJaQl4IhA6mp/0EmNneCfcEQ\nyMLB\r\n=4fi+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"34a77f9ac5b41ab1f71969d01fde32c58ffc08ae","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.18ca31248.0","@material/base":"7.0.0-canary.18ca31248.0","@material/shape":"7.0.0-canary.18ca31248.0","@material/theme":"7.0.0-canary.18ca31248.0","@material/ripple":"7.0.0-canary.18ca31248.0","@material/animation":"7.0.0-canary.18ca31248.0","@material/elevation":"7.0.0-canary.18ca31248.0","@material/typography":"7.0.0-canary.18ca31248.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.18ca31248.0_1592936745775_0.0990794036936582","host":"s3://npm-registry-packages"}},"7.0.0-canary.39cf00836.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.39cf00836.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.39cf00836.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cbf51c7959cba87630ab704e47d77cf27b7e39e4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.39cf00836.0.tgz","fileCount":45,"integrity":"sha512-BiYb6KHXlue2WOXk6PsKhKJrKhBgt4SIM5MtkqPPPlhkra/ZCgt+WUBAKdMFpvCDelAFzc8igYFTOk27z1QHDQ==","signatures":[{"sig":"MEUCIQCGlyV4ApwXwNxUMncpKVgOUryF4DEBI+cb6rWvtL2XdAIgQSmmTr7s69SHjaBLRIIuk2jDCZ3vCjt4AQMi3h7df1M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098698,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8k6KCRA9TVsSAnZWagAAFIgQAIWD5JiGkkZ1TREotufe\nQan9+UMM0uvszUB9yfyIgq2YdaJXSKSMT4HSeDVPvbzs0ZW9U/RUPjMJAjHN\nBR6OTO87lX/SRtCOyCpM3T36uyZyKGzjwWSTl8+kr9xR14DUJpXew/W7kA+D\nf/K1WWFrqUXZm3fG0zbJWpGSxRbyAkvCShTnQ55NQIh4YqdSk1/D5fJnlFUJ\nwPoV9VQ6c7/KcAS29joJTRoLZHejsFSTVMmHi8NpRwoXxLMG1VLNhinkAzh/\nHvy7RccZ5OSEk1CLg95ZaFIWkt7aiwvyeXNZ7mR1kWRUBA35fnagPiP1hALF\nvg90N9A4PFCD09VujbkUKmdaPBal87xASoeiwDIoI85ktsVrJPM60rYhn21K\nlewldsCYNzFSqqnhjookYMtaudfURdYvqY1f2TNQiq7xAaPrxvsPDiOrbdNg\ne2bO/dd74B1p0FQDgtpTIsZxxeeca/VrAMezGxNDPCxPIDguMtuAxT+iQJcg\ncGIgphhzmWcomrK3ASfnFCfp0c3X+uRP5MsJ0CCMref2gOPWVMylAZd74D3m\nfpYZe4/HcvE5u/j0P0+FoWEBWQiYvxLZfiyseyIhSV+SwdUVDmiWs7EVI5Nf\nFsTq5vywkmI89cgZwhyocuQOe17Ei1dq32HJsfZ6Q5WAEcQ30JeRduHCh3Fg\ntiYZ\r\n=laWa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"490def2a6575f8ae6a6151f024a9af3fed1f5215","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.39cf00836.0","@material/base":"7.0.0-canary.39cf00836.0","@material/shape":"7.0.0-canary.39cf00836.0","@material/theme":"7.0.0-canary.39cf00836.0","@material/ripple":"7.0.0-canary.39cf00836.0","@material/animation":"7.0.0-canary.39cf00836.0","@material/elevation":"7.0.0-canary.39cf00836.0","@material/typography":"7.0.0-canary.39cf00836.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.39cf00836.0_1592938121739_0.5810086654806288","host":"s3://npm-registry-packages"}},"7.0.0-canary.1bfda9e05.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.1bfda9e05.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.1bfda9e05.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a67caa69c4a4af38eab0b613a4731fe7415f2f21","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.1bfda9e05.0.tgz","fileCount":45,"integrity":"sha512-Klg3nxxQbgy/lLDzJowgylpKX9FFdyux7RO3+fG3D+xD1OoJjPVDlcuk4djNdNU1b6JBpTbfEofWnqyYELLcGQ==","signatures":[{"sig":"MEUCIFxJ0C21NaNzwJPRa7uynGuFkHGA/7xKw+qDLLUx7EKbAiEAy2WhbzYzWLq/7bSgB2EzOj03LSllGGKWDTEmSNpYgAc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098698,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8lF0CRA9TVsSAnZWagAAk/gP/RY/xWHmLnNX6saEiMVo\nMEhlwp1d6I7w4/AbWR+7x/e7s4pDq1iTXESCv9g1GSp8VhGJzFRqKUm65nNQ\nZ20vkgE+JsvI3CniK1tkToceyxM9UTHusxeqWCGCxVwYs+lfl9vMgdXsZWwG\n/h3xR2EGD2VINUBFKLhRgzj8WHgzGK2xw9pjZhLrYpb4c1LhbDxuf9bMe8AQ\nLpquZXvjqT92mxF2KI6RzL4k8QOIzAV/N2+JglgbJp/FhqVm6s7anUELfaxL\nifekL3U6vla64rfSZEoxDCMZPBAIq9/zSZ8awrzKxBdeqFsjHG8Srqs0tfjN\n2hfDdHOafD/vM3INFACq4agEsIIniId/jM81119yymzAMSd8xfQFRzbU9+3h\nAwCJgpKEBJteb7d4ZBlsPt30iHi6hkGZRLTFt57NOgj7FWpDBxCZBTdRS+Lc\nNVHXDxpvSWMA4IRr7avL9LqupY6xE1ESGJabPrOxVE+AywftFzb6I2Yerya5\nOkTPgFNvvhAmxyJMTm2mnVxcpcy13WMcbi6sS9QDok0qCk+P0DD7PBa6NNJj\n3EsC9Dv4EJMCny4zGKJPRITiXwkdDCZAnohW0tDGI7gkJJxd1pEaLcMrIH+4\n/8xRFVykztv8z7BFedeVWr/QVkD/zPMlx8CdruVaWalVSMcs1tp+5k6oB+p1\nIn9+\r\n=niI4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d858287d263a004329d22036ef43b63b8ec8eb08","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.1bfda9e05.0","@material/base":"7.0.0-canary.1bfda9e05.0","@material/shape":"7.0.0-canary.1bfda9e05.0","@material/theme":"7.0.0-canary.1bfda9e05.0","@material/ripple":"7.0.0-canary.1bfda9e05.0","@material/animation":"7.0.0-canary.1bfda9e05.0","@material/elevation":"7.0.0-canary.1bfda9e05.0","@material/typography":"7.0.0-canary.1bfda9e05.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.1bfda9e05.0_1592938867727_0.3179350872583391","host":"s3://npm-registry-packages"}},"7.0.0-canary.08731bd95.0":{"name":"@material/top-app-bar","version":"7.0.0-canary.08731bd95.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0-canary.08731bd95.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fdaedc4afc154aaf1258d2b0c35f6c3468495d38","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0-canary.08731bd95.0.tgz","fileCount":45,"integrity":"sha512-Pvp0u3Ifp47af/JqghhaKZ9QqlycAIc1jpTRVwF0GG6P4f2QYNP2nkD2jdzbnuxO4sZ3TPPTCsayjALbyMJy3w==","signatures":[{"sig":"MEUCIE1m2C2OOyHkO4W65eJkxpVnqgMBGQTHCvpSJB+dtZl8AiEAgHdaV4fbgm1gOpDEbYtT28SgAY5/KEQDFgSE+mEJwDs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098698,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8lILCRA9TVsSAnZWagAA+EoP/2MFi55ZfgBCFUEY1e6x\n4ZOQu+W8gAMmv/WTTW5teRtB7htTPJ4qveBA7ojcMe8Batdar55n6H05TGv4\n0eBNNshY2xp3b/eTiTxJwgL7GqEFt8QBF8jm2eohe3sQUa2SSX8keCEdto9T\ne8lxAowz1z7BBTnOZKrSfNDCl9Bl+S+lDa6dme/bHmbEptPn5nEMrri3WdMK\nEjk4APackNsJOk5xsWgKWG883TI7iEFRov1GVAEbNRO5uJAf6UJzaG/+L36D\nDKvJdqeAeHA5o5UigNO9llYYawzU0EamkC03rQ8VaCOqRgcthXsBlJCsAUEf\nep2NIiQ/kAdzuC+ah7KMRhZAgATxoQ5QlHXAqlNW2k5AZpiK7ewQasPfo3na\nMUrCpl8X9Bjs1/vZ8D5HfRswV1eoQi84vE9voaoL+iY+FFRxwq588SMeKEHy\nspWK0ljBahzA3ltY3g/k1kXFD0ZmkzkKpMGvJ0CbJhT1OA/CG3QGSxAUlW7o\nz5mu1fTqIG6pRFgI8q2xMwd+3YP7KgOg9iLTQFxNlOIHfPHcrrS5rVHK7sdW\nnp1sbnMj+bJ3AZYy1XGdR+H431ko45cb8TEDgCDtPwyPiUvODuTLoWf3oG+y\nMz78LR39xkeKDeeJDqsXzipfbX2FU+Pa1a1qmjDyxE2TsiAdDicUOHHw3+Gx\naP0R\r\n=xM2X\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8e24a4ad4b32b05eb883e0de21ddbefd3c8f641a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"7.0.0-canary.08731bd95.0","@material/base":"7.0.0-canary.08731bd95.0","@material/shape":"7.0.0-canary.08731bd95.0","@material/theme":"7.0.0-canary.08731bd95.0","@material/ripple":"7.0.0-canary.08731bd95.0","@material/animation":"7.0.0-canary.08731bd95.0","@material/elevation":"7.0.0-canary.08731bd95.0","@material/typography":"7.0.0-canary.08731bd95.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0-canary.08731bd95.0_1592939019161_0.7782020787760102","host":"s3://npm-registry-packages"}},"7.0.0":{"name":"@material/top-app-bar","version":"7.0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@7.0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e8d28d8b20e6404f43151d77ef67bfa6244834d3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-7.0.0.tgz","fileCount":44,"integrity":"sha512-QR8qxZQ/JlWADzRPWooHF0MKDfoO2UWIekaNPcsEL6uPevPl0euBs3bvWNIeX/tRN18yynFiWiEvfOTz6yrULw==","signatures":[{"sig":"MEYCIQDsb3/1wgy+bagexqnxEFBz9MRw2ZfXetZM4M/TJF9whwIhAIHwXDWgznp2ET91hwR97c3HIWs5LSjOXylcXUYq769n","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097649,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8lPqCRA9TVsSAnZWagAAZqEP/10USikLyBhhaTXe7t+w\nT6YqpiTdyQiXWpHCWBjgS80xwuITXS/L3vE1i8XLNb0SO0C/FBkQLYBA0twq\n64wfuqUX7Dvl0WKyTx7i8n5DxjhZ4WEUeqeAOB7jOpmwcq7uRkLrgMYqCOcX\nDulZFPXPn0Bhy4RZmgslI5lcI65LA2hENxlbajJbxQiLhK5Irq5futmSSLvj\naZ2gRgGM4XRcrQmcjV1GpWwK61MrOBg2+ljBJyP88YcUUjAR6/2dJvQY7jBH\n6CYpK86RlRDVRPVZcMOnoEZpykcWuIk6mWs9sJ6aaFxNBG5pnIPtjqEn8ZhV\nc6fW+HpJ33ofX4zWcZDE+OuWm0jSPqLZGXdLahFiLE5/nwP9T0lNZlORFTd1\nVblOoD6TwsBHqqwRfoccIP56JWcSVB1Bd9B4Xa9Q/xFfnglfxP/gPWV0Q4Kf\nexbSa8b/3ZiirEMFZU0iIzrt9zFG47IrUsgZStJMFZXz0Qt79jAvwe+fqATL\neUKs0L4/j231j8MduUimRy8Ft5aMhCdzdg/tunnaGPQUZQusSQb/cSfMEBAn\ncQWuK5I/mhJMihnhbQEfAjFVKVmQfFKMGlBmaL2En8Vn22QUXbliu8Nq5L1V\n+S3MF2BvWrEBajZSbLwcGKICAAbx36PTb14FU1xiM4FAYYoVcVeE/jjdUV57\n1Mig\r\n=GKnp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","gitHead":"a3212b2099765947f2a41d71af2cd95fcbca4b97","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^7.0.0","@material/base":"^7.0.0","@material/shape":"^7.0.0","@material/theme":"^7.0.0","@material/ripple":"^7.0.0","@material/animation":"^7.0.0","@material/elevation":"^7.0.0","@material/typography":"^7.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_7.0.0_1592939498042_0.40037269382720697","host":"s3://npm-registry-packages"}},"8.0.0-canary.a3212b209.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.a3212b209.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.a3212b209.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"67a81b232733a9aa57f7aed639fa947f21879738","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.a3212b209.0.tgz","fileCount":45,"integrity":"sha512-7rTGQpAmIWVOKtDwc0z/9UcX+rSoIHM0kre+6xoKBNko6Es7SvmOZt87+HhZaTHj+VhMDv8nohJZRDCYlIRiqw==","signatures":[{"sig":"MEUCIQD4Zpmo2uVpPtWy1ga6odYtczBNc4KnDIh8ocMHMhZo1wIgTY9QRa3o1eCqcEetm94XmonA6MPEyCX5LHlDpzLGvmg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098698,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8lQgCRA9TVsSAnZWagAApsoP/1BLfWgZ97SxyEARaXVo\n9PYDuerWL7/mrOsd+eOeNgtxw4nDNemDqEWLel1U3ukZqvRGvDtnIvmpAge8\n8JKqcz0cmZMAdoJVSrX1nljPgNqcK+8EKgA6RNHvTc7F2XAVMlVtmrCesYTg\n6iNlAzv1bIHwTDu7bTg6d+6mUywVij2ul7mTkxR0s4WGhyMilN4pgXrbzDk0\nEsc563zRtstMb5COUrIgjIMUGG065Y4H7bp8cOZ8zxSoEhhzlihEnyQDyOTJ\nIwNgQj2aKSX7DkUD4URrRbEFKtGqzqezmeh+yhOyur6d4W/gLYTDd7tM5BjS\nxJLXx0EeM4upIeDLxR45NEiExATtzIued7Pa+dSHX+0bX422ih5XX/kuxXIV\nHA8uNR4hutKQL10kXAb5m3cZXz0Wl+6A90Yy45lHMnRLv79g6yq2mxKdnMTj\nZvbi8Bp+QEZe9jbEQFusDhBVEV5+fXP1viG0Yvn+PDFV0gptCHG3vqbQ+6Zz\nDqB5rI5xiXG/dcAOfVG1kWDcI59QCnul1081Eob4DMWmHNeQhTLyCeBZ2ZJm\noxIC9QtJmMyoU3ig3iJZ/deomGAUmvIk85+0DnwgC2w2mO6RbnpSqR4s/lok\nfpa3DY8vZpBT1CQ8HNChfiO+NRB761MondwTWB0JRkzziVvnd15huCoCKcyR\n226A\r\n=b00z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c48f67451e0470c28a2a044f902a31f9fca577d4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.a3212b209.0","@material/base":"8.0.0-canary.a3212b209.0","@material/shape":"8.0.0-canary.a3212b209.0","@material/theme":"8.0.0-canary.a3212b209.0","@material/ripple":"8.0.0-canary.a3212b209.0","@material/animation":"8.0.0-canary.a3212b209.0","@material/elevation":"8.0.0-canary.a3212b209.0","@material/typography":"8.0.0-canary.a3212b209.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.a3212b209.0_1592939551448_0.6510272318262755","host":"s3://npm-registry-packages"}},"8.0.0-canary.15e81fe98.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.15e81fe98.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.15e81fe98.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"84dc7771fa80b4843e469466cd8bc9a764abd99f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.15e81fe98.0.tgz","fileCount":45,"integrity":"sha512-DV5W+ByNi8eq115KWHq4ebS0cYW7WtL44fzxeCvsgDPeETb/M2IihAD7b/3iLAoWnbJj92MC/SjM4fXg+9zO5g==","signatures":[{"sig":"MEYCIQCAVc1edJmT5IZgFjk8eS0a2O3QNwIliKP/FUPNy0FV8AIhAPBaFdzvlwEQLWkVCrih8m0dtEodNaz9jESjNT/SlPA9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8lsHCRA9TVsSAnZWagAADFQP/1thzoeNvj02M+y7z7SQ\nF6nQb9/iVurYK+gi+z8wPzUmmS+c3v86+a8fYJT4bhKnKzDZpXU+1Tipe/PH\nZZHTBZ9R6vNR9ZeVkVUT4tSKTN27aNhq2uOjJg0lxU8nCGbbBpsTFuWoWNPR\nwqCXADigwRDsIa4NBdOhUav6V6I7kMQjVRZucV0K5XMjvjr0ELSazdjpBiMD\n3FJIi22NBXNziPgRSgA55dA2UHc2ROxk+LnBINawluqj6ZSm6e8CYaJAGUF9\nTUgj2hFZ+ks1GND2oH1UgJt2QJmZPC1g2cJsEQz2s1sqEMov7a2IEvXGYvT5\nUvp+5sXOFWG7PaDNAHc1/xYFe9W/fblkPq4/WRUH4lmCjgYgHwqO3j0E/EFY\niAejxAHAGdyCNnOGgMBnEvw+nyJK+RZyrecYfruvPo6AgRNPb+ddHYuVsNp2\nPaZvKlLJjM3GxLTA9dTBAqt9TFMs04ruThawopPAnAeVJsrIywcrRltwrd/V\nfR/9qwnCjaJyPAriWPo2n7uEvmH7U5I9JMtRJ5RZYv4HK2izsv/4Tyk1hT6+\nVhMZt/JW/xom8hn0JjCh9AGsnf4SlwvbJX6TM7Jun/jklKr0FYfdlSSOc6en\n/Ro8SGqtnj6aWGAQwXOsYgOIa9XIrq0PhACHjyPdPjdhdxFX34nteiNm86fF\ny+SQ\r\n=AKnw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6c7873baffc445c3cff5a006913ebf1bf53617ac","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.15e81fe98.0","@material/base":"8.0.0-canary.15e81fe98.0","@material/shape":"8.0.0-canary.15e81fe98.0","@material/theme":"8.0.0-canary.15e81fe98.0","@material/ripple":"8.0.0-canary.15e81fe98.0","@material/animation":"8.0.0-canary.15e81fe98.0","@material/elevation":"8.0.0-canary.15e81fe98.0","@material/typography":"8.0.0-canary.15e81fe98.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.15e81fe98.0_1592941319424_0.023322671225684433","host":"s3://npm-registry-packages"}},"8.0.0-canary.004c9d392.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.004c9d392.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.004c9d392.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"081c0cf96edc983c57795759ac3124edce2a8f02","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.004c9d392.0.tgz","fileCount":45,"integrity":"sha512-DA38OuB8A8PGzYi0hCdlteuIFxSUppUtpY34LdHASe85wy1KDd/iE59EoVdwk5ZG224po0lwojVeWOMp3DSWZQ==","signatures":[{"sig":"MEQCIBHLRApJwX+NwXgd1+6K7pMnzgFhD+2ltuOzKp/WoE2UAiBEudcQmhEcew9ePdmzuoH7yasTKruwtYWjGZRGc8PQsQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8oinCRA9TVsSAnZWagAAzbUQAIFqhEAuB3Jr1IFJtU+y\nNylbaGz7Y/s/SRcd52sYbFOILxuI+RnSnUmMqNQ1BfnB0/BlGj8pBBTpbgV6\nOiCgVcYDDHQUO6mk7Ef3pHT07bEo/YfKZjYLdSi0sWP/1etz+yCrR86+/zf5\nRiazR/7uHkTifu9wD46/eJgom7hidS0mClLAcJ7OlAtXxtF0UKGCw0iKvtyI\nqvQcAmLV8iODIfzUrRpuDNTnXhYJ37+KaCzouQQx5Q7VFtpyw2BVYHLBuhqH\nzA7Sy2mwdj8TDCSs203w01Sti5QKd3WcncNY9/4lohfcl74iYc0xq+sr9V2A\n2ZBW4OLn4pt5DvEtOrxZbzJrjxwfWvymHiQfMmkhGKENKH7Jr9O/LDScGyd/\nZQGytCzyDsUYv6vJIFKcAbjONpMIrxQPV23o27Tt0UpmARTE5+o+hZguV0Ox\noMJUeYDlmJPEjPHHkUlONqXT9Odq0bEUBG6y/gha3TUI5W74XfIYDvvr+KZ/\nrIG0Ig25dx/C7I4rkb14vMWrwpATc47oAoGDjtoygKi77sDQz1ArkGYBD5PD\nitN6kMcR8cElVe79k/tz5EheKrNI/MOv+YOWKTlBP1RJZS8Y0AryPKanIq+j\nBWtsJ8ZkopCfqDhN5YPG4HNQ9s4AijvZs46TuffOw46PfdsgAzjM0QMhOuso\nGEIz\r\n=u7hV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"776ec8815215499686a6c5d2a13543285c30a7ba","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.004c9d392.0","@material/base":"8.0.0-canary.004c9d392.0","@material/shape":"8.0.0-canary.004c9d392.0","@material/theme":"8.0.0-canary.004c9d392.0","@material/ripple":"8.0.0-canary.004c9d392.0","@material/animation":"8.0.0-canary.004c9d392.0","@material/elevation":"8.0.0-canary.004c9d392.0","@material/typography":"8.0.0-canary.004c9d392.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.004c9d392.0_1592952998630_0.7688322040692488","host":"s3://npm-registry-packages"}},"8.0.0-canary.03bde00f5.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.03bde00f5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.03bde00f5.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cbfab7ea534c53569eeb3e667278e6a015af4afa","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.03bde00f5.0.tgz","fileCount":45,"integrity":"sha512-nXcarKssBPvP2lMzeOGuAEswqvAgAUKIIxwQpzZrdF3SEU/44r7EQXtcuqZHsr0KBPBdVyV6KzCwC9zB3Y0xSw==","signatures":[{"sig":"MEQCIBh1l8kPt/R3IBH9ZU6Bt1Cnj6O7bm4amnGBEGpyVmfMAiAyHJUJe6mcBxOSFGkPXiMfiDL9zROe4cRbkfDbcSqy9A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8p8TCRA9TVsSAnZWagAAMswP/3G9zNqBRHUgCdoprNNb\n+qFwNFxgk4wjOKp0t5me6BFwRdX/0cM1hxDfHUATRFSM4adGR3yzkA58Bwim\nEcM1pzdUq+Jkt2/2qY5q8gFkMTTGTSdcmXUOt/wECZdyQln+QtczgfRe1Z2x\n+Ld39/Tyeb2ucJlwL8Daw4oK/hSsWYKzFOAEvd+CC6pP1s9ybUhzf37a78au\nHXDkTNJZ7FBMtqTcUR0e/rnZYV7vWPuMPG2K5gPrzlXXwYzqXga+61VsHbx2\nVN+ut8i/reHJeA/DrZUWGONvbQ/t9QVyaEnxl0BR7f4Lj/w/6Jiz428g4z6R\nhovHg+JsFwYmkGssFynB/JFlWQQRKc8lv6wmIOQ40PiLAoQ1yI84UCODtBTg\n8ndkHvAOoVW52RBTcqLBwK7nZqm9l78FRSYeTd2QwYJCpUGyIVchDFZKPu6+\noU+FERdlL9aHKi7iEdywoy8//UfGVfCzsso2DRoh5O2Ba9KJaI+Tt6ZqxBWV\n0a3TJcwy4oY3cawoxTS5WmX015Pz6Igz2zHyz29RWkCV8BcWt3CVlwLPRUMC\nBCWObfylSPXqQwGCUVWhVSjXdLcg8D14MR7/ZyVoHh1fMZj5znhjNSezlpyz\nW1qHkicFri8g8TV0vhjnCXS+KhmhBRw4+wOCD2dKGkXkbylFctHPt4hJgADo\nWxVa\r\n=066T\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c3937a4069800a251640cebe987bd7911de089aa","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.03bde00f5.0","@material/base":"8.0.0-canary.03bde00f5.0","@material/shape":"8.0.0-canary.03bde00f5.0","@material/theme":"8.0.0-canary.03bde00f5.0","@material/ripple":"8.0.0-canary.03bde00f5.0","@material/animation":"8.0.0-canary.03bde00f5.0","@material/elevation":"8.0.0-canary.03bde00f5.0","@material/typography":"8.0.0-canary.03bde00f5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.03bde00f5.0_1592958738594_0.08597697911885627","host":"s3://npm-registry-packages"}},"8.0.0-canary.599b8c319.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.599b8c319.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.599b8c319.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"455c9b017d27c4daad5edfa0da977f81270d833e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.599b8c319.0.tgz","fileCount":45,"integrity":"sha512-GwyrkbNe2wIZnMRC+DiIqyd1ZH/PfaZqNH9hXNIyFTMmo2hlOPy1R7Axp9kDnBOYu5HuNeFb0kP69Y5Rm2sVLQ==","signatures":[{"sig":"MEUCIEtdnnP2ELDuZMff2cLvB8nQ6PdLVGStW/qbop3tzbxXAiEA0wfzSYJy0i4v0aaAHDH7r/xRuwlfx6UYHWmR3XM9+go=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe82njCRA9TVsSAnZWagAAP64P/ilAj1Ounw4PXfBbadhW\nWbt/adOWHNjN5VjrTfrRqm7tv12fnMBuUGe2aB0P8g+m+d8c/OqHwj023G5Q\nGfi8+LnwjRWpXo87kdMuv3n2VtKFt7AtmkbpyKXYUD3nFIHgP0ns+ex0abkv\nlhFnfSEFuvJI9V9IEGjcvneWsjs2vsE/+TJZEip6Y7XYWe39Fo42IXZ8f5LY\nlEWdtZxS3Y7YlOHcdTbYHRjP2frLpEqldj4eZJrohD7wutrm07KNaS7TJOC6\n5CFT2ONKxhL4wPNIYmAgsf0JpDWmRtq9+qU+vAG/sxuBRMiw39TboRNDAqFK\nI9tVIYSeVFufU9ofY7GBsPVDS0uo30hl68Z6jzZIHDZO2NlKJal7Vqb8ijSV\nvNobewb7G7nS7cr24I4Ay8fA4cfKvRtfn1B+xZ/XMlqXtm1KS1D5/gzKaqR/\n4ppvk3GM4Wwg/nCrNDooEm7SIsl7Tms3fnZPliaBF2nUaBxMJ+WsZvQu7ZiY\nZMD74an+ybxAfu7gKC9VdqzwMGFr7BlxKRp4RLbTVVtSORsahCjptMJVtPNf\ngP7xpi7jQvfV7JisWjmA9VRvbOVFy1vm1D7x5oGYCF5vaA/+02D9cVuDkCkx\n8h5H3E+FTnKpAg3SU2s58asus4VfKgaFg32+JkqAtMvyJ8zWlBz1JferxOzT\nlVN8\r\n=h3ar\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dc6dee1190cd8d60caae49aba599e9d7072433e6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.599b8c319.0","@material/base":"8.0.0-canary.599b8c319.0","@material/shape":"8.0.0-canary.599b8c319.0","@material/theme":"8.0.0-canary.599b8c319.0","@material/ripple":"8.0.0-canary.599b8c319.0","@material/animation":"8.0.0-canary.599b8c319.0","@material/elevation":"8.0.0-canary.599b8c319.0","@material/typography":"8.0.0-canary.599b8c319.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.599b8c319.0_1593010659394_0.17224628903165717","host":"s3://npm-registry-packages"}},"8.0.0-canary.87e3be418.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.87e3be418.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.87e3be418.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c0314c62ca64d501ef7fcb278dcb369bcb95e646","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.87e3be418.0.tgz","fileCount":45,"integrity":"sha512-FYh+iFYF7WH1l82Y69NV8X+cO2iw/pPt9BKGfvTu0BDMztTLJGzBO5/40L1Cji8fWNHuCEiifioF/5qkGk+w5w==","signatures":[{"sig":"MEQCIBnAC35biqyeqWtycVI4zYtgVJKlFyMJRp1vThmk6uPsAiAVsvprdEefKnCoGvaPqR+40M/sryNMJ2jdZuEhzIDqww==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe85M7CRA9TVsSAnZWagAAHjIP/jwnWVpsmh4YsTr6rm1z\nDhbOJlNJ21IDdRDePWf1rolZR8m5uKZX3954vWwbWbsmbdF0iOxIxysNCvuC\nMkuS7jzDKTvorbdwFQKGqQuRWFHczGE+aS7RPErY1pt/6RmYxEE3LUzbrtA+\nSnbRe5C4SFNkE/Nb4rIjzm+dxZi48h85k408AksNzEsFVrVVkGHIdCKwH3j1\nyfy3HwWaQUbs/c53Ha0Ab6ws0YI3lCgw999DaYA8CmmMhecAQC3NrtcT4HGP\nHeoDAHntK2RIJMqN/SLSX7dx/Mrh/JMrBLtgcSu6mKptlyFfgTxfSiiOgGIN\neIbd7FBP0Vi7KdDYXNckC+SIY5zTQzL0Z6EUvTc+6ipX8W0VTmMf1ooxfQJf\n1mbQgf5xg/FCLPgngQUkx4SZqTK2gXnjUkB4V4Qp8oDUMkYixTVZWwh0P3AR\n6AEBOISKCpY8teTFEPPYuGdfWIvFenl+eMG9na+zFIj/22vgAh3oAivpECMw\nX1vzCebb4i6o6bBTcMmaKJ1ndvIg5Q9WyNzDiL0neRNin39clHl9PFQo8wNZ\nTtABgxmzh8ssaUaKVwWqlFdSYaB9HXsax5nZA1M3NL61s75N4HAvKk97QrMQ\nnYlqQxQqHXWJRz2y31r6h0uAsG4G9/XfQF6n1A3EZF+17izz34b+4fGNEHxs\nTREC\r\n=nByF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4f20e6e641b48a8ec7f7916b83272bb1322a3663","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.87e3be418.0","@material/base":"8.0.0-canary.87e3be418.0","@material/shape":"8.0.0-canary.87e3be418.0","@material/theme":"8.0.0-canary.87e3be418.0","@material/ripple":"8.0.0-canary.87e3be418.0","@material/animation":"8.0.0-canary.87e3be418.0","@material/elevation":"8.0.0-canary.87e3be418.0","@material/typography":"8.0.0-canary.87e3be418.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.87e3be418.0_1593021242668_0.6069953243322959","host":"s3://npm-registry-packages"}},"8.0.0-canary.035cf2a6f.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.035cf2a6f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.035cf2a6f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1a27b8d0dfdd61c57674ec64eb821ea1385ba2ec","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.035cf2a6f.0.tgz","fileCount":45,"integrity":"sha512-jetpg3Vtj0Y241obnTnkmSURH5m+oZ3JnP7Lju2d8wCfFk2Ufje6qEDMuRi5YiRmRt90U8hTnBlQkDHxC0McHQ==","signatures":[{"sig":"MEYCIQDG1Ulv/C79LKQeSMYcu++jgyPqkFQ/HG+UrNUBAmEjtAIhANmpiN8iQmJJ2LBX6wfNLjKde+Uy/3ssfKp3ZD2s92b4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe853YCRA9TVsSAnZWagAA1UwP/1o/KqB1DJ1h7f6HOvLo\nArYW/iDKWd93MAghbXlxGFaG7XWbMJj8+6JJgS4kGyO0/9Ux6QCSu7yALuuE\ng6qo7QCEfdQuX5mk2JzRP2g102KaGh+Ice2ieEhK7VOYUkN+jtjnXhqhB5kF\n//otAH/GVxI2oMaCfhPdRRvJgRkheIy6LV4aGmBTAJn09h+DaJDjtRaoRUWh\nn8EUEm3toYumPuChDHOOjHVB3BU7LVIUk4Yw5dPpD316Iijiga4wlNkymQhR\nkcltXQ0gF2hvQtDnfRr0116fPpnEIvtRbC0YbYeuJ8n+LN771BRYFMQykmHC\nLJxL3wwBvuSafXBJaJmTGd3hzJSUndijGEbv2xexel/GGURkZDrIwfQH//PP\nGBHo1Uy62nzYT+udLk9PQ06dizY5fZwzTnQAUqg4j0ms1kt7X14QcBcnzrHf\nY4aDMI8B9WylU3R+xZpeWN4TcsF09bmQA1mPOzFZQvkaWAa1WvH8mQwjJg1l\n8FEOMxvybzHDUfHYYN4nje23tQqNE3AKqJUqfI60Ve1GteLM5mDADrS/6geA\n7wy2ADiDi0J/aknKbQaG9xwf+Ow9ytjy/Ddw3Sop2JEg5bW9ui0jLeqVE7gL\nNafAH7+QaUqaKSW9xSCXPThU2fQW4MRQv2ok4x2BGfVq+byMsSIyiQlbtmUm\nqBSu\r\n=p9LQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b41149a9f9767b120dac2367ee34f615761dcf3d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.035cf2a6f.0","@material/base":"8.0.0-canary.035cf2a6f.0","@material/shape":"8.0.0-canary.035cf2a6f.0","@material/theme":"8.0.0-canary.035cf2a6f.0","@material/ripple":"8.0.0-canary.035cf2a6f.0","@material/animation":"8.0.0-canary.035cf2a6f.0","@material/elevation":"8.0.0-canary.035cf2a6f.0","@material/typography":"8.0.0-canary.035cf2a6f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.035cf2a6f.0_1593023959460_0.4555065269067782","host":"s3://npm-registry-packages"}},"8.0.0-canary.2fed2c12f.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.2fed2c12f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.2fed2c12f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4540cd239d38a73c2a4063655d6d85d385ec51a8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.2fed2c12f.0.tgz","fileCount":45,"integrity":"sha512-W8jXIlQTFyJ+qjScitQifaCJUWUBM2/U1Z+Ism5DGqMj9rHFWju5fcUBQSfLG272n+T4fekOBe5hHLomdC8tVg==","signatures":[{"sig":"MEUCIEVpyXTI6vuDJ9ote0mofYQtdYalIouiclfSNl8vZLsIAiEAzOyn1WU3auuHyB3kR5uVdfHJZtnXiSI+yYJdq1sSoG4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9QLXCRA9TVsSAnZWagAA2jgQAIYks9Vxl7D0Nt6gl0jB\nTl1Gnah4gFsmkUeX56hPpv3eePubSEvqSSls9micFd9Be1ZBAmnC0VT4dmyt\nVElhyiI8dyzmWG3C24dOEeWBHJH32vIoiVgBNip5O8Yc95uf0AZXGs666v/K\nl4i4NtqElo19zFD2kXMHDIdDDSo8dYTV3lbADvmni2E3kVHDvqkQ76a6ILYL\nCWnfzn7H3LjFlo7wKrCLDGN+AN2lwzjCLUCRfYaJTbeHgmjx0YfG+2JbwRdj\n2/NVhQX0L6t45kCxFY/kYqmM/0pitNLDcJw0xJzTrjs3lhmdHJ3SaKu1b6+y\nxxeGy6JAVh4HcRxgIyuO5NDxF7wbEF9hSdMHQkOYrQsuK0snvKI3JLCyEftX\nSBcx2qbheQAz5yKaElHQWKP4CGcZqn0wwWiwkqevboTIE5hun1wTGRFJd6gG\nOo+a7etbjsu1ij/yB87M11OM6tRa0CaRSIu3yjX27x6eUrLX7LFp1hf1GGjh\nvi259ylK41u3pX9sLhhWZM7CfvOJmPJKe/YI2qbIRHhm6r8+9TcGQlDGXpc0\n0hGgyZ2hHaSVTeOkb3ynKECP1ZfDKKFRmlmVQUnwpoXWIcwRjI2/ULhXwnG/\newoaxTtOXI8KqtTLOwi+CLIC964UZA+xWRmWUJCUT3ZuIJkHmxZ/gGLwD8+D\nAOub\r\n=BuMO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9c7b4d7bb8c365a3b1a4408204f63c124455f635","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.2fed2c12f.0","@material/base":"8.0.0-canary.2fed2c12f.0","@material/shape":"8.0.0-canary.2fed2c12f.0","@material/theme":"8.0.0-canary.2fed2c12f.0","@material/ripple":"8.0.0-canary.2fed2c12f.0","@material/animation":"8.0.0-canary.2fed2c12f.0","@material/elevation":"8.0.0-canary.2fed2c12f.0","@material/typography":"8.0.0-canary.2fed2c12f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.2fed2c12f.0_1593115350540_0.006214859399623407","host":"s3://npm-registry-packages"}},"8.0.0-canary.38197b443.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.38197b443.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.38197b443.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bcda1eadc18a19068d824030a3227443544ac98a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.38197b443.0.tgz","fileCount":45,"integrity":"sha512-fnu+qN943Lv9ERakR778bLJcrAWGNp7p1FHtb5iK/9tI0rtzssJ9ZM4smjOo1ydvg2z5s7CGNBr4FVzWS8CFig==","signatures":[{"sig":"MEUCIQCTUsuS/w6Eh+/GdN0Vy7rxHdr80PigKUXLqs8PQjYUswIgUnHAZZpU4SK6e9ZtL272PJhjY2SooJP2QOO04ugbI2Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9RXGCRA9TVsSAnZWagAAJPwP/A0mv1peuUfgN+Y8pG8s\n1EHvP5uHnDA60pbRnlDrgx3AD6lzfyMWGvp6jjDLfpUS61w/RXcV98/2AkeC\nY9uHF0+cfDhpDhMuBvWvVlDDz04EmJPE1rvzJzB5Y6ZEEiGJNb3c2jXWNK7J\nvInheKPdvsPj5qzD/8etumYpBrr1Oau2Cm0RyWPNQswgDvAUm1dtuFWyfeqT\nfvnCWQXvcHc72Ni1K4byX85KvYpeqN8PwC5TmWTcTXRUHsBYRlO7xkW38YCV\nGdITjiOv1SvkIUZmT1wEMqfY4jVXkDmhB/hWlp0BBbIov1Mu3yjtZJGEuJ1E\nnPfR7WjhgSxMQ7SdnU6Gr9oOde3jKaSeP0ebNWplaFaZKxrzW9i/hCHr/IKq\nYI+BApVyQ5K0fBxnMfI/MGRqtsp33xBXaQnaPHQ4v2mVzXOA9D0OLVdhvTpl\ng/c5jA9yZVLOaufBdpRyUkAcWF9QsMmsyMVEmVST3z1rkIM6div7PF/5FN/5\nPHnAuOMFU4D1i6qwYiTjFxcl3C08ABt7JiUIMvm+A9mENFnQ4hMRKhqRkKUa\ndUOd8Ie0+fPqjM0gBs8nad33lOrQsys2eJdVlHriauSAHvv3eSPynaPNcUvU\n1tsVmB/PU6uZCdXgdBnMPwj4IL/OpNxeeMg0WyW/0C4Bno/wjg9zHWtlwobm\nl9Rk\r\n=Y+Hr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d5e18162ee3d69aeff0d489d4f3f73bb1cad7b1c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.38197b443.0","@material/base":"8.0.0-canary.38197b443.0","@material/shape":"8.0.0-canary.38197b443.0","@material/theme":"8.0.0-canary.38197b443.0","@material/ripple":"8.0.0-canary.38197b443.0","@material/animation":"8.0.0-canary.38197b443.0","@material/elevation":"8.0.0-canary.38197b443.0","@material/typography":"8.0.0-canary.38197b443.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.38197b443.0_1593120198243_0.475537705538559","host":"s3://npm-registry-packages"}},"8.0.0-canary.69a35e80c.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.69a35e80c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.69a35e80c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"778551ae8db58d93993cb55b071bd7228c76119b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.69a35e80c.0.tgz","fileCount":45,"integrity":"sha512-XkduDB+LgOyRMHlu18A7g3+3Rw89DVY65n2XJ9hAfj3I6JcjbTWOHXrHLPUpnZxpZzHxHOGc9BexmeBA1syOgQ==","signatures":[{"sig":"MEYCIQCKHtUk4mitYqFEOGMcfJurCMLWUH163+RsDTV1E7cnXQIhANoRzbJS8+OqTZSFw1mbPpgYl7nKMT5RasJCDR5DrTIf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9jLOCRA9TVsSAnZWagAAeT0P/1TicC4T8gv2nkXEShkr\nSDLK1fIyv3x2lxHrtJ/rh5qZVUUZl1P+n/QN31VpmfXmiMJ58fAhrhIE/fIo\nzZVopiENOtE1ffV1pOj2zmnr8QYip0u7SllnxUQkT1t0jvQv5ymGKqcG1Elh\nU5V6dy3vcJkFvwci06BhTMZR4MNs7ajanM/vEEhwQOKYgboCOqzX0HQ5Fv3Q\nO9UNigpe/SMoY8Ce8LyOWj8+V27EOJhXzZOJpm7/oXCRRrDIgiw5TajlGTPk\nXjaUn4Ct9tmgjBnEA+fORYL5Ke+G6voS/xhF+3zweTYBwRRtTzYT9EXyC3pN\nG3In5ruW9Rbq0LtuVBNUgpDjk5bVHtvg9CkwnnH04jBNo7ZZ7qVc0NuKZWr6\njGdhtH1Z32neAc0WRKk1fn9ql2Ztl6J56FbCyL75mKL2D6zoQhMAUJuSKUb/\n1oI+aUX79e/Ak7Equh7AZTBSqYF7OdX8hnQQVqvzBLnyCPapCrwEoszRyZgg\nKyR74r6wKRktctanqzFlMbqa0eFAA8X8Zr1J9MVPuKzPm8pzqz9UCol4zpVJ\nHFqcA1exQmR8PYoQM7oO4dycHG/1PDPnkcrqC2qeG3c3GPF6re8LlMhA4Fbj\nyf634jjoVfCKMWQ2e2tRuPdw6C5pFmjE2Uhb/e80FGaxtpOHNWJb5pm4NzWM\nYWbz\r\n=Mm/q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"35bab77d7ad4b820da5ee4944c2cc2b7fe1533ba","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.69a35e80c.0","@material/base":"8.0.0-canary.69a35e80c.0","@material/shape":"8.0.0-canary.69a35e80c.0","@material/theme":"8.0.0-canary.69a35e80c.0","@material/ripple":"8.0.0-canary.69a35e80c.0","@material/animation":"8.0.0-canary.69a35e80c.0","@material/elevation":"8.0.0-canary.69a35e80c.0","@material/typography":"8.0.0-canary.69a35e80c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.69a35e80c.0_1593193166064_0.41488763996002653","host":"s3://npm-registry-packages"}},"8.0.0-canary.df7154fb3.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.df7154fb3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.df7154fb3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e7c2d197c330da1b60cb21ca08bdf1da208043bb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.df7154fb3.0.tgz","fileCount":45,"integrity":"sha512-OGIv+9OoU8lNFuQd6c7fqgmRFNjU6Hym6m1NzfGo2QuuPcNlk2h0RExRwiCSS00Gfxz4jxiozLNPtAI9CjOVvw==","signatures":[{"sig":"MEUCIQDJi5fg1WgrlrwbBG6T/OSSR/NYIcP+P6/k2Trshwxe3wIgJcEFEExfCvYcCWgqn9v9L6YZe6nweMAh4cYI36sFtng=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9ju+CRA9TVsSAnZWagAAqSIP/Au+3SVwve5X8PI/7fb4\n2snJTd4B3l6aD0/k9Y0IivT1AqMwyyxna+Qvc3ZPob85TJ/0zFiMtTMYBZou\nuh545LT2hZrysW7mrli7nglfmhbeuTN0/MKsVGkAA6WP1Crsg6JLv26MQL6k\nIUyGs1LX3eI5oPa9pJDMLEc1g/kst56PTkFBNZQthD50awDEGgnVYbiz1Mfl\n8aVVbRkl34Ku6iy3zFzyPzToUBl7zHdrhPUERC0TU2yGbQYlHNDdc0F4DtjT\nYXoVyqEc80kBHTJp9OhNuQNAs0mKdTc3zl/l2cAXGiTK53EcQ0mnR/LwECNy\n2C8F8OxhJbDVVtNKA06MNJ2NgMI6RMq3sSER2gAcmYpinmIbZlxuBy6tCMGv\nEVLGGqj2ubZh0g0Ql3h/szgA4MxM8IuUPoW/nVrsyOTW8esxeGjOSYDOk78y\n0DnzARz6zaMLcwOq4BDfrwBqOk/ahtFXRXh8zOCocamEY4sKae6uXBub5c+7\nm3bQToaK2ifcDszGEOJ8bMy7HutrAQT+/sSPFbNvf8xqacZDsKXgzdg0ye3M\n4eTR0LCDrVYTiKohVucqziz0Yk4NnJnmtYnemoOUh3akOhXAkMQrqRX32gkD\ngdgg0/GoKTxF9YYRBeKatMTHxRFSAJ3EeauorGzfZeS0SbLjI4/gFJMGQprZ\nYOuL\r\n=LitJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9081758d517c13eb6f120c62abd9689f1fa99906","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.df7154fb3.0","@material/base":"8.0.0-canary.df7154fb3.0","@material/shape":"8.0.0-canary.df7154fb3.0","@material/theme":"8.0.0-canary.df7154fb3.0","@material/ripple":"8.0.0-canary.df7154fb3.0","@material/animation":"8.0.0-canary.df7154fb3.0","@material/elevation":"8.0.0-canary.df7154fb3.0","@material/typography":"8.0.0-canary.df7154fb3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.df7154fb3.0_1593195454080_0.9152637803927539","host":"s3://npm-registry-packages"}},"8.0.0-canary.d5618602a.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.d5618602a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.d5618602a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fd7b483ab71f71bdefef8b5c258871070ada3b3b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.d5618602a.0.tgz","fileCount":45,"integrity":"sha512-JCn0icPHF+yUu6mTBDvQuoIqMQOS/B/T//Ts/TyUbG/pIH8MtilzFfkcn1COkCMW0AVAgX+fYc3li6kN8aLdXA==","signatures":[{"sig":"MEQCIBk1jrN+P/HOdngsuQSr+t3FrTGKmQKYnNOX5C5lB4juAiB4ZKVDD/BNPcT9Y+V957143IPNVsyV0OeVZBLIeGFbQw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9m1JCRA9TVsSAnZWagAANsUP/i3GZuhX/MFkmkTOJm6m\nfle/ZqyaohHKfwqiD8kWne7e92inGOMtPXP1FAsuHnvXqFjH7eaV+nktejCW\n8j7kruB5GZXaqzjyVG6y9LUtMIDOZ30A0E1UZBmLafWQ2rrrhRGr9STyAOGS\n5PaIZg/j+oN2uP35xe6yA/T6S7pbrayaFbWtepfvQ4q4HOMgqL6grDlHKmRl\nJN/yFTupXnJtRrd5wx5jGTe4n6/5IiFS2ml1sLdeql72KPDZBQsK/KkYWlHh\nYMmR2Kregow6qxcpEkMog7ce/OVZ3E+es0flRqqSHgfj6p/dJ5NqBJdoJPhN\nfJMHyGZs/P3wIQ0Y5P8YjCHIu3XuHJ6TazHuOpvdrr9Fqv1M8sNx5+L//83h\nXhiKRh4Kno3UGMBlranNMohsQhgFi0Dzo/t6zOxrELWWx8og7B7QOOjw2crd\nlmpp2/Jy16vdPf8XaCYE8QyPwbcNNpsgMKd90RTU6JMr120L0jufDkrYQzlm\nFy9vyPOThfytBrimcQADiVfiNkW67cfPl2Rp1ImPKOQaRLwZUjGylXZ5JPDg\n8tHdAGT5owY8LWU22Q4pa6UVQRaTo/SnQPG0z+9s8HAp/782sSclJo8ihI9R\n6k6J1xq1XoYy06rAgXLNaq4/xquLI5frDOIP37VmybZWBd8+ANqGcDINBhZy\nbGOy\r\n=FHEQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ced8c184e8043c7ac8faa813b76b9661cbe247c2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.d5618602a.0","@material/base":"8.0.0-canary.d5618602a.0","@material/shape":"8.0.0-canary.d5618602a.0","@material/theme":"8.0.0-canary.d5618602a.0","@material/ripple":"8.0.0-canary.d5618602a.0","@material/animation":"8.0.0-canary.d5618602a.0","@material/elevation":"8.0.0-canary.d5618602a.0","@material/typography":"8.0.0-canary.d5618602a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.d5618602a.0_1593208137349_0.02109788300659554","host":"s3://npm-registry-packages"}},"8.0.0-canary.e590b376b.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.e590b376b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.e590b376b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0059e4a01577e08c1a1c40dbf431835c251a4adf","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.e590b376b.0.tgz","fileCount":45,"integrity":"sha512-wIKxZEVxjzq+Di1gzGAVxceP67hWCFN0+G63K3Bz+TK8QKOrjfzp8dLfX4658kdLNoASfzRIM4emFkIIqhWzoA==","signatures":[{"sig":"MEUCIBnMd0rNNVbNAnmAeP7ChJHIEqW0gR3lLl/jJcCLMNe5AiEApjM6eVdz1U3VUUW96Q+87CcY1pWuoyQxlG6J9cR28DY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9oOmCRA9TVsSAnZWagAAjtMP/RpJHb3l7J9InL8A+nOe\n26QeV+Tqg0ThuKFHYQs81WY9ZS0b9YfQ3DXGeT1qgw+SbTNenMrpL4ptbHj3\nziK41TQWLjlSPjuL+/kM4sSuPbZaHmW/tl72Cl1ADjVGCu55BTrsbppiJ6F7\nNDl/QoYs+rjnNW7eRt3nNF2Zefh0i9TWIGfYyxWmVYV541DqkP5yww01hdsw\nBTtgbmI3JnfQL35CaG7EeQ284PJmqLcK3rm6jrwt5/249kz2cvvMacd0jzw7\nTiniqewnayufZuGLvwuh6pJNqDZzdmXQffO/I8KwMnYNefbY79nLFcJ4VPXg\nvRFZCVz30AIz+6d4hnPQy1VYEJR0bN+IHQZ/FKvK6NYO7pgEGjkGtdRlwip+\nbB4YGl7am76DSWkyJqJoR1zncYdMfuP/6K/QSPC5SyMV3FXABECGHEESGfGu\nD0BfxIgk/e49zKNlZ2Hr7C90RLhjQp4ecOP8z5OqWVG3lcjYDVNUKegS7Kl8\nmbFe8GvtMhO+3bU7yK9VUYpqL7cF50Pewa6s3aMbNWypJGwU6euo03RaK8yh\n8NHoPGxwj6V5FqfPhjjcYCyIocwKXaxN6uz/nV0tBtrstuahKFKG/7v4A0Gs\n71ByOY9sia/luSD63b5MfYBDEKur9uh+8PBmOu1bmjeC8KjwaKfRSVO9pfBb\n59Pp\r\n=oH2p\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0ddfb390b804034a98ec0b8e7741dd3f3250b5ab","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.e590b376b.0","@material/base":"8.0.0-canary.e590b376b.0","@material/shape":"8.0.0-canary.e590b376b.0","@material/theme":"8.0.0-canary.e590b376b.0","@material/ripple":"8.0.0-canary.e590b376b.0","@material/animation":"8.0.0-canary.e590b376b.0","@material/elevation":"8.0.0-canary.e590b376b.0","@material/typography":"8.0.0-canary.e590b376b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.e590b376b.0_1593213862473_0.7616255082994805","host":"s3://npm-registry-packages"}},"8.0.0-canary.0c9d6bd2d.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.0c9d6bd2d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.0c9d6bd2d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b87ff37e5ecf9b49767231fcd22be9b34a3ef6fa","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.0c9d6bd2d.0.tgz","fileCount":45,"integrity":"sha512-6PJ4BSokb0Jp1eyQ9+W1o9W9Kwna9BuSz0C5q6CzDAa6MerzLUPV3bQ6DrTEfhLhwW8+5i974OTcNnynWsRucA==","signatures":[{"sig":"MEYCIQDPpgMhd7e1u+jt27WWkDrcxh8XRCX/m+X8aOQCznzQ8wIhAKfh6cGD8/kWDdNME3d0qaKfoBb7tSTY+6bJMowgGzXc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+iHQCRA9TVsSAnZWagAAQBcP/27AyyRLPZI7bi7g0/OV\nHKPxRDoKpiNPkxFzCo7YoMOqr8ZMw1l6po7m0OYQ8Mox0QnR//BK2y9cKuNI\nOJy1fRIg/NXF0ZnMs5dY51Hq5e96oAD3rs6BpEii30lrg02uSqCA/cObjsFh\nrBzGAgskVNuwUrrYsUsXnCETVwYwN4sRFEueDK+Bklpqf/J3oMrKfvlejhW+\noafidk5i50W6Esd9UdNvWq+dj0OcJ4tcbvTgG/Lr8udaC8P87wGRdqe65p4d\ntbiS+AS5HFg8cDocFMZKMkLVFuMwk8KQ0LBQaIGNp4JuMIbza7DnLZXm2Fn3\nAyZGYKbCgw4DgiTNIwiYgkVWu4zeLT0fpGzrdlYoAa+ryf+krGvqv9LtlFW+\nTvz5BkBd7CpTXQbW/kb/GCUngrxdkoWJN1WeKD6aAaj6PG9anINxsodXLiJf\n6Uf9RiAg2qK7UBUs9Mo/uO2uw5oaSLgQwyMpkUkfV3fquqNyGR9iyn82xopS\nwXfOb+SFtGPqjPirh+XmluAvPloEjbK2IDw3JsWpJsrrr/YvBNCH3sJbH2KH\nt8a94+ZZSA2fHQZku38Ax3ixvuq58AXIwlH0aJQWPkONlB49GDBjoZZtQX5N\nij/XlKV/vPXUtUchaubRYaAx1oycdb/6Nq/OQ5+SvfRPreyDgAXxH/aAp4B2\nUOKS\r\n=PaEB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4f171433da859f637823aa04bc12d72783771f90","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.0c9d6bd2d.0","@material/base":"8.0.0-canary.0c9d6bd2d.0","@material/shape":"8.0.0-canary.0c9d6bd2d.0","@material/theme":"8.0.0-canary.0c9d6bd2d.0","@material/ripple":"8.0.0-canary.0c9d6bd2d.0","@material/animation":"8.0.0-canary.0c9d6bd2d.0","@material/elevation":"8.0.0-canary.0c9d6bd2d.0","@material/typography":"8.0.0-canary.0c9d6bd2d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.0c9d6bd2d.0_1593450959571_0.7495277109346528","host":"s3://npm-registry-packages"}},"8.0.0-canary.c1fec4246.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.c1fec4246.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.c1fec4246.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3a283765397b4ab7abc2191b1935f6434372bfad","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.c1fec4246.0.tgz","fileCount":45,"integrity":"sha512-4ElC0GifcuGhjP9bGGDbNA09fB9bHrOS3Gn1i1FYeoQTWSO0jpnwp/I4jxKJwcz5NH3GOLkmim/+/liOqR4E+Q==","signatures":[{"sig":"MEUCIDZ7b6ThGPJFDaoyY0+ZgsXArDPtv7GxsIsOzGs53YcvAiEA+l/JJE37xYIhTZEqhjUKbmZsawpikf5wOO2dEWBb9rM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+iVxCRA9TVsSAnZWagAA2QMP/1T9AaOgsfaMHj5nuk9X\ntbPzh1XNgxW/VL7vTcBzcjXAuACYwlPPoucRaquPv7VnQYJ70UEEi1A0rZ9o\njwBgY/rdd9x4nMnPCqoVP0w48V6Yix6u1Q+ZFrgdTYVHKrMFO63YwA3VL6Zs\nmTB6kaN5VYZvL+dGLBM0a1wtH2/hqLf/CvtxCFyo3J38/YOmShIgNt1YgFoD\nwl/wii3V7olt+Yh90oRfq5vM5rEpiAXmsWVsC/vLmsXjn6pIZNORAVm4ogD3\ngXjRO86WYO2LA7XgEUNuGTbjoEPjHgJTsiVLcT0amzBtJsBn2TKFj5QUeVZA\nuF998t4s+oDplbk76/XSbzXcMX2JfaddQwv/IY7acHi2BLTS3X8zAUVMiVAU\nYePkeQhaibX+wYPLH/CDm20YVd9HDB2AjllaRgRgRD2d9P7Smks0QyE/Qu4O\nyfSPEcieO6xe7IirWtmWMAQnGEIzFkZbGxxrAZTR9o3SOA2jsYRC+YhDntsa\n+NGhHAtI+tNvpqca7Xv/D2s4Hw/XyRMd3bMXLz63Usx5bj6ELLi+Li8hjQvc\nYurSdNrvMWvxb2UFF8GlinGOj8q3+ggN/XYQRbgggZsP7FDZ/JjmoRzMOdrC\n9jXnpG7emIiLJ9WFwFU9YH9NvJbiOG/PTUahF96PiE3fNVko3hJiT28h2Mk5\naYaZ\r\n=+OR6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0a588e37208b314f42e946ab4add50d0ad1ebf7c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.c1fec4246.0","@material/base":"8.0.0-canary.c1fec4246.0","@material/shape":"8.0.0-canary.c1fec4246.0","@material/theme":"8.0.0-canary.c1fec4246.0","@material/ripple":"8.0.0-canary.c1fec4246.0","@material/animation":"8.0.0-canary.c1fec4246.0","@material/elevation":"8.0.0-canary.c1fec4246.0","@material/typography":"8.0.0-canary.c1fec4246.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.c1fec4246.0_1593451889068_0.44203676454248453","host":"s3://npm-registry-packages"}},"8.0.0-canary.c678a9d34.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.c678a9d34.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.c678a9d34.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d65a95030459771f334d9d01624e219c9e578650","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.c678a9d34.0.tgz","fileCount":45,"integrity":"sha512-1iP1AvRRI95yMfKUvpHagxoyFIlC/jag1NL8q63pNiR+P+GQF+sbkqc5AUYPV+UGRVqRKS/IFa7bsRv0Igxalg==","signatures":[{"sig":"MEUCIHKwcYqpB2ibATUL84kH30p4BEsOiWJ4X8Eqrl99X+vMAiEAyApSbKlypKK3HIK58ZRE/z8LkN6ng4isNa+pbQQEPGk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+ipjCRA9TVsSAnZWagAAz58P/0oFy523aJvACeAIs9hh\n4twejiJwOw2Sa86+WZEVNz23PhpgI3loSoRgMOngJym2aXA83q0Z/vf/Ddmw\nIne8BoxpuTWpPt1t56IV5mhejXvzaNF8AzSuKbC9gafP75mX9sdgfHgQ1kP2\nUXMRaC0XFdybUvBr+8UPjBqcLPgXaFbUsd3uaLYEBhLpeVBWw6aGzv31YGeR\nXbruRvMBy7M8cC3UsVP0IXIjtzO6RLvTRidqfU3TUO3KvfwA+3tMbv+MzLvG\nGEf3ksvdrMqdbRMFSg319ETdUuwyTWwmpCJun7jjRWYVj9/rpgUrKZxsU09z\ngkY4ASfZPvFb4uYWBJ+BJ2RIrkFw5JoJZx2KLPP5ZRnKLh6icvIXBGh6Uudz\ndQ5QdgMDhGKG2VxIgzR/XmCuoMC6PgGerkWBR5aoPMpcnDcXsCuuTcgb638O\ndTtohCE8inCT86HC0ydgEQp3hKItaNDDyhkCBUNlCSqWgiwbe2yuMSmTv9Ud\nkdsvckw1/TIX3mr5FtEEP9bnJQnWcdyH6QOPttbWLoF6uxkjLVvgJEFTkj+N\nacfak6eBvSzzZPFBFAs9/rBinMkt5ybUFYrIwQPF4zX8ulA38CHiyFautUUc\n1V16mB0FgaYhoYNwr3Rb3vuMQgftujMk3NdEs3PZF6Qusbvl/JQYrct80wVT\n8Kiy\r\n=F8Tx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bc361f7c6bcb498f3a6dbbe6255c06a66b7dea5a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.c678a9d34.0","@material/base":"8.0.0-canary.c678a9d34.0","@material/shape":"8.0.0-canary.c678a9d34.0","@material/theme":"8.0.0-canary.c678a9d34.0","@material/ripple":"8.0.0-canary.c678a9d34.0","@material/animation":"8.0.0-canary.c678a9d34.0","@material/elevation":"8.0.0-canary.c678a9d34.0","@material/typography":"8.0.0-canary.c678a9d34.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.c678a9d34.0_1593453155212_0.8739732451127176","host":"s3://npm-registry-packages"}},"8.0.0-canary.521afaf6e.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.521afaf6e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.521afaf6e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3855e50001277532e4c83496518038a64776d8a2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.521afaf6e.0.tgz","fileCount":45,"integrity":"sha512-RjchmQWbblCDQIXRLHx4NCx3peBZzc8nSvzs67toOXv386z14M9PBn0mKEjbxIfnfOKe8J62vNpHy+qtJ2s0+A==","signatures":[{"sig":"MEYCIQDKjDReZT3aISoM2kOHZyextcY2R0t4RgTC845ZL02cNwIhALv7q43TTIiMNNVB2Jxw8MiXbYpcI4WtfHSuPxbpYauM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+1TsCRA9TVsSAnZWagAAsDEP/25yomu5mXr3li8Vse9T\nH21VSQxZex5T0AN4XwD0akZbTm9A12ySnYqcVw+bgnNkFyzTVDncTZPyD/pv\n7aDsSmgOVBLNxBTD2+IwXtsC40ZswuXMRwHOrSkIYdF00xsLDVtQDAul54wP\n3HsDybHFgkOwuyL9+wUAfI549v5uvxwnzxg3jciR4YZkySWAlORVkuU6M2w4\np1SfZLCDfhzIN4jI5ZAYnEARjnVafFAgHwcmTXhWugU/Mp4a1v5coHPJNheV\nAsuFjxVLAgDAsCPfdWiHQswzogv2iW3/0hYX/MBnASOWU90mVhbI/MmS5/G7\nnEw+y8UlIIra09XN5WbnEtmtpdIE3pKvijqhCUKGGG+5ErLatlOkDozEgOwn\nefpRiB+naTsBAXnOXqweKY2PbxnI0W6KgzQ/lWPeOY7+3/n7lYOmoY/XbTPV\nmSHPYg8pNVBzTi4qnCl9H75Oc4SToGBEo3qUXeJMC1nicd6uhkOksNVayuYL\nYMh3ZY/NNvwuuOu/WWl3AVpTTD28gtzxIc0EAL+WgB0pOSsj2XDSAxwI1g7I\nAsR1FjcTDttOCaluuvUpSx3oNXom07P3mVppQSQq3gA5P2c/WBF4rBKMUlU+\n+xAi5DsvZKXY6hGQCWOyBOgrOQStrwTfMq008zzWkWVOLTxTRdGzdoADXuJ9\na+cj\r\n=1r+N\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7ef14e207a6031cf299541a4dd72c2eafba3ef91","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.521afaf6e.0","@material/base":"8.0.0-canary.521afaf6e.0","@material/shape":"8.0.0-canary.521afaf6e.0","@material/theme":"8.0.0-canary.521afaf6e.0","@material/ripple":"8.0.0-canary.521afaf6e.0","@material/animation":"8.0.0-canary.521afaf6e.0","@material/elevation":"8.0.0-canary.521afaf6e.0","@material/typography":"8.0.0-canary.521afaf6e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.521afaf6e.0_1593529580304_0.8373660461866319","host":"s3://npm-registry-packages"}},"8.0.0-canary.a2ad48839.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.a2ad48839.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.a2ad48839.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a173b16cf255fbe21e3d62aa8a16582ed3dd5f23","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.a2ad48839.0.tgz","fileCount":45,"integrity":"sha512-1nVT8nDeNjyuuYDgGW2+DZ0Tvj3pbj8wISEzzUvr85uY36ubdpKLhCcXZlYwRuz3VpVUT2VhtUs9zF3is1HAYg==","signatures":[{"sig":"MEUCIQCsVgt0gb9WWEXB/GQd0VXZcJTXBeQbhUKxfrZIMhRiGwIgfypLMPyU3PvfNCZdbaRsAiwp83ENdEcMQoFZUDx6MTg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+49CCRA9TVsSAnZWagAAlGwP/itIz/883QdgDsCUF2wl\n1TJ5iZXFn/AsAYKsar26UCpEJbj5elgNCUUyQy3HEcmFDljldO9YaXdXk8b9\ncyjdTnsnSpC9wgxXa8z/F72vB6mzXst45q6rgdCKq1gqr5OeuCqhowlIpqlY\nWvs4wXIryYiIPd4qMSk2kob3eZvGPHgIyH5X3g1OUhbZGegPvz2GQrGQVFev\nD/K1g6Eaih2/1OOSAtMHl7ABA4ch2zJfDg4hifw8w4ymJyqZanEkPpOEpun3\nxHI0mF74HurXweroZe7QUaPCD/bzTFB4AEWTZE+rZZBcOQ2sJZJezUr+5lEv\nAz05XLTY86RNfE0EIV+C5ymHQ/njFz8Q/iGXJSpEykLSiddhmM0uIAu8D9lY\n32UICEkgW+CE6heJmVsgGumiwHDmdTCTV9dSg3YgwUOQ3tFWhBCkdCpEZJlZ\nmlcUvrbWSTph01hfdz3lEAoczgTfhh0Rq4fJ31tgGMgaRTQEwtQ99SdfT2E9\nBgUnunXOD8XEdPVIwbAxw6cE+UQ7+8ggDIiCDWQI3algoGhC88NIB1QBx8lB\n10H18bM6lNOoKIrbULuLZjJ2w/6PJUR3BnfE4kPV7WZ7f9fGuxnKsFvlJSEC\nvu2n0yTuCjLV3U24cnm3Cfb/FqEFG8CvsdyyY1pch4M4+qm0rn18xZPeiere\nhndX\r\n=exWv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f7f949a98e604fd4cce2507e8d63c145d2f34e55","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.a2ad48839.0","@material/base":"8.0.0-canary.a2ad48839.0","@material/shape":"8.0.0-canary.a2ad48839.0","@material/theme":"8.0.0-canary.a2ad48839.0","@material/ripple":"8.0.0-canary.a2ad48839.0","@material/animation":"8.0.0-canary.a2ad48839.0","@material/elevation":"8.0.0-canary.a2ad48839.0","@material/typography":"8.0.0-canary.a2ad48839.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.a2ad48839.0_1593544513866_0.68232611314315","host":"s3://npm-registry-packages"}},"8.0.0-canary.ec2385881.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.ec2385881.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.ec2385881.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"843926a4a6aaad63eac7ae576998d3ca08e857aa","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.ec2385881.0.tgz","fileCount":45,"integrity":"sha512-0S+90vNa3yV0FpMzqg/9o7WeEhKMghPG0UlQ878+Gk4dhwt5WWyoS4H/HdGV1AtdPmd79O3cq+efZHNimVKzpg==","signatures":[{"sig":"MEUCIHK+uHAhJad8M42NmUDstNPY9+zg04T1SXB/ilfy07idAiEAn2U7KGKGL0pn8OReNKSToghwmbPiaWMt/EudVIOxrVo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+7MFCRA9TVsSAnZWagAApSUP/RenNN9BU7b52EiZpoTW\nHASGaLjaDCAfxnHMKOAzbOKfr7kcc5kWe0GFhp+VbgtD5hEmPK6aVxpZz8TD\nrZ4bKxNZJnM7wNzNmvKIfqxKW/ymyDiZThYeRQlbBxvMMQAc6FYWhOpU4h2x\n55i/+i8fTYlBg0wsrt95yiU0GbpxbK+ecOL9rjBLa5x230yjcaN8WaF/NWkG\n/d6OS61SvwvPQ00kk3gA0bypAWViSgkTnlMEkw2UJJ2hrjQo8RiCDtLwHlHV\nO6A76b7yvEi9sdiIc8Y2QwCz2WKyup8duNH3o+zQM3elI303tjjJ0Thws+6e\n8FhM14ngDOq1RwztplqUgWj6Sk4zeVolJqOKmDwobvIRFIaZuKq/ByQAUy4o\n7SmXtBEJwAgHW6KU1+2cQWLjxJVPl2uIdVbbrv4nhVdmLCBM5yAcMKi/0pK9\nsYQkXbAPZ5L7xaHoczLJ0RaTRk9cAKuR+92BSdB0q37FIIL/qzMzrr8B2lLk\nwHD5H2FLZ/crO7ikZPdq8JXLcfCv8G8joyxfwl2SnHivFb/nY8h6psSPzeHu\nyH2avwIUUxk5W6fZzKIjf/52FCtel1uUXO2+wgkRhWiA9C5jWPkqRBtOX95A\nVuQ5mdvNajoNKkZaLlt9B+2V6mLx6TEVjim7ph+Aa3y1id82l/S7eYsK0nee\ni4We\r\n=vTui\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0039d314b5ff29856a2f17a5ede426f3f01c80bc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.ec2385881.0","@material/base":"8.0.0-canary.ec2385881.0","@material/shape":"8.0.0-canary.ec2385881.0","@material/theme":"8.0.0-canary.ec2385881.0","@material/ripple":"8.0.0-canary.ec2385881.0","@material/animation":"8.0.0-canary.ec2385881.0","@material/elevation":"8.0.0-canary.ec2385881.0","@material/typography":"8.0.0-canary.ec2385881.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.ec2385881.0_1593553668911_0.2955501053122891","host":"s3://npm-registry-packages"}},"8.0.0-canary.610c26c4a.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.610c26c4a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.610c26c4a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a7284744e67686f66410f84c81d056d91c0a068e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.610c26c4a.0.tgz","fileCount":45,"integrity":"sha512-p+UCVME09kJUDPaNY4RTx8SYMQc14CgnfhlpnEE5v1BQoTyo5olTIxYyIqKjqjm7dkihfYX9PQB6AqRtSl15Aw==","signatures":[{"sig":"MEYCIQC/LMTwKLKXTEBjbwFsk7qgTP39TC5ZdrgWhbxziXTaTgIhAOIFI4O5kY8Pmxy3S2tc9WRvMkWbFgerSWE6s2z3Werm","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/KRACRA9TVsSAnZWagAA91YP/j0IG2392+kKteHUckVX\n+CdzgdHWMhblhUxaYzIbGd78vFt83W6WruITg+2VC8du7yTSUua9MKU6nN42\nT+RIVKypkxlpFF0IQCXPAcKUGdqeCLepk0t+CeCG9lKak/FyVLU1YmzfgRrm\nibYBoYmGGZrwQRMtRu4L7qWTAbH7vOt2LR1dCGJZH6o22Y3By1I/sc38L9Ua\n0ES5RmFrTEh6ejeUty/Wbc5NDMMZ2n12X4HE/bbeuV5sVjHQ9RTGrxwQDl/R\nqsKc67R/PF0zV9vpBNDO5zaadbQ6/ho1UqD63mTrjYuEaJNjWfN8fOQ7RheL\nZOCo0dqLtmiP7Yru8/olTvge00CkCPXPyxHpKjqW6EQyCu9LDPOKF9P+R9GS\n2t0KFvKhvzlBQ3Bt6eUqs1qDFcXMCtXgHdhw2vu2MpYYK7Ghc6J+SeArq3aH\n7fZ8x0TOhOOLRvF2BhOhMfgJDYHhMndKE5HJ+2yXew0XVXKTkHvz+wPCFKUo\n2zZWspEbVyCklLI4sNSFYcSm1KS9r66aobwJ3jxQZi+TiVf6/pVfhyFv7+Wq\nxsWMyPEt1T3CPGC6n+fNlcu+xSc1fcFxYmKVEW+ah6Rxm7UHM9TqyeUBwIH6\n8DdYfUhnKYoZ7TLWRa375HR7j/iWT1vIjnyMdFMMlhDxaur6vWDB/HIWJ0P7\n9Mta\r\n=XBvr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"84352d6873c8f275f890267635fa416189f57a3a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.610c26c4a.0","@material/base":"8.0.0-canary.610c26c4a.0","@material/shape":"8.0.0-canary.610c26c4a.0","@material/theme":"8.0.0-canary.610c26c4a.0","@material/ripple":"8.0.0-canary.610c26c4a.0","@material/animation":"8.0.0-canary.610c26c4a.0","@material/elevation":"8.0.0-canary.610c26c4a.0","@material/typography":"8.0.0-canary.610c26c4a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.610c26c4a.0_1593615423888_0.5067140469196316","host":"s3://npm-registry-packages"}},"8.0.0-canary.e2ea4a99e.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.e2ea4a99e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.e2ea4a99e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cd331e0d3c1422e542a20dc63c5ad5676ed377c9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.e2ea4a99e.0.tgz","fileCount":45,"integrity":"sha512-FOBqI4BgeOKj9sFPIXbMX2AtrfiBJmbRjqFgYLPET5yoMM9qbVI3Rj4xFvv6PrKqvi8MTtBLpJMPubbRyuXriQ==","signatures":[{"sig":"MEYCIQDOxnusyKIqxfY61zVGKLB0V4Y3413VZektUgfgBWoK5gIhAJDWwe/CYzNvujU7tb20TK8AOX+tScN7x0Y8fjeeqwG2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/OO6CRA9TVsSAnZWagAAKFgP/i0NKCvcef5zGChcaG74\n9K0Tc8ZAWpfMq9Y2zdO21tnOC1EjLR7LqQ8/atLB2RxeGoIslFbNm51NKA+o\n8vlC+doapr83cBHaw0l4aUewxo7QSKIouzEo0dTYZAA9WAGE6DCKLV17GRp+\n4ZlYeNmzTuNWH/I1M+rocT8IJT/ptCF38qiV5dvuSZeSPKOHKhU7mFRXZlZ7\nlnKMTMRfJafc1YuNpTliWrLDMW27i3BXemMgIyB2iZmTiErlheVVd2hvhiUj\nF9JprtoSdylEDj6fLNjIUe5G2SYO1/pzP+KqWfQUZ1/mRXKbSzCfD2Mu3hee\nLYnuCiGtaSrnz9AlOpmh/mc/3fMzkrSKV6HnmO3vflWBNNcSL3bzeinwwyql\nt46PRnqD7VhNhWGrnzLAUCenM72RByujc6NScAWcSNQZQ3QsEHMMxF1D9qjm\ns3MRI3ngqll8Kcssp7AfdL/ygSaFfWJHiuPETtoYQmSI6gp62XNN7zUF14x3\ndeCevUiIQQf/TSMJ9LITzqO4DXgggKoAWlkRasXE+BmZDKgIKGB+TsOfotM3\nCHr+uaZoCABnFRg1fv1ioj2RYvEdvwLMgtCNlHa9CARP69W+S6GJTeWY6mhV\nWPWVnuPo6e/2T7/Oj1mX+OZTxkTjwx3pmjXr/dTI8zgWKi+bd0KUW+OXJrnp\nhRGa\r\n=pzjs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"42e9f40d91c643a9770e5a563a204c7f36196a3b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.e2ea4a99e.0","@material/base":"8.0.0-canary.e2ea4a99e.0","@material/shape":"8.0.0-canary.e2ea4a99e.0","@material/theme":"8.0.0-canary.e2ea4a99e.0","@material/ripple":"8.0.0-canary.e2ea4a99e.0","@material/animation":"8.0.0-canary.e2ea4a99e.0","@material/elevation":"8.0.0-canary.e2ea4a99e.0","@material/typography":"8.0.0-canary.e2ea4a99e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.e2ea4a99e.0_1593631673974_0.3808699504855768","host":"s3://npm-registry-packages"}},"8.0.0-canary.a78ceb112.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.a78ceb112.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.a78ceb112.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d84baf4a91cbaaf83b4bc7e798cbae0adff1b1b9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.a78ceb112.0.tgz","fileCount":45,"integrity":"sha512-27bm0xPxepKSVh04FK7m0zUSP9FveIXv/qa2vJI3XTZWkFiNPrF+MGwkMPo83Z5TMqMFDRhDcjzSJlo9H4IrOg==","signatures":[{"sig":"MEUCIF5jYOESzl8LxPycE0EfP0pnO+cqQ1hLRiu4vqRl2LMeAiEA3o/ESHLZXwRXGOrRSEmW4Ja/O9mOHZCuoqYQrUm/33o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/OZ6CRA9TVsSAnZWagAAU7cQAKR67TBT92k546AZCjxI\n8uAnPWs5Y35nJ8zdW23pcKao1Mqx4Te+CGKVVO3JoP8CEvu86d3t6j6JWi5N\n2v2wmfG6EgNx7r/Q17Zz4MxHbVi+L7Az+d51KNhQkH3X988MULvJ6aQ+XjPy\nYYTLERglfNGi3hqc/fwbrnCzU/rLlSsymq7SKa5ZJ6AKTGa5WwE7x4ZRwJww\not3GnvjMMwuV7DwdNEQ79mbkefVNzuMQRbo1hqnc61bxdNsadnAv70m0necs\n8gRU3v3R1C/UmLHBTy+v6tpC7GGLTzySdWQVH5A2Bii5/rTWCMar/XYMuMSx\nCQNEf3/gRFoVcdhI5UjSPAyo8Ucq9lfxJiXYdZ5HDtUhLXrQvI6NscDoOou9\nedUgAir4oPY4m3YkGuqY+ZXLWqTMKhXLINXILujCpAJdSvXT8hOdZNWw8tDg\nFI9W421WCpo88bbL6SpoW8OHJB6Z7hLdbn+WoZXhrWEbsa4PrY/k9bdAg5k1\n9sjY1VjPeb7u0MOO7CLfvEh/mlpvggShBsm1ZwB7C3kVRXg2PtcF1IFP6U8V\n7JaKYqoaDI2RJe+OHDjy9jINbjGnEk5OmB92EaK6y+XGNZ/bLzH9PjTVYW+k\nsrsJMnYc2t3Edmr87CNTy9jV4rT34dRZa2wGj8ari1o6XBrNVyHwBUoMniAv\ntzH+\r\n=fEi4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3a38e39f3d172dfa99254185d8b0d4c03dcc61e3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.a78ceb112.0","@material/base":"8.0.0-canary.a78ceb112.0","@material/shape":"8.0.0-canary.a78ceb112.0","@material/theme":"8.0.0-canary.a78ceb112.0","@material/ripple":"8.0.0-canary.a78ceb112.0","@material/animation":"8.0.0-canary.a78ceb112.0","@material/elevation":"8.0.0-canary.a78ceb112.0","@material/typography":"8.0.0-canary.a78ceb112.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.a78ceb112.0_1593632378274_0.8971383190813711","host":"s3://npm-registry-packages"}},"8.0.0-canary.b0c456d33.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.b0c456d33.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.b0c456d33.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b881049d36438e5dd72677f58fa05b6c14dbcb42","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.b0c456d33.0.tgz","fileCount":45,"integrity":"sha512-/0RgNSupW2heWBSN7xUN9UGju03y6p5n02m18yydD7VPLu+aGDDJWdHLMzmmnaTn5sbuAV3RZtd6Kf5fdiKxPw==","signatures":[{"sig":"MEUCIC/paJBrKqYkrUQl4Sj35BGxmbIgl6eenWPVZH8yy5K4AiEAj3ie7kPIKcL9eHyWQysGvsw/IdD+tqUlnbeS6GGNftI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfA6jECRA9TVsSAnZWagAATgoP/2/rye1Cl5rAYsVUoQaU\n7DF2Zz8Gc28U3oTg5TkTgkienobPP0DhWt1/NDKtiwjyWJ3QcZOTJ4gllzHk\ndEuURoU2Hy3DzNHcnnaveRyqB41yKVfFXYZ8xSMHtSUxZMQiDt4zM9zCKTwW\njXJ9u9c6ImceGaqYgy6lC41pzqXS1TPZn8FCB02C++h/KH1UJEmU0DEk5MIr\npC4icR9qisa0Qo1lwGDVVcLSgsuy+Dig12w0hvrf00KQid2lcExjAawrNaAR\nKnlRTyHtqPSmYRV1H+xd/HEnM2cx3pIYtCmG7XSeMog9KMBf4wE0GD87Vfj7\nLJIkMoG5AG3ASPRzgj4Y/p50JVWffDnClMt0Z3iQREsgIpj4gcgWJ7DN7EDI\nBUs4zaK8wn+3oKbrblmHOUKaojhSdyXRTDTJjRB09yz1Sy4LB5YRew+wfkfc\nDzehqC5zKmWh/uWgnDD0nC0pK0pr/6yvheZ8HSY6vxsUieZQIgZEUiacjwJJ\nt2EwkqVg/Z7aNWJdDOb2ICoTgcr/9bnE8JaKYdzGo84PHbS/Mupl82qMECFq\nknv6bOT++pBxi+MhzlLgKAR3CJ8TeVvXcVRskFUFSxt99ZxQx0Qid0RhLXxu\n3umT8NB+NAS8P4Rl/OD32CNWpXHigtZujyo/tATZfGdPZXQ+w8ipC13w/v3z\n/tJL\r\n=mhMS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c9a540f1489e069a2e5cd262f5daabc034039d2a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.b0c456d33.0","@material/base":"8.0.0-canary.b0c456d33.0","@material/shape":"8.0.0-canary.b0c456d33.0","@material/theme":"8.0.0-canary.b0c456d33.0","@material/ripple":"8.0.0-canary.b0c456d33.0","@material/animation":"8.0.0-canary.b0c456d33.0","@material/elevation":"8.0.0-canary.b0c456d33.0","@material/typography":"8.0.0-canary.b0c456d33.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.b0c456d33.0_1594075332138_0.19893765220648274","host":"s3://npm-registry-packages"}},"8.0.0-canary.2e5711e04.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.2e5711e04.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.2e5711e04.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"55c088f77d54543e929e58c7568a1603c1513087","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.2e5711e04.0.tgz","fileCount":45,"integrity":"sha512-t0JPPin7FKx+ruU/pzLKRlcUtwB1QKR9+y8hB2M7BxdKoeK+lAP4gZT/WT/x3Cws7kcwfHd4V6dDXXkZ3Ej66A==","signatures":[{"sig":"MEQCIFoaDFm3aDmlEjxfzIkOmfr0sXEJwzTfPb5h0MtsKQzJAiAbadf+DqX/SkRu0JcV+tj+ZXncDmHJZgIIyTB7Wdxgtw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBfj4CRA9TVsSAnZWagAAMRQP/RMW68ODnbNPXntVVMpP\ng/dKcrUcVTMn2JjiilU+rjVjEF7hBUwg33NZdqOjJaC8wuIqz2yw4rOSqzsp\nOaRGFo+W1PwgCfW7D6LTvzfFD7QPmPpX4D59DYD4BU6NbTIKhuSYlOJ/88BM\nPvGs8s3ayqA4iR0BcmPJ7u3vvD7rU6klXg8QrEMW4Xr1Ox34zAScfd9PvSF5\nZjkxHmEmLagnCGr+q0JyNsZgJcAtd8eM9YRXBJ8q3Y3jF5/YmUvmUm4nen4j\nCXYCjM6+geQz99MBPkw8O7Ry49y8SKAxqE1QLDaXh4Fv4ZfSHoXcfLurhdEi\ngN/2nVliHqmLhlgYd7Gw7iCljCS4MzTS64D0fVQi7s7GKL5KGy7eL3EPgpiu\n/O6jTSVtLkbX6IX0CtFo/rqONpdds17qQUL9cBcVgypEfgn5bx9fs5vMsTqh\nY8YyX5gvwGvOOcYccl4lgnA71dudX9ecC4q/8DaohbFvONf0IMtZL0TBFrGL\nTpn/HF6ehC2hZM9AWP6c6lLKAl+YVpY2VfGCavcSKNXGjLdH67LSZ9wgrqq0\n+rci6+UN1vjPkJBs+WpO2WgDcAdqVEQ0EW/fZTcyOa85AyUYUW6odSBmPloQ\n805QHxBT+rKLr6WEUnd8cDu2UFmoMC+dkhirz00md43nxQxsO/Pmfp+AyNBj\no5GQ\r\n=Gu/u\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4786b99e99bbd4c7b7f10a9111b884c165f1bc7d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.2e5711e04.0","@material/base":"8.0.0-canary.2e5711e04.0","@material/shape":"8.0.0-canary.2e5711e04.0","@material/theme":"8.0.0-canary.2e5711e04.0","@material/ripple":"8.0.0-canary.2e5711e04.0","@material/animation":"8.0.0-canary.2e5711e04.0","@material/elevation":"8.0.0-canary.2e5711e04.0","@material/typography":"8.0.0-canary.2e5711e04.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.2e5711e04.0_1594226936105_0.489533564102701","host":"s3://npm-registry-packages"}},"8.0.0-canary.811fc5d24.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.811fc5d24.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.811fc5d24.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6ff24a423e70c544d17ffd328e0cd98f78e6cb66","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.811fc5d24.0.tgz","fileCount":45,"integrity":"sha512-n+05aHbVNm/MuSxpwrzMQRGBKWTMxhP5atPfRbynxNVEf9J+kgu7J4UJuyhCLmx3LuNlmYTcfXGeJUiOLZGYwg==","signatures":[{"sig":"MEUCIBus40KyqKFay1fhElsrkJr+NWyBpaeHocBImDCLZRb5AiEAzGPI+sbaahCgyD/Nx2G9tPnXdo2nL4NiKCR5gX2D8Mo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBf91CRA9TVsSAnZWagAATp0P+wWOmGoBb5PLP8CJAYZf\nIegwrQDqMbl536WDHbEfQpYF02qzaWoF8f9blEOtDxHzUxEYOCnRwyTQU9Sz\nR2G6e7LeGz+8ZnMVRMvFHKNN4PVG+x6gCCym5qoj2K29KHS5FokVEUNPYeui\nYHUGApnTEm/vv5FM+/vesauPFLlqjvvuJiqCOLkzuWHC2xVH3/TWP68fmbxe\njrzcOKWLcSadTLsHUZWtA00+6FiYQtM9NtuZekstnG3YI+/ZC+S8oYyczbGX\nstffTxSihHx0dhrkdAZFdSzkLTbNkpVq2MGH5T414SzrR/NmT2Eh/MuuDAhA\ngHz5HyPEOLBmL/LT885sKkNxNzmCfIoDHAmw2uhG354z7L/0xrZXrNFUFQNd\nAcdfdJSf4/PcpTefowleBkr7cGQ01+fuuE5LKB61gy5PT3zlbqtIwUGljYJP\nGJCCfSTHufRmsJesOkHcQ7cy23yJ68XZR3g/oqsEVUv4FP/oxaLJK45ZySID\nu+AZQPIiMSJZWmcycbGmKH2BorBSTWrrKgWco96EGSe8uIS3ojjHSSvM5kq7\n1KgqMl2xzGYdBlI0tPvQYneyXh7IVRe0G91kKYm/1tMkz/rr7WkSnbEI5hEy\nqHtsCeQrTBQO6S1w+YXaYiNnk+L7dVM3zGvH6f5CxjVXQOk7xaxtnn3Zk7UQ\nDGbW\r\n=vNnS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d1a1abefb8800a6dcc0cb20f74923403ee1ca66d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.811fc5d24.0","@material/base":"8.0.0-canary.811fc5d24.0","@material/shape":"8.0.0-canary.811fc5d24.0","@material/theme":"8.0.0-canary.811fc5d24.0","@material/ripple":"8.0.0-canary.811fc5d24.0","@material/animation":"8.0.0-canary.811fc5d24.0","@material/elevation":"8.0.0-canary.811fc5d24.0","@material/typography":"8.0.0-canary.811fc5d24.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.811fc5d24.0_1594228596710_0.88565484206203","host":"s3://npm-registry-packages"}},"8.0.0-canary.6ed717ddd.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.6ed717ddd.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.6ed717ddd.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1b77971d8533fb321a95b133bb61abd9e1905b3c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.6ed717ddd.0.tgz","fileCount":45,"integrity":"sha512-QTcruhoBkTXqwkH/TQPJTLUggqp0zMMETz3W/qsCDwazSfY7pzMCV+zTRLM1YFSuQfqaqFLHxmuZNSN+b15oPQ==","signatures":[{"sig":"MEUCIQCyRnVmYHKlAqK35JuWKW3qZmbbDUXiPsPNVkW2HT+sHwIgf9JuIMMTzSv5n0YmdcMeViskXHU4WoFgz99TZrbokkM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBiI2CRA9TVsSAnZWagAAYyYQAIf0FF1jFkfGY8/+V6Tw\nyB9jB7VPieEZSYO2U0maUv7er+U4JMaIWLT8HbuqJJUvVx+5+F9XiBIZeRNB\nZK4xGGWQ6hgnCpymtTwqhAnsvjERhBQd0XGljCOaWsgBBQZZSZ0/YpjFuAKm\n9o72fUQhgR24C+YKva07lasoU6c1z2XfezE4J9RQEx3czBPrWYMzeQwRRlB4\nvViDeu1E3qzVLJ0HTZ+bc6P3S+XnDsblYXlmvAfDXDFj02AMJyLmCXrqDCCc\nlRuSt/s7AT1FI+jU+sTVHINZHjM2fPv5dP2xp8MmUEJ5HwWBl5xZHi8Rtmrd\nKGYNNCYBCVejBxudLbOLMyZJDP+/hN9/tlYhmNabEf6AL+Mv+cVdRgIKQi7T\n5KBZeXBUrzw4QuT0AGK+Ss6iVWo4wSQ3LKBLC3G5ViPCyf5HdHPoousTfa7V\nur8r9qCC2GZktquoovbPeLpNtaEdyMt7PfsOa9pHMIWisOutltK36oeA+VJI\nDXgl1VNaQPdl1FxAuKVgSFDcTWp5jLPMGceHqlbAQLmUWl5g56oiIXqifVwg\noaHDGst91isZxM5KjRTo79896f3SySnjdT+6j8Ny+4cIZ1Y2SyEbgaNb6bjK\ntwuT6As221GC2iNc+CaHgbsd+ZLl3LBXwJ8lcu1VkCPTvfx9/CZwuIGUq4dd\n1PGj\r\n=e6Tk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7c9c6df731e0edf42938b11082973eba27e870e6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.6ed717ddd.0","@material/base":"8.0.0-canary.6ed717ddd.0","@material/shape":"8.0.0-canary.6ed717ddd.0","@material/theme":"8.0.0-canary.6ed717ddd.0","@material/ripple":"8.0.0-canary.6ed717ddd.0","@material/animation":"8.0.0-canary.6ed717ddd.0","@material/elevation":"8.0.0-canary.6ed717ddd.0","@material/typography":"8.0.0-canary.6ed717ddd.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.6ed717ddd.0_1594237493827_0.7433695867941943","host":"s3://npm-registry-packages"}},"8.0.0-canary.d850de590.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.d850de590.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.d850de590.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"07af06ad021d302a265c16f14919e7aaef76e1d1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.d850de590.0.tgz","fileCount":45,"integrity":"sha512-SnWporm3xz+P1H6terX8vOZIRExWiIMIHnakG8atZYMOD1Q2AibG5qss3r09wWxQ4K8/YI8OI29YZ9RGHssVKQ==","signatures":[{"sig":"MEYCIQC6F2bQZ/Dxo5mqVoJFmmWhtRJkgwu/NXv+VPb9G8fCTwIhAJHyABilVkuVMkGo0S4kHpzVQyiD9ZvZnTgQESca3AGd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfB1yaCRA9TVsSAnZWagAARBsQAIiySc8YlbeZ+fzpiFJN\nXVW7yjYuGIyrJDq+aZOSRofqNdQ7clBBWeJWqMGUNrOUy2l21IJNYXeeHUo4\nzoKmBwiZA84/fOz8AwAIP58tslPavLuIOCIlptmW4K5aY3VAGNvZ8CEONrnk\nSxTZm8k1qTvr7tz1d6zMpFZ5Dkq4uZiYNPX08gvvfdmVMmGYa2CPBlLGelR2\nSRZhFW2YS9NUWqEq8ijDDLG+yiNNiWpXDHjapMwn8ODhZk1HmpF6ARfE7AYG\n4m4DvsCTiAXWzKCHAxoLEQ8TYNnrRY4IwjXG0SEAeJE2yDjW9KSI9/eZtVIG\ne55+stGQmazZSKJvdRfV8qmT3m006DJgtSjnm1r1+/C+5Tzi6vnG0jNd67vl\nHF++d9UCNPGdiGAqbM4zqyx4RJlhSrwQ/L5mYcf0R8qsKCCbuu96tS+cHjAp\nMvfEhkvnd6EYfikbyJG40icmyMMmfFDb37RR5fdytKr47ZkMCWJs5KYs5wPH\n4F/n7Ax2amtgTRBbXkpRAYt0lgvqQDnciM9aICoqpsHDjaM1DfUH+kyaNIBE\ncRnKPdinTOxM4DL2odbu1CqPu1eKVvrdfJX57BnVvgq/saJRQg3tBvKfmngD\nDwdGeFY9upCgrVPFE+iarClKxFU/2wadxfXgbdlo/h2LQopG+jd1RzDIzl6l\nMAcC\r\n=IxFH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"85039ad97bde95db4d57918266320d54c581a680","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.d850de590.0","@material/base":"8.0.0-canary.d850de590.0","@material/shape":"8.0.0-canary.d850de590.0","@material/theme":"8.0.0-canary.d850de590.0","@material/ripple":"8.0.0-canary.d850de590.0","@material/animation":"8.0.0-canary.d850de590.0","@material/elevation":"8.0.0-canary.d850de590.0","@material/typography":"8.0.0-canary.d850de590.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.d850de590.0_1594317978372_0.004924998669341374","host":"s3://npm-registry-packages"}},"8.0.0-canary.e07a70841.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.e07a70841.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.e07a70841.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f010fe5995607bffe08437c399d2751d15ce3c40","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.e07a70841.0.tgz","fileCount":45,"integrity":"sha512-SMR62whKeYZzi05/RHH/a8ZzC+L8VuPeXXKXDdM6/9rTaB8IFE5ySCKwgk+PWLdAok7NiGvD8n9IhMYq6HEEgA==","signatures":[{"sig":"MEQCIC2zsaYJPKGebQUksTsOmbWEA2qvR+WJzB8R8V8tr/x0AiB20TnjIpJa9TyzvkAKKAPyrMNsx4FIpToJfzLhgiGgTg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfB2OSCRA9TVsSAnZWagAAgoUP/j50wONwhFAwfEucCDWz\ngENXnrCG+9JSb+7ELYPAdleTJzdWIvbeXx/hadot3EEnadOn2dvtyPiqCknI\nzfCyNG8V8R5x545XX4V1NINu6DlDvWGLAeRhqZ5X5cT47wvLVRictal2SjUH\n27jiGu0IPBeXKWdxLnqjkPsX8RXIT1I50LcmTpmW6sh+BdVyG2VHoMJLvkgl\nTCpMzOgsKefB2Tt6fJUjJiPZ+qEc2Tbjx3Z8yuhuaG98YONpflTci6n5vZ94\nMDM2aBQ5fHFXk8a6/pNHqng6MDqmd+lLqIn34eo6AqEe2gKq+nOPfvwvlFFx\nGFWuQg4ol7WXrCHQGLqkckmfCQMKDYQgvj/NIWXg1WWLKhPn5pZq0/th1VVG\nNz7Dc/LfR7Res20py618NOdb8qbSyMSW/e4tdT2Hzcb5t9/th/3CD8z6xrvR\nAlsa+iUTLP4cj6GqSdDdy6EzVuR2bYf42g/vDHxbiT4iT+3erzU7hMjaYuf1\nwG2hyyLjcOhUegnd7BW1UNrV4vuKEV7WSBT7OcnZw7dqMSsKZXFslQbN7oQH\nu0On6oqyTuf1rhYvlwM6erTs7h4zrhMlZq75OQrPiBUV6k79Lxa0RlKvMcG3\nlNQHZCtzGlL5IU7bLRJWWx/kvK3yElf7A3W0uIYlRqj7Fosu934cy/XEBIU0\ntZOx\r\n=a9zS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"105e9fd32899b2c9a4309baf6e879287104cc0e9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.e07a70841.0","@material/base":"8.0.0-canary.e07a70841.0","@material/shape":"8.0.0-canary.e07a70841.0","@material/theme":"8.0.0-canary.e07a70841.0","@material/ripple":"8.0.0-canary.e07a70841.0","@material/animation":"8.0.0-canary.e07a70841.0","@material/elevation":"8.0.0-canary.e07a70841.0","@material/typography":"8.0.0-canary.e07a70841.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.e07a70841.0_1594319762030_0.38703599952179335","host":"s3://npm-registry-packages"}},"8.0.0-canary.37947ed6c.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.37947ed6c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.37947ed6c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b7ed6bb8ed1916a46594dd77f2208130de7c3008","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.37947ed6c.0.tgz","fileCount":45,"integrity":"sha512-RaDSs7k1h1XLAcspN8E0QfOvLlwkvA613FksWjn+jpD2y7aVf6oJoS+TZz2XscpvCGkZfs9iRgfwxs9na614rw==","signatures":[{"sig":"MEUCIQDbwbMabKr6CAu1VJ9UgkwNv7DWsIifQvr7ire8m0G7VQIgFHMUmB7xn/deeML/yxDUPLttF8X+0AzvvIZizQnEFcg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfB3/vCRA9TVsSAnZWagAAkzIQAIQu2VkiHCZW6GTpTwPs\nzEHDDHy2H/269cTMS2fpGEEU3h3DQEI8U8h9AhGirb4DBBWLVJof4j7YTODW\nelIqdlasDXJ0XYTRknXxC2SJaRz35mMOxtlK7P65Da1lIN+6hT/V+h/LVYk4\ngiOdk+3l09YCagiH+jKdFtZyqV8tvm5RmC/qcIrldcwoYGii2ijd2t9Qyoyn\nndu06OWIOnmp1bUu9H2KpdmsjXIT/TgNbkvIs0lOeYYjk5odQlRBHFmmpGYs\nv0cObdq7bD7+/5kDHC4tmXUJU+OpX6rCgKZaQsVf1yfyqlLb8FlzBqWIG5WD\nrygq7ZAelhFZs2hC15ANcifg7p67UkEz/RNA2fq1iBPvlhNzg1A1h8RXPhHL\nVxs4GpSWMiji02QZx1wQ0F0AwVIYM4UkNruTShgh8Mui7FjnEWS4tPMjV+cV\nICTBzyGlFJpwWnTNhCfS9T+Me9xz8UizarB6PTFFbI2BFEFXtK+MOQbALMoJ\nJGvTygilsnsTvIsi693uqjnPAs7K8QpQ58XlZH8PbXi3h9fYPAPNW03p/1wn\n4iwp9c8DeovEnYUxPRxQgUIrWHw/5wb2ooTCWI0Bq9RwM9fXtaWA+2NsIcsW\nWgQICgPCqXzuJxB1g9m+LqJOFidlRUelcd6zWt7/Izu3JfGfbXeWUo3kx/LL\ng9Fr\r\n=HV0A\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"80c4a00e688d5a2b1a35ee55744d879b782effed","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.37947ed6c.0","@material/base":"8.0.0-canary.37947ed6c.0","@material/shape":"8.0.0-canary.37947ed6c.0","@material/theme":"8.0.0-canary.37947ed6c.0","@material/ripple":"8.0.0-canary.37947ed6c.0","@material/animation":"8.0.0-canary.37947ed6c.0","@material/elevation":"8.0.0-canary.37947ed6c.0","@material/typography":"8.0.0-canary.37947ed6c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.37947ed6c.0_1594327022687_0.22179220722922377","host":"s3://npm-registry-packages"}},"8.0.0-canary.5d443afec.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.5d443afec.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.5d443afec.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3ad0d64d083c4b29cdf00dedbe19914b29ef349e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.5d443afec.0.tgz","fileCount":45,"integrity":"sha512-weLUoYGzHLULmml9LWMryowymucjlVbCgjmDKauJ41SQKc8D4PrBIT9DDy2m1fEbGLBTPnKj8TybNn6TrTUU9w==","signatures":[{"sig":"MEYCIQDP2bY2XNZbI8TR2Mc3DC/BDI9VNhD8UlFmZzZkCMcgMwIhAN/UYa6F30+4xQ4r7gc9KyHZNzUBns2lCSf8hDB9UuVC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfB4ONCRA9TVsSAnZWagAAeukP/2U3UDemqelKMq416Lnc\n91z7awEBU90wfyYrpBzGWFOorcKhcUzzBbQMIG1KCFv3jQw4PUM5C+7YYz2B\nZF0isxfi5G4XsF+SMBtCNgKMQIzglKb4Y3zILibWqYwCNv8ZIp1LPKi4geGy\ngnehruacdAtgXiH0n+rEGiiHL5aMAcFFzqcsxh7U1KMKmQLoEF7zcQvml8p5\nzjM2vW5dDw+Gotu0uBFJK6LqQgBwjuIdXrzkH3/RdpULAcAGgFkVrjs+qloD\nt2YamKtF1Nw8HZC8XVTEF4LXyl2ocaKU7ORuN49l3ax2jJFeIrSwPKPxGDs/\n8V0YzP/46B3HDx7/qqkCo6Q5++ivhcUpc2AUSSH5WhkTKd8iW1HUxuepN9rW\nhkqQgEZqJSiUV0TJxbsHV9/mGMFYK593vgHoEmcMmItsx6zNQISftOAUS5m3\nCuAUX/0Pg4NWXx4EERCJ1Xc/PuFzlptlbtQXPahHI8LTAaArbX6Qi69dT2TA\nRbrmNQ5iG4jtSA370/h9ZfUX1ThpGePLLEHP1MnkSbc0470QLdw2J4Mc53Am\n6OVeD4SfHcjZME9DCokhdOW6Wy/OtspDS4uXCZRRQrfua83z7Dd3r5dIDcTD\nXsQholNMjHyuynaGuAKh78k4UCxbpSfXFiTlYXL5Pf26O4F4so5c2hw1QyNd\nnQsj\r\n=udYS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5c493d15f89898617c3127c53145bc51e8e60930","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.5d443afec.0","@material/base":"8.0.0-canary.5d443afec.0","@material/shape":"8.0.0-canary.5d443afec.0","@material/theme":"8.0.0-canary.5d443afec.0","@material/ripple":"8.0.0-canary.5d443afec.0","@material/animation":"8.0.0-canary.5d443afec.0","@material/elevation":"8.0.0-canary.5d443afec.0","@material/typography":"8.0.0-canary.5d443afec.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.5d443afec.0_1594327948650_0.952611681927281","host":"s3://npm-registry-packages"}},"8.0.0-canary.9ac1ed914.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.9ac1ed914.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.9ac1ed914.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b7b28f8b56f588e159d66594de1e0c13f21db041","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.9ac1ed914.0.tgz","fileCount":45,"integrity":"sha512-r9CAOe3Uga+FuNja1TD8MEzCHcdLdLDZLSLWSiaE+LzExpwmx8O9cbc8myEYrS/j5NNHxjmz2fGl/kWrTqJOPw==","signatures":[{"sig":"MEUCIQDugVAFbg16dOyegQozuFcvjiwQhfNhLeJGgw8v2s7C2QIgezZFXRFC+aaX26INlDiLkBXgdP+bf67fmL6djDto3u8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfB4pTCRA9TVsSAnZWagAAJYEP/R+iQ89Elr+453gEBfGo\ncWTQZx1gjej1l0VgBYVoWAGHZW1X8tUlX35MD7H+5Nf43XX7lnLpdytK+H9C\nxpiCKuB7W4NMa52ctR+iehlsA+IcyBye4TgmFI6GQGcF/Y940cwKnMFUxrGY\nptZs5hvXUJkrgWdRdlZzTupAPzoFG6kEWi61x+7A6Y06gCSxe79BZK96WXfw\nbKjZ2xZSwHhiJy/A41hdeidONoGP3P7pI1dCLfV8GgqfB+/xFmxwVupQ7Bxo\n5fB5JKqK1UlgjSqfvV1Yb6a9c4zRoiLS1ZJkPYJzcIAH75KJn1wbjEILLdXf\nSlWUMBgQ30bi8f0lG9QI7ENZNZP7cgTGMhUftkQWOGGd7mylNdlNNtm5jCXi\nFbV4NG1+lnapri2Ak3FAwhrUnLFg47bNBitvyrjzEwhVJr0HamKEJ6FplqwJ\nzDYoSGrtdIRGZ/NpDDp/SK73i1WOv6d349uCJ6/b3M81S1uCxjA/E13QSRzE\njAEnVxPfncrj+AF8NbXrg2HX4U/cmmoR0sN6OF3AkLZ2t76vqQ77ERZzE76/\nR0bMlGWVyAjPArCnw3inhxfqe6TnICjtjHlkIn5Gx6fphFQIBEw3+28+xKtz\nVWfuFpfsojHvNUWuT+MjHldcB4wwjlEMRcqIjofy3apFSmcIMDZKTSosXQpP\nMklc\r\n=gQ/p\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c08d3c600bb022db1bcb4efe520bed724e653a77","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.9ac1ed914.0","@material/base":"8.0.0-canary.9ac1ed914.0","@material/shape":"8.0.0-canary.9ac1ed914.0","@material/theme":"8.0.0-canary.9ac1ed914.0","@material/ripple":"8.0.0-canary.9ac1ed914.0","@material/animation":"8.0.0-canary.9ac1ed914.0","@material/elevation":"8.0.0-canary.9ac1ed914.0","@material/typography":"8.0.0-canary.9ac1ed914.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.9ac1ed914.0_1594329682838_0.29901319890752","host":"s3://npm-registry-packages"}},"8.0.0-canary.1e7cb6198.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.1e7cb6198.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.1e7cb6198.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"dc601094283062d0e373a41f82010350eda58f7f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.1e7cb6198.0.tgz","fileCount":45,"integrity":"sha512-pkzsy0PWC3lmCaXx93BEn/Ls7INSPz4K7+iLC3obg5itPMwwacgGVqq+Xv/Kvv45iWFKTmLmclbdz3PsqG/UJg==","signatures":[{"sig":"MEQCIGpqXZZQo+mKCAO1L1gP7IP8AKG7KS7sdxNFZn5JyQDFAiAuEfh6jTkM+V5OFpVede20nUCf8tlETclPEuY/t5GWyw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfB5Z6CRA9TVsSAnZWagAAFiEP/1TayiyiKMYdgLJO0DN8\nJqjFQjwYQlSNA5zOCGdpyiJ/bpcUKRTuBYDAxThhJ1Cd1iL1K9JqLEBnWWi7\nlSdgcsNaj77qde+moG7KWsqzVnGErzyt/sWGdwRZBYAmWsPGilAAEfMQMWB2\nxRD6K0H2vrb7P11Aa++AGECrQ9febyf59Ra0+yLLQudMPhqYhjctf3wZLRdO\nNO9ppqUK7Rslr3Y/lGSv5FMi1zGgOMRkQGbk6hziJUvYJMWLVLoRzaWmTY+4\nygvl5jG5X3y5RkU7qG5UmSfmV1KVKksG3wgIgujse+Lswmx0ZF/rLTZWtQJ3\nFWU+YsLd7qILwiwsLuRQ3NlMQgUJkkYozL67K6R8NuKePCU7+Gh50fs2fzWV\nRuor26lEpDj81/fuCgpOn4bdEGUi+iwOlhfQMPfTpj+cZLBhM4VfOpA9RE9n\nYzMxaU0/bBdsAkKJk57eHz28zKkjF3VmxKEhtPvkLsbHvlaGQ2j2L3I3KyAw\nofWzEk16R8UoK5TO0Veo1MjAXjzTyLjgnkHBhQWiapvK1KRpIwxLDhxIcKLh\nJeiVtdwmuGLFaO0EqB8Rt0fbezYzgSbh4bPkntmzIIxWzES10zW/6ktajxj7\ni0h9YddcSwD/5pSkUmYelSSPmqI6fV0jWllQ8VnzccjPnZq2p0aBcDNjC6+A\nb7E/\r\n=RRhb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cbdbb55d01ed2f63aeafe8d77fffd1da5fcfc011","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.1e7cb6198.0","@material/base":"8.0.0-canary.1e7cb6198.0","@material/shape":"8.0.0-canary.1e7cb6198.0","@material/theme":"8.0.0-canary.1e7cb6198.0","@material/ripple":"8.0.0-canary.1e7cb6198.0","@material/animation":"8.0.0-canary.1e7cb6198.0","@material/elevation":"8.0.0-canary.1e7cb6198.0","@material/typography":"8.0.0-canary.1e7cb6198.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.1e7cb6198.0_1594332794130_0.16073836111569761","host":"s3://npm-registry-packages"}},"8.0.0-canary.843f636c0.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.843f636c0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.843f636c0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8b81b98b3991e7079dbfa2f7302e76eddaaace1c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.843f636c0.0.tgz","fileCount":45,"integrity":"sha512-X+Uz4xQT95kd7EiUfxUbG+J0psdb9OgIGGPB/OycdFAwTWc4I2qdUrZ6LzlTDTV+/zXE+5XSGJ6aHRp/9yEMJw==","signatures":[{"sig":"MEQCICz82semh0TMxBsFkt2pLlNI6mWGFpEDF1St/V6aA6ZYAiAJ70nQdinkOR+fcnMTjXEqAIGnwIjCacHgP82mzPGT2g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCKjICRA9TVsSAnZWagAAaGQP/isIMDZZDUHAcKl9FjH8\n98KG7EehirCqXbUcrlq2/msSiXP6hEV2E9ETiqki/ts23p+hrZobiTVTYZ8m\n23/75XJLRiKDM+hqL9WuUtnOjp4IX54dpygywSzEk1/8QTy1fZhwsIo5WM4U\nBKLwpDTPPdPAqElEHvoU3/BGCEBiCT+jyDiqPaNCSDyNrE3qjj4+oPMIVGxI\nwF22C3pP3Pk3MaWqZvYAzwdvH3cAuuqNIU1rIK0VAQavsnwglbsm9cErgaDF\n34D7MMt4TNXTsmZ2HAAKUKSyChcDgV9UejjEVu11mXZ6JTLy3n4IiiQ9nDsh\ntz+5TxQiQ39qYhPscBnqPPjHgZQ3iIDESRsrc7p6uPoguSMOshaYGZ+bZrQn\nMpwPE3QqrQG+bw8k73khDIVKpIji76IdIzuhe+W6RsF5UI1yQNx8a4htzzJN\nhpAlPPYOqjeUmRh+ZT3kqZAKRjx+xur7wUN58a0sDp3AbzV9LfJ+HUcRhcM6\nOWhJXDLn6xsufJ2VD8iqqumUqwNPnIYdZ12oDxn5TjNib99YMiIfWLeBv74S\n2ewggtjAycJK7KSikK0ZLR7MrualbXEH551OqlhpQG5n+LjAxRyiSBzF5umV\nePVet+OzrO0D29chNq78XXzy9PFa2KFgU9jlCAoD7sysTGhYbvwjiUHk3nCV\n4N8b\r\n=eoXJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"641b40da40cd73b439cefa7fa18c86bfdf31e497","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.843f636c0.0","@material/base":"8.0.0-canary.843f636c0.0","@material/shape":"8.0.0-canary.843f636c0.0","@material/theme":"8.0.0-canary.843f636c0.0","@material/ripple":"8.0.0-canary.843f636c0.0","@material/animation":"8.0.0-canary.843f636c0.0","@material/elevation":"8.0.0-canary.843f636c0.0","@material/typography":"8.0.0-canary.843f636c0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.843f636c0.0_1594403015360_0.136740138614593","host":"s3://npm-registry-packages"}},"8.0.0-canary.b2edaeead.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.b2edaeead.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.b2edaeead.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8a5a87e4679d96f12417fc2a943a92744a58b713","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.b2edaeead.0.tgz","fileCount":45,"integrity":"sha512-ayIHwoGqHgo40OdiraKed43CgZxsthWI3qkpqlhhHQ86HUwN7r62AFV5XyE68LuRdAOXu7Izeyx4z0PBCu5PUw==","signatures":[{"sig":"MEUCIQD010xDT+SLzUy+8kf0H/KaQ6djF58QHoQCedDNeW8mygIgccPtkpkxBl2k86DHM8KLtuEp2z63OPpEcrSTyP+cfOo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCK5/CRA9TVsSAnZWagAAOmAP/iqnOjb2KzgF/+GiDHmU\n9iZz7uCiJx0DImWNhXJwb2Bq9VWAAoufajNF+eVPk31t7IzSrl9HMoTBhKIf\nHC7rzWRMkZQQny/IeIZCEXJniCPhqEDWuK+BehFSGTAeNSf4M6uOaRyabL6z\nIsHbCtyVfkrN5j/0bW4hyFoXEfmYFPgvZ3xySlmIjNVA1pKvw1VCyCspSabl\nSwFfVI2MBhWLPF/m/g4y+RlwLybTZv+ARL0vixWIjM/IYsl72JlCt9FGrQr9\nB4i8v/w4aBk629VNpTEWyLOBcFANKIJt9Eh9s7UtcOeJPRQ8vb3Z+99cNZHe\nv4tX2QLwKJFSwnGvZ8kJ/mEi9Ap1g+K4msCNLA1R8xV2UegOKrU37WqpG+d5\ncrODQFMEPTtbKojJ/ABfdpLD19sx+qb9vXKtFLHJQCy1h00IOA8HNsxyxDso\nv9GTFboSonu3HHJjOKD68BbNw+C+6My+JjDK2qpEtswlc+y/U2o9GALEkuWW\nRRWKOpNa45YtLBjFUub6Ls1E6pelYMwk1wp1wdSecj7Co0Bn8A37dvL0lCe2\nk/ATsmMZx+uGSAWFQLlzTeRHKZ4Gq0glTb7Ke/gT6R6/tGB4ur6wFdJM6fxa\nySH6Ws+PgumLpbrpk7d6IivrwihYgDe8GhCmD+G83t0Q6SPSP0c9MKq0/WZx\nEqro\r\n=oYzs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"874d83aed6fef221001b68d44bfceb30072cc18c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.b2edaeead.0","@material/base":"8.0.0-canary.b2edaeead.0","@material/shape":"8.0.0-canary.b2edaeead.0","@material/theme":"8.0.0-canary.b2edaeead.0","@material/ripple":"8.0.0-canary.b2edaeead.0","@material/animation":"8.0.0-canary.b2edaeead.0","@material/elevation":"8.0.0-canary.b2edaeead.0","@material/typography":"8.0.0-canary.b2edaeead.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.b2edaeead.0_1594404479188_0.909954683832382","host":"s3://npm-registry-packages"}},"8.0.0-canary.5dac1f624.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.5dac1f624.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.5dac1f624.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c8952aa3a6a2e9e83e67d3f8d494e7492eb53261","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.5dac1f624.0.tgz","fileCount":45,"integrity":"sha512-95fGronGpiU6ebfx/L334R4F8gvs1Ely5J1D4bXUYzUm7q0GGNPbJDzQV4Q6R6wO3+HcPCEgZisocswqqhXYHA==","signatures":[{"sig":"MEYCIQCSwzqaCNYHPWF1SQD7R7ohMKgPDp/P8y72pBOjRIPNXAIhAO43IIT5Eee+9qD8RR12SjQRodGXElPX4eXjyomuxRQs","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDI05CRA9TVsSAnZWagAAJV4P/AsGncgU0gGxHInPj9zi\nKOUhic7swAXMb9fArJ2j60fiP0UeqAuW+FOF8p7p4yigVRayzVoVcpDSkOQ2\nfhEFVxPt1SlQl9lgwwLVvZFsnqjTji2uqhcHushoUJmIuJrNgl6xW3iLb/o7\nughLUqKQRH8Cdif7UYAvIwbMfMj1b+nsk3gqFhoJmJV0juVidOwU6PF+hogB\nugNZbJhIeMRMS0H2uSSE3Jwzs7jC3fvcUrZpaiLgqf28p3mtN0A45G5Gj8Cm\nPZwbPspYShDlgbxZlDMxLP9S1lpmKIWUKibeF+Gw5I8yq2HHXQE3gLd3KcnS\ncCpEq4EqMuav+bPzuq/oPZi6nlWMN/tGOYdqTUfgYVCEKfS/mfOvW1H5fIfQ\niuNLNlbEjyh7+cUeyyOrRuLwCXBdxhEw1ckQBo9NSYvCXUZXf8isfRiFCHrb\nWpzAOqvv6/OogT0TrsqqJ7tpGvQ5f7DiTa4KZdUhgbKR078w4bJMap/3gpZG\nTD7+fsLHsvdo5n7Mxt3IKzTjhvfdzD2N4cT6+hsAfrAK/FLsKROBsRkL0lCU\nafXMpzp+NMkmd2zS/VGWYKdYptwaOJVktASDXRK+x/WKPcL42dbY7wd/VrkL\n4DkvpsL7ovTwLFnKM4hxB6iLDsll0UUtCWVcGZAQxwmu/Fy7dugAEVeP5Nr7\nzoG9\r\n=GQhE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3acf16b30fe876c0d319f5d1681d177bd0089cbd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.5dac1f624.0","@material/base":"8.0.0-canary.5dac1f624.0","@material/shape":"8.0.0-canary.5dac1f624.0","@material/theme":"8.0.0-canary.5dac1f624.0","@material/ripple":"8.0.0-canary.5dac1f624.0","@material/animation":"8.0.0-canary.5dac1f624.0","@material/elevation":"8.0.0-canary.5dac1f624.0","@material/typography":"8.0.0-canary.5dac1f624.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.5dac1f624.0_1594658105041_0.717907452033733","host":"s3://npm-registry-packages"}},"8.0.0-canary.4497acef8.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.4497acef8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.4497acef8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8b43a8b73079ccfd9bed1ca44469f7d8d6b6f803","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.4497acef8.0.tgz","fileCount":45,"integrity":"sha512-5Ny+s8/l1FtA9YnLz4mcAKdL5aXxlZNSHwwktZ0OWhLZK5svcNTCb1VJCs0wPFvWnDUpaFtc91DEh3dGDg9NbQ==","signatures":[{"sig":"MEQCIEy9vJeTzIjXP62mlN/iTOp3UUq8WG8mE3pJ4JpH9ckJAiB+0Y8wJfQXVHGDf6rLhqXOto8hNSH095XT6e+vhA8mRA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDb9KCRA9TVsSAnZWagAAvlUP/io8sR0MkKMsH76JOAWG\nxfEIP72xCF/Bpg9/KZqn0I8VpWY5a5MJaRdmylUZqG5Aya9IxXmDPspe1eeF\nxfmdj9iPh4P2ozE+bH3eRvMuRWdjeGnw3QODAZg3EoH8lNIITiK6rcjDLFdr\nFSWJPkHLBmZ229o0/QBMYHdCti4U5kVdbuxX9QO9Xk4wmv4+IB1dxFp/cEhP\nHOulh57WHq9CC1mgxpWoXo+PHVb9L7CByOao+xDR+QUqLDGDUnk5oZHU1wfw\nDNL+AEb2fNhOp+PHqbIQuXI7wyRTi6YiYLhk6IZYHFGdBZVR3p5SaVp78xPr\nbtEuIrqSFSdF+2HgXh4TVVa1vgLbJ1wrKXqd0MAX4f9D3DfI66k6S39Kyzsi\nJz1C/9jt4IsHXMcIk2uqJRrHNAEIzTj70rWHDohDQ8Xn/FGwG2eugVJFecF8\nvNTXhMGc0RMNO3UZ/u7zBenBgoY9Sg+wHRBOwdQ2YQjYZf/2QiogqlLfhfaO\nwarh+rcVb/kNnUQriDWN87Yb6kRtwfFh/vHsNiJ56swf7Phtm8UYXamidEL7\nyI1XJSRYvmFQT2HdxnJWQ30CevbODumQSa80kBPOeFe/bTq7B8E9PxWp39lB\nh+JNjK/T/itOSpaCJGkGD9g+nE1XKZbl2/Xq+c07cUvnJPmf2a7EXRDlzk+r\nLvrt\r\n=tAkm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dc90b63c1737c63427815af4f6de59841a57a1bb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.4497acef8.0","@material/base":"8.0.0-canary.4497acef8.0","@material/shape":"8.0.0-canary.4497acef8.0","@material/theme":"8.0.0-canary.4497acef8.0","@material/ripple":"8.0.0-canary.4497acef8.0","@material/animation":"8.0.0-canary.4497acef8.0","@material/elevation":"8.0.0-canary.4497acef8.0","@material/typography":"8.0.0-canary.4497acef8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.4497acef8.0_1594736457480_0.2009894622159809","host":"s3://npm-registry-packages"}},"8.0.0-canary.e6e23019d.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.e6e23019d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.e6e23019d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6a71c6d80b4673ad929ea9ae90f83229c4c35260","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.e6e23019d.0.tgz","fileCount":45,"integrity":"sha512-BnhjQumUn3rn5bqKXtaUjv4XMROXsdV5e2M12Jnwtf3GeIFDkS7wVVomUERTjv5xig/m8+9divHQ1EoaE5WhlQ==","signatures":[{"sig":"MEUCIE+qcbZ2E8MgRh2XPgjfUlEgb5XicS6xUSyHe25qCvGMAiEA56mH7Jp3J8QsWu3ofQEmQMIlpCec12S3jPE7ItgZL/c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDhFvCRA9TVsSAnZWagAA4ZAP/34mIFBerZ0q4svIWO/R\nWGqxSKld9QunpCt4cJ/MLsLiRpGx2/BgOfsu0bfvrjzpptrL11dw/uVsHClO\nrbN8PQ2SGs6Nne1oiNkbm5kzHDC5D28QI6y4XTmko/B+zZcHPOcHaWouhwyD\nEZPYdYFiG1AoYNthQECFmhhlm9IG52Tiqx5Cx/EjG1E4XAKzOqythwyZBFLK\n04SdRajnuOuxRXVILV2CLmRqTb03cR47YY6+IIpEudfUmO//xrMD+x0o4hU7\nT0gfK/T6HmD/QoyzAHgO4fDO0hm0SmxDAuUWLVOHy14JKHbCHIgQ/VdmtBky\nTe/X7LBgjP8OYiaoQH6+FS4a8c0VSBTCkVKYexJ/WuDtPZynlkCKv3FLa5pT\neXKAQyfcr2PoM9n9RjicaBVYNLsSvkdrEB6GA76NVvkvBHbIfj96v3H7qk2r\nQTk+vV/AoCMTcDMIiiZ6t/2BPHUMhWYwjZz8i4QgZwQcJnPd+twknvX8GzqT\nnnclcyDTfGLgdqpS6nazkwDreQFcCP5h4LWOTMc1Ec6WfcqtgawDoIDsKJNE\n0twnaAl5LqkkU6MBGb6NEJpxYDC3WZ5CPQWCHEZqeSYKEc1I/wJQ+oQcZb9/\n4ImnvTPqTksFmVzueoM+dtWJ+VQBGdfUoetE48hf/2t8z/gyHVdCvqfcZqfU\nNdVL\r\n=tfcA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"db31520d2bb46404d9d5c364a2db4e2bc564e4f4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.e6e23019d.0","@material/base":"8.0.0-canary.e6e23019d.0","@material/shape":"8.0.0-canary.e6e23019d.0","@material/theme":"8.0.0-canary.e6e23019d.0","@material/ripple":"8.0.0-canary.e6e23019d.0","@material/animation":"8.0.0-canary.e6e23019d.0","@material/elevation":"8.0.0-canary.e6e23019d.0","@material/typography":"8.0.0-canary.e6e23019d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.e6e23019d.0_1594757486572_0.6599757891182945","host":"s3://npm-registry-packages"}},"8.0.0-canary.d548d7a92.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.d548d7a92.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.d548d7a92.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e0b725f64bae546d50b394a77e5f24dc89aa4888","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.d548d7a92.0.tgz","fileCount":45,"integrity":"sha512-W4LLwBRxhNygrNrXY5tmGXNxMVWXXpC1I+Nkebp0A+/xBrYaCnhVob97n1R44ERrtLhCastL1z1Prv925HWXuA==","signatures":[{"sig":"MEUCIQDNsbEx4aWYdHq70GvpJsOwXsQOZIVBIDv7ZyAMiGsEnQIgUyWPZ6BciqwXNqMCfy3jO/hHTxdcWsH2DFeC04WNvo0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDiAOCRA9TVsSAnZWagAAxogP/1yiZTTJaZbCH8WAfWLW\nfTE3oE3WJcjWbeHzUZWXcFzjYkDuGCQnYszUZzL5eaKMr3jxKyNRoGiCvaZg\ntwRKfzkOda3y3XZ9OWfJugm7uPkjlooww21f9Znli37m1MDjl5eCDRBVW0LM\nzAqhejNY39Rc9Opajr0h22E07M+ILCn48IvkRrnvMiH58L4pRwyTz1S+lN14\nCi1W2yIv484u6hXsH0Dl0/MjL2uDPb11azWlTwaVLbJD1fsG3iI6Tb3lhGfQ\n8lpVpXhqHsEuuPRMpKmHJ8FbpGQ8vdPMyBKwv+l7OtT2Q1kLLJhtNH7ZhxOb\nypxUiTtvU7pMhu3nuH13yVVcS5xdURDenGg7ZW43CoWcOeGHnZbKNI+uWZGI\nHdAQQVi41VeWj65MexuFRC0wobN1eCsupAGlu22wdsgnl/DE68/b5Ua5wxqf\nb5csvCGTH/Xkgyk0o2bFoDJEfFP2uk1dU7okFCkyQCZv51n0m49EUEpGr63x\ntUSSUYpFc0pWa6pFlvRNNfxJgkRVBueJoqxRc0EMAKVOfPIw6deHJvCCnpzl\n1s4k1hpTcTnSpS9nzBnWp4rKuZZO89/ex3Wyu0IvM52G76ADC+k9o+a27GOq\nUAP7tfmHWWBylHfqKrT5+p0AtLkR8HQ22LY5jZjdHfYwM3PHDdtz65Pv/sra\n7nVQ\r\n=2lFS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9ac3956fa3f0b35d113404de60048e8aa1c1a0a9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.d548d7a92.0","@material/base":"8.0.0-canary.d548d7a92.0","@material/shape":"8.0.0-canary.d548d7a92.0","@material/theme":"8.0.0-canary.d548d7a92.0","@material/ripple":"8.0.0-canary.d548d7a92.0","@material/animation":"8.0.0-canary.d548d7a92.0","@material/elevation":"8.0.0-canary.d548d7a92.0","@material/typography":"8.0.0-canary.d548d7a92.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.d548d7a92.0_1594761229557_0.6198760394974121","host":"s3://npm-registry-packages"}},"8.0.0-canary.58ce529cc.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.58ce529cc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.58ce529cc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4be6151d8b7e130323b1d9a8e35f02e3351f9110","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.58ce529cc.0.tgz","fileCount":45,"integrity":"sha512-ddwWhc0hJcXmxzEui7BLPnOBnvB3zY8JXCwZV3CVh1iDKC9cCSfBg9FmAVpOkkdNHwCTYDJGRKGo3dbWtH3eBQ==","signatures":[{"sig":"MEQCIHake64tHtlGlYxbX/RqQ1LHkMk+IKWRdh9A49HCZ1HRAiBX2xGhfotjwZ0LJpWmEX83u53Dk37EW3kgIDlTOiSYow==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDiCJCRA9TVsSAnZWagAALYcP/jT824I3d/UHQYIH6r/b\na2J6QmNumXRWAiRJ2Ngfo8FVzRm5/AqVg/QIm13adYThehFgZA6A9G0Z4gng\nd3Eg5bAlt02sk9bdboklWCZFPE+aqRDEfFfU3DrOyI6tVMtANrhw5u6vDrQ5\nLJsRdEiBVKzuM28llHyUv05Fmdr5jDdySEkwWwnxgZ3EA9x81yNwNpTd6wDY\nsJvW3w6qv44oQbOeoane0k9Lcf0p6EuGJLKn6KyNsIGYfLSy1e/ZzgOvVfdq\nTxqj4cUhX7VDn118ExIYO8vu/OMt/Kv3om0PtLadhTrqVOQ0l/qpkurqsUPx\nsgV+o302jaVxqB1JGXNruy4/Z8TcQBjbB6oB+N+n2bPV4yTuTXl8cEzKWoTy\nkC/kPD7mcUkS4ydzW9XRyQohRA33MWSdKC1OUpBtfFLVKUufr2t2BDtr40du\nONj6a/lo0qkbWZfuAKi2XR7LdR3abWQxOMXNsYa8lqv9XM6R4l/u4Ou1yMw5\n4W2zfFw1csDAGxO1s5biQu4NeOVS4/mUIXevrKzLULK9zJdaGNKOzHUUrlPs\nilD7qEdWMcRjKVK9ZKP2zcOoBa00CWcHBPGIyKO6LVYvjSCh9E1X7tq2vk8F\nuleGqD8QmOS8kM21odN4DydBRBPb9QDd7hotTU+C+t6aweEhGYTzS+7IcU6j\nHDiG\r\n=BtGs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c45eee764d94f6c07b8a5b3770c89c8bb4ccfeaf","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.58ce529cc.0","@material/base":"8.0.0-canary.58ce529cc.0","@material/shape":"8.0.0-canary.58ce529cc.0","@material/theme":"8.0.0-canary.58ce529cc.0","@material/ripple":"8.0.0-canary.58ce529cc.0","@material/animation":"8.0.0-canary.58ce529cc.0","@material/elevation":"8.0.0-canary.58ce529cc.0","@material/typography":"8.0.0-canary.58ce529cc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.58ce529cc.0_1594761353136_0.9400118606623276","host":"s3://npm-registry-packages"}},"8.0.0-canary.a0f1202dc.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.a0f1202dc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.a0f1202dc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9dcf13cdabb66f2356db3ed705fa7e3690df2e3b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.a0f1202dc.0.tgz","fileCount":45,"integrity":"sha512-KQrC3vl8i2w/Gx96qkiwwZ1bShwdLEBgUwZ84OGm7zXd48fRr8p4SHDA0LaFylvM3gqPgZ0IxHnqHfG01z/Pzg==","signatures":[{"sig":"MEUCIBYHdgj46wflYOOEnRR9VsVQlRRpSo3LPg3t9NdBNLBeAiEA7AHkIb2VwOmWrr6QMwYSQxQQ05Qyll+Oes1fm58uHbs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDiUZCRA9TVsSAnZWagAAawwP/3bCZnK2fL8LrgvWBkpV\niiv6Nk5WMrRtOPsxD3r7t9PYi0hnkz+tdCR1ETJW6OWrT29usKAAkjxFcG6g\nMjWqe8R/BBX4QKg0JpNhY7aOxONy1yeazSS0CiPZFfyaXf24vE32YeJVM51W\nGGPhNLIPE6Kt28jsRkg9+FsCS/QV04cW9TGUet3mYxDHrvNUjsUSJpSPrZWk\nH9imoXp9Vt9bMlzHbtfxQcPsra5Bd4mSuxbh2gd05F7JTY9OYo0kayUKRII9\no/0uGmzBCf5EcTrqQALT9cKsOICpHdwcrXO+bloIls5gCOkReXjNWlG1dvd3\npgBJFVKj5Wzcd5E4zYvxT80Y+fdYuQqrYpp3hSohBwRU/4QKa40jeFGsaOHR\nn92I5/0+2tZjlqheJJ1HH8nTfXfIpz2Fu8jNL0jhWavi4QNSD0PtYPADZpFj\nyYP330Mm1BPsFQQ7nYEsN2uFquWVda9uBkCSkCDlQEXfFU5duyAwUtXtXrEB\n84p9Fh8Uhj9xzr4hBBw0GtyCRuqGyoFVeMHOScRa7e71w6Z/YnhmrEEzyu9v\nLXx4hkkd+FItQcDsDcLLWo2qbs0Qp19b07XxdU1vFAJYNXJOX6N19lqmzQXJ\nOR3Tj+zBR1CYZmlvuKNJqDGs4PZ4F847NMnVdIyk9/Ny1Qgk41Uk+rT+DbEj\n9yry\r\n=/nBi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"93fc447a8bb5a55abbcf4b72084f1c65147f3cc3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.a0f1202dc.0","@material/base":"8.0.0-canary.a0f1202dc.0","@material/shape":"8.0.0-canary.a0f1202dc.0","@material/theme":"8.0.0-canary.a0f1202dc.0","@material/ripple":"8.0.0-canary.a0f1202dc.0","@material/animation":"8.0.0-canary.a0f1202dc.0","@material/elevation":"8.0.0-canary.a0f1202dc.0","@material/typography":"8.0.0-canary.a0f1202dc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.a0f1202dc.0_1594762521320_0.8179337780521956","host":"s3://npm-registry-packages"}},"8.0.0-canary.ad4df58c1.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.ad4df58c1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.ad4df58c1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f6e74796cbb2c7fb50b38d54b85645d47a7dd515","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.ad4df58c1.0.tgz","fileCount":45,"integrity":"sha512-Ot/mxxghjlA0bgDX2LGCSLqcTgUj9ikKOJImEBRK1a+MC/651zBPAzuxx9NXZFGVLkoOdr3Up/hg0gzVnBLy5g==","signatures":[{"sig":"MEUCIDeVrrEHebtza0pYvnE/r8Y0AUAo7Cw5Zqd8V5O5FdG9AiEA9KBCTUVz3vsRe6TQhR78coxdlFuWXl/vHbhVoCbUbTI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDkljCRA9TVsSAnZWagAAHqYP/1EVsm2yUgNCA/53hANJ\nMT8y/oG8PPfckpQkolr+u/to3wUfwkSMesPXxgN0S+XXsU+WlU7E0JgbIUNi\nZXApKx91GCnpjkCeixsWsXLnLfuYSjnGVC/yIL1o+9B3M5orPdQaB7In98xr\n6kWNeECfDw5aGCbRlCC3YxTOW8gIJt0OuHXd2nP0+krvV1NqIwyPTcI9qcLU\nsTcJIzSRK9emGgzHdBNoBF5+1fEp9/V/bNhGVoaURfaDpFuP2XGDK3qEpoBE\nUVNujrjmwnMxdrjVzqsTxEoVzppzjNM8DBinPH/74XSVuSQIazEiw1S6a2M2\ni2q2S88xw1hZg4E0KS+FnaaNZS6KOB4cLcX+y/KkkjmyZcvqBhPl35DhuvvN\nhsoHTQw4adYQWUcMdIhND5VooySdOI98CXF7y32oK2q7M22iXpbTRdhYsvt4\nxxlEn0u5ffka1g4SQgI81zrLSclemOlUG7g+n0zRCMkXWO8bWCI4zf0h4VCc\nY12qq955Lp+UEwQIelcP400BP2Pxr/XGea/V3bKDnlU734qPLDY50HU/ekUg\nQZV3FLA+4xh+8zw75Vx7XwwPVYrs6bQ66THpy9rTgvzVGgmE8K2LdrWShlPq\n0wIhLIqNuWMAlToBFjsggJJZPi/htZQofZ1C4v0BEwyNvq40aThM0P/bSpRg\nIlWM\r\n=ctRT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f3541b13d081357419478232ca7ae0021f2a6b43","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.ad4df58c1.0","@material/base":"8.0.0-canary.ad4df58c1.0","@material/shape":"8.0.0-canary.ad4df58c1.0","@material/theme":"8.0.0-canary.ad4df58c1.0","@material/ripple":"8.0.0-canary.ad4df58c1.0","@material/animation":"8.0.0-canary.ad4df58c1.0","@material/elevation":"8.0.0-canary.ad4df58c1.0","@material/typography":"8.0.0-canary.ad4df58c1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.ad4df58c1.0_1594771810582_0.3486963509216947","host":"s3://npm-registry-packages"}},"8.0.0-canary.01db89053.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.01db89053.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.01db89053.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"636153cf5c98ab84e35b3258f05ea6794466d150","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.01db89053.0.tgz","fileCount":45,"integrity":"sha512-gVEXcuUxkw7pqK3nnnEPeZLsOA7px0sUnuLxR0S9ae3OzLlS0lgWnutTaocprhJKU6pDC5Se3U/Zyld05T3hQA==","signatures":[{"sig":"MEUCIQCGQPncOAIYI1x5BySRIw8RbB4tESzkTY5vmzR2fDaRHwIgR3+fSyoaCLmAX4FcNFblBq8rXSjpWRX/r0MpFxmLDs0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEIL7CRA9TVsSAnZWagAAIx8P/1s5Gw11g0fbMAjMdtGI\nIYaU0ua5WiHQFCIyCOxp/Ukn6mHJxZWnPOl872T0VHba2GFjsKYbIO4rxaDt\n5si4l0WCL0MljsTi+PdCCqJzCgI01+/XTygZWIuTIOc7NtFM2x6yM+8H9ENy\nc0GNUaImVoFRC/9tS+C1r4cW8jW05Y4lpULD263xpD87YgdZQGmNCIBT5OeH\nGXrX+kN2oMIAgD8VI8bL6HQ6PbmCQbjJA7vJovQmjEOapQY5tz0/iNy8N2oG\nmjvnAA4JoXSoBQl9qdtFojf3VGNDYjRLfx4P0Q9retIV5mnOp6DJxiEsPp4h\nKVEn15gIvSQsywBVJXrmqX/XKogQRfHHYlyj2E1KFynRPKL0IAquL9lDJqDX\nA6XVa5O4Wpwo/Es4zBjPqwQvGvXuv7Q4IuIlSPS7LXq5AfwX2/iyyH2CVxFB\nltwXxtorKwHmK+90rpdjZEVdq7wFLSV6Zhj0ahLNwSbJL9in1AghO9lSI0bC\nUiewKfm5G1L/phrv1T4m3n7ziz5TcqQkCOnofuGACIca2H/x6MJJ8Mg4Urer\nG7/BDuQEoLtTBkwmwcx0oNLR1usRnnkzmcoatQCd3vhZBr19wSNpVIkyHOV6\nO1IlOgxuYQyVeZ9MwJKL2D5MSHsAXN+aYcY4PeubrFpn2KiBpg2nYaYLAsnw\nzwGx\r\n=3PIb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8780c29a82c64caee37ec22f279b264af42412b6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.01db89053.0","@material/base":"8.0.0-canary.01db89053.0","@material/shape":"8.0.0-canary.01db89053.0","@material/theme":"8.0.0-canary.01db89053.0","@material/ripple":"8.0.0-canary.01db89053.0","@material/animation":"8.0.0-canary.01db89053.0","@material/elevation":"8.0.0-canary.01db89053.0","@material/typography":"8.0.0-canary.01db89053.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.01db89053.0_1594917626750_0.9162936736068408","host":"s3://npm-registry-packages"}},"8.0.0-canary.fb5a4cdeb.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.fb5a4cdeb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.fb5a4cdeb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d8ae44df865a6a1b2408fe03d92ee927aef374b4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.fb5a4cdeb.0.tgz","fileCount":45,"integrity":"sha512-oHVJ4sbBwtNjeRTZvBiFvXHeXgEU3rcL/d81RvgBB4AgsrQFd5O2qARx8UtZac2KYXWPNaaO9sgv/Cue0zlt7Q==","signatures":[{"sig":"MEQCIBV3kFUuBUUHdbWWSsE3iihmOt98uQCV3zPxFBbJjYI+AiAQa93UhifcmQakUwSoLIJVnqWPhkvXgGoLl+y05jYtEw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFe6OCRA9TVsSAnZWagAAORAP/Rf/oqmJdFNJz10rBe5/\nZR/Rdo1egjNOfQYvkA1aP+5BjyXbgEMHwdClZXPY0AIHd1CRn5boz/jkrKBs\nP/vKdCOyinrIo3N+SPKT6dPxv+c9t5QTijVeTi7o0qEAO9C3F2VCtiGm2ZFp\nGMKm77deGy7mIUynQvLtdk3RR9OK42X5sxV8cOW/H4gMRWo/UEk83ss8d+hO\neuUEFyb1R/AEUei0tluhmzzlMEVLgrpm1Z8mzGFdO8TxxZU1Z7MaeTPUlYKl\nv/rlcsu1BMdkuUuQzVc3KnpZMuw6GF06BrSAiLLVqMoj5pGuE8H6hK01LSCe\nenQcCiMvhBD+a9T1GDyszjruElghUvvFPZx9Zf6n+OBUBFJJDFRnBJ2gTy0n\nN837Qso3+iLTEV5c/1+gelqoCwnfJa1IzfUGjHLElVHAD0hCMv/OMIBafZt9\nrLoykQtTtKzf1slaV5cxa8ULjtaDrB+1utGjB1bpzpugtz9+OtKOvW9JMwnO\nk3ijaPEyAY7ap8kfule93n86gPnqgXnW3Cqf0PWhIWis3LdTasOzXiKXgniG\nd6bOxQrRqiQVM+HWCHBxgYeWawsQNBAWxIp3W9JOjcMDJDNPJX7lnPNnlHZl\ni0T4SP4BoQIxqbIsj5++E7qoMfGOfuGMbEtVa26xHLoJn7D+j+9vs04l1IAt\n2RcC\r\n=GVk9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8e80295b6b3e0ec36934f8d691b193c740458d1f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.fb5a4cdeb.0","@material/base":"8.0.0-canary.fb5a4cdeb.0","@material/shape":"8.0.0-canary.fb5a4cdeb.0","@material/theme":"8.0.0-canary.fb5a4cdeb.0","@material/ripple":"8.0.0-canary.fb5a4cdeb.0","@material/animation":"8.0.0-canary.fb5a4cdeb.0","@material/elevation":"8.0.0-canary.fb5a4cdeb.0","@material/typography":"8.0.0-canary.fb5a4cdeb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.fb5a4cdeb.0_1595272845806_0.8227473814698545","host":"s3://npm-registry-packages"}},"8.0.0-canary.8df0f517c.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.8df0f517c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.8df0f517c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7a6f80691094f41cadc96f217b0dd45db7992427","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.8df0f517c.0.tgz","fileCount":45,"integrity":"sha512-oD/kLoYYGV8zs1zTpQlbj+6XMV3ctMxtt/9pyktmBvUqG5WFxTr/J8Rq/1JF1ofERBGRdnStyjALSlXKEEG6KQ==","signatures":[{"sig":"MEUCIFn+nm4vVZkiehEof+xhIUlIb8ST8cQGKonXNIE3GaXcAiEAz4DQdu9Au8B0/PD+J8L6UAZFdkJd2scYI4PXqfgVWlY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097472,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFi8sCRA9TVsSAnZWagAAjAcP/iPSSNJn989M5tasohWS\nOO5/hdJLCubyXZQa4ZgX+eExZujy4bwvy1FBftwiJaM10sjUs34GA6IWNPmG\nbc23d+oBpQVYDhv2Ifz7xXXKSvBECHh7CSkBOFhYqtcnHDF0Rx3dRdX5BNnP\nWJk3Jd9kTwt2c56nxMOjnvuqwIy1De/Sg8GamneX7lT5GXcGPMQWL3BfvTUq\nxSS/gWHx1dyRznzusUseduXcxSL4iyVPGfIdWhyGrNd0vEogtXDfanFN16NF\nKwEarqA0o5CqxrnzIZ76WuFzzY3FifIgNxfls/z5j1EOz+8DRtC6TdgsbSDa\nZcbaoYEJ1gFBg+ERYnHGObtp4jU1M1P3pPbDMKWGEx3GheRQFfr9QGpB/uBh\ndgwy2OuMVNaaQA5cRzndmHkL5O9ChRvghwEQ+URk8qnlD9RYl7Zy1s0ChV5b\n/eWJzY78VPJ40yXh0cUWYrMnHtee5I7vZAaX9Ju2eMHMC9iuJJWzW+PTB4uW\n+mx51OcQ74//uJ+6+shzHF8dQqGDM642NOzohOgPow6n8GPi/3YQSDPsRoOM\nh0Gcdp7A7IBaY1EoBSrj5vRprk44trbgenkCVC90uB6XoFW71NBeMm7n/HoK\n0gw+DGuW1ZV5DDIQ9ofYCGh00iPUUgQGQqkoEatKpcmwUf144vmWAodcJxOL\nWw8u\r\n=4teD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5fca8679b0dad51628e898ac223795eea8e54d56","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.8df0f517c.0","@material/base":"8.0.0-canary.8df0f517c.0","@material/shape":"8.0.0-canary.8df0f517c.0","@material/theme":"8.0.0-canary.8df0f517c.0","@material/ripple":"8.0.0-canary.8df0f517c.0","@material/animation":"8.0.0-canary.8df0f517c.0","@material/elevation":"8.0.0-canary.8df0f517c.0","@material/typography":"8.0.0-canary.8df0f517c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.8df0f517c.0_1595289387980_0.6737046159074205","host":"s3://npm-registry-packages"}},"8.0.0-canary.abcdbcfeb.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.abcdbcfeb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.abcdbcfeb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a61e87e451dd39b6ef1c065d453601e0fa233052","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.abcdbcfeb.0.tgz","fileCount":45,"integrity":"sha512-3tWXfBtXo51E+aNZrH2RrZlpVM7Bomfz7KfvlpsUYTynIDZJGho3yH+U1lLw64YswBUQB4aQ+EpG5Ez8JBNc7Q==","signatures":[{"sig":"MEUCIQCGzD84Yuf4n/kt/Pkza8xVRB8rfkH9lSNQ4+8H52uWgAIgFlgE2daFr5rp05a/PsL4pQJm15jiwEGDCpno7zEDNfk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097472,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFjv1CRA9TVsSAnZWagAAGaEQAJyv52BBEMxEY4BhHWM9\nD/mwE6UvsprgjBd8K+2VBTM8/qj8jK9CCol4TTcUz3PbOUUGl4TUho6znWrr\nU7SA8enPFAKyab+BbQIIslqOM9NaZmmIFA10AEPBrsIZDbYb63Sb7B28g4M3\n8ZXuQVlJ2LIRu6yGIptjHaTRx/0yta19V/hO58E+1+X0IkAnwUTgu6owSwWx\n9Z8zs9kJG4Z0TuE8Iu1BjZNDZG/Ig9hCc4hSRNOuIX6/GG4qYV02nag6iQRE\nSPuihb/z9EKOI9co8oGfSFcK1LpPCjpJoNi5CPn+PE3ztFJF2439QCpvXdX6\nUbZJChtPjQX36X0MV6ow/4DQw12uXWU1ZKO32OIUaDm7TGCAwuIw8hmFAFHx\nMs8AdxahsPOdt/qDK1lFyeCmFWB3yuZrJ5J5vGk6Ow030U8m/xRLzVVMjmY1\nHdlaZJU82xZjBV2KMmPTsTGPgWEeNI30TvpLDAyXckrs7xDqgNar16C4vDys\nVSZ1tL0H0CxUMiWoM0yFyAMGd5HSdLT0q6iJuSisjG36h/yNQrBff6sVDuB1\nNzucLcucQCDormx+0yb1bEvG+ABTpQpyPho0y6Nqm1DmvdGxCDwW2dj4nAEV\nQfwDLkJ+ygmzb1+dvENa/HzdO9q5RzdXByuSxB5UURYvsIp5AFVztC6RrHHz\nxf2B\r\n=+DgR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"946720776dd73c7539bfa072ea415124b3e08a55","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.abcdbcfeb.0","@material/base":"8.0.0-canary.abcdbcfeb.0","@material/shape":"8.0.0-canary.abcdbcfeb.0","@material/theme":"8.0.0-canary.abcdbcfeb.0","@material/ripple":"8.0.0-canary.abcdbcfeb.0","@material/animation":"8.0.0-canary.abcdbcfeb.0","@material/elevation":"8.0.0-canary.abcdbcfeb.0","@material/typography":"8.0.0-canary.abcdbcfeb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.abcdbcfeb.0_1595292660370_0.6129703617611129","host":"s3://npm-registry-packages"}},"8.0.0-canary.7bd5075de.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.7bd5075de.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.7bd5075de.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4d1677c8e1eba4bee86071a7a3f55caf5ce0cae7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.7bd5075de.0.tgz","fileCount":45,"integrity":"sha512-LiZClqPI4QU8nTv7SuRQEbnDkurBE2Ln1F6veqyCNmNhkMBOtfNjMpPbxAjq5HHuFKgjflWSFz95uTyZcbi/XQ==","signatures":[{"sig":"MEQCIGVJo+jA3qcTcqSk92hDQ7O/+I1EvVcZkGxI8ufOimUiAiAWQGTkGZulsdQyQV2+3n7OqkJctjWrNdOu8QDtmA2C0g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097472,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFzhiCRA9TVsSAnZWagAAtPsP/3uuVlGZAcYVWU/5YFd+\nF8/44OUMHSrcRh7zwBqEPZZCncy2v9lMl9MbZ2PhPmlXx5Fgxzcc7H4bWSgr\nWSQTLEobYapCp9kVG+8dabaJd7w1pCeS5Xeq6egSgDMf/L8j1I70gsIg+pRA\nWnLuZxWtM6MeLXWE27TuJfSV3FyEuAzJFD+paQXz3vrpwUIE060TSAQfc6CT\nwdPMQLybB0p6mVJ8K3uW+nltaDq5Rg/5LAY3Y3RgU4hk/BgdELr9SZHi8ejL\nRFRR9aP15ClAJARuORzupzYmMNP5PnSkrcD9jS3gk+iHsC1yeUKNtCK92e6J\nBraVharPp51gjbSbyW02unOdeDhUw9FgSgcuiZo+C4KCWxRa6atn5FvM3JUI\nTRRuCR2YPBxxabODyRKrL0sz+DIP9soZRbxBWWNN3D2vOmHFwiUuN94QcQ1h\nhYIJIrNXUqhm4oeOkivsGj88wZr8Ha9izqdUsFX3aVlsiQ16pWPvVhlLiap2\nrbBy93vLQYxqATPknYceQcMg6GgO3qcUQHH25Fb2+aQPwXMUOTPM8bqXNu2B\ns9mAR6NEKvbN6VyNDmdceBbdXy83fUy48JhQQGXViZmNy1UFqK2gcR1ZWnYS\nRW+MzjMHGG7RMwVF9SrRl59LQ2ud5GW0Jgm4JmfDLADi11FRkTbYcZSE9SMu\nO3JS\r\n=iZ/4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5ae456e961b208e98164fa21047b3ff2e3f3d8e2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.7bd5075de.0","@material/base":"8.0.0-canary.7bd5075de.0","@material/shape":"8.0.0-canary.7bd5075de.0","@material/theme":"8.0.0-canary.7bd5075de.0","@material/ripple":"8.0.0-canary.7bd5075de.0","@material/animation":"8.0.0-canary.7bd5075de.0","@material/elevation":"8.0.0-canary.7bd5075de.0","@material/typography":"8.0.0-canary.7bd5075de.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.7bd5075de.0_1595357281611_0.8678469072268808","host":"s3://npm-registry-packages"}},"8.0.0-canary.405a29a20.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.405a29a20.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.405a29a20.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4ddc95ae5162e4979156f378907b5b049d489c2f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.405a29a20.0.tgz","fileCount":45,"integrity":"sha512-K4E+ImMBgO04CK2dg9iWR7k42L1ivyfLIqMIANkt11nJIwLABHKEvP1pUauCxkF/Yv9lUsI4qrXfkh6U/hBbfQ==","signatures":[{"sig":"MEQCIF3PkO8rP5infqzIzPMj47I7SlYGX+wRJfSNqYDmcZ/JAiAGgenaQH4KGrY5pJ3M/s+KC6m5vfqpXR9yA7t6sx7YZw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1098246,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGLyICRA9TVsSAnZWagAAa0IP/R8OyTU241F93KLmZ2cZ\nzOSoiywY/wxhc5bGhHgpJZ71IcMzKO7KwB5fRiAPbC9JQjTqk4rkoSk4q9AF\nsZUh0dMNnxks/GmZ354jR+V2W81+KdrgX0ZxqnORJcNMlJyE3lt1vriQoHmk\n+thFPqt7ItZisnUz7ozGEqy35k6Ad/zoe9wV/WP8Mg71lkTmcNse8HrnoKRm\nOIthnfZNjp+F2jlV7JoP6K00rvYhTHyx7yYr3KZRCkI2y9/J1RMJkWCSV9W2\nnW6IMwUVxp+xjAZ3AzShEM/dMyieJ8yHbDn6DHQ6UYWS0nWHGyTSWddxONaX\nJ3x07pWeSpRFhDY/H4f+9nHso7fSqhUEylkMvu91tZouFBF7TyMEZ8efkFH5\nhDyifLzDO/VdyHVM8MGJuVI3XHdkCRBljxs6LW+BrM92c9TWpKejMZCCFNbO\npfpGhkUdExPDVOWG9HllRYg47ih3GRzuMVXr5JFPWnRQ6yIKI9qkpRqUqfYk\nF03K64e/IMFbrWrpYrEVdJqWUDpOHO4rMeoOUdjPicIQzFI0DMf8ScPyuKR8\nJgxpr21o1srdcO4h27aU5ynwi84cuuEHFCyGreROLDqxIhqHy3nSRF04mKxT\noFuS2K4/biUfIvh36pUS0FMnkDbWxMom6rVsm27CvoKZsxGE4IXj0DlU4nk+\nI9gh\r\n=Mz4W\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"02c4f49285e8229cf49d9e4a0df213ff914b949f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.405a29a20.0","@material/base":"8.0.0-canary.405a29a20.0","@material/shape":"8.0.0-canary.405a29a20.0","@material/theme":"8.0.0-canary.405a29a20.0","@material/ripple":"8.0.0-canary.405a29a20.0","@material/animation":"8.0.0-canary.405a29a20.0","@material/elevation":"8.0.0-canary.405a29a20.0","@material/typography":"8.0.0-canary.405a29a20.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.405a29a20.0_1595456647935_0.527453715451865","host":"s3://npm-registry-packages"}},"8.0.0-canary.f3693ac4c.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.f3693ac4c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.f3693ac4c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"13462bc22b30114eebc9e871a174ad1719657478","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.f3693ac4c.0.tgz","fileCount":45,"integrity":"sha512-TBgeUdQB0SaYEMALvNeeikiRuhqim9yJPlKu9gXmyqCeIP8kMV5rSKyLdC+qrO1PWGG2jiS8xy8p0IVJIrsjCA==","signatures":[{"sig":"MEUCIQDb8MM8EigXaK61Sp7NjkZQHbLisIBXrzzR/S8XZdatkAIgQ8bltW6+Yrra4Dgz7pxI27u4aeeKr3SQ2W4jp003uuc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099356,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGL74CRA9TVsSAnZWagAAmUYP+gLhNRWohxDnMOCHR+mx\nEnfhLhxZqszX68k/PuFVtShLIwnc4S/rDyfcXtUDEBTc0lAJBXLck8cVi/eq\n4bR+4PE4Si1UyHF89Gr0ZeJ5NSSqUPup2Jom4+B7/qMVUhJQDqsztHLWAPJP\ngTVrg3q2Cn1k8CB2x5/xV7JmmCn0hUolVzGtVQtd/f1UcLsZgEPE5Hl2qM7V\nDpV4gxYjyWU8pBVCguHHenGDdXUiJsBbBRCUqJeJDjJZY7tuceFkRFrqYkMh\nfAumiel4qkmDEIK/2BSOgGSQWchcMkW6lQ5cq7hKjCtW3NLuvOfyL+tUfzWs\nU9CNd1at9N5QAgYSHwJDtUmZWGIl03axcgFobtO4VGidWcKmsDEMuWJVB8eQ\nyXK15IpWLdieauj1xnSY87e+FakLbVOIssggANfcRUiiIKwsXTDifOiR9HeU\n08jclahnnYxOemxow2UsEbP3n8JpQ07uwruL6LypsRLi2d6/Fe7BJQN/WDIb\ngzTRgLqaaARiTGmktML4cymATuB1tYnyhP4Ahq9noa/s8/TVAOq4W6v4AZ74\n4R9CaUKyxZqqetqVEOiTNaPUirV29VQcxQl0UPgXc/CvV6dL7vLvAGgvCqL2\nbWS0WAst232d+5Dk4xjkyfdvf3BTfSQJSLf4RG4h52Qic6NWAgrgbhYhy00b\nOodd\r\n=GgXk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d3170e3936d96d26a6ca17df46c1febcfc33078f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.f3693ac4c.0","@material/base":"8.0.0-canary.f3693ac4c.0","@material/shape":"8.0.0-canary.f3693ac4c.0","@material/theme":"8.0.0-canary.f3693ac4c.0","@material/ripple":"8.0.0-canary.f3693ac4c.0","@material/animation":"8.0.0-canary.f3693ac4c.0","@material/elevation":"8.0.0-canary.f3693ac4c.0","@material/typography":"8.0.0-canary.f3693ac4c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.f3693ac4c.0_1595457272116_0.47022175721926684","host":"s3://npm-registry-packages"}},"8.0.0-canary.12a109680.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.12a109680.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.12a109680.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c4300309ba1694bc5f00e7fee376a2db031847b6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.12a109680.0.tgz","fileCount":45,"integrity":"sha512-376O0aThZJXU49q0q7bLcnwjZFUiyX5Ec5AXcA85ZFmPJnUzJI862Awca01LV/b6byq6BRRGeoKnnX+IdCOJWA==","signatures":[{"sig":"MEYCIQC6Pq0WHJhwWsx6Wi2uVJ51gzVtJ9hwFQfj8xbeGMUVwgIhAKaq1Q7K1kPWZG4VIbx18AWydKzxBXgXgmwXkPuUuVh4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099356,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGMX0CRA9TVsSAnZWagAAcyIP/j6vn/C0BG64fzDSOCKE\n8Tf8zjDtISYW8DxFAoDhs+t882AuEp0jnnjrEmuLGbahU4QJ6TnAXfqSf5bk\nVXjtGdzMtizHAaQR0I9yisYlQz1cbnI26Q2jV5Ptq/yRm3Cmx0VcDuCq8OdZ\nkPXOz62A2IK5mPwlGU4h3lyuJSoFRfnMyUSZFyJRd+4DsTRYe2O/I4nFpEK3\noY6mVUKubfMfPpn/CePwIDazOEjnIz/xdR9HnWG9jopY2YAqnYwGCo8RfNJc\ngS4zJ2GDCIugftlvqUkSJpHGhRec0vIguGXz2+sDvu70KWQrzNrxssb1472A\nhYaXoocSxQ9rgCRE0FH4W50qd7GTaBOgHHR2KeDxCLSuBbfP6+cgnZe1C5Lx\njs+YQx5mlHZIVs1o7/Bn97vXHJkrblhR7jcymLm2kFtVEG2OjfVleG4owXWv\np0RBNT51f1mx+Cief7kuktgSD6TPJfn6FNIOnB49g2TtbI0lBc5eOxVLpDWZ\n6qoLsVokAmdElZVu8qz6H787NcrMOuu7EklY8oa6ybjIhqpxOtWKkEkB0eTP\n4OwORMZ5TQCS/Kw/dvpFCFiO+1ByXI5jAPAxwnlctpj2KnYFqtzKxOeRT96H\ndAcKNThEF2cLooOb/UuEon0eeoHQ+i5kt6PzR4fdHTQyUkwMFGplukNW2Q01\nXnHQ\r\n=LDa2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a403e743d7da095028c3ba6d0a66ef2f7812aa8e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.12a109680.0","@material/base":"8.0.0-canary.12a109680.0","@material/shape":"8.0.0-canary.12a109680.0","@material/theme":"8.0.0-canary.12a109680.0","@material/ripple":"8.0.0-canary.12a109680.0","@material/animation":"8.0.0-canary.12a109680.0","@material/elevation":"8.0.0-canary.12a109680.0","@material/typography":"8.0.0-canary.12a109680.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.12a109680.0_1595459059906_0.6097353015050799","host":"s3://npm-registry-packages"}},"8.0.0-canary.bbd06696e.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.bbd06696e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.bbd06696e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6277d99953856458a7d57b3eca0bc64c77083a0d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.bbd06696e.0.tgz","fileCount":45,"integrity":"sha512-NcnPsRbiiUie45/Ns4z2xFNiccE/V+09gUyaMBruj5Mwir6q8Zfc7S0s/64fs2OVqykSIG/I+4ec5gOyAmftbQ==","signatures":[{"sig":"MEUCIQDTkAe2AADJGW+MFIzj+qQPvGc8etGPuSDuFgcuhV63xAIgDOV//c4+ibABosGUElnVoejQW+xPrO+qnCE1zQ/Beng=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097618,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGNGMCRA9TVsSAnZWagAAj6AP/2VuljzEKsVwydWaOSoB\nHVmv4ig3OH5s0TkGLr3tsPnHQ5VxMGyt733tEJxu4hQ4XYfOxsB8o9V15Qa3\nKYB1J/fyhB7HpT9sSHWYI/7cepAPfZ99kZL1090bJTGYbNwjWc2qxbJo8Wqk\nxe98jQH+Q7sBwU+qPE7L4ErpBD3OllIJPxZgvap6ytrnZEmoEZOryRaogdP2\nIGwLcVytkXJmhingHeMa5AK7NMENtCIlA26q25Jb/K31kAGNTrM9WPEKfjSP\nvtATOfJ4hIZVOW9Mvf4YG8WX26dj/6O7Lt2b3IBRVHs7ndoQf3lEdM0p1srO\nMs17PAyeNcIgR6JA8f4FPIorQLboTjK7E8LpG3jAZnz4aLpTSlDkVlTh0C7B\nlm0NV9r6kyQCpmWTBGFO4tRWnDZ8oR0DWuylV0T1eVQVaAcxPNnV3k60Sv6R\nbb3vfy9lb9x7SF9wHcf2rAiAGsa1YpvAGCEmdCP1VTalBfNqNs4cD4hIJyC8\n3wczNrPTXw9xYyifamH3r7AMhRzr1BXtDg/nxpiijxnAW1pi4n9cqnvrjbDq\nhgiB18+id0WhEQrXTJFtifj2R9o+w+X28rjyQBPITYUAlGnFTxGaoM24CibV\ny6i0dOybfk9dqP/8QzeC17cUGc4xq4S50s58eaxaDBZNIAUxJi4jnNKlKVeO\nExv5\r\n=Rstp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1d34a386a37996e326b9ca18440ff1cda261f3aa","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.bbd06696e.0","@material/base":"8.0.0-canary.bbd06696e.0","@material/shape":"8.0.0-canary.bbd06696e.0","@material/theme":"8.0.0-canary.bbd06696e.0","@material/ripple":"8.0.0-canary.bbd06696e.0","@material/animation":"8.0.0-canary.bbd06696e.0","@material/elevation":"8.0.0-canary.bbd06696e.0","@material/typography":"8.0.0-canary.bbd06696e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.bbd06696e.0_1595462028104_0.41742829194761066","host":"s3://npm-registry-packages"}},"8.0.0-canary.4951e7651.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.4951e7651.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.4951e7651.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c867c0dc7a9dd3dfc997cf4b7189d249dbdc5002","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.4951e7651.0.tgz","fileCount":45,"integrity":"sha512-k/D2J4CyBo7YCBNnUJ4QU8ycZWAYZsHMckb8cDHlqEDa8E3KU4VBvF8S9rz+2lB9U2954T9TybzwWWSrI09ckg==","signatures":[{"sig":"MEQCIGRU5SbTzKOqC/u57lpsuJbCZ+KE9eqshskcgHH8EwZTAiABQ5hRQpJajO+4bHwdYmWg+1UrYCL8+E21aA/Nh9NCCw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097618,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGOzoCRA9TVsSAnZWagAAkIIQAJqNT8aiVOcjTUv6hsTg\ngQzOD8L2lib0t/k/G+F/KiHCv0XsupeMBdYAPovzs25DBpU7L8wl6JbWWNCp\nLCVr+3oYsh5ws4BOXEfPsDFUbigP1mTDSt6x9GSX7hjYTRSnRbkMDUmUYDLw\nmHemMjPWYCQcPtczLeM5he5gBACRgnQ6FpUrrv/OSJH3ACNc4S2GG4/fd3u7\nSeIC9O4b9UaxtNSMV758yElu4Eyde/aaPTRpE23IJF4i0yYenUtYT8BqOeHX\nr/nvRaItImd9LDQ+/Td2VmbHsgA2vzNbphnUSP6y6TiZYgTB41P3kVvBDry7\ngv1DO8FjTeEsMpLv+2DOuvV9sg2sxFXqt/M6MOOU23Xvmd6WQctQubhRKrxS\nCV9HLu5sXDDiB4l0UCjrX2W/cMJblkiO26y3yvu/FIDtfTj0ZWf9lgRmZPsf\nTwxS9fGqBT2HPEjmb/nr0751F0J49amGWJ2PU2wiY8PNLpCDEBV11tRrZewW\nslVNfDXuspTtFA1B72x2Oi6YsqVb7DxLmoNfHF+qMVLR5QqDCbiHETBjwfVV\ngxjXWgx+Kj5CTtxhAR6NzjZak65rkxHCMbepoSiqgyMxODTs74N/2J0eZrbH\nIxpLwAtn3cDKEpxUU8/9ViMYzM4KG/WhRh2wiay13sMHrTWcovO6jrOo+Fsm\nLDjL\r\n=zvfj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"32ca9cc0ab948e59f91965e96adf325a142b8336","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.4951e7651.0","@material/base":"8.0.0-canary.4951e7651.0","@material/shape":"8.0.0-canary.4951e7651.0","@material/theme":"8.0.0-canary.4951e7651.0","@material/ripple":"8.0.0-canary.4951e7651.0","@material/animation":"8.0.0-canary.4951e7651.0","@material/elevation":"8.0.0-canary.4951e7651.0","@material/typography":"8.0.0-canary.4951e7651.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.4951e7651.0_1595469032326_0.3847335547203705","host":"s3://npm-registry-packages"}},"8.0.0-canary.75deebbef.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.75deebbef.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.75deebbef.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"49d5620e617a865e6ec51c72606a89514073db2d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.75deebbef.0.tgz","fileCount":45,"integrity":"sha512-OLwYtBeGg9IMF6rRnr44CUkL6oCy0cEA+11KDu5ACCtoyqegTZoCMoJimi5b2u2zWA/D3gFNkujMxSigqVrBBg==","signatures":[{"sig":"MEUCIQDLL6oM6SW/UkCE1e4xlULLBwwyxJr1eMPrG7uPlWvIdAIgCQDKGPHJoE9PlhDEa7DCl7c+kl9wHj3ErRbKrNbKyUc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097618,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGc1RCRA9TVsSAnZWagAAtm4P/2IoUzfhzblvTPAydTup\n6obUV9HNYc0Ot3uD30D9SwhXQmbLcq6IQ7vHwtVK1i8klq5AhF038A05z672\nC5skHU5oOhpwYeNYxhTVelQrRo20LcX8NDdQRl+e9MAf/dcE/eTYtyagbNGt\nNfh0MrEwZr2ej90ud4cvK1JXkjSl28Q2FEHEm7fWBE9RpW0/6p7zSgown87K\nzW/U+ARTP+yvp+qkGFU99JetEcdb7YB8pxjQtefy29J/bPwjzRSzKQESJLW8\n0CZfFY37ZHocv1k8ZINGmBOaRo5dhfrdGcELg4o7ICT3zjsWHnYvgd2IbyMr\nuECioZEaXfklaDap00C0d3FNWGy2wh8Nc3nfFkrDisoWAByEJ03dFTcDE2OE\nNKoeW70jASyLFRtXIjwp1Ieb7+Uty36N7d3+pGcvBuozOn3XntGtmpyy8DGU\no4Og6UunXdDISWuyLgJpUHhz5rb6cF9M9JMTH+SEkHWtVMNeikgzyF8h4U16\n18qodEbk3jykh6rYn43gi48DBEUmRTN7BFNTKe7BPuzX1zRMyolEENrVcEdO\n9CprZccun3jVO24ZLKFPUXg8lnNdK0tPH+2yMI9seaJ2Z1p4ABRReoeeTMDA\nPYBXk8Lv1p7bllQBg9lMooygnoAgV+haIYliVPvkc1Nj+7heOlEIeoLIHVG1\n6WE0\r\n=UNjd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3df5ec3c8a254202fe3ba9017528cce3d5d906ed","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.75deebbef.0","@material/base":"8.0.0-canary.75deebbef.0","@material/shape":"8.0.0-canary.75deebbef.0","@material/theme":"8.0.0-canary.75deebbef.0","@material/ripple":"8.0.0-canary.75deebbef.0","@material/animation":"8.0.0-canary.75deebbef.0","@material/elevation":"8.0.0-canary.75deebbef.0","@material/typography":"8.0.0-canary.75deebbef.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.75deebbef.0_1595526480908_0.8237968242196358","host":"s3://npm-registry-packages"}},"8.0.0-canary.95aff33ee.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.95aff33ee.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.95aff33ee.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bccabb345fa306660574c0c79d5795610e958631","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.95aff33ee.0.tgz","fileCount":45,"integrity":"sha512-EZvSUoZG72k8VQFXX11EJypOgNrnwmEqILbHPcMuL+hpiuwLnII3coez8TTZFi7wsbi8MN4e6yqztdYEaMui3g==","signatures":[{"sig":"MEQCIG0AHq5RQQXvfYmY7Mwuhd9vXMykCiS6BZA5Sn+LKuY2AiAyP87gCDLz8x068taiZhOWQbvq9HDwpSa6AogB/oMqCQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096518,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGdtxCRA9TVsSAnZWagAABOUP/iDqhTRUEjqeibjZmS1L\nezI83j0acPp+4nu4fygs/eo8lYcefDt3GaWo2Ju9C3KnR85OhHO9TsCMR937\naC4zlEvKHoVrJYvr2pUiJbuynBhGHv3JnFhpEijqKB0apttwxM+Mo4VlcNKy\nkspeSt1y3XRTSThXsLEL/JAPNPkgqt161GP13vV1Zk0hquwr6PMaWhF10uCq\nEjzjmExmajhmeFytgr9ZNgTkeOY63K/br72XnDGSGaMf8eOosPWPRmfJKzhY\nCiZws0UyBVrLOWJwZYFDhJnYqdDJTTBkPwTYtu3ZhBXMnHS9ZLg9cugMxraX\nsRFCqcTP/qKYyBnHEr9RC2M8Qr77LM1ns8wZn2+RVSdAe/r+Kttmf4L2TkMA\ndMuMXINh/RbQLRvRDbL5rW1tbHgBVDLLF0+JqdiPbzwrBX61tJOTAHSNybTv\n+n9A4xw5s0OG+6IWHD61J2NTUhOZcS7yFNTwfU7GtTYyqNuH5zPQx70Xwx7y\nTcgCuOoVy9cJ0S9hHaQv3FBlEjXj0GK5YJz6VwynqTEd2NZsLOjj13Tsoi/L\n+O4+Ovu9XZBLxwB4GrLIPop9nqxOFVn5PJkypWzIluG48hpdFsjq4OQ+QlZu\nafgpnPaER4rr6Boiv0i2UeotjQiVcDpSa6VgAZgqrc98WC1yALaapR9h0Jjn\nZUyX\r\n=DZYV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0343ebd62969f5d4315e249ad81f2837fdbaa096","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.95aff33ee.0","@material/base":"8.0.0-canary.95aff33ee.0","@material/shape":"8.0.0-canary.95aff33ee.0","@material/theme":"8.0.0-canary.95aff33ee.0","@material/ripple":"8.0.0-canary.95aff33ee.0","@material/animation":"8.0.0-canary.95aff33ee.0","@material/elevation":"8.0.0-canary.95aff33ee.0","@material/typography":"8.0.0-canary.95aff33ee.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.95aff33ee.0_1595530096862_0.20432503779340827","host":"s3://npm-registry-packages"}},"8.0.0-canary.9d9f47473.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.9d9f47473.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.9d9f47473.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"af016408e7ae72f770e2eee5e5ea9f46d88e96aa","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.9d9f47473.0.tgz","fileCount":45,"integrity":"sha512-aVAPZm7L1RPyu0yJxIV8sGA6JytbLy+J139Aj74XCS/VkSkc83Sp/4jYQkZO2Cvw7al5wwgjIoBSQfUZ/0ZIzg==","signatures":[{"sig":"MEUCIQDfaKya4jKa8tXEF/QoZ3l2Rmh16RMWUUbUEqvpE6BcJQIgJUJtrud58qea+iXJAQm1Bu0z7scdsOLgSW7iHUQiI0M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGewpCRA9TVsSAnZWagAAV10P/ikRy5hBkc2v9jyj6KHq\nY8fOc5y0qNFXY7p/9xm8TW3tgBVjMOKIdn8qsKDA+UpI7L69M1bnTGbG7Kf4\ntAfab1BI6at9H/uw5KNc17It0YzZ6lBNuxK26tWuyedhGymBCWVIxqu0wyfd\nEso6/QeNJMSAobgnOMal2IVssM9XVZHz/eYE1i1wtBd0ptXszZcEYWtW3orY\nU2cEITw59VSvszVoCM3NcEry2tkl5SW7ubRDYy01xEC2NMzDOTxdzrdTHA+T\nt/e0IzBuaRWTNBwX8qGl26B0YDu/X3kSdY21ZnLiexnXbVYZXyHVqZXfTjra\nXaTOtyBNukcHc/lx+XyjY/0eZC9DlodmbTbVxN3tlWDrlOGWQ7nQx2nGcQct\neJ/5q9V+VWuKugbBSkcEEqua913oKi/DvPJ0I/pG0lrW7pQTc5d3t60e1+DF\nu0AVQslcAjVhj+ZKNzDc1eLmeukLimC0l9HTJJOD1KB3N8KDCGdGYNNN/vjN\n6STP7F20aX8OHsnX77b6brXuJ4HsDZyKt5Gibmlx9RGWWoC94VyY4wKpbPGR\nET61e3O0dycW8rleIkM6kPsjiW545F7PC2MMyXNeWXCdgOSuKyttJULwXs2x\n2AzT8j2yjAvT36R8V9hGRSXkuT/ZyAlssRWUH0WKJygsRC4fWqbKyy/WYQql\nhl6o\r\n=NRBI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b21be0611a45dd7df8e3b48a3fd0aab09d6cb236","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.9d9f47473.0","@material/base":"8.0.0-canary.9d9f47473.0","@material/shape":"8.0.0-canary.9d9f47473.0","@material/theme":"8.0.0-canary.9d9f47473.0","@material/ripple":"8.0.0-canary.9d9f47473.0","@material/animation":"8.0.0-canary.9d9f47473.0","@material/elevation":"8.0.0-canary.9d9f47473.0","@material/typography":"8.0.0-canary.9d9f47473.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.9d9f47473.0_1595534377159_0.49211015415045245","host":"s3://npm-registry-packages"}},"8.0.0-canary.00dfbf6be.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.00dfbf6be.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.00dfbf6be.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"082b843c2940e1d8278930f43e0081fcfde0c80b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.00dfbf6be.0.tgz","fileCount":45,"integrity":"sha512-3pBKaAWwfjEPb/rK0oCC06giweeB5wc8wTxWlR+YswAcfrXExCMudwcnxZ4Kt+6Vy48UeneKUBlm0YSBykHbRg==","signatures":[{"sig":"MEUCIFakBtGV+XqJZ6wEFlPqdLvrlnwGPee+qBzRdtI71U3RAiEA1UGH7F+DWkY7FR74vUjCLXELfvEuxhn51xfQxThMD44=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGfpuCRA9TVsSAnZWagAAQnkQAKKKN+Jo9MxtdZznuOin\nZZJVL+PLPaV853lFA1LrnR9b1KSc7rjZQKmhsywweP3lKi8AGJ9hNdQPEzIv\n7Pk10SyDq61WXGxIWcp6RwcpjnXB5TyR8WJh3cXrIvyic4ba+8tELm0GhE6r\nVLzsG1XFYdWOXjvAQXtAYmSVFbZS7mVvJXOfpVg0ueUM3gj6dXEUilz23b6h\neuM4f4POvAJl1OafRd7TM9+nyYgZSrADm/WVhk3MvVwGua5w60N6SeYtFE4u\nGms2kyTo4nT4VwGqw5EJ7OanWWWUTAp10c7M3p2yLPy7j9i1QBTpXQ6PC/Pi\nEb76UaOHwkp8RS92P4sXUCAIxsElMlOq1pWuF5Pgr4BpcQ3JU/SLU84Y5Prw\n5FpLTpUFfE0xaQPbbu62ZD8Pb/b2+fgFS2Rl95DtYtYYNJc4moOUm+I7a9Jk\nNtIyJr8PccVlgoN4e86PUa2fUuSqyQyZwygMbxlNAqHv2ocY9gL6r3j+gFIs\nTOX6Su7rarIrI5G09gfMBd/BEsQ7LDQxKKLClSCwShxXM/ZgHa2o7lJSot8i\n4KDH+4RT9hxn2xEKZi7UMnKd6dEG213sgqza98umSuQ6p39tWn2wPrm1mciB\nWeHSoZmxKnwyzDhWlkMawmMM07bmbThwnd+ZfT2R9c2N78q6OfjNILUnqMph\n9CYN\r\n=jSQn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e4a97455c736fab77028e52beabb53323eb60ed3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.00dfbf6be.0","@material/base":"8.0.0-canary.00dfbf6be.0","@material/shape":"8.0.0-canary.00dfbf6be.0","@material/theme":"8.0.0-canary.00dfbf6be.0","@material/ripple":"8.0.0-canary.00dfbf6be.0","@material/animation":"8.0.0-canary.00dfbf6be.0","@material/elevation":"8.0.0-canary.00dfbf6be.0","@material/typography":"8.0.0-canary.00dfbf6be.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.00dfbf6be.0_1595538029440_0.875134969627448","host":"s3://npm-registry-packages"}},"8.0.0-canary.b87e522d2.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.b87e522d2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.b87e522d2.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"30f4c09b365a5cbbfedec15c615d97dc37a393b9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.b87e522d2.0.tgz","fileCount":45,"integrity":"sha512-J/TliyKN8EbjDqQy1KPzFbrvN5IKyUD3UOQMLNC+tlxW9Uq39QOCMrDMsgO4iJVDK5QPiW1w+mCtx5kzsJLa4w==","signatures":[{"sig":"MEUCIQC7gSfDCstMDJyklH/v5mZynk9yjwrnodBRE/vOEZnpoQIgRwj1nCzA72+m4u38XtYKWXDwabIy3d3LJEsjd4PX3nQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGgALCRA9TVsSAnZWagAAHwoP+wXPSKJvzd90RmWB0cEn\nfrs7/KTGxmCv+8VJhQ4y//a0/UIvhRxAGc+qotMXAYKD6GOhmb7rkIHm/zg8\nfF5/q5NVa7f3YpmrxeTj0hnmOfBP46EH914maZinW8LtHTc3eBgU+A7Ar/KZ\nLezi980bMV91HZTNdUMBjdyeki51rVXgWW6myvST5sqqvaj91rfDMcHJOhWY\nMg6KAyM2ZW/qVrZpgU8ID9DRYUUn8SxljgpIZKjeKvW+ClFo8gmqxod20w7A\nbJuljALBAsOmnp21LnRztYwXJ6qk8Y0rslaaBwxJiN3iCcNV34RVAHFhMOXK\n2z2xkaVFyGu8y67MZv406OAT1TYPKTMhFORZHb9ERpBPJ88jMzQgCjsogQ53\niUNqp8QIPYwmJy1qQsf6ozvDaqQtqeMTrayKwrHbkg+vNCG9MOdziCHsH4fn\n2gTlHXXw899NH2detFDxxSf1NdvIV61aXXUeXVSIkLo+04S5PGgzDRmnEotp\nPLIekDxL6QS3RpmMK8dD8juhIf0ZnZidzeC61nsiqwCub2dZonY5xyo6XWR5\nxaOXDyE1lBCRnz24duVdvgzPnnVCxgx1rH/gQX3S1nbyAaUGm1CZHhwjWvWu\nxDPB3NAZMO9asdMwGJgdN3JdhRlYMuDLHDYz0oRKlwSvexBPBABoEjQK8rkB\nR+kr\r\n=QCl+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c6b4bba75848a4cc1d6ee29d1b67848ff11a8ba6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.b87e522d2.0","@material/base":"8.0.0-canary.b87e522d2.0","@material/shape":"8.0.0-canary.b87e522d2.0","@material/theme":"8.0.0-canary.b87e522d2.0","@material/ripple":"8.0.0-canary.b87e522d2.0","@material/animation":"8.0.0-canary.b87e522d2.0","@material/elevation":"8.0.0-canary.b87e522d2.0","@material/typography":"8.0.0-canary.b87e522d2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.b87e522d2.0_1595539466582_0.5123653484578685","host":"s3://npm-registry-packages"}},"8.0.0-canary.5b3e150e5.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.5b3e150e5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.5b3e150e5.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"814a9ccba771395291ce4b1c53b6b4dca756c61e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.5b3e150e5.0.tgz","fileCount":45,"integrity":"sha512-EntdLVXiqRTVzXOhanMGbIXTBo09tS9GE8UELSIZcaVQA6OP5SOTYd62rGGBNw99RTH5l6y7/J0DpNXclk/oJw==","signatures":[{"sig":"MEUCIQDGxMjIiL6VkMuOTfduIx4+XQAv3dANYXGMRd+/ctuMvwIgZmfsIQYx+nq1jBlVNwaWMWSxCNCxFlvoLuWELFWQtfs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096408,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGjhiCRA9TVsSAnZWagAAIagP/1zqQQTyZ/bqE/zRCozv\nuR5gBp0sRee3K32HxRY76N7Ob81FKqyZ8lilunlv/DIeO+VIhJmWrjeA4okD\npULvIcLsj3KXB+u0flWbrZFOtG81cd4teTzsJYeyxMuZV2Ka1J4TR0ZHL37A\nSeCl5f96ojr1y8NR0SyhmVcnSNOPmdcJKsE/mDxHHjRK9X4Mo2zGDRyblfAr\n1EgHnORfUFT69F16QM4GxJkvLRKT5jCTCkA9vlTbUDnciLu4pedrGMBy00x6\nzmTT4OO45uA+b9AKFDFxfKTjYhXynFIsEiix+Hf68FTO1VkGxevij8Iwxhy/\njJEkDQVuZcFY6pgRke8ONQE4PZ6rxx5pxTDPSOlW0Ys462AKah9HJXZgjVua\n63oh+Z0CHwwdjxYCKUVlyJFKpBsNV6Yug8rfNeiJ95MDRj5ffGE5lRoyxvAq\n+d0K8ag8h7oi+leWT8RQanK4/BW1jF301l14qrxO+y0btnQ+VjoiUJhsDExK\nkQxwFnqtSsMUYDTZCZOw9hkvdBRgKL0dnq1W0hKLvXElCuvm9DMDwQw7Vdfx\nSVTtunFDApU+xeKyC6CdZhpZ40mXxR4mUrtslyJdLjPj45VgibLr1AYxqIL3\nMsnOIgG83mXDszxeRXdkEFsBvjok3RIm7t5WLUrztzR6jpO7rMHDu7YqIOqF\nlayv\r\n=nIxx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bdcd04000450742ddf94918c2953ff0bbfdfe9cc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.5b3e150e5.0","@material/base":"8.0.0-canary.5b3e150e5.0","@material/shape":"8.0.0-canary.5b3e150e5.0","@material/theme":"8.0.0-canary.5b3e150e5.0","@material/ripple":"8.0.0-canary.5b3e150e5.0","@material/animation":"8.0.0-canary.5b3e150e5.0","@material/elevation":"8.0.0-canary.5b3e150e5.0","@material/typography":"8.0.0-canary.5b3e150e5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.5b3e150e5.0_1595553890213_0.7687473367060147","host":"s3://npm-registry-packages"}},"8.0.0-canary.f0ae11786.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.f0ae11786.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.f0ae11786.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e6d0d3627c2511387a771735958e18c3c60cf321","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.f0ae11786.0.tgz","fileCount":45,"integrity":"sha512-h0vtUgHhk4IkoIlhKfWYZ4G0vuhaHvY+S9l/vruDsh7EClS/5bKgH+XiPXvELgE1lcjAg3eMGs82AVQswG5nQw==","signatures":[{"sig":"MEUCIHNfL3T+je9s4pOJ/SVF7q5Djf5gnHOOhM0ximNhPKcrAiEAsaetlAoWt4Ww6SCDJ2ECKVmecTDiYaJSoJiLqEccLC0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096060,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGj0BCRA9TVsSAnZWagAAq+8P/0e7Oi0PLax0fCMIow9+\nytHl7zOqGWOXWaHs/DzvCw3N+YSFJr6Zhgm2hnk3A4p6apfaX3ZGEYToHMOt\n61vbTYfEeEbQLx+KRAuZVKPzLZYKQy8C1MJw05QFL7a8FdYbYqVkLVZXYPxD\n4/nyDfvcxQ6IEXkS+ifC/9hEOyS/8zFlsv1pcULTjToB49l1C9nL4Z4ykz1O\nFj5NguZiSjdsJkWcem981az1sA1ataAG7VDeGPcZXdPJQQzC7jt0wV/DnJgn\njGBMlS21KGQPSTNpkD7suFMsBHOKp+s0PsKkQV7FULvEMC0WqICeO7Z3mMri\nA/XxNeRGEEjrew4X9pcNmN+mXDE59Xzicxfe0b5tDv0ByAZLAJcQVCfII0X1\nEocSj00b7tk90WF1ZR/cMUTpjqQdukHvZrNdGj2RYwi4sg7vtBVLiHVFL7tH\nXK0gtOo2BTpnFLdNnoqtrWG9F97BrAon5KV6JRy5UyTcCyYWm7Re014GPkYC\nCDmtWQLawrV3bDPjOKurNwc+nnxEH9kL82ZJ/kLaqBt9VX6Ly2P/mS1xCxX+\nDkxS1Shr0c2iBYovVjSAxV4h6ii4i3NsyvZuNrfZF9pSzZ/DzHlPVgypG26G\nLnQqVHPMW2e5OIW9z1YKAvCr8xpIUmRHJV2Sm92F3S2ieAtude2qQ47Xr7eN\noPI/\r\n=Hh+g\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2f6df990a3e45b1985740da9e55bce17882e69d6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.f0ae11786.0","@material/base":"8.0.0-canary.f0ae11786.0","@material/shape":"8.0.0-canary.f0ae11786.0","@material/theme":"8.0.0-canary.f0ae11786.0","@material/ripple":"8.0.0-canary.f0ae11786.0","@material/animation":"8.0.0-canary.f0ae11786.0","@material/elevation":"8.0.0-canary.f0ae11786.0","@material/typography":"8.0.0-canary.f0ae11786.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.f0ae11786.0_1595555072518_0.592730294792815","host":"s3://npm-registry-packages"}},"8.0.0-canary.fb4ee66c0.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.fb4ee66c0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.fb4ee66c0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"35c7dc46edd825ed86e5ce6f1d5d6d41810bd0a0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.fb4ee66c0.0.tgz","fileCount":45,"integrity":"sha512-CWw9mlK8MVEc6/SjdJcGd5VUnZwbHT8NYJz5sMCpT0EdQci4y3zIUGiCxOslBUP+F5vOxNPxvhy46nlYPkK/Sw==","signatures":[{"sig":"MEYCIQCoAkoYvocgq3w/E0ryWinqd6fwywaOJfk+VYprsP4L5QIhAONOa9xHXqx2R2us6nP/EIAZ8avcmqugLHX7VJB1GdNb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095799,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGkNWCRA9TVsSAnZWagAA9wMQAJopGMBPdcTbX2aRJcNL\n8rkRpBIkTefsrYCUNoT9ep2U12+H/k8tu2JL2cNl1Qw24Q6S0OYACRJ0Kcso\nJXWvx7QKNMGOWsMJkT9PkTy7Qtzu8kXOHsQitppT795AqBN18HkVLoM/hXNb\n75ir45YXsnChKb8d1aVInyO4acJJZXxGE/k8v2RSdozeP6guevMaJpdfkNiS\nPKQumiPK6DNWOCGVpAFtyiy8vu+pqZ+lf3MTtRAK+mtd7Zlw4iGtqR204Y1Y\nVBFA2fgHOt/c5t9I19D07y6kymJbSJdCZOGvm2x53hNZWCPxBta+hzEaXGWq\nVufcJck/jkLXD13n1ON/zwG9znTShLRmB2TX4jShA9dwSduec5mOPF9HNKpt\nkecMeIGnBtDySiPbYfQsux3qzWsJf/l+GQC6TecEkkrBo6sAXriKMtoybIVV\nw/wQup0KJeGUMbaRQYlp/8/W+THH2Be6EV8amyWYIP3zluS380CifZccY5Hm\nBorXdROXevK8uWivUvpkRpdA/xJwDtmEcxR9wiwk/4B8ZARuRaB4wMQGhIzu\nmji5Q3bE0OIEyMEonOg28v5GrpPAQYgLp/3jpxhIKoOcpEUUljZ1CITmsxNV\nmQBRPeFnKXBT3lyS+ulm1Pc8qo7lT+pjabtdXeIGrmO7kx7jtMoh3FTe4Jmp\n4Gmn\r\n=U/2d\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"38a9d8f8bf46aca600cb4ba84272480ece6c67bb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.fb4ee66c0.0","@material/base":"8.0.0-canary.fb4ee66c0.0","@material/shape":"8.0.0-canary.fb4ee66c0.0","@material/theme":"8.0.0-canary.fb4ee66c0.0","@material/ripple":"8.0.0-canary.fb4ee66c0.0","@material/animation":"8.0.0-canary.fb4ee66c0.0","@material/elevation":"8.0.0-canary.fb4ee66c0.0","@material/typography":"8.0.0-canary.fb4ee66c0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.fb4ee66c0.0_1595556694195_0.543246287224675","host":"s3://npm-registry-packages"}},"8.0.0-canary.5511e0aeb.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.5511e0aeb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.5511e0aeb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"835b2877f0d430cd5ace7899698045763b5abd8e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.5511e0aeb.0.tgz","fileCount":45,"integrity":"sha512-jmMIrEvUvm1Uz8XcBosu627Qj3Ak9zr4x8t2JugnolnyTiHauZPkOXY4wlboN76tOD04rhLd0MFnN0eGSdiwOg==","signatures":[{"sig":"MEUCIQClIERTqyHDyXELWtRgBCYvaELKQP4acVHxTwBcUQXetwIgeEUB8q5njId4wMc0N1Nhcz2GxoRgGIPKSqAfiyEE2Kw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095799,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGxMACRA9TVsSAnZWagAAd0YP/158XuZ2C1iNydVhyevs\nX4eWaDDA+5cyo9ZTVU4Q2BriW/nkRXWk9GeAxj6TGneVzWrU8wbdY93KnH/Q\nrbVTh43i2lk2BcxWn4sflh4kgHfh+NBU3qTwGB17SrESligWzRuCnnE/BIIK\nEdqSSrVYWJVh+jni1HLv/RXLS0CNWT/+VflaM8YzRKYiFWLCcCEq3QO9AN1E\nps8eZPKpls+gzDpoOw2lPDk0+gAzV2+o0PW4g9bFD4PDOP32Ll3cma12B7y8\n0Snn0XVGhvf93CpB4Gg4D1Uxnt1DQ5stwNh0fid2EGTkqgXERmNyZANe5CPR\nAhXcRiXvc4j1LQUWTJQPBJCcLPtxheQYngNiysqMYTXI8WCZQaBOtmFa5z8O\nZJLWpK1B/5ahAJJW0VeTJwrXWmvz2gg+TQvjr7tc26Xc5g46pOnEMi3JCxeA\nPu039yk7fwKBGqMoCmc5+F+6/k94jMDc149FEXw223z1NSiiiZw9yJUxMNOn\nAztpvpatAfUtsbzdKHTenXqIxMrufbrbJ0Dz40D0ksCpYG1Pb6WZNZRWUEwY\nXpb04UYmRST0A84NYHKkGZXhYEzUtrmm4D2vrNmGkFO98+6nC8bFS+kVn4kz\nhXqXyqoCDLkIsiOYUZObhe4U5wgHTuiMvAeGNrnjDPVZItTx49ZMKghKZd0u\nDh1R\r\n=+MTk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dc830dbf81ef9cb796c66b2d35b70355ca46a37e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.5511e0aeb.0","@material/base":"8.0.0-canary.5511e0aeb.0","@material/shape":"8.0.0-canary.5511e0aeb.0","@material/theme":"8.0.0-canary.5511e0aeb.0","@material/ripple":"8.0.0-canary.5511e0aeb.0","@material/animation":"8.0.0-canary.5511e0aeb.0","@material/elevation":"8.0.0-canary.5511e0aeb.0","@material/typography":"8.0.0-canary.5511e0aeb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.5511e0aeb.0_1595609855645_0.9161379519585486","host":"s3://npm-registry-packages"}},"8.0.0-canary.8388a9bf6.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.8388a9bf6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.8388a9bf6.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6a9afbde6c2fc89c3ecbc4cfe26cde2ec91b90c1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.8388a9bf6.0.tgz","fileCount":45,"integrity":"sha512-P/8FzTMFZ2y9Bhbe5sV+jpo+QOps1p8RS/uWVOup9kTHpFOtz4gvfVOUH58YYj3jToJavj/7xzkfcvS/RZI0Fw==","signatures":[{"sig":"MEYCIQDm8jUZ3NIECstzcOD7L4w3UC3cKNtXtgYRxJxe9d03NQIhALC+v78kwsyb7XGIlwfqyKDSzS5YfW2DtgqcrwvCkIo9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095799,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfG0EVCRA9TVsSAnZWagAA3f4P/iziujhiNJ/unx8ix0IA\n3pvoLArxOC4dHikBFZwiAKEQbOAvLVlla+AueRswdrJ+8NnnxVEdH50Gipxy\ndgs5lyX1/UvUoOyDnTVmMvyHn8xu8dbMfqzG0Kxbbt5P3OSqypyrY2zVz+tj\nEJ5ACQDNDVF6FKZyEJFxCdEuUHMqQBp8VSuO07bDdQ4uGeAuZquWV58ZtS8m\nY0ETBjTyDb8J8djGnz8ky6lLtHDqnbwZDYZXCjqU+RWHzHHEggMZUqDlpLE7\njuUvi3YV93a/AZoei0YN+v+QE4yx/O38zDQaOLK1r6IK7AxwKli4eE254edh\nwNH12N4a7MFzvVCw5qWUnwxL2Aj2TZOJWpmeQhlYpb2VEH+X9JDQFZZC3oxY\nwh5ETwBwAF+MgjiyG+YJHTvWKnI1NbnCvnLeJAz6aVOHtACgqngQscfDA/nY\n2Q+d73I/CbhFpLg5mERfsXXWzmQGr2WQqgspnpcB0EMLxaSgAybPTxXk0/OF\niSVEtyQpxqD/yvN6IRE6WOO84+G9y1digFEDde6DAnpj6Fyp4fDh/GQku0S7\nq/tWmZP+LRKVQeV6aNQygLCoodC1cyJVaZSRsVEwbksw3Qc9GcXM4xeyCSfj\ng0f036SRrRRu8rHZ7fvC1MXgZn3cYVyIx0+lb6zomlBgYgZVuOhNVfNsHCAy\n5o7u\r\n=cbZL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f2188ad8c46b8f947761bceed0fcdfd08019e97f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.8388a9bf6.0","@material/base":"8.0.0-canary.8388a9bf6.0","@material/shape":"8.0.0-canary.8388a9bf6.0","@material/theme":"8.0.0-canary.8388a9bf6.0","@material/ripple":"8.0.0-canary.8388a9bf6.0","@material/animation":"8.0.0-canary.8388a9bf6.0","@material/elevation":"8.0.0-canary.8388a9bf6.0","@material/typography":"8.0.0-canary.8388a9bf6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.8388a9bf6.0_1595621653093_0.1521275670542548","host":"s3://npm-registry-packages"}},"8.0.0-canary.ac405eae1.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.ac405eae1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.ac405eae1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"713ca85a87d05fabc4f07c4f530a3ad173292566","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.ac405eae1.0.tgz","fileCount":45,"integrity":"sha512-eWGTe3FpCECZCPzDEh5tBhKOjRY3Ro6H0E6ibkezXsDXSmmCIUEHxVZQUCeBwmXifQ99207vs0S4UUegj1X7sQ==","signatures":[{"sig":"MEYCIQCUWDhylINbhjYZ5Lm13yBF3TeYsze9aX+Oq5eGwjfr/wIhAP4uHiePqhByfvjcy8P4C+bRguTVExTiWFEGBTawrpUz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095799,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHu2pCRA9TVsSAnZWagAA8hwP/Ahy+wT0VQTC/+AkKfiU\nbUH971jqcbaBDtT6I0DztrCwTbpTG4LO7XCKFDoO64vcoYs5dVAoHJSFwowy\no/uUyG1tcL7szCQ+W5iM2K1VOD5WT3Ue2BanlUlc7GzPcvzY77ktGCF1aKaT\neddTC5q9dP5txrkMYBLvduiDAbjbOSuCbbeCYCMX6hmK/RkXbXibhLX9tJEP\nDSnQnZ17hDbVYM2DanApJbv6Lbi5FxW9jkBL2JL8kuY86eTuX80J2Qw3EIAg\nPerji6uJozVAxJyx1eKwz9NBVW0IqYFVR1JwL0tcXvrXAnffQzHKHTIxL7Km\nzkic4c+iFIqLbJmx9IkRzzsrR2ybCcJATPbEpGNkWOei+De3Ieq+IXepNVDm\nECmB+qxCcMq1suYEcCD+Nj11qWFAuCQBGseFoLXDcmXVfa6QlVMfBiJZKC3q\nMlicim9ou/OyB+uj/QjhhaKxoKXPDiMBjMp+vY8VzoFD0HK/HgQJnEWeCPyL\n5aA33NsKhu/RdEmLav+dy2SXtNFjPEjX/hBeQT2D4HqboXqXhJaEqk9uoxSI\n4RGzzF8eGzx2qk870VAgyOl+kpTkEipQwmlVCVCjsSiNskizYPNYBeSpvXAr\nqokTzyEge+FsbwtpP1TF4fXiRLLWHKjxTuX5iuonYpjoHzDZyRN+IkWxj7sk\nA3Yi\r\n=JLbf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c4f229736a36f17b97137adbdd4b59901eeac852","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.ac405eae1.0","@material/base":"8.0.0-canary.ac405eae1.0","@material/shape":"8.0.0-canary.ac405eae1.0","@material/theme":"8.0.0-canary.ac405eae1.0","@material/ripple":"8.0.0-canary.ac405eae1.0","@material/animation":"8.0.0-canary.ac405eae1.0","@material/elevation":"8.0.0-canary.ac405eae1.0","@material/typography":"8.0.0-canary.ac405eae1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.ac405eae1.0_1595862441185_0.8566288436375336","host":"s3://npm-registry-packages"}},"8.0.0-canary.75553837c.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.75553837c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.75553837c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7c184f907af2c5acf5dfc63d48714646e0b8841b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.75553837c.0.tgz","fileCount":45,"integrity":"sha512-FJTPldIaaDc/EZACu6j+Qcu3gLhl9sdLn7GR0zcWpdAWkek2UdPXBnspVHPhyONVIRagxUhh0TFqfg79dsRTsQ==","signatures":[{"sig":"MEUCIQC0QT3UL4wuG6gnWSqXLQI2PySOyO1gtxkaAXKDs3/YdQIgLru6IHUjm3G3Ie2S388N/mXc8XxNe2Gg5VS39zbdrUc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095799,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHu8PCRA9TVsSAnZWagAAYzcP/0qMHHveenmg042UsfNg\nHtrzYsYOhNvyHphs6IxmZrz5w6bpkgcrIt4e02Kub++LLmeeAn3z7qjrCgz8\nmhELVDdt7E43ViRQVlmMOG0VuI4LMeTR/Umj4Jt8x+IDgl++2ilJmPxXTPiw\nF2sch+LkcbdtL3zttK6hSdkU9t/ykSZSX+QWAPPPTlMN1+NqYuZYReH9oM8L\niDcA6CDRMQIkcM7j6Q/aMeG06gvZN/Q2pvYRP/SV6hZ+WBTqQsYlbuRQvzjI\ntcTpBry9Srv7gX6Km/eJfOS8G/9JNhCQS2RoWaGoVgRYV5F6ThXS8/NdONp8\n43HNVRWQWdK1/GR1VCMHeQrZ87dNxObKBV2C3aPH4QYS4SlcbW5M/fVfreNw\n67uD//n5rM4HhpeiFNevmk0IrkrD6osoN8l4A98VuAjglcEGnt3vzrHMbZnI\nD43HCOYy4Op+3F+imBX86hmjyWMEjlcwOwlWuWrv2/ojPhJN7Q0Ie2EHKAu1\nz4SFSENOE1Jdcf9/Q7r17QM0hPgTsobVl8ROErFJ9Btz2Byw4uDPAtbgKudM\nmejkmTQ2QJrvSL4ABxWPpygBYpaeJWePVJU4aLpQz9TLZNZtZ+WJe0wsOH5w\nV+FoAvReAHa4u5regfSf7rueKPrTbRKVnqjuc8tfOBB4GbTPx1jz0LidCECi\ntTLQ\r\n=Pi9B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"18c0e52ebb63979ca614d6df13d96e2c1cc93216","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.75553837c.0","@material/base":"8.0.0-canary.75553837c.0","@material/shape":"8.0.0-canary.75553837c.0","@material/theme":"8.0.0-canary.75553837c.0","@material/ripple":"8.0.0-canary.75553837c.0","@material/animation":"8.0.0-canary.75553837c.0","@material/elevation":"8.0.0-canary.75553837c.0","@material/typography":"8.0.0-canary.75553837c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.75553837c.0_1595862798571_0.9743324546235466","host":"s3://npm-registry-packages"}},"8.0.0-canary.b96fbfc7a.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.b96fbfc7a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.b96fbfc7a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d36c8742e53315f69d49b3bcaf075de795620f38","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.b96fbfc7a.0.tgz","fileCount":45,"integrity":"sha512-gGWuzYwVm9mTnKg7HFpSiKVVJvJfRE8EzQAGNlSaJw05sjlUCkhALkYqiR+b6NyU/Nb3dER9oygPVuz6FSI14A==","signatures":[{"sig":"MEQCIB1os+56OKlklQW5uZZVx68tv/Y01wWYg546Ty/kX2T6AiAVmmiaAORJBiceG/ztWWKB6Mgwdw4GQk6c+3ZYdZ/3GA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095799,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHvUNCRA9TVsSAnZWagAANgQP/13zBjQNWYmCzhn+UQLn\naSOoPzYR0Xtg2Lb7EimU0yFTV2Lq6WIOpN6diy8zkxkxb5LHB94YjZlhjX+d\nhAkBhYqQ1gGXPudd02oAvE6x7pZikP20nj4wTvQZHMevfqQbIxPwmlsf6dFc\nG1i8klEVncNUehLGujFttyrojxHtkXcGAxScyEBJJCFL2SiVTVZJ9xGADdml\ndJIwKGDjEx/qJg0VbTydYtojcspO8TluZUfyuFRHS23kJq75BJ9mZ6sQGblM\nqGDG+KTMXJGoWvdBlfbf5GdYq7dJB4f3yQxQpMt0UbXEqt9dPLeT53Ya9xea\nCpquVGCu5lXGanu+Gv2TVkIDBYksB8Ovvo8ET0HDWZTA2q6YDtzHalV3AFui\nZirNggr3FFrkylOIoTES0ZSGRCTeD5wPMCMbuNwPnczb5Hhu1ghUdw6vkqwl\n+mNtX2Af4F5qUl/tMpvz+gsB6LufGiqVctSp3lPXnWZF6rL9XoLPqKNRYbX1\nCIhJZ0zcw222SL0OI48/Le1s0HBZKJZtVU2J6/d3/HRuIF2gycz9lnESHTiM\nOGgIjLYH6YhfGZuC68lvVde1N2pzInE53h/iICllh8Hvcg2BvoBI1h33R+f3\nSsKuRqLz1UMS9WDjPfMdmJwwLkqX/RZzYfXS3FW2hfYvJ3Lc4DQ0zSYeaVZg\nl0ey\r\n=gNfo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0e9c13ddacae3f3bc09bd4f168d276110fb5677e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.b96fbfc7a.0","@material/base":"8.0.0-canary.b96fbfc7a.0","@material/shape":"8.0.0-canary.b96fbfc7a.0","@material/theme":"8.0.0-canary.b96fbfc7a.0","@material/ripple":"8.0.0-canary.b96fbfc7a.0","@material/animation":"8.0.0-canary.b96fbfc7a.0","@material/elevation":"8.0.0-canary.b96fbfc7a.0","@material/typography":"8.0.0-canary.b96fbfc7a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.b96fbfc7a.0_1595864333398_0.34622506636432404","host":"s3://npm-registry-packages"}},"8.0.0-canary.61f1a8d85.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.61f1a8d85.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.61f1a8d85.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"49a57c81b2da1cba25b9d932567230f1fc890993","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.61f1a8d85.0.tgz","fileCount":45,"integrity":"sha512-d9dcqzNBfmWziehDYkUNHcv0Nw8u5b//8G2k9JNBQXRbVZ0BdP+me7IKlioZASJwhxH7xkbREwSdplUHXrTcnw==","signatures":[{"sig":"MEQCIAY+k/3KdxASlvNnATN/jR0VY2iZcSo62w1XgrjSyHcBAiBjpDeevXTVybCx0Ln4UChAKdikGCPg6q+G6LsoDKq64Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095799,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHvcyCRA9TVsSAnZWagAAqfAQAIwxpJ1vZvJkweLxFBFI\nw0on4VFVOXrhYA4l+kj7vXey63CaSgg1Bb5MOtJcAlZdITRXtlOX5ugkxwdO\nnuzR/gPcDlBnaEZTijFNo/aIY7i0ntknq29qMg+vNNHonrq3t3jxIPgCDUSK\nCkL1NqrdSC61F6YJblYCuo0zoxUrXyE8h7UevWNsQlvNVCFn5e/RdNUQQBq8\nA2QRBjHY8nYs0b7iqK4257jf4oVXgc/F3nNAoXPXXCnoMJhEnfPXaSsWijMn\n+LxfSMRgkk+TKpBEq4+WgaLC5XebdbDQ4M48Boz5NYcA6Z0euI69/GuinJhZ\nY0Xn05P5tothDOH7aY9bYzJJrYY/xInL4mA1+GjcUOm36znGSmNCPsDpG7u2\n9eDa42YxLyXHjAml8yfeqceJIdvjKynQ5IX/mUlY9O0tPDP883h9zmzTUdq1\nflqCDrD8g6usyKKRtopXgMD+m/qrpllI91kehtOkP/pyIJvVyRvSdfDMsd6Q\n2KoTDBkxZcQbrQpiIZnY6GbWzZ1eHqWoduf4P4uF9iOJY0Xz0MRK8R8N1eY7\n+RUSMnA41imWDxiEQbTKnKkIaqmyAmA3/ey0z1EWJwkamiRLxcbw3L9cZAJu\n2FsKyq0a+UxwnoudQ0hlWNXLoeyKem5EIJaji9o3AiggfXxG5CJm1IvFuuOR\nnwfJ\r\n=yj6C\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"71b0bdc987ed1b1b5ad827abc78149cd4efadb89","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.61f1a8d85.0","@material/base":"8.0.0-canary.61f1a8d85.0","@material/shape":"8.0.0-canary.61f1a8d85.0","@material/theme":"8.0.0-canary.61f1a8d85.0","@material/ripple":"8.0.0-canary.61f1a8d85.0","@material/animation":"8.0.0-canary.61f1a8d85.0","@material/elevation":"8.0.0-canary.61f1a8d85.0","@material/typography":"8.0.0-canary.61f1a8d85.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.61f1a8d85.0_1595864881906_0.6104466569798241","host":"s3://npm-registry-packages"}},"8.0.0-canary.81dc33377.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.81dc33377.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.81dc33377.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d6d1f92f4f1cf708a353aa2ef33894b051c2da11","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.81dc33377.0.tgz","fileCount":45,"integrity":"sha512-4KQbd31aQszASD1cQC/aAmIIPQP4XAsccoc0QzI37BnmMCZb52UI+pe8kRX6UjCNzhNB/Z2NnwUBjM4nOYj7lw==","signatures":[{"sig":"MEYCIQDA/MKLEnOClnjWFmfxkyEUEhinYdAot4KI7EtUoGRYxQIhALwRww13ocpBtmMv/yp4phBD3T+yEI6v+sgb3a8SvgtJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095799,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHvoHCRA9TVsSAnZWagAAtLMP/0CZgYk9EkXkk5KKp5qz\niWh129SWTSXyNJCrexHHo/dE7BatHgXB5oZYV9OV3OPHXZ1NJPNfKnZIiZKw\nM9Q9HpL1woXkN6XAxv8FRp+o2N+U3OVGEOAPxKHESCdD6okp/fgJ/G/r1Th/\nf1+/V1JbeUHgUAZN2OQBS2oQhgi5keoUhsGK2Fd8QoBNfYi/7MyjFjq3DWst\nLaSJICSTzov77fE39USCEH9LbDZYbN574LLqPkWNQ5XLNtVeHn4NNkCUkGO/\n2Ifas4BYLgtgusDCgS3oc0p0GeiyjiTOmW98qayISxiwlOfRQl16qPFlLGxV\neRQxV9ebtztgcGz88wNIBMZk6dYhDndu5yzI6LxjHktWtjSDQSBVe2vtA41R\nv4qadL9QKmOdYOHx9vRX/8hTclnwe1ce8OXyTYF9VbMq/+ukRYkaQhzkkkVk\nM/D0R99/MPcWhkGqewwZgc9SL4igRafvPnHkr0RILRQ6F5fqK7Sd4O4wpJXj\nh2lxBzo9i6tBPsgpk3cnCTRgjkoAeJFTb6uwkViKEawW09IplgEbR448p/xn\nHUy4uxsd+hEC6VGauZ7gpdhdTN+xtK4PDnl5cGvf5BqBCEq5HWlFyd8UdXBh\nhkFTFqmet5WQInU33nbUweOlGHcW24gSQPqccvZA6LHrhZK4PRtw4H3ZE/Yq\nGy4H\r\n=P6bB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"14e4858d309a20ecb69620f07c8f427bda0821ad","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.81dc33377.0","@material/base":"8.0.0-canary.81dc33377.0","@material/shape":"8.0.0-canary.81dc33377.0","@material/theme":"8.0.0-canary.81dc33377.0","@material/ripple":"8.0.0-canary.81dc33377.0","@material/animation":"8.0.0-canary.81dc33377.0","@material/elevation":"8.0.0-canary.81dc33377.0","@material/typography":"8.0.0-canary.81dc33377.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.81dc33377.0_1595865607360_0.5743784742377223","host":"s3://npm-registry-packages"}},"8.0.0-canary.ffd9ede58.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.ffd9ede58.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.ffd9ede58.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0e230df09790382493da27b7d3454dee614cf220","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.ffd9ede58.0.tgz","fileCount":45,"integrity":"sha512-D8EsoVgmt+eC9CfNVwkYgSPobvZVGwUQlPekfTJDbMa/Ix3IGTv1Kmh6OQCzYoGhIAOnWkVizvqja90+DWDLwQ==","signatures":[{"sig":"MEYCIQDbH/IIYs02eTjdL1qIYb61lURb8vD4UZMymZU5Wk4Q8wIhAOlBGDuK9OQVuP5V4vFCm9GPhZSRRzR+I40FN0YqA2Fn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081185,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHwHZCRA9TVsSAnZWagAAvhgP/Rm/8icjmRq53ojiDW/Q\nNNR8rQNHK7DYWRhJx5BCFK4V40YzQuEYKfdbxeeUJBkRom0MQSvd5a23ZtbK\nn2EJikYvlP0d9e6cUbvbwVOda3BCIdSgjZyj5lN1aLypzRLkUiahDulmuBzK\nDbJskBuhmIVujZ6ivbm2Rr7DsMqTwYok4UxH2RbUghmwjIdX6pI49dZ+bxTm\nIJWaEIjJuxEUeECZi51DHDSdURtDkuCbt0Tw/VOfk0OXGznIwu81QOqaMLoG\nSql2sykJsjVLFRyRhQ3X9GXPhM6ya2ovcdLCGWh6eCESn2toaWtHUBVpPIv7\n2rW9ktnK5DZ5ABeDjUdwE/clYOZYeQSIDjOxl34INIuJ9V9vwYx0bFumuH7u\nxiN8/T8avOg3FV5S9Ykh8roQZOJkD0S3vZnyNClSiQK0Fod1GLoJPQ0IRqpU\nmKlrWFVgDQ2tGWP2QQk1ru5tUcamv4LORypvBYGeYNPmjQ1fIO419j39d9Mc\n+rYcdbmtbrLJIqAN3IzzGeVyHApJOsIzg/wLS/lhcV8Am7eEo0dneEINlBFF\n0ycas++65rSP/Lp+sIFW6d5kI2seP+6AYRfYGbJU8NjKdyZRqYmxjbymsebA\n18wYmCLQM4XWxJ8J42AbJIdlaldcUAwxgHAcApjP7IyX6Rr2/JED9ywNhNW/\nars7\r\n=DMnu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8a029ef9963cd4799ffbf7dd03908a696d110f7f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.ffd9ede58.0","@material/base":"8.0.0-canary.ffd9ede58.0","@material/shape":"8.0.0-canary.ffd9ede58.0","@material/theme":"8.0.0-canary.ffd9ede58.0","@material/ripple":"8.0.0-canary.ffd9ede58.0","@material/animation":"8.0.0-canary.ffd9ede58.0","@material/elevation":"8.0.0-canary.ffd9ede58.0","@material/typography":"8.0.0-canary.ffd9ede58.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.ffd9ede58.0_1595867608919_0.8990269170355552","host":"s3://npm-registry-packages"}},"8.0.0-canary.52dc55acf.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.52dc55acf.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.52dc55acf.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3b430e0ab3d113d1d8322f87d37347923091d7ac","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.52dc55acf.0.tgz","fileCount":45,"integrity":"sha512-bmcVJPNNXsSwvIjE9DZRIijSUh9/LNAUxzG7HTqbeSB7eacn3GeCFS1DROY76pOHupS981a6iLuCO1Xcr3kx6A==","signatures":[{"sig":"MEUCIQD7zstomoDRIE+Ny+H2C9+jSJcqSQYndX9rl5sPFZB8QAIgEf89mT7bmNUKYSMEOEc/4WKEaiCloZuasJRo5tSFJ/M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081587,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHwpECRA9TVsSAnZWagAAj60P/1tyfTDXuMPwjD/ekewy\nrWtn1kB1wWk9xbLb/AapSuPNy78TMAyFY/gTWL53oNpCDe7nmYdeGdTHzsfG\n4N+dX+a9r+dRHqaphs8WM7lAQFIbBRZnCRK1W2WQqQEenHS92eHjHti2+7v5\njOsrsccZvWGCeidvzB8WTQM+mv5gyHjiasL/krCPexxJ2RwjxM/R2JyKsyc+\nAZPhV+I2M/I+OhGyQEfU1HqYbqjeNqXhvpfycvWpMBGHELVLBR3hmCLQn67Y\n3c3w7hJU5/l0u2XYpABqzaI3u7NDhVh6tXuJBVEVdMHBiz8K4zKP1HrQmvAA\naJpCbCruL4zdOR89D2wEw3vc2BaRiAhk3LZsbqTOdO+0qBHuMlqn4CU4vb8I\n8WJdOEZ93yhrpdOvSIwW+4smH8coIxaShqGrahGTJSyq7kQ6m6QrFQNgGMBC\n36lKkt1DIK4SiYY5i9/9K8PMf/aPUyrv54Ez1upbS+RAbLGPVtf2jUuOGD4C\n12NHnRb5wXOjXdrM860DG0Ys2MGvXceinIDh+wq2gkihoLdtD09GgZu1T41t\n5F4DfctlFQlAv7/6EEfaUpfnUdoBCCLLqVeqeA4ktDtoy4cqzJw6EetVQZ6r\nsyce+Ukc2CT2ZXFuKTSmGkk5YNRw6qetXrluSA78dkznLCUK0cbIF/tOPz9r\nw8ZK\r\n=i7iO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b5253c9af3b0721aeb0cd096ac48b4c113801757","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.52dc55acf.0","@material/base":"8.0.0-canary.52dc55acf.0","@material/shape":"8.0.0-canary.52dc55acf.0","@material/theme":"8.0.0-canary.52dc55acf.0","@material/ripple":"8.0.0-canary.52dc55acf.0","@material/animation":"8.0.0-canary.52dc55acf.0","@material/elevation":"8.0.0-canary.52dc55acf.0","@material/typography":"8.0.0-canary.52dc55acf.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.52dc55acf.0_1595869763793_0.9904012534236533","host":"s3://npm-registry-packages"}},"8.0.0-canary.d4274ff05.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.d4274ff05.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.d4274ff05.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"80cb2eede552fbfdf5d8f7b435eaf1b72656b6c1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.d4274ff05.0.tgz","fileCount":45,"integrity":"sha512-tQF5KgWfJprF7LfoU/+pYT2Q6EyDxEoVxukMSgUjOZ5qfg947YStLxDVn4ntcYG/ETdXHcXpb7zusxEY46931Q==","signatures":[{"sig":"MEUCIBkHtQs0OWlV2xvOr7UtBg5L2NG1ECKAkupWRqcew/SDAiEAjfsTHmdS45UpFlsbuea21oYQHqCsLdy9ApSc7MVBm2U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081551,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHzBfCRA9TVsSAnZWagAAmicP/j03IKwSKrh171sJa6yu\n6ymCsa0Zu2svjTlaisA0/6LvYoUq9SgmCSBLePB+e4nL8oFhGDmhUOSFOsoY\nvnptRbAwrkqZeSI3Ryc5cKbIskhWnUk8AOb6tLi9K4Ym4bn33l7tzcAuKpKQ\nXObnxU/DnRGi02C+36cjPUNVvOPqPwH/XnJKuk8J/9XAr8yWKP4PIoom4QqG\nlzHbJYhXKcwyEHgLauHDKOs0lPZkW2FpCzpIruHKMn5ylHGKxiBNgsXSsaom\nEmoXzCYc3dynhxhcnytwZCorphAVXAz0nMOsCXyr1kRi5S/i6QEgBshETSYy\nFO+FsAdf8gnesjo39UhjzKCbVXBBdv4qMSY49OIUeUQNhHgfDdvVnyHB6qIC\niwlg08DTBgH2ahEdDL8oFcIXbxSzrouqoj82aj0k4uMgK1VeOrqFijxZnIHX\no2v3v+zCafECTAcPDpSFUEInxrJGm61JUfkL9+dtF5Dqhjg1+h4m3C1HA6Bf\nNEDUwJ1asQIfC/Zm0cWp0qXeg+nCBhisCJTr4n5NWqSZtmMRQ2DCItQzrLz7\nwbEuIGQP3y1jpPhVE+VSLjfRO0KwrE32ALb0Qt/z0lfK7qZzFJH610COFvOL\nAHLcSoGg5IUIfMeCObbtu5uW6HrY9yMDEF3vE4iiDyiVIYCUXMBmqpG8fwQI\n+1DQ\r\n=j7Dx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b4607e708cfd7069d540b1fd6042775c4599855e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.d4274ff05.0","@material/base":"8.0.0-canary.d4274ff05.0","@material/shape":"8.0.0-canary.d4274ff05.0","@material/theme":"8.0.0-canary.d4274ff05.0","@material/ripple":"8.0.0-canary.d4274ff05.0","@material/animation":"8.0.0-canary.d4274ff05.0","@material/elevation":"8.0.0-canary.d4274ff05.0","@material/typography":"8.0.0-canary.d4274ff05.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.d4274ff05.0_1595879518567_0.5988794349189839","host":"s3://npm-registry-packages"}},"8.0.0-canary.b82d0696d.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.b82d0696d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.b82d0696d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c358b46dabea62a0be9caf18d2eee3f8ed090069","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.b82d0696d.0.tgz","fileCount":45,"integrity":"sha512-eU9zVg2lRlff7FUuQkvCYcBQVV88JnrGX5pTbzxu6mDoLqyU0aqd4AZzFPDBLAlkwAwvi9fuQaJQgpFGQBoO9g==","signatures":[{"sig":"MEQCIGpbLvh2BHn3bl6OMy4a/u2UuwytWdLqJFJVrjJxW16xAiAPq2HpL43FUT5TKcGZYAXQvt5W9DV6fEm9gSKePSNH+w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081551,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHzIECRA9TVsSAnZWagAAoywP/Rtfz+KAjDSFR6TrRZAt\nTzd1HBaeyk6S7bvQGwzr8kuDtx/54E8r2YCBEI9xgEp8Sl8voUtlyKyi/aWa\nvX/XKnPjWQA5jdD2C4Zw6cA3K239vR4nOYlYVt3YqPWT6tP2sV3nNIM7f5L/\n1boEhLwp49oZ5GkOJJXFHaGVK1sHcm9NCv4Q63d5Fud6QuA0aMeOIMOekc4h\n7nk41wxBXbrvScAzKFsCUf4oYkh1eSoUKxgk1fa2TndY0hwKXkrBZc1paMf/\nl9Lgx9mVxk94aEPYPOtz8KQsUgG1ULdI6mMwgxOnjgBMEyf2zo04GXGn4dlL\nidECBX0YnxdcX4paXHM2ZtFg6KQUe+ZcXkkxbNrqqBAPrTk6nicPY1uk+Q0K\nRRBJiqHQOs0cHsR6oU3knezrp0P9dxF3L9zZjiRxNC7LQ7IE5O501IUinvc2\nYILmUoHB3ur1ILaq/PdlhTXjd/7qe28kZSfOZJVioUFzIWFigmcRQkK22q9N\n+Bas4dhndATTOg32cTJOQs+tWesbbhStMX1zPmNwo7BE+179KaO6Cp6MLDgR\nT2PKEsl0o4X5kzec2U8zcqwEENuU8rOJaQwlWf3f1APGUwZxQoWvjiObkiQ+\nT5McZLg7r68OSFoe77VfZko8XtZsRttMd/rTL722+CG7PverFtE/Rc1ixG8Z\n6QCC\r\n=rmh9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"914e71226c9aee0625b5bd1fff56b887e3c924d7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.b82d0696d.0","@material/base":"8.0.0-canary.b82d0696d.0","@material/shape":"8.0.0-canary.b82d0696d.0","@material/theme":"8.0.0-canary.b82d0696d.0","@material/ripple":"8.0.0-canary.b82d0696d.0","@material/animation":"8.0.0-canary.b82d0696d.0","@material/elevation":"8.0.0-canary.b82d0696d.0","@material/typography":"8.0.0-canary.b82d0696d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.b82d0696d.0_1595879939536_0.22789685696434336","host":"s3://npm-registry-packages"}},"8.0.0-canary.c2852000d.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.c2852000d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.c2852000d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"53a73ccf7da94470950624c656785956b294f78b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.c2852000d.0.tgz","fileCount":45,"integrity":"sha512-gMMmOGVc4zSA2DAUVS360A1MWJ/VLj97TpEYHXcJuykKZCT8uxs1erSoDUSf43AV3uPaXARUh429pggvJhFGmw==","signatures":[{"sig":"MEQCICR479jt+KgZEgRRoJquUsvgLlNZUyjy+3Nz1YhojGsdAiBKXFVdGpqxGilHm3W/PpRa4jKEo+PJTvUn/wVLyl3p4Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081551,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfH0AhCRA9TVsSAnZWagAAuAIP/2dvQitBE8ez7dIrAkw2\nyQ+zYd+xay5H9QQbF0jaiW/3IP04+PJpKWpFrwX2AxxT3NVNG422caGKaIID\n49MaQOhf32z4quKtbJ/QJK0h3Rs5KEvmTwR5CWFdqtRj9Lk6EbYFwyP9p/LD\nztjGk/jbpZgPACdNEMsUqc5n2GXF8P5SqhRSPK2RVCac+h3acH0INXVdJJY2\nobl7lkc1ydU7JyvEGuzdaZhvuvRpCnn1AzqxR/QmxRWFSHfukwu4BU2Jm08F\nvbgWmcsHaj1xi85pRBb5qfPbV7FTxUHZXAM0KOtIauLT1ae41ifVyv8eaQKf\n2YxVxgXOeJ1bHZK0kscVZoqpl7Ixm9xDXci0dTwp/5lJzVdeOBny+MkyGekk\nJmTHy79iS+ZhUjD4Xc5E4y4bQMHSC4nIX+0vz7aKpr5SaYQhtFFhB++ix8ci\nDv4ICQB5ScUxvPfae9BXlENzxS62ZDSXX9xe/KQ8a+Xgl60N9tQivVBcvVuk\nOenI5ugfIGxQLRGbTH67laeKIxp5zLHKvtobmli8RZDoAv2ZAWD4GrCzZ8JT\nh0+lzDukED1DzgjOfTxz06QkkDOpkxZEWYHQga7fClqz3ruhOJqkXJssWykp\nF3m3eLJdcB4QBfBlpt+cE1VG6bWihL9pW8vqCJ2sp6EkCVx1y9xe0Ri3L/5D\nGwQq\r\n=+nJf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"53080ff99f83ab326fefffad16cd09e449e79f27","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.c2852000d.0","@material/base":"8.0.0-canary.c2852000d.0","@material/shape":"8.0.0-canary.c2852000d.0","@material/theme":"8.0.0-canary.c2852000d.0","@material/ripple":"8.0.0-canary.c2852000d.0","@material/animation":"8.0.0-canary.c2852000d.0","@material/elevation":"8.0.0-canary.c2852000d.0","@material/typography":"8.0.0-canary.c2852000d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.c2852000d.0_1595883552826_0.17766021501326779","host":"s3://npm-registry-packages"}},"8.0.0-canary.f86f83f54.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.f86f83f54.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.f86f83f54.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f37d92d06f65adf7e3862975b05a3769b1fe64e4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.f86f83f54.0.tgz","fileCount":45,"integrity":"sha512-VQOKfeIo3AwCchYqnjpdcbvTj9JbwXneYgcs84omzLbYI4B077XJE3WYJtu5A5s7DpZJlSbySb1qasnBHWrAEw==","signatures":[{"sig":"MEYCIQDc7yHP551XTq4yeiEZJPRc0+fpsP+MHG4aaq4xiejWBQIhANEJO9pBOpyRL9910fLiXJy94RH06R2lRWJeZ6BeLpKb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1083241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfH00tCRA9TVsSAnZWagAAQh0QAKHI1KSxLOVuR7/4fSkX\n8HCiGJibnHQ9rxdDqrjrUT76YgJ4pTS9ctNfGEQ/uJHS3q0isZ9FP57kaAIc\nXWTOWF5UJ0N/tE/evCzSfAmLK8rNg3GgauYESjMJ/XCdtJhFeLCYfLn1SouN\n7HrSf9tOX/2VC9/ygpvMErj97OM7GOYWquIEsuH14Q9LKQojEUQ6tb2mBgoe\nZsW2LBwfKkVbQxsbV8ATq9Zs0ixT6uHeioeWktlTP/3nCVwv9HM3C2SRAOAE\nr7Y5aUR9XNWb0r/8SZ6gMqV230kruDIJYG1er/hjN/KW3rH1si9HV4N1xDgI\nPALL6CV+PWnC3aMpvFGBltIagVBobm1ctYHI+apRKqjOo7JBNVidKNgncOZH\ndfKeratRkwhzK95uxsbl2PodAbdQ/r4xZOMJqz3t09KOIdbe4miRvVWhkFNE\naLjhyMn8B3h9SMOGpG9/bgO+u/oV84vz8okgfMF4IGPC/YoIJER+0AyYuZgK\nnfMnwo0MoVaF/rhvYlY5BZZrrHV3o6EUscCEnWtmzQQuOTLjstVSCMjuO4F/\n+ujmogAGfW5CXyZDGKc3YJScrcfdV2CHBvQ1H9pliQFzbmIWF7TdC3Bn87q1\nNpLBYBP2wQXIPiAHVIXERGOgy2AP8oVjZzTjd1wcLGEMwuHQs/oCfk4xRgT6\nbSYp\r\n=YLH5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3c8abc334934dd33ace7aec681868717a4e26d0b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.f86f83f54.0","@material/base":"8.0.0-canary.f86f83f54.0","@material/shape":"8.0.0-canary.f86f83f54.0","@material/theme":"8.0.0-canary.f86f83f54.0","@material/ripple":"8.0.0-canary.f86f83f54.0","@material/animation":"8.0.0-canary.f86f83f54.0","@material/elevation":"8.0.0-canary.f86f83f54.0","@material/typography":"8.0.0-canary.f86f83f54.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.f86f83f54.0_1595886893252_0.5474746644841704","host":"s3://npm-registry-packages"}},"8.0.0-canary.41eb1684c.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.41eb1684c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.41eb1684c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fc4b03e2368d3ac787bca895ffdecb2d4d058ce6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.41eb1684c.0.tgz","fileCount":45,"integrity":"sha512-Lp1iu2YFw45W39GhWlu6u3kqbmrLUW0SqrRj4GOR6O51mHk4dsmmvDA1p2IYKQjsIx+Sbdzcygjd0RTytYFjGA==","signatures":[{"sig":"MEYCIQChJP/9uERk4JT1a9UIC5c42fkzczn3HVdqe7lCpRN5WwIhALRRVduGlbSQcVFSP2w7yJNtaqn6Lf2q+OLbLcuWP0VA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1083241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIGWZCRA9TVsSAnZWagAA9kUP/Am9bnjvJzLbuVfKKI4Z\negy+/TEGzaMbfa23VNvlip1tQt0GknaQJERT48hImnYZvX33nONNK7EsMqN2\n+rFJ9HvdMZDXQaxagOSnnxUl5n/LbjiY2pjUwC+0P4X0EAHOoyg2/0McJ4hi\nWnC73LmuuPThk0/xrfEQuX9V20NPZOvl1RmK+iJR47IY933xTxhJY4jt1CNT\npwXCB3S0b4nblOQOLj378xsRyLRIvf9HlbZ+bisZUGbea8Z0bZLEHOckDuAb\nbu3Tnx7+RH+1NWX4FI5UHWya59dQbPDdh+BTBHKdvSWB0p63LTlcndk64VeO\nDWw56wb0irwZXA9WQSfAj5cXRIax0rF2OIMyfWfGecTePpnn90rIGOZPAEJH\nse6oePwLt2+jk065W9Atk+/SNcCe0qFJGqEp1IesZjeVMBdGny3T6tCBEA38\nWObSTbAYlrzkFHYnzE44STHaegDa86AP5zlahpbs0zglUsZq2THXZzymrmps\nHBmDntZVtDLewOlIJma2gtByYcFgS1GXr9j0WdiBvM6w+4y+46O2XcntF+dh\n0YAMBxc9wt5ogfRyUsCQzMDdhNXzZ0SXPPIBeSqmT84cvMooRmzUDVlZGbAP\nVN1gh+K6oZtcOqzGaqvNlqWXaqkodR/84cxs1l0VyECAHxo2qLPFZUR4jEi8\nyXOu\r\n=Er4X\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ca556c545f0bd908ba57eb0e24e99d142cc05b1b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.41eb1684c.0","@material/base":"8.0.0-canary.41eb1684c.0","@material/shape":"8.0.0-canary.41eb1684c.0","@material/theme":"8.0.0-canary.41eb1684c.0","@material/ripple":"8.0.0-canary.41eb1684c.0","@material/animation":"8.0.0-canary.41eb1684c.0","@material/elevation":"8.0.0-canary.41eb1684c.0","@material/typography":"8.0.0-canary.41eb1684c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.41eb1684c.0_1595958680466_0.09764604798538645","host":"s3://npm-registry-packages"}},"8.0.0-canary.9e2f6c450.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.9e2f6c450.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.9e2f6c450.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1de2c8eb4b10f6e2d471fa794b87d2b3ee9f1a16","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.9e2f6c450.0.tgz","fileCount":45,"integrity":"sha512-hVlMFEk5EfXyL5uVsTJsSZawyZAD7pVoTuTymbxOqc9al/f7iz/TniRfMNB4vKh2mJ+JspaTa6uOFfbOaW8pIw==","signatures":[{"sig":"MEYCIQDqqzf9BvuGF4oz4t1f2ODnANI6+Wt+TIH6s89daUJg5QIhAPJs75TmHrn8BMI3Dtz8Dkl6kcFIhgMb3/45Ald6XhNX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1083241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIKlICRA9TVsSAnZWagAAHggP/3u9UM+wynmA+Yz8aSMh\nropSVk82LjRFLs4GjXB+LxazzgVQyxsqC3yGa93+dN7UAx3+znit+eVT9Ph0\n4RT6Wc4fahwGkRqwKFyF9LbXAROjrPoIs1MruvEgBpTBLxUDDVfKVJ0mElXb\niUCg46Lijwtn1KXzLxnD1y406xoSWmHoein6Fi0OluRh7nm0LudB02WmBAg9\nyweSCWJLddGk8h4vjti0GHMc+mF+MB9OwDvDnObkJSE5+owVHhgYZ8d9ifAg\nLAf8t8RZPaJHXZiJPGBsUxhjiHCNy+2MEWF5H6gx7T7gCDr9xhr/d4qdqTDW\ncNNYvbIaGTw6/oLDSpusEVMeOD4TcPX+c3+KoZUVyR/GyPYZ73tlobAwfIfz\n4f3uJd4DM4JMPcngfJX5YHu1QJDiXyTT3B5YyUphcf4q6zFZCej4bngKaPmz\nooXHS4piVK3aa24k37wj6pB8jKAJVQSHRQFGEwxfg6iY9twx2k4lnyFFvetC\nfSfDJAM902JlTX2StHC6vu77fggjvtiTjZ7qdClj979BKi3ifPCvOpWFKGFB\nZKsLsaXs0ZpAzmevNou4jY3gs1JZrKIZ2TChRkSjTKCdSAY3Kr6DfejvtTAC\nJpl6MgYrdYpUp8krIwF3NZuvAspndxwboqqG7FRDLVcdU3KGxGngBOubTRUW\ngsgx\r\n=io7V\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"20a3870f861650ab884eeffe1d7657aa376a8ee0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.9e2f6c450.0","@material/base":"8.0.0-canary.9e2f6c450.0","@material/shape":"8.0.0-canary.9e2f6c450.0","@material/theme":"8.0.0-canary.9e2f6c450.0","@material/ripple":"8.0.0-canary.9e2f6c450.0","@material/animation":"8.0.0-canary.9e2f6c450.0","@material/elevation":"8.0.0-canary.9e2f6c450.0","@material/typography":"8.0.0-canary.9e2f6c450.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.9e2f6c450.0_1595976007749_0.226948316006637","host":"s3://npm-registry-packages"}},"8.0.0-canary.e6950b55a.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.e6950b55a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.e6950b55a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"63ef180d8d7eea4f8881adae112a44f05f3bbdc6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.e6950b55a.0.tgz","fileCount":45,"integrity":"sha512-rgIe0f4/zleD341woD2OEQKUQbmsY54BvoFCJJmXT1LUJhOobYCe2FVnGF5UKE+Gz2JDS20XD59b6wNkZeKQ0g==","signatures":[{"sig":"MEQCICZ9Itp1VqQeP86tWcxyV0g30kWlYA/X6ovPrgqOwhbmAiA8qpsFUA1qW18Ynu5wRt+pFYVRcZ2XIpz7HgBrRa8P+Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1083241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIKxzCRA9TVsSAnZWagAAmk8P/j9eIT65q3EnwruGZzGQ\nTN6C6U19OYRz2y9weasLWXtkUOpKzIXuql2W2JuAaHLTGAZugLUCOjPskFjV\n3g/MwEY3Tb5nXW19Em92eMUUb6v0tl5F8o9nLX9Gp8RwahyCDsYw8SnHFC/K\nCKq9UAuJ2EQ2S/bPKLIDqZzcohkAQN38uv7NNtVscCJu4gek/ek/+ExehIVB\nY2mC/tZsQN9yeeA2KhdEwqG9saeG58rhT+5JrEVxPCLqe2K7bTsc4JjzQEV6\nWfo1Dq5MuQJgHvONRdzI06UfJlHJrdB1PpfyzmwGb7+6RsSBCmUU3TiBz0L0\nnGxkNObVnFyA2K1jBemF1bJMazsx/aAG2fBvfDDGfCuFeHvQuNU67q59DdMZ\nIuJGOQTPZx+eqmS9yEwZhjYbSiMMGKkCXwiKKbGXt3vDvnv1eJ6SA6DPhfU5\nT+b+vuZrY7qWdJZMOeBAt8euoUMuwWq4vg5fPE1gn7jkmpXwCKUraLWnvtFY\nmpV2o19c7f56Jh0ki9c52yrqK1wyjCOXAnGsDxJjcT//cvoc0pcEDqXPgfAF\nc16kciIeNkaA+BCf4xlQ367EwqsQQKzpdZRFFHoO2+SLFZvCegh6aesu/bqO\nDdfdvxRWA/kgjInfbFHJZp0c/xMFGt1+s2hdiei7rBOEixQ+x4dxH/XeG4b7\nHtdD\r\n=qdCv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c71461d7d95f313de3fe5609fac67c2302432c36","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.e6950b55a.0","@material/base":"8.0.0-canary.e6950b55a.0","@material/shape":"8.0.0-canary.e6950b55a.0","@material/theme":"8.0.0-canary.e6950b55a.0","@material/ripple":"8.0.0-canary.e6950b55a.0","@material/animation":"8.0.0-canary.e6950b55a.0","@material/elevation":"8.0.0-canary.e6950b55a.0","@material/typography":"8.0.0-canary.e6950b55a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.e6950b55a.0_1595976819347_0.12772842439226495","host":"s3://npm-registry-packages"}},"8.0.0-canary.5e51ee38e.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.5e51ee38e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.5e51ee38e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f1ec7ed8abb0a9c0ab3b7f8a8b494da028280271","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.5e51ee38e.0.tgz","fileCount":45,"integrity":"sha512-I7QCKy8+ef2Gu+4Z2cZlzO9M/yVNVY9zloo0YHEfunvlt7AxgN7NTrnqfA6Xy84oqzdGQIcgRuWNLtWaaSkcDA==","signatures":[{"sig":"MEUCIFrVtIkM6dvhRcRKeuqh0STWR0WZ8+4VLHKjyuI+ez1CAiEAnaC0WceF2mVt0CmM1YCSGCBYHboRHJMRFBQs/aNxUTg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1083169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfILHjCRA9TVsSAnZWagAAaFgP/iFJScF/XioolFh7SJKh\nl8P3Fc8AfYW+G5PoFOjBmHX8wjGyss12x9NnEndrw+PiDHcHYRnHWLtPDS+g\n0KzmJN+lgftzEnH3IGGIgZO/rUagzX0mJytfG2G6dEkrsVy6sozOqZnB/foP\n1Qs0Az5pqc7FuVnQXW27CuUijt+V32v08BmKGbtMuMzBxg9RUrDGwMW+Vssj\nLqB632kvazu/qzwknay3UUkD+7ZwzHvcEBBMEhQROeAN30l53v4/1Rxvs+xW\nXK7d5vtoCwVWQ+J7TRJFQYwHUuWH82+QwIbgzPlWXGUsQOmKIy0CWfpqJeZ3\nKLGCuqn7stvYaEyMFIo66JNbL7mdoN7d+X4Z8vj5bmwLBit0AUciOkN1LFr7\nO7NAja0qxrQytNNRAsH1Smj6LB2oTG/SoSLsjHh+WTilhSDvjVqtbef9MPsF\ngr3v7fdQ149sWpd1NL8TTprSF0Jj3/VtDNX2gPAnBrlf7+BmJt4T7f42zXFk\niwfdXEYsZQqD5V4gRq1Bxvks8I0xJSNIrcCKKDcWW4PWM9YPmAnw6bKLYSu3\nGQVSUZ2kQnWfnIB8KbQfcl8Rp2cXEy1GEOU4w36TdZ+4nuEFikd+V8LuX4S7\nWVJuc5XxW8EXb3hTEwEEVNg+5Rzl9Z9XerPAe9RwVwSjK46P0Z1QEjPKV+K1\nEcEr\r\n=vEDX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a7ac25d06cd849dbb8b1620235e913c46f5d7849","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.5e51ee38e.0","@material/base":"8.0.0-canary.5e51ee38e.0","@material/shape":"8.0.0-canary.5e51ee38e.0","@material/theme":"8.0.0-canary.5e51ee38e.0","@material/ripple":"8.0.0-canary.5e51ee38e.0","@material/animation":"8.0.0-canary.5e51ee38e.0","@material/elevation":"8.0.0-canary.5e51ee38e.0","@material/typography":"8.0.0-canary.5e51ee38e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.5e51ee38e.0_1595978210951_0.9313977111459191","host":"s3://npm-registry-packages"}},"8.0.0-canary.a3898ffcf.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.a3898ffcf.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.a3898ffcf.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ae54de48b9b993792eb0fed97a9fb397b6128ade","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.a3898ffcf.0.tgz","fileCount":45,"integrity":"sha512-95fYZSCbmzjHhOLm714J0i/gbDVX/jXtNiQAa//oOho9OVQnJ3Xvilj7ZZQxCjeJGFmTVMNg/MGG98/Ngw9QVg==","signatures":[{"sig":"MEQCIFK7MYqvrsTQHSjvVKBFW2AJkdyFSHq5EldX5KTaOyWzAiARqCRaZXiaRTWVsPPn5dZhVdFFEgx6rTQ24SSdb61qHQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1083169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIMS8CRA9TVsSAnZWagAABnQP/2G9VF+tosEe24DjeV/C\ngTu9WKUpZxz30+Ul2OT4LSOEodqLOXl+FI/8uCz0Qs1ZoZTPM8yqAYNCbbxC\naMTB0yW7clN5IbUNEWkpPyVI62Wawe+y69yPV15ijwRvb2lz3FLG7dTcmPfr\nBSORX3ck3dtieu+6gmf9qcL4fF1wsWxhZX7GdEmpD5jDozH4mDB3N0RNessJ\nYtvdke+E90+ZOJxNryhwHxLZI2aP8uBP0yYKggSNhERIlrOO7Z9EWA0FAr35\nzhCDLuY4YhuQAduZxJAx1+ybD8ovNumvrAihClw2rR41JV11OhKacB3f6EmT\nyRrq8EV5jM+586ZJ9u2yG6Z8Sv0Lw066DBmB7tl2GYDBe56NXgyBZHSetWxz\n10UZXBGxfT0eynHexvssthO0UFDJeHq2NzSJ4dg2JjmzQa1Q/q0oAEhsfihT\n6A94ovu+iZglQ+paH+yntJzpCV14VZcVWjt1L36Jx6z8QuL9vWNYacH/x6K/\nkEY6Q+aw14hjBygl4+dmr5N7xYmPmV8fbm2ZNT1pwuqJ+qnA9PwsWa4w1ABf\nzKDePYJtcRrdPqI16zy4/B1OyxAynMZDoebkSIVq0wSBw4j0YjKr3BmRRZk8\nFCLO0f+zHzEvB3PierL6S4NUoktC06d+SLm5ehMjNtkEBHG3DJh2rN3evWzC\nJTsM\r\n=KSMF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4382580dcbfc3da31d5107a92231aa87122f3f30","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.a3898ffcf.0","@material/base":"8.0.0-canary.a3898ffcf.0","@material/shape":"8.0.0-canary.a3898ffcf.0","@material/theme":"8.0.0-canary.a3898ffcf.0","@material/ripple":"8.0.0-canary.a3898ffcf.0","@material/animation":"8.0.0-canary.a3898ffcf.0","@material/elevation":"8.0.0-canary.a3898ffcf.0","@material/typography":"8.0.0-canary.a3898ffcf.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.a3898ffcf.0_1595983035552_0.46812766915374504","host":"s3://npm-registry-packages"}},"8.0.0-canary.bc5cc6c96.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.bc5cc6c96.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.bc5cc6c96.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fd7cc427535c0ce077120150065840c0230b65cf","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.bc5cc6c96.0.tgz","fileCount":45,"integrity":"sha512-H/h9bcMkLJyJ1tiN2jDdBSDpWzSOe5sMgBxfTSgHkr9NPpRt4IQj5mWnxVuSc4VAD6fjrB41Ef9cQzt8dzsP6g==","signatures":[{"sig":"MEYCIQCJaPJ8FLwcTGV6VR7qgmKCoyogt8+9vHyMpfsL0T5QPgIhANUyeDxl6LD1OkWCyWr6fj22HTasxLWqOt/KHwfJ3hD9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1083169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIMe9CRA9TVsSAnZWagAA4OMP/RAGlnk172PuY9BCvA5T\nxLpuINvu1HC5CBqo5Z6iPhvsfouoN9lEtnK4r/CUUB4RimkQQQ+bK67ORjNP\nxQJhR7dm4WEOkc0L2xct9bk5IupP2GuYFLJvR0cXBd1Tp3bC8Ri17vGDBY70\nm3Fxq8kI9obC8qgIA4jUC1a2EWnZvvZuQ3rmqQ5LPBfzDonYoqwyS4h5DNwR\nkxCLYlgsKsETiB5dPc9be13n1z7oyOvu1m/y3Tqk0f4w9tEdkxgRMsf2n3Pu\ngQVoqJBlJRGztYFIyzgv6eSxA/ThJ57+bj0aNbZ+vcToVC2AVB7RgdWI7hNT\nU4Bt5Cxb19QQfl2ah49XQMmdoeY3z0y/OtrQQZ8/MvkMs9wek04TsqVKub4s\n5g/M9pj7lW7ntUTgMquUxj/o5ns5sW5qReYKXU4jueEIU1Wo/A7hKu1k19pN\nX7GaGjjHdFT/jkPjtqUQ1oe2dbHLNe422YFNJs4PPuKqn+AcC0uZ8R8upUqq\nMmI04/idhtzrTI0w364U7ioYETxK/u0Zh9TCXXd/eexmYcsZMO4vtgKLXh++\n2EKFLHKbzgGrkhSgvIBG/1O+lPX17aUWiCoCpWKv6n//J/EzwimRn6D4qit8\n9Mjdbtta5QpRr+oYIba4G7d5LBAY63FkH0GWHOYvsIUp55Q3Sjo/bT1GkODT\nIUa7\r\n=wMaI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ef5b32f85df29f3c19f5f6960f0f2e58025012da","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.bc5cc6c96.0","@material/base":"8.0.0-canary.bc5cc6c96.0","@material/shape":"8.0.0-canary.bc5cc6c96.0","@material/theme":"8.0.0-canary.bc5cc6c96.0","@material/ripple":"8.0.0-canary.bc5cc6c96.0","@material/animation":"8.0.0-canary.bc5cc6c96.0","@material/elevation":"8.0.0-canary.bc5cc6c96.0","@material/typography":"8.0.0-canary.bc5cc6c96.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.bc5cc6c96.0_1595983804366_0.7980186244844911","host":"s3://npm-registry-packages"}},"8.0.0-canary.9bdeaf928.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.9bdeaf928.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.9bdeaf928.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"351467413cc96cadf9752dbd6ef223748ecba802","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.9bdeaf928.0.tgz","fileCount":45,"integrity":"sha512-5ZiBsjp7pwnoUwke2dw5J9KHt6dxE9961bR3dU+s26AFWPdllzsK8BFeAeVcc5mQ5laZGTtz8sJ6pi7wD1r55w==","signatures":[{"sig":"MEQCIC7s6W24g5Yk2Zh39w35ymYLCB61FGkLnqsaWK/vHf1pAiBKAgATWcSoAeRjI044Mml6N6sPl8G0eS7QZmnR4ENbTw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1093711,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIM8mCRA9TVsSAnZWagAAPCAP/Awcv+sbzPoMyuTS5E6Z\nKVlGjSFs/pVgdT0Ya/ZjAa2+u/noo+iWS5vVyxJ7B/GeLdtxf6aMlQsHJ1dp\npzq/o+EeJOOt3FmFQUJfwhPKkPsgqAXaWj/dTF4tSri7cykhT5HjdY8T77fZ\n3c38eWlfJhQRTZIY3Yv9f0VYg8epO/AMk7nUgit1QhfliMAUnddvenr1tC14\nM9tla6JOHQMnvc9LaZES1rndpX0jbsYjpcdDvPLAj/pgkc8I7DBKGBSDtixS\nujq8A0Bes9ZKAZd/5WTeQlsG/ypsbJGsjvD6J7j9v2Z14AhG8J430gx9hoGh\n/bGv30uKczwV7jvPf3GKanRXPkIrebtP2LeaSR/Z8NywLUq2XCqBBUKwZysS\nJ+QJet9XthSb7xSeNbfg/+XC56XCle+LM+L52PIUFRF1zFQprMHA0F1Vx/Tw\n2ZQTu7/8DlQSXYM0eWxK02UcZjolSyHj+JEO7bWzMhq4FHma7BYQeuUUz00j\nVtvL8CZWE9ohsHj+jSQzvFO0rpeTwhowrRAA+YaJ0keC8jlSmT7Yw9rJsRht\n2b7RibePk3I7q19FlZ2RgMU3SZR6+jHdMtad4ifEr+ZI7oWjXVT//NuZtEYv\nLVDByt//noFNYJu7HdNXOzHU/14WbPLEVporU+fM4m8GGH9DYdi/SpAlUJot\nE48g\r\n=Tn2F\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0fd3de7a6a462365d56e724dcf32c2c1890f553c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.9bdeaf928.0","@material/base":"8.0.0-canary.9bdeaf928.0","@material/shape":"8.0.0-canary.9bdeaf928.0","@material/theme":"8.0.0-canary.9bdeaf928.0","@material/ripple":"8.0.0-canary.9bdeaf928.0","@material/animation":"8.0.0-canary.9bdeaf928.0","@material/elevation":"8.0.0-canary.9bdeaf928.0","@material/typography":"8.0.0-canary.9bdeaf928.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.9bdeaf928.0_1595985701583_0.36859677508109234","host":"s3://npm-registry-packages"}},"8.0.0-canary.fde2c1f9d.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.fde2c1f9d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.fde2c1f9d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"80cc678e82a22d19e0fc4d80f0c4b9ead911abc4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.fde2c1f9d.0.tgz","fileCount":45,"integrity":"sha512-tinye/ScmnI3yZ486BS2KbO48VxJokAM9mZwfBFI5Ca5ScPLhXmvPbBNUpj+D+l2XpUiMR4MLu4TUyrIpISpfQ==","signatures":[{"sig":"MEUCIQCQHC05n6yVwBVqG5B8yZ4gLMAullkUefOnwyJNNuDpGgIgRX4TdLv+qPYSfeyJL2FvRW4V0F59NBRLz8Lxpy1CQVk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1093639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfINJ5CRA9TVsSAnZWagAA91UP/2zVqD/aNMRQFqdikXmH\n4ivkRpnHRKNYd5x/4XwXlXXXmCGSDaT0omlq8VZvFlH7v5S7Pfrq6RPcnNSr\n9tX56mQBzY9icB2xL2EaQ6UyDOBSUSeYHOUGnIJYzYu731HTdUpdMJnBk8Mq\nrMQe5euWYZ+LmM2E6Pdxe0bfvcP98V2hlsrIAZ2+9boTbMjm8UDnLh/Tz4z9\n0u7UL+BCWQRaROxFHCeC/MJ/BtqLOe478jHlg5GJ8tXPNmV/PraVSL0ZFZbD\nfduMe5FM5FZiUWKeEwYYgN/h3dVGFTk6bWnc4OBiIB1JE8CVd96uL88X30Pt\nHIhN3PWTVboISRm+4GGDPOTkXiSGQYvL+DQ+zmKoxW1KT/h6q4x2MFMCW+on\ntweGZwC/ycC2As9iIlIlmfbTj04el9VLcRRs5yFPXhPuvB4yAGOlcty0m0rL\nbwl4URbMoxFruvvjymhxTQzEGlHoDO11Sgvx7W5uZ79rWD6lNg4i5udHvk0E\nTlSHnHhRPn675enwOp5Bk3vqlhn4Or1KL3TFAhQO/7wXTMqfrC2/Q2klXU2c\nSxnxbomIxn5Wda+VhYvftfP9EWlkSF3yNQP6kL8j8bqbTuQZuuXG6KX+6/7e\np1DGQyf7U3jYSiwfljG20mQXV1Z0VCk4EN5WCK58OWIJLXWwHpBmiaKuW7Ff\nw5/W\r\n=Zk6D\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f2de51610533bd781edd8339c8555a3c03546e3a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.fde2c1f9d.0","@material/base":"8.0.0-canary.fde2c1f9d.0","@material/shape":"8.0.0-canary.fde2c1f9d.0","@material/theme":"8.0.0-canary.fde2c1f9d.0","@material/ripple":"8.0.0-canary.fde2c1f9d.0","@material/animation":"8.0.0-canary.fde2c1f9d.0","@material/elevation":"8.0.0-canary.fde2c1f9d.0","@material/typography":"8.0.0-canary.fde2c1f9d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.fde2c1f9d.0_1595986553485_0.897068522924539","host":"s3://npm-registry-packages"}},"8.0.0-canary.6b3876d5d.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.6b3876d5d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.6b3876d5d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"915bdd1d5dcd97f47cfd10ec6f08c73d60b37ff6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.6b3876d5d.0.tgz","fileCount":45,"integrity":"sha512-E3v/oL/wkdGx4hQenorRJIPgFEflJHltzDvxmNhHCauZcbPxbEJBnuax3aliQrxxcAt6UPksKwd+f0KCFpnx9A==","signatures":[{"sig":"MEQCIAqpqYJRgneLLsbG7yq7sCSRs2ZQB5+1Nvb2ArG5YkjJAiBJB4YKX128tr34fDf+jqUv2pWrDDHlxu+YEIwVJ8RpIw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1093639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfINNhCRA9TVsSAnZWagAAQR8QAKDzwgHn0Xz385EAveP7\nIh9RanVLCrOPIHMYE9EQS1+j6ZsutrjDYObNRmtHpQIKv5GrIR6WaxUjHlwl\neRQor3Y6T0A6E+nP7dO1dM0ujsZkinbcTM3iwkf1VmgdLdjWlkMGA38ajs/t\nb/9gopOrZpaSnbZw/BTbI+awSsjgtzVMxyPR2vWqUCrRtA2QDh8Yg/EuwQ74\nhHIdH80c8C/LpJs+TsNX+tEaP/7zumszUDKgHitycqAHfj5oGJXOsdvu9rci\nQnpX2aFHNx2KdwAgAZGWZ/crkn44j5gbhV2gzmPjBsM4cpde11u1AJ8uXP//\ng0Sy4N4vskrwnNORIbv+VA7bdUVRuGIhhppkGTcS/VG501VngSFrOHLHp6ck\nKoASuIC6p+Jxxhc0rYGMg6WfebUlMhkZuoAD1qrW2PK7hDSCVM2LJR8XZfVo\nJZBgERXiGq8McyYr6kn815541PgjtjLQX1o0N0kmRVa0UaG+pKD+2ooCvvW5\nuUhfi8LZfNjzt4Wv1ClfjCOnYL2iHGROmkwTqkFBmoq0tligr3WAOiyzVqOp\nuRSxuPrkcvyvIGQpj0urMFYY9bC0cZVifrwKUVjFioudv4I3MzEHjA86tsxH\ntrp52jmUAqdGkTOLdC8vGPf89O3kwBVV4tr1GQsq7FZXLI7botf3g/lA9DMQ\n6RPY\r\n=NToC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3559342f661baeb39f2e70f1172040aba07dbc1d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.6b3876d5d.0","@material/base":"8.0.0-canary.6b3876d5d.0","@material/shape":"8.0.0-canary.6b3876d5d.0","@material/theme":"8.0.0-canary.6b3876d5d.0","@material/ripple":"8.0.0-canary.6b3876d5d.0","@material/animation":"8.0.0-canary.6b3876d5d.0","@material/elevation":"8.0.0-canary.6b3876d5d.0","@material/typography":"8.0.0-canary.6b3876d5d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.6b3876d5d.0_1595986785474_0.5285806557505113","host":"s3://npm-registry-packages"}},"8.0.0-canary.30ce17873.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.30ce17873.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.30ce17873.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e5712e9b0b1c493e41b7bd52b9d584d374a4e3e1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.30ce17873.0.tgz","fileCount":45,"integrity":"sha512-ayweg4z8/sxOJNMlWHW9MKtKN+4lV4hjlaC+YkhozQ0mGiFARXZ14BIx2o6SGntm76F2ntMhcoAapZGyYSouGg==","signatures":[{"sig":"MEUCIALbneS6fLHxXp/KL4Zk6E2hVMFzpb6P1Zta0M4EOf3CAiEAx+XxBO3x06J65eADUEhozfhZ8pT1q0wePwzFn9UU900=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1093639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIa7ICRA9TVsSAnZWagAAGhIP/1sU+Xg5oa/U0dSCXVdJ\nh67X8Xep/tNgd/kEGdyAv02UIurHyIdOEJZW+CvuRhGKqOzh/dxjmPi21dL3\np/V6ufwmX7aAy1M0E0vIWFbkSP5RVhQ7SIWpbcdHbaXYQ3amHG8wsAYgplEX\nLD2u1lEkHKxWOsEtEj285fGQTVtpKCccrIVWDBHgYtLvWiwb0reJpeKbaZ9R\nW9O1Mkim6MsfFkpfziKFds97KN6cDTG4DpnHOSOgS10AsV3D7z5okGcMLvqF\nV2NhD9xcSdrv44teplz4CBZc51Uqj/hmdo9nTgV/JVIV6O48AvBX9R5IqxVa\nUnB6+Xk0KaUWVTs1u7XS8sgOPabK1nIFrzQUR86qgtrV3qRoXtwLC2W0hWwu\n6s7b6lwFNmjEvQCUsNeA+0Ejv2XWM04NhhPCe2QAFMPfQ3qwKFcdcvQ4cqFR\nV+NGva/5N4b8yvZUYTQ4tOBqt62iFcFlm0vNyAKraIPB0+y6DPXujpSQh3Wr\nTiVa+ZZ8JBtGsYwte1gYiaSoCoz09F7aW1cbFqxCQl3KR8UtCvjMJ2ZhyqM5\n4RXFhpvzvpov/T8J4+HA8P/CeM3opKU8F0JIHpSvd7Tmya16DeWcL1zQ51ZC\nGAqZn45Bp1UC7GykV8V/qPbNzU8PO7UHtTjRrEbqKyFgWq+i8262uipp/fQ1\nrO0W\r\n=hw99\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"88fa0309b6185f09fffdbd61d0c3e16f53c2530d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.30ce17873.0","@material/base":"8.0.0-canary.30ce17873.0","@material/shape":"8.0.0-canary.30ce17873.0","@material/theme":"8.0.0-canary.30ce17873.0","@material/ripple":"8.0.0-canary.30ce17873.0","@material/animation":"8.0.0-canary.30ce17873.0","@material/elevation":"8.0.0-canary.30ce17873.0","@material/typography":"8.0.0-canary.30ce17873.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.30ce17873.0_1596042951658_0.01883800534474145","host":"s3://npm-registry-packages"}},"8.0.0-canary.f6bb43bf0.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.f6bb43bf0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.f6bb43bf0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"763766d58d1cf0883ef72dec63eebd6c1a11e382","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.f6bb43bf0.0.tgz","fileCount":45,"integrity":"sha512-3jnuRhTlH7qY/L7sP33zcbMKstAblpNrIcc5ssQct/xwpchsKdMRqRjU7eOERnZwg4WZFNuReaeoVySMe06RAg==","signatures":[{"sig":"MEUCIQCOA7tcO9gMhGRVMv3Ui6FVyd2EH2NAUvuzxsksXKyVZgIgXaMbi5rdIyRfx/Db4KccDAxoXkr/upsXDpnLvp3FjQM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1093639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIb9PCRA9TVsSAnZWagAA0rYP/0KV/DDgNxBVMPrk9KNF\nOC2ENkiR1IOAJD8FsN5wXsi3Xh/EOwaGF+wt6OQQ26prAIb4JWtPOX9/gl/8\nRsiCN4Wk0yCyrXMD1MzzqGMrnGin5yXBGGUmZ33NYrHxreOwT8qVMN81Dud2\n1v91n1lGirRq4Pxgc5GujZt3WSwk4gUUe0G7hY0KEsmmXOMFkEYuy0/TYN6i\nTDtFDMTvb1pqKWqQLEhj6z+k6SXgNWTqDyTlI/TZqhmh9vI87xC+xtpV3ypH\nfJE40JLN++M0ppb6DAP/g8yQDTlODzEJ690vd1gtClv1PGCf5hgP2zMyH42V\nFDVt4/qjwJFHSvT+hSGlAmCxTvqD5mDB0R8XdbZ5U+O2a7Y0xnWf0lngDIXA\naz6k6U01cRRHy4LkwfmYHuuweDVhiSX+0bbN6fCIvooDai/olrsE+xmxAII7\njCWVDsxkgYxVqsj+ipO7TllopnNnF82lRU6Nu0D1j8Y63quIGDEy1ehKYxnM\nl0HDD2o6EFE64saeOiR2s9OSeafxo8FPZXC9UshuxnB2Hwts/hZqsT5bdQFz\nkpdJmaYHrHdqznTaMYQCFbqNMgtmoGnycMWggJNjkqNQBMKH426xNZvqUXlM\ngB5//ZbOZSJ6ygXaOwhgi5qs9ZD46id4lhwWNrdorW1o9XgVIsARs6/vUaHb\nosV9\r\n=UPI3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d511f86ad9ca4460730b732c04ab497fd558d515","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.f6bb43bf0.0","@material/base":"8.0.0-canary.f6bb43bf0.0","@material/shape":"8.0.0-canary.f6bb43bf0.0","@material/theme":"8.0.0-canary.f6bb43bf0.0","@material/ripple":"8.0.0-canary.f6bb43bf0.0","@material/animation":"8.0.0-canary.f6bb43bf0.0","@material/elevation":"8.0.0-canary.f6bb43bf0.0","@material/typography":"8.0.0-canary.f6bb43bf0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.f6bb43bf0.0_1596047183383_0.5878473958075354","host":"s3://npm-registry-packages"}},"8.0.0-canary.6af75f6ab.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.6af75f6ab.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.6af75f6ab.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4d963fef4fc0b1b4a3cadf7cd8aec14c8bdc7621","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.6af75f6ab.0.tgz","fileCount":45,"integrity":"sha512-q93rpcv2gtGEaEXnL4oZ33XVsV+CsAwjT+4RyogTsdIN4aZAzREvH9/M1Dpfa+8iPzQ/F0gNRx4ENJB4jaVIKA==","signatures":[{"sig":"MEUCIQD4+CcSjnhmMVdj83FJINvbMcBK0omKVGuiVwzB1mmy6QIgGyWw8yRZ2HGjOALwXWwFM2iG4hSTzZRoJUB/41ORbMs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1093639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIg4PCRA9TVsSAnZWagAA04kP/1SQZXW7Bs2mbK27/7Aj\nw1/VJSQMd/oM5UgeXaFkchhtY+l547fIiB8HmWitlE3zoWA0MQrVSLqIKJmk\nsPjTwO3ds/oL260YjjFTGASDq6ACFeZb6VMv2ujZBqrzAW/AH8JEzChYgVbM\nO66OZjdqzkJYCdRTQh3VAXm/EWx01sGWfFxDRCfayvT6TUv2w8iHcM1cORhd\nODCUWOEksBriCNdoQpEzbTnxPs7xSMPnAFwHZW6ZHdqo/898TCTERy9D/hPt\niCtPPyolu3YP3cbI/VbOG8TB+nR51Gu1qnPxpuryGExnQsc8APovY454OFDv\nnXFjTm3HMa/sja2KwLuMfpv9HswQp4m53ONIVw9pYJ4wUKTv4IBSOUWar4/K\n5xjGbAkBjYKokCEty2nhu50qOBpaa03uVTLxOic2v74AUzZ0cuQX4G9vuUzR\nOMI217TNQQpUxy5Md8pHxNd0GvNpO54kZ4GYBnoLcoLpN50CzQAZE7LZftyl\n7MbsoEAVwXt7dLF48FyBko5uLtNAZcrT+Y11uL55rXxae+4WDeRl/9PQPDko\nwNAVoX7zi+EJi8ebwRx6A0w0m2wb2LkWGEWWLlseK5spMtm+djulFKmEIHt/\nGfUWjw4oZNCYEqdkJufHrVyIo3/iW0JoiHEwdDmkYZrxYp3xpXPLvD6wyj1U\ntEpM\r\n=rid1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"44ee60f895715b8f7c0a7da67637babfd33452cf","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.6af75f6ab.0","@material/base":"8.0.0-canary.6af75f6ab.0","@material/shape":"8.0.0-canary.6af75f6ab.0","@material/theme":"8.0.0-canary.6af75f6ab.0","@material/ripple":"8.0.0-canary.6af75f6ab.0","@material/animation":"8.0.0-canary.6af75f6ab.0","@material/elevation":"8.0.0-canary.6af75f6ab.0","@material/typography":"8.0.0-canary.6af75f6ab.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.6af75f6ab.0_1596067342352_0.19119079387251148","host":"s3://npm-registry-packages"}},"8.0.0-canary.42d7a65aa.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.42d7a65aa.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.42d7a65aa.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ea0a6a5da19ad0e9b927a8446dffcc75b790e40f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.42d7a65aa.0.tgz","fileCount":45,"integrity":"sha512-y+36kYqBY0xs6GAbeloj4HFmHViEuYbXVSCocDYGwLmGzJ8NYa+8qvAKwo2opgWAN6C8UDwXySetcZZEuOV7QA==","signatures":[{"sig":"MEUCIQCzcsCCR3/TPBMwtnZg+edfevCefnWrakwaD12uaqBlPQIgdNNpzLJyVYUvo9iRyAgCVShjOoaK2VbnoOltLDaQYIc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1093639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIhAyCRA9TVsSAnZWagAATpcP/0ctdN7eIYUmbkcc3KXD\nqRFppCXgZ4KKYZ/4t1m+Oev3cruSI7z2jAGBw1qKcrOii5sIrYf0hio7sclN\nnRv93cCKoB0kBnEz8xauwhZ5sPUwUuRhN/OuueQJzhk2MreomrBvK6nMArAC\n3rN6BXmzzIdUYfvgNzVZml9T8aCU8+0adqqYHaOan1VSTI20qfQ+zPjB6gAm\nr3Q81Oa5RxSQmZ10XDTvI2mefRhxhkpLw5lU8mC0s43bs71Fe4Fa7Kkbo51h\nOOuSAHBHA5NvrrGkMTwLvXpUd8xZjknWO8D5RpY9VrskFAIJLHmq7VzxxWg1\nTLIcPOiAheVMvc0xXMUIAqGcgCZH5c/rZtXFruyETL67rzPlrHUWFzxGdvay\nc3d3AHseyFPYrT171jYxUsp/4uJHEfytze/sKg1rcxLvaFc2GCHMrRgMKEBv\nJng4DR5NvQatXMJuB+M7ZCsaW0YU29txW1bLvInPNyG+dt1D04IHa81cmXCm\nbPrrgNZGe6jSbEnXJY1Qe6actrrQCewbPMFFZnVNmX0HQ5k1WzQjjNHy7LtR\nnKJxIzn794oQ32hxk59CyqXohbzy320WO+YxWJ9eeDaAl3IRmWUvtBvAnySM\nhkQ4ZJEt+ZcQoD7qXsqo0OHBvyo0G+0cgG1tCqEqfqN2NL2n/mwcabPPyIdZ\n7HL5\r\n=Lgi3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b6645573c0460e7bc8187d1a21ef306b674e1017","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.42d7a65aa.0","@material/base":"8.0.0-canary.42d7a65aa.0","@material/shape":"8.0.0-canary.42d7a65aa.0","@material/theme":"8.0.0-canary.42d7a65aa.0","@material/ripple":"8.0.0-canary.42d7a65aa.0","@material/animation":"8.0.0-canary.42d7a65aa.0","@material/elevation":"8.0.0-canary.42d7a65aa.0","@material/typography":"8.0.0-canary.42d7a65aa.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.42d7a65aa.0_1596067889710_0.2814217487282915","host":"s3://npm-registry-packages"}},"8.0.0-canary.85abdabb7.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.85abdabb7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.85abdabb7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cd74a7e5d4b24327ef3731d79fb8dfeca3e0c7d7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.85abdabb7.0.tgz","fileCount":45,"integrity":"sha512-OFT3/6QsnJ+1oCE5LaiVZpX4DcbWnNVfXYkAqMnJgM5H/DtS7he80fl1m1KDpMWlgA+//wDfHThxuUSvQRGVxg==","signatures":[{"sig":"MEUCIBUteAtLbgqsv9DEtTRAlFhsQebV6VpCQpa6b17YW9OEAiEAnpRKSsi1Jt826Kg8lbpK26i/oS9AWnpAAD3TRrTZbgI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1089351,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIhFKCRA9TVsSAnZWagAAedEQAKOYjBeFQlwNFZVm5W9+\nJo0kCM7oPE9njrBc5H69fUqO0ZDxqLfB9Q9ltnSwm0PndwuTM0jlfMXe6ibA\nRGwD4L9dWyJVscaJ2coUWmndiGqp+09+b8H/oOBaplIFVCENNJBS+CZCEe3k\nps5Jk5iqY8e4dC6qbp5V9R8qN5hnNXauDAT07eK+V5Jbu5Mc52bBlusbWbgi\nAkaUnKKk2c5Pqpn7A0OvAkMLV1D8M+rp5fIq3WgaiwuItpCKtP3yBwiZZocG\n+sMM62h2GhxILw3RYVcv14xDUAzTWpKFsVmuCtiez4+f8b/fp4dkS13VwKoS\np8xhmeQaXMHFGVG29Y6bCiMsH80XKSRutvGlMIh9lm7zy3FTGkGIVxgIwiq9\ntii+THCNopE3ic7BNsy8u6AFHQgkFp78w3RhkaBf5HggbAPsHTayCxDrhrMu\nCAOVzWJnBTnx48vRbRCoTTtBt+arUYP46IEuj/kSRWgXjuecUskQn2OnsgIu\nU32d80bVsxZ7qzqWMT6MwEkHJ9tkY7o6UjIxY3apG2CmnO4zXIuTFKY3uhjs\njFvAnDptnp67IbxHQcFKznGLNMafxoPQ3Wx5x6W5WkdwElgeJUu6rGKTq+PV\nJ/ItYes9tAYYV5gxRJPW1Ma1ZmofOPf3bMWDJvY4KPxIvdOwK0SSTEzfSckv\n1HEK\r\n=CBju\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4686052ff6039efa085c0d360393374ff4b2143c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.85abdabb7.0","@material/base":"8.0.0-canary.85abdabb7.0","@material/shape":"8.0.0-canary.85abdabb7.0","@material/theme":"8.0.0-canary.85abdabb7.0","@material/ripple":"8.0.0-canary.85abdabb7.0","@material/animation":"8.0.0-canary.85abdabb7.0","@material/elevation":"8.0.0-canary.85abdabb7.0","@material/typography":"8.0.0-canary.85abdabb7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.85abdabb7.0_1596068169852_0.2183620824608925","host":"s3://npm-registry-packages"}},"8.0.0-canary.49fb20ca3.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.49fb20ca3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.49fb20ca3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"207aaf8f904db1f4c1af99156932da0ef2661a16","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.49fb20ca3.0.tgz","fileCount":45,"integrity":"sha512-UrlCc4lD3ulKD2OPvYK8Iz9Jh88SErMAS8DNXEmMh6WPWZKZCJjHKlOnamd4B8MMCvD+QVkqJD9Dc9Ss4c3yIg==","signatures":[{"sig":"MEUCIEFKN0phF+7qe+fsdV3cmC4O/kqxP1Mvx6JxUvMKtSAtAiEAtZ/+BmXYuPvXdbSJJcrJAtOSJpVlQJh8tVAtBXK9Cgk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIiI8CRA9TVsSAnZWagAAGDAP/iIwVmJfTF9LxNNWB4DM\n1yQJJNjFlOoqYodMX3cT//8vCjClJDbVk8TcJ+3JbJ30FVqyOMCb5MlT5Yef\n4i5pWtnA02+h9LC+42npuSab0P6/+Zdwso6bNpqpY/u1JKWO8S7Ct4M7cS0E\nNu6QbglCNQynuNAi5DYZ6HotkDjUq8zljcaFNrsDrfiglKobWVq81Eb+0SnQ\nNuvc59vzMUGSg7T0+ZwI3SsI1AloDrcB4mLTGa735Qi98FMa8acHfBI5L9Lq\n6hjpHseqizCnLzYiaR5xVjPqscv+6jTQKt083W1BuKy2QP/Gc3RoxDsbwDHm\nVTjo2hNXOBq8jBQR+vg6Zjky7K9isy9ThhAEFms8c/DWwKH6NRIEf1VatLvH\nFJX2yNkxSPiJ7uDd9keB6A/Svj0dpZtzjdkq4oQ8HX+LZ8KCqK1Epyqyu9LL\nvxUDNZ5GxIc0ZmKFV27XO4/DVbxHsmBk9tnVxUSDqfuJ/fQ693C0r1XcJN6q\n4TKPJkYOKjVOtfIeUHcOCvGqxXKgGCzANDU4a2JqqC5JjGUqESHyEdXPMXpQ\nwwmy71Q7tyn6ugoS2nRVtNfs/GPKls1LWeXA7rycbi5IpO++A5h0th2FhnhZ\niDpKflagSAGDe+Mr68qsWtkdZTnGFwGz+2F+YispChnM8t+e3jE9OlgqTEZE\ngzmL\r\n=aj1Q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9c66ae7fdf6570d9cf334102b5004c5a04b628fa","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.49fb20ca3.0","@material/base":"8.0.0-canary.49fb20ca3.0","@material/shape":"8.0.0-canary.49fb20ca3.0","@material/theme":"8.0.0-canary.49fb20ca3.0","@material/ripple":"8.0.0-canary.49fb20ca3.0","@material/animation":"8.0.0-canary.49fb20ca3.0","@material/elevation":"8.0.0-canary.49fb20ca3.0","@material/typography":"8.0.0-canary.49fb20ca3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.49fb20ca3.0_1596072508001_0.7730625530629858","host":"s3://npm-registry-packages"}},"8.0.0-canary.962d4abbb.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.962d4abbb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.962d4abbb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a63d6933d1b1a4a0ec6b805d7c904947b0743906","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.962d4abbb.0.tgz","fileCount":45,"integrity":"sha512-Vmh0k203lfqVhwANHyjSoGPNPZtvYWcwEbcgO25PlL4R7NEUhBKx5utkE/8oCQEJomUHZXiD4bd8w1BYfD2SUg==","signatures":[{"sig":"MEUCIQCYry48HmzxVf7sTdmswB4zne81Jr+AHkqLBBRpzRMpoQIgDKpzaASHuPnB6UYA6kTXVE+jvU3hoGY5TQzfOuC44QU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIvEdCRA9TVsSAnZWagAAMK0P/jasEyXmHqj1PNUFI+mr\nXfFq7L9NayF/HSrWXBHiKCOA/7I1XdB076TRS1w7KEKZxmfwPWxYrf/i/Vh1\nUGNUDvIX2CVwHvTCwsqg5OjqSHyvYzXDNee8tTlg1gmqHY3Mg2db2uaCMe9g\nJwJLqtdolZgibf5Cb7G7lAWY2n1N6+yCXlPWJjx+XXbDPxkWpzrdkSyh0y4f\n8Y4tthmN+6w+GNkE+74NHuB7gxD+prlkKCivsNCm77Bt5vUJkr7m/X1THy00\nrkxzB8WOUvTm0cjZ+i2mBDoturU/xznrWwIGn/7ST3q9M2g3Dp2VfaohfUPx\n8mbtekGOH5RYTNsP9cUS6qyz6uFIJxwkpRHjKmoshcZUovhf5WsftIJOwjIC\nbXxVGhmuyWj80PF2UrI4pOoqHmlElX4k8Y3pjoZXJ8mv+mVqRu9gCWThBO8C\nuhDyJzF+9FZ0aPMno06yCjoq4WEmpLe72T20mqurv/LL5FUfKY6W4pfd5vFY\npmtjAgmjCXA5Vfl4FIQQkbeOt7ge5KGCFhhji/fGYH8B7V9hHeHqaBqWM9vg\nWZcBpX4skWVa9lAy4NLRnTQDArBBCuYbU+KngBEAOqXCMG8icKeiQEU+Oh3E\n6DY0rXK7tpl2BfMptGvXAzDYJ4dMcRwKxjMRrp/CwYrNVJ9aJIHizfa49b7h\n+a5b\r\n=8ZVc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d373d2867180ff5f61fc4d7afb88a8825cb5cc9b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.962d4abbb.0","@material/base":"8.0.0-canary.962d4abbb.0","@material/shape":"8.0.0-canary.962d4abbb.0","@material/theme":"8.0.0-canary.962d4abbb.0","@material/ripple":"8.0.0-canary.962d4abbb.0","@material/animation":"8.0.0-canary.962d4abbb.0","@material/elevation":"8.0.0-canary.962d4abbb.0","@material/typography":"8.0.0-canary.962d4abbb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.962d4abbb.0_1596125469273_0.6343986471812573","host":"s3://npm-registry-packages"}},"8.0.0-canary.2fcee40cb.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.2fcee40cb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.2fcee40cb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"149b33a1f7163982d3a64079b195c37982e49ce0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.2fcee40cb.0.tgz","fileCount":45,"integrity":"sha512-l+JuarZ85SHbH+xFsBtEpQWGq7gTN85IMi5aFVuSyEPC8agUveFZQy1s3N8rNsg/LTWsnag9/Hb7tZqMIbmNAg==","signatures":[{"sig":"MEQCIDoxYxxem/ZmIhjigx3pNVHAxQfjioIIc99GX8akmycnAiAHKmyi9jPaIsF8tN+34wguLMx70gQwvYOyQRy9/9QJuQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIwHLCRA9TVsSAnZWagAAPAMQAJiGRaC+kpfHmWJeYSO8\nnKj5cQNXzrLlqjSufuA1EYLvEs7w++LfCzgoTT5iwsB03087M/3JWbz6sbiB\n5KnRmjaGllPGBxa02F68KD6NIjZbMuKDgszQI+GSI/R1Ucoa5Mo7NTyxejqZ\nr/TvHuiV6yOjY1vcDgxyGkgMel2sZD1SLsLyr5qqEoQ8RW9VvYKm48Vgi5Ah\nn04E1/SPbN0AFUiJqVP8fMFMAfxlzCLkiclypdapM4/0j2/xGd2IysDsgPhl\nI20qAKNqe1R/nbA3gf7odlhFsh8VK/udvAmey17MJuESRfJ1//jwTVMwcYKe\nadhaeX7s1pIliOCjwKHtQkYeoVv1S/Oqn63BerOW9cdIVW7hUbUZEOJ3lQgx\nuWhdS54SmurczrFv+h4i2/eF99OBHMOqgbKVwG/55HVaTyYT5yPYoBWd2Sh4\n9g4AV93n0/rPajbbcMEQY/zIvuj1+WFQpHDNf1JUuAXPfSfKSTsj2e10+B3A\n47/rQ+lluCduiN/2mmQASJbdozGNKgDOKqOAKLfDQibWPsZ1u60m53+bG1dw\nSMiQSRPC25f/nVfLphQ0tnGi/AwkBICttudN2wQfTKcCE2lt+AL3b9uTIQVu\npBJIA9pbJ1cY6j7r8h+nneL9WtUj4NalD/EHuIFIPVarysjAlXHGV/W8Ozta\nKz+L\r\n=j802\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f769a8a60e9cefb9e0e6306a96914e8e4b4c0c90","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.2fcee40cb.0","@material/base":"8.0.0-canary.2fcee40cb.0","@material/shape":"8.0.0-canary.2fcee40cb.0","@material/theme":"8.0.0-canary.2fcee40cb.0","@material/ripple":"8.0.0-canary.2fcee40cb.0","@material/animation":"8.0.0-canary.2fcee40cb.0","@material/elevation":"8.0.0-canary.2fcee40cb.0","@material/typography":"8.0.0-canary.2fcee40cb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.2fcee40cb.0_1596129738863_0.7050669455911356","host":"s3://npm-registry-packages"}},"8.0.0-canary.bd5987f5a.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.bd5987f5a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.bd5987f5a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"36b89e5c00ec6d61fb0eb18ff8ded716fd5674dc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.bd5987f5a.0.tgz","fileCount":45,"integrity":"sha512-/7hNCmd3FwAk5Hv9t1SRBWwKzymCWJS31F9x00O8iM1OPCAp4MfLykPfluFOTUb41ys4G4X1JjJdFqJwlTuiMg==","signatures":[{"sig":"MEUCIC1YX5ePgMA/2TQxMvpdhnLlDxHTEM3jyNotx+4bQbauAiEAgHNmDqlhyvJAi0oTZZ0DIkj22EWXeLhWOIPD3HlPvJw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIweZCRA9TVsSAnZWagAArhMQAIbC6Ts1qgJvbyOZnA+w\n23LLyDMvfbUmCIkWTMPw+IHqYYLRRNG+Y6BPcpscidCVuTP7pwNkWNwaHJaQ\n0cof50zvl6LI3yJ82GNKANGVJmjTQzQKzlkOOQvhCmFlYEikNa9nvgo8UsYV\nWlJ3lklU/Bax4HpYIPujsCIMe+zYsblLrZa/9fzA7PTjwFzs50wlx4H8yexH\nHRXqsGTtw+UUOTxrg8mnFiMRS2pSsRqo/zra/A8kEYkybAEbt+rlMfZvIUgN\nCJDSasFiWCrCeuYATJijGOhnklbu/7CRkxpYnInlpfyhBtLYMDVEb5zM6S3k\ngtEwwMh/oQMWQThNZWXSU6wDG0AlFXGDiHFP4Yfg6OeHh/2GbmJ+mbeoQldr\ng4dfGJiiZYUPe3pJD5GZwtH4mpljkxIWxpIPBBpfWQFqy2nai3ViILGRBWOy\nZZfLBfqHOsKW1IX2U4Gcgg16TfsyLx8h6HIU2gNzLv58mUGh/V9Al7ja0EBQ\n1qX5dqT2FaxynDWQXIb8trQfC/GqUCXKwN1sClwf8nHmLzZQkaIdUXioQMwm\n/wvtdXFOYgRjuPL99lg1WcVZctRyMnub+ctb/aZeWEqXm3CC93WTDmVv4NVe\nkfuC+w9lO25Y7nrCDcCTKQWpvL4y3ZNw+UM9zz652pHghLyv7E5W/2hj+KCd\nvsxY\r\n=HrdL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7825c698a6686a8ea967272c1f150363b3845900","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.bd5987f5a.0","@material/base":"8.0.0-canary.bd5987f5a.0","@material/shape":"8.0.0-canary.bd5987f5a.0","@material/theme":"8.0.0-canary.bd5987f5a.0","@material/ripple":"8.0.0-canary.bd5987f5a.0","@material/animation":"8.0.0-canary.bd5987f5a.0","@material/elevation":"8.0.0-canary.bd5987f5a.0","@material/typography":"8.0.0-canary.bd5987f5a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.bd5987f5a.0_1596131224555_0.48013559200399536","host":"s3://npm-registry-packages"}},"8.0.0-canary.005e86a9b.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.005e86a9b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.005e86a9b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d251dc93e6322e8943e5ceefa5bc6ba3362a02a3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.005e86a9b.0.tgz","fileCount":45,"integrity":"sha512-J117ZHLB6+3etl9O/xfePF9kGi6MFw/ocr+P5K8A1lB8RZDSHWpEVEMxvKFYJjIh2Ok5M69AcrBb8n4YayHlwg==","signatures":[{"sig":"MEYCIQCKm+heoxAwVaGIgAJJOVDloULQnPF+SmLvAoydE6o2awIhAJMXoT+TkqhHGarQwsINYXBB9iyOGJ31BkhlU/aZ/FJ/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIwrcCRA9TVsSAnZWagAAOx4QAI/Z68WEYw1yYv//KbPX\nkwYPDokPCCj+rVpS2IWK3rYbcwiq6q5RvNVoddNfV57z3/PBpI37n8eBad/g\nEqJcpg7A8VQ/0u2+5icM7WJw4eXmEASWmfuQrVQAX2w+SpvwMWgePTOSSsdl\nGaFp8yNsdA0U4CPbW6BK1ap2jWsSh2IrnQrZXy7GhxohJ3h2aS6hlmHf5y4Q\nrqmW84S3AKtTH+Df3GlmqDyZdy479FPFILOdxJdrnLKbiCw5DrB50AORuoYg\ngIAE04H2OtDd4PDUYSO1USZJzd7OhZVTRw7NroCwyxLV8hfrwK9fOyjmRA1S\nCtBTj5dvtyf/TLtPZQH31u5yswJ5bG7bzRfxWSW7Oqc3aD7LSfkd98JWP8Te\nMzOgBYSPqrk0MAE1EqwMd9yYvPYeWstSdRa/c/YtUgmWAER7peT8nY2rJaJf\nL22I7tg5jx+IoOb2uLEdEgjdGUBLZjk12Ns0Gp54aLlGb6BT+IZsHjNKvByx\nlFalrlNlB82+LXpCBpi8FEQ4p+rxcYMtu8144SlREWOYYaeCQnDbZmf6Uj56\nF//XYPPpkHyUt7ljCKaBBnZb3rrKoyCPL4M/jm41PRao7sjWLzEz8T8GyHhy\nXzzTyzjk1qNlm99qnLRWikGWOgIc/DmR9ZJrrgzaU1fxmRNaV0tF0Qj0w8UX\n5HPA\r\n=XE8B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1c429f861ddbb35ec8588ea55cb1845296ab0218","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.005e86a9b.0","@material/base":"8.0.0-canary.005e86a9b.0","@material/shape":"8.0.0-canary.005e86a9b.0","@material/theme":"8.0.0-canary.005e86a9b.0","@material/ripple":"8.0.0-canary.005e86a9b.0","@material/animation":"8.0.0-canary.005e86a9b.0","@material/elevation":"8.0.0-canary.005e86a9b.0","@material/typography":"8.0.0-canary.005e86a9b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.005e86a9b.0_1596132060111_0.10024858954115579","host":"s3://npm-registry-packages"}},"8.0.0-canary.e309c7c68.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.e309c7c68.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.e309c7c68.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"71444e507530cf55ff0d686a7a57a1b852cb3bdf","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.e309c7c68.0.tgz","fileCount":45,"integrity":"sha512-S2jtlPo1liNrMK7KiJXQTkymPUVqpUgH8Z/0tZWXvcwDCFmUb+q4gVYoIfgEMF2PrpSOXdCYCvQIWkZnnsA2hg==","signatures":[{"sig":"MEUCIQCz16ck/rlPOTPJWTv7FPZGxjSVp7qNbUNdDi/DVWhCzQIgQzU305zHR8Zctfho0QHTKl9ugrq6XYri9CLo8b300YE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIwzgCRA9TVsSAnZWagAAM/wP/1GDLcFCr6OsEwSgltio\nKXNXVgeBJ9N91kaWnMCg9tzNG/oGJM7O8vDpB3rrFsmXr1O90FI2t6QLiiyz\n8UcdSUXqH86IlUQWD4vTKzQE5h1QLHEDaY4Q393REPa1nAar/UHtuNwPY8z/\npGyiw9A1VWm05+2jzmSZ8PuUglvfl2UGuXAKt6K1w3r8otR+9XKf0JSH5t28\n31z9h8WjZ+qO48vvr5yo6cldDS29sJ3V0iL+tnL6AG2fCx0OWKnswExWe/3x\nH2P5XnFmMn2tLdFNLTTBuoyz3ing7vhn2x0qqdF5bVMEC1J4BsulThq5EerB\nZORTCLiyUqXocrn3Uy8ahEyJ5ha477ewL5UklGXBENU7VtwmDSXAkmy0NbOo\nWaDsU5D2UtqGp6Vue+RUIRFMjcEChYzXPB+xmE8DFLLkm/8fAUkmvNBrDzvy\nfcRD/BxE3F3gAVEa7RMB6PMuQzytHrUVpIjRxgimjpat1YpccYP6/0CA8HAA\nnJ2mh2Ve5tWZ+USeqDEFI1xI5YVJjqJcy6guRHGrEqHUPjjOnrBwmY01h+wj\nlWF1KufiO1DuD0WKk4LX2XQn/M93aje59CUxOAHghsvznxXUbSkjfQCL/FRh\ncr4+Xv5lBI6VJU/T1EXMfQelu2hMnPRxO3h477aGpfVM7H2ms6wHg/mm/E1r\nFMzX\r\n=KaiC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3ea460933f859061781daca3ae127802388c28bb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.e309c7c68.0","@material/base":"8.0.0-canary.e309c7c68.0","@material/shape":"8.0.0-canary.e309c7c68.0","@material/theme":"8.0.0-canary.e309c7c68.0","@material/ripple":"8.0.0-canary.e309c7c68.0","@material/animation":"8.0.0-canary.e309c7c68.0","@material/elevation":"8.0.0-canary.e309c7c68.0","@material/typography":"8.0.0-canary.e309c7c68.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.e309c7c68.0_1596132575604_0.7063292233940679","host":"s3://npm-registry-packages"}},"8.0.0-canary.935a51cc0.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.935a51cc0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.935a51cc0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c9a5fe63e981b9a3cae65e0a5c8f117323c9e673","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.935a51cc0.0.tgz","fileCount":45,"integrity":"sha512-nLBLwWmDF2ydDR7Xv8kLiY0zZ+VaNcMbUgtwCkRLZnEXJDhSJTf/sdnY9LWDtdSNJozp7M+VuzUajFqJq9B9cQ==","signatures":[{"sig":"MEUCIQCw0VV2T+j11lOA/z5nnlXj7xeBoWUlOoW8d5vN7u4kTQIgAYR9mOQq3ixRwi6cOuGhXeeievGZXefcilWedsG+7S4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIw+bCRA9TVsSAnZWagAA0aAP/3IS/a2qyr86l3k0Dx+Q\nhG6hr8T1kW5kWMGvs7g+9ZN22exSVY1Q++vJeEisjaZAZbvDwjrSMPmZv35x\n79B0VLqPt+GZOZqzy2Yybsi1WQxkBb63saHQm7+HGbiLCSABOQ0hl3H5TP48\nSNjcdAdDGoXnZ6EJedxtkxnaaY8k3H+bqw4atEhEWpBOwQM/5nPeRmYB6Toh\nHa9y/LrNqDcBdDGdz+9E08NmtSrnCkRq8O0cII5LsfmhyjXVWEZqIU1kSXSr\n4QibFJRhga2BflGKC/p0TXcawG1dEgxtjeOgWKdg7FV2UtBulKBfd1BFxNjn\n2oCDhmk50OHiedxf4SAozKD9Y43pdBDA6OuBne0WbB8HmTYm3c53DzMLr5U9\n4cxgry4g5jd0iPjvDRNHSJTeTS5bglM07UF/xRxRHmfXaCN05/lR8wRG0gk2\n+cbcEv/aAGkapPA9e4W8t9l92BuUxp5TccMQNrqvN7ayNuTEIRKOoPLhCquc\nHh86o9fW1UeAzrevFkyOokYGbS0lrHnYyacyaOzZapjeGYDvuKYPdwRw15uB\nN2JoftJ2zt1RLGh96hbNVGOVwnbVAoG2o2dR24rgmh29/VRB+qX3P825j8cf\nxPL7ycHsi8ElAbhiXtZNxuBv3h1MDMm3BwZFoe7zIcDorQadDP3FkleXwCIP\nKEm0\r\n=GSeK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"79622070723d97d5c4052839435f92189e8fb6e6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.935a51cc0.0","@material/base":"8.0.0-canary.935a51cc0.0","@material/shape":"8.0.0-canary.935a51cc0.0","@material/theme":"8.0.0-canary.935a51cc0.0","@material/ripple":"8.0.0-canary.935a51cc0.0","@material/animation":"8.0.0-canary.935a51cc0.0","@material/elevation":"8.0.0-canary.935a51cc0.0","@material/typography":"8.0.0-canary.935a51cc0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.935a51cc0.0_1596133274835_0.8588416458258121","host":"s3://npm-registry-packages"}},"8.0.0-canary.74839da7b.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.74839da7b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.74839da7b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"809cccb81239cf5a919c3635fdb92724f03343ba","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.74839da7b.0.tgz","fileCount":45,"integrity":"sha512-QnIMaDz+45LLD/BFmnAUPmCYAWJlQVGr2h0lnpUezwA7VPe/MsUQX6TF/QUuty62Rav79jh8GbpCUTnRuYexMg==","signatures":[{"sig":"MEYCIQCl0ODtqRaCzbzD8fIu3ELlDm1wpRzoISQkmxhEeHzn5gIhAOFQuoFz202t+qV4yWO5Z39LwQZPNFs6VRlH+UCE+kcu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIxI2CRA9TVsSAnZWagAAIQMP/jOZwxPBnR2FUSSKK67U\nXEp8Xw56disWXCgOhokaJ1bmW8ryjTVyZs8bpBcMx5fzdC98eIt8BpMIQLYv\nR6pdMdnIR5IeEzXQqFE7f+pmS8Qxzf81ViBshfrj9oEANiW7ogexOYBoD/LY\n/3JUxYiMpD2swiM48ThwnQtsQ5FiDDbmXo9R8oXvwAFxS5DVOyVUq7+oBK8O\nSGO+6BjQYJjUk8F7IcPZuQntjQMbA6en1Dc1j7diPjRglOxupXMqYD/CXbW2\nbigxjjVTMfIcVqiIXoZAHZFcG4Qj/n99NyxuoiaGjLgjuoGRsyjbXole3sJd\nQwAellXr3JFsHc4pdu16DdXTQ5jjZQZlj8jq9tIqVm82shr9rzABPlbsZWlP\n7vCZeh2LwtB/gRUQdJ0qCXnAP4PHFu0fkmre+GUy14Lfp6EjMJaMT4hTUFxJ\nhLJD8RaaMvjuRiNkvrXKe/5WPVYGapMeh4o3/9EyYZ1vEsFsnVskSGbAdtrS\nJ2BhsB0PVpBoW2ytdo8vq+LKLkWYtA3SVf48Dbdta6x5wWPbbpWROAe7Ry36\nn7BMhP6amtNL0bM7C4GzDDNwDGrhTCzW+5mwpDiof8s53hTRYLi9JdSZibdm\nrBa+CV1As8HXxOHCUPqdDR8KxTgEohqJfS/lCwWo/7KaPfVOXt+5992LhxV0\n44Wj\r\n=C9XA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ad186768bb65467a86f70e827e74fee089e25811","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.74839da7b.0","@material/base":"8.0.0-canary.74839da7b.0","@material/shape":"8.0.0-canary.74839da7b.0","@material/theme":"8.0.0-canary.74839da7b.0","@material/ripple":"8.0.0-canary.74839da7b.0","@material/animation":"8.0.0-canary.74839da7b.0","@material/elevation":"8.0.0-canary.74839da7b.0","@material/typography":"8.0.0-canary.74839da7b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.74839da7b.0_1596133941912_0.6081654704813744","host":"s3://npm-registry-packages"}},"8.0.0-canary.f041a48c9.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.f041a48c9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.f041a48c9.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b6d42ef0304a4eef106a0abc4a227659fe89d0f8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.f041a48c9.0.tgz","fileCount":45,"integrity":"sha512-YYmPUN4FqrJIPfsI84yDQ9f7OGvPCZac3yGB+VqWpWTUeF7f8fxzPiDr81CbKdgw7VryOiopSsN/sAzrOJe/AA==","signatures":[{"sig":"MEQCIBNaE6oMYTsXZFN8jvJIvBazOGwZ/ZfMXMeBG42IChpcAiBYF953Legxvc/8XWSdAqvSpskX37sWAKp7u1DIg+caZg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfI1EYCRA9TVsSAnZWagAA6UoP/RniWsBNyKRDDDtIKwyB\ngV326aYz5ud3Dzpx2+EiPqIHgAr9oKrFUWcqyizx2GlaLF0jcnm6p3dW9HzY\nZcKS+4YsA8KQJehdpuJFVxaCXDP769zB1gEQwG+K4LS9mk6W7SZLTKnNIcc9\nDBZW9mXKTsUkYVg88zT5n7ENra9OmwwkvrKuj3cOl90HtuvHLV1fwC06lz3G\nU/za8iilDbtuPzgWAUTvDoFKPvp3LIwgpBCEDtP0Skm2Cd/u+g6JMWsNf0O9\nz3eWawjm7Jie2Sp4lr94pu0OXYdCgr8wb9Zb3IxWkGMxZM5L7xP3B4EOmX2A\naxVmDR+FMAZqtxHqnkwN9tS6uKiMasY5l8yF4BIP1GM/ZcUFBgGNSIYqej5C\npFUSBML48H2QmlOhdMpAzPA687Wr/IUIJWhnGpRCnzXcjAVIpL/hVhC+m8NL\ngx9/XlENV9O/G4sIMX5q0iWmpltE7unsJPlipkDjmzNG4oVzA2xBHaMlQ4z2\nPQZregnKgXfQMjJDLE6O8FUZrcYugioeszBXiT0/8exJHmKnltwcuWKB8TGm\nuDtwf8Im5tY8dJEB0JvL3SdHsz/xGkdcXPepg/zZIYtnIs+7AHqr7v8UuwoR\nmuhzG76evQ5iPO3R/XZ/6WdtA/aP72d9MSnlCoZ5pLwoSup1lOja/mBM9pAR\n1QzG\r\n=ZQe0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e37611a41628785b7c1266cd53abdd9da0208c00","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.f041a48c9.0","@material/base":"8.0.0-canary.f041a48c9.0","@material/shape":"8.0.0-canary.f041a48c9.0","@material/theme":"8.0.0-canary.f041a48c9.0","@material/ripple":"8.0.0-canary.f041a48c9.0","@material/animation":"8.0.0-canary.f041a48c9.0","@material/elevation":"8.0.0-canary.f041a48c9.0","@material/typography":"8.0.0-canary.f041a48c9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.f041a48c9.0_1596150039815_0.9414705874391396","host":"s3://npm-registry-packages"}},"8.0.0-canary.fbb1381e1.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.fbb1381e1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.fbb1381e1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6ed96280600828940fa5a417f5dbd381c5a0e366","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.fbb1381e1.0.tgz","fileCount":45,"integrity":"sha512-ppzqf1Nd+5HuMIHveys+ZsCIfMWo/hoaOgCvwfzCxNYG8Svr12Ke3/WhTw/5sS1vgue3jJW4oMXtBmYfegZnXA==","signatures":[{"sig":"MEUCIGsjUW/ZRiOfuDomNuv0PasUPXocRTJ17k7MMwSVLkw/AiEAlRQRChzBbyhyjkIQp+m0NepF1GyQnuFkdrG/3TfSzZ0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfJD31CRA9TVsSAnZWagAAXQUP/i6d1gTD1dbm0U4tK4dZ\n81iasxij0Rm9u/KrJkXku9qaMB977ytNSyaN+C7AwtN/2fl+vTNtPnL25iyt\nAfgtKiFzhFYYPTSwGQ3o8DqQl/HSei3LtvU49k8SX7qPiwzo4ChIdeJL7CMv\nukokO0OXjf5Eqz+a2yKW+3ITx7EoUPOm/iGA9wxj5VXHu6i/PfUxhjLCrqKB\nHe4d8CGzqFAOZ+1unFwVAtJUd5qY7VmpMF8mYKC6t1XAtP1rf4CjVh2khOow\nVCUlXbeQDtiKKRXGe6PGDQeMD2HtJlD9YGUEKoEipWs+ow69GJW1ffVC28Wr\nVmYQ9LSd/n1wIZ5WHDo+DHnri/kEzCeDCwbiwfIxZiIBwKVwGQdhljGYjWRM\nx7s+VKx30SKYPjffS++SL2hpIxZLMJpxBTkzPfutgp+tNPUvUmdJdYlVbJRx\naA60MHQeDJcW1tbF3BTxk5mL2Z87VHpgt18VKzy4/uANiz5WaJa2zuUVOdg6\nNahebgNQD+rc1iK6I4/Cb/DeSWT/upuWKTrWIXWuZVWeMzXlSzaa5Canfc0p\nx+W/kk+60ZnAZH0FxyyImsY8GkdH3N0PAYeYA03PyHenK+DHQsCadfvrK79z\nyyzNd9SisZ2Jv6qYvq71zDpBV08/PL5XRSmnymVlBo3wvqJH5ulMngcUY9QG\nVfjC\r\n=Lkuz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7c42a890f9b5f1bce3c7986f37f806066e6e30bc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.fbb1381e1.0","@material/base":"8.0.0-canary.fbb1381e1.0","@material/shape":"8.0.0-canary.fbb1381e1.0","@material/theme":"8.0.0-canary.fbb1381e1.0","@material/ripple":"8.0.0-canary.fbb1381e1.0","@material/animation":"8.0.0-canary.fbb1381e1.0","@material/elevation":"8.0.0-canary.fbb1381e1.0","@material/typography":"8.0.0-canary.fbb1381e1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.fbb1381e1.0_1596210677139_0.6505523310695533","host":"s3://npm-registry-packages"}},"8.0.0-canary.7f61d5785.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.7f61d5785.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.7f61d5785.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c8b6395a3aa32a02872e71b4089f4162bac31931","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.7f61d5785.0.tgz","fileCount":45,"integrity":"sha512-6a+CfqWg/WYwMkR+6bFYu9fHJOQiakxdYyJl8XbaEpMKieLp2g1VTpr++GxsIaNyqDZ//AAhUaVyIKGPyq2nkA==","signatures":[{"sig":"MEQCIDUzKnVDI6i41ZjtCVQU2Mse9vrjftSfXcP5v1sZodrhAiAzH5L7AwJt5DhFsyf+5cctWergA2QSBjB5GW0bPIDaCw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfJFOkCRA9TVsSAnZWagAAqWUP/RI/Sb/QjjT2MAiknaoR\neRJFZpL3u6wXJ82ChewTNebHQlj48K+I3BZGXTQ4Bz+/ETfbvc9AqjueVXjY\nt6qQWsd72w/k43ROJBpLhUMUU6nCahSeGP6Q+LtrjlR9OAjpaEsDa/B9XsVs\nf65FuBw3hbnF+vIWsvi2URHG+I20ETxazF2id/4qnl/L/lpqIUV3Q4Nzz/uL\nvNdgBc8PR697saNan0hAaYDZqHw6lgEH+dHTEK8Rx0srFppQIwzmdq7oF6GU\nEQoLBzWt8JESKp3iRbvNU0fLxdykiCG+Ige0+CdYp7swjLRc00v/TrMdUwbt\nvoCLaf3CKwiBswOQunXBPA6I6Z51J7sMZm1v5ut7KUkpMHCNfrB9KTNPej2w\nRNBSiy3WtUW2jdAWVQzMnqkqKm/zTboLpl46yWqVuAihAB0l6vMgK6Fv2I1X\nSIwpNjSqsGbOX52T8shmB7Yqu+hbboOP15bUWRNXlWs3fDJv7fy8nNlckyMX\nSNMg2I931rJ3E31wa6f99miuoGwa0+4970HagzI/OMnwF9XQF56G8NMOzYhf\nOACzbbamg5VDK1zNwLtQ3ya9Jocq0zedxA2mlZSHaMfkwBdzaIGFuXIQ9sq6\nGcINlBTfyaVqD+L8pL2J/5nxSNf3N8HS0XAKDDGBLLEoHza2DPXywfssHiRm\ngMki\r\n=qwgx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"beb77eaf7ccf3f03c6d830f96485010ea9e3d47d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.7f61d5785.0","@material/base":"8.0.0-canary.7f61d5785.0","@material/shape":"8.0.0-canary.7f61d5785.0","@material/theme":"8.0.0-canary.7f61d5785.0","@material/ripple":"8.0.0-canary.7f61d5785.0","@material/animation":"8.0.0-canary.7f61d5785.0","@material/elevation":"8.0.0-canary.7f61d5785.0","@material/typography":"8.0.0-canary.7f61d5785.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.7f61d5785.0_1596216228389_0.7038395843280913","host":"s3://npm-registry-packages"}},"8.0.0-canary.e1bc84d10.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.e1bc84d10.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.e1bc84d10.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"01eca1043f5ac774edbbb84a12d25d65a20050e3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.e1bc84d10.0.tgz","fileCount":45,"integrity":"sha512-rf3jSi3z8tD4Vp00GJxikgsDm+KrlbfY7qr/PIE3O0Ih6P1bZW6T0vu5MkaZvyGjr1EEXbT6YA4mIz0r8/7peQ==","signatures":[{"sig":"MEUCIGl/WPcgDF5yQ+zLf4OuwT0bkxDu34rLpOKeAD9lg1IrAiEA4Co+vaA8Tk+BmboXZ8Ceq/1AVU3tTRKWv2ZeD6rVhsQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKE6vCRA9TVsSAnZWagAA/9QP/RPtqLLremu83T7oUsfl\ncRLXOFkvwYMLSEUaQozeiPO7Eqs+qpiMJnOx0aOgVWiaV2olVbbrQ7PcPIKI\nbH8LxrdEAcem3ynSQixBbWBrou5QLT2rM5AV8q8buIhyM6qq/x/sTRMcmXDQ\nKdysz8lk4OJdCBUT3uJojZHOIpTOYRrl40Uc4FjMdwx6oggT9Qe9LCLDH/iE\nn7734+ZaVWC0PFjwkGN9AN165wDAR9kesd/ZUTzihCedMN0Ydvt4pRypFgUE\nfry1OcAi4ZwysOfhwozEpi5YkdhBpkYYvwknF12sR5LqGEylS776hB1bmeWn\n+XiQREKJ7NP2jjaIO2LOn5EWSEsLoZrD+l/3h9StjGtmjNZYO2QDGHzd5rG9\nF0pMx6vMfshSLM2jh6Ud7FqljOnVe3corTth40dgWeGaD+lX8bJ9tdxdQBMF\nWk/40dwBiWQoX2jlz/iLkNvXSC3iKrZZqygs7egOLkMTM3ViBBrBNC9S55gX\nJ9Nq1OSefeEsjIdgswDXtuePuU57vmaM/2+82lkXq1JFHjFSXKt7gn8LBBMN\nNhIuU7tY5ZlWu5sT6J+Ee75uMPhkwhVTf7ZLXmIc9qBkUvTzPgMYN9T6YP4K\nFrmfT5jMtISBPW+bLOvQViw6ph64ZDpxa1Y9uY/ktFIzxsmEnDh+JZf3X4xu\nWzyq\r\n=VaZa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4752dcadba6adfeb006ee3689e295db016f4bea3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.e1bc84d10.0","@material/base":"8.0.0-canary.e1bc84d10.0","@material/shape":"8.0.0-canary.e1bc84d10.0","@material/theme":"8.0.0-canary.e1bc84d10.0","@material/ripple":"8.0.0-canary.e1bc84d10.0","@material/animation":"8.0.0-canary.e1bc84d10.0","@material/elevation":"8.0.0-canary.e1bc84d10.0","@material/typography":"8.0.0-canary.e1bc84d10.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.e1bc84d10.0_1596477102667_0.5823252501996969","host":"s3://npm-registry-packages"}},"8.0.0-canary.096a7a066.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.096a7a066.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.096a7a066.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fd3398459f4893fd0501c0a5824f9f689634d61a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.096a7a066.0.tgz","fileCount":45,"integrity":"sha512-xaI3MQ7joNRySTOYgtAFzJl4xr3KoGZ55P1ToQ+eWwlXxcUvZ090Nw6nxYUfGKkXS36s0JINO4Wd7/slpMUa3g==","signatures":[{"sig":"MEQCIHMUWM414Ge/DtHduTwrD69pAzqEpwMW9vBHNiFl/KvOAiB3txlR+/tumHKnG3RPJYHTVmBSj5xLrO1Zy+NtD79OaA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKE9kCRA9TVsSAnZWagAARqQP/A6fidIT2Jzd8GyOrhT7\nRhFJ34/9ONHwLfxGbxUE49VzAM7ZpIWvvfOazz/62ymE3hW1H1i/FUL/GQUv\nS2qIP/GVHMfP20h/4M9rv1bhqJjeO497J/GtXH2f970aQHb52gwMk39p6U5Q\ngjBbw6ssrmQTD0HW5QJF0zMtxHoCZn3/A/m9qVcehEzpwGcW118P/d/fTV4G\nQSfNYnnWwLsGVt85zKqZqHuk/Yn89Ci0pVEzfP0LGQDiUymsfUc80EKRnsMC\n6y/gX7Xr4kBMaSxaBSPRDJmay7FjEAPyRbt5nzhVI5k56W+ig/ZP63vkbUlg\nixUrE866qt60QgZGOv6gTIReGovMRa0SXs/+BratuRHeZv4wgHb+OfIxInYv\nygdH93z2iAPzM5lTDf3ZIdGO6v1kR51i42p0ZrDaYQSemvMNIYsvVBQzALNJ\nJp684ELq7Pz/ZIZguLEpKhVgazQhKXiftxY6dYbWayfORfFOttHpG4ovzrtD\nS0yGDANfwuvFFjxPgRyJmu/TzPS3sbeJFHUW/rID0V6hiH+07/by1eGcHJYI\nmh+aT/01bfUUfwexECpZ7+ojcs/X9g3xVuUayUOA0tkeAJ7k7AkG0dQ5GzHd\nSErgzt8QfCa+9A3erWJF185vJALlh/D56PqjEXijetlP513aet9QJxu1pQn3\nIZ7Q\r\n=DFa6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c1f4491c464cef40f62d03f687af7b443805fb7e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.096a7a066.0","@material/base":"8.0.0-canary.096a7a066.0","@material/shape":"8.0.0-canary.096a7a066.0","@material/theme":"8.0.0-canary.096a7a066.0","@material/ripple":"8.0.0-canary.096a7a066.0","@material/animation":"8.0.0-canary.096a7a066.0","@material/elevation":"8.0.0-canary.096a7a066.0","@material/typography":"8.0.0-canary.096a7a066.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.096a7a066.0_1596477284237_0.1878189572935267","host":"s3://npm-registry-packages"}},"8.0.0-canary.aa3a3e5a4.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.aa3a3e5a4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.aa3a3e5a4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c3d4bfb6bac5efba096097eff5a625184061055d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.aa3a3e5a4.0.tgz","fileCount":45,"integrity":"sha512-uaNgYzxxrPVv5LEFM1vXneHMUQN+fRP/jB3vpT1pvJCqO1w7nCzqgljggwtb56Rl5guamR/z5OODn51c9lHxsA==","signatures":[{"sig":"MEUCIGpWYHXGMejRqPhioJhItiXQJFeN7Ov6jd8OCqpOG3orAiEArhOOoiW7Ud0PiI5ra7Wt01ryt8twPMHYHi0PfvUPNyA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKE+SCRA9TVsSAnZWagAAr58P/2BTSuFUGJH7e9ZSwleb\nyBZW0jk5ZPgEWMTE96yEuh8mTxKdL8TRcgG6Fl43qfcQ4SHBdhq3eMaBpF7a\n7vH431ObOPXSRlYN/XGmpYGTmYPun90NF7LPtCsSZGLYhXolzJTouyB6jj1Z\nvfr9WaFDvtmhubLUoTcwU/n0rJp/SUnJlMaA+napmQWWRlcZfVSlvR/gNBH1\nHu5bZKjclRCXe/jKAFf/nxdKcAih1w1OTMrkqWf8WwHeLwWZZEG3xFizDodP\nwOAsmkj58KQppZ0es0RY9qPxzx2eSZu6XtyRiPNs1yJwOtVEH1/c4oFKSHeg\nLApgMg+5Ut/9vJax/12wkBWhwVzGS4jKmwOJjEoHav5vlhafUghDHkORInMl\nwgykhk6NXbhiby+5v4eBoXfcTMz81gt7qQYpk5ic4VIH9wUDEdqf785Th7MA\n8+BebsK7y5dFLL2vAhwD0sYzSa3TNKkWuEqvRCU/U1/BFknDpwjn0VQd59jz\nwrCM+Qo/LSLKL+rWoJPVe3FjjTaOmCjs9sJv1Oja1NMslSVnh1oWE8Ldh94R\nAUcEMhDay4nnicDZ1ywA112alvVFaWEC8595otN22m0rHRthHpUvCfanhs9c\nv4PzofeZLNNsi0/qz2iHVpNee02+53Jd4Kk1EKf7A9DRMokP3ZmiATSTF8Dw\nIOM3\r\n=IpzC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8e25515e9c171e19310cbb58630a760408b78c80","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.aa3a3e5a4.0","@material/base":"8.0.0-canary.aa3a3e5a4.0","@material/shape":"8.0.0-canary.aa3a3e5a4.0","@material/theme":"8.0.0-canary.aa3a3e5a4.0","@material/ripple":"8.0.0-canary.aa3a3e5a4.0","@material/animation":"8.0.0-canary.aa3a3e5a4.0","@material/elevation":"8.0.0-canary.aa3a3e5a4.0","@material/typography":"8.0.0-canary.aa3a3e5a4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.aa3a3e5a4.0_1596477330262_0.18172088783022278","host":"s3://npm-registry-packages"}},"8.0.0-canary.5903d39af.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.5903d39af.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.5903d39af.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f68f3d1bd6a510cce96b829f8b8b7e2b3e79da1f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.5903d39af.0.tgz","fileCount":45,"integrity":"sha512-g8Ptd5XH2LFL0qWnnYkQ1SJhkl1LTsczSXsTaISR2aiEI1qKcBbkmoh9WYj5yDzWye1ra3Av2rxK4IIwAGALlQ==","signatures":[{"sig":"MEUCIQDgRt/Jjz+dNmWb94uikGx5tyXv9AdxpWFlZXv7xVRQ3QIgNEXpV47GARyE0//PPR+jEV7wk0LuPvnZUBeaMwhXFsg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKE+gCRA9TVsSAnZWagAAxyAP/2pxV9E7XIjDipMUT4eT\nOcH9Zsq1C8kaJGWSeQjEL0+pk+xPwiaZ/OPoYRoMuP+wZa42U0JDHv0ChPQm\nfflMYSoi9jdWy+OziAdgKAiTXpPZpkevHmD1qXoGJeTziUBQf3wsdBDreyvy\nv9fI3hnthOtHtCLF96JRMDwFqeVOjA7lHRM0sFyWOAGpnWOE2CYUH+Zz140v\n5HC+d2z+zEakAREIQVrB52QcDrBnZccEb98FPy1Wh9ojLmiF4qqT6epI8KLX\n+khohuUtTpyzg7Is+6wIVpHxqtxNz0FDwwDj1ryRfO+2fpXX7K0KpBtU4t4t\nMdRg9tVTRpIM4vXDHsz711T1cn2SN9bsOBBW+Voxx7GIZAfdjVAOHZ7CYKWw\ncGnq/be9i8MV3xLsxakzHWX71Nj7CzOPT24JxHClHOk3MkW/tmUNxfdIMScM\n4v191u8K4c4T1TvagQxSeL+EDg/xVdFkic+8wcpr/7ox5GACbVjt5SDatGpi\nkTEZUrbAXs+WiXNzxb00eudoYnnezqpbqcLAZFvZ2IbcW384cb4rDFbxtBCR\nGjLLE+n/jpIFAbdXjuT2J79D3TvTr4WOHWCB9np4sYnFC38pagg7guM8eMDJ\nqxklQKYFXl4ppFdhNoPNkecpxLzDDuHikMDK9KlFfmjfXlwlB7Sv5ekZEYGA\n2nMa\r\n=Alf+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8a4f2eea8ac8483e7e0a1c93b141ea9dfaebaf4f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.5903d39af.0","@material/base":"8.0.0-canary.5903d39af.0","@material/shape":"8.0.0-canary.5903d39af.0","@material/theme":"8.0.0-canary.5903d39af.0","@material/ripple":"8.0.0-canary.5903d39af.0","@material/animation":"8.0.0-canary.5903d39af.0","@material/elevation":"8.0.0-canary.5903d39af.0","@material/typography":"8.0.0-canary.5903d39af.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.5903d39af.0_1596477343546_0.49206272536202644","host":"s3://npm-registry-packages"}},"8.0.0-canary.72258f898.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.72258f898.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.72258f898.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"831d1476338590ad0ff005424ba58764fd414e80","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.72258f898.0.tgz","fileCount":45,"integrity":"sha512-PXoWcnscqvVjVUkH27Nvxb3gBdpLfgzwwsRN+ZRgiE6bWYsCNyDlL/MbVEt8pZ9xtdyMNRQshHeUDAC1eNG0lA==","signatures":[{"sig":"MEQCIF4BokNKoneD5iut8Rd8dzrRIo+2YR2dfnDWpMZwIpubAiAG/sMQjqp0MZQIJv3qQx42hc9Vvw/UrBHkVvq8af1qpg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKLdXCRA9TVsSAnZWagAA2F0P/0gsG7Dgz0ck7bf84nR9\nP3bfLP/DhlO/JqeYM5YxJygTM7L0dux2lqQG5iyYWuxK2/MlUCEVYzcQU9cQ\n4P7hnV91JOKqmxQ95z+KWth2PFfWbZTiMuZ4EjniDz9c70kp/Fm92zYpkTFO\ncDqVBRvQBcM1KCuPwL/DI2EQGnfNfKN3/O8Bia50d2NlRYH4hviiLvbK0XBL\n33mPILiRllk0WXijFBLfSTG2qw+t8OOi9yIHf5i6jhstjYpGesDN2VGnb6fZ\nVLkHmDfggzVtttXDQfqsxTbzefmnMCYepV3nT7N/ap/7QBH/g8Z0O7zl0w6t\nh2r/54PK9eGxG61ZqFwPOYlROeaZ/c/4P2ZBmMHIGDctpp3WLEUF6V2nLyGK\nn+19VeDF1u4hWE4m/zQKDq9FAcIt9fRWdofcf+4TKjtVYAfMacZPczDjs0rn\nb8PkvDKEcb/9y3qHaqUBIkAKLXJf73kOQ9YhKBVuy7IJetuNiCWiAipuQSEW\nKexZeD4sLjo7XoCIzidUGV1BsZnkYhzj543dQhp6jDVJc0vNu3jAlNYZpX8l\nz49JwWamyxoKcvJPtpqiwaUbfEAunz34jZoGdH92YMGTgswZ88yMGtAymcYU\nbtFCcDzGMJFEAAmaE4cvNbaL+jkjwGTtwI6vuSuyOrJrkNsERei2OdTcSvtb\nuELP\r\n=VtFd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ff2c64799ee2d684ba36b9cebd15fbe0d0ed17df","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.72258f898.0","@material/base":"8.0.0-canary.72258f898.0","@material/shape":"8.0.0-canary.72258f898.0","@material/theme":"8.0.0-canary.72258f898.0","@material/ripple":"8.0.0-canary.72258f898.0","@material/animation":"8.0.0-canary.72258f898.0","@material/elevation":"8.0.0-canary.72258f898.0","@material/typography":"8.0.0-canary.72258f898.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.72258f898.0_1596503895442_0.03511254132390196","host":"s3://npm-registry-packages"}},"8.0.0-canary.1b44b43c8.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.1b44b43c8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.1b44b43c8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2366cba479b13732f6c19a72a499b44f5a3f37c0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.1b44b43c8.0.tgz","fileCount":45,"integrity":"sha512-XSJyyXVgsucEFCZlndChiP0QvQvhbO3GpK6ST9Q+OFsDdqBzTYmeuqzFmg2LoL7VsvH6b3BATrjMTIIbHAUW2Q==","signatures":[{"sig":"MEYCIQCwIq5E2S/NeCEFzKv5GFPIuomGWu9plBwlLBtqV7k79QIhALm2fcI+CEHBRB/zdtgfXHAJNyevpaj3iU2kcbDhcvdc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKZGSCRA9TVsSAnZWagAAAj4P/3wJvxc7KxrCeAEpOgqa\nF3+FTQkeMjWExPsXAuDqZl8ZMj5Cts1Qhs9yZgz//1RMe2aWtvWD7iK+MlY8\no6i1qz22w1pSBNK4S9yNzBU5ddAMwybkhzWIEWE70mAouX6Yt0av1cLoPR+v\neNI9KPFkQGSlQolSPXsojPy5Wih3cxZTQFZXlmB4fT8/MKKCsOHvUa6Oc8X6\nUlgieu6JJwl1vHstzLGNT3kzdHNgeINm6ueqch+mcVdJm652eEl1yyFXKo/g\n9Y2fiX5gHJab98GiLE1tAaDbj1OPw5QiLSKcYT1Ih6LFDVldRw0//LJQ20BG\nEil6rchkRVHCdJHmgrQ/E9Tbq0oFbw0NgO8N3Vlmm5c9pvaEAqclyFudVbmt\n8vxm5KOtxWOgCkx2fvA/opZ75OJa6JxR8Pw5xJWvN/g6hsiXBPwRyXwoAH3i\ntYe4djOF0lBalQb3ZDgTQBsGdRqmku67WPVwkgNN6HkS7mTVsneK1JsOlnH/\nimzNzZP0mRXr7yJPj5hHUoaVswQunQnAdEH7o5jfm+r4xEtsitI1sbMiOYg3\nLqNvZ/qZr0mTbBzwPmh/ejoI4MDw0mXzanMG7Gds7MKfKMCK0TLff0GktuPp\ny7pyDVWxE7jJ3NshUwyagVn8162U6TST097r6sSCml2+N1I9QErablr53Fgp\nB+Ur\r\n=qMkb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"69ee70c646249b45b57e59e958f1ca6d8332dec7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.1b44b43c8.0","@material/base":"8.0.0-canary.1b44b43c8.0","@material/shape":"8.0.0-canary.1b44b43c8.0","@material/theme":"8.0.0-canary.1b44b43c8.0","@material/ripple":"8.0.0-canary.1b44b43c8.0","@material/animation":"8.0.0-canary.1b44b43c8.0","@material/elevation":"8.0.0-canary.1b44b43c8.0","@material/typography":"8.0.0-canary.1b44b43c8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.1b44b43c8.0_1596559762091_0.05421862707146685","host":"s3://npm-registry-packages"}},"8.0.0-canary.e9d2e2f96.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.e9d2e2f96.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.e9d2e2f96.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"efe4d8f2029ee9afbda3d95d36a765e805135d48","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.e9d2e2f96.0.tgz","fileCount":45,"integrity":"sha512-uDDTiui86mnHwaNToayecYTijPWtPvZ2s/KvZplv+09z5gVxi/95YKEZgvq1pzfxvHdhiCI2aWToI+AprPV/hw==","signatures":[{"sig":"MEUCIQCPS7FEfsKHoKKeRFIS3J0+lXQ1jQK7BUXrBKmYCtiu2gIgLG9rOkPvbcvahU5njP9athJCjhaJT35R0cmyldorwlM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKcQhCRA9TVsSAnZWagAAeTIP/R0xq9e6ysBnlrRmcK0h\nHxesNJ2r9Q1wSJ9ZfWYDRFT3aweA4PZXslKK6uEiuI12eZr4HDx56hcxOjLU\nE4Eo9H2aNOVVhI8pqhnh3QIyxynqd61mENMi4qEr9tcuscVh7sp6ZBNzV8nY\noNOUS1MNcJI3mOeuCh/DPpQZs7CiOkoDPoGtZVLD1P14GWSij5ZTQwtwN2Hz\nrCxLCKiMmmJTHENgxpvouplu1b1UVzOfKBt862m3lIhLzYllXyzA7SP7XAeV\nrCfjwubMgSdmuZhbgGtg7OC4L8EpmeRxWUc2jgu0KXDKLVNib897VkZcI7Ok\nlabTiRMJrxocx5f4lSUDhSfi2K5h0qlDgiza9RVAvONVu03/7FuryDbxMEYr\n1zI36dyIIVUCKA53GIQOZg9kh41VQua8k8u8iU96gmBus0K90xy40PIO5mBn\nr0HT8dflo7DI2NnL04yGpIeMuIJPSY7qzvQH4c4vneZ0rtmbFzfiidfhFD+B\n77wPaMbu8IYfFiuyCQwZollb0AtXcRm6TPUhPc2DQqol3bJOpKnyD3eiDiPj\nLrGIWmyyjM++IjJ6H5lKJ/l0PhSrpQDVN+DJW/bzGpFEaCDs2cjqxM45Nasp\n74RMICaY6wXgkYKy+V/MZ02t/1xW5UXwRDJCmwn8pxys9H7wLIyQlvAwp5Yr\nj6+B\r\n=NhuA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f6bf51788bc1f39067fcceced79dcc12b2c59caa","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.e9d2e2f96.0","@material/base":"8.0.0-canary.e9d2e2f96.0","@material/shape":"8.0.0-canary.e9d2e2f96.0","@material/theme":"8.0.0-canary.e9d2e2f96.0","@material/ripple":"8.0.0-canary.e9d2e2f96.0","@material/animation":"8.0.0-canary.e9d2e2f96.0","@material/elevation":"8.0.0-canary.e9d2e2f96.0","@material/typography":"8.0.0-canary.e9d2e2f96.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.e9d2e2f96.0_1596572705097_0.6064766734141669","host":"s3://npm-registry-packages"}},"8.0.0-canary.b9dff0a19.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.b9dff0a19.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.b9dff0a19.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8c59e8daff879078b3752952502de1c2eb7b5b35","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.b9dff0a19.0.tgz","fileCount":45,"integrity":"sha512-b+l3K19SxA2Myj/R//d8fTmjgrCnj30fiGrCOSnIwiNYZyHxWAyD0V3PDXOyh1WfL280+D17JD4L35iet8DQBg==","signatures":[{"sig":"MEUCIBMNVscMqBqaYoeI1LgIHRnHNniD5NGoMBFaVgYFnoTNAiEAsqLMH7xwLiQlP2zbKbKXdFqzAeKCAELfPxoUL23x9DY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKixcCRA9TVsSAnZWagAAeFoP/1981EzpetCDIMQNZKS+\nI+blep9Ivca8LNFrzd5ydan5h77xiaIQtYxRHD+Uws7Gq4buf8Oq304cdGfj\nd2Mg9UD2QImd7QcoaOgUzQMJmW2vueHqmuE4Arb7fX9vGBecEe6QKeEAhsZs\nnWAV2KrQn8SgN8J6H/eWQvNj5uYMu0djwt+DrHhO9C136bNNcos4oXxrQi92\n9lkpZbWe6/g+yMWCQ5Tl2yOFqyR4aUTVeI3vRvBG8C6bCUYckWyyGhyxskQ+\nQ06ZSnOoSMnqtyhJcciNJ2IL6TSvbN9O09YPbw597GR/zUCDdkwtDK54vR/h\nsyP6t6BNC6sXeE9hh+IBFEQp06CxHR+sHzVhyVh4Fj8OBtAySs7X/Dzthkec\n5N4n1YtDqF2w8GjZ6toPGsEUH/isz2QmI+PFR5Q7yEFynI+2UJwqxnI8HhLI\nvwe3HzqtA4ujIYpX3qvO4J9y+s1DxlkdpPwJONekkJxrxEpav14d3KPGvcRt\nGz8mbyBnko9oylPg2p+QJREOeg6BLadCfMuROPV7LDHAWILGaw3mfzz0bjq2\nW9h3ynW2IzlctGO/LIs4mEC/lOnSnu4P61HlVg5LLMRgQLV9EEAQuuZsR7qo\nw6zyWa3NMBN3YQW/8faHG6lSGAXCr/AHDifKTV8sES5hcihXVBSsGVOhwzAN\nL5uy\r\n=bfec\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dec2f9fa4c83e98bee860646fc2a65b134a7900d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.b9dff0a19.0","@material/base":"8.0.0-canary.b9dff0a19.0","@material/shape":"8.0.0-canary.b9dff0a19.0","@material/theme":"8.0.0-canary.b9dff0a19.0","@material/ripple":"8.0.0-canary.b9dff0a19.0","@material/animation":"8.0.0-canary.b9dff0a19.0","@material/elevation":"8.0.0-canary.b9dff0a19.0","@material/typography":"8.0.0-canary.b9dff0a19.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.b9dff0a19.0_1596599387691_0.7502576469889397","host":"s3://npm-registry-packages"}},"8.0.0-canary.2bd09a706.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.2bd09a706.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.2bd09a706.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"54f8dfc0b4ffe2a3f5a30cb169fb19a9d138ff13","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.2bd09a706.0.tgz","fileCount":45,"integrity":"sha512-ADslNnTJMQ77bvOJV80J3EHlG+MpamDke3yz9AyTyRxXH40onIxPelxeEsbiSzY1YF1Il5hZgYT+xJqNGT0jsw==","signatures":[{"sig":"MEUCIA5/3ibYO2OyR5JwStarterkkRFVqR+3cBnjjEEtqBhhAiEAslcAULMgD6Gj55vqp8tRAdOaKgEA4zC2OF2snySQMI4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKi2SCRA9TVsSAnZWagAAdq4P+wbMWwggs3Td7I18nfoR\nMaiIseu02WoVMIyWNEFJE56ZaPFeG0+tzTLP2fn7J/IBeMQQa+a6audyHhd+\nu/D8aB9g0O72jSpj8nDu1HysC4cup6ItNjAewc16gjw348fgJDxHmjwRwL4X\n0F0vaE1B8O7VifZMd3EndOph5bn/xc35YqcSwVcZ30Apqquj5/xU2sYTZAHI\nYEKJfJtnd6fR9cjfRXVuyGeLUsYwTzVnHYJRKbHhazjWlJAyhwTeEcrH8ZdM\n/NixAsKyJLojx+ryaiEYZOJBTklojbuYwgVaCiE0SXkATOvYi1b3QC53nELX\nFkC54XFqXsfHMcoN+GMaYYKZU9aVauo0m0CkpIaJNA+EWs3OvABIy3RNgFbF\nrWfz1Q2hYys12jqrlL+KtOTttaj3aJkyLZ4SK0uKtMqX+xItOxMRdserfqpC\nqh4gY3sRl5+yRNwV0iVZuTvjSb/GapJkIrveogleB/DO1ht3v/CQTB+enTpl\noJn3Qgh5KB8fTKSJG/hln6QwW04GyJ4UIK0uqa6LPiLVzdA3TzHxlJXIoezF\nxZQLhITcAXCgxc3nsiM6l5Tc3VKbBPRVgYrV86W2NeedAKny7QuJXJg1t1L4\nitko3+XgXbsdZsEPeWBdgvDOvAK1q0n1fVrSvzAhaN1mv7NJj1mpG9rBZtPf\ni0PT\r\n=/2JR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c8b061f3fa8ffaf5214e79fe44f6c575216a1808","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.2bd09a706.0","@material/base":"8.0.0-canary.2bd09a706.0","@material/shape":"8.0.0-canary.2bd09a706.0","@material/theme":"8.0.0-canary.2bd09a706.0","@material/ripple":"8.0.0-canary.2bd09a706.0","@material/animation":"8.0.0-canary.2bd09a706.0","@material/elevation":"8.0.0-canary.2bd09a706.0","@material/typography":"8.0.0-canary.2bd09a706.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.2bd09a706.0_1596599698481_0.08617237408994005","host":"s3://npm-registry-packages"}},"8.0.0-canary.e0560522f.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.e0560522f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.e0560522f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"22feac3ec19f62e20adb81d0f5675a7c45fcaf26","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.e0560522f.0.tgz","fileCount":45,"integrity":"sha512-etpE9VOK7qontvS5xiWMTln5nvedeGR9qhAZExCiPDGAVZS4OcNo8euebEbj/v21y5j+X+6+KV9++hvEI6Xrpg==","signatures":[{"sig":"MEQCIAKkPJMNvjwezWnvnzrq1ynIgv0HSQ7nE7jLUgNkfvgfAiBK8VKEUUAebWbIB9Q5/O8Go6slqa02cVQIrQ6eE0jCiQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKupzCRA9TVsSAnZWagAAKogP/RTzLCsXvSm5HA7PckgR\nBdsCeF18aRYl1C8Q565FLtTKqLDedCUCtGCZwgOblM8OjOUaYyIIBJbOelE5\nr7XRZBP56+NUTEvcPPCxXcTClclGAbQvBJXSglBuYNBuooqMCpVToEXXLawF\nGxRu1HdpK8HSf2HaKyUEGAw8EROsMs/OEJ2oZJ2JLzC88kvaFZ+QArH4PhuW\n+PyoyNfl12OMlTlbnNDn/Z7Cr9dHt3C47Q4gcvhQrfq5vaefDRJjiFQHCy5A\nhkQawUeH3izoxz5Tei8zeKoaqpoPBkMVJNGPnppiOwxST9FusbVHzJfCufir\nXfbdRC+aoqPv+sSOhTzdktfJ9lFac82FPbcBc7f5eICbDN8Z0r3Y7uGaHrxE\nnLTgbioQ7pRVax/QHKybNcQq1qtiasY1ryK+s3TSdTS3RTJbUR0AulmfXLWU\nYy6sy1r3xoJkp08v+6XeH4bR3VNadCjlsJwa3YiyHjMWskCJHBJw3tGXuLuC\n5dcGak5vTMGtRHx2ZYLkmd3j4phBtZ7BhLbww2dwbdCFpzbbJVqkd0Pgxi0x\nGn41MGsWnsHQ0F7+VzOlVjQoSocebFhkDcB8hPIrMTpYw/BP8edL+0xtEREK\nCg0wo9KSFvrIissYU6aR6s5COb9tpYOsBCbFAFmBHGm/IJmV3+oW3a0CnQpX\n6KhR\r\n=nUsg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f4f71f168da3435c5dd1bb74e7ae0c54fcc45746","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.e0560522f.0","@material/base":"8.0.0-canary.e0560522f.0","@material/shape":"8.0.0-canary.e0560522f.0","@material/theme":"8.0.0-canary.e0560522f.0","@material/ripple":"8.0.0-canary.e0560522f.0","@material/animation":"8.0.0-canary.e0560522f.0","@material/elevation":"8.0.0-canary.e0560522f.0","@material/typography":"8.0.0-canary.e0560522f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.e0560522f.0_1596648051407_0.6446557518263556","host":"s3://npm-registry-packages"}},"8.0.0-canary.08ca4d0ec.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.08ca4d0ec.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.08ca4d0ec.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b045f9d0b8e83e67ed9968bbd655523da1ca8dfa","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.08ca4d0ec.0.tgz","fileCount":45,"integrity":"sha512-yZXvLN2d4UKILoTKULhgEKvy3U60uS9lFYMrwBLgATo2TIoJAISCoVU2j2OpDDwO6by7Emf9G+5mwLUFYejBPQ==","signatures":[{"sig":"MEQCIFIAZ7ZKoSx/rKmkiLiew/rCbwVXyCyihTb5ex1V+SQLAiA0dSc0HgpMW99XK3eP0WOvee4v31gruOyrEqbPoBNvYg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKu79CRA9TVsSAnZWagAA6XAP/1ynF127x/mNM0yMWeK+\nbUI5SFvi5wcEHfRdHpcnwSSoTocqwimoOUWjzL9NLgf7sfzax+4e4oi5qqkz\nmn6j3cAt6fMSYpeqfc6Y5YTqKiAGzHsEr+DeP6bQSwZHOGMGiXvb/pgasy7r\nMzi0F26lI197TTJMTvN4YdCvn9L6C0o1PPBQEhzqvvibdEv01+pP6e3HIdkZ\nUfPa+KmgkK7IRbAErfW0fROU2PTBTPjL5l+NJZLNbuk4FaSuiv6ZBB6AYapq\nW0IBTdecKwaBOz2D4bIGGaLWQ+pOBZ4bXiI8cslac9yP7fVEiQ6eZ8kg7dIY\nVBkUMxIK5Wi0WNH/125BqSbCjVXnibj+a1qyVszAPB3GQ1ruvYCZuSEA+ThZ\nGnnLUUcndBx/YPSLozjeIer3nvRTHk+unHTifqDWCUOew+mQijoTYKHDGnmE\nw/zJHLyuwLiioWgiPM2EOWab0ht6msfe/tGk1bHLoNUC0gotwuGJ7cw6hQym\nzQqmyARaSmyO0DT2ZjpPpA7PBqbeOnVn3dE+mjBVS641e/rG3ANyehhSsbI2\nFx2JODWjF68uwnnem6w6orHnjHjsQiMyHi5unnKZPPssPF5eOljFOvbBO1FF\np585zG+lIsMBwWvTlUw1KFmdCYvwEQvHFSUCvdx9ShSXepQAnlqw2IrlYq87\n53zL\r\n=QmzS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e525a44ae67401224e06885b43f10017ae70f9af","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.08ca4d0ec.0","@material/base":"8.0.0-canary.08ca4d0ec.0","@material/shape":"8.0.0-canary.08ca4d0ec.0","@material/theme":"8.0.0-canary.08ca4d0ec.0","@material/ripple":"8.0.0-canary.08ca4d0ec.0","@material/animation":"8.0.0-canary.08ca4d0ec.0","@material/elevation":"8.0.0-canary.08ca4d0ec.0","@material/typography":"8.0.0-canary.08ca4d0ec.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.08ca4d0ec.0_1596649212877_0.918699825599198","host":"s3://npm-registry-packages"}},"8.0.0-canary.08090126b.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.08090126b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.08090126b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8ff0d582c5d48904b9cc42aba90c344de161ae2d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.08090126b.0.tgz","fileCount":45,"integrity":"sha512-DGKSw3jWAOJGOr06SN1RuGwupu/QgfaDihQdCagbFLTRiVYKDfTfflABb0yELbpeII2lMIRB+wAwz20WYfOjOQ==","signatures":[{"sig":"MEUCIQD/XBUNfLIGqsjr9akdM+7iztX9VEu2OBtcKjU82lLZvwIgCNHH22oB2JW9P3Eb6MUhFXjl4mq1vAoSHOODcCTRpTE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLFsICRA9TVsSAnZWagAAQhAP/04XmxXAkmrvM6jnj4ss\nQuZlOTOiFcyucrekT/RTFszuAO12yV+Q6+WczkIlCkNvdez7jwxBFyFEL5TF\n6sBJ+kvos4c+6ZCnn9ZE+uQobXPEYIezmxfszOg+ElBfvTk8fEsITuFLTuNH\nENIdER8XByTKUYFLfHCq6zfjj5uvnaxc3hr0zXjeFvf3+Rj/xhIcHFfedQto\n6x4OUEGtOD0RWg+Nt99ytYjHVfXINFThuXauZUZLHS/P62sLnvHAEqB5+x5B\n/D7vpp5g6ZvFDO0xyx/Z1z/4SmjS/m55gkC98GLn6MGj+ZQw9ycap5wNzPYA\nCo60UZ2WIgspT9kBPau9jIta1c2471YOwiCidoxl83fUV6moh6dqtCg4H5Yu\n9BXlgaAvuWwZJVhTzVuRm7B4twYOg/YxS/EAS9AThPbnVQEmWC1fTz7ixytb\nKHxzXgQUk/VcREtDefOp5ylxSKa6hbfbESoAK7QoQzUesL1w+YVlv0IlELIo\nUFNf7DV0AUEXeJEGGVJPuq9g0FsXoVxFSbUjTMjlsvxb6aAB3uDrRbKMqIsh\nDCwA2/AxTY7UtfTVTmXRh0oFz5B7C0+8fmyqh4wo0apGJBa/jkQq76/XAgvK\nuDQfhz3c4sfY2Xxb6TXj2b6eL7K9576BMkwlyeFnQCKjMh7Y15RcbF3L3A5W\n6CuT\r\n=iDNM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"92703c0a9dad96887725176e28a4ac83640a3b34","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.08090126b.0","@material/base":"8.0.0-canary.08090126b.0","@material/shape":"8.0.0-canary.08090126b.0","@material/theme":"8.0.0-canary.08090126b.0","@material/ripple":"8.0.0-canary.08090126b.0","@material/animation":"8.0.0-canary.08090126b.0","@material/elevation":"8.0.0-canary.08090126b.0","@material/typography":"8.0.0-canary.08090126b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.08090126b.0_1596742408026_0.550318528529611","host":"s3://npm-registry-packages"}},"8.0.0-canary.e8bf5b2ac.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.e8bf5b2ac.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.e8bf5b2ac.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6c47eec6e63201005cf31b535071441f83072513","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.e8bf5b2ac.0.tgz","fileCount":45,"integrity":"sha512-ixx6BtQMpP+Z4VjFqitLhbAa7vvW4+tItKrnw0eP2yCFnoQVkHlpzTI48A87/5WfW3RBJoMFg6wuT6oVaopSsg==","signatures":[{"sig":"MEUCIHOUgX2XCn4o/hhq5WNtqBLdI91tnxSe/tMZHGaVbS/xAiEAtJ1o8d0iuAhMoxOs7hF88Jq0YRZoZK3Sjaezf7gCA88=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLHtDCRA9TVsSAnZWagAAWgQP/RM2ALyuO96W4xXQs8gv\nh597vrDHv8ooekgGmb3SnVkgGMRW4kOcFyFS/AXcr5dz/HlR+5Er8wvj84fW\nOzjH+oYSIWcCdNFZ7LFE4Dfsy4pMFe6sh4LWDjLGghWGdWJECsQpAX6Wb17H\nq508YiO9Jk445nCcKBetooA7T5GGp/MdPZrtOmrr2cWy3UdRw1CIsE3nwg0F\ntZ60do67Sk5HRUKMS/2iHthqgUcFgzP3tqkndTutV4GHKjbPpN34LjNfD7i8\nK6zaz+WY/7JrqCpHbi0TZk91rIRIQzTT/426YuUUipEZq/Ig0g4HKbU9KwZ4\nteBxU28V4oPpeWFt69f4nlQ3HGg8mXNYDH8nT70eNiDZ3WRPNyIdgThjJEBQ\nIOuqT2DXa0UGci0vsUJEaUbv6ACmSPvXzNoRojaWMLlqtnpRFodhwCzlJcO8\nyMvXAMPZgl6Xt8zq5rfRPFjlc8apezsHqRDSQz2uGfm2chlgMAhOY3wyrDlg\nIAUGg0CE7+vW7s+Zw19BXKAaOwZX4CNp4EcYWENQburFoCaB8tsF46Hzws1W\nWMN/slb8AZtb9GM2OSpxZBMjVM0kVLy6NmvZ2esHwv7oHpCdZJgrsioRmqh7\nCnEXlU8Gkt/eg4jvWWnhTItk3Jghpchm11UWMITRM48ukMbmM5oX9hWj8bP7\nLzxm\r\n=FzWy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d5fe47cd91dcff7cada8ca9b587eb8a924a211d3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.e8bf5b2ac.0","@material/base":"8.0.0-canary.e8bf5b2ac.0","@material/shape":"8.0.0-canary.e8bf5b2ac.0","@material/theme":"8.0.0-canary.e8bf5b2ac.0","@material/ripple":"8.0.0-canary.e8bf5b2ac.0","@material/animation":"8.0.0-canary.e8bf5b2ac.0","@material/elevation":"8.0.0-canary.e8bf5b2ac.0","@material/typography":"8.0.0-canary.e8bf5b2ac.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.e8bf5b2ac.0_1596750658635_0.47435841867060713","host":"s3://npm-registry-packages"}},"8.0.0-canary.e3b746208.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.e3b746208.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.e3b746208.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ef834f92fa6985d774e662aa7acf31ed0dc7c7ed","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.e3b746208.0.tgz","fileCount":45,"integrity":"sha512-dPRBOeGBUTxvUlw4xPGsVMCoMecwGiUi6LVwOy0YAQ/avinkIvxO/Vx0iSPBufo9S2OlFxbNfgjKGyCj+AUK7w==","signatures":[{"sig":"MEUCIQDKlAu4xHkUM5MYdBqfZpbEYMUEk1regMZkEXuT0ZJrbAIgGfp07+KpibkFAVZQsb/9P2i9NwQZhqbCMpZvLHPozvY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLIPaCRA9TVsSAnZWagAATkwP/3nTPoQNtuVxwSJVpbSM\nd8IY7OJRIh9xreduKrw/HTxbErwaDiDgfOfFDTBJgPEcxOnVt6iZmt9w4gFt\nMJG8agjWTkosPB4JJG9jpe0UBKL/PuDRzOmyTp8wRKmn8NRV0HP5Yju8ow7/\nQT1NFsxDwwekN+c+EJJtfR7dzltw4RpeN0ctxBSRLJGxxvvioOeD3C5mAIjt\nF+1Dy/4t1/s1aS9XSHJLqZAj31S7CB5vznzhYk5jQdJOFXYX4FrbFXwBx7ut\nZwh1xnMv+byURJ3WhkItv41CzjdbfyRW3jDOMLF4LJfuLWol/1ugket3G37Z\n0VmlA37GFa9oXbmqiZEwxoapYwDe0b3id5JtlNm2fb86pXNL8oAzM5OyETvl\nX6P7+SEFuxkRrMtBl81vC3xANKwPj7KtHbrK7UHkQyrFyuAQpOOwIksQvzoA\nS9TsswdyuZO0PelebX9R80sAiIjlAwSPTolsfCX1UTz4zcoAARbHbi85+WZe\nvDLGuYblsnVPDWo+vBgVGmoA3tn8WObkaIWLCzy6/K0/H1wtXediDaSZfUSh\nG+dfzzzj0JXZiletTYFQiVZMRCVd/zjowyKZSYAnBTx5uW3VjtGtyroKIHq+\n33Z/8oA1zZACGkmT2tQQZKnWGRyaCkgpn/bFHVwFKN4xTG/bs/le7o7y1Yfd\nQHQC\r\n=TzQM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"565f03445fdfa2cc653bce8f5c730176a406e5d5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.e3b746208.0","@material/base":"8.0.0-canary.e3b746208.0","@material/shape":"8.0.0-canary.e3b746208.0","@material/theme":"8.0.0-canary.e3b746208.0","@material/ripple":"8.0.0-canary.e3b746208.0","@material/animation":"8.0.0-canary.e3b746208.0","@material/elevation":"8.0.0-canary.e3b746208.0","@material/typography":"8.0.0-canary.e3b746208.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.e3b746208.0_1596752857625_0.9282385894482241","host":"s3://npm-registry-packages"}},"8.0.0-canary.96a640534.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.96a640534.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.96a640534.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5433a3c8815c419f7ee0c96b4b791c67148c508d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.96a640534.0.tgz","fileCount":45,"integrity":"sha512-laricHs1eDMg3fLyl87KH7Y883Ye4UYfzRXqroik+ZL6Mq74FKUvOl46h9ajgBHlRweEAMROfPdiLqgjFiuH9g==","signatures":[{"sig":"MEQCIFA5eliF2nmyFOmLRzoQU+ExE11wQ2k01NSDTwjbQD4ZAiAzAlPfus1HoLMpG+/1YHn3XWB6EHRF4xn5LjCCVa4XCw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLIdPCRA9TVsSAnZWagAARXsP/2e4PBzXe6XkSPOX2Dsy\nAwRVg9ZrEt8sEEggFwoAdmXLp3XFPYIHKHvJc0UhvYn+WkcSw0lXGRotepeB\nthtHUVGS19b49FsE60rl8PU0safP1GIhoxeB8dbz5OysipkBzJYYzq2bWP9O\nHTL2D88n/ubDdalMjPkBsOli8PeDtUBAvBiFd4GzCDVPsoJt/ugv+CRDgawP\n1W6rym3q5TJH9jXWMfiHmB4XxgBWWG1JS/JFKkwkLNkLoTgVygtBW1T1vUuM\niFl36RZm6Ra02CxaTaiuzJkTDTYS8zuH+2Lfayy6H3jsgiSnZMtlYZZW1p/0\nlk2teHLmkk3qfvE7/zkSXbdz1nB9R+vSML9Zb9lZhA9B3rc+UZDItPk0Y6If\n36j8uk1S15DnQDTh8bWAatGSAmKn0MJ5X5P9xxOZBYXrv4nFKvFnk3QdEZ30\nmOsxGP9U+UIc0Vdi4cP0BqqKErr97HfMGDruQjZvTfzaOrQNOjhl8cgtAguw\niLg5FecRGSUVq4vbtxb++NH1LunKWY9TuTpXGIJfNOkPRy+qyr/so8DORkpW\nrScGoCFI0SWzyBLHIBfxtBS2ud6yAf39DyoeZULxTwAHT6HrVPgxgQ7ByAb9\nHz6cnOz2Qh/Hl/+UjPDF+0sp2B7d+R+LFhd4NOuBRVjRRFt8os1EGMvE7B8g\nMQXV\r\n=GjXp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3363a6ead1437d646dec8eb21cb2d5c5323e8986","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.96a640534.0","@material/base":"8.0.0-canary.96a640534.0","@material/shape":"8.0.0-canary.96a640534.0","@material/theme":"8.0.0-canary.96a640534.0","@material/ripple":"8.0.0-canary.96a640534.0","@material/animation":"8.0.0-canary.96a640534.0","@material/elevation":"8.0.0-canary.96a640534.0","@material/typography":"8.0.0-canary.96a640534.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.96a640534.0_1596753742603_0.091587195021952","host":"s3://npm-registry-packages"}},"8.0.0-canary.9f9aac825.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.9f9aac825.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.9f9aac825.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"572263b3375dad1f0a5f2aa1a05d105b75bf9e77","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.9f9aac825.0.tgz","fileCount":45,"integrity":"sha512-sy3TTj96nqadsZbrGm9fr42F7lKxfZNc+daHOH+9flzCbFrQW4NzbSiQVuMwmfKlpxe3b1I/FlvvplaVayYIPw==","signatures":[{"sig":"MEYCIQCGamnQgteA1Mf+mmQspdQjpYD+19vBMp81LdSi9qnzdAIhAOXmMCmyBA0NHgEDaqHMm2XNVbMrXkF2Sw9JKTaIB2eF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLb78CRA9TVsSAnZWagAAazcP/0SjCmoPNbwolaBY23LJ\nd8P/FDSFQKb/YxIFF1MKWmXSZAnXgGiJ732hcU/7jfY61iwrrsUzRX0iCjpP\n88Okg6ZZKSs9/dByWrXXYq8dfKKcUQzwd5dhL0mLDEiFjEx5be4q11UXKUCw\nOh+Qay6lz3y2vqtJ+PuZS3Z0qyyHfYdXUM7MaMDw36MBZDLv5CMHd5uSIbNP\nFmfZhtc4Xjlzt26AdbaYmF/1N7UFYYjQPqWFttVA8FmY4ySWMqXHw7hoCaFv\ns1YAQckUlB1jgUgJ5bdIcMYrui0bdueyJqq6HCkDcOgY1C+pQlxRGAuJOdbv\nNSPDVMyZJW6ZjHzLrTXyloIIIiAPDysv4NdHveV8zvclii2e8lusGtUHS0bd\nsviW2c2LDrJUCySpLC0mqky/W8G0nLZsRQljilQCiNPHqIykUt53RKhA082a\nPJ5tq0nXRGIzZ7q45hzkxjOYjG9fVHv/r3iqxMCw2aRDnLYv2V7k8mI2WF4j\nrTPm8MrI4wALacJLXbEo/wumwxSY94oshpqUOnOg3jXEFY83Dtu9HxrXYEys\nI204W6pTMJexdfMAQaWn+QIyj6TP6+2RvnaSyZnNKLdskIPn83r466NGuPTd\n4LWtiSAtCyV3RGhI0CmP6NI2GqJvThrasoLUY6KuzKSt6IGLeDe8Bctok95G\nl2ro\r\n=/s4K\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b417a722353dd60a63448761d24a06d325b83f7c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.9f9aac825.0","@material/base":"8.0.0-canary.9f9aac825.0","@material/shape":"8.0.0-canary.9f9aac825.0","@material/theme":"8.0.0-canary.9f9aac825.0","@material/ripple":"8.0.0-canary.9f9aac825.0","@material/animation":"8.0.0-canary.9f9aac825.0","@material/elevation":"8.0.0-canary.9f9aac825.0","@material/typography":"8.0.0-canary.9f9aac825.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.9f9aac825.0_1596833531816_0.7541088374230527","host":"s3://npm-registry-packages"}},"8.0.0-canary.fc65fd00b.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.fc65fd00b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.fc65fd00b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0704e251d11c14c3f9162e54e0d14392fe0b6813","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.fc65fd00b.0.tgz","fileCount":45,"integrity":"sha512-LEYq0QHJk43dVNxuyKy8uqR1YA4ttYYtrK4IxoCxRYtaqicaV44N67GmdZXkE/n4y/cJihm+WXNi20R5DmnvNw==","signatures":[{"sig":"MEUCIQClsDI7yPar/9sUN77/g9SQ5y7hHQ7KecvY/nsw/HwrswIgbbw6c9veV1jBPDqJ+2Bsa/EkPyCtv5+9nIae1UrUJqE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMWYMCRA9TVsSAnZWagAAF0AP/29EVzY3BGmGvHCTuQM9\nMFfMdbdZkGAmXaRbXU2F7sOn+cvYgMPoiq8CdSCatWy8KtPl1HTJz4ZO9Cfs\nbIVU5LNJ1/K8i9gVlZpGIL/5UpA6f7njennbMfJciJ0BtSaftJa8/nCgGPA6\nqOnZfy/DBKui7yVNsvZ46Epmz5JhDDowI5tb4NUG/EbnkkYgtb004qDzVBIc\n/g10WZF7tIxjD73hEINivZDZWn0aMeKSgalnrcWX4NMD1T1N0l60UW7HR5rm\ntVbip28386o9IMIW0yYoNfi577agzzCSCHEfnwyPsKH8c9Hn3s51wqDVQr96\nNsYgvznJzu8bXozZ0ZD1zdi20UlkLQ/siGik07xfAXZ/K9fv6PRPHjnqfde0\nx41TNIqFXOa9BSslLNmOXmuTDjirNjmGTY/o1K5CAkY12CKwmSbWYosKSjGV\nQYfbnCAMus5Fa/xwqZpNEd/zkYMS+LKnXARADwli3JuQOCL+mEyp/kUJogtc\n2mqjVcF/CbyJZFGTZu0P8CVKpW6JFijAaWK8mHpiPG4e6ws57I8J/YlyNUvq\ntvwv5F/Q9/OoRMVWjeoI+TxnLaMG6RK+zkYAo5QqAyvao+xREBvRGo7kH7Z+\nRR0p5pE4ZecIOC0ToRMBApY+1p5P6mAjmACFsjAXES/hP7jHKZEC7BM1Xc8s\n4hTX\r\n=nmBb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fa39d9d1e753796086537bc71b6fa2d2aa21a3c5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.fc65fd00b.0","@material/base":"8.0.0-canary.fc65fd00b.0","@material/shape":"8.0.0-canary.fc65fd00b.0","@material/theme":"8.0.0-canary.fc65fd00b.0","@material/ripple":"8.0.0-canary.fc65fd00b.0","@material/animation":"8.0.0-canary.fc65fd00b.0","@material/elevation":"8.0.0-canary.fc65fd00b.0","@material/typography":"8.0.0-canary.fc65fd00b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.fc65fd00b.0_1597072908518_0.42292237938668187","host":"s3://npm-registry-packages"}},"8.0.0-canary.02e372c5f.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.02e372c5f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.02e372c5f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"94c6bb1bdfe43bbdaa918172a930aa08739c45dd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.02e372c5f.0.tgz","fileCount":45,"integrity":"sha512-7EJefWtTOVKf2Se974XtBS2qjMLowL8gkjOGou5tfcM1Fa8TF9yepB0FM28j0Deq03g0TznTs1a5FWs1aFojvg==","signatures":[{"sig":"MEUCIQCFe6x50d6w7i6Jc9I3QHfGzDDQTVFdxcp9Xmt8q743YwIgXwsVlKY4QcWqHSCb1GmXd92CYedWZBIKx9Grx3+HkLs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMWyRCRA9TVsSAnZWagAACE0P/1TbFwI8g/IUGyTVJH59\nKyq0svIla8+GWTcZ0V1JbZ/DXxceJlCm46Or/eRkXYu2T0RZIl2CZr57+PRH\nhI9g/jUfTxpmQ7BORRLj+0iDsZka19m+JKDAm0OlY2F6arEr/y1MFyRdS/hS\ncRN9UKbVlEnLsh/LBDfH/ORlDoUskCWA7WCW4Hppg7E10LSQ4L9Y/6x+ehgx\nqvLiOAdGUIcFnF9qw+XPKfdmp0wURLtkNnADU3CxUAgfNu4Qx9iYzqPru1wW\nLp5og9wQmz59v66ZZNOMLorM2pcjaSLYIqx3l0/wvkqiwJf9N4Wc5AQQjOsV\nVjmTMHaruH88q2q46vtd6f8mOCtycZm153P8PM0g3KMy4OLaniMqgAVAG9Sy\nBKQmQcXcmREgPrNvwNeY8N6ixqi7eAo8sj1bPI9Q1ChvkXZkGTmGnjzKnC2l\nfKmDP36uo/dSyK7iWgNANSoY1CB+TnSTSUqP/lvKi+wXMIK+AeNxsBLpUYdi\nRuBYrmBxeE4Y+UtyIf2XyFtFULL3ZNKHdc/QiJxIWDXHLcENr8qABuFNXIi8\nenL4WVXhBEtFNklMkl9uW4hS7u1sH2JREZRfQ1VuUO4IB2YlHM7IoTWqkWBO\nk9HGitrz94Z+JFm2BlzyzAq2DRQ6N0UoTM/cPomQftGAHOUtNIu14uSwUpyO\nPu8Y\r\n=yVLO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b765f8699fe12742bc2032a8df7cc23807ec94b9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.02e372c5f.0","@material/base":"8.0.0-canary.02e372c5f.0","@material/shape":"8.0.0-canary.02e372c5f.0","@material/theme":"8.0.0-canary.02e372c5f.0","@material/ripple":"8.0.0-canary.02e372c5f.0","@material/animation":"8.0.0-canary.02e372c5f.0","@material/elevation":"8.0.0-canary.02e372c5f.0","@material/typography":"8.0.0-canary.02e372c5f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.02e372c5f.0_1597074577083_0.5300085980563969","host":"s3://npm-registry-packages"}},"8.0.0-canary.66669e3b6.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.66669e3b6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.66669e3b6.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d65b344e086466c3d163e58a1a28904332dde8f6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.66669e3b6.0.tgz","fileCount":45,"integrity":"sha512-vp1hlm+KNHYD+qq5rWJjUU3OIEHSa/CUhAftG+UCqLYiUe6SFVWrKvUQoiqfnPY3FmuvYn0qitEbmyZpaTmbag==","signatures":[{"sig":"MEQCIAkTdKFUPevH6FEL+BTBgMUFHLcAeSOwCpKk3x+Kw8VKAiAWds4jsxcydCTUqsahA8MTgTFMHCPfBTG35Iu1plchJg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMW14CRA9TVsSAnZWagAAwr4QAJSvJi4aKEidI/lofFbq\nA8NkkT+WwEiKs8uL7DbapMTKgNHPxMfeoE6WsUHy+BcRj7pqFqzlv96LXWYK\nPJWnZjd4McyQcFZNxp49JWjq6AzZO2/Noks8prAFUy/tPoBPL463TEAzx3CA\nphxDYd7++LZK2yVcwSnJrea0/D23XeYwgyC2p0u/gT5Q2FtSvDaPeoplaV1k\nrPhayemrl9hq7kq6d439Yj2FSvPef9knrQVEYKr3Zfn/Ojiy+rGMu5fQUtM7\nkdtJF0yLIN/mUj+3KvPCXqCdzhc8MupQo0YgFWF/cvXtSFDnEFrarO2xdlx6\nBk/JM5cCtNzeKwykZ7cm7OdxwJuSP2h6ls23eloQXJtOl+c+/QnSUn8zyo6x\ncEkrqvd+M0s+DgMbaqitPrzurXmLttq8ra7UR76Z8QVzYjBGYyCediUkB9lP\n4qpIGChOXCrheDWuFwbqM3HdjiooO5j7/Bw2pSkgPJGHF4C2Rwo4Z80346jA\nP/AAMAyK/D5GW/VjuAvhNsASifvuYPOiYGwKur7MCmcOWvPWPDlxLbWgNnrz\n3pYSBt2jPl+i0Sgl41FmrsGT02ixUS/nYDEEZ6NVEyNVFQxC0mc8pM8ln9yM\n2hwLU+Cj581fRAiEYlG8cYiv+f21mDCaNICpYJT65YBETh07M1rv53uaQIS8\nwYf4\r\n=66Us\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"96a6a7d492075777ad5f7692328b3bd50153bd16","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.66669e3b6.0","@material/base":"8.0.0-canary.66669e3b6.0","@material/shape":"8.0.0-canary.66669e3b6.0","@material/theme":"8.0.0-canary.66669e3b6.0","@material/ripple":"8.0.0-canary.66669e3b6.0","@material/animation":"8.0.0-canary.66669e3b6.0","@material/elevation":"8.0.0-canary.66669e3b6.0","@material/typography":"8.0.0-canary.66669e3b6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.66669e3b6.0_1597074807902_0.30425063058950474","host":"s3://npm-registry-packages"}},"8.0.0-canary.6d1ea9761.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.6d1ea9761.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.6d1ea9761.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"45e2e10957782bb7badc568e03d7c2bd3bdafe38","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.6d1ea9761.0.tgz","fileCount":45,"integrity":"sha512-dnNL91ftu8DLBZUd3Hpr8Y/l8wzeU8881rDT9tkk30GOPAS7g/VSn8BNrN98qVwXBaldG+CjAh9l5+ZOMJIQ+w==","signatures":[{"sig":"MEQCIGfknwLdDiOT69KEMUxDFdRVrHoWV4CkfnNPvOeWmOqlAiBgqA9EVQgHrI4p++mSM9JHKe3b/LwpaI59TfEc+IpfVA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081807,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMqvSCRA9TVsSAnZWagAAjnUP/j8veXIUN+7X683cIonu\nj4d2p/n4op30qO5xtjy2RR2W/omx1tn7sbJF3mIo96JY+Nx6oSOmMgkq4xOe\nYWCxxctPJVXE0khP2op3GwqmWo3pGj1yCEtkaa/5uNi6+vr42gZaBxDJnaRV\n5OsgIJc63wu32SIUIH+v2n38pbV7IBR+FTbzJMR0mUh+reJwvb/rwTt/ou1A\n7frkczNJBQq1lADYhAnvjHZ94GZvelRwyhjnRt/BnPdOCgDg7wOd44GXrg8O\nALYCDjDkbxItiZDB8jTV/dn4VH4Ozaf/5UxyhkM/sbNNVTeCgyEbznY+maL7\nSg+77q+238gybkFIJVAI6/3wnrzVQMjpaqf6sA8E1ejBeRzEl2pRYrwXYHp9\nDuz0KGSstDVd8srEkWDcvNSZiNKmPR/aqM25PlZS2o7EwM9Sq0pPTwQKNBsK\nGux5yTNjD8ObUhVFppRFFWlrADSb4664d3t2gdRhYFwp/zco2FCNX2InVomv\nFvXaQcYGjiCX5yyUinwc7jnrtpHVAvE86pczGcxKhWGG32HZJMxZfYQJQQsu\nlqj32V2WK52KAGs6le9xWK9plRQG8EP2eFN5HkrCa/cdPMq/N6DY4ZbP1q49\nB4E6quLlqzQj6xZcXYgwtMHzBKWVPu5rF9ZEBY5mcyrXsfNkmnH+QMcai0wj\nsCl7\r\n=83UL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2539ff1cdb03aaa0365880e59b2705e6f6ff4229","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.6d1ea9761.0","@material/base":"8.0.0-canary.6d1ea9761.0","@material/shape":"8.0.0-canary.6d1ea9761.0","@material/theme":"8.0.0-canary.6d1ea9761.0","@material/ripple":"8.0.0-canary.6d1ea9761.0","@material/animation":"8.0.0-canary.6d1ea9761.0","@material/elevation":"8.0.0-canary.6d1ea9761.0","@material/typography":"8.0.0-canary.6d1ea9761.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.6d1ea9761.0_1597156305809_0.018944196768863275","host":"s3://npm-registry-packages"}},"8.0.0-canary.79414bf9f.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.79414bf9f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.79414bf9f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2c82f8ab707562f49149b48c2f06c53efd2d6a94","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.79414bf9f.0.tgz","fileCount":45,"integrity":"sha512-qyIWx/JGOG4Wk7bmKuw6T/AGUQlO3eh7JAE82OBvxA6MKO3yzAsLwJaz+tpXHwKuQrGlFxh95SWTU50PUO7WuQ==","signatures":[{"sig":"MEUCIQCkIPC/cQrWC0A5zKtxmVFpz+KKCjE4hvIDIn+D2RDPZwIgeY6FuS5n9hDp2ny1F6hCZU0Ivx2f289a1frfFlK/5sk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1083448,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMuteCRA9TVsSAnZWagAApcsP/RtMMZAun36Gb9RpCPKc\nqRjQxccF5Gm1iHX/hxaU9TILMwXwVGCNXai2saXbJPtiJArIWp4i8ryjtUxz\nv0V/FVpS/werxReCUGsaGKa/Q4ETydpE8lKIlZXMvr8lyfyoJtznB/69UCvY\nYg+1wdbrc8+3RQn+O5gUIKokVRK+eEKsJIgHmU9kXhrkU6mM+KcNeP8OEf6i\n8z72KituMVIZWpR+kS3RP3/079ht5foo9q28CXlsW8TGDtER8ho0NnqgET3H\n0INQ1Olsb3UrgTFvn9//ll9IIUXFZKuO3nC4tT1tKvUb/uWsvi8p+HGtwPrf\nTQ1RBB3EZDXyz6av9V+l5OZV205HNaMmDYRHjAdu11/eAScAqut5BHC3C4F7\nAIiRrBtPXS/k8VvHa7qTy9krfelyjXioe4qLjiOmoPmbSxCya+T/PdqxGgXD\n944C3um7pLry6FJGOEjbhMhbgZSELu3/vpQfVt1/ri+WftQiyfQiBoTnrUky\nEaE7gsLDgpSzlAYMDNfYXQLNaj2B1DGUrrSxW8403/zvWAVyXr20Or5IdqDF\n13IVjI4SaYcgDU5Zpcx5WY8022xa7jIfAieGotpDNxXnmVFJMfl06vk6UJsV\nWth3UZbs7Z1zdUTViOSCbFigUJ2h58McKDfV+nAOPsQGNEgI8Xja6Cs9f53v\n9IlC\r\n=rXU9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3101c6ef84c1ef8d9afdb44b6b6b3067c2f5723c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.79414bf9f.0","@material/base":"8.0.0-canary.79414bf9f.0","@material/shape":"8.0.0-canary.79414bf9f.0","@material/theme":"8.0.0-canary.79414bf9f.0","@material/ripple":"8.0.0-canary.79414bf9f.0","@material/animation":"8.0.0-canary.79414bf9f.0","@material/elevation":"8.0.0-canary.79414bf9f.0","@material/typography":"8.0.0-canary.79414bf9f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.79414bf9f.0_1597172573604_0.645401754656405","host":"s3://npm-registry-packages"}},"8.0.0-canary.85a5272df.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.85a5272df.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.85a5272df.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d27db8e2fd1faf15da77bfe111455f1cda8380e6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.85a5272df.0.tgz","fileCount":45,"integrity":"sha512-81xePtcLxsiklq29onMCgQuYWx8Ve6XiQkzdtQPVwh1PUt+GkzonBrvoePG/LI/6FS1oYEUZuPPRAGLRvZFYsA==","signatures":[{"sig":"MEQCIGFmg94hoBY4HJaZZ6DdpDPCy9rALRD9oT8p9qRkP40NAiBG2DS1x1AKcRw8vy53xzDcfpj99g371wNHWWRgt9gzIA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMvrfCRA9TVsSAnZWagAA/3QP/iH4s+b2ZDQRHK6qv18d\nD0NrBdXvB6/JgsfkOruSnMu7lCRgsCBiuqaobkYVdDKZ44PgtiJZD2KNyl5c\nX5k3+WFW8VyN8TtvPQwgqnHexm1jURnk3Rx4oO7y3tJkJSkTNM4Qu4BjSi42\nrqnR8G8e/wMjv1GvLQOU0S5gmzTB1CgBDc/A12WTc7oqc4GVnJzd4sSNFy3K\nISBGN4i1RRsACZaH00PDbePXlZp2SJGOU25rYEXMynkIaCxiGKsPIHa9BUl8\nU5kp0Ngy2OtQAaoUYEjMdF7y2/3TMw/w4QOhE2kPM6X68qqfG/czqUo9o31f\nQJ0FaCNQETumvbtXeq4/Z6SFpmRy0kA5hg/96AY21EIXkKWsZjrw345cDQ3R\nd+/tBLGQRT/sc2uwpJGDlJMv9Lqc8w7tiJUqDeU+c/FTEvAfJOUAJDHHsGL7\nY5igcC12e9EPw68TfB7M1YJTha7pr1pfxFTjwE1c1ta1oNU6Zd9XXTXCHTid\nJdLTnpFKcgOlRsttkToDVu+jxfEaMVhJZRzMHrFsA6dzNsmS6Lygp0dbn6yN\nqFwyYOns5byDjMrohCZpF1QWuYVT18tuomD7gup7Pa+WqtgJXt7fLjDhZ9f6\nKAdQnIgPrJM/4xLdXfgv6J2Of1pWywPzHubT+HCANzNOfp50Ub0ho3ggTnHH\nJQMl\r\n=7niV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"070016d39c8d62feb1148d71182053d37bc35fc6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.85a5272df.0","@material/base":"8.0.0-canary.85a5272df.0","@material/shape":"8.0.0-canary.85a5272df.0","@material/theme":"8.0.0-canary.85a5272df.0","@material/ripple":"8.0.0-canary.85a5272df.0","@material/animation":"8.0.0-canary.85a5272df.0","@material/elevation":"8.0.0-canary.85a5272df.0","@material/typography":"8.0.0-canary.85a5272df.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.85a5272df.0_1597176543310_0.2989536942289144","host":"s3://npm-registry-packages"}},"8.0.0-canary.fda053eb8.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.fda053eb8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.fda053eb8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"abad0956708ed7f367c5d21ccf4257691d63aff1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.fda053eb8.0.tgz","fileCount":45,"integrity":"sha512-KOgirw92jdhVnEk6C/M9tc6kBks9nUtuHr8A3laqgLsc/CYdCrnw2bb4bDZ8jMS1tIT2ygrEGJWyfEIzp+Hytw==","signatures":[{"sig":"MEUCIQDfaWNX2261tn9pkO3ExKADRRyqfFCIFJO0eQIl8vqhcQIgHL8s0mAXalSVIApHfb4+tXQ3czFcA27BUKK6P5y5cSs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNEtvCRA9TVsSAnZWagAAWkEP/RnecyE2YUIH38vquZzc\nWKGMlCmeuZ0YXzkqe9Y5UyhIAV4wR6lpJzugqgjQ+liujLkj7yimGRUbDnQC\nMnHzIIqEbIoJzTrqIJgYTQqHZ587Zso7sjJGn1VK2XeXVnQzlFiNsuPGlHu3\nk5NkXJ36S8mgiksnksTRLwBMgXkseIpeGmkkFMb6IgcopaxrdEcSkH7TDLdS\nHGCKFzN5jdshwSBP1CVmxbZv5/bm63Qj8qfQrP4AXi4yZYg1Wiv3Pa5GT3L3\ng8Z7VL39+dTUGx6ixWTh4QvhImqOaEJDhPk2zqiK2uaVwTfCFLXa7pglY25J\n5HvFOYQOGe8JjrHrNChonw3VN37LJswo9QBP+4GnFWc9s1gxy/Aii5KnufN/\n5OCo96ee2SrlRqWFh7NHyP1alf9/eulaCxD2hl5w9cPY7xs03KrEoleBcoSJ\ndkwIjeIbG9G7TZ2uvkdZrJN+QCFjQsAM/HjIaBrF7dUzmGzvHIBTaqQXq7Mj\n0PO9shdkKm6rvw0SYkjL0mmEbmh+v8/HK4iDzChkNwxfw+Sp0121mQ06lC2m\n+Z85gJqQvoTfoVS2hak+Azo0hcEzozRyfkQ7002eL9xL6rxYHbCggjFLTJ0K\nHLRas5LqLyfVOZDgbrEsGT1isNrE7VmIcjgMlYIVfNv+wrsMQA8mH0+orw0h\ncdUd\r\n=DTmD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b92b594784940e2fbd248c33d60198f7f2e0ff71","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.fda053eb8.0","@material/base":"8.0.0-canary.fda053eb8.0","@material/shape":"8.0.0-canary.fda053eb8.0","@material/theme":"8.0.0-canary.fda053eb8.0","@material/ripple":"8.0.0-canary.fda053eb8.0","@material/animation":"8.0.0-canary.fda053eb8.0","@material/elevation":"8.0.0-canary.fda053eb8.0","@material/typography":"8.0.0-canary.fda053eb8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.fda053eb8.0_1597262703452_0.7539857355705966","host":"s3://npm-registry-packages"}},"8.0.0-canary.760873445.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.760873445.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.760873445.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e0216651cf707ab4efc77ef65d13a5afc56e1814","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.760873445.0.tgz","fileCount":45,"integrity":"sha512-ZHbFSNhOhA8nIuAgcKMB5217nAjBLJVPR2KrO7i7dSPQ1gddW8gixvKBPRXX3bA88iBi/8bcoG38ntFzZ9kmlw==","signatures":[{"sig":"MEUCIQCEDxisAoJ6CpdkJAQzzdsOe0Hrg4vXkXgQVkgm2pQ1qwIgNVHE57VxwyRypXOxvV74sl2hMikcdxodR6/u0L8bjeE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNGKmCRA9TVsSAnZWagAAmu4P/R44fLfCbQ7cMc45fRdr\n8jcx45NfeNX3fIzHdJReyZ9FSrzYIbX48PtnKCnfysu/eLsefN0aeYPGF2YX\nzuKcFy1gk3KKLS/WYrLym7mLGQApkClcNCqmY2M5bgU6tsfpAPuGlpJHhrUl\nOWc+ScozvpAJLfJIm4q6Wy7qJka45XC3HwcRWjDxmJelzMlimzgMGQzFxwTz\nS84ljytrinilgL17bp5ov9ExFUTmDbt2AkRnYfamvN4M83FcCnks3P3OVHWM\nQw4ICrNHMVeZaQEjxP5AA3OdNqL2fSZf/iQeiSqv2PAt5FeiwT5cens5qiX7\nACufy2mOsKD0vPJkTGodKhAts+sNJxr9rONgiWtjYcIhPNS94EA5QnYnk7C0\nthKIpWZxfSJzjj07HDoOUZfx1oR09dfXw/r4nloQtIs2e+1WV+/SFjaW7O15\nQbRrtUhG2WZw+a5RPzYjWdVZgunlb4r5VKfQMBi5UH4s5gU02lTh5y6yxKkc\nn/KDp9dknOTdGTTqb0UPiv4ll+k2aPqSdIGhNqiNIgrUK7CHTFnz771sYAbU\nhGxI89hmP+QccdJpX4zkxfAVzLj/BKyXEPMb1Zq5sqHamQ0+pOsbYGXHOCY/\n20MLTCTMAMWASZlFKVwtYO0E+ef5+FdYGh455wOw9pDAxq8RzTALbqY+CApG\n0NEj\r\n=fUTY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a830629b92051950e9e15bdd288ad87238b7103e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.760873445.0","@material/base":"8.0.0-canary.760873445.0","@material/shape":"8.0.0-canary.760873445.0","@material/theme":"8.0.0-canary.760873445.0","@material/ripple":"8.0.0-canary.760873445.0","@material/animation":"8.0.0-canary.760873445.0","@material/elevation":"8.0.0-canary.760873445.0","@material/typography":"8.0.0-canary.760873445.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.760873445.0_1597268645630_0.6028519983845879","host":"s3://npm-registry-packages"}},"8.0.0-canary.2f4711a30.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.2f4711a30.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.2f4711a30.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5dca8e4a08472ca81ba99c5a3e9508a4ece35270","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.2f4711a30.0.tgz","fileCount":45,"integrity":"sha512-BoAvDKC28iiVnqaKxeqo4o4f2hDYvskVM4RPzTwwuJpGaEkPTtYyCHmExeEdPvcHLIR7hXT6qzAr9rLNeBa+xA==","signatures":[{"sig":"MEUCID6armsj2sb5JP6CsT09NLOivSOJYZhPy752WYZZ+gFmAiEA+YkdNL5akz6Ob8nmfi7gVk683Hm9qaMrisEB8kB5qXo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNGT/CRA9TVsSAnZWagAASUAP/R2MswE97Modaw6t4XNO\n7nkNJ2eL1+a6RZMdky+zsPK+q/4wmapOBKYqt6bIDJ3q3cpZ0lZXgrn8Pe98\n61FhV+aLUKh9LL1TvbZi3y0QHWjD6rREredyMEiA1umGbzLABK+JWpbSYF/C\nTD9ag61ZYPNuzALjT7RJEl1CxP7R/ra8p6faj/8pjAQKXSVnUjMGX91D4enH\ndgnjY34bQA1kwNPotfdxbFCY0v37ETytGERhz1kAmwoi7dHi4vfQv5Jn6drk\n3ApMgpQMcUOvRlWqSyCRCtHAfmBNZa2ceX5EGB7nPLJD0Vh41+C4zVuF6D7b\nfKAhmPk8FLS7zSbNLaihEgodvp40OoLs1//rVENzFte18bvEHmaEVBkrRLzT\nWZWbbL6OnSnvf9vCrIKAd/o4EhASw7BN7qK2FxyG3EfXX9ZvujfiyrlIAOBg\nVdfK8ktyjQk+SswitPXbJQEYFaiPsS21i8UTPpKGsPcPZPn7ZWtFzwgBGk3e\nzmiYZSPxuBYluB7iXiVu5rZiepEYnLSgLKUcvQy7wB1RuMIsCYzVo4AEUjJC\n6AS1/te9DeLFNdjeBVb2mF1abTh0l1A/NtsD4eFm2CPMO/MwDyAYRY7NaT9E\nUe5pF7UIB88zZzK3CRlpuF31GHtBr5e/FPJsyTCLe4r4hxxeAstrHTybmIUT\nLoyk\r\n=19vJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1347e5c15ba848f3525dcbd08fd0b11061e94116","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.2f4711a30.0","@material/base":"8.0.0-canary.2f4711a30.0","@material/shape":"8.0.0-canary.2f4711a30.0","@material/theme":"8.0.0-canary.2f4711a30.0","@material/ripple":"8.0.0-canary.2f4711a30.0","@material/animation":"8.0.0-canary.2f4711a30.0","@material/elevation":"8.0.0-canary.2f4711a30.0","@material/typography":"8.0.0-canary.2f4711a30.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.2f4711a30.0_1597269247316_0.6189369169232013","host":"s3://npm-registry-packages"}},"8.0.0-canary.2d72f3659.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.2d72f3659.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.2d72f3659.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cb654e856cd0bceee4ad7846c34c3b32b52d1296","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.2d72f3659.0.tgz","fileCount":45,"integrity":"sha512-JQ7Rp6Y/Dkkatc14OP9mF/DXVSkV4z9fcegtO6R0sWld3hRF+sRKthdwcJdCLJuVeTPXCaxeOSBlIM6A91vz2A==","signatures":[{"sig":"MEUCIQD8MDhvYfRqheYz9J9QOdpdL3R5O3WtoqK472kNfIGViwIgYsR1jScUFkVPmg3wECHpSZxGpxYMCFZv9zpDFUKUs0w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNGbFCRA9TVsSAnZWagAAkQ0P/0J5L3TqefSNeGkqPMJq\nglqs4WdErmM7wrEdt/EO6od/kFJNmzTAC+Ai8iQYEzOORKgwaptyhBCD5ecW\nRJrxv0fmfkGokKTpli1T5dkF6iMQ7DtRtvbAu0f6K7fc09FGZIh7djIssMe+\n+G1LanEq2vR98VY2vozbTkXeoXEucJAVXD9+2j5Bo5D2Eujq+sAACdDDHTdG\n2Zy+risLkY4gfUww5Dr6QNxAHj710M6EgUQ0og1BEEB4CGXo2tPGe7hoxbRT\nZcv3RNMf1irWgR22HLwi/XtLmDXabSuLSR919jWDvQeziFfUJZeEm05aA1Tu\nIaX0Da4x7NqopWXy4BzncBAG7H2p8br9fONStKi2buOubMonUjf7cwOVuX1u\nI62/iG+MpOmGXMrQvd2UR7NACVYP0FUTeJwDOo1Zv2qjaYuE46vMtvDHWq46\nq+ioaRrtxks+kpgxrcVtwNanGqfD6WZtJcG3RsIFUrO6pNBpudLu37DKjw5m\nbrGuHtur8BttKTikTZ5HKPKttpgaHWUx3IHCkYUsBDmbBPRvh5FAx39WP5GZ\nLO+1sCH/n3NBSuyFlDAFMIyqdIPB9SATcjtDYZ07zbGGdIzOFFjMXcXqQNID\nZgrpvy0O4hso4AtxsWMoT/itcJUVKU29IAVnvdoJnJHPIOueMuSChuSY/ZBh\nMOSd\r\n=nmXn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"de40c24a4d850a3bd4269dcebba821d972e01c19","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.2d72f3659.0","@material/base":"8.0.0-canary.2d72f3659.0","@material/shape":"8.0.0-canary.2d72f3659.0","@material/theme":"8.0.0-canary.2d72f3659.0","@material/ripple":"8.0.0-canary.2d72f3659.0","@material/animation":"8.0.0-canary.2d72f3659.0","@material/elevation":"8.0.0-canary.2d72f3659.0","@material/typography":"8.0.0-canary.2d72f3659.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.2d72f3659.0_1597269701341_0.40322114437683143","host":"s3://npm-registry-packages"}},"8.0.0-canary.1fee70a5e.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.1fee70a5e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.1fee70a5e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e82a2d49d782ea359761ef3df28f460c0509f78e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.1fee70a5e.0.tgz","fileCount":45,"integrity":"sha512-GfphvYanaPDS/GRTY+oQitJXuKWBosKanYw3M4s0FQjK0rMdIHlkzxkkvOdsh52XNPBiqSQp/SeOe3WQDLo9ig==","signatures":[{"sig":"MEUCIQCI4w90BrU+pgEWln5/wFUp6Lqkl4fNJKJBt1NDWLm9JgIgSX+IyD3QAbKJlNjXz5a0WKN43UKu8MjSbNR7zgkZFlA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNHtcCRA9TVsSAnZWagAARH0P/2pjJvCxgkrsrGt67NKd\nfp3s/obPKskUvBDFzpvQTmco+T6C4uPzaNLBQOwK7KVTaPdCEc7LHve5kVhW\nrc1IyzjLvXSa87zJOaHf7tFgpXPgq3eO6uGK/tKsIfPT/nT+Iu86ggOFar7U\nIB5Xo4VxtonsOWaQ7maoooXb+Y5L58AU6RJYrjbxre5BGW+kl/exWHiLmlgR\ng7yiCU1EkAI5bDAS5ghBvMwtRXGgm5t0gU7m44Rm17JE90wcsxCwZGrvphiT\nrIdt2TH+LGRt56a094f+KKgkbhfyjK+kl6238N1n8olQPKYZAw36PoriNRAO\nXQqGrNuzYa5E97iqAroHQxdT7pevXWvQH3zYiRkQrcn5+XlniZvpSe47BCeD\nMYD+ahInTpXR7x3AwHn/3Em6QnMDb2wVaoLV+tIEXiN3KU6L7VnxAMrLSpja\naEc7QqKtoB9M09VN/pbX/KhjyJs8upoI3tNsnkF0cnR5PncjBlm88HvpUV5N\n/y2tCHWQF+23cFskt//MgdevbkdH53xiPvyhoqNteKYo1G/zL4N3R2fvIYyX\n3Ng2SlxhpZ9BWB1Da/rJ7U394lJEQjMojahDniaaXpnkmltPicTFRm6YMOeI\n66NhEoiPCuFDrVzw9REhcsfO3yhj0hJTavmtGgHq7X3lu5anhhD22h94sueO\npbNg\r\n=KFYp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2e5eed4b73395e9cae47d93ed6f34f0dc0467c28","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.1fee70a5e.0","@material/base":"8.0.0-canary.1fee70a5e.0","@material/shape":"8.0.0-canary.1fee70a5e.0","@material/theme":"8.0.0-canary.1fee70a5e.0","@material/ripple":"8.0.0-canary.1fee70a5e.0","@material/animation":"8.0.0-canary.1fee70a5e.0","@material/elevation":"8.0.0-canary.1fee70a5e.0","@material/typography":"8.0.0-canary.1fee70a5e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.1fee70a5e.0_1597274971455_0.25551632851153494","host":"s3://npm-registry-packages"}},"8.0.0-canary.023f3fa34.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.023f3fa34.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.023f3fa34.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"86349b8e18e80c0db47a4cd0bebfadaea445d7ed","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.023f3fa34.0.tgz","fileCount":45,"integrity":"sha512-YaeD3YyNUUfL/Bk4rXIoctoLh75Lae2FJsvYACVp2fKPCWSb9T3kpOC9YyvBVVC6321YDIvNaB26LpF6Qe4/BQ==","signatures":[{"sig":"MEUCIGeb/DPLEDLNPUdc7oTEeu0vm8qWeHR7ptpZ7ujEl5TMAiEA7uFPKh7G0pdg7GrGvY7pVw9Dlf+2JVZFoUsvyqzOq8A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNJOsCRA9TVsSAnZWagAAY/cP/2dEivTfbdSUzrMaHcbT\nW9ROEUPQwhyQz0Jimb+dnuR0HrxH+moycKRIStfHlL8ZB/W6cYpHcliEBxVS\ndcHKQsxVE5uSrT9gGKkQN1ZCsMUn+MYeXwoOTnW6y0LSVMOV5EkhpiHSDwkQ\n4z+l3SuK6oSTWwAJ0wZWt/DaJoT/T50UhF0kZafe4Y3fO+fv0RmMRWioOaCN\najLdtC4RE6IRpOVuPRE/FrLXlMRuNIbgRZXKtc+a5m0YI2sL1XAiIuzwPI80\ndwp0RmMM4YadreOCj+mDfewxiOahn1VW/OyE8ZWSb5sr6TYJwZpB8nVgEWUN\npncpmRnk3eQbJCYRKg32sGdPzsVWFpfw50pz1BZBeNpeYq9VN2U3Jwp9vBHf\nySaDSKpcZLmtL1G12/hqFq5neh/fQKiSGECE1TORGhrc7X30jP5pzB1O7+Ap\nmYEgUnsin0OHYqMITRKsYJe/KfJt0h/ErPhNI/z9uY1gEzOzvzycW+G1hRFu\n/l9sZiA5xM9A581HoQpBc8Ifr99e1NHzZ/75OnCDohvSC1Vz0kvR+fAmRQ6L\nof/luvLzUrjaYU0pbLS7uoyHPO+A7cI93kP7/Df2sUsNJQsVCn9vLPCpnaUW\nimOKk7aYDSu93vJlRv4iE8MS2YADVuRuslxkTkrGCIcuhO7Wykm8jgvT0Lkm\n2FMR\r\n=UnvH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1a6538d0b407fd8e7a7de8e39b4ed51bcefc560c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.023f3fa34.0","@material/base":"8.0.0-canary.023f3fa34.0","@material/shape":"8.0.0-canary.023f3fa34.0","@material/theme":"8.0.0-canary.023f3fa34.0","@material/ripple":"8.0.0-canary.023f3fa34.0","@material/animation":"8.0.0-canary.023f3fa34.0","@material/elevation":"8.0.0-canary.023f3fa34.0","@material/typography":"8.0.0-canary.023f3fa34.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.023f3fa34.0_1597281196422_0.8463304999212011","host":"s3://npm-registry-packages"}},"8.0.0-canary.80f3a9e5d.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.80f3a9e5d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.80f3a9e5d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"45fee8e93d16503f4ce0f3bde62ffb008c76c4b6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.80f3a9e5d.0.tgz","fileCount":45,"integrity":"sha512-7S6oznG5sq1PK5VImHLOlTZdLi4BJqw5YE2IIOBQrz6ZKrf+nKYOfYO6R2FDcQudLL2ZON+jhAcAK4vocD7iNw==","signatures":[{"sig":"MEUCIQDvS3t8pCJZAVr4+CSEdCnHQUZ0LuGcCpYSVdUEJDx+VQIgF0z4ZRQ7Eht8RW0PDaOkbTH/6hpCxE/yMbxYGD2kx7I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNJeYCRA9TVsSAnZWagAAn3MP/jPk/QdygnufrdZfws8L\nzlkp5iYbnAykpJa7u/y/PyapgEAxbeai3dGbFfvjwPwxKCctqPcRfF4SYKQu\nAoIGGP6TLn7fwoMMNDunXNX5R45bFKHeiHAl3UZf+FWNrodm5G7QPpz9EA5z\nKpvHW0IB4aGfA8Ff9q1HW5rNpvORyLXu89L/vkC9Z6v2V+796jP9LXO8tq4Y\nbaaOkgJAcHUdEp9j3j//rSKNprVq+M5Pr9ZVDUWamZP4qmPWUAoHLiBMKk3h\nqWKAaewYFtDxCkMCJ92P+Pbdzvl3vx2j29B3951g1Dl3g0lE69yV6vGy6jqz\nnuNeIVfhtWO/9aoH7IlB0vmBHVSoQVOR9+FIp0IWbTFKQIU30K7JYpEilTQL\noDPPPlMpIMbQ1mdHxJfdmujocluNLWtGPEO/Uihm2lmUwBocBTa8JM1LRpak\nnOOpIFCfJUfgjVQtjGFCP9bWpaDE4xFPHFmlHrd8H5cWIikHJeqKt6djr1z4\nagq7MwuC2mHS/e27xwg2coHeg4GjF5794p/umGyvhBxEkI2RldwyhDHdKsIs\n+a54nx4GMqFLfh1UTeBO1+6gkZYOIWd/Kqph2RGA3nTZCwkNdlWK7imMayk0\nIVrt0NpkuHv+5uObKkq7STnH0fP/fsKfNwrJypY1bQkEc41oi8wp6L9gkBLV\nhZe7\r\n=J4LL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e47018f239b51581a67186dcbea3f4167f5ea3f2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.80f3a9e5d.0","@material/base":"8.0.0-canary.80f3a9e5d.0","@material/shape":"8.0.0-canary.80f3a9e5d.0","@material/theme":"8.0.0-canary.80f3a9e5d.0","@material/ripple":"8.0.0-canary.80f3a9e5d.0","@material/animation":"8.0.0-canary.80f3a9e5d.0","@material/elevation":"8.0.0-canary.80f3a9e5d.0","@material/typography":"8.0.0-canary.80f3a9e5d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.80f3a9e5d.0_1597282200347_0.46376652233033666","host":"s3://npm-registry-packages"}},"8.0.0-canary.a1dcfe97c.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.a1dcfe97c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.a1dcfe97c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"94fa828cb6e020f113938288908c6c5b6388993f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.a1dcfe97c.0.tgz","fileCount":45,"integrity":"sha512-bJ8XvQv3u5t0xSgrHKS429WYBephifwFhenG6/pexnvKAd98ffM5mBLHMrVI6ZG/bcz/U73TPGoJlntQkhTrnw==","signatures":[{"sig":"MEUCIQC7nIWqyRODu1ZKIK01ULJJsUgtYxSCx/w9vd05/aEiDAIgclsbpxFUCe94T8FeCDXItfaEJv+Yub/2CvUYeEeCnRI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNP8OCRA9TVsSAnZWagAAc5QP/RlmfIYRUcQ+fzo43w/w\n10Y4hZ+1oRKDz7RRZFvssRdONAUF4e4Z0P7IidBfXlHlmUe0YdiCL6+HX9AW\n0ZObqhYnzwWpLvwpQ84Dt7zkE6ZHpc+U8gmAdJ5slz0uhOalzNato2/SFUmJ\nJwC122MwK1pFyEckfpTt2s0s59dEt/WF/crEcTriBpZUHy4PKtVg1wsa89Rz\nxrw5ixvd9tjkQ3hOznnQcxT7b+sRf2Or+RBTillAcujyAmJ94hf8GQXby8v/\nOkMuz7GTT/9TmpLAfIttgxBBReFFB+ZQ+dXkrepdP7UzeFFA8rFAWyNnOsNW\nUSwxKCUYXVxJ8+JyXtRSeM0FWBfiwHvi3gGuW1rSUroqirlrAc/NeBuAfQF1\n/Ew5HeM58ymi98DPgzKCjb8PorNfwg/YiG0xzRUr2em0SDBu2NcP+AoOMGwb\njV87ZMVGKUpjiE+tdCTczDovlRBfdouXFYLVER5dtKonowIhNwlnXFQQYk8x\nf75TgfMVGO0wrVNbn/SDVcUll1mr/N+lH/a+yrD8VEdKZr62R91Sd/RX2LQX\ndmP4dquBf8etwXWz75XB1Ug+EqQtpgQqUljoDvQhhy84r3oEduXjeLQCSnk7\npRfQEesaNjs+KQMzf1WT34X5G7KpE8IXR8GTyB+3EXPt/ws2rKkjiLmmbhBB\nRrLg\r\n=bm/E\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8ec1483dd23463f0239974be9a65ec22a6b54715","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.a1dcfe97c.0","@material/base":"8.0.0-canary.a1dcfe97c.0","@material/shape":"8.0.0-canary.a1dcfe97c.0","@material/theme":"8.0.0-canary.a1dcfe97c.0","@material/ripple":"8.0.0-canary.a1dcfe97c.0","@material/animation":"8.0.0-canary.a1dcfe97c.0","@material/elevation":"8.0.0-canary.a1dcfe97c.0","@material/typography":"8.0.0-canary.a1dcfe97c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.a1dcfe97c.0_1597308686127_0.5962158029440656","host":"s3://npm-registry-packages"}},"8.0.0-canary.af332d5be.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.af332d5be.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.af332d5be.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e0617f274758a197a080d75b38943f3a3290ae3d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.af332d5be.0.tgz","fileCount":45,"integrity":"sha512-dFgG1/GBft16yULdIdFkXK9mYt7VVU5h6VaYNZShkC8VUK7RKyV/l1myQH7JwRxZ6sKu38o2PBM0CSR7B7M2Aw==","signatures":[{"sig":"MEYCIQCSF+kKU2f/0CQiVaUSeRVVhN+jND4FcUPMlc94xsG3IQIhAKOYFwFFCt5nFZhLg/BN085TemnSRbPi54sa0hal6m5p","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNa4hCRA9TVsSAnZWagAAg/gP/0qY1+9G11Q7QdE7RZ1M\nuUZZ4XDXoN2DZ96l33acuhheIrZ18IVdcHeHdcn5W5sr4Ezba+/T/Y/PfMW7\nkSaO+UlA6Fx/Vm1n5JoNIYlcEY92U8QwNiez95taScy8WWUOKSGbzEVF02wc\n5lvrcw/4B2l4LD+viNVDuubC9wdws0aslFP1bIeaMZ8m9bkKR30WtPTcWIxC\nD4L1HN1fSCyC+x0u7CTi5qmV/qflErzu0igRmpRpi3yaWNBZJOCfB1XVlvBX\nFjAKOKKERBN9W9P4oS6/IrD6CKYhXcgbqq74EYcQMDRIwWCMwZXhoaxOvMe+\nYAQPoY0azi5t6kraMUwT5V6Sco6A8cjN1DCPN00j7onI84XxM7Bxhq52Vk2z\nXhvcN8J+XVElkd/lNtFKJRiNr26kp9wjQzl9/ZlxZl1dca2umZc+IbesafZP\naHlSjm+0ix/2ciVMwYw+rDRy1AN4DO25J40L7DHVdJo3aHLR4P9nz2oeRTbx\n7F4RvGiD1eJHgFD5gRyTl3fND9KPBpTnADlXfwfs9qRIR97rD6FMcd6hflBx\nXuVkFz8sdnwUVDc4FvR4GwYy2IRomKQbbGdPsFHO2mRi1fqsHoPTjHji9KVS\nw7vxgxSXXQWyzWIXenL7doVBMqenRQGznJOZ1I0P8QHt0SZyDUvAArKLb/4q\nduGL\r\n=Di4c\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ecb675d071cb76738aea95a2d43ef88a134275be","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.af332d5be.0","@material/base":"8.0.0-canary.af332d5be.0","@material/shape":"8.0.0-canary.af332d5be.0","@material/theme":"8.0.0-canary.af332d5be.0","@material/ripple":"8.0.0-canary.af332d5be.0","@material/animation":"8.0.0-canary.af332d5be.0","@material/elevation":"8.0.0-canary.af332d5be.0","@material/typography":"8.0.0-canary.af332d5be.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.af332d5be.0_1597353504992_0.9871963462329667","host":"s3://npm-registry-packages"}},"8.0.0-canary.7dd4567c4.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.7dd4567c4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.7dd4567c4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"74ffc4b94bece57975796d824f5df579c0b1f04d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.7dd4567c4.0.tgz","fileCount":45,"integrity":"sha512-09fFsi3vgtKrggXlGneDsgq54RV5HHQMNHsf5xzk2+CuvrDQo2xgShjDRax6ve+KGt0ceGkKJw0gyQonQbfyEQ==","signatures":[{"sig":"MEQCIGWvm+YST9teehyZebBHlPkY3vxHgCpiGZjsJ+9mJGrvAiA7xlDQm6ZD8J6FxZzHqTYXdYy74veFFu6KjZFjaXix+A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNeAtCRA9TVsSAnZWagAAXcgQAJQjHIy3CDSFZhV4rwb8\nuXKOQFQL77nZkyhfymwK1cQwKNmmhGEqyIxHP3DSeHbKSKgpXBpj0PyiEHGL\nUFdt93yfPl4eh0y5RcCnZbSE4qPS3sLbw6Fdcy0pa/sCcSirGtlevqU6D8X9\nIHzJsZYjHfGD5BiIin9lnQFwjCBE1HEUMXUAxoAoXwv10WkP5Obiyp9a0TL1\nsyaq14+A41Sxw/O+ZlaJvZuTGb61ouqHIiWIybD9BL4EI+OWQw8PmvI6aWiZ\nR71zCL2vC9g3lyvnje6JYMAVupNddc4oakfQyk9yiNxgBrhjU1AmAhLlVQNV\nJT8NCjJF449g9sKStDwFOd+cbj1s6Nqf2bFia12/zFyc2GnSCx1fUfUjvFa2\n163bgxu32XXLDUJ676JWZzVvyAni2Ta7zirCi10V+NQzvN4RXi/ALhEAeryE\naYwnpztl1JHttgmlApsVCYdapON2hLdZ9S/PTqFbWfrf9NW6pMpyy2jxAj5x\n5ljf/JQPwEyse4qcLbg/4qyELxQFsr/wpB01Kq4LZhtOviT7ndzOcFx6Dw9T\nY0h+o7kDB+sf6d3Lar+b1st8wiUqpW6V3LMqd7SKY7/4d7yRriTwvH4DLgDM\nFoA0HlegahDqEWuMkQH/zErnb3njHcNG0dEPRA1zpCOroV1JKud1pLQOB54Y\nBEDw\r\n=d2Cq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"515ae143d426f0329f0a745e0ad35113761376e1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.7dd4567c4.0","@material/base":"8.0.0-canary.7dd4567c4.0","@material/shape":"8.0.0-canary.7dd4567c4.0","@material/theme":"8.0.0-canary.7dd4567c4.0","@material/ripple":"8.0.0-canary.7dd4567c4.0","@material/animation":"8.0.0-canary.7dd4567c4.0","@material/elevation":"8.0.0-canary.7dd4567c4.0","@material/typography":"8.0.0-canary.7dd4567c4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.7dd4567c4.0_1597366316301_0.11302548991085049","host":"s3://npm-registry-packages"}},"8.0.0-canary.ff870005a.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.ff870005a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.ff870005a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"66919f850c2e82173251dcf94dcf9c899b1416cf","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.ff870005a.0.tgz","fileCount":45,"integrity":"sha512-jj1r+b91n6KnOWS5k3gPRaOkrY7BWwtxJe3l5efNJdyL608VbIZMH5Cte/2uGqo3rOUAc8khZdBsuTc9/M50Ag==","signatures":[{"sig":"MEUCIHzx7kRp47lc9EiTXJW6HfnX+yEbz9wbIOhBOrC48LLHAiEAuhEtxl2r4sUU5uUU7H1FeDK5TufZUG+0JAR5m6HevpY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNeYQCRA9TVsSAnZWagAAWjkP/1I02W/f16lxm6Q2DV5X\nixbl3jOkkVSyfhhA/P4oOVNrTKQRurmYBkUXhfXtkAq50UGH2AFRVXy/y/4l\n9H6xVg62FMoxm6yxU7H7wjmSCJUeHng098QnKRKkGo7bm4i+FA4ns6dofqLe\nwCVOYVZEA3tIhJ6VGg0AAFFIM0omqlj0TqrBC3j196o0en5yLxMUr97p2zpv\ntqDOF0FwzfZwf14gLQu/c42dFUHYW1VZpApVJpXQRmic1kz3P+WuFLnfXRAA\nzHi7Cm8Bwi/EFLWoWkF8x++zenv//aGxeabvoL3smTrW8NdnWxlQBpSVZeN4\n9gItQiCRYWpG0K6i0/ZreQYYDOI3RUqveHCFXZU0fl84aqWKzv31Puv5Bjc/\nogqngsNFEJtfMVlfYYDVPos43cp5PvrhuPv16mtmUTpccQSxn79ebrHFNN/Q\n4po76f6ywNZ34/294sEXfMITPwHuwt+7VEHTVVMOBlOPF2/YwihqzpM9HDjH\nbtbN8z4xXqfOBTrnzo9DbpFX3SahZulfdDkCYfaE8JksGRcwlo7lsRFKW2AV\n1VCvlpexOi319YpjrkHxo74PMh7K6/vXwXJaK1RvppPl06B16SqbIJAG5CXS\n6gta2gTkglNruCVhPNBqi1k6YSp2Y1HYvsdDOZ3K6mbpwLOQ95ijLLPxu2Ce\nd+sV\r\n=HOZ+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"885c1d5e1cf217db1bcb8176917a25d6c74575a5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.ff870005a.0","@material/base":"8.0.0-canary.ff870005a.0","@material/shape":"8.0.0-canary.ff870005a.0","@material/theme":"8.0.0-canary.ff870005a.0","@material/ripple":"8.0.0-canary.ff870005a.0","@material/animation":"8.0.0-canary.ff870005a.0","@material/elevation":"8.0.0-canary.ff870005a.0","@material/typography":"8.0.0-canary.ff870005a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.ff870005a.0_1597367823780_0.024969413284240183","host":"s3://npm-registry-packages"}},"8.0.0-canary.150f427a0.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.150f427a0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.150f427a0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a95d878c82b3987d31d9960df3c7f9b97e133ade","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.150f427a0.0.tgz","fileCount":45,"integrity":"sha512-oGYpCDmxYTqNDaHTpb29VHZ0ORE0qQeU4sr/PWkSSH122P0u7UWcLvPu2dIPjUk+VRJCqhizJG9X4L14Jn41uQ==","signatures":[{"sig":"MEYCIQC/z4J+Ofi40D/nTvsRgICwUr4qG3n1JS7AOr+A8aSUggIhAOKXeSHywpWjNaDn/peVRAj8KzEr5uxvOb+7Vonx0AlA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNpIOCRA9TVsSAnZWagAACNEQAKMhksKPaZ1ncqgsNl6n\n0TQlr9vBEi0yTwDhwwTXPsI37LNH0nKDAIEqT6fBMafezYlW+4XcFYePjqrr\nOCafnWMzTKsiqJdtvGnYO1yrnBk3UUKagNJgPU4sThqJ+gO5m5CDwkFUdthv\nQNgbDw5cAcja8bw728tdd+XgcTsy0XTdF9AVHgA9/clJTFnWWfGnROzEQtB5\n+Zqk1lm7+1ze2LBW4Ok8+ZHdTmqFiX31HFYuIV+xBYmy8c0YWFy1ownG9stK\n6OWXpN2Kipc3cV+jZQXApGIMgzJsZguhiSt9HcgER9N692ZzkE1ukywexiWN\nGEm1HZuoIExSTZ21EPmVu1l7mwBJLpg/9bQaVBLnJ8/kIlL1FvBHdxJBN6+N\niz5aGUhSdf6DMdQIFU+euowpucfgmTY5cX48cUuU3ZL6LHH9lRk3SYzw/hwS\nv2LseFFthPhPm3laFvCF8Y1ymP0Xb0yO72m3Jl/akC02Xs6nmC0iKFg/jCWc\n90X4j2eCcKPIuLrlHi0wSxqbzZlemVD+83g0S3wquqVIL5TqpMDvoRJtbP27\ny86cyH/viylsBbYsIqeJYYOr1mJGqpzOitPTKvy3VTtONL08qAe0NLLtZbLt\nYS/Et6YHnIN5+2uSaZC5vfjxjZALLIkKAbufio/djjhmRZeMTRaPBtJsq2KE\nTOKI\r\n=d2hz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9250d38c39aaaa2210225133bd9fa4da3739df3e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.150f427a0.0","@material/base":"8.0.0-canary.150f427a0.0","@material/shape":"8.0.0-canary.150f427a0.0","@material/theme":"8.0.0-canary.150f427a0.0","@material/ripple":"8.0.0-canary.150f427a0.0","@material/animation":"8.0.0-canary.150f427a0.0","@material/elevation":"8.0.0-canary.150f427a0.0","@material/typography":"8.0.0-canary.150f427a0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.150f427a0.0_1597411853714_0.6096517991440054","host":"s3://npm-registry-packages"}},"8.0.0-canary.bcc58290a.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.bcc58290a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.bcc58290a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2008c3aaf23cf333b108a42f088c923e9dd2e422","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.bcc58290a.0.tgz","fileCount":45,"integrity":"sha512-QlOPs0vhdfQV5fyWstuyD8deObvW6f/MKifFGeEO7zRT+ttk4CXHjy/5ooMDR3dfEFPQb3g0HUmKFjV8Rc4aBA==","signatures":[{"sig":"MEUCIQDmjX6llYeRN7J5AIWwkjN28t5skn7W3brJ43Ld23d/kAIgLqcBwm6lIq4/if9bdS9uVreryPIxK1uNqTi1y/e+inU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNxzoCRA9TVsSAnZWagAACyAP/2BDnvr/GzbEosGeQi1/\nePmOpcS8vsPA4zeoOa2WjGRedvRmdl+C6afv9idm2Q9LlTnX6ajiEc5QTODx\npIyZisMOYPA4YIZlHuLfb4TgoCnfvjgApIjavANcDKpe0oj0pQ6Rdm31pRrM\nnAzkPMUhyFQI5AA8YU577icGoq793lQoreMMcQbpFyN7PEplOVtjUvHCj2WH\nEdY+ZJQo35byRLLhUr7/g1BWyXGGcitGz+GQDHaSyoYu/PyxR70nV+UdUWEs\nD5AppFzQB9LVyuulRhxBQS/mjoBnctuqdI5saKnNjFN9GqW2MV42DZmS/t0T\ngQrdHKDJz4clp29VQej/N75gFuBSAAM/uwy0TnUnVyckRK8E5C7tTjKsm8xI\n/dM0QAtqjUmskmDcMT1hDD3uUWWJ8p9pXtksoXuikEaf+lbvYD8XXPHh25x0\nBNFEmfl7zzIhNYUprAQvZdRG/BrR45qseuSUApOxx/BSul/26xkA43Yraw6q\nYdihplHXUs2kMf+S0uAOUh3EabLY9PzmjMmfWFBAguiPsXim6Wem3/gV8Q4X\ndnoaOtfpBSZGgVI9Hu+gfY6mSEFN2yAxpu0gKv7Am4V3gCtxUHZUrFVQyI9o\njyjQ9PKAb3DI7ykKZR1LaurbUjT0uI4LQ1Rw4OY+i/5Xvpgqr9RlokH8DDIs\nijsO\r\n=gLv1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ba12c8e781c26c6169e16b167798237b5ededb54","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.bcc58290a.0","@material/base":"8.0.0-canary.bcc58290a.0","@material/shape":"8.0.0-canary.bcc58290a.0","@material/theme":"8.0.0-canary.bcc58290a.0","@material/ripple":"8.0.0-canary.bcc58290a.0","@material/animation":"8.0.0-canary.bcc58290a.0","@material/elevation":"8.0.0-canary.bcc58290a.0","@material/typography":"8.0.0-canary.bcc58290a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.bcc58290a.0_1597447399528_0.943954196403147","host":"s3://npm-registry-packages"}},"8.0.0-canary.4f55400bb.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.4f55400bb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.4f55400bb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"57eb6c1dcd89c3785edaa9951bdb9a214c1b2475","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.4f55400bb.0.tgz","fileCount":45,"integrity":"sha512-v5t/JIJ5OVXALlNzBvkYnOLV5n/OtuCrtkdCh/+gk9dO3pQgq+mjrdfiXWyZDizpdpIPtXZgjFHilkLQtCmCBg==","signatures":[{"sig":"MEUCIQC0t6LqMmousROSDUrKIe5R54y7fKA4yViK0QY10syxLgIgPKsmaTSjlGRks09NTdDJDLQmTREsuuaXfAhiNqTip3w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOrK+CRA9TVsSAnZWagAAZkwQAKOy06711n4aLdLsOyph\nL9DtqFTM6gd40njkW2djuWtcO4EyzyMyiDzrpVqAgekF/EbDRSHl3VdSTyzk\nLqNzUAw1kJefRp4YUcrdGtev6zl60nNeP5d71vrsSAMvwzYMHArvk9Lr2yO4\nbjJ/SReo8P8qmKMTBLr1W4GTEO1YMaceN6BKTcwMQa/ImZxsKJe+vvzHzPIw\nPx1+39pIm/u0u4YyGEcnlToU7VQdlyDGMMddrd7s4wsCQ4A1L/mDOVIFk7d+\npd+bbYKSrboDH0wqgzMLXEpUTzvTjSb08tIBRUHn20nM1tGTgG81oYQ8Js5A\n8b2Fn0s7X7jBIoZQeuY84Ei2FP+NsshfBdJelleq5XBP91JX+HVyODUv6Jqz\n/JyY12O+m6msVBEpNSm2gPBy0XeYGCbcNglCKBRYUH3HHiaj009UMDgDZQhc\nboEQE7e1upt1OmiJ2QZ6iFXMlJIzbKd+GKFrU5cYpcI0+uIpnS2+fU0gcsE2\neg8nSmvUlAwfi9ROvk52kxdibnl3IiNfeZa8xGgfNOQDq2soNCn/vQColhTd\nuXusEpitsX20Cg3wvhwJZ3wuORd3n8tKgFS0H0pJervA0PuPFAearNM9lwP8\n3Q5uEFevMUK1lGrYZfwG+a0MO4Y4vG6RwBlqMlYltmnkENQe9dUsOllKBy+e\nQjor\r\n=wP0I\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a9eebd86aa2e631b994a71291827e602b842dc36","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.4f55400bb.0","@material/base":"8.0.0-canary.4f55400bb.0","@material/shape":"8.0.0-canary.4f55400bb.0","@material/theme":"8.0.0-canary.4f55400bb.0","@material/ripple":"8.0.0-canary.4f55400bb.0","@material/animation":"8.0.0-canary.4f55400bb.0","@material/elevation":"8.0.0-canary.4f55400bb.0","@material/typography":"8.0.0-canary.4f55400bb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.4f55400bb.0_1597682365403_0.09689618847250014","host":"s3://npm-registry-packages"}},"8.0.0-canary.000d64815.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.000d64815.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.000d64815.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8b85763c6e1bfa96e16a9d63ce08934f75b9e226","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.000d64815.0.tgz","fileCount":45,"integrity":"sha512-8wZH7mvdMWBZS8whoN9LaGBNDr6G2+cf+W60zGD/+QTl+n+uQzrQMxpePNqFTmgx4dgsEsKe7mXSN1mnOngaIQ==","signatures":[{"sig":"MEUCIQDRHRE3aF+jU2+OK6HX538yrpOPmh/oaARtCqXzn+Xs5wIgQlm983KuRebQ9SGJwGWTVZKP0G/hNuA3d0yzHR7rVV8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOrjICRA9TVsSAnZWagAAOMMQAJBw2FVH1Zmc4GjmLTyh\nDPxO8I7tPsRhxo+ebI9NSJCkHiYY55qXe+Mp7RNQIyjPxrWPGZy7anlKYzD/\n+VmyuiwJ4BmOmIyi/3duj6gD07iIkPuaTP88E+kDsP1I0Qt0P3FapsEc1GTs\nhnUi9ouWQdPWnPOSW++5YF4bjH6YdGoX885zSwYAKM1BkQuVOhuv40B2+6W+\nBMYexgXnUqlb17babUqcB0GvpITHj/X2F4yCcCD6x5aDBiAoBpgNpGIAJBzt\nzt/NuYPYqfXQAkfjBD+xM5ADAm2UKRvM3rZicesatURQYJyqwVJQgsB/RHJh\n5ZUsb+ldjS3esWQuLXwchaDwx98xSVyQghXqOAF9IfNW1fdt3kNXjkjeRlwF\nlGwWsuO3gJrWREJu7gIy43jXnvL623Z6nSX8txZkjAhw8Sj3WP19sQcjfaBd\ntUrbzRzYt0G1cXSqVef/tt/BZjggJYw/OWqTaQw9vD6SRe9GP12/CrKd7kAv\nnb8ppvU8VmwjhSqiIaU2VyteFhtF7mDVHCGDKoWpuNFrYhkIboXNT7CROXML\n9/dvdXbSNq5jv5Vv3aoplCWhDFP2ijFUztodHu+s1kQdJjkPJr3NE4HfTvR1\nozOC0zUGxbgkERfI6NPmVOixV2jJxS+k1xTp6WCimZKe8CHm5Oynu6eVb1+P\n+eSF\r\n=X3xA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c8a69943d64e6f468c2edeaf1fc6204d372a9fed","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.000d64815.0","@material/base":"8.0.0-canary.000d64815.0","@material/shape":"8.0.0-canary.000d64815.0","@material/theme":"8.0.0-canary.000d64815.0","@material/ripple":"8.0.0-canary.000d64815.0","@material/animation":"8.0.0-canary.000d64815.0","@material/elevation":"8.0.0-canary.000d64815.0","@material/typography":"8.0.0-canary.000d64815.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.000d64815.0_1597683911445_0.9081280680982637","host":"s3://npm-registry-packages"}},"8.0.0-canary.defa599a8.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.defa599a8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.defa599a8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"06c879a09b5b0096591039746e590c3a8c6c0bbc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.defa599a8.0.tgz","fileCount":45,"integrity":"sha512-CyS4S7drGT+qL6goSNFBe8IMYzvHK93X+pc0XufKTwlab4ysM9EZK0Vo/Kq8l3mOViDnPhM5SBvO7h3OAAsYbg==","signatures":[{"sig":"MEYCIQDz5oN8Hs/U0cZpWkqSdOHdzigpWTEladrPG6BynHWr6wIhAOch1fWsV0fDOmHU4ONMnL2uGg3lWRZSBFQPKZcbodiQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOulvCRA9TVsSAnZWagAAROMP/2XKc6loJfWfZsoz+JiM\ndeBfqGoN7t+cXU+KAsGLWbClYhh0rjfWr3sybJ0XMuOZsyZeDGZ2/PnJUYDh\nm11hevLbk5408W2zLs68zij8SgUnwtp4N6vOM2wzkSx0VyGwpVIvxcvcAWqc\n+C4l2S9eVUZZsjach9A4Ke1v8TSqrNskiTJanmEewNI8zeYtjzP/QSuJZ9tG\nGD166L2+yb7PT0UaRd/7vqfYhTRKhzRVe8DnUIm4Ai8/ZHRAMzGwN4g3e47p\n/5p1mx3LXMCwKPgU62obH09T5RFqN4232mnfLZsxtsVDB+JO2+oMe8ZKsNIb\nE4ZTx3SQmkfK87lpxL1vD/DqVA2/KLFD4+SsTNLyCa4Lf2H6pHzDk0ILfbzq\nLUZGDs1mAAvYiDgEPn2OAUUvT46ryA3Q5rsPG6y3FCebR/r/pMSTQl8/UEmb\nVa6Rli3NAc2J8dMTA6D8mfhdAbgQW9kkoQa+5ycpYq+FuucgI4zya7p+yFh2\n4+TlSI3Qc4lpeLS2EuACAhAghjqgJjO1a1wmhGgsjRT/AsYXuBkVdkq9feyq\nBsYldsXu7QL2H7/FELxgKUeXU+YuVdPJbrFBn8cYAhy3EePmuCydGBBjAAZ0\nt8u0By2qLRxjeS9pmnmC0R9O3x6mYT01ykacm0v9XP45UyU433O5cc6AKEoJ\nGdKW\r\n=0Gx9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d3ddc8cf9af988fc4a02f26feee3e4ca0184dbec","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.defa599a8.0","@material/base":"8.0.0-canary.defa599a8.0","@material/shape":"8.0.0-canary.defa599a8.0","@material/theme":"8.0.0-canary.defa599a8.0","@material/ripple":"8.0.0-canary.defa599a8.0","@material/animation":"8.0.0-canary.defa599a8.0","@material/elevation":"8.0.0-canary.defa599a8.0","@material/typography":"8.0.0-canary.defa599a8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.defa599a8.0_1597696367441_0.6679880886876928","host":"s3://npm-registry-packages"}},"8.0.0-canary.66b8ed7e6.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.66b8ed7e6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.66b8ed7e6.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ea25535b2ad07d6835e87e7f976015d1901fa4c4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.66b8ed7e6.0.tgz","fileCount":45,"integrity":"sha512-xFJmU+3i8FckaCXtXlOH/31QVSAVlTrI8sRQlJUJ8uzTXA4F1GDQGZbRvL3DWDvRjHM0yoZH00s1nNCFAtlmgg==","signatures":[{"sig":"MEYCIQDojGekIyqqYbismjuC8dM5++zOmSATIEDU892A+/sotgIhAN5AmwWLVZynpkxiLbrgIpjm2IePaBP3nZwoE5EFWvnW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPB/3CRA9TVsSAnZWagAA7QgQAJdyUlaqnCmHgaR4aHYC\nN1TLv/HjN6iobvS7aZ1bsrYhrJm30Tqp4uaMv9bqS2R3kTrwGsy3qaN59ItU\nhCF7VbZenqlHQJmtULNJHeJ2S4LhBuNxqN4hqSA+pWlpp2Urfm1VcdQni7tx\nQyJEDpsFqApdzHEWMqCwOeZX8cK98Py6aRsAze1GLY9IBqLxHoK+Lux3MPzx\nODcdpDxYyGYBAe2AGJ4CkGQpAB0BAnm28LkgCx6Qwe8/S0F4g3hDrFbqwbk1\naexMVgUqwW54UyRDbwXilpz7OItPCtMoL24VtHi+9kBD02tIE6rj042wiHuu\nRQcr2VfBSrOOZAdHcu+LEprzKCdI7e56mXB4MDuTSDclaf5TKKxON2VjbmyB\nt98iONBMR+B5uyAd1x+Ctd4qY2kR+N1QJCZsN16T13FUSZ7vUtjoYYz6J+sn\nKFy+Vj8Yov/XlvenhyVMCOydkRoXeRuE8/ay0hvzyA6wDbkNirc84Xx/UlzQ\nqekKQ9JCJFsXgeJ4lwmbZMRtzU+h19wxe+lk8HQrqyU0ORKE57ep9gu1RIRI\nVE70Q4Lo/IF2hb1vUY1x2ZUGF51gkhGDgFBC4tmK1Qr0S9DPJAPPdBRcc03l\njeIsvKTH9HXE3YMPvLpO7o0F3lGfyohEpBZVGjFQYnF8LTHewOPPWWYY0OqN\npypw\r\n=SomW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c23c9dce18363cb6806c169d5a516da2a0fcf89f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.66b8ed7e6.0","@material/base":"8.0.0-canary.66b8ed7e6.0","@material/shape":"8.0.0-canary.66b8ed7e6.0","@material/theme":"8.0.0-canary.66b8ed7e6.0","@material/ripple":"8.0.0-canary.66b8ed7e6.0","@material/animation":"8.0.0-canary.66b8ed7e6.0","@material/elevation":"8.0.0-canary.66b8ed7e6.0","@material/typography":"8.0.0-canary.66b8ed7e6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.66b8ed7e6.0_1597775863186_0.4937381589259897","host":"s3://npm-registry-packages"}},"8.0.0-canary.e2b1033df.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.e2b1033df.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.e2b1033df.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8c5b9e6141b1df11fbb4c6e5b884ab1098006bd8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.e2b1033df.0.tgz","fileCount":45,"integrity":"sha512-zy45byGcrq8Zht6d6oDis0e3822jARt6w4HRGl4pYinXnJW8lcWBuz/5bFnj6hBI+O+XlKi8va0YfuEqhk/nVA==","signatures":[{"sig":"MEUCIQCYHGr1Zbp1NGgGcU7Uvox8M/D92mrTQN5Q1d3FcFqfjQIgLdOQoNE7cfHUNnWkSLPsn7u3I52PVlKdrLUFhPiY4xE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPXK2CRA9TVsSAnZWagAAcAkP/iYjUBbn6B//KdxznDTM\nl1YvyrA4nEGBZMy380OhvIULZPh77aOpA0pf7WvKtq3qEqNupIh0X6EUsUS7\nc4K9UYEoX9m7NkEKPa9+klg4/83mUaZ3xy0L73gMGjJ948o6HZsrmdRDc7Km\nqw25o0E8YwUuVKdxRIl02gVc/hoGFApDAhiVRg6H37OqaUtWJopHhApL7fza\nQUP2hUdbT6bEfyhA4nltK3rZ/l6OIoitOnK4DF0lhbC913Jy2PAgzyaGM8PR\n5/cHl2UaOV58FZ4j8QMCq2DOuCjYqBnJLmsEbmpskF67gnDt/wV+SHUiE+jr\ncWi3hvfmIPAHSbFeWXqegnJqVPqYFNSHK44VKL0vrNfnJZLE/9jG9t/a+DGQ\nhwMcxQKrUKzm31G79EYRWWDu6X5GxwxnPQsHD8s2QuwcSgpjN+MM3oVogyAO\nmd2C8g3X97S8n1NBGm40sDBrXsdbneaOcRtCePZEwxGLAJVf0spkvzhrPQ7v\nbn9sBQrtPGh0RmNcQCz1xz8hNf3uhE/Rs4d9bnl+RpMqU8TCaNHBcYzzDQCr\nrv/tyHOzR8lXZTebHijTRcJ9pkar7cbW7fEZZQ3vfXCFaA6m9xVrcsly7Qwm\nkwxKoX/mjnhQbjqnN5PmxFlNRs59PHhN0MP9+HN0fOpmVPoT1lhvvMqCymOK\nHe3g\r\n=x/ed\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"763ba6b73959bf0639ed8d0c9656a53b18e30c1c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.e2b1033df.0","@material/base":"8.0.0-canary.e2b1033df.0","@material/shape":"8.0.0-canary.e2b1033df.0","@material/theme":"8.0.0-canary.e2b1033df.0","@material/ripple":"8.0.0-canary.e2b1033df.0","@material/animation":"8.0.0-canary.e2b1033df.0","@material/elevation":"8.0.0-canary.e2b1033df.0","@material/typography":"8.0.0-canary.e2b1033df.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.e2b1033df.0_1597862582109_0.550289378237985","host":"s3://npm-registry-packages"}},"8.0.0-canary.2e8c3dd2e.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.2e8c3dd2e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.2e8c3dd2e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"482cac774f09f4d06000b21ab01fe379b6ea96cd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.2e8c3dd2e.0.tgz","fileCount":45,"integrity":"sha512-mRwF3lfsGBU3QBrR62lEK7SA+X+W2hoHi5J513AMT2iIt/GcigESC7/XoBFlPr+EuCFo0HTSCFPCNJWU/qqb1w==","signatures":[{"sig":"MEUCIFdqKpnOw5Bal0BXosPX4uKVdgK2o1Y80FqbPxJUsj/yAiEA3Uw0r/Gj4Natop0HZR7/rxy4KF4EDcYhtX8IspNeK80=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPXyACRA9TVsSAnZWagAA9qUP/iHlfR0YzaIMJGrx9Zqn\nSFtTlGPmvykX4OMHr1enzXouSjQFnYGQdIca7pdWo10NLhcaXuCPdPRLVNDN\nCMwp08Hu4SyvJolQzx2+K6xtU2i10YNmvkyX208imlxNzr/eV/P+rKm4YS3+\n7gUPf2wht5i5EyUqRmc3EC4461bruXUiisv6X59YGdw+SVj+US4QfdrFARTz\nH/rQTIOG1vSTMnHpw49gzHoEP5jmP+aEEd0H4aV4bx1mdjPZvZIT7G63qCT3\n1zQLOv5WIj32TI7P7dX3pS/P1+tl/IqlUCk5Zo3GNDEeSWC1bZLNW8jIcy+D\nenuBOF0z8OYnJDooDBprsA4ZuMIx4pt5wwYjqsgOFrYfEtQ3Bs4whnS/vatt\nTE1Rc+hgYt3itrzkxET4gvHf+RsTb25MJOya839b7xlGhcqwd7qkqCxk/jRH\njzPhwsxEK3iNZPqHYZuwRaiJ5E/fyv743PfOia5Ibc4+3dBqE3+hitv5NpH+\nuiCKlNpXRWRuz/8xR86+ppN6v+Npe84bla8OH4FQK+4btdYUGECdAnCaABrC\nyTrOseN+hNwyd3z7ny5Y4FrKXp+tuu009vZcUXqs7wYSV8GzRYut6paWCAIT\noMkzwyf34VwhM0SxONS+tmBxa9DrZdaR8/vtrbtnx3jKCbRvxV15+hTnSTHW\nt+sN\r\n=xPU1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"237ca1e061b4efa53d623ea5dc9c9d670d5c9da0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.2e8c3dd2e.0","@material/base":"8.0.0-canary.2e8c3dd2e.0","@material/shape":"8.0.0-canary.2e8c3dd2e.0","@material/theme":"8.0.0-canary.2e8c3dd2e.0","@material/ripple":"8.0.0-canary.2e8c3dd2e.0","@material/animation":"8.0.0-canary.2e8c3dd2e.0","@material/elevation":"8.0.0-canary.2e8c3dd2e.0","@material/typography":"8.0.0-canary.2e8c3dd2e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.2e8c3dd2e.0_1597865087657_0.8273859215362185","host":"s3://npm-registry-packages"}},"8.0.0-canary.b2e80a5d9.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.b2e80a5d9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.b2e80a5d9.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f1b58d67698d7b9156f32ff10e7b9dcd603ee61f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.b2e80a5d9.0.tgz","fileCount":45,"integrity":"sha512-FwdmboGmnTIX6FTlq/6tvq0V6/rnIBPRRFjndrC2MAJqBaGHh7glKrA+yolY5KKgA/L+VMgDBIYl7oLhVWd/TA==","signatures":[{"sig":"MEYCIQDpXIuPfrvD15bNn7MeglEcUdpHN/+kJnqBLPHixN483gIhAPEkeJK2GuBKlGNCR6d1e1MH9t+lP2t72BcE3y/L+3Md","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPaYCCRA9TVsSAnZWagAAkiwQAJcCD9P5GYCORSGm8Dsr\nQzKe0KKPpKNwAUJN7lS2PcKY3hhYZnz8R/hC8hoxW8A3DoaqLAvCdHvoIbLF\nvMNxbASWGINKy94P65fgqB2zx6uzFKLOw8MgxKjohWAeszs42lwoavHGYFCy\nHpLUheFU1FagPfS2quDZm1GjLg3oYOuLPG8f3JA2UNVqUwh3wfNzHiodjHpG\nVvn8GgA7DGIimyfF53PYBS5iJIA+zGsrMOEjGkU2X34qLJyAr9O8CM9lb31+\nAqVAHq4IzmuG7aEuPMPAylbw50iSFlbhmyLghCLHLAPUlzEl/zXiPsaqT37T\nlZxcepNoNgaLb40GsMi6fDy9bG1AhaLFDUMMBhj2QigLX4up6mHHUuXirTCq\nnDWKlSdayZOYQSkHv9mo8LiTT6Pkz0ZEIrPFUHoX2juIolyyzKBN8x+W8u7u\n1U/6gcDSLrzeeTVaZOkK4+IOyfOcdsZvyEOmcTJRnYMSo5IxkfFj/Wo6Telf\n090lfhmy8MgHA5hhyRU/NDqw03+3UjkgfEj4UtnA2/LxoBe2uCCQ9lL3/eRt\nK2P4da4WXHV4SsvOi7gAQcpWM08sAAYrbQH+m/swmetQbKwlQlNhnzOK/J8O\n33wKBHNx6XzkJ7oywB3epVKJGt6xRVgDQK4WA6G3DMNKAyeM79BuwCkCnKrg\n23sp\r\n=L4qU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"84085f6b072572fb6b09623a5f0b35bb95db6fca","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.b2e80a5d9.0","@material/base":"8.0.0-canary.b2e80a5d9.0","@material/shape":"8.0.0-canary.b2e80a5d9.0","@material/theme":"8.0.0-canary.b2e80a5d9.0","@material/ripple":"8.0.0-canary.b2e80a5d9.0","@material/animation":"8.0.0-canary.b2e80a5d9.0","@material/elevation":"8.0.0-canary.b2e80a5d9.0","@material/typography":"8.0.0-canary.b2e80a5d9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.b2e80a5d9.0_1597875714331_0.8058290118777534","host":"s3://npm-registry-packages"}},"8.0.0-canary.ff88df637.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.ff88df637.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.ff88df637.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2bda512d6a1b6cfb672416081058d57796a2f59c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.ff88df637.0.tgz","fileCount":45,"integrity":"sha512-IAgaZBahNh42wjkgNpzW/z6zcsIwWYkmQqUaf1OarWGjhTHJgEGXySkm8w+oZAN96nlylyUTnUAhAsb2W+lAQg==","signatures":[{"sig":"MEUCIQDOLEAL/ccPdU0DS4FZ4U/HJeivHeNU7/53P2L6oR8dEAIgV8urKUEmuMcQmDgbKnWNp8EGUU/QcrDPEHJt/G9Zk0A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPajUCRA9TVsSAnZWagAAirEQAJLWDagjWvRoXE1LQkqI\nceDyM0Lhw2/I60wgrfHjC2NH1j3njDzzKWajRA1Km8gkJ/3HbUhZS9T51YDU\n5fGFez0pq5thKPKUKc1JJrLSPTNtK5FCz+/2tEAar57TILkr+ncllFfJFwCb\nv72h2Y2v2SusvI75M7cllvQK7ZuGDtQB/XlvEc/vYTn4L80xPC9fqnCy4Dbl\nPsFGS5HyXtqmIvLt8YintgiKdjhhvf33pZYq6Gdtkm0pZdPx2MPkwF76Qj1e\nbvyCa7Cvlm+cc6swAI0MGvNL3TjtBL4+A8laz69CrgSPynG7CjbEnueLx8no\nIQWSw58YwF72rpa6GenrG4blN7toyeIPgPgRB20a2Ra/bZu0uYJpobxfRmwT\nmRcwjiCXFJpfDHH3moCNO3YykFpdEXRVEpDTUYsB6SGsux7cmGreMcVB7nId\npZ0O9tjo9Dqz7O2fM52UtP0OojNQcLFDc9rIOeJrgqjFRvmjBFjLef+8IDXT\nqgKXWOu8ERtXlzvSgRDgVm6yj1/255/W5aRdH0ChpJOzrNvo1dLkD9QCdlbH\nAuCk6yhucMcQkCiu4CzmU48FSTD4nE9cCPlq7AQrekOblRUvp1GlkJuILS63\naCzLD/89Qxjaq1oNOYvSpXniTF0RvAXRp5b8lHY9ZvZx4GiC/9whZhi9wbET\nWuT/\r\n=rm5y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"36ba8daf061692c2f915513485e71707d8eae239","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.ff88df637.0","@material/base":"8.0.0-canary.ff88df637.0","@material/shape":"8.0.0-canary.ff88df637.0","@material/theme":"8.0.0-canary.ff88df637.0","@material/ripple":"8.0.0-canary.ff88df637.0","@material/animation":"8.0.0-canary.ff88df637.0","@material/elevation":"8.0.0-canary.ff88df637.0","@material/typography":"8.0.0-canary.ff88df637.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.ff88df637.0_1597876435452_0.020439707920860473","host":"s3://npm-registry-packages"}},"8.0.0-canary.32fb314cd.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.32fb314cd.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.32fb314cd.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c638c8e81fdf4eb1c4372256470a608009d7c834","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.32fb314cd.0.tgz","fileCount":45,"integrity":"sha512-tmnYtZjxS3UB9JMQXWzvUY6X8APp1pGeMBrrYHrY+yjZmVP0mFVFPh3QmFnLsuph54X3mY0Do6EYGnLpjpZyFQ==","signatures":[{"sig":"MEUCIQDCoNQS6oSoVo7kVi6rB+YwmKlHzDI/iaVSpQt+rjAJTgIgBeIosPuLNxN/7KuVobi04jTksHM40eSKgQkZVLg73xo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPlKqCRA9TVsSAnZWagAAq8MQAKAv5+Qfo6KJxsB8dtiG\n056o1mqM133YRMbJ4VoYfRsCzkafxnUps8MRoF0zYTYXjg6spMMh/1XSX2Ha\niDt2CVvw4QAqnqw1bX5bfdC2P9paKsQhGRiZZCD9kPAOe+lwDVsSdnamxK0o\n2NoUzVv639aJotvU3gXgNwv5cIvQxKOpemz+9Nvw43oZeG3TgF86oR1a7CLx\n04939VLunDK+02qoJ9UDaXqGzGlO2w2x5kpuZxAQJPFAexfhpnUz0v04F4ay\n4xVBG9BPdV8POOhDMJY2ZXMREIvdtJtTFME6C6sjhtxA7AUuSIi/7I5D9NhF\nJHnow3MPuEu+fC+XL5PkcsPP5Il6hqsbozv1F4gF5rpTo9a6frVdyhOxTCQa\nqva0kswDFYcZxLcDnoyQhvGb9n+zCZYARY+soRmKQBeFEW7mGmIhVQsoRb7R\nDecC+4L9eiCJTWoighHPZk1RIl3jvtBS+48hZuX8zxRUrPBF3NkDjP9esBfd\n7qsrftDfFLti9PDFfzOuta6v+3IocAzJAzslI7dFmzUS7LAvSBx3UD4vhLN/\nLMcQ9SDC6mL7VkO4IyXbDjUKwt3gk7NenUOBiBp0LNmbuU9rxEvTNGtr9szi\nMnrh102ncz3yl8Z8KcMFIEG9FBFY6dj44Ovvqe6wIWqRx2V+mYywZlg/Ckgt\nBD9U\r\n=3ZrH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"61108ecdbe311b101b1b87763e8f3283dbb9dd50","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.32fb314cd.0","@material/base":"8.0.0-canary.32fb314cd.0","@material/shape":"8.0.0-canary.32fb314cd.0","@material/theme":"8.0.0-canary.32fb314cd.0","@material/ripple":"8.0.0-canary.32fb314cd.0","@material/animation":"8.0.0-canary.32fb314cd.0","@material/elevation":"8.0.0-canary.32fb314cd.0","@material/typography":"8.0.0-canary.32fb314cd.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.32fb314cd.0_1597919913711_0.7872385017170853","host":"s3://npm-registry-packages"}},"8.0.0-canary.546277d32.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.546277d32.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.546277d32.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"219825264502dced2234109a4de97d0c902ef808","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.546277d32.0.tgz","fileCount":45,"integrity":"sha512-jeflZ9jO+rlmqznfUU1NM6B1nDngm9LyQ0QRJYl6FV1SnFl/gK7fGLXHL/ID3rn/WCaeFmTTk/CCxd3oz3y1oA==","signatures":[{"sig":"MEUCIQDTHdaZBSYmjEUktfl/P/ZQervB6Uf54FOsgCE64xi+jgIgAWvEohghYaOOIr2fY0jlinBIScL279Cta/XFADfk8yw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPqh+CRA9TVsSAnZWagAA8YoP/0lfOILGsLZ99GZd8fpi\nYrhH35g+L7rV6gpibzfUC4k412Q/NWN9J1xqmsVdYOX2bICpAV8F91kXaOqu\n9+odkBKfN8gxTZsYscA9Lvr6ZkkEs1CYNv3QTMiL+n2kRymw0v0fJ4YmVA/h\nqsP1u2QH0E4bfvemJvDBTRopGKWxuWwjZ77XHLdrXwDTFZjP+m9qRSobpZba\nolSXnQPzpuRpvvsiW1FR+lP58yc9//4G9J7rd9kg+6+OA14H1AJhv+RSQzuG\nDc5eibzOu/R+7FkSOVJC7IYDt1jMyHKrdv5Syb14NFrgAD2XcsPBQJIpgbHb\nBMjCkGe2/cobQ5P03MeL7eOMcQ8AiY+UsYeIzW0dJKkjD0mvZmnS6Qos0JiC\nCLGdP3RGcV72vCiTbmB95olG78vCKXsj7c/4uzo3hlYMKzeBu02Bmu+4AFGv\nGS3gVGzxDtS3KqFn+0l9mNOldFTGFKjfItLXnGHmhQPNPOgamS0eq/MF6Ror\nIePCYpWpKdzZfCcBUwge0ZSbnAlSGBDv2MZjoQWJEGt7UkZr22qO/8qc2Mtm\nSyQ558JvhAmeuTk9lG+DW9ZGslZlyc8Oj9WyYX94rXHDUGAAHWJ/B5Yqbtkk\nNKoseQHTigS1Usuw9HLjeWvt/Ccpp/4T+xXT+9gt+XEsKqL7snoyEsroZgjl\nQUgI\r\n=I1sj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1d97622107fec59bf3261ad4f1f3bbe21fb1ff62","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.546277d32.0","@material/base":"8.0.0-canary.546277d32.0","@material/shape":"8.0.0-canary.546277d32.0","@material/theme":"8.0.0-canary.546277d32.0","@material/ripple":"8.0.0-canary.546277d32.0","@material/animation":"8.0.0-canary.546277d32.0","@material/elevation":"8.0.0-canary.546277d32.0","@material/typography":"8.0.0-canary.546277d32.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.546277d32.0_1597941886016_0.23409135120447422","host":"s3://npm-registry-packages"}},"8.0.0-canary.da72839f4.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.da72839f4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.da72839f4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"957b4c439a4abfb2769a328c749be72940cc07fc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.da72839f4.0.tgz","fileCount":45,"integrity":"sha512-VNY3GBw035a4foasQzSfXCophogXuLQCQZ3ChbCshSto3D5KFI/mw20ahAcCqSyIUXXpnTXtEqC/LRtZ5adZ3Q==","signatures":[{"sig":"MEUCIGbHZbxbBH4Yuj7kuXxblooSluOMmSnCmmogAA1R1tH6AiEA/lvgBhgpdvBnXJv8P0yzf73JpB5M0OOQJ4oAP+JDSMA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPrpZCRA9TVsSAnZWagAAg4wP/0W9n7ymT4d9Vc0xde4r\npXMHrBGqZnXUPTXs50IeyO1ugVyIsctoPmwJ4NxTbJWHIBFDcN/4x0nxiV6+\nEQMRLAj6pbcMUbz6vyAAtM6cLPNho8K8+7Bh7fWHlIWPdYMKH9E5tP+Vbpxf\nxwpUq/AUsJrPW9opVIerSOn7SDrJnPoFzj8dsG+EuQTgypNdoMY3lE8691O9\nB73ZDW77e35yKQLdWkzh3nA2Npevjtp4SbEr2WoC4mZTC+lvVAraqnazgAgy\nQ442ruf+4Bsy0ivwvu5DuYgrKrRdHkCCueFHcgRosbETGwsG+ecbKbhKF2Oi\nnRO99E5Y6FvtMpPI+MgheM+xcKMsfvVR3J0mzs6x98BJpnAZFLW01vweY8Lh\n1ipPnIyFGoVpnEjHObeNLCWY2FretoBukwZaXWv7WjU4KGcJXYStPu1uGsYZ\nmIhLlh8AbBtPMIV8MHEdPag5PizAu0djhFTbeo7+fvoY6E0+IHpEP8IK5ETV\njPH2YleqzjrwDUy2mqV3u4SIrR5WjJzSheCqSf/XcsmmLOAMJwjIeO+2x2ll\n9iELp1JFxEiE4K93PR2Z61gVeO3MlkWeTRHoZmMoe77VAGBn6SkEZeFlIHSX\nQp3V35EU68EO/NOI27mjtRSGGPZrkkkuHTKBeh6DAPdbw3sSbf3EwTEmSA/w\nqxOy\r\n=r0sS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1b42b69de51cf24aa95c09d0e08ae1e644c71335","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.da72839f4.0","@material/base":"8.0.0-canary.da72839f4.0","@material/shape":"8.0.0-canary.da72839f4.0","@material/theme":"8.0.0-canary.da72839f4.0","@material/ripple":"8.0.0-canary.da72839f4.0","@material/animation":"8.0.0-canary.da72839f4.0","@material/elevation":"8.0.0-canary.da72839f4.0","@material/typography":"8.0.0-canary.da72839f4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.da72839f4.0_1597946456637_0.7201102904680621","host":"s3://npm-registry-packages"}},"8.0.0-canary.346069ccb.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.346069ccb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.346069ccb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b721cf36681cc66f4aa603ae6c6d3facd175f887","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.346069ccb.0.tgz","fileCount":45,"integrity":"sha512-l5mTpYqE7fjAsbQo4//m+HEJN1IhYOH7qeiTTLM9ZnMAtEFbSYcYJaBTB1MK/jRUn09fRIZLPLM5AU1K4V5EZA==","signatures":[{"sig":"MEYCIQC5WhA0uUHOEilrQcbPzG9LDm6ZaRz4Ob3Z81y1Z8/f+AIhAKBlpdHB1T+eZ5RTAm1TsuFUWEXrUtmtKUnYRpVGWucY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPr6wCRA9TVsSAnZWagAAgyAQAI5QKmqKE8N8otZp4mXd\niNB0IGM82pG/+7G3CLJvya9y1fveyC5dncJWYEP4HNQK2UUx4ChbrYiAGJpk\nNhTFz+/plNw3jw4e5l+BBK60GL18XlXCG3usmOwkik/1uXTzVX3xNYT+sKOp\neNIWr+TWmbixd+qiK4zPZwJaAmNTOJ8WTG7e/SSXnCwDQ/l5up/DcT13g07G\nxY8/1XnUGyAQjTd00MPUT/SgWDNkKhfngO+B6jbdmF9iGykkXFfNQkTzsjaH\nscl1K6Q6jXp0QskI7T3hc06HPODuyuiYNhLzQFau8fJ1zVMHUo2UiHSckJso\niIbgACYZauqXyfM4D/c2AtpgnaGGbgM+WIoHmUbqTBiKxCEycS4e2eiLPUSo\nyN2i3qRxZQietsirMWh3PeQE2lwTV7utbcZNZqdDDyIXGoZTTkpL13yaWt+U\nXn1XF3ro7cuzaz3IPQ6hoAbS3bSF0NCXmXG2rDlLhhuOWkB2/jmOFCRM32+l\n8FQfZWAIMwDF2OFpjEZ5NIzSxoJFZdDYcYmg7dcuXapvjazXqtqvZat4+V/i\nu/RDIHM+A3zezvHg3CRaf5bFn1ut0x0niMfOkii6bkMibeZn9bAXLBnFQr/E\nbPAWHv211EFVHlRxiEkM00XH9xhOQ+ZJt+L3T1l/gEA6fKQZ/gyRk9kE6ANu\nQARo\r\n=YeLh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cf298389e23ace16c7e4682ded1e492e489011be","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.346069ccb.0","@material/base":"8.0.0-canary.346069ccb.0","@material/shape":"8.0.0-canary.346069ccb.0","@material/theme":"8.0.0-canary.346069ccb.0","@material/ripple":"8.0.0-canary.346069ccb.0","@material/animation":"8.0.0-canary.346069ccb.0","@material/elevation":"8.0.0-canary.346069ccb.0","@material/typography":"8.0.0-canary.346069ccb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.346069ccb.0_1597947568195_0.8761804753059868","host":"s3://npm-registry-packages"}},"8.0.0-canary.e27c5802f.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.e27c5802f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.e27c5802f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8a72ce970e74e0313f49e99d5668a0d8e96e5aee","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.e27c5802f.0.tgz","fileCount":45,"integrity":"sha512-J/yBV0v5x9dZxqAkaMXTBV+22ec7Zw8S562G0O5yMdvY592jUrxYXuayf0RDDf2PcquDRK6q3DccZbPXz1pfIA==","signatures":[{"sig":"MEQCIDv+4RqgyGIeo3xovuSkztkOStH2ufeDlSVOcAWs/WvmAiBR+BkUuHegZ2Ly+C7qqND5kBgiI+qgWZw1wF4a+jK+/w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPsvwCRA9TVsSAnZWagAAlRAP/R5E12OvQIXfcwzEJQmv\n8MBBAjFosJnQIcV7AoeGsS+v3ApCRo1YDONfl5snWyYqGdp3YZiqYfoI0uaY\neN7jAOdDBYW/xnpmyX+8OZcOb8ZWaLX4xr9f+C+3B1LFmoZwxkEQOBbeGSPj\nKeoyaafWryiDhR8flGvi6Q2MKslwSV/zCIRE4LjFJOznNBF6aSVxCclYgGuX\nUgcDU+SqOIh1VRtw+HpbRaEfrw85w6BQbAOmR9OHXsuuAqqWFbTEXd9mQ+Xq\nF1Dal0wAWTsXJxjP0rJGu7EDrrpu7pjPVPF6eTzdQgmT5V3Ly6Fd6mkSeOGD\nj1gVijGZk84D+8dkDMKczQTfJ/L43Q8THmDEkXZxQZ1no293qW+PTiNX7aZn\nrWF8E2W3tdl1ZGT1DBTFxRA/qfd96OSW9c9StmdQ5hKAbj8qT8wQH8DkBdsY\naqfWMvb8dFPmmV2cPpJlc0MTu/911G6VC3wiJqo+hX4jbOmyB7XMzjguv2x6\ndByh5Z7TX0AVQrzw/NRcoNpVJqCVGdQEqGPqOdrONqN4WAerdjwuoAnagjlY\n0kSHPRDJ1uv1jeI/f11CBtIS3Xp4JBW1ikavuxlG9FpBOayNEOUJm0mtiWfx\nXAnD8Iful/n0kV985ZxZ2V71e/Wga+NZ87jmhQGnO/5Zt1YhQUQXTp6Ob8Q0\nuqYv\r\n=rnhK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2c9246ec446246e8fcad54982848f7cd5839f69f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.e27c5802f.0","@material/base":"8.0.0-canary.e27c5802f.0","@material/shape":"8.0.0-canary.e27c5802f.0","@material/theme":"8.0.0-canary.e27c5802f.0","@material/ripple":"8.0.0-canary.e27c5802f.0","@material/animation":"8.0.0-canary.e27c5802f.0","@material/elevation":"8.0.0-canary.e27c5802f.0","@material/typography":"8.0.0-canary.e27c5802f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.e27c5802f.0_1597950959609_0.09702317876768096","host":"s3://npm-registry-packages"}},"8.0.0-canary.f4532b9c8.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.f4532b9c8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.f4532b9c8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"59a0e45bdaf2d9ec0f65e16909684b32b5b5d88a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.f4532b9c8.0.tgz","fileCount":45,"integrity":"sha512-qVge8NzuHIuqubHMy0xxjhnY1BWAod4Eoi2dSOHWV55jEYjoDL+awtUPQ6YbXgsbYke86BJNZ+HhAR9YO3WcXA==","signatures":[{"sig":"MEYCIQDaJgVfOKpnyE4qPzYvg31mgIIxsszkBpZPl77vROIzwAIhAL8y4i8NRAqGyCCszHEoWMXPr9NBKNKexKD4xvfC2mHp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPtXpCRA9TVsSAnZWagAASeYP/RIN1raKS8qgi761abbA\nX/z0qKWRn4323cjRd8Uvuv9UfEsNpeeB5So0M3L8K2OyzznrQx/YxnecFKvT\nogBdze8FTZP5QdkrFvFkyxQrtYO2R2qhpnjcxLbNEUWMMKQ6WG6bBj/trqba\ntc8v1oSkAGYtPLUyyirJxvepQWeHbOUCo74wtxBoBA0891NPzv3sUTQFHJ9K\n+EYOP7XxE7ODKagOTztsWPw4jXq9X7VWRKfp+WUa0SvBUZpRkCNgWMiyOgu1\npzWEgZjJ9TlfqPL5AOGMq5nJC410VSSEeWeSKTWCZdyxDcwanLs372pvh+iE\n8fsGOy2tLb1C+ivizojtPKuDNSgjnKA2J5cuSeWRio4w6zci2e6nOGgs+b9M\nXtQEeQo4wSTXC1KxkObZ44Eh3Vy1DSjyPFwk2Xee2nWU8VIbpuvpoFPqB+nR\nGvD6kAvTZaIkuJZX8CfOu+0t3dE1CyLv1KjGbRuoe8d6V+7fMPUwL1Tc5c+v\nFEfmtqaDnUrb5R2ZJt21ls63P78NBj8BRuOGvlFUArPRo3V6b4H41FfvmG41\nu2WX1qYzsqiopgkjVFxDVMrFVYQwv1PXeQ2rObwfiUeIVVLCvq9mvayj/LFc\n2JP7TcnubICKP+wkDzkGozKnXeByh0Mjg8GcUnZBVQHex3ZykPCPjNMnbVjA\nNZ9v\r\n=DySF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"be56493a06963f21f1f5343fc6db3accdc74216d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.f4532b9c8.0","@material/base":"8.0.0-canary.f4532b9c8.0","@material/shape":"8.0.0-canary.f4532b9c8.0","@material/theme":"8.0.0-canary.f4532b9c8.0","@material/ripple":"8.0.0-canary.f4532b9c8.0","@material/animation":"8.0.0-canary.f4532b9c8.0","@material/elevation":"8.0.0-canary.f4532b9c8.0","@material/typography":"8.0.0-canary.f4532b9c8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.f4532b9c8.0_1597953512998_0.2962094899164145","host":"s3://npm-registry-packages"}},"8.0.0-canary.fbf73c2a6.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.fbf73c2a6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.fbf73c2a6.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0ff7359ba0b6fe615e54ed77cd7f7492ffc935cc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.fbf73c2a6.0.tgz","fileCount":45,"integrity":"sha512-KeFZywRJe3XxJajSH6Wf+xKa89qjDXL2jaCyMWvzgUzf7DTa5Owf8XqnrumLy7ZFxa1PdolA3RDrUw6VOpWB/Q==","signatures":[{"sig":"MEQCIA3fTQfcxze+oEIdwlisFKaKIvsYGafOegzcCrWbUpGdAiBy4efR3XEGfHRmwymWk+TR8xqjD9EgMwdqLFB0+HalCA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085885,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPuYKCRA9TVsSAnZWagAAkgYP/j3cWmjvykF7M5V99KsX\nT2BFLK2oc61zQGwrXR6CUigPj/SVRXgmX7cRtsq4ov8yEOBtKrex1ayaaPOG\nrxgyUb2ZKF2gsjOVYsqIihDCn6nimpbE0mARuUFEh16UEM58kT8/aEE+wHxF\nw3eTtj2TTSSTmlt5/hPAgJ/Yp2M/y+OSmM3cScEngZgriJ3ec5WY2Ulfvhqk\nOGsOVsHziDa7moGgwEN/B0Kcf56VFLqHgIJrAzB8dIzOIQrU14ZvZsAg//we\nFr3fDtOZGpv9rztChVCsdDPopwFeNMVNwevTc3ysKhJJsM7PNikfXSFfUGtQ\n6V5Ggk5FegSUZTnbGzS7rQvd5QpbfdZCsVb/vkjeCYT9LCKQDMOwuepcfFbu\nLTMYwtqewEvWfBaY5Y+OAVb96HBCGivd/NuJU8pi+CSJmCOd9V60gqRtyf9X\n/fydGRwk9fDCtVPkVek5iXkbT8kUt+9fOHRoxoXNbJoF6hCO+L0RsnhB1fKl\nwRUFKjwbzbEjqMcF7r0Zg4h12nuvWJ/dZVdMkuFohOojGYAUDgLOxT1o1dmp\n7YOqafMxOeLp7IMlqLafzqYU6fFSnvLLc+ZiBjbHGPETmcyJt5+WB6gYafKi\nfm0jW+JSM8eOnEfre5s8R6w4QQADicZZ7f4LFGAMclVmWZ9T0XtVZbIVR/AI\nkL4i\r\n=EHlA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"64db59647b6d726098d0871993ac5c563d92be26","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.fbf73c2a6.0","@material/base":"8.0.0-canary.fbf73c2a6.0","@material/shape":"8.0.0-canary.fbf73c2a6.0","@material/theme":"8.0.0-canary.fbf73c2a6.0","@material/ripple":"8.0.0-canary.fbf73c2a6.0","@material/animation":"8.0.0-canary.fbf73c2a6.0","@material/elevation":"8.0.0-canary.fbf73c2a6.0","@material/typography":"8.0.0-canary.fbf73c2a6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.fbf73c2a6.0_1597957641668_0.3017729973642176","host":"s3://npm-registry-packages"}},"8.0.0-canary.cf800124f.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.cf800124f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.cf800124f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7bf830c9037032f090518804f5324336535605b8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.cf800124f.0.tgz","fileCount":45,"integrity":"sha512-badK+lksV4+7ZSK7VmMPwZMeDXHWmF+QwawC29tgRpgjy//AET68HiBDBW3acIlvwb+HjYnz9WNDZXPzviI/8Q==","signatures":[{"sig":"MEYCIQD+ZMmlXNVDOw1SI0aeLLZqcuhb1CTxXe5W61+qGpp0kwIhALkPM+YdR4TFXM9ShMrydDJz4fTciiJLXCRf8DV1eLQt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPvDhCRA9TVsSAnZWagAAfuwQAJ3HqmUHxK3YdW9IfEyc\niMKTbmbbR4oJV0r3FuEvqpnsg8820eIchURlankxgTwL8u6605l8FGTGHhh2\nBf9KeJClLCCcuLKx+tcUnI7crkLdpbKWb2umcuCFf0PzChH5Y2o8ZAJDZUIP\nhjLQHb7pjgug+FJaMDRqwUfYT6tVFJekRZ5xz9APfFPOVuIJz5C9q0JzBJ9k\nPFOLKCld02D4ngZUjT+wsgNvbYi4pLKZZM48QveIchXMPtOAIkHsYa6Bvkfk\nxy5JVqQgsC+zcTgwl10flqy3iq7DYJoEvJN7YpArserbtnqhHgjn4EqWd+v1\nxZS0/QKmZnBHl/QlP5fHA7VUHWF3iKIQJVuc/4X4JmrCBclfU4RkQB/0NSDk\nYz8t2jGUiCxoQacF4wofZT1E3Md6E1fvsLvMj/xmhdbUqGUVThGAwWorAz6P\n5PPCKYRO+oDj2BuGSfUXkidFce3PmOBpIJoZPZGBOi7tbZcM455/7L+JLs1c\nLpIY55JQhzag5QSDBVrgwvfz5ei7gLnoqVg2Zg6cu7qYq5rZSygsqBI8vLaX\nBm27FsPQtLQ5XWAfKccpT8LdzXWZd24njpy5aWe4KNBVMadrRsvCYwaMGnWV\nMF9JVKC/3Jcebn5O372ICxiRr3j4TiW5yUnoO9wcWcECkSRci+bny3KPMMuz\nGmWC\r\n=iFrs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b15bab8ce97a47831c29a3b0acf1c34e0533b8e5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.cf800124f.0","@material/base":"8.0.0-canary.cf800124f.0","@material/shape":"8.0.0-canary.cf800124f.0","@material/theme":"8.0.0-canary.cf800124f.0","@material/ripple":"8.0.0-canary.cf800124f.0","@material/animation":"8.0.0-canary.cf800124f.0","@material/elevation":"8.0.0-canary.cf800124f.0","@material/typography":"8.0.0-canary.cf800124f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.cf800124f.0_1597960416754_0.30305966334202794","host":"s3://npm-registry-packages"}},"8.0.0-canary.95e4eeea7.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.95e4eeea7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.95e4eeea7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"43ebadf893d6217055d113d8dab32280434915a1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.95e4eeea7.0.tgz","fileCount":45,"integrity":"sha512-9k6vfrVN7DvUeuzDu12fn1eQ5XOHy3LzuWoloBDwPK298EBTIdpIdwQ7NK2E5LZrLVLRHZzPYRw0Fsk0ZFde5A==","signatures":[{"sig":"MEYCIQDewKu2n4vm0OidxhN0S+CTtvModc3GP9H/tIf/6Xaz6gIhAP7IbfWcL/jCHXskAf40a8pKzAu6Vfl+7Itq3HKfr1Cx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084130,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPwdmCRA9TVsSAnZWagAA3bEQAIK1G5kUgGus4tEwfYIG\nlzAFO6ykos80nmoAAHchntdf+uOkKE2GMA+QPTBBsst3iby0ZTMZyjt9WWdl\nQu2quGbF/aHO9706XCim6+FBc4BIVwIR++LKZwfdZEmEEI0VSczAP8vZ7Fpt\nrSkSNjcp5LCdQKMiI0KkbQiwcwe5nHhpEACxsZYxSkaApwH2jB0SPowT6iNe\n1zvuFyp0qSVGUPL0ZbhzTVse+V/7hoMw5IkkmNecbY0uHmgA69kcuujFmNZV\nj8XapQISakws2ZT/WMLXYf0+1DmoumN5Haz8CQmIR+2xgNjssEdT0UYzBDAZ\ngY5d8lRWipOmDs0bwV4jivoL2QEwYCDHp7LWR9iSgYPd7dPl4g1Sm6XQ3GUo\nCyAhJLF+I6TvPtKugWk6CxK1jt68zW4/xO3y2FWODREUuRN0D4VYiqVvUmNp\nB6Ro3VuSRm9Lxi9HAfpTs9T+wSbuwGX4AAnGJbRq4HTACN96swryI/BovPx7\nIQebGCnhT0bll041mbWvmmQzLNZZwXtF5nKnU+SPsOw9SKWnlU90mPDpx8sG\nvhfdLRetFzpvYMbCjlm0Pw1M03+dsfmOkuELoHFv8znIyK/wIiJkxkkrEAPJ\nHruvtSGjMloMZ82gVs9LHyo5GtBYlorKxJDm4pYCdxmglz/eTgokXfcHkktA\nI5G7\r\n=N+C9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"be1ca8dd4a02de91f796aff6f2a9fa745f02df13","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.95e4eeea7.0","@material/base":"8.0.0-canary.95e4eeea7.0","@material/shape":"8.0.0-canary.95e4eeea7.0","@material/theme":"8.0.0-canary.95e4eeea7.0","@material/ripple":"8.0.0-canary.95e4eeea7.0","@material/animation":"8.0.0-canary.95e4eeea7.0","@material/elevation":"8.0.0-canary.95e4eeea7.0","@material/typography":"8.0.0-canary.95e4eeea7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.95e4eeea7.0_1597966182317_0.46021713363068106","host":"s3://npm-registry-packages"}},"8.0.0-canary.91ab1c62a.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.91ab1c62a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.91ab1c62a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4601758d80b4affbf1058ee1f219933d7f370a01","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.91ab1c62a.0.tgz","fileCount":45,"integrity":"sha512-4TEuNsl0vRrlNrLW3/YnmHZj+rlKriq1ov2TvCwBkYj53mhgazcerldyG+lRkOgm6XxIkM5fXcCz+rkyGuxJDA==","signatures":[{"sig":"MEUCIDyFAKYHRMYydwA2sJJtlqM6enfV5M6YcYY/W9Onks7MAiEAnW3NngzETeLysXNstb+euAyPUseY+TF+3sVWN9Dj+QY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1084130,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfP+RmCRA9TVsSAnZWagAA4ioP/An/Yh9bz2UJs3h3kQC6\na9QAN8rs9gQ3xFV9R/A11Oxap59l1EDu22Nnr8A1nLs+HfNGqgbCVS2iFBht\nRasVijirMLOS91wO1/KfA6pYTmkVTKIU5NO1jwFT/gfrxiac6sWBov40WSNy\nNcuAux9phbnia23POOePjbf/j6gRMKM7wCm+31bkmg9O9f5WqeeJCkNZHUO3\nJiK3QJElcfUQGjuOy55tu2X6cXtLWS0vdZxVufy4L6dIYR4lgx3Ss+L94Xgr\n0SgIsCH4F09Mt+FV51wbtmmd2KdsfxtKKHyCp4HIvhWgyAk4Yv8lEEPJ1LtC\n2KKZvBismZRaZHjs+aUCdIyQKHymPu1AdOCMzIyZEPb7RFWU5KQXQFKcb+3u\nv0QQPGicvVS5jHucukTRJTxd8HZDokyNarkvxKx6j0PlG4PMssJlchbWAkVg\nt0kZ7Hdq7vCCXBv5E0gCPTUVTQFx4KLFOViaNX6TDAib7TDMFzKt/OemQIp0\n+XrlHcWsKaRKOeXtdVNsgUVOnbhpViADdasjbmb9n7FSf7xqXxMdjD0o2KYB\n9uwzaZjIU8wGXiwJOsji6l36c3MJBGsb1DXPIxieG2Ad3wL+Jir3I7kStdpW\ndwbzm/yGZ+abgZYX34VwW/chaAthOU41RdH3Tna6+HbesKaqDwg5Ovll5BxB\nb+ZK\r\n=Rh1M\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"389b1e8f2b60ae90730087557ec80e133f0e0129","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.91ab1c62a.0","@material/base":"8.0.0-canary.91ab1c62a.0","@material/shape":"8.0.0-canary.91ab1c62a.0","@material/theme":"8.0.0-canary.91ab1c62a.0","@material/ripple":"8.0.0-canary.91ab1c62a.0","@material/animation":"8.0.0-canary.91ab1c62a.0","@material/elevation":"8.0.0-canary.91ab1c62a.0","@material/typography":"8.0.0-canary.91ab1c62a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.91ab1c62a.0_1598022758209_0.9606350898763032","host":"s3://npm-registry-packages"}},"8.0.0-canary.58eaa9f02.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.58eaa9f02.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.58eaa9f02.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"eef2e389c0150b775cd54878444b9e39a7112e76","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.58eaa9f02.0.tgz","fileCount":45,"integrity":"sha512-1cRWcF5sdTXc1QjIK5VXXlgJDzRfAtn0+EWFdG2wKAFP/uUxIGVUnvcdWbN0dF4D3cgPrc8lCg3vY7Wf4tV4ZA==","signatures":[{"sig":"MEYCIQD/Yj1/sUBnHMeV5YXmlmvIc1pb1Y4vuJSdeOYtzcj2xQIhAMUtpVpDPv+5qIFhGOrag6qWK/jXSgH26YhVAblfAFcD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQCgLCRA9TVsSAnZWagAAdSgP/0XNrkR8+Ut915M25PR1\n33knlFXf4GoT1dBP09+meMaZ6yN4FtMjAfelKizbktADhlEVIhA9XnbdIuFT\nueU53z5sAOMznfmSjlk/w4EcUOmJG+Nk28Y4HBG5Lle5IamBxDZVyrkVAEG+\noyyjBJ2xwqfXU1Wjdtt0aqiWf2hkBywElBpf+5CoiZ6YDxwZ3ePOklwAbuzN\n2OTX8UcC//zueF1mTp2QXbeTxIu/HzTUPpLrqfouDWUnXtz1U1UkH/deyq4E\nvJmaaAlab+WL3Jho3XgdVpoJkAw6t/iTEi3CfeKReK6uocurwhoejATdpFI2\nk0EhzS3uvLBVRmwVCItV2q8woN1dvLntMGfglllEKOkwe+mqfKTrCl8BhQOH\nomAyWMbkx96LeDeHcTJlfCPEHquvZ2TgMS2phW/Nwu631d+4gX/EDFnNmazy\nST6BT4gbtYj+wR53Uxvwk689Zb2cr8+rqR1KAzv5zgDRCtRUZeCP+KYJITsv\nYOVubdJQLghrbJtSvg2jBhvpvXu1UzkGVKkiv0OEAGU6xN9XkouelUgFG7ga\nRQjmWDDms8C9i7rcIZUIQU3bB0P/6HnQE4r3z9uRe8q+oaj/vu2alfjRc+9T\nQEvDNFLkWakZjf10Dtp7mDkyjjBns2iq/+DN/UMR/YhCR/2BPeZWxAieDlLu\ncuft\r\n=KOmT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9f3944d638392fa39379eeb30bd7348c9578f67b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.58eaa9f02.0","@material/base":"8.0.0-canary.58eaa9f02.0","@material/shape":"8.0.0-canary.58eaa9f02.0","@material/theme":"8.0.0-canary.58eaa9f02.0","@material/ripple":"8.0.0-canary.58eaa9f02.0","@material/animation":"8.0.0-canary.58eaa9f02.0","@material/elevation":"8.0.0-canary.58eaa9f02.0","@material/typography":"8.0.0-canary.58eaa9f02.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.58eaa9f02.0_1598040074630_0.7395003410333845","host":"s3://npm-registry-packages"}},"8.0.0-canary.238216fc4.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.238216fc4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.238216fc4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d23f334809e17a1afe10363458bc568c5fb8ced5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.238216fc4.0.tgz","fileCount":45,"integrity":"sha512-qO1hZa1ZfoRYBCx2tW8654alLJfbjDnptZR/uBcemAC9CxwxXY24093GLFwR7Y9K5Sx7fq1Tpu7fmmjtiAI5NQ==","signatures":[{"sig":"MEQCIBhFraK08sSGEJW1W9c05MrXBwAkBGkndbvQ4cWvk/f5AiAEOgp8XF0j+JKkyoGP5TjYopC95oAJ/0zskIj7nDx7CQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQ9+3CRA9TVsSAnZWagAAXVcP/RbPYCkmW9HJPUjWVUvV\nyR2QACLxyuX4LwXIJfkC+SkJPfqWHmq6xNht1pi9kDVCNI8N4ELhEc8veo8q\nw8wFAOxVKvMILWAXkJXjUK45MYfsw0g6HRi9TlaRog6/2Atts5anqhYlEEV1\n9ep/t/gFYTG+j2HUyBacyYKyYHvTXLQGdKuYfiRC5G1xCKvBzTOd5BOJRNbg\nzfgW8OSFzwMEX8vjBOTgdA+MumB+ND1f6Ut0bAexYvS+XsQzyzJnJvKMQF6P\n0XhysMdfjrHi2KQKcWENFuVEcOTP5tMgohUQ/WM6OoY4ugVMJBgZdRviVEjP\nyO0I18SDNBjwLQlL7rEdUq5hiHfHueEOTs+S3GOt5366X9W/Ljxczg80ngPb\nnSh+C7K/WrNvQkbyDejcgGkB0gX9dKwshPWp7TEPJ0R8Qe/UYWP/fZie74sc\n+M9MNVRy3nCJHaRGnlVIBadTLIwb7U0T/wP01gn76/NYKBig3l1FIBkKRP4/\nvYMUnR6Guys17Y4zPRQiiExkacxNY816UPxh3CSX4hJDjQXJFSYi52Zk+haZ\no2j7yTc3s5UEfVNXs8L289b7DN+y3kox4dnu8CNcc2DYyZEQbeSEnW7gzgSL\nmVQungz2e8KWyrOje+znnMmPDQqNPuskOVOtk/9gi0YQETHqEL+e/TS3gXeA\nOUqY\r\n=O9ue\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e224b287e176f866661b15e2ee791e17fcc44aa3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.238216fc4.0","@material/base":"8.0.0-canary.238216fc4.0","@material/shape":"8.0.0-canary.238216fc4.0","@material/theme":"8.0.0-canary.238216fc4.0","@material/ripple":"8.0.0-canary.238216fc4.0","@material/animation":"8.0.0-canary.238216fc4.0","@material/elevation":"8.0.0-canary.238216fc4.0","@material/typography":"8.0.0-canary.238216fc4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.238216fc4.0_1598283702539_0.5761731160224732","host":"s3://npm-registry-packages"}},"8.0.0-canary.a1c65593d.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.a1c65593d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.a1c65593d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b4c6df29d0676cca76c25ce47dade4da52fd255e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.a1c65593d.0.tgz","fileCount":45,"integrity":"sha512-1NfUzVs+NJAqv1frqKXJtSaG6+ZZzRjAvytN7ZXyghMJ46UkUc8M95ZpVjO2fC87+HzvnxZ+wY2qAKDTZNfADQ==","signatures":[{"sig":"MEUCIDK7nRNf/54ig/2ks9WW0O9V7MsTx1ewJfxQEOWWZNTEAiEAqgRhCQEHJylxeqb2x96cYEy2D2zWt/VUlmTSR4moEQo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRH/KCRA9TVsSAnZWagAAceQQAKSizRQYTydOZFXKLDZk\nRiS9iOUyF4xXe56z+ujRqodAWV7n2quFkVmu5izBJyrvoafzpDPrYf5QZeeD\npOdtJFfMTlQ+odwF8LD0WwhP1CLmkK0zcMaLJLS+v9mvveuYePr2fqcS7Gni\nkTcYJpsr7g7XmG0OL6qSuAefsrbt07RdQV5nTvh5xspD11g/yyi23q/dboIR\nND+DCvrp95rIrCQ8thkQ7t6/U+SeBjf73xc4r5hWp+RjxYT7q60alqO7MOGe\nF5DyWsM0kSMZ6N6QxXM6/8C4XbWnZ/J6zJQw5m92zJudlBSGj4stsVDQxx/O\nhoI9BzjGZKAg6LxZr6A8PTm051ixaD2FbXC6BNOdFdz35ovYHuneWlnjKrt6\ncC33XXaJbFkHpVF5cuL86YpgK2AYi3JqfCR0aagQg73lbjqcRL5w8paxtD0q\noWAjYlYRXVTM9K3sykaJtuTSg+ZfetQCDn5/IdhnYZfXUCMlxJO+xo6/uapY\n7CTT0lfGboITH1okRLZ/KJpLwnXPgJAW3YTXD562u9+i73vL4tAKhpUCUOsP\n8MwJjijw6cUQvh5MdRYA8clid0Kp4S4tgtl9h/Zlc3AC4p6zjV4ERTA/8PPB\n2laJZJea86V17UOiqlXYfokPCHC427B9qNP3ptmuAzBlwHS2cI+dabMK/YM4\nQK4z\r\n=GOTZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"71fc6b5e7b16ba7f6d37b724ad4982780c9c9932","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.a1c65593d.0","@material/base":"8.0.0-canary.a1c65593d.0","@material/shape":"8.0.0-canary.a1c65593d.0","@material/theme":"8.0.0-canary.a1c65593d.0","@material/ripple":"8.0.0-canary.a1c65593d.0","@material/animation":"8.0.0-canary.a1c65593d.0","@material/elevation":"8.0.0-canary.a1c65593d.0","@material/typography":"8.0.0-canary.a1c65593d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.a1c65593d.0_1598324681786_0.04648913473668226","host":"s3://npm-registry-packages"}},"8.0.0-canary.708cc09c4.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.708cc09c4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.708cc09c4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f449e08f272f6c4e7c1212d8fb6b94a99500c9d8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.708cc09c4.0.tgz","fileCount":45,"integrity":"sha512-Zvo0z3FWzPAv3GgyahPzKYqHCHhYLrjrtN1dUk9h59NDIgRwWAH/Q8DSWMXwIjDnpCPYJ4eOsJgZ+bTMP4RHQw==","signatures":[{"sig":"MEQCID+PcxZE6qiI/KJAfpYF3i/tp+M0BLXUfQ+LXsZGWQxpAiBMKj4NISFP8NA84AJ2doRTr9G/YVz2crOGbz9habUoXw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRTTcCRA9TVsSAnZWagAAZkkP/17QQ5hj4XBncqKdJ5i/\nctzTE/VxfZvetD6DjtOifeQNjtTTrW7qiicczNX6HMFLwljC3lS96jYj+vti\nrzZ4Dc4QIYbj1gt/cGSqBlb3CLrcYujxQKVB803s/Gv5PHQ1xsAKLT2g+NXn\nkUsxFzmHiDe4gLjC1zSXHfbBEptM5POap6DF41D5BeXz9qEJDhTyCZNJST+l\nM71RnRaJGwwoxbxQlUzBF24SHFwfQpocTbaXbXsr0WvDnsZSA9uwRVuKYOdB\nzR14/QLVggSddiJKZd/SC626x4gtQ2X6VOTKbErVEntWStpIMCWQ/77uCc4g\n0rVKFHIVS5y9iFG1SO+IDG2xYEz4TIBnn9ji9l+aXyuJp8zghvLhFrryhEn/\nK9+ftXKA59O7uj2gHDNuoZz/wrThHrft6Cjx7eA3WFWSOblmD8KwWMGtKuij\nMu6/SJ8jELTNJU4jUy8Ou0REYTX9CERqlkiV3ewX8kmBwwxfDkxw3EaO3C/l\nm7B4N/KE73G2pb+HzOWcVJpbV/cx42ZVxuaOcsIpUTB52NcvExZZAeYsQgjU\nGpzcgszK3IpaXxYUlv7Zv0vmyaVkHBn7ucrQ7TtoWO4Mdj35jr8V5MCwNttx\nbXivzdgj/pwl4Qn8w7TCU/wv5jE6geqSDAWS5Nm6kHUT1ovUUeba0TYqQYkf\nC/CS\r\n=fNeP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"41353a40a8a6a80ac6438fa702cff9ca690b897e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.708cc09c4.0","@material/base":"8.0.0-canary.708cc09c4.0","@material/shape":"8.0.0-canary.708cc09c4.0","@material/theme":"8.0.0-canary.708cc09c4.0","@material/ripple":"8.0.0-canary.708cc09c4.0","@material/animation":"8.0.0-canary.708cc09c4.0","@material/elevation":"8.0.0-canary.708cc09c4.0","@material/typography":"8.0.0-canary.708cc09c4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.708cc09c4.0_1598371035809_0.17618504551246783","host":"s3://npm-registry-packages"}},"8.0.0-canary.19bea2ad3.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.19bea2ad3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.19bea2ad3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"55ba9fa38fa584ad42b099e40a9e68bfd8f2c8e1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.19bea2ad3.0.tgz","fileCount":45,"integrity":"sha512-lVkNUMmZBzV4PAhSHkQ/Ecy3iDrugVLbQp9xujOx675/8QZfr2LKfV1QOfM5yAX9GaCXMuSzCHI1lhozgvGXMA==","signatures":[{"sig":"MEQCIC9QlWJuXGxvX57Z9KSky6F8wnZM7AD/ygxNeReJ8377AiA2DlkMChNFgm5hHxv6OueJAVqfmCj188/dCcQN9OiRHg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRq7nCRA9TVsSAnZWagAAGnYQAJxvAuhzcYMYy18/gGGv\n+IKchatP4NVe3z3LtqQQL3eeLCJ8K9HZOIXCEE8nESPJOyPMgcHfC939q5vG\nJU5JEhPXz6Ixk2HNBXK7SB0o35zQ9OQ0P8tALen7kcspQKv5lwDtLHmk8iKQ\n7sdeErNOxDNicZg9WuJ/Dit+d3dQTynaXRH+6jyXOLu2OoAeTd2K72ueKA4Y\naBYCUdGtIn0+vbJ+rucQ9C1UEQqOV5dDGT6hwbCOlCCl9S/KDYOUSTOaVKf9\n1R4CZUOsw2HtB+tkNOcRBxd12IuzVDPTsHpQYkoibd67XRH0+IOaV6yKRl8/\nlL6O5UelVxy/m+ZMpkwpf36G3hT6vrvCyZP4w+ml4rZ2hj97M4ymoaFNS5wZ\nGQuZ5tDMk7iRSRKAxCmtvLkB13Ld7XIbEs38wHfY/Fr4ULrEBlnMDAO1lQ/b\n/J8P9NoontaA2YGUXqanmSzm96WlE+4bhfR+x8nh0hHiQ8jvWbS9qzfbKk2c\nGYShiRXVMJBmm2wyY4J8ib+X/+tr63+WY55lWFAS+VJmCCE2bhrIgnbpC2ca\n/1j/4g/9meCqYbmD6IUUu5E1pxrotF29imzNoptX0YURCSM+V+Gyoe6Nq2aq\n0VavlZ3Raui1FqdlgNW13xQqUL8/amsbXZxJlaqdd8z+A3kOEdlWm3jg70C4\noJBa\r\n=bSPP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4f1ed83b6a09dd3e7d24508d420cd99be9dd3893","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.19bea2ad3.0","@material/base":"8.0.0-canary.19bea2ad3.0","@material/shape":"8.0.0-canary.19bea2ad3.0","@material/theme":"8.0.0-canary.19bea2ad3.0","@material/ripple":"8.0.0-canary.19bea2ad3.0","@material/animation":"8.0.0-canary.19bea2ad3.0","@material/elevation":"8.0.0-canary.19bea2ad3.0","@material/typography":"8.0.0-canary.19bea2ad3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.19bea2ad3.0_1598467814650_0.34838782863023576","host":"s3://npm-registry-packages"}},"8.0.0-canary.911014711.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.911014711.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.911014711.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1ba69e9203d5901179686eb0f742a1bfb01a9765","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.911014711.0.tgz","fileCount":45,"integrity":"sha512-accDGCak7LPmyTV3af3eAtTYhubFZBwJdIr099XbV2/6mQNNYzp3Pi0TTCbH+LqW9FNs9hLiH4GwzJSN683fvA==","signatures":[{"sig":"MEUCIQDEtUKyYpcSzrDw4AGuTlEqEsUS/k8307SfbalgDqJIFgIgajzySyQ2FFJlgOOLjAldzxZml3MZbhCyLwWX1r4YBJE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfR9qdCRA9TVsSAnZWagAAxdkP/RFzn7NGpsEmbp4MeZiR\nsWkRcSKwh11KZAhA/0/sjMTNbjUjGB4g2FRQGCbdxAjaQeKwkmUMPVtiGWOf\nILMVM8ceK13c8X1Hs2+ZrvC4vTtfi34okOPDvtIzazO8IDider5HQAlHFLyG\n2MIeGvmYGTN2EhJkAgV6JHfD1pjyFL3Iu3qh9vgyPYLewWp+rvRMrXtlkfDT\nJBZk4OrNKF7ti36iIBiok5ve8TK28CkVZTPipK6WbHlEPtTwLZiLvfQvOihh\njd0GcselfOrRdZy3dTp40Di7hAlUoZbVWqONt009HfoFqCOQ/sOLj5Kxe80n\nNEtbiN3eBHIwbz5uKQq4e4acwV/wVAD1ipi8vTJQI4kHrMphOccIORSsunR5\n0N2O7zNzmXrss12SVk0MQh4gEl13SvQyqH+5K4MPrn8egcrxavHJUjPKGHON\nHmS0VKGDB1LF5e62LoNjqyjp/gVZMjPc4aIO/ayFXCq0Pemi0Xkei8lvYZQz\nZvJ1jjKidBYXGgYu7NKntPE7wpuFPt2do5OJp1By6aBv2ccPBXjVE1efH2pw\nhIgQKDwZJE5gKbtOOrJRRtwPN5nYQU53mIyx1wytUL7+j3CYqO2Fv1f1brOS\nVmjUdxpvONY8e8xRFeDkqD74OooFGc2oMhBa+4SmmA7Ium1gum5+G5/oJ4Sd\nRipk\r\n=57xq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e0563b839594887804244d231bec5f415812fc4c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.911014711.0","@material/base":"8.0.0-canary.911014711.0","@material/shape":"8.0.0-canary.911014711.0","@material/theme":"8.0.0-canary.911014711.0","@material/ripple":"8.0.0-canary.911014711.0","@material/animation":"8.0.0-canary.911014711.0","@material/elevation":"8.0.0-canary.911014711.0","@material/typography":"8.0.0-canary.911014711.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.911014711.0_1598544540895_0.38069707742638514","host":"s3://npm-registry-packages"}},"8.0.0-canary.d3387f54c.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.d3387f54c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.d3387f54c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8e0ee449e9c9f9e4d772490f7c1acdd835754eb2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.d3387f54c.0.tgz","fileCount":45,"integrity":"sha512-yJw/iQnONB6YeKfGMJULQh3XyLf8rZQvOMnTlYSbA5rcWg+J5LkYV8lJaxHwFIhW+BsCTl10V5GitDeDOuJmxA==","signatures":[{"sig":"MEUCIGW3nNQcnWZp2K3/olzqjD5DQehWr7PF+EYA6O9r9LRlAiEAz5jVkMStdMzxLnusaBOz5WJXGXNanOxI/mRMD1CHNj4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUViSCRA9TVsSAnZWagAACH4P/Ane6IAys7c2b7M/gg0y\nDKsNTEo9GjS1pJvwVbtaF/BbftVmO6oxLQ3fpLYRnNHCUKL8CiU37n0GUFe0\nLAWAlekYfv/k7pPtGt3R+slesG84RQeKK0OqNEzt+/Ch/AKOoMw2d0f371qw\nt02vrL8Pl7SCj73OF4VJEtkaFSySPykvbWcSq4NQheew4JOjP8+PWGf2lCAP\nLndMG75nRqfuEwtCblFHz9MFCtKwTpBcDiWjI+jmL08bdC7gtKc3SEHi+VHj\nQOWHoFeB7p7Bc7HBzIyYVUdHHbIO2ltN5rtqZLsTnAvvJRgRI8BXz1P8Choq\nXSU82uJG1C9qGBu4QGEa86s9xT+HEmpP4AxTNCUMdkyjIBpTgsQnyiq6lpSK\njfgY9+1KPWSm6XXXRS0q0wzahsmmiRZ9wDmXF2cq38Szf41ObbVnXRfvUDdu\nVB0U02LM6K+XAipbix5ixs6SvMaun8PIfu+dOGtypAt8qdSiOziWnpnUM7Y/\nmu/2uHT/muEbW0MO3Q+ZRXPdJXTbcuocX/nD38KCZ/4fXVJXvcL5T+fu+H5R\nuYUmX1ZmF/Agqzy6bXaC5OMFMk+Pa+HypLeP9dK/E3PjqpQfiQcUap06nvO5\nMeJV33Bh8YiCXZXw9fWLaaWbkrOpteOCTeyYwrd6eAbt1GCJsvT+PnaGvMeg\n0+Xa\r\n=3NNJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b8c159d735641688e2fc1631ac7a98134ac5fbc4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.d3387f54c.0","@material/base":"8.0.0-canary.d3387f54c.0","@material/shape":"8.0.0-canary.d3387f54c.0","@material/theme":"8.0.0-canary.d3387f54c.0","@material/ripple":"8.0.0-canary.d3387f54c.0","@material/animation":"8.0.0-canary.d3387f54c.0","@material/elevation":"8.0.0-canary.d3387f54c.0","@material/typography":"8.0.0-canary.d3387f54c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.d3387f54c.0_1599166609442_0.5595194119653619","host":"s3://npm-registry-packages"}},"8.0.0-canary.2ccf996cc.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.2ccf996cc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.2ccf996cc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1e2c715ce1732fb7b2bd838988d2be6994e46a25","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.2ccf996cc.0.tgz","fileCount":45,"integrity":"sha512-oRhN1zKzZY1K8Rpax4iMMUn4bGYVe2w4h4mnIeAXoF/NMaat1GGWHRV/NXuxu/DBazylLegcOHcuUqyugtyQ/g==","signatures":[{"sig":"MEUCIQDZ5hkARpCF/BZ3xrqU0VygLviWKp81zLBDWAyIcMDN8gIgfMOjkLAu0IIce3TibUYK1dCrVU6weP1nHTx0Mo2G1es=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUVihCRA9TVsSAnZWagAA7Y0P/3dHtTF6DQ7BRh7mpXQs\n6+rdxiyP10PHMxJs22eYHU04bZRCrwXfJYy6gXvlZ9iHDF2Mz+wpMdMaNcO7\nyDlseYZ2z8vSfvORd25huBq1QpJW+mmt13FiwMcmayi4IC+eAb24rTkTbn/K\n2xANQcXqslBZeWJxtv78Fd5CPsEmRafyZwDQUiY1nZGiLWfnzBvOKSV/czTe\nefsXEQWWdJci/B/JysntT/zscE7p18cOMf99BVBlv8r+Mk0W1Z/eTFXVHQe9\np/6wPiKVBAv5avqUrEMlyLds47SPTwSNcElbMdmlDHk6AHw97Jfjjw93LlJv\nxvQhKtU9U4XABwVtRHya4rXmSrC0U5ROw5GiZXewWtka6ynio/Y/Yq0fYJAP\ngeNOWFKVintb01E2+IwWgfkDCdW93O29wez2ZH+E6vmNn9OhNjZeRNcNPHV5\nF/g1EB/VenkXEqah1fqKT/4Hv1WKocyD/npfJZN+FAD7fJl0oxs3ESFUSTpX\nCSZCrSrwscsTyplfxaDmDzdtUMBBx8C0KbttabpznwAg+/SGBFJ+kUxMW4Mv\n9YZ9pZQbevhcJERy7Avz1DjisTZoMroMmAaUAjUv6tJaJI+jwhV6qfPsUGV3\nVlJDUvtdqH+rfdjsU6okyFNAJrioA9OWXLoMud/6ws9Gv1KySZq8YZ/tJSE1\n3Fpi\r\n=WCF2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b295adf5299f65a654963fa774da90dad3e39244","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.2ccf996cc.0","@material/base":"8.0.0-canary.2ccf996cc.0","@material/shape":"8.0.0-canary.2ccf996cc.0","@material/theme":"8.0.0-canary.2ccf996cc.0","@material/ripple":"8.0.0-canary.2ccf996cc.0","@material/animation":"8.0.0-canary.2ccf996cc.0","@material/elevation":"8.0.0-canary.2ccf996cc.0","@material/typography":"8.0.0-canary.2ccf996cc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.2ccf996cc.0_1599166625102_0.5815267756908156","host":"s3://npm-registry-packages"}},"8.0.0-canary.744bfe5d8.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.744bfe5d8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.744bfe5d8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5866acd503d8bd4f0dd205f317726962b97866c2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.744bfe5d8.0.tgz","fileCount":45,"integrity":"sha512-EAeztSVcfJtES3dzxw77nOp4gtXlNVEglSRcf7otSRA/ZTWuJd1v3Kc6dAu68VjpHwF8XKJdtIof+qkzRhCwHw==","signatures":[{"sig":"MEUCIBw4gOYj5npXLk6KdkcnIdHaDMCdnChBYcCSic60z9WaAiEA+VTbhfXc6c8KDNP5LBrtTcj3k8tGVZZ81idxO53orXE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUVjlCRA9TVsSAnZWagAAMxoP/1bP4Bd6RUCIDOTyJ8XK\n1Q2XRprLMKVST5/4/wygbmtMGIs8G6oQK3SFtsZnQpA70sko8TUZ370QlzYj\n6ckD6McW6bzXfdhMIGF7By92IO7mAt2PWtD9HqAbHG2XQv6nONuZLGXt1rqz\n+ta3uoiKJk+l6HD8iLBGqWZqMZZuYkCau6mxPDqziUP9wPxpfHEzUKtHa5on\nxHwthE78LkC0Y57vU9ihNp3uSQsSFGMPsAEwgUEq+ELT7o2QQwRcZtplQ3ZR\nzbF0gkL3ee5jjPJH+uX3NBQbrts5mXuKANhFa/Hh2nmtNUk4HULSze7mTx0i\nb2Nb+gWN9zN+XUGH34ZpOWCy770xmeFBbKeWobiovqnpzqt128CcHv3xONDE\neiTX0T51TUN7vt8a4swXgIFrWWoKR6YGXId6zg4zKINuE/Qfhw66Q9P93Knc\nEVSz6idDeL1qnmQr5kMe3W4e8wjzKehwTRYGI4kh7TnMYNMY2XFjRP7gDbOL\nudT2a9CvcJTQS/rhgal/x0uOjkW4SqYuk5EqR3N9sR5aCgbUOFzWrzSZVlcs\nBziLDPe9SxM34sjJIdwYynN41tiat7oS7mGu2Ywl78FVYFod5Z5K9vIPoeMn\nP+bOMu6dR+FsnYQs79i1JZBFDUtr1UIv+S7ia3CTZripv6UB5wrgFDCRpkJq\nQf++\r\n=toCd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e8e9d5605e05fdd50b88c6ce659dc2ddd8ba768d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.744bfe5d8.0","@material/base":"8.0.0-canary.744bfe5d8.0","@material/shape":"8.0.0-canary.744bfe5d8.0","@material/theme":"8.0.0-canary.744bfe5d8.0","@material/ripple":"8.0.0-canary.744bfe5d8.0","@material/animation":"8.0.0-canary.744bfe5d8.0","@material/elevation":"8.0.0-canary.744bfe5d8.0","@material/typography":"8.0.0-canary.744bfe5d8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.744bfe5d8.0_1599166693439_0.820009952868404","host":"s3://npm-registry-packages"}},"8.0.0-canary.78da96eaf.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.78da96eaf.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.78da96eaf.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"95fcca406fe814734d38c8c50249fc81f70b7f96","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.78da96eaf.0.tgz","fileCount":45,"integrity":"sha512-HkaFO/oFjftFN2VqvmRJu6V761TKOAg30g+JhMxb3dbyFV9vQi3QCHSD2YEIEp+/n8ZkMP6Zgw98YKr/3jkvzQ==","signatures":[{"sig":"MEQCIEt9ZhsGZw9IvD3khxLEzPuOXfUC5P9QpTgQQXExnpeRAiAMBGWQTubIDSxmtioeh1xZnrKYOt7+TAte0UMES9ze6g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfV9fnCRA9TVsSAnZWagAAJZkQAJ7PANr4z0aQoyVPnEXg\nIv6nLXOfoHl6UakxZ9Xd3rRc+2cvEH5bvTCwzBTXPzqbMgYpJOUFVpPnuOOo\nYVbsOJSz4CM0CqtvXTnBOyoO7eG1Gvxzgxk8gsXQbUhReCePeLpoODAnF68n\n2NJR35kYLNAmI4FrT1cEgAF/8mZ+QhQFmckkZDN/yHSjBKFZqXoTuvXnFeWW\nGm9sd9sh1Ms2mxdSXde62ytUm2xaK1MTZaP7G6f5vgfy6oquPmfWEBVZ5Bbt\nh+7VS+0xILuiecv4e7+4ltmr2C7IhtRc66sBN9rSjYKe1MVu2pMo04kW79S9\nORSTbr6LsCwHa8fk7LLuBzMUX2PhjXeAkP7xHZVnTtg2YL+q0FDQWDniacjn\n9ucP/3w2jUWkbZK09x2G9H4M0Wm8OMVqF8hXSCQ3jTjTlZhk3Dv4vjQDg787\nNLY0mN+cRnIk2+en7YVROTzAvWCeLJMCgvBd5balswL11wPTW6cm34I4+AbE\nDx54hf5w0rsknSwkhkDGw5lp642awxzXELNm3mUb2lW84JzqC7UomAf1STXd\nWQHLpwcwWaFBwc6ii6dG9DD4/X0RjpLclZz3tpS28eq9qpHc49w5apey9y32\niUlVpowa/7EYbpHMQyZJqfbLVjUc5Sswr45Lytlt7/LNjSynDAunXJQIU8cv\ndlfO\r\n=+Xfd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e9750a8b0ebee9367eee7e514953a1b1ac6fef7f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.78da96eaf.0","@material/base":"8.0.0-canary.78da96eaf.0","@material/shape":"8.0.0-canary.78da96eaf.0","@material/theme":"8.0.0-canary.78da96eaf.0","@material/ripple":"8.0.0-canary.78da96eaf.0","@material/animation":"8.0.0-canary.78da96eaf.0","@material/elevation":"8.0.0-canary.78da96eaf.0","@material/typography":"8.0.0-canary.78da96eaf.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.78da96eaf.0_1599592423428_0.5465571281701507","host":"s3://npm-registry-packages"}},"8.0.0-canary.b0ed593cc.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.b0ed593cc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.b0ed593cc.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"24ccce5ef0650a639b53d1788c66754ead2141ea","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.b0ed593cc.0.tgz","fileCount":45,"integrity":"sha512-YQwL7MpUTGlwb2vvpinVWEwYzlGOhjGfvnUHvoAMZCL8OTlDSso+wNC564TdFDP46ydhixRoe03XJVmmVUqTSw==","signatures":[{"sig":"MEYCIQDHTCF5zYBen6xwxE2LgYYgNTjHFTzU5AxM3CC1twWv9QIhAKXmO/W08r6Vsgk09M5Lqx86oShk3w2fbwmapeI11zIu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWHNVCRA9TVsSAnZWagAAjrAP/330qD/mO83aq0VH4DIl\nv30FYqAjXUC1KtCIN5rF7Gtkg0LTxJZY6Xf0m52xv6HurEGtRJxTNbUp2R5x\nWN4JxFFG5VodhfGz6a0Lap2trpbtl4XodFlKnNdQkRBR6LHF5PiJyH49TRCy\nBrjrYRi/z5mhzLMu700isg+XWf/rHnJOUWq7zpJTFqbWa+3/dZIGMk+rXYvI\nGSes571vuJrifCfzzjQocou94KQw4SFg53KadzrLNKfKPjIYXxC1cKJeY/yv\nZqU0k7lMwbbw2xqJqnEmbEX5UoM7fsRstnxvtzrL7TuSQWSqN6DpZxMwmVfn\nnIWQnfLpMJyN+jk8ICCgLzXSmyH5oN2dd4sxza7a3MX00YM4tykByzCb0fZS\nDE87tWKsoSTX90vU2sznTvqlnXRaD1OTzi8PPZKiCZI43+4O3r9ECJW5b+6d\nFosx/syKTbOMlY9yzm07vnXUkNHFNQPoAF37foXQesnRddOV0vv0tRn69KUV\n79v5Z+Pby0bt4Ngl8QRM0I6YwoOAUOJVydvzoss16bhZnKJS4vB081qQq+m2\n72qt6GbOBdj+ZF1UhoVsgUMDraqV14TI0AiHU7qX4vM60PqowtC2ZQsctIhi\nJQ3qBlDk2QzNCroa3x3Boz8Wv3v3gWb7M9jZMAgmunXUbuT4shPiD9SedSs+\noMYY\r\n=Gn2p\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d4dd3b56db446c52c35f891f9a19896a2b762f0b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.b0ed593cc.0","@material/base":"8.0.0-canary.b0ed593cc.0","@material/shape":"8.0.0-canary.b0ed593cc.0","@material/theme":"8.0.0-canary.b0ed593cc.0","@material/ripple":"8.0.0-canary.b0ed593cc.0","@material/animation":"8.0.0-canary.b0ed593cc.0","@material/elevation":"8.0.0-canary.b0ed593cc.0","@material/typography":"8.0.0-canary.b0ed593cc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.b0ed593cc.0_1599632213451_0.02762278441932242","host":"s3://npm-registry-packages"}},"8.0.0-canary.85a1fa9ea.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.85a1fa9ea.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.85a1fa9ea.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ff1c311300c56ab2e7f1f03a529af91ed5a714ae","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.85a1fa9ea.0.tgz","fileCount":45,"integrity":"sha512-pfHQ9Rut/XQdcjULEZQoxlyNX1u7sbzTSl7qvddxnY+TXTNRhBR44vjPgdtvFIpQ3yxQPeYXokxdPgYRVSusbQ==","signatures":[{"sig":"MEUCIBf9A+tOiWmGvr3LNCm46FzFrnPnCVp/cNNUKbeJkBfPAiEAqSjfwNrq4AKvIHcwaHHeBK7GhIPD/p6qPEfdFUsEcQU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWpaECRA9TVsSAnZWagAAgxgP/iIcDFMulNVYwEPqO+DN\n+6GmFc7Jg0pBNnlfgV50ErG7lfMoZYbzR7aad2gjxzH/zC+s7uSupiKsrj+i\nOk8H3ALl73V/l3IDm7SKvFTWlO4uZnJTmfSA0+rXTtHSk0ZxWtKpXu7a0ckh\nvUS18Bya6ZSR+zCz8NX9gGc5HKqMjnNoh03Fqvr0CrBlBjtnKdeOFoBL4G3y\n/44dbn6e11F8c6nSLZWBHzDhlglycgmUhx6zwb4BPa8F58X/5HVATeTCUryT\nqJitYiFkEu/mvVTRuMV+ohW+kEHNa5mNT3CmFzmOXeQlzh1vVm3CPdeQNiZ0\n1WMNpU7TVt5iSfyhod5LhtoxReKN+PN5YGsNrefZjxZ1mB7HTNLfo+QmWl97\nEQRgcYHeQeaHgi2K6GjTXxD/uykp+gXBggRlEnuOnNYb65ClsN5LkL+nJWV8\nXgX+lkLfbBpC42Je8lYQScgV76J5YWFl4xJ5FEyV6H6M8/Iu6CRBT/BFSZvo\n9vzlruiDTCDfOKpAejPVWr91/DEweG/m0viOVZi/+VPsx1tl3MV9qhqStoUY\nG1qHVSRHWpCNgbJUDENJ8IA22hKcG7BK2npBEef68Q1smSwyc6pm+ABVRRsM\n/ZbXVqVoPq1mSMQPwotcvq7BNje9f0HDU0JjhhIlxTHSosbS8DMNB4KhW1YB\nDkqH\r\n=RwJv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"96441cf0eac61122c48c43aebac2e249d5bf492d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.85a1fa9ea.0","@material/base":"8.0.0-canary.85a1fa9ea.0","@material/shape":"8.0.0-canary.85a1fa9ea.0","@material/theme":"8.0.0-canary.85a1fa9ea.0","@material/ripple":"8.0.0-canary.85a1fa9ea.0","@material/animation":"8.0.0-canary.85a1fa9ea.0","@material/elevation":"8.0.0-canary.85a1fa9ea.0","@material/typography":"8.0.0-canary.85a1fa9ea.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.85a1fa9ea.0_1599772291823_0.14061308319086896","host":"s3://npm-registry-packages"}},"8.0.0-canary.0bc41a9c7.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.0bc41a9c7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.0bc41a9c7.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d1951ea77d94337d92b57d252242099692204ba1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.0bc41a9c7.0.tgz","fileCount":45,"integrity":"sha512-q+ZlMvbx0ApqhR5J9G58MdDePB9OOwUCXtW52UoJAN2l9TbTZbF2nSn7wm8AWBeJEWEf0GME6PV8tW48oiNtmQ==","signatures":[{"sig":"MEYCIQD3WK3QoiEtGRrvGnKI2vAMGMvD3RxBvPj/oTnQDoSJ/AIhAPEO30UrBHHVCsLQ45MFgRO3dcnZLG531nxE8spotyzU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfW7j2CRA9TVsSAnZWagAAdD0P/jEqLsu4VArP2u9Xxn8T\nI0wW3Xeu22hicKE7heItd/deh9RncDYSsQgud857M9HzAITnKnL6oiJigw0B\n+Gm32PdhHOOHO625THTLgTmLK0rgwa2ywDjnDtELl+j9lMYtjjmBgsXKJqhe\n89E0O1XI+ZX9hlukWPAJFgPkF9OUmCey8UYIBEJNroVbHHixbyYp07iIcvsG\ntrHGCnnkaZj7cucX2aJTk9rZnfV7AboePXh6CDSzSsW+wRT4k00SkbOl3HkQ\nvbrhioaASFrUbGoXq8MdOwDLj+9BIrrPs1osuE/ONdsg9l3js3kNG2vuorXB\nkcIaqWazyI/8tiL3Sh1Cqd5jbGqjkVIumI7Zojgl+LhUbMiYJAoEAD3BOgy/\ncUyoSQuR+pOyDLQLdrIGTxAFJNuP95bY4GSRc1x10Xu309JSja6S4tg+aD9l\nX8r1sRY9JzKeMnKLrEfYo+az8AEIAEgazulv4apFlpFQiupZgyzMbmjgIZko\n2pWC/K1WGE1ZXd9vPKGLIX55RubRFQMV1Yn0bRt1WCQIZhQDBbj7zyHbL8+s\nlNBWWVJLSmdP4PXJZk/RY9OWt8xAzJOCz9fkT1JcUbXJXJ0tgwF0LbYGzR3A\nw3daZkUEzS+knQxhSr12fdVZ38+uw9OAtCMIqUmKtc1OufI4KuGYFh0WdLKT\nEPjo\r\n=pRlz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f9e2c4fbe617a115d220d49782884d15a0d9ff51","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.0bc41a9c7.0","@material/base":"8.0.0-canary.0bc41a9c7.0","@material/shape":"8.0.0-canary.0bc41a9c7.0","@material/theme":"8.0.0-canary.0bc41a9c7.0","@material/ripple":"8.0.0-canary.0bc41a9c7.0","@material/animation":"8.0.0-canary.0bc41a9c7.0","@material/elevation":"8.0.0-canary.0bc41a9c7.0","@material/typography":"8.0.0-canary.0bc41a9c7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.0bc41a9c7.0_1599846645902_0.2099577703207065","host":"s3://npm-registry-packages"}},"8.0.0-canary.fc0eb5013.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.fc0eb5013.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.fc0eb5013.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b54da3923519fb39b00608efa4e30f7153557d47","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.fc0eb5013.0.tgz","fileCount":45,"integrity":"sha512-6p503Sc86W2SAfood+WxRtzdGegXhiWwM0XKP8JvU3nj8rb8uAXExI9iZVL1eYj4w/wjuyvxFuUMLhC4AKQ8FQ==","signatures":[{"sig":"MEYCIQCwbrqe3WhhlC5ciP4m89MUIDycsIylqPGKtTrX/o/CgwIhANJQBHWKfUtxU7jVdUCc7aGl6kOyEEPm9vBpQHHt5q1K","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfW9ZyCRA9TVsSAnZWagAA00cP/2yjm47X2dJ29+6i+LpU\nAF9VP89PQWSjunZsXibzJJTBspT8Kj1T4AS9EYSaEVn95EFboMisiRrw6Fub\nHVJs81gifj6GK2EnKVaD6w2DmqfCCOmeUh0G2SIftGDcyq5ZWNlwbSgsexVL\n6RlD7QzweDuHqz34vb+OvRqYR+XKbod5dxY09X59OWEb4FYXzCsen9eA3FeW\n2FfVwaFW+d3JqAANHkMQ7CkemDDwuK8W0/EW9xsCSsemwu9j5ODuIwI9UwMl\n/9TWq1BOFy9UaFMwXFlMDjq0qbt31RETgTBOKa8UCL0zT4eg7/0Rz6wPfUWJ\nizOkkLWiN5Mp95Kxa59h8lwFMn2OzF8L5GxMoHNKnwZBr0U24X8V3fUd+1YT\nDpxzPczIANWgN8bICc/4pRnms6WsBHzr37x9rx+qT93kr1DC5uoHlybu6EeT\nbTCLiRf+7iPnPev2IFoTRjGqcMvyWM+JsEzEqr739aGRspTV9nQQZcTYg0TP\nQwJQcsp8yy9CN9JDGUEsfIiXoChoYQwcZL9hosQckAQyWeYTkOJr7N5I0Lua\n+BzFF5l09kPnLVaEZrziNv8GDGnDa7enH4Ff64l7M96eeOMsFECfPFZRtSmZ\n0f/xtRHXmS6vfvP40woCG7ql+OlFCd7/5MYz+A/HskG2n6bbVU4x8rKVY3rb\nKqy3\r\n=mRP8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c6572140acfb45fa86b79570328d75e3869c40ef","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.fc0eb5013.0","@material/base":"8.0.0-canary.fc0eb5013.0","@material/shape":"8.0.0-canary.fc0eb5013.0","@material/theme":"8.0.0-canary.fc0eb5013.0","@material/ripple":"8.0.0-canary.fc0eb5013.0","@material/animation":"8.0.0-canary.fc0eb5013.0","@material/elevation":"8.0.0-canary.fc0eb5013.0","@material/typography":"8.0.0-canary.fc0eb5013.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.fc0eb5013.0_1599854193746_0.07323480357333123","host":"s3://npm-registry-packages"}},"8.0.0-canary.319bf66de.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.319bf66de.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.319bf66de.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"eb1f0179deb59c21827045896f1e0c60826d8bd5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.319bf66de.0.tgz","fileCount":45,"integrity":"sha512-NZLSTNCpD+jf8MvkOXtWwHeBwm8JbmUBhr/H2NpcSCTXRl8V6xG5BSNafqoZOptvzHQG44YU6feDknyNOo381w==","signatures":[{"sig":"MEYCIQCdKosiCgNLljLdLm1yE1JH6utSIdxl+FPfq4RSF/+VHQIhAO0oAChszXX/2kkQdEtkQHct06emdmXldPsB3Hk0u7/d","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfXAQSCRA9TVsSAnZWagAA3kgQAIJjnZiL3wIe5GMxDhHS\nlkpCiJhfQxsDDJz5G4BLzNAefJJYAximc+///jNXgdP08+EMp2+ocO9dN6IQ\nz8IeLMM4l8b8q2L9EJZywb7eac8FnYmcJHvX3BmvXOVSsFDlR8Quh2Qeon8f\nlBUrHm+HacHO8/vDRIg0CW2LvL5aTOCJZ6OKRS5QWyxTHYTXk22I1tHbGghF\n3n9xOm9CTkWSBXCvT8dDt12lmdFCjqYpZ6/iLwlKfbM2xwALZnE1G+u4yn+T\nB9ezmVPp7XImpNTi1NKiiK7j4cyeLdYIuXs9RJfB7M9Ro1pZIwOj/17gwn70\nm9xkgW+0ZV8mrsim5M0rVC6l1aswqJshD6uWuDv2VwY+9q9dDYwzTCI3rpUS\n57t8hIIkJIZoql4T+8uGQFvrC1buJ3rlFRoJGkDNhnHSn/+YTL/Qb2Dp32jY\nnL8NfAt8/qmC6em75tSWwVn2Pe/qK5EWDJFs1mmVaCB+pQAHCThcrASNjqGe\nTztTUT8Tc8iLFqms0EEeTyktx7W79b1ws4IbM+lFoGArdbRrr83KZ1tD5r8W\nqx0vSybBaiWx/gtgXbwSkBif40L75WhV/R9KgHiGtI34XYw6v7CKD3MFC9eq\nkEMBTGV0ihdRmufclbmDrBxC+TZBqvVHWLh7AMwqWvSnqLrzoveIKgY2O1I6\n4cff\r\n=AfIN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ba4054064292bafde40e53fcc87405c8dcad24b2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.319bf66de.0","@material/base":"8.0.0-canary.319bf66de.0","@material/shape":"8.0.0-canary.319bf66de.0","@material/theme":"8.0.0-canary.319bf66de.0","@material/ripple":"8.0.0-canary.319bf66de.0","@material/animation":"8.0.0-canary.319bf66de.0","@material/elevation":"8.0.0-canary.319bf66de.0","@material/typography":"8.0.0-canary.319bf66de.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.319bf66de.0_1599865873433_0.269435852646152","host":"s3://npm-registry-packages"}},"8.0.0-canary.5bfc305ec.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.5bfc305ec.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.5bfc305ec.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"acef0097285d8fc62d07abb615246a2e27d20982","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.5bfc305ec.0.tgz","fileCount":45,"integrity":"sha512-Ji4uT78o30JyMnZbJNyFlPPcqJzLsAAfref3UU2S7X81qWgMyYCLgfc+oLAYYu7ll3PHtv7w87ox6c/DQQlpZQ==","signatures":[{"sig":"MEYCIQD+KIwL8vH+FeSTc3cJc+hU8FPjs7uSJxdKvxKpasNkKQIhAP5lE/huHPFa0FxxJakMcUBnxlUrJmtHtL+C9Jjf7Q/+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfXqSyCRA9TVsSAnZWagAA+ggP/iDfUnHCupwkMjgX4cus\nPCXL2ris4xJ1L9L0i0zVGpHr8sfZOQCmscz/Z8zhHWnKlt+GPnd9EjrtUW8I\nVgZM4vSuSDClav8dh07Sr+F/0u65ybKaSd0LDYBcZg71fyeWDaI/BWEjSI26\n+IAENzQg4vDo9yu/bmZFMbWV/gAQ/YNTgucuQAGaxSCO/gG+BdJJcbDjBE8+\nV1F7zfBCbynaeju+ZwM8JMywG8lD6qq1wpAF9qKzu70arlZZJIde6bsok2ZS\njvoqrWEZ1D7HSh8tmrgq4w4t17OSjdsi+fKTjGeb3neHSJLB80YxnQ6j9Zqn\nNVxJSxdq8Y7xNY++6UI+Yhj7DURoxFCZv7Q1/lWhfp6vU8XyFXQe4YkbgolN\n5j/+gpsxEdkMH/1EisoxOnr3fM8CIVOPH95k2VoGD7qndbGA9K87L3G8JyVF\nYkPZARj0sHrQeKqmp/7CtN2UTKN4CdzNvJssmratbo+V6AHiR+VZch01/ahE\nZsGB673GAWalWxymr7utjV15YAleO8FB7j4eY8+bbLjeCJ8VYV72qN2tOkvM\nOFZ0WE1Lr7rtDqlyLaAcan13XY5sOGERv1udmf3uw6lB9pG+wo1T+5W63Cm6\nb6QjQZtssd2vlS/vcJAD06rRxl3C15SRTn7rngSQRUSYV2y2HzJhxL0zzHWY\nA6B2\r\n=7fEz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"96c0c187c7fa544c1f5303e96ba3e85cba86e5c2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.5bfc305ec.0","@material/base":"8.0.0-canary.5bfc305ec.0","@material/shape":"8.0.0-canary.5bfc305ec.0","@material/theme":"8.0.0-canary.5bfc305ec.0","@material/ripple":"8.0.0-canary.5bfc305ec.0","@material/animation":"8.0.0-canary.5bfc305ec.0","@material/elevation":"8.0.0-canary.5bfc305ec.0","@material/typography":"8.0.0-canary.5bfc305ec.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.5bfc305ec.0_1600038066263_0.45618544857942567","host":"s3://npm-registry-packages"}},"8.0.0-canary.83d83f131.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.83d83f131.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.83d83f131.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e408de5601dadad411e8501c2de9d88ee1bdea29","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.83d83f131.0.tgz","fileCount":45,"integrity":"sha512-rYqMZU5dVwqMLBeVyNcW5NBbJtktzVfpYVQrpQ+kAm8K7eAzslvcUXHIk7oGkSq1rtlu2Kr7j01uXpOf9tqDLA==","signatures":[{"sig":"MEUCIGp48/2PpzrS7Uz9r8eJFld57LaJErZqDAjPSF9WztT4AiEA+hNkLrp4dwlGoDKRMe2mEGTRI29cxkv8sjbHMx3BCDM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfXrpiCRA9TVsSAnZWagAAIWcQAJnB+LGrf2AFFMYCzXx3\nx1ZlVASAXUZtu1uVXBh/rxPmPkIPrpQ9S3bBGIAtkacZ+OhqiSOboS8oEEh3\nT5wbGp5EXEY7HqDDZquAiYao6pW9ci1W/C5GGijWDrYr+HthBNibS+4M7cVf\n0u9du9V5xkyzwTG7TNcpgi6V4MWK3oVDVuB/LvTD86Sw0SK5DiEiU1ypV1AC\n3sh5D35tSPYUugd/03qmpnAfdVerQXkLVE/V5yzu6H8icrl33ZR1d6edIAGs\n3QtigR3WboX8+tYKHDWZys8f3ffaFX4m/Gu1DqkxOLFERvd+EEGXDi9/FBhg\npBN8nosqAbI5LtK831gvpZl6B6s9pU0sqaeR27VsvU4tHGHsrkTFnTUCdl8Y\nY4VxRL8/xjhvGfJPV6ewL9fOmI2BlCy/1526RXtD1OeWKYXJ44Tidfr8O15y\nNE+a0EddhaQi9PMslbIMttRN8ZKs2mieoG3gNaHuW32GQTiEGKAg/wP1famP\nmDGQrtKiz6+WNAbuxEiISsFxSZXeABOhDKxXJlxq3OFYF/9f3eppwov3LySU\nWwVyUtcSBRBoVTBYaZigM6B6tZJlVcsx98xXRgsyJzQqehHCYncUcF6zBKpb\n1frTSlHeH2zplZ17JKKrJXjUo0Fl7GEzzUxqbPzXsqThYJ87lGOOZC/V/75b\nWxa2\r\n=BKoX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"520e8b604c3cd3e7ce96b30f4315d576bcdad3e5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.83d83f131.0","@material/base":"8.0.0-canary.83d83f131.0","@material/shape":"8.0.0-canary.83d83f131.0","@material/theme":"8.0.0-canary.83d83f131.0","@material/ripple":"8.0.0-canary.83d83f131.0","@material/animation":"8.0.0-canary.83d83f131.0","@material/elevation":"8.0.0-canary.83d83f131.0","@material/typography":"8.0.0-canary.83d83f131.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.83d83f131.0_1600043617962_0.9186631775175045","host":"s3://npm-registry-packages"}},"8.0.0-canary.d52b165b5.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.d52b165b5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.d52b165b5.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"932f2fcf7641d582811ee257ce50f44aefe06171","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.d52b165b5.0.tgz","fileCount":45,"integrity":"sha512-3K7/mWn8v5wq93jlgwYdLiybF+5qf+7w0rAkr8eMr63KzlUrCHTvLAmf9YxlD5yEcAcYnSO2mA7pUAn2tGQqjA==","signatures":[{"sig":"MEUCIQDoilGjuI1c+0oaqYnZSAzIXz4B3dIhpPw3vLGxmreI9gIgYdW1wbH8Ig29InhL8zOvhBQ9ENwbfbbf9DPGz3dd6LU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYNXZCRA9TVsSAnZWagAA7vkP/iyCODshfhd29NXbomd9\nvXXnF9eT/7s7DBujSXYVEOJR6F4ghniRGVqr62JQbb0er0IpvCrLpoWxaK61\ncPM94HdjOcOmeJVPibdIyT3ALJvlAlxrCNwKNE7HZ40TY2uOGlyOL8OB+rJY\nsTgkKvih+cc8dslxEXa63U+UeJ4jqMvsa4bFgKmKjLZopbvaLXUezmEpv2l4\nVztIizHRQ3JDyB2FDNe8O56j4h8nNYMCQN+klfPOudZAJ5zuP+2I8+28zltu\nJMvCPo7xMWhzkfvnOgMpFpAxpzftiC0v1JpQpASTB/BfgUZhm/Mj/ezZHsjW\n9n40U+iWvJoNRG86Xd29lfhUJuRGc1Rwo7B/ybK/6t6aABes7Kb3VgBelVRE\nbpuXGogxkVF6rj6yvIblbV3EMq5g5YyEqxTDauFK6MMtlJ+Sb2G3SYrxukTU\nwihsz7eL+BzFlc4Jdj4zwWokjHYcplHq9GJ9BtkEO19QflvKauqTwF/prt0s\n7MTIxhjDn+VyD9g7hZgkHcNUJ9c3oybzpV2KjMMTOjvwpxwbY6L7IauT3ldy\n072wGoq1kFpQJmpevtP+yv07tcpuwR+0CZExyKPTFVb+n1hQ8aWCN9H5T1ss\n7boC5ChToR5gkeiBsL8JrIiO2oDFB3L6tj46YRSF9WCT4yJoZyY2V9HpDnfF\npSOV\r\n=R+z3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"19ac3399f14583da3b2ca5e37a0ce783539066ba","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.d52b165b5.0","@material/base":"8.0.0-canary.d52b165b5.0","@material/shape":"8.0.0-canary.d52b165b5.0","@material/theme":"8.0.0-canary.d52b165b5.0","@material/ripple":"8.0.0-canary.d52b165b5.0","@material/animation":"8.0.0-canary.d52b165b5.0","@material/elevation":"8.0.0-canary.d52b165b5.0","@material/typography":"8.0.0-canary.d52b165b5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.d52b165b5.0_1600181721047_0.03224345489454694","host":"s3://npm-registry-packages"}},"8.0.0-canary.a831d4799.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.a831d4799.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.a831d4799.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"579446b6a208eff6e4df1bfb1b2cdf04be64c3f8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.a831d4799.0.tgz","fileCount":45,"integrity":"sha512-dbohOfktexLTEnp2wZnMKB8M3Hd6u9U1CE4O14+HX7OiKUFZoClNf07GmITRea11EWUD4IGAfdWjMjAnqEz+0w==","signatures":[{"sig":"MEUCIQDzAkV5JFuDnbu49d+xvGneQ9hMIZHlGoPtwTm4sPQJbQIgMa/kliqWoXm0OKFJqQpsJPyYBi6zygVor9j4hNh4LtQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYP9vCRA9TVsSAnZWagAAq4kP/RNBZGcQhn6NKN9ixh6/\nO7dyeR2Igm3okW+pqeZEDC96nxzfbvKS9Po//0QLpy8uMaFF/AXdF2W1SFDv\nmuEYk0oWMUEO0unmVRouxGJyWCZCk8duyEm+7txy9ISrS2Q9JsL+Ynn9d8N9\nBTW9RbEk3LQUzlp+Y4J2Ih2uOuch4ML0fzJOAYeYf5IYQqz/59f+E5kScDLG\namhb5ebvP3vhGeFdjTot5mKyW50nyFtWc4cF2vckLc5cLUUhdQjpd6aeMGfX\nmXDwK/8ZB+irxNHgemn1sLCcB9tYNyS05j7rfduZZK1umjKsHRiy5o0MqsMk\nbENflkctY8Sy1X8KXjWvRZC400Jll3+vFIlPki7ILM6hPPD1TFRZOcWvYOCY\nCI3rVx6UWOMVrWRA5O6rCPlc+nOzfzNygHFDE4C6gajd/+ia+d6SaJmalMq7\nOAcqnPQcv1szMXQuqPE/KOqE75ZDxcnNbAxn5PJnaYUOqPHcWF8E7H3AFRgx\nwCpC95f/fvkjnsmdCuvg1zZbA+KEOH8AzgIojw/QL6+CfipdRoR5/xnmA33y\nmjRBQuQfDQWjOu6J0tCyS0Ump39UhCkNhXDu3yQYY4YaF4kGm07M1XK3aQfT\nhesar5I0lD7MR4q4y84ckBCPDi4ewoXCf2KEWslYbGyLIdjAvJAXA0TftmFY\ngV9Y\r\n=ulDW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fa7f461e7963e1bdb73e7811d2f70b0a07acba16","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.a831d4799.0","@material/base":"8.0.0-canary.a831d4799.0","@material/shape":"8.0.0-canary.a831d4799.0","@material/theme":"8.0.0-canary.a831d4799.0","@material/ripple":"8.0.0-canary.a831d4799.0","@material/animation":"8.0.0-canary.a831d4799.0","@material/elevation":"8.0.0-canary.a831d4799.0","@material/typography":"8.0.0-canary.a831d4799.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.a831d4799.0_1600192366835_0.5591495212376358","host":"s3://npm-registry-packages"}},"8.0.0-canary.a306aa488.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.a306aa488.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.a306aa488.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e7a9144aecca3beedcbacf3abe5949dae08021cd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.a306aa488.0.tgz","fileCount":45,"integrity":"sha512-mT/s7tnto7hdEVTNAm3l0axVQMEzx9obmrGfvLWaOsd3nvIz1k1aqL73WvKgS2axEKb8q6JXeAKrowUxBxYBsg==","signatures":[{"sig":"MEUCIQDQf6YrlSvtLlwRrB5sIqo1riK+Cfuc8ksmag2qaWLkbwIgZr8QGYJdiTBQ/PYB2YZJkE3Mluu5au/wdzNUFD73fYQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYrUACRA9TVsSAnZWagAANPoQAIyGGgfTfDcZF3dSmypw\nH5Qvbz99345Vth+HGzMe7glKGm2aDybtST/iXDAvAi2kQhb59RcEC9k6GFTb\nT9I/seX/P4S23ie5f/dA3oRJuYsqcnjuoCJ6xQm3+VQi9HEY8sLz8X7wPiQ8\n+vgO71DKQ6iNOy6aEyjvcPMwqLqQXxUgCAsmPPTA/ts2/7PV01o01BYwCQJH\n6XdK4BLugWI94Z758cenSsXXy6pecjAmOasKEA/zsOPa/AldudsQRKEwoYpe\n+LHS+BRK5GJzVkeDzDG0Ho5AOaKw5+iabC3dkv6n++purjy1v/2cR0bjItjk\ntEfEhME8yfr7y41mHeLAJQ+M4jHOmW8VBChveLXmL7PsaG+gZjLFxVCRUjLd\nT6tHIHDIVE6HRi95F+R4ME3qenVOTJnSs7xVoOwfE3wdF3HnUxgo8LSsgrWf\n0bxsIX+faw19IDOFCmItB7brkuBdWQTP3GqCVZrCIA9bgHcKjhJ+vaMl/KPl\n1bDI2iZXQQ8fIas6m/ERte3T0bEIx9Vo2gl8ODWQOo8QbtLPJyVj5aYSzPdx\nCHEM97no3Tdpq9khhw3QhNzeJFU6vezrH95XeTq30soajgDr86dr1qq9KGcZ\niHmQJoeVCK6uPJRgN2NggWOBwbWAjfu3Ba4TEkGFY59LEy5jUN3s5fFXhc0d\noWmk\r\n=yEf2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c6addec60d43eb106ac774211ca2af4b04d40f1d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.a306aa488.0","@material/base":"8.0.0-canary.a306aa488.0","@material/shape":"8.0.0-canary.a306aa488.0","@material/theme":"8.0.0-canary.a306aa488.0","@material/ripple":"8.0.0-canary.a306aa488.0","@material/animation":"8.0.0-canary.a306aa488.0","@material/elevation":"8.0.0-canary.a306aa488.0","@material/typography":"8.0.0-canary.a306aa488.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.a306aa488.0_1600304383648_0.1350506407207277","host":"s3://npm-registry-packages"}},"8.0.0-canary.fd608ff66.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.fd608ff66.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.fd608ff66.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"610de8d4d78d8ffc0f6d76063227f4a7acc28f49","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.fd608ff66.0.tgz","fileCount":45,"integrity":"sha512-G8/WTgZTALMUNqeih/bHbUjXY4gMGWjTrEa513yKE2V0PVXrhl9QnsV7EjFFf/KC3gqVjSwLqD37ZaifpRRRQQ==","signatures":[{"sig":"MEQCIGJdSmBT2AbMtCxR5Xv1/FyLz513h2h813Rh5bG5Eq2KAiAxAVWS5AMdizj9nk/gbrGIiOK6i0FuMIrlsKUmSMzY/w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfY3IrCRA9TVsSAnZWagAAU4kP/2uhJjrHSQoGy8107p7H\nxHNZx4voxAHsrNDfw8DF1E03OSYcTnn0FTkBNAxSm9j8hUpGjbWImJGW7MPP\nIGd622QNcBrl9aqUTgwsHuh4/ZDjF7dcCx75dA21zS1QB47uAMPdAsbIpJBq\ntVOa5MuPxKHwpNx/Pb9XoL54pOefXb90iqF/Hl4prUG6b026dbQQrlnR0nV0\nnKdgXjqOq3D4n03LN8jXZCrBQ3mlo5NQdXWi3wRVtAsvUnK2KfwyWAAoAn9F\nZMs3Y6JYWbl+RCc0I3JWhy6XYw88rsvTRwd5MgVVybNmCSzR+HKHwlc/jTLK\npfkjxq916SUp2QUt56+ZOztM7qMqRP8Mrt6QaUAV1MMzhzkerdauNNB7ww4a\nT+GbLxIdN7sx4zgD4QurbdUA6BbKlQfLvJVGDOw+vHlgaI3SUOLIGGOxifgf\nnR+pcvQEn4YzRW4earvihKnMPv67zuUt4oH3Py+iiviI3x1jCMTV3q3DLaEy\n21Y7GFcYPmyPgesQPpICRAr54Az7Sv7iZlVPAzQasfNHJKWv7sKzIdsBU8sd\nzdoPyKR2jaBS57LX8Uw0++NzuW2qZ0AUvz8OoeSvtgpP3oitwbzFJ7CbLMJf\nLvxA4JG4MfhJRD4CogBD/hR9nV5YoFUes2A352i4dSWn0ukC1CBBj4+0Yn7f\nONuO\r\n=8A/z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"03ec88b3967ad97da4309b1dee0b9764edcf89e1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.fd608ff66.0","@material/base":"8.0.0-canary.fd608ff66.0","@material/shape":"8.0.0-canary.fd608ff66.0","@material/theme":"8.0.0-canary.fd608ff66.0","@material/ripple":"8.0.0-canary.fd608ff66.0","@material/animation":"8.0.0-canary.fd608ff66.0","@material/elevation":"8.0.0-canary.fd608ff66.0","@material/typography":"8.0.0-canary.fd608ff66.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.fd608ff66.0_1600352811481_0.9581904204368139","host":"s3://npm-registry-packages"}},"8.0.0-canary.3e435ba57.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.3e435ba57.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.3e435ba57.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"17f93be74f82dc2cd47da1972d3a2cc71e5f4f50","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.3e435ba57.0.tgz","fileCount":45,"integrity":"sha512-4PEucLLTWmg9ynWgpd0AIRZz+UbQBkd2Vn/10LTDL5IRApl5Y3/PF4egZtTWSgp83aOE1Fv6m1T5wVUYrqLcSw==","signatures":[{"sig":"MEQCIDcEN505tcLbcehjbwPZjp4ARd2NsT0jl46ScoOmIZyfAiAVZikx7oTIGDlqkgJ2+VxqGA9P7Yaal3YK4aQ7aB30Uw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfY3Y5CRA9TVsSAnZWagAAQckP/iZDmGEv0S8+9/jMRdfv\nQJbKek/jBQdHfJ+Srx6yxczoo5+wz/o49WND/p0u6KgxQH3gz3jm5C03dS9w\nuMf9zItMQSthJOD23AzAXdL8i0q14emRDppW7wYKFYfFqcEDlHMsA+hw7pQB\nioOua1HqjqqA7XLSQg99mLdCeEPu0ArFWUVUAxrGmk4+7z/QgBO1ceub+yW2\nr7Z6u04R6FreV4VHC8lRibN7int+v/Jzr3L1Bf1RyfW3XHTS96jmeKlTQMXJ\nuMYaVYBzm1QvGo/ifR2XcuhQststUpFnOnu7wi/dhn+gox1RPazrnVjiOBJp\n954PW3ilQp2Et5Lq23uTLKIdfzdzZMiCuPFn5RkjKMEaJQ0q0mMFTacuY0EN\n0U+yFbUdDi1ntWqSStKQce6UM06aNgoqdhbwH/x9Gu+AhNQqpst7vR81K0q7\nyZHJ+0gyDVFmjjKTFQu4O4AH2n3Hd17IJX/dMtEP7Gcq8uNcS05RZ3CGkiW/\ntT0PReJv5lN9CijdB7GeIQqg9UYHC/OPXWQLpzdrbfY+V81XxkRN3xx2rYiq\nEsHdmwL+WizTl8MZXfbH4TkQYDlItD7d0AufaQwPuKVoeQVeQW4Ugf2jlU31\nYlTsynxrFSHUIWDjTPJvztmBqzpKORkrLsUWd30+DQaVuvCstudZ0gQnl9KX\nfrqW\r\n=ZTKz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"15ff2ccef4cf94fbadfb06cb750ee6de035cdd19","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.3e435ba57.0","@material/base":"8.0.0-canary.3e435ba57.0","@material/shape":"8.0.0-canary.3e435ba57.0","@material/theme":"8.0.0-canary.3e435ba57.0","@material/ripple":"8.0.0-canary.3e435ba57.0","@material/animation":"8.0.0-canary.3e435ba57.0","@material/elevation":"8.0.0-canary.3e435ba57.0","@material/typography":"8.0.0-canary.3e435ba57.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.3e435ba57.0_1600353848458_0.17050640620015933","host":"s3://npm-registry-packages"}},"8.0.0-canary.c250ec52a.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.c250ec52a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.c250ec52a.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"624195ca399dedca069c107ac307790511d0049b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.c250ec52a.0.tgz","fileCount":45,"integrity":"sha512-o7EQ+iLYIfKtvnm1hHh9tu7co39dahK/UmGscS4FhtraokflSYOwQnYWmWoVFOTdYABXotCn6gMa5DWOKRENVQ==","signatures":[{"sig":"MEUCIQCYK1NC/p17ItMG5629Cpw39lu0wMtaOJXpyXFbsWTkRQIgOZq6KLwYsuFQwnptXRWbR9g34kq3z//Frk8FqzCEe/A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfY8LuCRA9TVsSAnZWagAAUhoP/376k3aBGH7X1uWwLN26\npPxTts+leg0xWOJaJyGgzFJJVsmQJ5jkKrZ555RXPXchawg7l8+LR/NJOSBT\nA8IL0rQF2eg0DeSPTnn/IH/brOv5vy3+RXxIP+bC5aFOUvtpHwMDni6XPsRO\nXv0ebyc9g3xhjq6TgjLeFffNOoYKCzEOCRTt31yMx5j30tMv27eUi0xdhGSL\nNzs1xCGbVYejRld4tcJ6Gyw7rs9+U137mnSzgsdhf2Z8VVJi2dS6xrpAzQKT\n6tQM4xR93F+GUGVt03C0rAugfcY9Uc8xq3w2qtnn8ReXiy65fS4B8zoGJkxN\nkeOy2046PqY+lkhtqps1EBldOklNzbq/e+nHi+lZu8H0hjrWyPq3b/CcMC4q\neAMezXCOiC+l8G6lONUhOztvADlSaQhXOUxPzKx1lDKMitEv5QqR6+dxjNeD\nhcghjsS7JGuuXm5rZIkCOtj4r9WjC05A2UJ3LnA83r9BPoF7S+ivj+psl3IA\n6c9Dg9lqiaCn7siBIOoXutBF/Z7WKd5AyD2+zzBxpxT+P8FgkSwAQEZ4FeY8\nx1gqwymCbQYW0S0NyaVP14yx0cWbYcCAeZHuuRPhCShKwBRjTYLMoywYDMHJ\n8dQQ8fSfHKfWnLuCKh08gz95iGo1Tl3zUw+syLF6DGxi/ejq5cLxelia24kS\nLs5x\r\n=XGq6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e214ca7cd3c1a65ab89d2fe2b4fc899aca418adc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.c250ec52a.0","@material/base":"8.0.0-canary.c250ec52a.0","@material/shape":"8.0.0-canary.c250ec52a.0","@material/theme":"8.0.0-canary.c250ec52a.0","@material/ripple":"8.0.0-canary.c250ec52a.0","@material/animation":"8.0.0-canary.c250ec52a.0","@material/elevation":"8.0.0-canary.c250ec52a.0","@material/typography":"8.0.0-canary.c250ec52a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.c250ec52a.0_1600373486259_0.5043871598363638","host":"s3://npm-registry-packages"}},"8.0.0-canary.e34e411b1.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.e34e411b1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.e34e411b1.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a216287b6904d47e7ae49a787e2de94f28ef7559","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.e34e411b1.0.tgz","fileCount":45,"integrity":"sha512-2HjVKRiC4yPVdcOJ23y7cFFtCeiBfeLNDwfIO++nMg6tyLSWXJBzwoEH+31CQRdZRm/VC/BCcP3ZzNCRrqGofg==","signatures":[{"sig":"MEUCIExg2MM2nLVos3o+/e8Y93nRg4PfYfBKVUrIraAEAoOzAiEAqkK8rYJ/lWsnYsogjCveW0tkHJwX4RUnvpuU4WCjkm8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfY8SmCRA9TVsSAnZWagAAkssQAIMeQO1RJ1jokSph/1mu\nR5inP8QyYx5q3G1bWE/lv66DBrUKt0ZpntUycWjSZAzCBHVPD3ekK7FjC+bP\n0LeUb0/Z5hhpazXXZjznqshqOAvZWaIK5pcDQFmpzf/7FMXC3EVGtVzKvUwt\njBvpYH8qD4qptbB98sYAovRcJaegftvl5RKWHhD/F0LbvcBdKTISS+zsajy4\n56xjW9szyZQOZ3veN/iX3yZW/UT2hIDzOVQL8vS6Kq9Yc4U2CyF+yb5ihmOl\n2U8tNZAtazJQxxJfI8qtIqQYhCxoTR+el9FH83O8dcI0umMNh9dzuHrfpNdc\nHLv2jgEttxeY6A2iGERHmXznjBzjTVH10BalYV0sxeaxvAv1/112i6x9DLpm\ncq8LMH6mB6wGi7QzO+2nj9IhNXzyBGOCuNugnpOX35zGoz9mSLSgixniUGCF\niyzJ8vyfAx+bzgY6u7jl5oKZvlPoef5A3sSRSAm9JbnTMoj29Br0JOlaeX12\n99/TClFvsDDMnRehLyrbKqqBnWDr6hHGMtfAOsjXr2OQ/pUEKB6fIiz5pHHj\n63hoyAqEHrSmpw7Cj5DvmJGMxQcXh7eAjc/tXoIZUmKZKzpQzHVa7FkFqu0k\nU5P1eW0VkQdjUfPGBD+fGlIlalrLpqhYlhtCiGUEUCBVtjCVm30iXfg0BH5g\nEfnJ\r\n=VbhP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"460337b237852aa88d59152c38df2b32b73792a0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.e34e411b1.0","@material/base":"8.0.0-canary.e34e411b1.0","@material/shape":"8.0.0-canary.e34e411b1.0","@material/theme":"8.0.0-canary.e34e411b1.0","@material/ripple":"8.0.0-canary.e34e411b1.0","@material/animation":"8.0.0-canary.e34e411b1.0","@material/elevation":"8.0.0-canary.e34e411b1.0","@material/typography":"8.0.0-canary.e34e411b1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.e34e411b1.0_1600373926353_0.44935824713190464","host":"s3://npm-registry-packages"}},"8.0.0-canary.4e9343929.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.4e9343929.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.4e9343929.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8551ec70032f8a418e3ebfc6d9eb36a20196ef36","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.4e9343929.0.tgz","fileCount":45,"integrity":"sha512-6X/HZSvWbbu5GviqilEGj/I9oxmRWDWDEA127XihwVJkGo7rrR8BGrtvbwDOcSWN/PncU3VfUk71uowx4NnqAw==","signatures":[{"sig":"MEUCIQCzQptpou4Zzsyq7iVfFAwFMG2qh8inxMuN3EOnBc8vPQIgIv8uqfSOdW3RivCMvEo8X19xRjze2MXuAm+PLU4zkpw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfY8qXCRA9TVsSAnZWagAAnS8P/jpF7IT7FnPAH/hYxS21\nSL9I0/gnES8PTvgKqxI0Fx0cwC6HibG40qiyVT90FOQFtytGPdUS8Q1uUvDY\nbZAuO1eWkmMsgfsB7zHzxxvNsxNFtgPgxyQ80bpiFljNRpL2TRrSkqZPxRwP\nWNOsmZBqCdWMVNLvrd+8pUX0Hmr1hzuGjUyyJkT8n3OFUmxyW9SR6HCRqp8S\nXaDDuwt+Ns1iYs/0ASZe2WYNfQ3euOiJ5l9bgXhCy2ZkHv4Q/F/eCgD7QawQ\nxvsnYZrvP+xs/r6rkKSTwBgdFkjtFWm1D1gKEO4UhzLSRNG7zfzCS3pVm4GC\nBE/vr0T+FxyAGyYJ3gTaLmL8jDbA7AynhSI/CpcUeHX8NNwwm+SrUUoD6WtN\nhGI67S/Joc8doCn7HEgY+NEckvQKdUbW2wO2kbq5Cw+JFZmpakEpXcWoW5h1\nrdfkhfMttEjfU+tl+2H2VpqfemGqZaiT7fGGqaAN1/1EAk2BrvyYgxLSjh+q\nP/RUq1SygypIEOi6KQqBiOq7FVIijl1r/CbViSS7lpiX7WNTz4Ew3ekx4gv5\nUHERh1b7rFEB+e/lSfeITDGF5Bto+47rTWoQPtBWlTqHtSmd4/LRPwrH/CzE\nQuliCkhkL5Kb011G8B/9LlFupmfLbm7VvId5oP2pKGBI0EnEANPCclinuScO\n5Rf+\r\n=wPwI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7bab75a521cc7f81a2f78587d2146ac140e3cfc1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.4e9343929.0","@material/base":"8.0.0-canary.4e9343929.0","@material/shape":"8.0.0-canary.4e9343929.0","@material/theme":"8.0.0-canary.4e9343929.0","@material/ripple":"8.0.0-canary.4e9343929.0","@material/animation":"8.0.0-canary.4e9343929.0","@material/elevation":"8.0.0-canary.4e9343929.0","@material/typography":"8.0.0-canary.4e9343929.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.4e9343929.0_1600375447036_0.1997748581889882","host":"s3://npm-registry-packages"}},"8.0.0-canary.4e5c350c2.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.4e5c350c2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.4e5c350c2.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a2ab961c4d955c12a465b4c27cc3303fd744c745","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.4e5c350c2.0.tgz","fileCount":45,"integrity":"sha512-UHbPxLOpObXNtkrh/V4MNBBy2obrS0DfPZ404u9/YgoflCkNPnjo+mRJxpVk/ljiI8T/m71yphrYqQyECRbGkA==","signatures":[{"sig":"MEUCIBPwE7n8xuSCfYEzsn0tynA6wXfME3talQ5poYu3mz6fAiEAzkl2k9zP3u1WEDlNJAF2vNRkENGXvYYUksqxFGERpzE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaRfdCRA9TVsSAnZWagAA6bQP/RZUYeM4CbcVWCWU3KvC\nJq/1HksXwZbtxpt6YWl1MgHeP5B+ogF08pKaBmXy6kS9nD2aI49rGr3MEFCp\nOt6/FqC433+DfJiyVM3rfytk/5vuznvn1eJ/sKnIXw8ypy6nUoyAmvJ0Q0S8\nTGz+rQ4MfKv4XGf/Mbe6il9/ECT2d6q+o4VnYAxyw7tCiqMHVF79a2uG27Jd\nT8w3aAqWh43F7bDuBDAR/Z8tbxVIgt3z3jD9eP7JSI3pLOB8Y5575MBaICAi\nWydX2/W6FBhFVloBnLyhh0s6XacFnuenhI/UgtfUuvmkekLzdmLpAwCdbm/8\ne4973WA40+LQCCU5gIwj0dnInTRq0W0ZnumSAuqGvBx3uU6QcYwmqrABePoJ\nGhqK0ZcD+Tsynsjb0ceCkVbmJcLytlwTdYhQPv78bpseQ1XuGMBFZb/+ZhD8\n+C9pyyvU36OLNoEQqpv7L8UVLEy/wEAWdUCJRAW3zNziJScCKqKQg+79/fLm\nV/2PblYCb3n7R1OamPiSH1iAVjeDvxNTBhO7Nv1SsmhXSIUbXBr9fCmVuTVh\nq597LBTBBFy/ZB99lIni8YsiTvmfSurX6XIlZmwe6DeI3Vc3LhVinslXSBiY\n0xckUahFaRBlbePzd4ms5fPH5qWkLtBmRWs9UixQ+8cVTcVvSTExnB4RutdD\nSRhT\r\n=Qe+/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c753481bcbad808064a366112868670fca5381f5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.4e5c350c2.0","@material/base":"8.0.0-canary.4e5c350c2.0","@material/shape":"8.0.0-canary.4e5c350c2.0","@material/theme":"8.0.0-canary.4e5c350c2.0","@material/ripple":"8.0.0-canary.4e5c350c2.0","@material/animation":"8.0.0-canary.4e5c350c2.0","@material/elevation":"8.0.0-canary.4e5c350c2.0","@material/typography":"8.0.0-canary.4e5c350c2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.4e5c350c2.0_1600722908641_0.4046118272573225","host":"s3://npm-registry-packages"}},"8.0.0-canary.16c563ef7.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.16c563ef7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.16c563ef7.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6295f4ad34e5dc7258dc7dafde15ae118d6b2619","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.16c563ef7.0.tgz","fileCount":45,"integrity":"sha512-csAkfGOM07dZhwjSqijEOYXQNuFclEIvQg2Y/NPNg1D01vdvb4miL6hFTTCUH7QyihRJiOEhFPA2sqqtXd/nPg==","signatures":[{"sig":"MEYCIQCMHV9GfFCakt9KHmoYxP0uqo3+6ttXwloTLOV2/AUhwgIhALyHBfTG25gbT49XY72uJ3xMatDlpn5rFEi87/IQgmT+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfalTECRA9TVsSAnZWagAAxgQP/1d/fKFSdl5jcUmDp5Py\n1bAsk6ffnaRgVR4gc6snUPh//H6U6IGAP0xvGF7WEnMT9bF7ALnrsRr/L6CW\ndOAPcri9t3SasQWAqUpkwFHRCt/NFmcBgkugS3GE0tY1Koaui4GDZYRU/1Ph\ncUWrnPVA+cUjcPGlWbhZt5B/gg7s/1ol3xYMSTDHPYM/shMl3lV3ELE1GM4n\nxk66ILTEUNMjZP/QTIG2OyQvo0xaKmVgoc2M3kDMCeR5ZWky6OQJ1YwQpzbA\nQX9fBUSFdPsXe7FSI4XcgJOjJHV1lagbHWX87gsTSDuBqD5THqU7R7qXmCIp\neBOucg9xuJCrk5BeUlJsCJ3StaGZeZD4mdUwDe6Fh2vMHwNtWmrfRtfopLLc\nDcHnIzUDv2506so2zRldjBcA0m7afnNXWCXAPuk2XBNfirqQfHT+9q7SErME\nyrvPp0WdET/UpEwPv0mB2SwecG9NidW7wrtvP6w8sPrSBN/G5vL1XSNSQRdb\n+J9RR8+27iU/MFVlqBU1Xh2FdDbCavMgaQ/4bQX5YFx6aEmQh8wKRuxRppcm\nV2W5OAzzBzsCO+89Amo4LtMUfnt/tiop6k4U0XvZ0Ak2KNCLzYF9eZRWLbbd\nCDyRg1fIyfKwrf36dnqO93fUTCe2J8B9LLpxBZfYTstsJoQAEfpfeUvUOAxI\nuab/\r\n=iMG0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e3abdb235aa76184bd5171f68c237f58b8541f7a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.16c563ef7.0","@material/base":"8.0.0-canary.16c563ef7.0","@material/shape":"8.0.0-canary.16c563ef7.0","@material/theme":"8.0.0-canary.16c563ef7.0","@material/ripple":"8.0.0-canary.16c563ef7.0","@material/animation":"8.0.0-canary.16c563ef7.0","@material/elevation":"8.0.0-canary.16c563ef7.0","@material/typography":"8.0.0-canary.16c563ef7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.16c563ef7.0_1600804036438_0.3247277818058325","host":"s3://npm-registry-packages"}},"8.0.0-canary.fd8af3d43.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.fd8af3d43.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.fd8af3d43.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"604c066fd78a85b4b14140ce2f48a7013215c8c2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.fd8af3d43.0.tgz","fileCount":45,"integrity":"sha512-9w46oQQBQZ8sVlGMHNYer/XhLdtnZSuoVm0xqKD+pM6S/x87zO5CgKQ4cMu4dgrf/ZXe8xwr0Qj/J5M2TcVs+g==","signatures":[{"sig":"MEQCIG5qKO0CPErAf03vjOtHEvWV2GjkH7QXLYVcg5scmKZAAiAFqVLo276lLc842oNMhXSZOw60isVHAveDDhb89tH7QQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfa6L+CRA9TVsSAnZWagAAPjUP/iM7NR0zWhY9BzHpG4y7\nfbHQkq2W2rc41+jxievS8ZAvwNy5ZP4JrEObO2y+oUHPwVbHqWmpFoGLuosX\nT4oVOLWelBm4OtROy69MYHbmT1L6qGPgojvbL2HF5NeOLmngt+eJDN74kdXF\nH23AMU/3CCLzTGvi28+n/r5F2xIAglSZLGb0sZW0gRAgOQcVdPW9UUo4kK/u\nJCpWWOOOWe+TDG8RE59dSzXe+KScA4qBRFWRjEqQcVbeNJ+jR8u7F2NMImhl\nYbpFHJTDsQU5Zk8P4OVWLHsCtvSuIKmxoqBJKHvugsiOmf2S8OTvMzsHdsLM\n0ScuctUqzy0es4lCnmyeAWEQ0wIKasE7YjksfXLbrUE2EVPWwv43aPnNfcs9\ntdjLjcNHm/l0uIQjMFsCA+4ErfdtvebcfgZxqprvuGfURztTJfW6ouCzV1fv\nJ2A6MKIyQQvKpSQ53gNC7QOxRif8g2UP9hPfl+tDd/gEj78rh2TxoErHDs0V\nnhUNe8WZez8TGTd94R4rxsczdIh3W2x9uSi3QX8B2IG9ykACIfqXcbg5Vvxq\nnFxxLtjw/bjJnW3Ilju9VURakyi5v6MjWDiqdV7K2OY7OclkjeNigTSOTl/w\nQnT21zSfUZtPPgEmRV5O6FFmT4fenq8jSE24uK7Ntx2KaYT3Sdqj+13ewhPC\nPSrZ\r\n=pWPO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0f295a5eb9518e726dc271a945985bba278bf9e2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.fd8af3d43.0","@material/base":"8.0.0-canary.fd8af3d43.0","@material/shape":"8.0.0-canary.fd8af3d43.0","@material/theme":"8.0.0-canary.fd8af3d43.0","@material/ripple":"8.0.0-canary.fd8af3d43.0","@material/animation":"8.0.0-canary.fd8af3d43.0","@material/elevation":"8.0.0-canary.fd8af3d43.0","@material/typography":"8.0.0-canary.fd8af3d43.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.fd8af3d43.0_1600889597868_0.4455608150622301","host":"s3://npm-registry-packages"}},"8.0.0-canary.d4cd83a85.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.d4cd83a85.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.d4cd83a85.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7f12f8f6eacd08f2e0994ea9b5f91b399f903d2d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.d4cd83a85.0.tgz","fileCount":45,"integrity":"sha512-SX6Xcf00IsDVSkBJTrAhUyb9ELD5pp88fivqfdYzxOcaKTT3G54c5ORpUW2NZ7UaEesy33yK8bLfgs1gYWbEeQ==","signatures":[{"sig":"MEUCIQDLE+Usgbr+Xt4O3IUIlUpVKPIM0VfDKb//+QLzdNjVZQIgWOWyN1fNpHseDkWBTf6zU4Y36oIRyDVOXFVHzCjKySc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbTuvCRA9TVsSAnZWagAAx94P/2iKRbWgHcHojklko8pc\ni9+PxtOVOwf+xjs1a75baxpH7H/Jk5+JQPX963w3BpeeAwn08GcpPw/VsbVm\nYMYl6B1Ns01Xhtx0Nq7zVEaarDZhxpxtyKaDzpRkIHZUG/ePeGCMI/hd+XsV\nL5zvDhFquwk/A37+COfsuLx5vfGiXEGfpZuG14hQ8O4oHxIkJaNMcRg2zAnG\naUXJYZjP53R9I82UOItbftGaGjCDMj2Iy+Fb6lK9nTyvIc4cbeGbC2L1T7QX\n98B3uxmvKep33cgQdtLJn8FWslsoSS01YpqfaRv/WsGNe3qJLKkSxmwm3rk1\ngrGhmekBvRr8qBh8kF4wkyJlrkPh/85dx4zoMt0GyNszuev7cWSiiIGNNcwh\nNKoSDYXsByUkoJgUFYoJ5Ya7fMyIrHXiUdNaXnTD5oqP/IliowOK6Lh4vb7Q\nm8m+HwkVCtv7VxFIiyNHgJf8l/yH9eGo5CkzpSU7IjkUuRiqr2dsibD2MKXS\n4Ry+t3kBiVV03ZsG7sC5CPptjfP1lIKZqNezZuzH9Djq2+88zM7zroZfaNAc\nL3aGVTkVGOMo+0PHCMOFZ+OvD7Ya0Ec4c6HlAe/plF62o8qO4kr/u/cqnlNW\nRFffgcxdolNKq+t1pxC9w9y0cwXlMXXBjLEf4f+tJSyNzhoroplNVWft5YDO\nn4/H\r\n=8xne\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"80cc7639dca83570a37de4bcf4d7501246ee8eee","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.d4cd83a85.0","@material/base":"8.0.0-canary.d4cd83a85.0","@material/shape":"8.0.0-canary.d4cd83a85.0","@material/theme":"8.0.0-canary.d4cd83a85.0","@material/ripple":"8.0.0-canary.d4cd83a85.0","@material/animation":"8.0.0-canary.d4cd83a85.0","@material/elevation":"8.0.0-canary.d4cd83a85.0","@material/typography":"8.0.0-canary.d4cd83a85.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.d4cd83a85.0_1600994223201_0.72626131684181","host":"s3://npm-registry-packages"}},"8.0.0-canary.199aecdfb.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.199aecdfb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.199aecdfb.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6d26d14af6af298d819cf014bd0eb0b3b80361c6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.199aecdfb.0.tgz","fileCount":45,"integrity":"sha512-YmLptFPEaOqTtxPeVjGNEtH6IMR3L9Wj/eQT0qyeKud4hRI1QwT3uzzB/Y1C8mn+Q2UzTXsYDwxIduFBBtX9EA==","signatures":[{"sig":"MEQCICYmimAJYzEqNd4G+hVV9tr/lQLpTEM56wFWs6Ta+T6SAiAvW5XHBTbSYHqzumVDaJFxrMbEUBN+Ax7T1M6mtdFKQA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbhI5CRA9TVsSAnZWagAAivsP/1RJ4FtZri/3YNL+lbyZ\n0Bp2uX2o/tUNaX2SD0SUSMXSuSpVXPwUgaofXZYIuZzLRg02LqpV6iUYyf7b\nL5K/oFq+xe6tmuCAHqUVS9S2zJXoXgfJiVFZvGvc398MiUQrNrvm3IjW6HV7\nC12vo9jb3Qq7qvy3/iv1ZKk1qsRDPz+X7ZQSnu5KUy+Vvm44a0U6nLqj8HWE\n0jhdFP8A9OL0dhSI5h8+uolgd/BQT3qFcbO2csAvWafGVfd/64dvxU025ej7\noulg3g6V/nW3FAmi4CbQ942E9VrS+s+Lknd1LvwobkFqJ0YnwogEv8Dy56YP\nLXlOKqw87GbeE5tNmwmZ7vAq7y8DtLFXzy5JSgKt3WJGRGWAlOqYlfRChD78\nFfIgwR5y+gnK1qPve+v1hRxf0EqgMAs2duBFpbrt/7Mfc2emUi1JaKQBrhRW\n9z9vpeRUhJM0rIjSF4awYnr0efh/zA0OKFBap3q1k5sYplIbKqoP0/Du5mqF\nEtCJQtjjuM2tyIIA9IvaE14i5AvGicK8iVotA5yXyBanjGd2FiWXS5hKRuzv\nbjFp9prdaFAV+herfvWyXveGDHCwTKLjIyHJXS1ccBXjsLwlzWe3pBsIlM1W\nsEQ+GioADrXrNootLRdcIMP4ZvUN3mA55aC53lirDM1ZRcnC8yMsMLG47tp1\nypCS\r\n=8R4K\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2ced06dc0aac728f58cce508c7393aec959895d6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.199aecdfb.0","@material/base":"8.0.0-canary.199aecdfb.0","@material/shape":"8.0.0-canary.199aecdfb.0","@material/theme":"8.0.0-canary.199aecdfb.0","@material/ripple":"8.0.0-canary.199aecdfb.0","@material/animation":"8.0.0-canary.199aecdfb.0","@material/elevation":"8.0.0-canary.199aecdfb.0","@material/typography":"8.0.0-canary.199aecdfb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.199aecdfb.0_1601049145162_0.4721810491292584","host":"s3://npm-registry-packages"}},"8.0.0-canary.38ef4501f.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.38ef4501f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.38ef4501f.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3a8bde33b57809370d43ef2c7e4bbfe8f14925a7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.38ef4501f.0.tgz","fileCount":45,"integrity":"sha512-FC+9irFwUcA1rzpNhmrUJq+ty1kdq+Q801wJobeCh5aexHx1MEMQjGGKTILiP3F6UpyS5MXQoiLiCYoT1cY00A==","signatures":[{"sig":"MEQCIEc81gAlkmLT2w3bMC8+Rwj8UtRpZNG53biGPzt1TtJDAiAvJ0Mm+7caXkWwRID9uYYo5QlC2H8c1OK2MVrvB+6jVg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdM2iCRA9TVsSAnZWagAAAx8QAIOtrFAFSuT3CkPiXNXz\n0JC9n5rGE5kBPtojL3M/KQJcgS/k1Tnf8e3kFLXZKItd30h3xUGwSAx8XT6q\nV5BIA3f1rHWcBvaVfqFZWn40fpNC3yAdkH9e239N6RO33luW9dcwNLyDu6Dw\ntOkedvWVMHnq6ucO2jvMQWxb8uvgiOALYnAPgYzs5GG6fBoXRLyGvbRsBS1v\n/BC/kc9qwDc9xKOpGMJhfT+O84/gdDhOYiZfS4iUoJx8T99dExjAxlaIA5wn\n7OysBnZGL23WKZJk1n7Z9nSzaEscQHCtKefmXqDORI3sKWr0vLjDP0c2FFt4\nY2QpNtTXzmdxLHivGFdRBTaUqp4+fYpp7fWBp99CN2TijuId6HBW7J1yZm7+\nBsJLSTe+R3oXb/UwGKEDZv6eO+0k/gwLI1ofjn8v1A47GWcTizXkB30JKfLy\neTWbW8BEF3rb7BTxhWz9JuZlu/4fvNTBRqaJ87DJ/CoNQvdPzG/OgMSq6Bw1\nhTk2kW65LtL0GEMx8rvBAUM2cXa91MTdutzLVnrlOmECne5KcKICc/GzhHOQ\nFj8V3uAUUzg0eMppiGGnm1eQ27DPa+sYXHMXj5Z9Bsc7BdlIjBpCc2PQDGEy\nxnu4sAYMyxj9lmxmVLwh8bT7iJ2UeNyx5OiphVk62NYrYPPPFJ29NsAHu7qN\nmxHJ\r\n=Ms0b\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bace3094edebc680b12a257aebfe6170928076ab","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.38ef4501f.0","@material/base":"8.0.0-canary.38ef4501f.0","@material/shape":"8.0.0-canary.38ef4501f.0","@material/theme":"8.0.0-canary.38ef4501f.0","@material/ripple":"8.0.0-canary.38ef4501f.0","@material/animation":"8.0.0-canary.38ef4501f.0","@material/elevation":"8.0.0-canary.38ef4501f.0","@material/typography":"8.0.0-canary.38ef4501f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.38ef4501f.0_1601490337836_0.3107268328102819","host":"s3://npm-registry-packages"}},"8.0.0-canary.774dcfc8e.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.774dcfc8e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.774dcfc8e.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"403e0cb2c8ae8539230a07aaa4a56c79b9d34d88","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.774dcfc8e.0.tgz","fileCount":45,"integrity":"sha512-TCbPyPLLtzSXsiTPojJ7PWePgtfk//2sfERBlYevBMsB3WCcKpFBUFC6dYcJrYAiUIoXCavtgqOI6FC9Hgu48Q==","signatures":[{"sig":"MEQCIDMLDw5hn9Lat1LlXcHh4HTGmN8jDJNpdMKGnchYA1/4AiAs/OYWEb6X6hzrhVSxXbqpOUTtlcFHBqlfIrwRO2251Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1085906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdaeICRA9TVsSAnZWagAAtJcP/1T4q3FxtrCvjjSKtF/s\npOKMttGXKxNmV1B1UlpDwwoD9vlAUF/ppNA/jes1noh8X8ECl2qMfJAECaqD\nkdgL8EgBwTcW8VhGhZ6SXEz7KfDGNeQ3ZwwA6WXSDnu3HgljuFx05dT8lRt6\n1jRpSjBEiba+ZpTM/Jq7/GaUXOvLvm3atgfdo3WRVUGxQLy+2h74j/0qMwjY\nKt+HbHQtN6nimxBSN9hrQMoz0Qez0CpYOLXWODeVj4dgP1Yc3rtoqKfqRqfN\nFUqPK5noErNgLdqvnm2CPlAn3jVTKe9cJrkS7AQbIsPOVQmt49FcW77RH230\ndfwK3XLz0u0dvFONYcdnfQ5hvw99lw2yWPpJXVOsKZmipd3sCWJg9KvfmIOl\nu2EnDcZEzGdvMCn/wqVbjiytPfLbZ/9Kztn1L7jDKLDJdOvIOTxeuXu+uZUW\nWJIR5iyffRxsZei30R54UHb6prQ0TJNU8KLW5pMGzEmRbnzGhFXDIPr6LAaH\niQGxFutfICXXFuT7fEX3HtVsvlEHcXMdY+L2ID7Wa2DGr61EwBEtvjMKsIvW\ne5+0CTilgfeoxnTa2dGO0anJj04IFYRjbdaB9dfSMvaFI5JARfLTA5na1bXO\njy1efo5ahyXniVPxZxjlci59qmdyYXEXaa/NKTkbm4bAVUWnaNvydVHD3i+w\nqhD2\r\n=AVaU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6c37b80b059fbd4c815253f3a3868578afcc1afd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.774dcfc8e.0","@material/base":"8.0.0-canary.774dcfc8e.0","@material/shape":"8.0.0-canary.774dcfc8e.0","@material/theme":"8.0.0-canary.774dcfc8e.0","@material/ripple":"8.0.0-canary.774dcfc8e.0","@material/animation":"8.0.0-canary.774dcfc8e.0","@material/elevation":"8.0.0-canary.774dcfc8e.0","@material/typography":"8.0.0-canary.774dcfc8e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.774dcfc8e.0_1601546120069_0.16006583005913955","host":"s3://npm-registry-packages"}},"8.0.0-canary.0f60323a8.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.0f60323a8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.0f60323a8.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0c4ccba61f8eb1b9e676c2f6fbb946643ea47cb2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.0f60323a8.0.tgz","fileCount":45,"integrity":"sha512-PQdLkuvRdNATiANuLrEjT5oPUp7xRElv9TtUnr803TXrdfmtE+tzPfkOvSICJQk1BverQrignwLdNa009dFo5w==","signatures":[{"sig":"MEQCIFS0wItEHeoT1zAUDg1kCiDLWLOf8o2Ox86inao/RZTtAiBttpljQNxfMwpc2zuBtwGN3fUI8UM1ePkcz57e01GHlQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJff4BqCRA9TVsSAnZWagAAjhMP/0mMfv7hon9ywOiKJlDk\ndJETlmrLuACImnJMY2wGaxniaMQ/8SHmRCIpY4iU0EKNq0eK8Bz59D9+85EY\nHgIeuthv1UK9H2FcJskPGcwOavgKyCymDzdbtIR+ErvjhCKgs4NQD9e6Hugg\n8gzKKHmNhm25XWnEBxp0/gxyNSxa4zX/QDbOvWH5FHR0FgBgfSGwWmlc5/aS\ncUKRjaHPw99ThjAi77B/oJikmm4KWRY4ik/OisO6AkqNJT5lOV8t8rPuaYWA\n9KmJj/ORYWWVEO7NK8crikp5g98pcrgytoJnB7eynvcj9OLl1aa4Ip/zQ/mI\nBL3ZNOQl4uSmMj3/SDHhN4wFy/g/rmhVDDWz4cTaHchsOVgzOMp4TJ2yGOiJ\n0yA65u7IatkjUsb6X9agDYxuooWlbBK/lCM+VKrDXq6S1qC7uMpClN53xWn+\nc8nuf5bSiwxRGAYSfmc/AUpBDp++7AgpzfDrh7SYsvNKAmZsZ/bxrs1YlH6t\nUlIom696PBuiKOlolKjE0XAgqmgQv8iWA06Qx88v1lLj602MRjx44yCmXhrp\n4Anc0nvmFN2l27QpKdRm9D9wNj5hR7enRV+0GEGP8pxmIpg/Jh4aV09vWo/T\n16w2MDuewAsa6qhHttmYhdmkEBM1U8NKatU5MFgMuOSUIAVUBaW/T9RTardA\npuAx\r\n=zwwW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"edfdb55487a31cd5f5130aad32b3fa8f369e6d0b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.0f60323a8.0","@material/base":"8.0.0-canary.0f60323a8.0","@material/shape":"8.0.0-canary.0f60323a8.0","@material/theme":"8.0.0-canary.0f60323a8.0","@material/ripple":"8.0.0-canary.0f60323a8.0","@material/animation":"8.0.0-canary.0f60323a8.0","@material/elevation":"8.0.0-canary.0f60323a8.0","@material/typography":"8.0.0-canary.0f60323a8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.0f60323a8.0_1602191465904_0.013206294176878464","host":"s3://npm-registry-packages"}},"8.0.0-canary.d71622574.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.d71622574.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.d71622574.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fd977581d72fb87dca3a430a082c2c3711d4e237","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.d71622574.0.tgz","fileCount":45,"integrity":"sha512-7vpGlvjDJrDBoPBf4O90tkZgR6JbLC7MTdtwJh7mWMLomOL97fRnpAkKuVLDjWKC7Kd1jaV1KgTBDKwAz4xwiA==","signatures":[{"sig":"MEUCICrm/LXj4/Gqh75CU+56ZU4zK4LRChLLaGSKWJrWYd7AAiEAqGoz0zwAszl+EUlhVaPYNErOFvCUCEep2E5heVg+1C8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgJC0CRA9TVsSAnZWagAAYcYP/3B+6o/eb9PXPnCqlaY6\nNqvca++2ITOEFWOMVIcr6sLJDcaEgksSpYzb7GNFsXx63mqxk21ugjM1QZzQ\n/wPw8SHxy3GMQObxxAOyE1MgsvzFbOShh+yetbx8g5j8ByH8YEK8uIy6hQss\nMNM/DcRGgta4sZ7dZRXlBfoOfMhGAm3zTWb78e0iYxNMXcBUM74y5j1MItEx\nrRvPayUkYyRWDrCmtNjn+8YdxdNn4MSyNHyqzElvXmyx/d+9gP4XKwJ3I3Pb\nIssL8UHzKBkDDuvxKiI7DKCJNlcb7CRHDvjyM1TsCRJwx8ig0I0wguQe7TAU\na/QtbHcOz56jxa1C3/UfJUi8r2eoTIjokxg+pP7i5pKCke7ZfB/++i4Uhoel\nyvyK000fkFkPG0rLOHx7FQzruPe5CV/puEUveg0n7sv5INkZzDFg/8SO2nH/\nP6IpFDiYlwBRpDWkcIaal8MZ/JfAExsuMp4cOr0Z14081VWrDP6jqmSzdjzz\n4xIsuTE/B2apbwmQJ1RTHDtDNhxJHth98MTzBMT7CWvV+bq6VEARSMR932HI\ns3DjwK57zvZQvqHOl8xKd2p0x5jMfA6g2j2y9YriQSohRTsN8Z671yYFO2Qk\nDxxSlij0MyD9eUAVEqJ4yIFACieHuK9ZF5g9UJYrX5Qx/3ERo3Sd1O1gRM1h\nJscN\r\n=pMTT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"19a45f4824305f22d61cbf9deea0fef067dea3e6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.d71622574.0","@material/base":"8.0.0-canary.d71622574.0","@material/shape":"8.0.0-canary.d71622574.0","@material/theme":"8.0.0-canary.d71622574.0","@material/ripple":"8.0.0-canary.d71622574.0","@material/animation":"8.0.0-canary.d71622574.0","@material/elevation":"8.0.0-canary.d71622574.0","@material/typography":"8.0.0-canary.d71622574.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.d71622574.0_1602261171985_0.029174411865379613","host":"s3://npm-registry-packages"}},"8.0.0-canary.7a9afaf4b.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.7a9afaf4b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.7a9afaf4b.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2fb6302947ab631154bb692a15318482e55a60d4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.7a9afaf4b.0.tgz","fileCount":45,"integrity":"sha512-xiiLR1lKl9tB3D69VV3uuuFNnD58PfulIrxsrjgnaFK445pFBANYIbZh5EuNh1izx1MKgrOU7hQ+xumMbKbK6A==","signatures":[{"sig":"MEYCIQCCNRBf+Ofm1pK6Vv/QgfWdX54bGkTJf7+XrjwfcEDqWwIhAMvrNvpG96F+J1aJzEeishYzvHkNggRJELiZEKKHuAT4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgOpJCRA9TVsSAnZWagAAE6UP/RfqufBuNodgwi5ov/oN\nY3gzbS39zKxpXg+/gUne5a1fid1Ub5M/79ArRPLnDkjgbH2096Zrmdotr9Gl\noSObzDN2dc3NtxPTk8HHgqMyrEy7qeG5HL7PWdjMq59DIimFiJffDNfcXk3s\nA4i8Z8jmPHxIjlg5CurVKQG0sqX6kI6Oz4AqWa0F8Boht2WEtjyhxey+t7CS\nTdbAQOfPza9mxJFNyLHOGB/1jKdjDnll2RddNnFKxEJ+hIvOYq+fVhfyvDe2\nedtWowCCxXQag1l8o1KeRc+Kw/xU335rFKl4F0YouAW7R+uR/Nzh7sks6N5V\n5ZqYRuPNo8gdwqfSj8karIvIookWIJpWSJV2B5ClJ1m9U5nn7R3sjR/1Of5B\nhwRU/mjZyc+AZfRHAk/YYHdErDfth/c8FenMvDrHRCku6TZfZJ/Gjbg58AzZ\npaeFuLqJLaADTwQNq32fNpsmwRk9MVLQF7Ly7jnaHhVMd/zprs2yQf/NaV7+\ngQbA/tcCvQddaCuAo2HK6U/t5Y5Ya8EB6ZQcQEo33PIbXxHORCWP76ylt/nP\nw9y/eO8n9b3wuJvBQ4Axe6UYVKyUVa6qGMmhTEb4a1HZVEROX6LJG+SB0+vX\nhkX6lJxsVA3UlhapKbI9AX3sGCibuGL6X52Nah5s6vzUfT0JJ+mwdYfIxrB3\nnR0G\r\n=t89w\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"137d6fb8ed93c50312981c75fb37199ad460dcf2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.7a9afaf4b.0","@material/base":"8.0.0-canary.7a9afaf4b.0","@material/shape":"8.0.0-canary.7a9afaf4b.0","@material/theme":"8.0.0-canary.7a9afaf4b.0","@material/ripple":"8.0.0-canary.7a9afaf4b.0","@material/animation":"8.0.0-canary.7a9afaf4b.0","@material/elevation":"8.0.0-canary.7a9afaf4b.0","@material/typography":"8.0.0-canary.7a9afaf4b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.7a9afaf4b.0_1602284104903_0.174588293654673","host":"s3://npm-registry-packages"}},"8.0.0-canary.8a39352c8.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.8a39352c8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.8a39352c8.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3813892bfdfb06a2ed91583d036bcc0987acbe7f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.8a39352c8.0.tgz","fileCount":45,"integrity":"sha512-snG/KM/O3pFfIZsMRcUYlM92p9r/eFOGznpkfqtKAemC5wIkVIj0ghDC1vi+j1DZJ3ur5/F57EB9TQGnwTIjSw==","signatures":[{"sig":"MEQCIBVDd/z3eL1lQ9P5HFtZ4BBOpewQC8/TJjt+BdAASMcdAiAmRSOAuPJ8n1rR7mUdWC4djA63/4FDPXrwgNPFJ7OBjg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhJazCRA9TVsSAnZWagAAYjgP/0HRy/wVb3+bkSvGCyPx\nUazl7SBmpmB/NpZ4Tm7QLtCM5yOkAPIYq01z4CnGGV8pdoS2VgVdiPW9nr//\nzwQUDsIMNhiQ5H4YsDZfqzCW+WcBp6MmAxwVTTApk2bLMbKfBcio7J8tWMs5\njm3bOGONtBBCW6oOpXsaa+F1PpXJu2kpD76sts9Ch0JBw+7scct6BZPDn7+u\nEgSNOaMAYqLnmimi3smhGR5NxUaZ9LIyjzGN+cKDQ9VrXtlnXA4DLR5/J5nm\n37rtazNkOxlhJtJKfbkjDPVnJr4ho+BdugPICJRexedwbesUNfUQMfeV4h2a\nue12FMVoeX3RSMDscNZyxxxfCgUizJ0FfsRM8fpJo3LxXpgUCJys8CepHNtO\n8vCuxs7F3oibrgfyEFYsSXCBWk0F1w+VnmeG++huerbN3qcldS8g7be/UTZm\na0El6UX+SaVFnNIdCEHSTeOAKBgzk2Q5cgVcFuSVa1gCp//MZbAFfoz69k7y\nR96M54ZRAlJzWjXnvIyjsauib+Fn1Sy/xpl8nysT9F7W1O8HngfgBK6TZkEK\ny/tdVLQh+uYLSfUINvcz0N3KczEQKm89vXp9bHIkjlnotfu1VpSBZ4P2Bnh6\nawfx9cI3MVcdOZYGnxsrWtx77lHTBA+AAM3Q1WFgTY38TjDjbmzbmJAl3xCJ\nVW+3\r\n=7icc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cedb8cd906516b8d460c813039351e951b960c50","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.8a39352c8.0","@material/base":"8.0.0-canary.8a39352c8.0","@material/shape":"8.0.0-canary.8a39352c8.0","@material/theme":"8.0.0-canary.8a39352c8.0","@material/ripple":"8.0.0-canary.8a39352c8.0","@material/animation":"8.0.0-canary.8a39352c8.0","@material/elevation":"8.0.0-canary.8a39352c8.0","@material/typography":"8.0.0-canary.8a39352c8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.8a39352c8.0_1602524850464_0.006127634892173273","host":"s3://npm-registry-packages"}},"8.0.0-canary.790ca85fd.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.790ca85fd.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.790ca85fd.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a6d858f11e3278db7288c864d5bff198f603e14b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.790ca85fd.0.tgz","fileCount":45,"integrity":"sha512-DESZKfc+sAEswnObZRIJHTuOaHltgqXE+oBBVAu05cgxI/SR0xHlHGD7ZwdMKg40mINurSZUjnBprVWV2Y3N6g==","signatures":[{"sig":"MEUCIQDRiTaxHcf7qn7JLoVnH3tWkJRVfE3t6fzsltnGHrXrXwIgU+223f3Pv2bIEVSOiD7E+nfaPKo1ba8PvyhkgScEA98=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhNFbCRA9TVsSAnZWagAAl84QAKIfv91+qiShLMJuI39I\n4Mz/2FtK4VC2rC0k0Xad0G0telLBKIax+TB5TNBrMCyUQScRZW0YVa5NECfv\nNaZH8sOZwjmPrzSRInrtXqmcf7/HCzXMo+xsZ2Gnkh1WIvwj8Cx16L3FYEzc\n46smD2TMekmSr6EZywMogh8J9VYOXvNzAWhwXtAea8KigjG2OCAEdkFegjJL\ncW0bRU8dPpcjuumvwIx8+kri7eZmLE6zBBQ/f2tKbsPxerkUOI4mts4bEeKZ\n3nJ0rDMXu6aZvbXLqxui0RrOHRUpSzAAPLJ+1ksIFLsW1F1muUoXEWQjEcWz\naUFpaARNXx5521IIbhCca7DOUDzr2gaBWkkatjZGyCakf51NA2s/5m2qM/7L\n115bTgcqLq5NQ+BGmbiXbrvopNJFt6hHzMhj5vCq3mXk++ZnzRggQNheBSGC\nx1ABlEmUkmKPXzn1KrhiWJ2xfKvO7+jYOUTId4/XtIF+CSFkoPqk4kRIrZBA\nWtkrgWnkd409SLN7pq0kgFJNm0MeC3k48FRPYV8kkdjr/NmnnLxmc3mvW7CA\n6bXovLKkFL88MbDOOQe1JAn7LRsH5mq82uGxCXkn9sZ6QafXeXNQ9xSwb+wB\nJ2mdgdkZWMIagaTMtmb1i1oS2DKDEsK5LTFoc8jwzLjs1fwNfJR+8aLkg5PP\nOT5m\r\n=If+b\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8971e891898c4a8ca082beda756a7b93097f858e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.790ca85fd.0","@material/base":"8.0.0-canary.790ca85fd.0","@material/shape":"8.0.0-canary.790ca85fd.0","@material/theme":"8.0.0-canary.790ca85fd.0","@material/ripple":"8.0.0-canary.790ca85fd.0","@material/animation":"8.0.0-canary.790ca85fd.0","@material/elevation":"8.0.0-canary.790ca85fd.0","@material/typography":"8.0.0-canary.790ca85fd.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.790ca85fd.0_1602539866465_0.47074226073875947","host":"s3://npm-registry-packages"}},"8.0.0-canary.174c0becf.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.174c0becf.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.174c0becf.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b5bf42b4775c51a4fd024fea2226b052abc546fc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.174c0becf.0.tgz","fileCount":45,"integrity":"sha512-FKs7LdgEqjuHdPZYQS5s8Jh3j1+bNRHrcsoBjKKi3X4NRz9zN+648aofBoOcBEMb5vmJUEvlRftxb/iYb17wAA==","signatures":[{"sig":"MEYCIQCFRtT4iv0y4O/CRNTH1A9ZEj9pJJP/MfqknflWS0vuTQIhAOaKN30QaN6z8k7+nD8N4sY3mPMWcCCGd08nF9NjgaS1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhl+ICRA9TVsSAnZWagAAy6YP/02gmJO87t31oXnuZWoO\nJHcPBereSNJzlPQH91P8o9ZqKIJtsWuHPluLLSIlQ8msADlVm6Jpjs7yKNns\nx8nhTz81RtbNc7o8sIxn2eAyP7gDz5tkVcGexXS6zfaFDIMVmti1ZohDlrKc\nlyAs3sREEsgxhX5KiaiB2H/yAjQ/32L9AzN4gMOhOPHfkbm+wfLDnwfmKDBo\nYcoXNPZa9T289fHwxH7KvqX0YKKRQacnL9dUzzXt0ZKff4iBuRykj90GkmfI\n9Lny6Cu6Rj9/dM2GmSjiTPPWGdJK78PfQJ37D1GYG2F1kdUepn5tLO37VLmd\nyECq0kSF2BrFXDhvo08Ltd2uFKSKhHq65Sp3RlfsOYzoUB5+Q1egxxVEg6a7\ngo2tPMt6dCXF2yBmTCdm3qtC3Jyn8kcYlH5QMSjBOK/a+teQ4sAQhL7Vm3xU\nXeZAFan4F+KXlPk4FwiSSZLpHgqhDIvAmlUUfTHlbRizUO1Lw7t+UX3I0sTt\ntGG4lOQ2L6xqL23FOpZDHYDhIeYHh2yXIf2WT0SKRMuQps5J9luDEAgQm6s7\nnJb4HjgzKVBkVv5z1kgFntjbj4rNV9XbPsmB+FpTCOrx2FyTDBwIUTQVCr8i\ng3vEWNwHIDs2gdMrxIo2+lmNsxR+ySdcEbxM5U3v/wHFNb7CL273PuBg+Hhx\n6x6Z\r\n=ozMd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6dc7561b8695889178b3e884e84f5d9c3d59e100","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.174c0becf.0","@material/base":"8.0.0-canary.174c0becf.0","@material/shape":"8.0.0-canary.174c0becf.0","@material/theme":"8.0.0-canary.174c0becf.0","@material/ripple":"8.0.0-canary.174c0becf.0","@material/animation":"8.0.0-canary.174c0becf.0","@material/elevation":"8.0.0-canary.174c0becf.0","@material/typography":"8.0.0-canary.174c0becf.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.174c0becf.0_1602641800039_0.6771988980740917","host":"s3://npm-registry-packages"}},"8.0.0-canary.c71ebfa02.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.c71ebfa02.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.c71ebfa02.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"483adcc05d34688aaca7e1f3204440a8e38c86ab","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.c71ebfa02.0.tgz","fileCount":45,"integrity":"sha512-+m7BhE4I7Fpbk1SnqTgQ/4tNwpkr7PphC5wxqYogmQLAMpL15RfgQbp/8H3LUrNZ//hcx6a9doSpvnMf7K3SPA==","signatures":[{"sig":"MEUCIBZIYlBfRXqL7lhsn2Bfb1v8dbN6rUm8mu3NaFnMQ+zMAiEAzxT0XPjxKFVXzODkk2R7puVg5HWdkVVFJ5PuWVDa0VQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhnwjCRA9TVsSAnZWagAAcdEP/A17leRE6N9iKTL54Qcy\nSGr2DtQ+4YmTise0pBQaFT/vMMMR3Oe0vnFP9vSCaee7n3oQObvPIv+bYvgT\nOLShdU27zZkLgLKUSMbZrZegxR5JVWEclmuXEkcrOJ33EiyAOTTYBoN6D9JG\nCs0sinxZ7O3CbYJAmjnB60ZMjJgQ49sbJQXoUZS4QhaJZVbHSjcfr236akAT\nikswruxvED9KLs7RiWzeiEZ0PiKX2oc4oD6rWdrbp8JfvELS0ZGp7isXibzM\nlEC0emn9VTUbSvg07y7W+8hjkd4bpu08EnNmqm1iSEbdXJ6XsQXktt/aEBJm\nJHXAS+aJ703It8m4V9WwsY6ybXQzd+MXVy8JmYrlAI4VD5i/AqCvTX5dFs/e\nj1DTgR94bct5YXTTfopWYbt9XC86I0j13ELl3KTqd9LGO9aDEyj/IlM+GsW2\nzili7tEH4Ji+0deSo/cmWI7jBf8fBf507d5I5mXFEO1p9Q2K2ndtnsYkU7Vy\nK5iekEmvK6RJrO0zQEZwMYPiThzOn9966ulVtb4nv1ZxS9HB5kXOg4q/yKSB\nsM8d5V7IDEudvJJRmDKNDYf2vWWgWqxb32eavjryl/P2aMXA4J+tROn1jsmD\n9MwTB3y8T/RvG9nALOz67dFvxVYGpET0stgpe2Q8aMh8Le1/cKOrMRlE8tXF\nBplV\r\n=BgB3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d1158a184d234471c81501e838b409c54f591268","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.c71ebfa02.0","@material/base":"8.0.0-canary.c71ebfa02.0","@material/shape":"8.0.0-canary.c71ebfa02.0","@material/theme":"8.0.0-canary.c71ebfa02.0","@material/ripple":"8.0.0-canary.c71ebfa02.0","@material/animation":"8.0.0-canary.c71ebfa02.0","@material/elevation":"8.0.0-canary.c71ebfa02.0","@material/typography":"8.0.0-canary.c71ebfa02.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.c71ebfa02.0_1602649123072_0.49005129677756365","host":"s3://npm-registry-packages"}},"8.0.0-canary.2ab716cbd.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.2ab716cbd.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.2ab716cbd.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b4b2af92ef4523137ec538562ef4bf0475eb89af","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.2ab716cbd.0.tgz","fileCount":45,"integrity":"sha512-jK29ICgGRrKQKNs7A2Ipq17PbNY9HuSwsvZ280Q4ZSyUcapqM59qGCJ0jqPKFCEUrt9PkgaC5ZZD/2yGumwHQA==","signatures":[{"sig":"MEUCIE7r04U7XdrKjqyOcIwUZAQ0tfGepnM/0E4ZdV1Q6WIgAiEAxmiJlNtT/3+OUqPl2c/hopWSXfEB2V8RxfB5VRCmhsY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfiOPCCRA9TVsSAnZWagAAymAQAJxUPHFCbsViRwfF4gOG\nqdI/x3y6CZ/A8Zt3EBx6NpcruydKXARGoyFTxWVGqGxO06mxLvwZkpUKiCNa\nW2MCKWjihoZosgu/PNtNuPlDYi/HZSCXCiW+EJe94XiyGa7p0wE7d4+Myej3\n8IE3Y3HIvAHHYJiHFDSUKt65ljYQQKap6GyScmw4KykQMjtbPiCjhjqUt2fx\nB6K4+AfO8WAi5u9cDnYe1S0TOHO6v7ruyRJi9mYpYjP97+lIM/Vbt/YnAfbc\nzaZf9ffsas5n3atXsbVXnPPvKtGh9StjiYWmPxtCjiYFuGvayyNpt8xtqd59\nOYzy1RVEbcBNSg6uO83iCVuZO8m1sWtX3wumbHr5a05MuANjAa8g5qB2qYiv\nNIOI1AmeigQC+sxiQVznYFjdP5gfpuOmlKUb8ZqBJnily9gB2CDQDyepYUjv\nsbF05Ap2ljYBWIIUXDEz4DMPksgv4lSuEWsDXBngq7B1o55gwsdoRNHAOaZb\na/8K3OHiOnKfOqHsGdJ0Lw7ZiqRJOmdv7G220FmCPY5IrG4EnzBf8TYRNX1Q\nwDEy7yM29awsgpTUCocuBB5uwrHMm12iIafiCuvINVtdrFEGpri44/8AScfh\nzTIAivvufXqSZLtQ9N92vznkX+8JccfgqboLydxGM5dOAh94+nxQC0bOig8J\nP4yh\r\n=o7CA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a3f41127e9d90f7e393ee6fa5e01829e52160131","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.2ab716cbd.0","@material/base":"8.0.0-canary.2ab716cbd.0","@material/shape":"8.0.0-canary.2ab716cbd.0","@material/theme":"8.0.0-canary.2ab716cbd.0","@material/ripple":"8.0.0-canary.2ab716cbd.0","@material/animation":"8.0.0-canary.2ab716cbd.0","@material/elevation":"8.0.0-canary.2ab716cbd.0","@material/typography":"8.0.0-canary.2ab716cbd.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.2ab716cbd.0_1602806722145_0.09577784522399102","host":"s3://npm-registry-packages"}},"8.0.0-canary.43c1c5e2f.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.43c1c5e2f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.43c1c5e2f.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7a8f02ed9a7d761c2328ea582f217456db6af222","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.43c1c5e2f.0.tgz","fileCount":45,"integrity":"sha512-MqKTnF0TJFgq1f36gclI4k54xn/+YOXdMzJVt3pluxF4rgn42SXfiLPL7d0boPI9r1S4RG3H5Q7HQAwam7jfQw==","signatures":[{"sig":"MEQCIExhIJJXLHfwm+xZr/RhH/WVXyHBm+STEWJ9YTzdjD6kAiBmotHlk0ocB5oUgZP7aUfpx9wuVpPrQqrzpkjp4GUYkw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjZ4MCRA9TVsSAnZWagAA+zcQAIh2WCtN+Z23Gsf/Viro\nMfZQBEy/thSXi3jevjjK0QG3jT/gCbFQAFw7kueSYH9iFm5XEhlLWH4b5s5C\nSb8x9SUAKnIjx7cPD+g0rVCyY2BhxmJJzkv8oHsMSnHLJrngIsNT+UCajzMv\n8nX6429euPDJ5ksjgv3Xb7+jy82Xv6x9kOf1g552PqwYLrzUOGBhf6hs13Z8\n7gQ+67D9WX8yjDZhKqkJTYYGo+TrT01PiORP6zGYcOkKvD7izHmhBd+g3K+6\ngBLbNiLSB6T2RNk4lMBZw5RwtnBQcYAf6JLkDpXAzcgM8Xlm/Bmk9gdDfagg\nvbAKaOFjoC+g8u2alLw1N2TbNvdYueAk3Vm6iSbf759+am29ErXLfLD92PB9\nGFy7f9lhBo2gY18DBDBhL5tYQfBJMNT3HTu03sXfXz0kaUtsJijcCwfvcdEJ\nUsL4uMydstR+gCEkHK7//Bfe3aNsUpXn9w9393BIAD6Jl8d/Oqw1OAuCQF3U\nGPUP7gd7rDZ+N3MyT1l32CklJS03dgI9PveBL2DqwUQRCFdySg0nxdrvO82Y\nJfBg0yRQReHPDKAGzq5UHz4MK4RKqqALBm/LV7dfcSqHRk36B1T7b+A5Dxd6\n/YuD1Tg7cKN9GUIdjArWxsXf94n6FrjF6opnVz5m22Q6HzPksja4ENKYBM44\ngrFm\r\n=jIyh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bae89543d5336b4583fd1519cb63078d2a5c39f5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.43c1c5e2f.0","@material/base":"8.0.0-canary.43c1c5e2f.0","@material/shape":"8.0.0-canary.43c1c5e2f.0","@material/theme":"8.0.0-canary.43c1c5e2f.0","@material/ripple":"8.0.0-canary.43c1c5e2f.0","@material/animation":"8.0.0-canary.43c1c5e2f.0","@material/elevation":"8.0.0-canary.43c1c5e2f.0","@material/typography":"8.0.0-canary.43c1c5e2f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.43c1c5e2f.0_1603116555815_0.6404410102526941","host":"s3://npm-registry-packages"}},"8.0.0-canary.ccc64eea3.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.ccc64eea3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.ccc64eea3.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"db2c07f6e34a32a3c5b2bbd6b5a35cfcefde95a5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.ccc64eea3.0.tgz","fileCount":45,"integrity":"sha512-6+eYflIn3tf8MOHMh+KQ7LVZhqNqSpuECk9nc6bj6AVMHAKTjRtk/Mgg2ej8qJ9Ps9z52asJLB6c1gG1Haf3fg==","signatures":[{"sig":"MEYCIQCXazR/s2FwM2wqsDd+rWDhGHw6/atbD4P/Q/xYqM0XNAIhAP+wr1fJa8bzIfebTCgFOiDngJCOAz5sIfcb9/pJZd4T","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfl1M2CRA9TVsSAnZWagAAX3cP/jjKIicvwkUVbX8OBSoG\nz1aiiv5aqUORUFkMMhu3BciV8sHSWyJi/6D9Xt3PF35wC4+TU7ImO7Y8PySh\nhpRX4Dpi0dyybTFUuYFWp+kUg4Aip2B0L0NUC+EIqwHKl7UgJN2RYdUrsp+Q\nD2h8kPIZWllssUmdFb0gct5JY83Nv4DF/o9lXTGW1R/fMc+1Ky7kTBjQ5gJy\n9A236oyBvByHBrjt9E/hy3EjJ7ofS8jW1kEqBBd+vnye5Ch6q0Oo5c07Pr0Q\nQWGy5HBqgeQ2RynWtCzr6Y5B9UdEQWSAtyk7JayhB08ezK3815apxFdvjZfo\nAN2iMzoG2rhuzfWdJF74k0NXmSqmYYhI0FLHHKb9p7snsBTyZvkkatSmLca6\nI6JhCwDc3iKgmL4BI+iEWxVEH5r2BaK7UyD48SiTioWqCD3fY+/OKRvowSDx\nYheyIYZTIDSbQ6GoJxCOug6czh14b31xpsbQVgiR7aLfaJ1/UTsRaDVzdp9c\nbsMHc52rklRy4bI6oEwy6uI5gLmk1RAVmLy4FSyJIALL9MePYb1VlDvilWkt\nd2Dq5Syiofehk44crh8bA1GE9PSA/vHu7vI9uWuNZ7fKoBJVFanLRaE+AkLV\nRLulTfM7prsKK7HkOmaxtpfTjUaqLBIKyNSe9APP4FXyaqEb9XHLHaNgLUQi\nQAke\r\n=B9NP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"26df299f75c86dada6da463cae5df1b0277d5c7f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.ccc64eea3.0","@material/base":"8.0.0-canary.ccc64eea3.0","@material/shape":"8.0.0-canary.ccc64eea3.0","@material/theme":"8.0.0-canary.ccc64eea3.0","@material/ripple":"8.0.0-canary.ccc64eea3.0","@material/animation":"8.0.0-canary.ccc64eea3.0","@material/elevation":"8.0.0-canary.ccc64eea3.0","@material/typography":"8.0.0-canary.ccc64eea3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.ccc64eea3.0_1603752757736_0.1489882981284536","host":"s3://npm-registry-packages"}},"8.0.0-canary.a79cdd019.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.a79cdd019.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.a79cdd019.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"40a9dca2cf81dadf4626d387026984a3bf206fe1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.a79cdd019.0.tgz","fileCount":45,"integrity":"sha512-R+abpy0f9Z4h5QBJQVxpqCqhDHMEH0OQr43A54+YLwsfZN73+mVmGUHmQrs/k8XoKZkkxbFfXPlxMrkEOmDrdg==","signatures":[{"sig":"MEQCIFwF0+3S37zIfOvxRpzDsrDklyNS9M2mppgjH1VOfbygAiA9BFruy2geTMduGxAJI+mmEAUR6qDwpXvG3qWSaRyp/w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmEuuCRA9TVsSAnZWagAAQmgQAJiCVN/NRTFzQ2LNGiYj\naUqErVFznJvYsZR6a+HzlhB47U0i7XQDyMD/Tiu45snJFBmQsCEyuG32SRpe\n4+XQF3W6Z7GB/0LP3+j1fCGkUuHRC0QbmSvHmZWBvqrG4GTMhpU/YB88Mfz4\nPXpkZgtidbgGe4fOh0dRkQUWFvnt5dipthRk5WkSRlQr35gydLWS6XOXeqx8\nxD7Y1VsDCgrDxcyJrQzGz3sTt+B8elWq2kq9vZDSFZdJTOp3VplQSCL76gL3\nRIqWHuh6NDDstYebg0lf+MyJsul+PrDs2r2OJEBPZ+RH69RntBZk6rM0NVfI\nWYy2CnLpWRoT+gSbez7ud29tjz7pQcYx99enOm7GJwA+GirupwxkKM32EZJb\nkhS+DFaXzIZuSCU7WMOAsAwM2qU2b/iUYMWQFMj4wMcGUj/7zEc5jVWJ0w6e\nkFvFhoojddg2fSdFlORnbsqfjMeflpv2EvxyvGS3bAgx97vVUfGDmBaXepP6\n4VXXrt2V4wXdgBqCBPxqFcIzm01hGhLUmc8Czo7x/ziVXFhHa6xKUMiV4i2Z\n5pYn8Mvi+j+7GuXA1iLu9u0/UjfW7R8uUonvUsPiOLMC9B6tANMGVyaCKwJI\n3C8iAf2/n7M9vkixZUdFQQvL4JgxHd8SAQjVdzQ2Q2qaTrpAt9VkVGOeH6Fa\n0+7S\r\n=ozMd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c54ccf71e4018e84948fec32678595d974f80c67","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.a79cdd019.0","@material/base":"8.0.0-canary.a79cdd019.0","@material/shape":"8.0.0-canary.a79cdd019.0","@material/theme":"8.0.0-canary.a79cdd019.0","@material/ripple":"8.0.0-canary.a79cdd019.0","@material/animation":"8.0.0-canary.a79cdd019.0","@material/elevation":"8.0.0-canary.a79cdd019.0","@material/typography":"8.0.0-canary.a79cdd019.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.a79cdd019.0_1603816365627_0.48136558698458654","host":"s3://npm-registry-packages"}},"8.0.0-canary.596e98424.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.596e98424.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.596e98424.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a829c60a06456cebdbed89fa5a4ba23a788c8722","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.596e98424.0.tgz","fileCount":45,"integrity":"sha512-sXXx7OUKg7Wpq73iiIoxU3dvcbQpePTPCmeluMwxngAFqmGHIWZj1K5hTc2dCj/znKNsXKBAPLUFbon4KwdjCw==","signatures":[{"sig":"MEYCIQDIqyXUNrpVgqKGl2V+tgTD7Zh5mtvwk7Kyn1gRuYWHBgIhAMGXqdvnP600JWZGhc3mGJ0JsClcKPOgSF4g7BoNcRVB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmZacCRA9TVsSAnZWagAANcsQAJ0IHmhVBO632qeFpy65\nVH16ZDvUipYEcFvz6WnDzsexLOO8SjW4fZtlLEjPMaZmKCkD5DzfmEXU2Inj\nj/g6ALoZQvn4a93q9MgURxaUSKcumIF45fd122lyprhkPAYG7fFxJSf7mS/f\n9NCAHKGWaTGfcbZ2a6AEmovj//ehyDAl+rZCVtvhhuoxbc4GTV41eytL5MUD\nfB2oX3Nxi3HepMETkprb+dYY+1sb3SHr+T2Nhvfe/jAVai8M7C9FrxHM+f9e\n0NWRinP2Z7LrBQP9cuXH1Xj2DA9pem8Ex2LhuLtgoa7Vw7yYM74qDzkUjJKv\nItJgPqaHPtEaXXPDbQMuz9t1wDTKxWPajbGB6xFGdeZaXYijeBVAsEen8/fu\niu4LLcebCvEEtlHFnV0dbAcp20v5RtKNdssT5POsuojlwvBcusKlkn4IZyDa\nurAT4NjfQwom2aizMNQOVdlkzXXgjZ1N8hwYxe/4xvTFvfVcFi/fJfcYqYLG\nleCH+4COeh/zKBy6JrVVtleK/IanncRRE3k0BTZ9B16p5jUwL20FUYQFwGn2\nbYJgYx7BpiJlmBxVdCQP0fDYWhTRxabGZmeGaipBXXnXSNQR8LYkg5KelLXD\nvXA4bbzz/Fua9B1nPjrDQjge17ws0EZc3iYr2qXyUeY0Dy81cYdbasid8KL4\nK5ZG\r\n=iuke\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8fdc1f444b4540a876847c7c3fb4a934e75fee2c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.596e98424.0","@material/base":"8.0.0-canary.596e98424.0","@material/shape":"8.0.0-canary.596e98424.0","@material/theme":"8.0.0-canary.596e98424.0","@material/ripple":"8.0.0-canary.596e98424.0","@material/animation":"8.0.0-canary.596e98424.0","@material/elevation":"8.0.0-canary.596e98424.0","@material/typography":"8.0.0-canary.596e98424.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.596e98424.0_1603901084456_0.40028604438606497","host":"s3://npm-registry-packages"}},"8.0.0-canary.05d5facc2.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.05d5facc2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.05d5facc2.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f4b4d9f62de1dbe2cbc792915bccbd09d9fd52d2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.05d5facc2.0.tgz","fileCount":45,"integrity":"sha512-fVZwK9Sm5UVe5Jqm+tNDQLqKhTfXbLxbntfpwlk5zsDOojlm1KJdn/labBqj60BYvMrRPj6ETdbA7EgBDwRe8A==","signatures":[{"sig":"MEUCIF8dHVFkw/lazs8IenvfLj553uMTiXokIT+40DKN/n5JAiEA8jF5zYnORpZQREg3sTpxHb59rrZZM6QCCkgY8b/bJEw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmZimCRA9TVsSAnZWagAAnScP/jYOHGkIzsrdCHP6Tsup\nTDdWAaAHnTVSppRw4M6qIBmDocdnyRMy+zjSFNMXSLYuC7Ol0dVUoRTbtFDg\nTqscU59t+dvIMQ4EhAxiBR62rWEszll2mPwkUsL17y87ckwMT5lwpkeJrn3U\nuB3l8RMWz0WaOqkniEYJI6xD8JH7p7wGe8JkALotl9EFJ3JWD8o6Tdfchlbq\n+4NpL2jdLZxZjUJrx5WAjcLc+x52xTj5D/hf/pY96xinSdJggBGQJKv/14Sa\ncLjZIopLXVuLXPHNQ8VajDYx3d1Z18psFTs9qP3yf6lA6zT4ta6b3iQeu3sf\nHKvOkV0sbGajiWJSrHtAWpI0sWRTL+Y5iCjjA8dRRZTGh5s6btFd2/pPfRZw\n0yehRjjrqStklilyoYJjR5HqmwgSexdkk/kqwmlemAo3xIbVq6TWudvIApdF\ntOYVSfTmdySBPF76vPYxgxG7Br98AE5FVgxy349UXfPSF5wHVDRGwJVJS4ff\n9/MU9wegZUEMGOTmmALUZHhxZCGtRDT/TOB6vFSos3pVrHaCFddq3DcAf4ME\ngCXj/yzQ3BvXc5SaLBCshEVkLyxfjmoChc7TqIihCWFCeJhyBHjjfslP+n4F\n28MBOyI8CQyE8ziUsBeTnEjCm+pGEZ+YRitZUZsjFyavIYQZz7rdd/JSE7ru\njdEO\r\n=rlW6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"db17092b19dabd6628edec5bf226f0b6a48e4f95","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.05d5facc2.0","@material/base":"8.0.0-canary.05d5facc2.0","@material/shape":"8.0.0-canary.05d5facc2.0","@material/theme":"8.0.0-canary.05d5facc2.0","@material/ripple":"8.0.0-canary.05d5facc2.0","@material/animation":"8.0.0-canary.05d5facc2.0","@material/elevation":"8.0.0-canary.05d5facc2.0","@material/typography":"8.0.0-canary.05d5facc2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.05d5facc2.0_1603901606498_0.9072857171513493","host":"s3://npm-registry-packages"}},"8.0.0-canary.291b3553d.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.291b3553d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.291b3553d.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9b18311b40dff58ee0bd3c719ac426138d75c54a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.291b3553d.0.tgz","fileCount":45,"integrity":"sha512-V54Au9I0rjUoA1b9G5TgUXw656o54VUqiMw7Gq36AK+1cuK/6+NO/CBmmmppf3PXb+Bnpl+TQAEwEMHgjIgSTQ==","signatures":[{"sig":"MEYCIQDnB6ZckSSQ4Xn19gKaPPTCFnt7Ynqt667THL3bkSWKxQIhAPZO9yn/H+itAzMx0K4eJBEGoZV8bR4PdTRcXOjhvRwn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfma5hCRA9TVsSAnZWagAAfvUP/1hd5qH+erhdaMJJoIG5\ngSLDfHWRmIIFh7gE+A5nK0LgouWX2X5DvgFDoph3kBxIhEGy9DMlG7FHanWd\npMRY5v1DS5XlxyLLBCQvfW1tns0BeeV2QpiEWO1jG8k3ZmWW2tcupNhsMCVS\n+AZGZAeLOMg/180F9KHgAfIsPkR+wChddwjMPk0Jzz0LJWd9UOQeXDNU+tuX\n1nS2TyfJ10LJLS1jwMljVvqv4R9epvT2e0ezYZBLWLVjzKKaaw5dq2qlmN5q\nyLtEUwbLbw9tCYbsbjdYiDbNgWngWjCKFUMrQoGrJFD6B0+6yrrHzuc3vGeb\nQK0s59VSFAB6rQIYHjTpswKsgE9It51ueQtnNIcCVOLiNZxpXAvDSP+5rrR5\noYbqlsp7rUJ7kvzVIi0otxQZJ8sgnxyClKrLXaDBBxsOkhDnomkW1oK9uXeH\noMHitHSId4Jp33jSAjIUrhy/IpFYh2MUJjnZ3q8kHsRODDo8Uq5s2G37Y01l\nDbDtyvQlSKGY4+Masw1FGV6sl9k8HVCZhi3n3TxcMCEVQZXgoeVpYDRv8tWY\n9YRgPcTj2wkUvvflorPgX6ouCR+pDh0fo7DC33WTxCWcIwQdAik1YMJzcgdR\nlUFsfaPczzmU8zfIrsKfzRnSTLXgldEsfn7/K30XgECn99zQekbzffP/lfZS\n87hK\r\n=c7jg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bbd141e6c5168a84cdf50ef1302c9f705f0eb283","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.291b3553d.0","@material/base":"8.0.0-canary.291b3553d.0","@material/shape":"8.0.0-canary.291b3553d.0","@material/theme":"8.0.0-canary.291b3553d.0","@material/ripple":"8.0.0-canary.291b3553d.0","@material/animation":"8.0.0-canary.291b3553d.0","@material/elevation":"8.0.0-canary.291b3553d.0","@material/typography":"8.0.0-canary.291b3553d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.291b3553d.0_1603907168548_0.29206155329988537","host":"s3://npm-registry-packages"}},"8.0.0-canary.dbc449b09.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.dbc449b09.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.dbc449b09.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8fe7c14888f76dd7b62b47adb14d88409e79ca3c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.dbc449b09.0.tgz","fileCount":45,"integrity":"sha512-glriL0a/j24n+LOpkTYMzJAkf8KAI/Z93zoj4dfxrJRbcf2MZsRJgk4SGsFr5a8HglCwAw62134TQrFbeJMyZA==","signatures":[{"sig":"MEQCIDq2G6zpPwu+Y4A9jD77HQJjhxVVPn6u2UDCP7wxEsR4AiAm2B4GjHS0Sr+1oHoQi00YCO0+1qMZSlDF9e5miYkwtg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmbTjCRA9TVsSAnZWagAAYfEP/0he8XTzpfQRAvRcbWC5\n/aiZUYjF09TXZaxh+rz6/tCRGUJPaGEIrEYWFVr+hQit8X5iUJRq1jGrX2uR\nevHEbgaBWuiC87Tk88iW+82jDJXE/eaC3Q54ciLcC1943oTQeRsu4esTm/dM\nR71a1MECpocQOC1BIman+wfSqK3fOEaunZQm5HZlD6Ru4O6xhRhYDSx71wY1\nGPvgB8wEsyvvYOm1VDjB1zdjtgk6zUTS600ncGX7hsX6OTu+iO0jhQIRau3e\nUr2P2mTAY4DssMD46MXnyG+h56lkNKY1XSXl0a95gQCat1eswwyAK8rk/Ikj\nWnCK1KJTXpBM0p3q7Y4gTKrUswCCz0zRrj6ESoiRO4Z15l0Vlkw83f/w3l2x\nCEgyBIXo8FqkwXJ5UzLixW3L/9pdd2TEDGnTMEbTrgGOxWzSNZ4WosDemZel\nq7Lp01ZfHpayeE0ua/kcc1Ql+4DL9yqCUvuzAVKZtuXNzIXbTOc3Gbe8bPay\n/NQTC/tDuLln7ZCBDwA7YM+uwfYH1cG6IK817bN9Qkv9LHeSIxKL+mPvs189\n9IXv3RkgnZr8vtzAb24IJ2h9oqyp9ZMnEtJo+o2JaQNETeqQaWgMy305OI1R\nQ+/ldi+Upn1ooS1T/w2ox/KR/kTvy19K2lj3HFBtkMBJgIrvfwRrE4rquo1/\nLOA/\r\n=HkvX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7888f3b13baccffea8b2b02ef5c25e264ae321e4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.dbc449b09.0","@material/base":"8.0.0-canary.dbc449b09.0","@material/shape":"8.0.0-canary.dbc449b09.0","@material/theme":"8.0.0-canary.dbc449b09.0","@material/ripple":"8.0.0-canary.dbc449b09.0","@material/animation":"8.0.0-canary.dbc449b09.0","@material/elevation":"8.0.0-canary.dbc449b09.0","@material/typography":"8.0.0-canary.dbc449b09.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.dbc449b09.0_1603908834696_0.9654774823380563","host":"s3://npm-registry-packages"}},"8.0.0-canary.4794b25da.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.4794b25da.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.4794b25da.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"43b8e04c684a793545f3e15dc0a4978cb697c192","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.4794b25da.0.tgz","fileCount":45,"integrity":"sha512-oHnGr/aHDy1l9psbBB13/NAnWfgEV3noDwC9bH8RMvGh5iSpTzUAwybxmfeR4/CHwl7ooZnkE3JCIrivhZv3pg==","signatures":[{"sig":"MEUCIA7fkU7HFUYGDtPzWPZvwGpkzBDpoMBgehizlqiIJwEoAiEA3g4c5K8KlkCFwhCgMLeZ27AP8nbIesQ1MY8M92CBjfo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmbuOCRA9TVsSAnZWagAA41MP/RASxY55Ur9afCe11fTK\n8UYfLCTgp+O7xHHKr0wu66/k/fk9Ke0ky8h86o2PDO9D+hhtusCz8L/KGoJV\nOqoLHXmDKrwq6UK8UEokDPbAdyTjyLXFnhY3hCNLiJSrOR0QqpDsYv8fcxu8\npj+ji3OP5XG4yNAZ+VJAtp9huiRmp2NnCzGLbS9W6k9NVE9Cr9RfJvlcUB1i\nRXTzFqyvOsTXF+751ptlZAmCktJNwcpa+wOcAJ8rY0sPa7Qk+Roj1MbrThzd\nMIw9gHT6v2k0ibSIJojAUAKYnD0Ymi4jFox08huYaGo814rhhsyUniDv33tX\n8Ilb6WWgUv7fROwjrZd1RznnDEJQ2q44L6iddOEFx0NYWguMBrFhhPPvNilA\nk5bhjkcyKlV2FNOBXc0XgJUPkx59QgYmF3yLbBH+zHfxw36LDeP0uihAoywc\nxjm76apWRNVgoqyDWeiKsnzwbZbvw4+vQFBB4K3n1mRFxHOq+/h69AJysAss\n+epXBCtNvv8t4LiNBsw6wvj0WgKcdDH0gasyZUm3KfE/q8XVoXEAxP7ajGQS\nt4gy+1N65+Aj/21LKpLUtivBSoXbEGjkkTobIxxifia3pCVU5k+rEQTUPGDJ\nppGz7upDoMbhTeQri7fyAU50zq0ExEc8+QatofEUA9hMckDZwnnQdr39pLt8\n/m1N\r\n=DBLY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0c2eec6be7b76adae9376847043bcde093f59d3d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.4794b25da.0","@material/base":"8.0.0-canary.4794b25da.0","@material/shape":"8.0.0-canary.4794b25da.0","@material/theme":"8.0.0-canary.4794b25da.0","@material/ripple":"8.0.0-canary.4794b25da.0","@material/animation":"8.0.0-canary.4794b25da.0","@material/elevation":"8.0.0-canary.4794b25da.0","@material/typography":"8.0.0-canary.4794b25da.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.4794b25da.0_1603910542515_0.36812968020780024","host":"s3://npm-registry-packages"}},"8.0.0-canary.c61db90a5.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.c61db90a5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.c61db90a5.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b4e8c83173e1e857f67afebe0ac7bc4c32519b7f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.c61db90a5.0.tgz","fileCount":45,"integrity":"sha512-2XIUvXsIonCYEAVGA/Kin3JDY+XZa9wL9mXlVnD5CQDB/nTm8UFC4FYjiszuvR0doC5048A5FGwVhgbTU1QsKA==","signatures":[{"sig":"MEQCIG3fQ+7SUjuUFt43NRkqh/irfMJq7/Cchm/jPNZtizISAiBu+5vF4zOTBgjEf8Ltpf8jfFsOIVwDYpUPPmLERNZB2g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmb/yCRA9TVsSAnZWagAAJasP/1Bz6bNZj+EY/mns1eqN\nnHTlT3CNEz2LTeal1KcPLn+QGxtop19GOHdL9N9iGwFIseKly+OMBaG8V2Ri\n9gnYx6XvOHxxoBsrCXwl5o/ePpM0kp7QOj3TfQqQqY1NNOvnollXF6EGSwUi\n2/+no+EpTtEjMoFtgaUCt3evpcY5LQnRdCXqnIInGR0uqwSg3hBBMZ6FVsIy\nolXa3ZUmgFXuqBWuqm/Ig9k+XjB3UVGarDwveyTronR6yVmhBMVorgBBFFRj\nKT/Lq9Pl4fO0/GNtpu+yDFBoAbVLWmtYtUfA6hQd8kao/gUgBHkTfi3f3vpS\nr7LJrdNh0R/QhLkSnVONE/hcWEqoB33Dim0j/1PPy8gUVyhcSy2Cu9efhGWT\n3dI01jqS1hRahvWQ/U73P38MQ18N6a9G5xCFWedwR5fVwBQc7fkzdQZ3Q61E\n2cbMIl8gL1qMo5GE6ZB8DYxtaxTcHsz5E490KZu4E919/cObZebRw+THZVp4\nUAFkzdFQSK4k3JqLT5GYgrnDXb/W/p7XwTxiI6t+/+xx389qSVxABBuW4Qac\nbF1N6xwkNKB8sAnq+yZwjaPSOBz+Ah/UOp+27x9aot6g6nerUyYw/Xjg72Cx\ne+Jbo1729y+HfPBbb0l/vOBG1JYB88SNpAqwVgYMCovDjp0mF8JpVwRpzicz\ntjxR\r\n=o5V0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"695570eb7478c283510b9174ac7c4911866e0868","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.c61db90a5.0","@material/base":"8.0.0-canary.c61db90a5.0","@material/shape":"8.0.0-canary.c61db90a5.0","@material/theme":"8.0.0-canary.c61db90a5.0","@material/ripple":"8.0.0-canary.c61db90a5.0","@material/animation":"8.0.0-canary.c61db90a5.0","@material/elevation":"8.0.0-canary.c61db90a5.0","@material/typography":"8.0.0-canary.c61db90a5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.c61db90a5.0_1603911666178_0.5806315222290392","host":"s3://npm-registry-packages"}},"8.0.0-canary.6d9648ab2.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.6d9648ab2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.6d9648ab2.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"59b8689dd1cfdaa067c3d78a29cb3962fd901930","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.6d9648ab2.0.tgz","fileCount":45,"integrity":"sha512-yVqESUzHscebUMiGfPef79uI83RYHaXfli6to67ZYXBkqk6DCiSAMeh6eCF9uO60mTfEJMzmMR6nfrJCLhb5Pg==","signatures":[{"sig":"MEUCIQDeZngB18466pId4A2V1EIAqKfHUrXRGUcUr3b22Jq0vAIgLd/nQKVbIdfmmMdI3BEETDz8zhV67T2j2mGnxJTt6zg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmycqCRA9TVsSAnZWagAAUMIP/0e/MGoZFj+A8bkmC5aZ\nns/zdq6xxdf95A8gP37ddlNYIupADvm6hrO6g4uWN6L9r+2v4XpfsYaRmjx9\nisJ4cu5c3xJOe7Dh7sbAI091Xac2eQPdJ1wbcDHlQILrwpdiLjT+BkjTfSJl\n/pkomXxhuIIAgbjhFlf4fFSW4riAep6IKtubOxBgHopDJQ5tpz2kR7OEUfFm\n8aEPcahcmx2lC0vARTDeyk4vsjh2yNP3eO2EQljZTCUZk6TmdoeeCuVaQWPL\nDMdR31kaVD3Q4rilAsTfX9r861Nx3Z3kwszb/kGO+gDHBGVU2GmhLRv2ZyEd\np0ROtIkb6kBvVCvYbgS/Tn8Ix42Z+Kz63OMbY4SLlnzYzOxNjg5IgLunZyQA\nCdrQC89aiV9w5uuIqEUBjH22G9pwq49G/mxFskKK0JjU1CLZHCd06USyxJUc\ncoc+y36vfJAeovIbaMxvgW3qETVk9vLzPmc/wGIbqmkMLqHwaJprim+4IByv\n+rf4RNgR96fzwC5jPB/Zq7OMhW/0E6VeJBHbEZr8zzTF5hlC5gw7ht9qOLUD\n9fC2SIdOn4+0GtkT6DoN2c53SAboMBzYbipq9kISfV6qF5Qh0Jxd69hKx9ai\nk8okFM+wUDqIMkC4QaeMLaO+jCQwMKE9IG+GGozhVtVSUxzhPZQu8qEskhS/\nLNGY\r\n=gRT8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5de6a39d4b70a98beb71cf8243a219f454b11aa3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.6d9648ab2.0","@material/base":"8.0.0-canary.6d9648ab2.0","@material/shape":"8.0.0-canary.6d9648ab2.0","@material/theme":"8.0.0-canary.6d9648ab2.0","@material/ripple":"8.0.0-canary.6d9648ab2.0","@material/animation":"8.0.0-canary.6d9648ab2.0","@material/elevation":"8.0.0-canary.6d9648ab2.0","@material/typography":"8.0.0-canary.6d9648ab2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.6d9648ab2.0_1604003626107_0.43227565248928523","host":"s3://npm-registry-packages"}},"8.0.0-canary.5511c5254.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.5511c5254.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.5511c5254.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"91f3d5a1dbb9dc0a8e336f93cd1efb808ca72a28","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.5511c5254.0.tgz","fileCount":45,"integrity":"sha512-9aWVzdIExgUfnXhzVnTRMLBIipdulpa+y0DC47wzjmZWIEMWG8CEsy8YXkf2Dhk7/bxVOG9MjjRAm06c6D78VA==","signatures":[{"sig":"MEUCIQCYeF/E6ydZ5dZO3w1dVo5ODLstDu6OLBOzY9exdY/fVwIgNaLNnMYG1qHI8PdbI0Sy+302E5Dx5kbc/GX+NUPXpOQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnFTtCRA9TVsSAnZWagAA1BAP/2RWQ7Sy1oQGkd1YUf1S\n/JYoeeJPY8GshXpPcC2trBYBkUjNV3stQoB3BB3H93JtBPXkjJK3v4KtEjXl\no3zz2Iui7PH2Z3SWlVc6WSI/up8fumjQ5MXHKO5JTv3ziHpWYfrSkUAsm9H1\n8m5RAIVPUf/hoYhXdUCw4Iha0DSkaqBmjjW5dYEaRoiTlZrAj2uaKdPCkKBF\nmK5ZRUAaH2ZgDRcK+NDTjabmuK6YQ3YdNk3C3dzgjCxF+oZlOdi9mt9MJemO\n6PfencvXfJrOjUoNTjgdsBuFYH4uA2X5ik2Oe1ol66sdzJ00XYNLR9eDKDq3\nofIfA1yQ2kb+XS8o1CcslArmMCvZ74hrQjm8JUwIjaxg9w1RxfkZ43BEw9Bv\nRbE7NCZnKiYJC3NUZgwvr4IS2UTuxo1O0TEFeybYKPkEIRSNAk1DLu425HhI\nMMMyz9uHfOTxoLlFJQ4Mahi56Pfer2lcJ0gLnTWOVG/kR04pRfWpKNvMBdt/\nVsim6rfpw7Adry6LK6h2P37YCe72bQaLabTe1pQT290ho6eYo8sMvYdqx66M\nOVUu3/PjnxM/Lx23MkymBqs31nBi/ga5t6/M1Gs4odNcaGrNp6xADGd7M6i3\ncJzSMqBAIRucziCxp6FqDe1HWwrBUQZ2GsZcXnP5Q/63x5l4zefgWqcXRyZ3\nRXqt\r\n=5Xul\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e847a627e044cecc475be1f0140e17a4e2a68dbc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.5511c5254.0","@material/base":"8.0.0-canary.5511c5254.0","@material/shape":"8.0.0-canary.5511c5254.0","@material/theme":"8.0.0-canary.5511c5254.0","@material/ripple":"8.0.0-canary.5511c5254.0","@material/animation":"8.0.0-canary.5511c5254.0","@material/elevation":"8.0.0-canary.5511c5254.0","@material/typography":"8.0.0-canary.5511c5254.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.5511c5254.0_1604080876709_0.7621204598164713","host":"s3://npm-registry-packages"}},"8.0.0-canary.bd6e302a4.0":{"name":"@material/top-app-bar","version":"8.0.0-canary.bd6e302a4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0-canary.bd6e302a4.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d7a53b1455555c02847d9d0faa11a4b6a67f5a1e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0-canary.bd6e302a4.0.tgz","fileCount":45,"integrity":"sha512-PAehiL61Jo2vBHqkbQgU/TD61M5NmJOMFytTim9hTUQqDuF0mtbDR68vQ+e0vwZRIDR4GeAI4ez4XMoxejUwXA==","signatures":[{"sig":"MEQCIAMvKXMy1A8aoCb8NOeuuYm+faPSW+EiY6Wc0x+0WQXsAiBQjJccDn+LzM9hfBz8u3uHR9opVesC9V/De4TwfvvEPQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoDx2CRA9TVsSAnZWagAA4RsP/R6wo7hOFj3klWhxaRru\nEtMnCXp/LCCYKnKSX6dUnvFjMy3glg0atkmTATl/IaSqA2nQ7DUN4xuksDKW\nszzX0t72YTHSbUNUZgvPKMQbNXZku9MehJIAUiemyGACyOLCl3nj9+FD4NZW\nUnCSD9BmNpcc7pgNEmkRR9+xhr0Cws1JF/06CI5xYIyTpStn7axNLrtwXGb9\nsnRZYVO0CKpykeTryajDebKSalATxwKzRpui8yIeeiDyr0C9ZffaYf6dUB1u\nEwFM7iz3nd8JGBWi9GjBGjqLRzh9ctnB1Bn6yabGrw8dnJsfMDYchqvTQcLc\nw5I9yU+OggOjQlLscvK307KU9IOV2t+YlAo2ih9KhQITb2nnquSkOhlI8Xee\nvVZbE4X+pAFg51rkAHRivLBP4aka8WIGnANVBMkRR3jgAlctFDI/8h7aDjnJ\nZS99gxGA7nPxCCSsiGPqzw24w8pg9Y7x43sozp2chlG6jj/23GuhqbPumHsI\nCLtfWW/CUCOQdJ1UHGS5f4i8mID1bviFupapWaj25igE7trQ9PE3CTVUBDnA\n0GTM+rK76Aad5lohBztlsQSF695FjrhL69pgdPWrhHSjM8jfZpHqpn22I2Bx\nJCGz22zpo9YorIlfVlmzOjA/KfQk2a83HQ8qsVpU7x0IywDjKo7DqiTzATRX\nFJqn\r\n=VmCI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b48f791b92804fe77eeba96f057b1baa89c48e3f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"8.0.0-canary.bd6e302a4.0","@material/base":"8.0.0-canary.bd6e302a4.0","@material/shape":"8.0.0-canary.bd6e302a4.0","@material/theme":"8.0.0-canary.bd6e302a4.0","@material/ripple":"8.0.0-canary.bd6e302a4.0","@material/animation":"8.0.0-canary.bd6e302a4.0","@material/elevation":"8.0.0-canary.bd6e302a4.0","@material/typography":"8.0.0-canary.bd6e302a4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0-canary.bd6e302a4.0_1604336758416_0.510260791977933","host":"s3://npm-registry-packages"}},"9.0.0-canary.d6b5cd418.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.d6b5cd418.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.d6b5cd418.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"afe89152567d2ac1ffd1e6afa36c30533ce505be","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.d6b5cd418.0.tgz","fileCount":45,"integrity":"sha512-4f5XzxKXQkwpdC8bK1jG1Lsl/ia631W+VDChoN8+EcpGU//oOTBJxPY7jPmcUiTXuZEcAGKbg25NAov9HsLKyg==","signatures":[{"sig":"MEYCIQDyemG4SSdbrEaP2Vx6uQtefoSncg7vDkuO0elE4DFIiwIhAJFktJPIncHSqVw7ATFZeQrPVOaEY1WS0jfJJkuhQqn6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoI+NCRA9TVsSAnZWagAADkkP/2+WbtSmnoNSfl24yKvU\njLudIIJkiwIDAcZfEjnsxcjq1YbQVXerNrUZlyEUzAfgTORruPWG/DIs9U0e\nai/JFlZ1wE6rUTrUfSm3DqN9rrmjZ3RQwlwFo6Ik53x5szT+1bXD8a4hJTAJ\nYOH6iu0CshAtF0j7IPCKgzBNIWlvVXlxLnIxtfuXBBkn4NiaufBcmA+xigWZ\n2OS/idjjrDGtvG4T8C7m1hBRWCmVI3GmazS2KVLKitAEqrA1TTaaNEVi1gE1\ne6RKJ/N8xKlfLr4+TwqDGgu8J8DNXPH2EzEqYITKafF3SCSuNeLVZgdX2QqP\naiB5KQERglUzlExEzuM8SfSYeZBpwq2vO7/YFrut1Nwf2/zc7Ay13b20977j\n3j4eIZ8QNJJfP2M4eKQqP16PqKeuxPAvofAGJKkYtg5o7AVoaoJbaIvz4E61\nWqx6ZmTOylVvXt9UhIbqNp3nyqDeWbyBo3wLV04kLB1u5OzrFgZATzdfq771\n/N4pMymleGcxMZnVB7mCqW+TtDRBFtWXHIMhpOP/1DMRKjmhOm3q8vIEGNvC\nchCE2rklsZnA5qu9b6JSQ5RettmCX+wNCYK4Hle0Mup5PMk0dKIHsm/Ko1hM\nE27fapCrXKpxz9LfRoBI+02w4ERXP5gSlEE51RSrfQyPAp+jXn4tMhB40R4w\nodwp\r\n=Ep5k\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4fd5e4f9dda92417995fcc822b1d02016642b511","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.d6b5cd418.0","@material/base":"9.0.0-canary.d6b5cd418.0","@material/shape":"9.0.0-canary.d6b5cd418.0","@material/theme":"9.0.0-canary.d6b5cd418.0","@material/ripple":"9.0.0-canary.d6b5cd418.0","@material/animation":"9.0.0-canary.d6b5cd418.0","@material/elevation":"9.0.0-canary.d6b5cd418.0","@material/typography":"9.0.0-canary.d6b5cd418.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.d6b5cd418.0_1604358028857_0.8691688769027153","host":"s3://npm-registry-packages"}},"8.0.0":{"name":"@material/top-app-bar","version":"8.0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@8.0.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"21f2e4a9958b16a256ce3c952c17469d8005323c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-8.0.0.tgz","fileCount":44,"integrity":"sha512-cCP1eUAuFA8FbNgt+O3MI771IkIIMIUF6pc+hXBMddCBeec4VbSKUCqeRd1TR+RHPTf4BQ1QmutMSY8AkLIoyw==","signatures":[{"sig":"MEYCIQDfx02OCJSVkImJ80wwUHYdly/Gur1EEJMeJ4g34woOxAIhALDwyw59ttpkEGKAbsn61iMimZWZOy/3IhpSaYETyOEc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1087543,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoI+cCRA9TVsSAnZWagAAFw8P/jcWf53tW4a3jsEoRAif\nFCm64Kdym31Zi3DQHAck9grsb9bZSoWvDi1MNGSO3ZqbdsaNWaMEik29JAv7\nRPV2uTw7t0UJ3bJe9DYgYJf2+PCWZf13qjk0bG3UNiu8YA/kaNMTsxe1Jjzw\nE+DQIhvpeZA4bNlEM9rtgW/ZqKJ6re7o8z0DxtbJAlGfqbMysoDusRAvySMx\ns0i2G0VoYjjJ35YYXtolOtaEKgMebkxaqSHY9abpjdqj60WyOrd8+5NCX3Fs\nhYDFtopEzhyLVtVvKb2RKtJ7xQ4xNeqDIZ0KKYeAIGJxZ5xBQQ7703llFFKH\nZlbfrlWLNkjvJYvIUTfHjogl2axRu/7yQWpBdg+yLE0e8gAfrL/C6IX22kHa\nSfLpMvryf/VrG3OzSQCcCz0S5hK5bZD/4Dhl1uuVCMybe/Hb6325r9Rl6wOY\nE7wQ0pYQTpqY/0YVAoVGeATth4ps6sv+tBBB3nn908IN6EXBIX5Pj2fjASrK\nD+93jpOZu452ux2xwUN3khc+/whHBm7R3DHaa5q2W1qVnugm/Z9Qa++6pBxR\nuJCv5ZtGu4tkQsWU2jO7/8NmWZfkZFF2U/UTUgXzH3wlPWWLyvYXb8wWK1uK\nEBNQvHoiypL1rq4E4U7RstKyuFBEcdhGTHSqHsdHK0TexxpYpAIqYyFsOa0Y\nN1RV\r\n=+4Y2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","gitHead":"d6b5cd4181d0bf11b598b5ca142343fbc87976b9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"^8.0.0","@material/base":"^8.0.0","@material/shape":"^8.0.0","@material/theme":"^8.0.0","@material/ripple":"^8.0.0","@material/animation":"^8.0.0","@material/elevation":"^8.0.0","@material/typography":"^8.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_8.0.0_1604358043676_0.16897661327980318","host":"s3://npm-registry-packages"}},"9.0.0-canary.fdf9a2634.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.fdf9a2634.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.fdf9a2634.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"76fc0d19deab4591ec09a6e43c18ce0cabfd7066","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.fdf9a2634.0.tgz","fileCount":45,"integrity":"sha512-DqK0IXX21bjwCOqVGcDxc/6LqKEBLBTpckdIqQcvZMnkljqEtmuQKaw8W34P3GRYr7XiVEz++cij18rUM+nlbw==","signatures":[{"sig":"MEUCIQDdpJedT5Ur1qGeMh31UI8Pab2xRA6Dw50/YYk/BtHDWgIgedMSpYfVW+wadJiYdX4xIraBLXNCpNI1zvdV+u8Zhic=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoeY5CRA9TVsSAnZWagAAy0kP/ROnXXaa71lFwbiSEGh5\nz0S41xKbzwoSpxXY9JHjiNWgI9ObsZHyQPuzSozS+5UzzKLXSyEaOTxsKnGj\nRikRyHeOs5baNPKRPJD+IUY2w3meh65hmNqn8V2PNNOYdHTRn4BuHyNbAssj\nV97TBRs/a5whkGUz0wGviEOMFo0y1gre3FprHcM8DOlqykwmkQVwgNN3CSzX\n9TsSOBlRSibAqjHknGqg9NnDHcxy4/hyCzh6oQItKoH/b1I12ecr8MzUvKPK\nfQ78UEouE1OjtgdLPGnmczOi9lL3j8xGOgTA5f5DWfc9xA/SzRwuRO6YCQE/\nHtrt7fhWyBWFBnjUIDfUP7tiSkqtw4XS3Oz8dSzat1KXGoRQHIRfgI+A+OEV\nbV/FHZCy8QeSTGN5HSlEIcI8JAxR8XSy5PuamU1qA9k4mLfPEBqIvM6DZE33\n1O0v4aKoUkMddFmWE9qL0xtpqA7/Q8EUp//AfObS5uSet8YZ/xeIZFnag+WZ\nEdrigVvNWW2WN3f4n0qXWqSpf/JAriCiLQAf8W0oWFJR93PDF0+QOtGsrVok\nrT+7CMLjAYyR36swclkICS2a814QFT9n2AVpg3lmqAleSttld0oJ5j/EDoQO\npEf93AyihFcTtkQ52oQw1ekZ9pmTxsUDC2mBqh5UwZMTl+H9O6g6eQ5mncTd\n9/4h\r\n=Y0t5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7d38b3b1a677a24d709697b68fb697f1367fb5d0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.fdf9a2634.0","@material/base":"9.0.0-canary.fdf9a2634.0","@material/shape":"9.0.0-canary.fdf9a2634.0","@material/theme":"9.0.0-canary.fdf9a2634.0","@material/ripple":"9.0.0-canary.fdf9a2634.0","@material/animation":"9.0.0-canary.fdf9a2634.0","@material/elevation":"9.0.0-canary.fdf9a2634.0","@material/typography":"9.0.0-canary.fdf9a2634.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.fdf9a2634.0_1604445752702_0.14652546584492954","host":"s3://npm-registry-packages"}},"9.0.0-canary.4a86f30a0.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.4a86f30a0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.4a86f30a0.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e00dffcd53bfe371097b9a0b247112dd2308e9b2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.4a86f30a0.0.tgz","fileCount":45,"integrity":"sha512-URie6aSIAEiuPbySxEGBIyc133CtgHLTUdgjqrNnlUH+prXe7rhgYx/VYhOE8BU72e/61O38RVox6FXNUfvZ+A==","signatures":[{"sig":"MEYCIQCzZbviYmdDwt11mjlHFRfowlyGoKV0/2XJ6yoI86eGkAIhAJfqdlfPHvjMFk8IQda21tU+1RCzTBdqKuaNuQeTvZjc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoefQCRA9TVsSAnZWagAAPXAP/RwTlGPApulcXEihGzzq\nU08i332iWjy6ODfGT65zbZ6rS6/Lo0zivKv8K61ZUS53jNv5xOBYEkT85fFF\n2Q2yCjluwNqdcrtsC1yLPSCIunJ0jnNG+HzVZtpOQRVGR5gbgBLa1ScY91hF\ntBulXusWOT187EbkMQco7bNBfs93ueFBuYCxAfPe+szNnY5ul0vIGgxqTSCB\nEkv+8zZ2/Hjt1v1dX8YSH02P2BjZoiO+yhE2SMGw9SFNhLu/zYA89+ZZZwfz\nsA94HGATvQUfj3IjgS2/TpeH94Qz4xi3KlvZmHRN9ki48TwDPY+vY/jDXRKd\n7bdosBAUG/+B8nCx30dMCDjAwGCxCSNkktpEgx4jGiSloTYAFFHEeRlIGv9u\nVTByCAYs3wvhn0Q9cavPyFu8Cfkhisr/W94W/XTVtByjoendfAsdbOl79gdY\nNOp9DNtceaYsbHx8q5Cht1/es4NFM2sXacUELogv36eGxtH680fZalC4c8gm\nwU4A1zIX7z1Sh95CyTkJSH+m+54czB1oV1YoHMbhDYWwC4B2ahNka3DSV2d5\n0tUu5z/2s4t7JedLz75Ga0scGHNngATqM5InJJid0wJvMuxLE0NYJtsmqlAK\nqtoXkbrRw/WCawCNK85hvDCZpSBLMknhGSlbYVypnGJlMBEhG5F+CI0DgRLe\n7mDm\r\n=/wFi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ae1cc15cda11f90ef629a1f536e69a9648db906a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.4a86f30a0.0","@material/base":"9.0.0-canary.4a86f30a0.0","@material/shape":"9.0.0-canary.4a86f30a0.0","@material/theme":"9.0.0-canary.4a86f30a0.0","@material/ripple":"9.0.0-canary.4a86f30a0.0","@material/animation":"9.0.0-canary.4a86f30a0.0","@material/elevation":"9.0.0-canary.4a86f30a0.0","@material/typography":"9.0.0-canary.4a86f30a0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.4a86f30a0.0_1604446160518_0.13784558944067138","host":"s3://npm-registry-packages"}},"9.0.0-canary.fc8b045f1.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.fc8b045f1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.fc8b045f1.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"baceb15ea55f3e569634c1ccc657d67081d55360","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.fc8b045f1.0.tgz","fileCount":45,"integrity":"sha512-axJxbiLU9taV9rDhXkldlNifq5EbnDZPLn6d9hLUrnZ1MSNRW3A/lHDZc8px3EHBgSIZ7cL5P7k6SfNoWPTfTg==","signatures":[{"sig":"MEUCIGZ3eIr1JKiqFEK5eyD2RGuNA0GxgLE6LYHOH3gXQDdKAiEAl+INshhqAgo62KQo7r8jx7ZmGGbPjZf2NPoniKryIvA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoenlCRA9TVsSAnZWagAAs0kP/3R2jsJ9ah8uir9+Ycm+\nq3NalhCY9wEB2oL+j8/hJVbnrUO4Fp0JIg529DpCfuUZ48+odMA/a0PBk+/R\nBLqeydYzcgiWp/RaMLh/zsq91xc2IT5BfdBbDNA1e+AQgAyRBhCB9nrXJS+A\n3+wFnAW2rfaQUrfLdXPTq/qtA5kGJJZ8WubcB08Dv2t5PIpakVTcUQYA4zLJ\nRm8opQG41yEhxRMfqvUgcPd/8q5eXTVD8+yWXdNFZMQ8cHOa2k4sDI2xVcj1\neslTB6o1WsxGEcBpqphlCaEyprMOpMCHv+h3qEQb9uiLk1QDEXtRkPEMJGJ6\nlSVFsKsQvhLHK/OGm2qhqJK3xJ3V21EdxdGaNkmUgYV+tHEgGLFThgL499+H\ngPRZqWO7JFY6wJu2FExROxcF4waSQ88EWgO+FXiYWlUunJxYmlJaWAYnmX/P\nWflW+3eWlHLBJfpevlTrMK3kYmtq+aU/K6KlUkH7m43XhmdyWRHyHogqdS1J\nJpD30Z/dG7XAR09VgtT9dL4nMGAv0wSFzEy3vq+byEmOtsMHrcDz7DyVsOZ5\n+uW5j/Mw5KGtWruwR+GydQB8Bixp29RT8dkID7moeGaojkJnDCyzu1UI5+w7\ni0ad4sRNXcEyUE2j96/rVdXQkWLiTgeos+7It53F9XF86LZ6koucFdidIW18\n3uVv\r\n=liHY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7df7659dcee84f0af6a1e7d8617abb4056acceb2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.fc8b045f1.0","@material/base":"9.0.0-canary.fc8b045f1.0","@material/shape":"9.0.0-canary.fc8b045f1.0","@material/theme":"9.0.0-canary.fc8b045f1.0","@material/ripple":"9.0.0-canary.fc8b045f1.0","@material/animation":"9.0.0-canary.fc8b045f1.0","@material/elevation":"9.0.0-canary.fc8b045f1.0","@material/typography":"9.0.0-canary.fc8b045f1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.fc8b045f1.0_1604446692587_0.40986569351614177","host":"s3://npm-registry-packages"}},"9.0.0-canary.a0b2db26b.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.a0b2db26b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.a0b2db26b.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b11ea399a1d80a0d11cf39e3aa129fb693723021","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.a0b2db26b.0.tgz","fileCount":45,"integrity":"sha512-hbi+zXqIQ85bOB5JP7Ar3vTkbEUBbW09pfdksYHwThDvVWnPnvTUkKNOO5jmrytXRG0mWHUqIAh9r/327wM5aA==","signatures":[{"sig":"MEUCIF1sXClrNYL6pQLnw8XhtQkPht14Mt63WdW67eOS9ju8AiEAgkXqJwkdw/U23li2utSf5qj+daony1FzRrw4YKzXvuo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfofFzCRA9TVsSAnZWagAAe34P+QFhGNyCF+f5vQJG5xl6\n/qAQr/BjP+FphRiowkCK1FSH2VOBLCF1N8q0ewck0+LrLIk3kmVopwzZVTKN\nhvicv16o93kXKVuQuF0GCziLY6cwKgMh2FY6k6nRifRLKbxY+7xzkq1sablr\nfH4jvN16TW4MeL7EgEPD96w24KHFqO0Q8K8xhUkt+iTEhFc24NfNg558Vb3f\nFgizbEwWcBrkr1zNdB9gM9thfqNAGk40aYKUkvrDzTH/1pe/urviPzR+j/Jl\nBTMrphVhnFntQQh89x6Mg4sjZLp+bgNRPQWTpVQ7qtBob/j7qndLpoUlqz7L\nQYJAFrEzMPcrURbG0oxg2T+YYLrr+SAx1P9jTVEFudssOMqAkyL2d7DVd/Fh\nCaLjEe5T59grgvSmxeYJoGh8itIVdTtjjNQxpT/YPgzmJjHQaaMHMe/hjllM\nz3gcHXbAoG+WlgtvnXQ5Nh0lFY5+/OzdScV3hSZ4ZxtC8W5nCumT9F/vEYi4\nTIs5rX81yBsLnxrIKNczmhdUBefL99NkoZpYRZuMReoxOdvR9ax9XURwH3Ac\n8/j+fsF75T20KI/+IevRLKnWgn+qGwDVB2HNqNy+xdWbtO/PQCinbydo4jdj\nwYTGTcL1vMw040+WTKfIylPDC6PNIr0sxIvj8o/EK2O3Gm5NPsJVQ+tBEpzG\nJ52o\r\n=Gu71\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"885abc8ece3b0c3cab58996fab25be733f65b5c2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.a0b2db26b.0","@material/base":"9.0.0-canary.a0b2db26b.0","@material/shape":"9.0.0-canary.a0b2db26b.0","@material/theme":"9.0.0-canary.a0b2db26b.0","@material/ripple":"9.0.0-canary.a0b2db26b.0","@material/animation":"9.0.0-canary.a0b2db26b.0","@material/elevation":"9.0.0-canary.a0b2db26b.0","@material/typography":"9.0.0-canary.a0b2db26b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.a0b2db26b.0_1604448627192_0.2403481354296264","host":"s3://npm-registry-packages"}},"9.0.0-canary.419e03572.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.419e03572.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.419e03572.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"db8af0e40564e770933ccab545c0d8818878393a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.419e03572.0.tgz","fileCount":45,"integrity":"sha512-v9u1Y9xZOiHTc+YqByRS2tRMnhL1dN/Wd7cXX3TNnLWqpws3+gUx5ThaQc/nIlkfL9XSa3iNH2PV81sgKm3Dog==","signatures":[{"sig":"MEUCIQCwfG03XqBS/RDD1+UGhvxczNbRjxdpuLB9iVpIJCVDuQIgCIhdK+u2Sz42AjVk2HQYgI0HdIrpr/mrKFj8JpdsYxo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfogUNCRA9TVsSAnZWagAAzp4P/ilpmiPLj/svNZPSPr6z\nlUb+0+a3wN2Ko3jQcBo2Z+j1jqJoyx7fv8FgdAxlMU3+k8E2qECf6pKXwUE2\nhh+ERtHB2PHGdT9AM8BVtg2LpBDfvFnSWPsKso0HYy2hcqKVVaEvrDIr29wp\nlYT2BFMLZtLBlxjVvWEaUgPZBPSg4ZKzvVsjCeiIQmlyX8u7oRpvxfGP0lTF\njZecGbC7T4bl4uiBpDwlsx++qdidMFM+CnmnBja3Pk9tbKcRGk6hgvzOpCdh\n3DOtgt4OZ8+yE/LgxBs30IToYFWVOPfMaaUIPjsIercdsMnsm5VHl2h5bzX4\nsf9UIA3HHTOxUJghimVRun0fOvoRyN4bxvALbpbEDiVhd4zsWbrZ9WAmwTxf\nJ+TMA0NDADUpwQEk14N8pmFdHY/rx+POEqZjfr5lmnBeETEtX1Kpkb3UkA9i\nKHiaDWV6k+bmOzFbpGxl2bWa5PhpE7IIZ2CM0G+Og706LfTR12CwR0eMyqCi\nUNT66axEWUN/bf4lIvFtZijTB+w+Kt3DhZ3Gprl4Wgu0R7NqAX+cN8+/BoxR\nKm98+0aDnx+EEzk0n7WOli35tlzdN/BGDsvJMZKzyH1oJmgwaCz0KYSARKAj\nbOS62cTTC0lcKSus9CVpYZDTzEpLYLxJpIhlr/pa8BjIypcebyFXPk8t0TB+\nz4M3\r\n=R6Oa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c9528e0a61f88c4fa2a5bcc6a5e406ccf027d7d4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.22.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.419e03572.0","@material/base":"9.0.0-canary.419e03572.0","@material/shape":"9.0.0-canary.419e03572.0","@material/theme":"9.0.0-canary.419e03572.0","@material/ripple":"9.0.0-canary.419e03572.0","@material/animation":"9.0.0-canary.419e03572.0","@material/elevation":"9.0.0-canary.419e03572.0","@material/typography":"9.0.0-canary.419e03572.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.419e03572.0_1604453645493_0.5347912347633905","host":"s3://npm-registry-packages"}},"9.0.0-canary.a432ad542.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.a432ad542.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.a432ad542.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"49e7a3e4d1933ab35590499533080fcf06d7b132","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.a432ad542.0.tgz","fileCount":45,"integrity":"sha512-lwcumkNe8GV1v56M7fdpNGjy3lsIruPm+pcKuVTWp7RwK2FoTFILkLtLssdEsdXoJuMadbbVnIjMWcGKz0gK6Q==","signatures":[{"sig":"MEQCIC18Bfcr/YAlg9Zkm5ztR3cw8y3KqPGSe3isFqGLZA2FAiA03XkJH3sPX02FNUYJ5C4vv071CvI+r8j20DZuSTN7aQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpKsLCRA9TVsSAnZWagAAQdQP/2UKTqI0psvghcsPG9Dr\njB71GWS3NiRmBrO/++KFgDXJVnVIF8NiybaMZS9/7ukX+T6a2xqn6KH7U0yj\n4VG6SkWj+PSdUrWNJelJxV7hGwb3tA4ys+Ob0kUkoBkqLLgYeHgkOh0ePtb1\n/IJsGdBDX0/kKfDcWl0aP2DJbhpuIVmDDV3HNq7vtfhSmctZLJiiAwRXuTTX\ni1HsYFlnLrXDp5LSqABCzAphdv5mIK/fNUHzR4gqt89L7v3r+6xolbWcAB3d\nCOikbgSoe/p4GWph+HhqLV12eSEpHG25a2XITt6FO+lLVqk7yNNchRJ0Ab4R\noZnFK3tCG6ivGRkA6eKgWCPRlgRhxFPI1VCpy4vpwZ2gRfYEEYIFnwyDWMnn\ncpNib5DHmDze6qOBedW44EJQ0pmXqn6KXDKwuxaE0PQbH9/GawhwPgA53nIL\nr53wH5RVbmhioCPABhXQB7DlVdfUciqfqA22bdyYCP+1d0xxOY6s5q3rAiv9\nHjYVQ2pOFmfmFJhV1gZEDI9NExOydEOgcJFThBW6JDNYoMf1lt/VviVWET1e\ndtMlOG2zC6ZJk9pYb6Lclmvthx9FO1fDy9ptNpmJG8Lq5cSg1fbr1ZK+4JGY\nrWm66VpORBqpbR2drwPVnJmma0zF3aXOvrQwxEbVcpRZVcWVEJOnNQxIH5gj\n4tce\r\n=KcQF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b873a7878b871d2ced45e7f04055b3d4ef0c7af1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.a432ad542.0","@material/base":"9.0.0-canary.a432ad542.0","@material/shape":"9.0.0-canary.a432ad542.0","@material/theme":"9.0.0-canary.a432ad542.0","@material/ripple":"9.0.0-canary.a432ad542.0","@material/animation":"9.0.0-canary.a432ad542.0","@material/elevation":"9.0.0-canary.a432ad542.0","@material/typography":"9.0.0-canary.a432ad542.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.a432ad542.0_1604627211214_0.7096707715546806","host":"s3://npm-registry-packages"}},"9.0.0-canary.e2e8aef1e.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.e2e8aef1e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.e2e8aef1e.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"71ca3e2fef50887f6c2a2382c1ae5d1a5f102ed1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.e2e8aef1e.0.tgz","fileCount":45,"integrity":"sha512-DAjOUPCoeI72F6Wl8W0pPwSl5GPhelFQv/RTemAd2iMIxLpld3GDV/KhCHXI4SXoKKCFnC7YEr3+oQKlXHRvgQ==","signatures":[{"sig":"MEYCIQCEYdfkW3LMS/0HyYtPLGtMUVvvNVfGJf+OHlWKyVsGDgIhALnhT3HguaS7/AYA2FGKSlwSMvM/FziTncYgWwkX6/8l","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpK+dCRA9TVsSAnZWagAAIS0P/ReAaSAp2N7DkJcvwECm\nQNzBuUpbMdhxCYnusEVagnjAu9dRExdySFZra11VAbxcodWtJfKc/OqnSC5L\n25ePRje++bM41sPyk+bp3+QamQ5A/rJNCKUsI0WrXkNUG9IWt9oTIPRXSAvU\nbpZfml3ouiviDkVXASKl31tTQNIrOjMBdTMQWmk+Y+qhVvzyTaWk6pWXAliV\nBunDj2NBIyA86QPumZLhHvHgw73nhrhqMxsBxhF1Eo9CnsE1IQpRDcrX8xhT\ntq6HXUZvUt9CWz88biq/R4ZqXS7wVTAl/gOA0cmN8k9S3W/5crxpj1hN7pC1\nFcFuJDNOMy6U72wiOzjv2LqpQviYrUnWjxErLnd1eBGKOIfEMwkjZvFTsvIa\nzibattH200RWzTw8iBdrrddn/YSyo7tpDtBcnsMDuyfDxbjXwZDpOy/claZu\nG/iHnqV8hiazEWcCCU/YmKnnSFtTpICaQUGOQi3/fObJXI5SLNE3H7fjwVHg\nQBDrHpTGN6b7M6TllVad3ayRyYA2uWgKz4boaJ4fyRrsgEYA0s0ICMNj1HmK\nI4Jy5AQtsB4rakVxYqt3TPYB4/uZGyN/mhaRiVT1VHdLr0IVfoCb3m8BDuM8\nZuz+lAyx9dk/WiIUbXDEdIr96pAXRb4ppGp28kxp9HzN3cPi4JWn5fFQW8w/\nMaL0\r\n=dgog\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"59b208be2f946b47ab6905d82c0135e81316f2a3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.e2e8aef1e.0","@material/base":"9.0.0-canary.e2e8aef1e.0","@material/shape":"9.0.0-canary.e2e8aef1e.0","@material/theme":"9.0.0-canary.e2e8aef1e.0","@material/ripple":"9.0.0-canary.e2e8aef1e.0","@material/animation":"9.0.0-canary.e2e8aef1e.0","@material/elevation":"9.0.0-canary.e2e8aef1e.0","@material/typography":"9.0.0-canary.e2e8aef1e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.e2e8aef1e.0_1604628381174_0.22012224439056194","host":"s3://npm-registry-packages"}},"9.0.0-canary.ec6b68b34.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.ec6b68b34.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.ec6b68b34.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e644c21475b4954a7ffbd1099ddd35f551e8434d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.ec6b68b34.0.tgz","fileCount":45,"integrity":"sha512-SKqlN+wjk7gPoQyyy0MyJ9wb7lgn4I0XLhd9awkBVm9oBbC9hobPJuabzG1ljRbHG1ZRq5CV0SDlge6gRui8IQ==","signatures":[{"sig":"MEUCID2PqnTEdDzo0BArFjeH2Q9rVm9UEF9QeybqSkcN5ZXoAiEA8D5ojOCkxoombwv3JSmjAe/MDxtUUu9dR49+Vpyd70o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090831,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpZykCRA9TVsSAnZWagAAi3YP/i39gAKyXJjmA7kUy9xq\nFmtbuy6PwqJpGbSgHwt/RGc8uD1IZpREg7sYS8xjdZMdt5Iw+MZQKZ5NlPnU\n4q2ihBiPk8W80qZJFQYTYjHzL1TfhxkPo8Bt5bX//p5hUHM7+3gpgMQOT1pW\n7Qd3Mp+UAqVuLyjXLC7KQrYjrgUwhxPdcp/bEobogljDPK4dhgsRWmL23JJG\nLt56KXDatGIVgr4xJGhuZQzU11dIcBi3RrCPsdHNrB5RrZqLJpxwYif7oLiU\nD00167mUQSe1eWgH33t5dcOmNplPXD1rd0GnNYscPcIoEOfuHVrm82eJZnJD\nr4S4YFwIpUGJW2Ju//lgwif5fR6gCrhi5d9HecWrdjypMUijpHRDen6Na56g\nXC0Lr/6kP05DmIsoERGl0k+YWb2AoOTuYh5jC695IP5gUtfMZQGgnVO2UBvL\nZkJuGJ3907QMM14xqWnVgb9msbUl3r/dSlbhSUh3ApW8cnCcu4/xupM2tLUf\nef0fG0s0DPLfyP2w/sO7bMu9qUamu7cchGHY5m4Qme9HvHzFgFJEHjG+fmcq\nNkFHzf+50p+Q+1juYUgD6smdJmlGiO6SclvKz0f25eLLJDgzcCBjFvpxQ84S\nuImULPze5yaNTHrNhC9RpIrlLUv90Sijj0cXkslN4pNg359Xt1KU/iRC24Vm\nGjms\r\n=xLsM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a5005840630991931dd5d6aed79aa4986773a5a4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.ec6b68b34.0","@material/base":"9.0.0-canary.ec6b68b34.0","@material/shape":"9.0.0-canary.ec6b68b34.0","@material/theme":"9.0.0-canary.ec6b68b34.0","@material/ripple":"9.0.0-canary.ec6b68b34.0","@material/animation":"9.0.0-canary.ec6b68b34.0","@material/elevation":"9.0.0-canary.ec6b68b34.0","@material/typography":"9.0.0-canary.ec6b68b34.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.ec6b68b34.0_1604689059976_0.2810246415075126","host":"s3://npm-registry-packages"}},"9.0.0-canary.b39094d14.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.b39094d14.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.b39094d14.0","maintainers":[{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8126916cf14355bc3a5796c619e6b69d14cade50","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.b39094d14.0.tgz","fileCount":45,"integrity":"sha512-nTLDNOoZxFC/aDOsJOl7VSc4gcz3uwTdcZp2rerjadFbdH1L8VFdPVNMh/CkYzVnfcaSzXaDS4k/xKMoF4hs6Q==","signatures":[{"sig":"MEYCIQCy0pe+LF0kUOQuHQw+/1yMs48RpjzOpLF0I1TnKCrbUQIhAIaDRPDqy0qJzWZtLKgyQOt7Zjkj1KZ1mSGDXSuE6MRd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090831,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpb1SCRA9TVsSAnZWagAAzNUP/RpydetVx7sC7YiseqA1\neZbOn203Fw68yD/1XK4wGkM/0TdNfLT4HObnUWZtzn7XM7sBz54GjkEhF8uv\nJ0XVNzZxAraQWUJBKnJL+YyrsKGFmLhd7aCwQWxvWcMYavWwtHzBZ14HW/xl\nRCKIUqGFbcZTqSJXLNT7K3djJ6EMdsdjFcGUgu2Wd4rD7xtlnP/NSykBVWAL\nscvGsFQKyLmPo0fg5Oqujuo3M8bDSlHqgYXgI8RggDt6tn84vrULJ47xSJp9\nl+OdO766Iu0x+5TnIOdryWhI4ofizm+I7BUDFlH3NE8gwWf2mbz1Rs6Lx7j9\nVE3zqHqInvkY4VOPNhkxsR6OqrM0YARVOfiuwyDCuYB4ccVuOwVfFv1dxABs\nAER+bofVjJhsXaG7IhCmxYvcGYXdjLaaCBcuLSgqV1eb88CqOyZpAftbGpu0\nMacPvbYmFU7F+L0Rsl7hJbYBt2+lczhn4MOL4opFxd2Z4GzKvbDsEhfFKH1W\nCgzn8YfcdzlQgVPMs018f4uC3YhaCKvVcviRU69gsJsugRjYOv4yeSuHrt4x\nA360VI2j41IfBEywFK9WxnN7iyMdAgcqh9Sl77UHHGVTNmG29JSx31kNFoRg\nW5zKfNVp9Iym369BQIv6q7lqKeZWCF+/suU8e9qzP5D4A40j8GrBcONmxW/j\naaKd\r\n=nH1t\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f8c5ef7d8cee2d0a63421ee4afe42e4e9260cd47","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.b39094d14.0","@material/base":"9.0.0-canary.b39094d14.0","@material/shape":"9.0.0-canary.b39094d14.0","@material/theme":"9.0.0-canary.b39094d14.0","@material/ripple":"9.0.0-canary.b39094d14.0","@material/animation":"9.0.0-canary.b39094d14.0","@material/elevation":"9.0.0-canary.b39094d14.0","@material/typography":"9.0.0-canary.b39094d14.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.b39094d14.0_1604697426369_0.03473294897145984","host":"s3://npm-registry-packages"}},"9.0.0-canary.8648b8258.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.8648b8258.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.8648b8258.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f240ec8a3ebf3d38d364add6605a6f44e1682080","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.8648b8258.0.tgz","fileCount":45,"integrity":"sha512-N/ARvDcIsHFSV1MfPIpQCwkCnoEqBqvSud+qyqprMX4WXSABB5aBykRUgNfghepg/IFnZVkAa6nkS4KbLRVx/A==","signatures":[{"sig":"MEYCIQCSAoDSPGs7IzyScQOBZ++XhEfqSft8n3vYq+e9RTKspgIhAOHSrdwR7Jg6SI3HApwqx9Stj99ZHd70Xv0nLBO6urdA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090831,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrRJZCRA9TVsSAnZWagAAy+wQAKBgTLS2WhAgPyRxCzCI\nqlQKlKE1tKW8/sV8WHTl4QKKJ224Xo42RXdBxrVppKbzhUlj9nd02FS6iceF\nDc9KGhqAQBsXLnHBxBztS8Az3/ifWbYFIBJs1YjE8mvfUZ0M+Zq9aUjF/BT2\nRqKsu5ZRsmzm5+b+6vXLK5R1St4zonFHrF+uB9zQDgFnBZx3v859HimFycNx\np5yRTjGrLGBvmO6GLJE7bLXb7euRxyfstdWAWe5/u5TxyAQX946er7+OsEiG\n4XB+4H0CFqUN0giYUb5cMMco2ECPiEBnP7kF1HhJOo6OJYNi5Vwkvg+lF36p\nok2FXEy9en5Zkctm+dkpYZaf7QYB3FeFD6NDE+LK0afkmPAZJqyGqwhk8RbG\n8EvDCP+PA3WOI2ftxYVnx04x6/ZMWRm+BbenVfoKzCedxg28/XmEvYJNifYU\nCjuTqBv9SqDszIi/F/Y03yqwfD6nVfwGmpfaFXSvcjZWnhCehnEGHOijDEsT\n3SB9WO5LLW/efpcUzLaNtZmUr+NT+bTmM0ZftXnd8twFZcEDLpGvT/bltmSN\nGzHkJRFZaCJuMJroSx6KYQ7jYWN9x72dXM6OuBY/HO6oa6NvMPbg6oggjzNX\ne9mfCrbzYQsGvQIn9LTa0viPCO5cO6sU8DRKLpF3LltLFd9qPaVRDeTGeqSW\nhqOo\r\n=a5bG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d98de60dd3d91dc14a84abb664678188ae936030","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.8648b8258.0","@material/base":"9.0.0-canary.8648b8258.0","@material/shape":"9.0.0-canary.8648b8258.0","@material/theme":"9.0.0-canary.8648b8258.0","@material/ripple":"9.0.0-canary.8648b8258.0","@material/animation":"9.0.0-canary.8648b8258.0","@material/elevation":"9.0.0-canary.8648b8258.0","@material/typography":"9.0.0-canary.8648b8258.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.8648b8258.0_1605177945410_0.700713384947429","host":"s3://npm-registry-packages"}},"9.0.0-canary.240c5f74f.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.240c5f74f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.240c5f74f.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"31bff888b5c94c9ae9d089bd45f3691446737208","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.240c5f74f.0.tgz","fileCount":45,"integrity":"sha512-o5BQl7v825ZjEpqr5W7k/LAJwmgf66TgDfl5Z/JYR096ZL07lOQfnVAusiVH664+5IXqQBea6Bcuo1sB7lvaYw==","signatures":[{"sig":"MEUCIQDINKpNIRmqRplRQyM/N7MyRbekPaL2f4CNKqxJyXx0mQIgaLeefQIMZ7SAaiIga2EMn/ZSA4xd3HQqBTJ2h4xrexo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090831,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrZlkCRA9TVsSAnZWagAAqqAP/2wgKrhDMFoyQGLzCE0O\n9HnniE5mu2L50Y6Fuc3YpTwC9R17VQn90C9jHALiUDHQjVFRQ7VzlmrZtalm\nUFkOik9HyUmjKphwmfUYWVJT8GsGTklF6RljE4roItwS7SY8MuldYg8B3vnF\nUBIjA7quyqgDNTYzEGSznhhngouQJoTZYngI0kKdZqd8LRSO2DzZciCwc0Iz\n7mGdKRqhnpTImsHMLAbKxirD6p7n6gbNAuHchZP7UQsO6oZs+IQvPNwGr4L1\njsSLCrvB4JP5vx2nxif34WHHVx3ySw+haGvn5IqMpvnD//ufNF+LKGUIVN47\nLfFbhJWkmZw3WlUNXjVTKY+Xqe06qcOxTi4zCNz0SVmg6VpYvV0NYtTvMuZq\nkjBE+Cv5dIjA2vTg7faPi1Hopt4W8BpXPfJoOvk0rRtZ9eZGrTCweO5ASNkn\nNJbDnI0O22LFJ20GLULXKEXt0KFNOnWzHAmEM9ohJRnAmP8Ba5shwxLL8h6N\nNZjptPVE3GOs1ItgDA2zq8UlM8kZ3stIXO7VpYEM1dGrdqsrSmzg77o6bvK3\n5EXixgXX73Q7gWjJjRAU3XTVpI/lSEO+CD7M92gpZpYkx2AyDdpxlQIKob4K\n7IQ09U4qVasIUR002b2dd7q8vmEy6VMvOgPhKUmMwI1Zo3AYZeYUOZlmrmrJ\nmUER\r\n=4LZE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"33b77622681b24909d892ec906f608e75f5e9809","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.240c5f74f.0","@material/base":"9.0.0-canary.240c5f74f.0","@material/shape":"9.0.0-canary.240c5f74f.0","@material/theme":"9.0.0-canary.240c5f74f.0","@material/ripple":"9.0.0-canary.240c5f74f.0","@material/animation":"9.0.0-canary.240c5f74f.0","@material/elevation":"9.0.0-canary.240c5f74f.0","@material/typography":"9.0.0-canary.240c5f74f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.240c5f74f.0_1605212516501_0.8439241641022219","host":"s3://npm-registry-packages"}},"9.0.0-canary.6cf6ba4f4.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.6cf6ba4f4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.6cf6ba4f4.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bab01ed4def7e823389698de21b830ae2a8a8cfc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.6cf6ba4f4.0.tgz","fileCount":45,"integrity":"sha512-ahjFcPm2688x0+mhVQB3KyC7lqZLw/4BwE/8X87Q3JKODJH1KfxquPZAvlan+MIO4KRJ/Afxfq7wUDEebUNYGQ==","signatures":[{"sig":"MEUCIHr3/ecidos8IQy3waNuSKfV8JU/3gT/RlmKEz70viVbAiEA95Wt7KzB+u/k4mlodak0lVHJeYwhKtql3AqqBcLXx4o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090831,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfssoPCRA9TVsSAnZWagAACrcP/iQm+SS/EB7RrbWSLBYO\nj9qKeVmHr6fptlGo+oHyYCxLZPVdrCfhbQSUjJwt8r3UCQS2UbB06wOezQUw\ng2BbigpOBl2wGJPKpWNDy0DIprQzpuHqgPyzhCB9raV0zf/7Fhz6ybLvrnA3\n5BOh4kPaoL/Czx/gwa2bSefV1MfDU5kjgGYo175A3j2jLGkMBU1Efzn4aqGe\nWUndzwY7z44fHIDBxQf9RBHhU6Hw9TSalPTNgvRZnR0YACFea5XIrIy8uul6\nWba5qmCLeUnWO4jsd7Ue712OBJOzkoxPBzj1oi5BNkBqARBJsngxQMBM+FTg\nUd42GuE/xccuzJIXtVUtuN8rN1RX/k1pvPDfrK1FJLkm/3JD6RO7jxDQsrok\nvZaK7nIDMzrd2AKwgbupnlgckw3yCkeky9iHnYz3K4rMEaehECP0Rc5h6JNN\nB/l4ph6mLSfriR3ylvjblgax9VJwfVOCeyaLvg/R5tGeHcbMESAvXN+dIMBh\nc+JKEn4Tfp2Y8ZKAt3c4qc8paPaw77cDwBQV0HFigBFdT3i3kvnffGViZ8oo\nX4RL2F5K7xnKUFIdmmkruVw9HU3fLIKhvsDEJkN1czZUqL361d9mq+n7pC0K\nHqbfVJT+xw9Wp8wcDSzdi6TuoIcT9WdCfhmVlGyL3GNSRDSzutydUUtBWW7G\nSxes\r\n=nNbA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d2d4890ac5812ec797b5f621137f4e8a077c3c0c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.6cf6ba4f4.0","@material/base":"9.0.0-canary.6cf6ba4f4.0","@material/shape":"9.0.0-canary.6cf6ba4f4.0","@material/theme":"9.0.0-canary.6cf6ba4f4.0","@material/ripple":"9.0.0-canary.6cf6ba4f4.0","@material/animation":"9.0.0-canary.6cf6ba4f4.0","@material/elevation":"9.0.0-canary.6cf6ba4f4.0","@material/typography":"9.0.0-canary.6cf6ba4f4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.6cf6ba4f4.0_1605552654444_0.0953505330258233","host":"s3://npm-registry-packages"}},"9.0.0-canary.07f3e01b7.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.07f3e01b7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.07f3e01b7.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3ac80ac0457b88b4c8608f42e6ccbba7a30754e4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.07f3e01b7.0.tgz","fileCount":45,"integrity":"sha512-XwMORMb5RfnYz54z7tr9D6H4YcoZtoljDbPDOvMEvjnNsP/31aCGwSZMPixV8eZmiBCnKr1gl+yXynsr1rOvKQ==","signatures":[{"sig":"MEYCIQDqbljLR+atnZMX5cAe6zUg+FJhJK/z9FG2LzHJ5JS90gIhAKtMcboM5YFWuxmX28mJ2ZloHsKGubXw1G3cTfWGBS/8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090831,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfsvNJCRA9TVsSAnZWagAAIFgP/0r/LuxvcHWvz9ifG7IG\nvPxBGk2ufWdqznS5XWCQAD7zIeXM48RJoRqq6A0Z0cxNVURcga2yWCrFYj7a\n85X/KphGNqrVoI4E+8G0lfxSAYUiYtB9lAnJ4koaJWVqDAc0ZDRAxDV0OP84\nworyUpfAK+Y1x3kEI1C4/RHZA9tyS7RnlLJOqAPZaGIuuAgqvuesSNDOgYGK\nHp50IYKGZBB40dvyJq2Yt70FplPYNI6PkyLGGpImFVq5G2ShAlDe7fWfIScz\nj1cTIbVntKCB+CiAcF97Z+XQfyWFk/IkMrgMoJ+cJT2+8y+D6fCuG0OXphrn\nWazCdWUAWmkqp9Skmoxc6d2XgY0AZdSB/0AbznpiuAclpVl7dDbLPI64znmW\nuHLtgqQeGRKGbACvJjiHKF4UmXj1aVytEASWdOr6xAsDtTNbvUlmC6oFYJ7A\nk9cjbQiPvTsjfjvBLqjQuXDR5HMxrHZm7HXCY1SDfeJvGiBxmB4P4ZZeGE0S\nvdkIdfOY/t4uBYsfEuQYd85xlPUNS0aBjcrOlO1W82p/I5MW5fvG2SrLTor4\nLg8dmz7mSSsRWlbHtPGw+d1aJMnzab4MjA5iO1LakQF/0DCgyw4SkYaOHFhz\nowCY2MaCjyybYi7bASTMINmTmFE3QNYT6zqp+y1PueSk4cruBK+YuSGpbO24\nDz17\r\n=gw/a\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"39f1e043d0db0c6881d84b3d7b54423f64cc8c0b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.07f3e01b7.0","@material/base":"9.0.0-canary.07f3e01b7.0","@material/shape":"9.0.0-canary.07f3e01b7.0","@material/theme":"9.0.0-canary.07f3e01b7.0","@material/ripple":"9.0.0-canary.07f3e01b7.0","@material/animation":"9.0.0-canary.07f3e01b7.0","@material/elevation":"9.0.0-canary.07f3e01b7.0","@material/typography":"9.0.0-canary.07f3e01b7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.07f3e01b7.0_1605563208508_0.2015990264084877","host":"s3://npm-registry-packages"}},"9.0.0-canary.23491cf85.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.23491cf85.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.23491cf85.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"37e1683e664cebe043ffc62464972476f7f365f1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.23491cf85.0.tgz","fileCount":45,"integrity":"sha512-klzAfyMx0hQJAhKOdOcwDYus4ZnFYuO89rAaee80TnQbuQENrHxbdFqhtsGbi3CfiTkKN/YISJc5D1Pwjj18TA==","signatures":[{"sig":"MEQCIDfmbvnrQRV9IIYloJo1Ra8J1EbyL6UAfbsXxb+UXvWvAiATBDNKBYBeMwCkGsG7+SbO0ykJI6aVEFRMIqRa65fPxA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090831,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfsxbJCRA9TVsSAnZWagAABU0P/3+NQJxBuFUhgdaG+gQs\nDWDut+/tmfIgRN3l0h8XglpK8aQEkMZFyIhWPiWLLVPU2ZTKYkN/MbauMqR6\ncx+cnL8mzeN9UWpzdmp5Wo9+aO1I/yfsUSPICQ5WyklvE886XpV7PLXcVlgs\n8v61WKyyiPvkKp79RxvzHtlYC7o0ZutNtwPUHEUdEZtVbimG0dItVPpUmrTP\n09ClaOnJXgZCnlo0hOKQeP72RuFTg2SdZSpW8N1g1zVaSq5kxrSpJ086kj6D\nOKz/36qGN2o/so7YXsWNvVN1h/0O2N13o8YmI1UDCWOhAaB30rwBpGhyArw9\nrZ4FHUgNvn8b271RmcOODT6+AHP15QRmccoY1jL5JjSHceFvu2nEKyG7Fxbv\nBSuBjzcmqTowCuQDqK9JF3i/29SfsyTsQvGY9WHhjVeHjy8hDw85stAmgDuk\nD4YKNwlHA1Y3lrrGlGc9/0meeqaFQXMIq1jRkYJysL2/G/M2HLqSvww5ObmN\nkCxCKLrQcdxSpHCw+C9V3A1f66C0EQa5pujq50/SjOqCHDGEqfOwV/alZYej\n8iQSyjZojSPbU67JeDK0v2imtFvOE3U1kPMw5+tSVgnZSJUvZEnZ24QpxQXM\nzIS7CdXb58LsGmc6gZcx3tfZlAUcHPhpZtPprAeLLrJSdPA66NISHiV8lzbM\nZoBt\r\n=+HQY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cc2535ba5f66f73426d236b8a85291d7395ce589","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.23491cf85.0","@material/base":"9.0.0-canary.23491cf85.0","@material/shape":"9.0.0-canary.23491cf85.0","@material/theme":"9.0.0-canary.23491cf85.0","@material/ripple":"9.0.0-canary.23491cf85.0","@material/animation":"9.0.0-canary.23491cf85.0","@material/elevation":"9.0.0-canary.23491cf85.0","@material/typography":"9.0.0-canary.23491cf85.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.23491cf85.0_1605572297203_0.2602444972873692","host":"s3://npm-registry-packages"}},"9.0.0-canary.b659d4fc3.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.b659d4fc3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.b659d4fc3.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8cfd742de3c92bac7f1671b7717f9061f3f4dcdf","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.b659d4fc3.0.tgz","fileCount":45,"integrity":"sha512-fHuzlPYeC6DY4rTJhM2yReCzpaXWkDBRxFAMsI1DADNjdocX/f3IkswLeOf4EGG0z62kVxdvSFtWVL0E24jNfQ==","signatures":[{"sig":"MEUCIQCu+NjDPRw65Fyz1jlI8+UYUezMC6LH+Sh3mnoU7kJr5gIgDbg7F8y0H1pGP2ReVzlwLMv+AqvSHs8Z36AGgJrM3E0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090831,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfsxifCRA9TVsSAnZWagAA8kIQAJBbw7KL6ZDIlxYt8kLQ\n6oA0Vfz3+W4BrloiEsTGvF28mGAW4iu3cRHi2kUp1C2EZblQA1muMyNX72EE\ndpTlMPAh8EOMNt7etigwlCySYKvVgCs5UZng2pVjC9y+QzTKCrZfNDVOIVtl\nPHCUgvvxYRDsyIatRtBUeRY/B9QdHe1V7fUfD/YT7ZCDNsWbzyIzbFQVk+4l\nUGeaiiBe/Mks4p8ixfyL8xf8lueXE2GgFxzQgPxLp+fHnB624ni2a2wfNiWy\nK72KX8bDdraQxRobkT7snDo0zMuZd5NpVBC1/vmIsIKqUxyorKqXjpSIQPKp\nHcjy/RbZbLdS6nX0JLUV4xhbhRq6rh8v9fIuModKXPMM7ob7yWSPqs7OVfC3\n4CynKHhyuGDwTkEC1P0O5LI0Z5EJGiTH0zQ21KHeGkSRf2Kw4295k046NFiW\nOKT7mrIEqqzCb53aUayZ3uOLC0uZ0gLZeugPsGMVEwtEhWEgSp6Atq2H5b3k\nYtfz8AyzPGtl8ZhMev0kNLuSBMXCrDZigkESlICYmBLnHxyEm8P2PudhtDfF\n4H5rRtx7YB5N6/8B/wyOpfJJpG+5LLhXv9Tp2TQfLas2ms2DsS/U/WYwAysj\ny7eAOF+DiJp+TQVF26B4AFqYfs42YRHnjknARTp63ijtCJpLGs7u2t8AgWw4\nRk7A\r\n=wWHy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"da948526208886bd05bb015d249db8d19d4b3f05","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.b659d4fc3.0","@material/base":"9.0.0-canary.b659d4fc3.0","@material/shape":"9.0.0-canary.b659d4fc3.0","@material/theme":"9.0.0-canary.b659d4fc3.0","@material/ripple":"9.0.0-canary.b659d4fc3.0","@material/animation":"9.0.0-canary.b659d4fc3.0","@material/elevation":"9.0.0-canary.b659d4fc3.0","@material/typography":"9.0.0-canary.b659d4fc3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.b659d4fc3.0_1605572766989_0.9372816370984132","host":"s3://npm-registry-packages"}},"9.0.0-canary.d8a3aed67.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.d8a3aed67.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.d8a3aed67.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6f443e36bcef28c38009cbcb40f4742d24b200a4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.d8a3aed67.0.tgz","fileCount":45,"integrity":"sha512-/5pI9H3JgRb08FmbgKve27uY++RLVLcJkRfKzVrB8u+m2G5bXk3Ll+70lOU4W44rUjH/eqmPW4ByVlZXnP/C8g==","signatures":[{"sig":"MEYCIQD+8v9mE6Bx4SNt0xo1cuB3ar4AU+I3Mam3rXQgIMS84wIhAKbKNvGgUZAXiMgHnc5h8W+BAzY0SeowZ5RT0BmVP3GX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfs+wkCRA9TVsSAnZWagAAcX0P/RwVHVGb+g6r8ZFQ1mdu\nQHBRRzlWvGuRtUieyf4AZl+LZTRj3tnfjkh2dbyOPFhkoJ3y+0K2Gt+WfJhz\nDKmTPxW+EB1QGbpFuy1eMVGCweRcINtjiVCSiA2eIOaa0cOH37JTx4v9AVyV\nSpWLVUR5vb/PKVCDi2XtVIWlLu8aOsKC+svEsX9jgBC1iv0sV0nsqB5uWLhX\n0XVcboxaLdRSEzL0gyKDihYLVmDwpR2b07ZlU53SJ0hdeOARI9lPaJvjWxkF\nTNEkEdgjmv6r+JlbbsyLv9DKnNJHVR2iShOUKrHVHeuLhVg6jtjU0zwmHOTh\nft0PQL9/ocN+RGyW2j+o85ttLg/Xm6ZDOSvZsRQ5VAGxamd3OFZptac7vhEk\nxwpkumsa7kjGD5EhZyjt7fs+rUSptdCSSEJXIBjESzujKu3OXZ28nVY3NtzW\niMZHW/xxKQKjCbTKKyJ1c6ktuE8OIVVaOHwZX6ChrNRWXSafXgLDmk8A3qvi\nHNEx4DioBfYmETkBpJ2Hun2p8W0UuTQj8Ev70wS0iCrPdbT6gFcUbODF6SSD\ndOkfD9jR8/HhUmqDnz89qfR4qQFv7ow+OgOOkXWuh81zCe2rDs2rTXhFYe1B\nIwLmCwf13toR2Bj4RbmsycJmdQtxgMhkeD+i1Y79gk/PYE9B/If2icGyn4Db\nvvVb\r\n=nA/b\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e70765503f122fcb3d748ffd41882655d9d4035e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.d8a3aed67.0","@material/base":"9.0.0-canary.d8a3aed67.0","@material/shape":"9.0.0-canary.d8a3aed67.0","@material/theme":"9.0.0-canary.d8a3aed67.0","@material/ripple":"9.0.0-canary.d8a3aed67.0","@material/animation":"9.0.0-canary.d8a3aed67.0","@material/elevation":"9.0.0-canary.d8a3aed67.0","@material/typography":"9.0.0-canary.d8a3aed67.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.d8a3aed67.0_1605626916064_0.5556380409839501","host":"s3://npm-registry-packages"}},"9.0.0-canary.482ff9091.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.482ff9091.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.482ff9091.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"48726182c1424b8d2c8d0bb7ae8c8236d78d142d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.482ff9091.0.tgz","fileCount":45,"integrity":"sha512-5Ua+wIMXy55a3VXASrQ0tXRBX7nurKeQfuwPCJrTwsG+nzal3zob4p71RkjSkFYHjp3UqEfaRVbZArZGfyCj0A==","signatures":[{"sig":"MEUCICyMzxBuPEIC12SQa19PkhrIjutEPMMPgUv0mIDqXhWUAiEAy7qk3yqamyRGhqV5IFmMSWiyFq6ZoAkxqGFeaipnxVE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftA9vCRA9TVsSAnZWagAAdIQP+wSEeShuIIHnsuWcik+6\nxfTYejTqxGhOHDiMPtbc8tydqsx1ypw6s1EDf3i6PRSN8eXE9X0JUUARqcuh\nFHgC2ypCZEA6MMicIs3gOfUE6yxdc9OM+rTuPsT8axJRckEQn1R2VuG4jzFV\nUqFHEuQOzeX0s0cI9oSKwY9sKR5dRU7/6aOWZi8yoe5rAB9saN5KuTXmwbkF\nseymtXWOywSn0y9T552uXCdvYdaXbL88tG9ckMByIDg/nFGJq+kaKuQOEIHq\nbj8oGcEXLVMrrsq6THSoI9VQy3iJ9Wkgg0S6OmJhkcPu+Y1UEW+QdLaLHJaO\nqiPDVNMSPIfsQvHyUwjEEX5SjIhuRCxjGwampmUWDz97qHqM2h+6Ukv/0+D3\nxk6Qbc49hzOSDClotf4HxULaNeWalKtqx1qxTzGLdBtmgjKq5keEZbZO4WE3\nIrlG54xnEafoGEeqi12ldFhHu6Ht5uTTwy1OBvKhcrHBQeBsqQ5xCGEpbydn\nwC56OUHEpKHef3RvfGvlo9lStvjl8EFFPY//nZzuIJfF0jvzMijYfd9EIZsB\nOd71kW6pTcIIRAx7XRWfk0SlFwDpoSMaLmylOujtSmg8376BvK8BTW4ZjbKs\nubhCevyRCBLNzH/nEFTtefnuBGaJMajPAXnN08uMXlOmd+Q7B1/K9doQSnvV\nSMZ0\r\n=v0Sq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5b4b306ef0e5d1d3654252169bb9fb9d75490dc1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.482ff9091.0","@material/base":"9.0.0-canary.482ff9091.0","@material/shape":"9.0.0-canary.482ff9091.0","@material/theme":"9.0.0-canary.482ff9091.0","@material/ripple":"9.0.0-canary.482ff9091.0","@material/animation":"9.0.0-canary.482ff9091.0","@material/elevation":"9.0.0-canary.482ff9091.0","@material/typography":"9.0.0-canary.482ff9091.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.482ff9091.0_1605635950754_0.5223004362556021","host":"s3://npm-registry-packages"}},"9.0.0-canary.99cfb6bd5.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.99cfb6bd5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.99cfb6bd5.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2166262b7c89dc715cb2f49b4a0fda498f9db25d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.99cfb6bd5.0.tgz","fileCount":45,"integrity":"sha512-+HvqIIgJVl1CJtEs9+0G49A8jt7ul6VqO1l0XgL7sMnskQwUQQFjGBMo4D3e4hiSlRp/iyGOtsBxIl6/N8F3Jg==","signatures":[{"sig":"MEUCIBtz5RQDmXVfigMK45EEG7GWAxDpFmphuhgRNEddBUYJAiEAqTg0dowdjvT9Z31iAUlL1PGDx7O6ih+0zcqsie9I+Q8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftWuxCRA9TVsSAnZWagAAO3IP/iVIPbLNMKIIUDWLyhdp\nBqIusLQyHgqVBdoWaD8CcngszM5fES/GWR3bqNVtkRe1UAXFjcR3im88NjPm\nSHT5KCf3snBGAqQPiZf9CCBeuCUTb0pFXb4dtYg/bvlZXh3d7ZcqMJIVGtea\nWpxvUR6Cfx3HsyLrQIw6MxyGrtFZJ5pG1U4blL3lbpuTjMhdfp648vk6jGZm\nnoURctdBs5HXZ+YJAMagQF5lAZNHb7p8gx2qnZPl9syWFVAFz+n/XhrFiVH7\nWiU2zBwgEiYlSV+/F3pRmJeUgcoP9OtNiq3TWsnfaXy0AtnOY0TsCcrMyIj2\nYg5wA3An4TY3brDusWWHkegNqEsjqAdY4P+p0f+q3kTi0JsY0q/YaLR4S5V9\nHjqR5ncOt2VWdYdlDpVGTqA0fo9qNXczcy1zQ9Pvk4Uypgzlc+ea6jGopGtD\nqYRq40lEFqTq/Le6W0IEveE86M9kWlmwPUM2NCeqmQhkEVW9kVxs2wQ8IHCu\ni0DMbnIU+EZgiqZfZ/yyqKkZGap8cH1UZuSdEyG9onWDKjGb298hmO71bHC6\nO2jCK8kqSHCfgW1HokfpdWAUqgmpbhgj2uhqLK+UD+IPIl8K42OcQmxZWr4y\nm8HftHF/SW1Lm/QAYFAcs7CP7vx0yqf4MD4fHIfgSC7AOZk5u0yCrzr0UTQB\nh3+6\r\n=S7k1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"97b5b434f189a370838c9b867dfe1b766ae52fde","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.99cfb6bd5.0","@material/base":"9.0.0-canary.99cfb6bd5.0","@material/shape":"9.0.0-canary.99cfb6bd5.0","@material/theme":"9.0.0-canary.99cfb6bd5.0","@material/ripple":"9.0.0-canary.99cfb6bd5.0","@material/animation":"9.0.0-canary.99cfb6bd5.0","@material/elevation":"9.0.0-canary.99cfb6bd5.0","@material/typography":"9.0.0-canary.99cfb6bd5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.99cfb6bd5.0_1605725105368_0.35410237485038487","host":"s3://npm-registry-packages"}},"9.0.0-canary.b98d15d90.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.b98d15d90.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.b98d15d90.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b50276855ecc46df863dde0d2f6ab1b481da3767","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.b98d15d90.0.tgz","fileCount":45,"integrity":"sha512-5V/E54gxQOFd6kkHRb9SZ4AONFYO4Re9IlTNHkkderf/hbT8uP7nbQ5Qoaz4bbkwdHhMkIuQYyA1ZVsvyxSFDA==","signatures":[{"sig":"MEQCIDYXPcGcUe85Ai0d07QcbcA17ExIc5GlLeiuw5pCu/cdAiAZ1J59lBDlgSSQa3P44wRqbCZdfRO9utYq8Vt2sVNCqg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftaHICRA9TVsSAnZWagAAHdsQAIOiI1mqrZk9ZYGoMFN6\nR+TTW1uCjhSaZUm+R8fqW3zSEz69kc/Jf1AED0YQRmk6vRrLMPMtCmg4JuG+\n46tNNtQWiYK+q2Q2Dxnus+UvB5Hclej2aJR3rU8Ir9GKvCGhZNsQM+T9iv2w\nxuZ+9tAHyU5JC8dBu9ABiVZT0PYqRvNFdXUV/z5N7nqPsPIf6mVy4pXFngiG\nQwPXLb9HnKqgeS6A2oIziI7/9Rtvsue1GAufAxLvEvlZwRlgKFPg+nUMRNXz\nVX3JM/2Mxq6lXXh4xiEcIpspmXUhF9kYexYaQdQ5Xoj/OIK75lxe6Ivy9f8Y\nBLeJeySozCNlJlYB3DEW+9lz5XmTmwK7CRWQOUxZzLHYwm36+ywUVyHamxRn\nde8fKp2E9yVeUKxxk3bmKKfwN5qLoJZ1jj9jtgpTV2CI6uaRBh6o7XH7jht4\nso8M5ELCgtu+x6lrbr66QvldM25UhpshQKjRBSJwrPpKDDCWsVkRhTWao06h\nkI6k4E0xbHXaqlrd4f3AQQqznUZTkyCZ5AsFbnTxDucd7oBAuzbgBiKs1Fms\nUeLX32yzTQVaMQL+z87odb8DGa0DejmNZjo9eoNP91DM1M6JPNXfWVr/hTKe\nC/j+O47rlTlK/ca+cEgA5cvgr/XwJn8llvtna4oNTHIYUAZL1wH1emnkCWAV\nod7Y\r\n=OmZH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"abbd2c5bad9fedd634d7a0c98bb8e4a8b0bf3439","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.b98d15d90.0","@material/base":"9.0.0-canary.b98d15d90.0","@material/shape":"9.0.0-canary.b98d15d90.0","@material/theme":"9.0.0-canary.b98d15d90.0","@material/ripple":"9.0.0-canary.b98d15d90.0","@material/animation":"9.0.0-canary.b98d15d90.0","@material/elevation":"9.0.0-canary.b98d15d90.0","@material/typography":"9.0.0-canary.b98d15d90.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.b98d15d90.0_1605738951611_0.02339210912109202","host":"s3://npm-registry-packages"}},"9.0.0-canary.30c11bfc2.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.30c11bfc2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.30c11bfc2.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9cfa02c5d0462d36f9865203ed2a85fc4b8d6558","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.30c11bfc2.0.tgz","fileCount":45,"integrity":"sha512-i36CdOHc0b99U4HwFdZOr6r5fKGN/FLJdPuxpmn3Ln1jieid4U9LqdU5LDVc5b7VyvwhT0fyW2UlK+69zzBhvw==","signatures":[{"sig":"MEUCIEIAGBPYyoR9K/ApSXyYk771P2Z2wq2PRRqqCilk4ultAiEA5zOObyAzEWF/kbKk/nD9qDdJA9oXPttxBRWFMLKG888=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftcnsCRA9TVsSAnZWagAAhOAQAJ58b5ng7s6mWojUv29U\n23Fguz/UcXMv26ziPcRsezwW3qCIuyIYe5YnOVXNvJF2Kq55b2ymPA+ZwK1u\ntHHUQ8dcexZUBYYubA2OE0CMPYYMPPG84aeQDiTGEGsTaj2Qr3nZvXtu5rfj\npX6m5YLSWbWD3osAwIO5tzXHconQi1obyx5OH74HsfPOGb6Jwnbl/FG0OF67\nYA9P5NkPkphN/1eT9ASx7+zbWGdOOoJPqaW4EytXS5/V9lWJKia8oWNQcB1I\nME4xm3Lofi9vIAegs0R/3KEjusmW5UQ+tfd5q8bhkQJdqFfvctDrJaT+P3bF\n/TLMY8i/api5WaK/aHibAhakc8m3yUDQNbrKVjKQRMK3nTqIYfuQEKEV+7xI\nVzo9UaL3Wufhjl5p3ikXaBhdWtcMp/WpO7X3+urs0Mo9bie/gIEqStKs+UZk\nwesfh97QSlosfyJPl703JtQ1zAu9Zt5Qm8YAE0MVEuvd5CDlaxf8PCWhw8l+\nnv8iuUVmM5yauZ/iHk/NIk92WBU20vqeu0DO1zVZ/dd0THisznHMVHrwvFfB\nmlW5LsYuI9HfResRII6tkVMCdrJy8hMhDw1h+/L4jPx2c7gwcFnvsNzgQKq8\nsVr8P8ivSCYYgn7tq9WLyr2Lu9moKASffDhmeW9n+tprT40I4y9GHah6oocv\n4fuz\r\n=8pCX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bde404a844a4528a097cb2c90d03c4ce8bba9d74","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.30c11bfc2.0","@material/base":"9.0.0-canary.30c11bfc2.0","@material/shape":"9.0.0-canary.30c11bfc2.0","@material/theme":"9.0.0-canary.30c11bfc2.0","@material/ripple":"9.0.0-canary.30c11bfc2.0","@material/animation":"9.0.0-canary.30c11bfc2.0","@material/elevation":"9.0.0-canary.30c11bfc2.0","@material/typography":"9.0.0-canary.30c11bfc2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.30c11bfc2.0_1605749227751_0.9201145671962911","host":"s3://npm-registry-packages"}},"9.0.0-canary.1b731d51b.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.1b731d51b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.1b731d51b.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"99a0be3cd54559721230d92829a2589a6a5987e7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.1b731d51b.0.tgz","fileCount":45,"integrity":"sha512-rp5G7lutb5hp/BEwPlOdIA1evQy62PkhXpO1AMmXWwANvF5+ZQ7pldyDOais7lWohhEFylPOQLWajzf+zMIq8A==","signatures":[{"sig":"MEYCIQChaUs70A50CH0GjGEjAxaJlSe98mwqtYVL5SlKWrgLWAIhAMSPbSmIDDH5eP0RmeOHWqLXcQcLwJ1ZP6mQ6eacfei1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftr8kCRA9TVsSAnZWagAAcxMP/20CjgoNqzmIstbHmuBu\n9aGKsHVJw3t6VQj1cqvtU/qAqVnkYnCwBVm7ooCxx69LdTQN+7OnMlrtlATL\nFE5ISW19W0qsgGvwIUilkfJGMgjSE4qpjow1NSPfH82LLI/s3K4RAcfCliAC\n/Vso1PoxK7ZwEkCe/uvZhLal/Dnax5WSSKZbdV5kGHjDKDCXvv+F/BlQlj1+\nzoNn97W6Tg+T76orw46YY1PTT1RhbptxMyAz8Cluk1YXxV0X5opL0skJsONQ\nmq1PWQdEXl4TnYXPHpAhS0mydIdiymvcnuPa+t++ETwNmYDBNNi+8VwRBMcW\nF2UT401kHgonW5VWmtP9jOG6e16RhkVJYOW4jxwZqfb5z/tyDdmeF3M8KKwl\nZs/8SWjjm0YeQHmCZZ9hYDBDtgA9PFH16432PfHoFn2eD/8QarPqqzwCBs9Q\nksRLEUbVsKdeYNqFmmtKFvJ7HLrV2m3jqwwp34aGuzz6pkYua2XLLQSjz1Bh\nkDzCa248LIN6jT3O3T2c+6UHnRHfPrRPW3G8A26reFaA+BT7pnZSRHK6dl1G\nRgUSvyVYU1bQKdKwi5O8ShIgPS9UpixGyu3v82cmx/pxIkAkY8hoBJF74g1Q\nS4/Ls7ZAE4iJB8HmBr9zFTTdQmrrQOWR72w8TF72HmUZwBY1aLAknILQZ+I8\nBUAB\r\n=b1Gf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"22fd036a79b754fbad742c64041cedbac73ce410","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.1b731d51b.0","@material/base":"9.0.0-canary.1b731d51b.0","@material/shape":"9.0.0-canary.1b731d51b.0","@material/theme":"9.0.0-canary.1b731d51b.0","@material/ripple":"9.0.0-canary.1b731d51b.0","@material/animation":"9.0.0-canary.1b731d51b.0","@material/elevation":"9.0.0-canary.1b731d51b.0","@material/typography":"9.0.0-canary.1b731d51b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.1b731d51b.0_1605812003677_0.8206233144593631","host":"s3://npm-registry-packages"}},"9.0.0-canary.4ae94ff78.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.4ae94ff78.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.4ae94ff78.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ef4a022f244dfc143f1f1bb4fb25d23958664788","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.4ae94ff78.0.tgz","fileCount":45,"integrity":"sha512-BAMlIO64piTOqXwmF8bKSrnVOkACHv6FYfFCw8juh9UZA//0aq0Za0iihTCjjgqSeQeVWGTnSip8KOZ6KA7/GQ==","signatures":[{"sig":"MEYCIQD3BVmWl4YZp5Nb/nJrTTU3j/HX1ys5KYX1LeOXH7Z1bQIhAJZAaTD7A4Kx9MlaZWyajRtsTS8O1Ufysai747jzzNMR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftr/ZCRA9TVsSAnZWagAAc3QP/RtB8sfFXARMCn7Ss1HO\nBEh2t+FSFJDXuuUML14vIKUKGHHsurDM4d2MeUaCXoJ9Iy/DbTSujGxLacdS\nW89jV/aJvIy0RwA/2kLdCt0N7fxzwXwGZN7L1SNhwAkvzbk1gyv0VwBmQanB\n5OTAUIt8TvESRHVh31MppU26SciD9Ogqs13G1Sk+ZnAb4CIzeMrzel14XDyK\n06lPxpmJ2vHMYQcVANTkagqNFTP5vIYmve+BXzhwTWzew1dmoHOECQ1rKiFZ\n5TKlOsOUjSAvs15dQ4LyoXQ97r24WSQWzC7itNUYn5vccv1H7hmGorxoYikv\n1aznwBFbERKq1vI3MFVx3L4L2AcGpodeKZJXhqpjrLaiIYWfgZqChIeSxxET\n436b4OL3TRxIqpHhkPWcl/o5ALuUuYilwjMN163F6NJn7Z0/vW9ACwpXJIps\nIiqX3pvCBCCU26XbZx/GxvH+CDDrypwxTie/OrcgspWAhW/ulpoXTYGlYvBA\n1LuFUprAoKqo7D0Kc/8Hx7+sOZDNChhP2e1WUexRFI/PUQvs9pBtHu/i94SS\n5HI6Gv4aRfMMQ2VV7twe6n84inUZ4roOSUd9APoNW07uKZKiknk6yGOBqg+2\nAEAt2WEY/FS4wjDX9d7JyJ1/LJnYQx3O72Wiu3lqTJw+foOKb3v6XuV/zfws\nYZjz\r\n=4Mwv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"34c69ebecd44026cff9ea0d681fc2be3de9900b2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.4ae94ff78.0","@material/base":"9.0.0-canary.4ae94ff78.0","@material/shape":"9.0.0-canary.4ae94ff78.0","@material/theme":"9.0.0-canary.4ae94ff78.0","@material/ripple":"9.0.0-canary.4ae94ff78.0","@material/animation":"9.0.0-canary.4ae94ff78.0","@material/elevation":"9.0.0-canary.4ae94ff78.0","@material/typography":"9.0.0-canary.4ae94ff78.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.4ae94ff78.0_1605812184642_0.2934271737866321","host":"s3://npm-registry-packages"}},"9.0.0-canary.7ad038e1d.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.7ad038e1d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.7ad038e1d.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f468fe64284b4593da014a455a4f052039048ce7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.7ad038e1d.0.tgz","fileCount":45,"integrity":"sha512-7mNyKjELgMPl7HBEgblCRWM2YIC0wGAs5wtUMRSa0IR8EzdIJWMrItVo8C8ufBWYADPMNFKkgysGguzx7BkvUg==","signatures":[{"sig":"MEUCIQDhdp+rsJF+1z/84lBieI0C7gM/EpKtIrNXAXzQfd5/MAIgDIRZrfI2/4gfabZVzyr8iFmO/tS8Zzw5AoJR2/cdI9Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftsVBCRA9TVsSAnZWagAAb1AP+wWKq+zMe3akb/4wIOYe\nHJs7fOXT+i4Cmx0BKTJ/VgaHTYL8a1PE6g2Jv67jxYLIyf2vCXOwio9a5yt1\nLvMwhwtYO7Zzl8+9CQn+tZkXa6lqdp3AjutfHUerZ8zeptUlKbGLw8ZVkzCU\nOQae2mPssWxSsIThlB50q8/kFbMnE0OzYxzI5bVI1QHDZmH+l/NwjzSE58Zr\nrgM1moCUl5xkFcTWy1vbSXwaT+rTAU5+RKd1IfQK39UZrLbdd2kYUMFwaykV\nZbDHGDDMi/ED2HYZRHOV9vZNW11gIALw8wtA9k6f0sL2F4yyiMa95lDQ6jJ1\nqB06Nh0c60nvvDgUY33TU2uYmrKT9KmE3DW6SzoRc3Y18HEQozw0wfMYqgPV\naX7Etwst1BgzxSEMnSmNOiG9hnDiEvIqXmFszp3iAL1detnzsxc0SaYKDqCG\nzrTQmppHxLFoKPuwZIyUBDXa/CLBBW80Tx4iw2txdX7nkVDT8+sCRO4ZYpsO\na7ksdn/3hcGnKRqsf/musi6FCvelpE5WEeAwVogDsI0BEmRIwP7mJChwQBHh\nWcJh0JwKyHk40Ea5pyLPEpWKIgcPLFUfKU5KIYxC8ZmGcS5TpExasRrkUFb+\nLEOAZiSzf6xVBLEqvnwro6y3+208KvHYCoGbYARwrF3M5EfTGYXO3NvQinEB\nNG4T\r\n=EZgb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ae5e88e00f948f916eeb8f578dc80b6aa2084116","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.7ad038e1d.0","@material/base":"9.0.0-canary.7ad038e1d.0","@material/shape":"9.0.0-canary.7ad038e1d.0","@material/theme":"9.0.0-canary.7ad038e1d.0","@material/ripple":"9.0.0-canary.7ad038e1d.0","@material/animation":"9.0.0-canary.7ad038e1d.0","@material/elevation":"9.0.0-canary.7ad038e1d.0","@material/typography":"9.0.0-canary.7ad038e1d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.7ad038e1d.0_1605813568854_0.5405437466119718","host":"s3://npm-registry-packages"}},"9.0.0-canary.a41527604.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.a41527604.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.a41527604.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cf0531cf75372c3360527721e4e8534e12009bb4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.a41527604.0.tgz","fileCount":45,"integrity":"sha512-a6huqXmmlnEOtqGl5p4wsZx26gSHiUAV7GCO9dL8mBAXr5iVHV+9oo50/r7QRrgxmJrkmKoyKd4zAjqtxMzXmA==","signatures":[{"sig":"MEYCIQC5oevGZb4Iz+75IiKac+IuNcwQYj1eGBJSD5SNr9lycAIhAOl8z4SgXnao5rZFc3Zvs3VlX2dxYm6hHj3Xhhg/+er8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfts8NCRA9TVsSAnZWagAAM0EQAI3ottLY+ssYJtIsDVbF\n6hqcaPBiMIyXDfRhSLiLth2/RDWIZHrz7YJruFUeZwhLCUpvrDVDuruRnufs\nHa/cRHupGmMtniFr2OYNiWcH4WYz+WdjCo1Lsk7F6kIQn6e/cdal53tN64pH\nzmR9xG3w0ARG5/Jm6R+0gsxg0nMWunZw6ax0Dd+TQNvXo4l/+BJlnwKwsgMc\n1OzwlgK8JvTsdP6qWcjLLYDa20kXbTu+W0CUALnr6yRq7RPzdJuTEfx+3Jlv\n+mfQ/VZvWpWal3P3OOpXtDNDumo8r6n9Yb8/4LzGlsRrXtWlPvv2ilp8PwCV\nnHqkYJQFzy5pc22qLiyCMoTmMxb9v6QJ8dDE/GTGJHw5zN59aSfkZLqZje+I\nrrNQ3DbcSiBIvtwqntSChPsLrvhQYZjtouUj7dWFU0ZdJPatAfc0hm0/VSHU\nBAs3lAOQpyo+eiVz2SuD3tzR8uDaju/r8CP4XSV0R3miroIFgbw2uKhqSImx\nuHIbkRcvh+9YFNEMq1eIDlndg95giZGXXWo2b3sFOoZzjNbTv70txXhpnZhX\nnoQKycQm8KTx+VOz5hoy6MEcn4NwvWza2N4CoQUI6IT591uL7YQ8xrFoZ8rE\nvUMTR2kXZBOdpqa9wOJRIdg4YSpoCc53Peu+Br94U1kyKAfs43qCYNcW1a/T\n8RIt\r\n=kSIk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4419897c2a5ae382f471047e38ac619bef815058","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.a41527604.0","@material/base":"9.0.0-canary.a41527604.0","@material/shape":"9.0.0-canary.a41527604.0","@material/theme":"9.0.0-canary.a41527604.0","@material/ripple":"9.0.0-canary.a41527604.0","@material/animation":"9.0.0-canary.a41527604.0","@material/elevation":"9.0.0-canary.a41527604.0","@material/typography":"9.0.0-canary.a41527604.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.a41527604.0_1605816076628_0.908135502956209","host":"s3://npm-registry-packages"}},"9.0.0-canary.7b0e2b377.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.7b0e2b377.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.7b0e2b377.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b1d008d8bbefaa814e933f5e93b4301a36d27cd0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.7b0e2b377.0.tgz","fileCount":45,"integrity":"sha512-YrBj6PnHvZXtgJ+p+NMBFqTkDPPWa3V8VNMyXtm89YAIcDmIw2OYz1Byv4pTlE/3lal7pFfdgt87AmDq9vPcqg==","signatures":[{"sig":"MEQCIHTj8vXVwZodFgdjdTtZ+tZVJYvkQgZJ6cf4XTkndRvcAiANd0WHNp1OmZb5sWo/90lFLZUJJaoq9aPvTrrSHYEZtQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfuEm6CRA9TVsSAnZWagAAM14QAIJuNirwA5oS8egZyRz6\novjSp7vZH50T2d2CX2s24p67twK5c13umGYXL5zoyobgbkMk9wORGbH55x7L\nsv9O5gNfRyLpLkRSy04yLJusjvOvHRdvpwOV+N4dFkfPfZyN9dIWib3KbLUh\ni74Ad6VK/nlgTQPUvaLdWXZB/SieQApm1z61Wsea04zUbSBGefVyIElKjcNU\nFLVFjoRuTPgeV1DxIoUMOq1w3uLwFv6iWxIA52NdKABw2SpuAl4suWMCNYAh\n2asnq/BC6Rw2JD6OR5Rjyzb0ewbCTDxMX0/1Hy9rgI+3vY5vxxeLPFCRHEhr\nB9te6YDoiIe1mG2sIL7LxMiJmCZg3lJ/KDJCO30CZvVC4zyJKWv/eBMEtiJC\nTOarqol9KD9qIanTnA0APmTwGk4V0bFGZfLoQVpYu5/TSY5NHfb0uKxgZagt\niNFbpHKbyikzp2+2+VlHxnuTPbwg4SEPlzXJN9fpEHrnzvP9sQiz7T+k7mmX\ne/cso7/Es3CI8JGU9tRrxoyj9zElybUWwvlJLmZHyEcpF64luZV5yxFna6/n\nUWq+eDop0i2cOvqOB8dQVE9ZeMH+8YTZTRU+q8MTfEyK9P8MKT0RSje6K7tf\ntaNBscmdc53GLwQ1v9E0Szp7xTiE2rQb7YuhanAMwUrMaFPzvsaK3fZ8pLAi\nzqEv\r\n=zbfU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"51086f360a63319c786c7b166e515a34aa76c112","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.7b0e2b377.0","@material/base":"9.0.0-canary.7b0e2b377.0","@material/shape":"9.0.0-canary.7b0e2b377.0","@material/theme":"9.0.0-canary.7b0e2b377.0","@material/ripple":"9.0.0-canary.7b0e2b377.0","@material/animation":"9.0.0-canary.7b0e2b377.0","@material/elevation":"9.0.0-canary.7b0e2b377.0","@material/typography":"9.0.0-canary.7b0e2b377.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.7b0e2b377.0_1605913018016_0.12860191564594192","host":"s3://npm-registry-packages"}},"9.0.0-canary.c927a5d05.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.c927a5d05.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.c927a5d05.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"db6933ffde540b072ebade1819320a0d0399f9dc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.c927a5d05.0.tgz","fileCount":45,"integrity":"sha512-9Vjy9M86zoNwXOvujZiKjCbOmMKuuMp1Xly4aw31jPsVK6W+LtERIAXLw0DfgUr6lu3uD6BdpC4c4dhGB4mflQ==","signatures":[{"sig":"MEYCIQCJfYHn5J+G7Q9/4ps8tO0Sq5tCmOG0ayBakaIfzYzKrgIhANHuon1lCETNKWu7dsW+qtnGKxtvHw86RdZ0/C9nICpx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvBIbCRA9TVsSAnZWagAAtXsP/320jnw28rXVwDGOxrxW\n5eMam4xOF/gHOL+E3ecJMSrtvFiX4bOCiiA0VI1V37qnkqdOWg/oIFCgMOIU\nZq6MpIlTjwZnoxZQYT4PjsgBH/GD0+sCxocErPxOFsXf6byVaSEGDS1JaYGT\n/aS0eeMNG4oxvMgwGAo5qf8mkYgX5MuIu5UdQWngN6IAIu4jB1hhpMb7Xnw1\nri+cdx+LiTYob0t0KBdS9WUsCXVd94vi7yz6C7wlQSHpK2lbtr1Bd6ABlRs+\n4eUBiOois4w69VKT7MDQuJt8AjX9YuOZRz23EPaA1ghQe/I4ynhZpYnWsvkm\nuOw4r1TAxfiTmkkx+KMjR6HeLsV9jrw7JQUi28l86pdIlBBo2rsgscjpR1Qr\nD4U/O2x43Ufms9+t6A8qerXcFM4UdaQxtRC9TLhcNZlsa9EQJQ78Y17tUaSV\nRCmtcTpRCgu46JZPU9qJy7zbHCwyheKgDOJvuZKu3MydSFPuT0XtJAAzv3SQ\nAIIc5dHTPYEsn8+0ex4R41eVjxF3yYjzxFtk9zQgEUdxAk7Ls/B6fiU9NikU\nepDN0vwga057QIMGdA3hMlg0IEosLrvO3sGfUSikyJddNYZJv0k8IawsS4Iu\nJM3CQHB0C7UgBGX14Ea0VNve8KYPpQnnalmD00whIRkPeStJVFad2ZjnGqBL\nXInh\r\n=GJHB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1e41eddb7d951c0eeca983e08e3fbb7b21cc3776","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.c927a5d05.0","@material/base":"9.0.0-canary.c927a5d05.0","@material/shape":"9.0.0-canary.c927a5d05.0","@material/theme":"9.0.0-canary.c927a5d05.0","@material/ripple":"9.0.0-canary.c927a5d05.0","@material/animation":"9.0.0-canary.c927a5d05.0","@material/elevation":"9.0.0-canary.c927a5d05.0","@material/typography":"9.0.0-canary.c927a5d05.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.c927a5d05.0_1606160923355_0.429213983252013","host":"s3://npm-registry-packages"}},"9.0.0-canary.b349b5185.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.b349b5185.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.b349b5185.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4c2e09578d7f5c16cc99336b1cb6b60bcc34cf8b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.b349b5185.0.tgz","fileCount":45,"integrity":"sha512-q/ZI4TrMPkxUYdzkNlHHGgnz2rhzQE1/f45HeE0tlwrH7Vdm6qOVykSYBy+Y2aH9zqKBi7Mf0OjtOKR7xcZlIw==","signatures":[{"sig":"MEUCIDI9/4rPMiaHHg3V73TDnIVVahhV/Ns5budsYObm0FyTAiEAjaos6vrroDSPK+uAl2ctH+BfhgkpzlD5vImqI4ZDLMo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvT5sCRA9TVsSAnZWagAAOu8P/jWexBBInCtjwfZNnGVN\nhSxkpAiGi/88MHNGXw/Y8vD5YiAHgef2fcrdkXM7oaxLuYHVuJ4Vzqy5iA7n\nZ7UQHSec6B0wGf/uOBXBQ1Gc2ezT/3IlbRpEguUR/rgD5mmO++awwL4OglJA\nSFGoJwmTfr2kI9Jy4udBB3FOawK7wCjp3VuFpWzslh8NMAxpCHSo7cD6z/Bt\nDwO9pppZsUcRB353z5NB5I/TRvqt0EzG/G73n3VCWC+Zs1/cR2+hrxP9DZS+\npscgm0HIah8imAtH73qktJp7Xva3vJ5H9zqG5R7FE3H5tR2LfcVxMMT/2//Z\n6soVHbnpuJ0LrFVOIOfKOGMAB39CPWnj12tZBaYwjBF5RQpr4GdQiOKotNqn\nmnsUgH8iEmvuN6cM16pdLw/uHqlZ1ElKXoi9Yj7xv2LaL3YRwIN+LSDGkA7G\n0A3ACPqdVhcQ5+A+V/7El30WHioUZ9jGpTMW6HzEKTl6gNSiiy+9+UdQK6FK\nvpomkks0RI3KH5oiGmoFJoGsYrxzI69eSk7qbFikeg9pC250HTxZNtHQ5xrK\nnmZB8LXYZohuYS/EiLYgP+8INDL9jdTyq3b9So7eZLHutCwk42GwgFQ8yDar\ncWwi47PGL8rRvmRsh+yrWWqmssaxbakmiXwDC4U8hx1G2hIPxBWaRQADC1/Z\nCtU5\r\n=IgHT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"92e0cccba580778200706f15aef4e667fc007066","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.b349b5185.0","@material/base":"9.0.0-canary.b349b5185.0","@material/shape":"9.0.0-canary.b349b5185.0","@material/theme":"9.0.0-canary.b349b5185.0","@material/ripple":"9.0.0-canary.b349b5185.0","@material/animation":"9.0.0-canary.b349b5185.0","@material/elevation":"9.0.0-canary.b349b5185.0","@material/typography":"9.0.0-canary.b349b5185.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.b349b5185.0_1606237803538_0.6117341859523522","host":"s3://npm-registry-packages"}},"9.0.0-canary.9083b7d61.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.9083b7d61.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.9083b7d61.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6918049f73d795c20de202dc6a1f57e57d5f886b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.9083b7d61.0.tgz","fileCount":45,"integrity":"sha512-MMJqcimM541avpMliKJhtERe5jkfmmhd02kG0Oy0dVpcG2gEz95i3NzCsFL/ckTJasZdyqXcKRdhzligzXQD4Q==","signatures":[{"sig":"MEQCIESi6q+ZcY4aRMllZAvoRAY0EThLNxx5Mu8hpA4o9wLNAiB15e9PPEFzEt3iU2G90+bMJAqRl7fZ0tlKs2FBBi2IcA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvXg5CRA9TVsSAnZWagAApRwQAJbYyd2cSAL0kkJl69Yd\n7/vfFACTjeJQWOu/o/KfFEg+ANDh+0w5MCji6Jjt31sQRXAFAGwAO3+jpOCL\nxF+rU+r5uoizke+wUhzdQYXOfEcoDhYflFJkFNPSacAKkAwQdcb8IKzdsoJW\n1frBl+5niA0JHIvEKuMfFdsr9CC98/DWUVgJSOXwlpNv3yiRsElrqOtWmNNZ\nYtGd7KmIvSkyPLKf61hA1ZLcOUvlFzS0edOT1kAGMAnLbP7Law5+azQZ8xdT\nAkJfPsjj9zcIybnIoRghsNXDj8V3iQw1/AaLCT/qv6U0ZjFnOaLkwpeX3oZv\nd1oDCRyrp010wr7NRJ2Xb49NItevXcUKpxAWLCdiNW7lruvlJdKoswb8U/xa\n2qbQV9UXCwRo3H3DMLUMEF4T1k63JheSYUYvT925x44ngV6uafxcz4mNJ6E5\niAY6JfZBoRfYt4Ju1FQk150Qe+LjpM+XIU7CfNWMYWoOFVI6hi5pZF/8xkCC\n2hAf6Ha22GLvSjI3OBV2ZzYT9rHjcw/3xgPapzMPkvy+gMFLfbkIX/9snjnQ\nI9L2hF+SOBNCJicluppPxXt0ZH0JPwOMkUjERgEh8yA3CtYXx8+h6K8mr50O\nFVbDBw8CvxJOqdw6WCJxozv5WtAeVUXEVineCD8YvYj0yxnE59Ud5LNej59Y\nd2w9\r\n=i7bm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c6192773b6d2ce6a74a5b464d7df3e9b57b238d4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.9083b7d61.0","@material/base":"9.0.0-canary.9083b7d61.0","@material/shape":"9.0.0-canary.9083b7d61.0","@material/theme":"9.0.0-canary.9083b7d61.0","@material/ripple":"9.0.0-canary.9083b7d61.0","@material/animation":"9.0.0-canary.9083b7d61.0","@material/elevation":"9.0.0-canary.9083b7d61.0","@material/typography":"9.0.0-canary.9083b7d61.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.9083b7d61.0_1606252601145_0.6950107078527026","host":"s3://npm-registry-packages"}},"9.0.0-canary.eff7b46ac.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.eff7b46ac.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.eff7b46ac.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f1d04c62265815e4bc843e3bdb058c43efbfcb2b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.eff7b46ac.0.tgz","fileCount":45,"integrity":"sha512-HQscU2y7enRj2HSpIJboGlPNvX+RxHcO+Y3R/Fro3DxMuAd92A4EWBNIWOY8QHeRs7at1i98L5Ehh0tVKKwT1A==","signatures":[{"sig":"MEUCIFhJ2nXkqQWDjxTEi9LkJKISWIw6fJXE+ykzwdYZxkrPAiEAyfsEbNAZMp647kCuIzvsQo8Ax6PNlyUlZZyz9lbxMSs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvZf5CRA9TVsSAnZWagAAGKkQAI1iNBLqArjgXZnjgCHH\nDmo8sSBZtQIy7yJg8YF0hp4Rtxj1YchIwgSxaA8Xe8qcNRHzSaoW5ll2QZFy\nqz65Js2uhrW4R6saQ6eEDO/RMlFoh+XqwhlGJprJy1ym38TReRYkndhqeFBy\nQlPpVqYDBvrn8Qp2XlYfr5EdLLqi4T9UydNeaGwYkXDqBT5GNfKgQ9afLnGW\n2uCEsfAeydkzQfWvtHgnoRrdf3jyWkxHr2BRcWPHjx5Q++ZBs1y2K0/SIbm0\nYAVelZvehlr8CJdWefl6y1KyvXBEmo3vCfmaasO2pPKyAhA2oSs+J1NLuU6h\nabslv9pYmAkk+F7nCUZU7BfVvc056YTTM8t1Sxmh/7MyZ7ijm3pB1FYgC0P7\nAZOWpZQQuxMV5hxRbNjBRDl3s9OGPNKxXnwlUmldGAmCSLw04O92DGa627LV\n7/rz4HMTgf8kj4CupYirbQl8VV7wDwLrBaiVHGp7MV6+D1MMd5DxgfB1awH5\nBoZKN6cK+8cj+QS12SpoC8lz1vrcG2MqWNqEuRbS40F0NPfgDDPA6tjWCf22\n4F8tvkTyAMw6PYQkyHomZ9FRkIm3c2qmcCdyfmNZyPYxINbSeRkbyXM+0gba\n9TU8cBr7JcoD3bCMxZtNQFmDCPPn2ynwenZOQkGyAm/tF5Adk7QKN3FK7hx1\n0ZOg\r\n=4i7c\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b8790bb41654e5c7f7a7725e8e58c9dd08551129","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.eff7b46ac.0","@material/base":"9.0.0-canary.eff7b46ac.0","@material/shape":"9.0.0-canary.eff7b46ac.0","@material/theme":"9.0.0-canary.eff7b46ac.0","@material/ripple":"9.0.0-canary.eff7b46ac.0","@material/animation":"9.0.0-canary.eff7b46ac.0","@material/elevation":"9.0.0-canary.eff7b46ac.0","@material/typography":"9.0.0-canary.eff7b46ac.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.eff7b46ac.0_1606260729096_0.732986533391238","host":"s3://npm-registry-packages"}},"9.0.0-canary.ae27b44b0.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.ae27b44b0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.ae27b44b0.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b88348ffaed4b7f7a89f925ad58270175e4b387c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.ae27b44b0.0.tgz","fileCount":45,"integrity":"sha512-XZp9Qvo9mhRHMWr7j7LzWA60bWI9DEwNTYCI56eiadRL0eNn7vJFYhxp6cMqZqN2u7USHpHkt9NBD1UiRwEJSw==","signatures":[{"sig":"MEYCIQD8KVXkRQ7YJU1xsmZy6HkeRGNn2LgCAxlS0UuqXxmd6gIhAMr1oOYXW8bcG1Rh06HvW/NJwxG3PTJgXoYky+I3Q/D7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvnm7CRA9TVsSAnZWagAAHmAP/RwQgeegPKF8AJfVo1o+\naGkXE90blbOcQ0NlDK6fI4C1aC30qrJZm6Za/jgX1ETplyfMQ55pCW6W2SsX\n6+vpYiCoem6sQqblhOgURGZH8kUFtl1jbIulWvqPxfZTdnZCoT7bH+Qtq4EX\nMM401Lzgq91O+jvIMWUstyQrSGkeLy3Uvu9cSlB2X11IQ3mavJlcDMH85pj4\n6PWAh3IDBz2wOaR/4oWkkSg49f/ljDTs+tgkegT1QhQMEV/W5nw4BauLkooJ\njs8pDQaJLAlo1V8BMPfZ5tj5yPspIOUpVlRbSB/Ii2+sOqdQIchzzKLoR472\nu2Ft0we/L3wcXwcwGLBIdc1AkOVo2jIJYKa/EtPUKaVVbxnmn+gXtvwim+2Z\nsomDRgmqmIebn4SsBd8GUApiFn1SsUDRjMagQrkHsH7RCNbyfrosfaqKCjFH\na2zUPmBuGDe62rhmrEY/wt3kEq61ivy1i/PLCnkNB5o9iXKpQWvkS3hxgZwy\nFcDm89n0lzCrhLeG5rzk+MnjZVN+nzLd/b8BPsei+pj3h+NS8MnN4g03PiIk\nhm5Uc2e+Do0sRjA9EMkP1Vh7Q9pRLj48P6/+GUP8jl5QqXIV2zZfEolEIKbs\nwk4tWw9d82Jc/caJSpBovor/WM0Rm/a27pkCX9rFsil0BcoK2rROclcqg4HW\nT6aO\r\n=ugBa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"eb690fa0e9558b61ded00dc6e4b467cbeaed4c4b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.ae27b44b0.0","@material/base":"9.0.0-canary.ae27b44b0.0","@material/shape":"9.0.0-canary.ae27b44b0.0","@material/theme":"9.0.0-canary.ae27b44b0.0","@material/ripple":"9.0.0-canary.ae27b44b0.0","@material/animation":"9.0.0-canary.ae27b44b0.0","@material/elevation":"9.0.0-canary.ae27b44b0.0","@material/typography":"9.0.0-canary.ae27b44b0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.ae27b44b0.0_1606318522891_0.09369693162869241","host":"s3://npm-registry-packages"}},"9.0.0-canary.2fbba2554.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.2fbba2554.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.2fbba2554.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c5755da9ee41275daba4674a315e7492904b0cce","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.2fbba2554.0.tgz","fileCount":45,"integrity":"sha512-mdkKgQgClExCxVhfiJj3gjSW9CwUL4sjPEChE1+BRL2imbeVzwshZI5zRA1Ev0/V9jjxdzgrZCnkCqj1+9I4HQ==","signatures":[{"sig":"MEUCIDa4Qo7/rGBN9zxTjwnb3UEtQXiqGNE73K6W+H8+nCIpAiEApw8/2h3N62IsSheqpLv9i0S8QCRXaDAgWB/XXynNi48=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxS7DCRA9TVsSAnZWagAA9FsP/RW7PYn0HIVu2RBav6xe\nrjYi69UHeNYrqvV6drTutLDbUpkEic10uD7lvcH3gOQEH76VMsddAPrbCcWT\nH3bqc4+04k+2X/TaOuEL8gKn6InJ8ARj7HYWHIq5JB/qxmzou+oH/UrXbPYp\n61DcJlnKNSddF5N5nrbfJ4tCUj1pHk9xa0IGjwlmE1C92NUKhe3hedpN8Qn4\n3qJvtaUIDPY+m8TNTynuMPrdqC6JP9KCkNHAfcHq1J8u9x35cF9PeJG2vWCN\nt3c77cqRbsd7FLVDTkir4BL72s6S9PCzkmvARu3QNFyqY7zUeO2iEjyUsb55\n+6CjAmx6AzEnaKQc49QQBO1+32WWGoRwo1Yk81dAd1gfE5ECKpuT7XVCK3Lr\nDnyPbDYzkjBLI+xCEid4Pfzi/u5j/u0Wm8y5RNMxOBw06wzpDp2EjF+NT8n6\nVWe2DeXB/2NLnCnKllxUHn0gSLUEQUdOoWbN1lXWC4jDgMwdDij0SNy6TBj9\n64Wn/zePPhF1ux5ajThrzKnxJUUK9n8dXU7ECcHWh4XmpOQ6UM3TeI3N5z2c\nU6DzugNhI324woRfObuF/xefUw2HEXJrm1T8o6BjqApVZiw8rLs1preMGWeo\nxsGyz1QVfkY0bJSIJmDKVOFT1I8wIKheH4xgRh6YuWD4OXrq0ijp2/t34DUC\n3Dpm\r\n=UYwb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"93356628825eb23bea706adfd527933f0c5e430d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.2fbba2554.0","@material/base":"9.0.0-canary.2fbba2554.0","@material/shape":"9.0.0-canary.2fbba2554.0","@material/theme":"9.0.0-canary.2fbba2554.0","@material/ripple":"9.0.0-canary.2fbba2554.0","@material/animation":"9.0.0-canary.2fbba2554.0","@material/elevation":"9.0.0-canary.2fbba2554.0","@material/typography":"9.0.0-canary.2fbba2554.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.2fbba2554.0_1606758082700_0.555516549745815","host":"s3://npm-registry-packages"}},"9.0.0-canary.6d8574fe1.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.6d8574fe1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.6d8574fe1.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b4b696b168afed6949d5ca34f516d25d755fa53e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.6d8574fe1.0.tgz","fileCount":45,"integrity":"sha512-g1LLmKJ4ggAobz9HEXlNHUeI/XjLdy/Ilo7n+pNKSVYRUu6ipaVJ0f13x6Jwh+tN53VhfLIwt/FM4otmoUDdgA==","signatures":[{"sig":"MEQCIEvqhUj9ZANCGf8J8priCrQqfHhNlVGg2FcK2UCiwwTOAiB+Ll1r+ZKJS+lExZdp//aAZAkzcgq0HwqSbZyPYuN41g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxTFUCRA9TVsSAnZWagAANFYP/RlUYgfCaiX0bkqhTft/\nGlLapp94wup3ZZVtcUTISy4WIs50GPw2vmJ2tdqjWT2ikMybZ8vlgVBNk+zB\nkvrxLqWxUdJu4vh2/jaiTCjYCL3eCSvjue5Vo94zX+tYKJAC3A4JfeyY2mnQ\nXj7yh8q08p+wS2cGJ/d3xgKmha9nSjJoHMMggwbF0Zg5ikIxe7Z5xbXoKsR8\njBdsHK45dyttDo0KWqcjpjaWC2VANh6DWlNoZ517pkQcRympSgX0eZSRpMXY\ncXQS2drywdwdIg+LolhRJ2N6yTtwNJR2TjJR4T9pRegF+OhdjnlblbhCn+4h\nMapae/ZhwYFL8fPE80olh+mmxRJQHH1IeRgvn0tVt45Y6plBEwxJq/rg0Oad\nPFAMdmFNICvI2UhlY31JMqtg1ujZVfn2G5Y1BmyqgyY5r0G00WnqexKxn0Zl\nZ2GDQE/9ZL2rlHICsuG4UlLh7OHbUm75MeAQcDoNpn9DNAJa4zrHgqOqWr2L\n5mO4AamheyhfgTN1AvJB1MB6t1Vzsmv1vXo9hAqRSx94HrwQaZ9POTIyojU8\nfHOihLBotz3bWgYdCMMLlXzxaPG746mIo17avdR0tWZ/nBwiBFvpUfQkz68Y\nXrZbdZjnff8C3AVtu8/CzIRhXyVwrd0J0Db/PIb/l9uUZf4dXeoh87VeloVW\nLHa2\r\n=NQKp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b98a165c81d2497f6c0e8e5652743d71d87029e3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.6d8574fe1.0","@material/base":"9.0.0-canary.6d8574fe1.0","@material/shape":"9.0.0-canary.6d8574fe1.0","@material/theme":"9.0.0-canary.6d8574fe1.0","@material/ripple":"9.0.0-canary.6d8574fe1.0","@material/animation":"9.0.0-canary.6d8574fe1.0","@material/elevation":"9.0.0-canary.6d8574fe1.0","@material/typography":"9.0.0-canary.6d8574fe1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.6d8574fe1.0_1606758740218_0.9944874625627442","host":"s3://npm-registry-packages"}},"9.0.0-canary.fd22355f7.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.fd22355f7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.fd22355f7.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"abecd6218b3f3d17899c5bbb5900029ebfa62b69","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.fd22355f7.0.tgz","fileCount":45,"integrity":"sha512-P8SAbfooTWbc0dil+yv6xmecSRJh14mPnKkQvzsoW8zJQTcW+D2VwHL2hfokYrMhocv6cv/GMdhS+sWFyB/lfQ==","signatures":[{"sig":"MEUCIQCb4N9IsswXUaKEr7GRElDKVtx4FkA9rPLLmhE+qZCZVAIgTXRk5xyz9buWh6MyWZXSrkW3lUicxdHxggA83XeN4Tg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxXmWCRA9TVsSAnZWagAAlWUQAI8haLn6XOnIPjVAIUdv\n64+xxzms5FxUJpIH9TiIAXxdE/A3Gr0QSY87JTAjlwxHi9OKzVLJZHZmEYIL\nuFAP+fnTG37rLQ8MxAdYDUHg1P4YNDbmxl/bMgT5dcJUDyQ/3hRyWTgSFpV1\nnDh4cVjhJRlp6M907TS7QwG60inThDqixhZrE71mU5lU16qPznXxcCdmWVgc\nR90QuaKbEFehMx6Sb9nhZoCBBJ+6OLg1sNKmSIEcfmsHvca/PNk6TSFX4Myp\nj1Ss1C+V9T7B/C7U3YplHemUY/0CaorZgk20j4Qu9HOFqtHhSBwhWnONrF7t\nLHHAyyV4ug/qeVis8XQAsd0Osg188YooC5VyNa/gy+8YjMI8S0aXf1RRJOKf\n/i18S3g/kPUWd+tDYtyxFuFgayV0WDFzReXzIdKuxKaeUVS6wWjEuW7fIwDO\ngcnhO23Ex1IiqyfggmRS/2jYB1kX3wQrRN8ustiMF0Dg1xLxvppsL+ajGPCl\n74YXfk9vuWX9Acp9xDOmWJN/msEgNCeyjxQokUjWfm+bBQvnfTjugjA4nlFi\nzNC4poVi2FYXwjthuRFP9h68UBDwfzsS9dTWW6cPYToB+u6uxjn/bs13tbZi\nhE4SyxysPumBZv69Zol8iPt7fbFWAzDpu8Uj9y0S/lctfLTpRAyaM+29gNQ0\nx9GP\r\n=AaSL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"86a40292baea3adb58a6c26ed8c68a9a425cef18","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.fd22355f7.0","@material/base":"9.0.0-canary.fd22355f7.0","@material/shape":"9.0.0-canary.fd22355f7.0","@material/theme":"9.0.0-canary.fd22355f7.0","@material/ripple":"9.0.0-canary.fd22355f7.0","@material/animation":"9.0.0-canary.fd22355f7.0","@material/elevation":"9.0.0-canary.fd22355f7.0","@material/typography":"9.0.0-canary.fd22355f7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.fd22355f7.0_1606777237723_0.5975132339615952","host":"s3://npm-registry-packages"}},"9.0.0-canary.c4ab98722.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.c4ab98722.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.c4ab98722.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"09bc163e433255324fba93db2c6b8e55d7d79874","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.c4ab98722.0.tgz","fileCount":45,"integrity":"sha512-wAKnih5ICNmDvS1Bzqghqz9cS61jlYcvfa6aByo7YP1M0EyYHQD/T+OjIApE5+kUNSqDkVY/n5BThC5dADOJPg==","signatures":[{"sig":"MEUCIAU+l+RaFx9ljpedHfhDshuc/0Bl8UCsNJyseuM+2aJqAiEAzkjFv4ao9LM3eeFhY7qyRXmuzPozQaYjGQR5MFjyppM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxuaSCRA9TVsSAnZWagAAPisP+wbu1ErnlMQ+t6TXNXRo\nY6BEX7TTG0hPVAJQqrcZ09mHM+czvOdOg2q79q80KlY1NuUuogL+33wYdLHf\nbQqpzMw/qaDVu/qQA06IDMxNoC2f2Qqr2FUyXGRlrIk/8L403oqXdEiKJK1I\nJFL/iCtW7znbqflkccK0d+qlWRgToupzRqmHcpSrDuMBLrpM5n/467VLFSnj\nqgvMU1cYAgpmTc13emZp1LxK2j5XNNYtXXnHJe9VIFDPZAlYU2phV/fOKqe4\n4Ovtg+GnzEYfv+5ZwpqOl/mWIztd48xAJotuYIzsIEPuKKaoLa/L4zPrjUn1\naZBavoTE5ZWop50Snbk2M3akbf1TrArky9vdOrP0Ia9WTa6ta3n8EyIjjJJ+\nqQqjkSrBaBJ5VXLuRvvJqxqFvaz+87C85/bNbGkdJSRhI6ndd1W95gFJnBsS\nPZDtxg9qWT9+CXnNX0pZ3A2z8+kBoAuEQFuMGxmbyZheuPQhrgjBoLWg/81u\ndW1AcV7mHFuSl27f5IbBXgMxNpTq0k7W2OGYGFDk0pIRpXqM22On7QRYJ3lG\njo7+k2yPZN9WC3vexYgG50Qp1Yv9do9uQz/kX2hJskRlB959PxIVX7yhtASs\nFZrDV1djgfSm1yz/1tiY1yAPoofiTjZ4AACZQJYo3HoL6aWiFgxtnIxGV1vD\nM53Q\r\n=5O3p\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e6187eb74996c124e1abdcea72dfb697bdb1820f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.c4ab98722.0","@material/base":"9.0.0-canary.c4ab98722.0","@material/shape":"9.0.0-canary.c4ab98722.0","@material/theme":"9.0.0-canary.c4ab98722.0","@material/ripple":"9.0.0-canary.c4ab98722.0","@material/animation":"9.0.0-canary.c4ab98722.0","@material/elevation":"9.0.0-canary.c4ab98722.0","@material/typography":"9.0.0-canary.c4ab98722.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.c4ab98722.0_1606870673975_0.3613488816566668","host":"s3://npm-registry-packages"}},"9.0.0-canary.977585650.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.977585650.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.977585650.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"eea07551a28b1b62f9f9b2b48749f720113f8100","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.977585650.0.tgz","fileCount":45,"integrity":"sha512-JR0E7PjNQJlJW6zaoaL6A/RIbpS9pdhF2VX+XRbiJTaeNMpgWlYkuBG0jPwcQ+v7iv/ywwwtxvKDPn+U0GP6vw==","signatures":[{"sig":"MEUCIA1q0yQgOrHNUPAOXGXN/fWUnpOYRXOh70Dmke3+6jTSAiEAge13mKbcy6QBXV2GrioitzCdJNDbg96plVrCYdXYXtc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfx6gLCRA9TVsSAnZWagAA3MgP/iS1YCaEhSl18zLRCxZd\n6Ia3Ez8EgmMnHSRKbafPIu5YpMKAeBLNQX0RjrPOzfamrrtzDRrbUWcp7Amc\nb9KdtI7tEL/IpdoVop3VmPLitF+qUN+U4M5cq0tdi44vWFcQlkKZdC/4bysH\nur7WIKPalxiFzE5Ze0kZjcg4uM9tV4qZ34BEF1jjf107VMZCahqQjffxgrLw\nHD0SMxBjIAvIMcxbtQVsBJnYUouqklQyaCxOQG3L9c0QLwyx8Iy6OJ9LFPIz\nVUW0/njgc1WNN4H35rIVG1mwqPIEncp/z3kuA2apF1154t871tWvezqmJ/dZ\nnCRLEGuBLbQB4Q4LrYv6UHlqv8ASDO3qv13Id1srWLT6u/OX9Y3MQWU7xX0z\nmEYkzxLJmgHqGlv4LO5I3VHR66y+Rk75CjsVUax3l2AlC6a2bs3nacoLXTb0\nDhZ2S2CyeWFYWD+AEJtWcN4L7VzT8NQDhw++osHr0WqEbOsP+NEGL6/8kNrM\n3sAACBr+lAshKPmSCvLkB/oKjKUUStaAp7aSh+uvCSiKgnoS+talVWk8AUB+\nnVeWJ59GdRbQYwPJMXl1TcfSkTkYc/iN2iLFc99mogQbyLg1om3RHP9lP1md\nN2aCthySF2vG8uzflAQgIG0Pivj+aAPcovlb/FHplAnHe2WNsDQNGyW/BsoP\nw5qY\r\n=5zTF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b008ede8c0d581314d3b967bd295990ca8eee38e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.977585650.0","@material/base":"9.0.0-canary.977585650.0","@material/shape":"9.0.0-canary.977585650.0","@material/theme":"9.0.0-canary.977585650.0","@material/ripple":"9.0.0-canary.977585650.0","@material/animation":"9.0.0-canary.977585650.0","@material/elevation":"9.0.0-canary.977585650.0","@material/typography":"9.0.0-canary.977585650.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.977585650.0_1606920202827_0.30723177095158816","host":"s3://npm-registry-packages"}},"9.0.0-canary.c7edfc7b6.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.c7edfc7b6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.c7edfc7b6.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"80d1e0de2bdf8f38025bdd13764f7d85212bd4ad","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.c7edfc7b6.0.tgz","fileCount":45,"integrity":"sha512-1c0HEH8fwbT8rlxmF2g212pBolIcPYS0+SUqNjAMZ5zi2slFrZShn9ikncsv8Tg/B9VziyUwlUwrAifP84zJ3A==","signatures":[{"sig":"MEUCIEwdxVbPVEYFOEQd570++DNySEL3m4ESS0InPAEyqn5YAiEA2jUKHHSomfyXKJOPKAqk0R5jTwhko2n/JCvvnImgHZU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfx6m8CRA9TVsSAnZWagAAA6MP/Ra8Gz3yET4PD3Dmb/+K\nthF8QhrNTlVwaL5OMUw+HGlLobMM9wiObad02AD52fjwQcOMPbQwoO2jR4D5\nOxhA+LiAyptgfIey/7/Icujnmq6AhrScY6MUZ5/fUagWxQC3qDe0aXYYZDv7\nInMacmpT9XH6m1ebRpkEG8jDBY9i0nLNF7cTmq8eXmkglJ85wmCLIJiMS+hr\nVQlHco+qAjsaCiMiRzZQetig7V6RkTjKAKq3FK5XrJgC/LvJ8xCGhazE4f1l\nf//oR4oCV97g9gbLcPSeVdK6/bD5VFoCaModHqDbAjRzG735CIPnfmu5mMlh\nh7tWibkxrUcWcmtiMjMtK1KIBT7DFDhmn8mLpdOp8gJ0yJMbJcY97Aebn1kT\nDBenSRhXbR5m+7g7WcIxyBuDBraoDMFMODTD58ORdvjB2YZUyHKfUWZ9spGF\nMtwhRweRg+dPf+LSuV+Yff6ZNBfH/Qx7p2dtRgHeTEt3yWkQaA3tInmy0lOu\nfpc3a+OkgJaUxRyCKhVXvxfp94PkF9rCeuR4Ov6EgdZkA/JuqmzxDJ3WM8sy\nybbC5g4VotJ2MynWEq9B8mABlF2fFGEvtV7nG0X4JUmCLb6imJbe9/A/mDQY\nxxfoG5jMwVIwACTdvBg3DnxQetGtfQ7l0VWoQIJgpKNRjHSrsrJYre6M2IUw\nNnbW\r\n=TQIp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"791973660a1d63a77aa10d2bd0df7c0e6ea94698","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.c7edfc7b6.0","@material/base":"9.0.0-canary.c7edfc7b6.0","@material/shape":"9.0.0-canary.c7edfc7b6.0","@material/theme":"9.0.0-canary.c7edfc7b6.0","@material/ripple":"9.0.0-canary.c7edfc7b6.0","@material/animation":"9.0.0-canary.c7edfc7b6.0","@material/elevation":"9.0.0-canary.c7edfc7b6.0","@material/typography":"9.0.0-canary.c7edfc7b6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.c7edfc7b6.0_1606920636271_0.1412742919196337","host":"s3://npm-registry-packages"}},"9.0.0-canary.4f3347306.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.4f3347306.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.4f3347306.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"23f09217e02083f5b8ca028bd2c416e71be33596","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.4f3347306.0.tgz","fileCount":45,"integrity":"sha512-z3veJrHnuaF1GMt3EQ7bpG6Wjh98gnD2cbiVLwwJmtD6HKn3DAoyv+q8vad8J/DeMRzXsxU+mCt2NfYgcStFRw==","signatures":[{"sig":"MEYCIQCIAVe9p4o/Ku9cwvDwYF6MgQte+MeY5WknPsGe65XUxgIhAP0SwxadGYg+3muuIaHhFQAyuoBAOr6ITMxLSMXdJ1uc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfx63xCRA9TVsSAnZWagAAdPsP/0yQk3ZNeoHXbVD9ghf/\nuiVA5a0CeCBznvaO8qwDbPyoFekfgj1NSL1mcg2Tq61gA0lTP51kzf/OoF1u\n1+FORziKLUDDamq8DPTRbangQUFZb1OavVQfaUPRzHrYE3jUEEHzXbGdlPWM\nsu/ogG3OPJwxn7cHSx62Et0/RP1aB0GZPyYloS21CA3ahUaoduK1axCBr6xS\nLh5cZ2D1Uq+0xqAuTrjEWh/JqzMzmSJHFuGFY5aWTnYxYxlTy54lIeYOfYi9\nnW8+j+v/cjuA2rSfSDyBuoZ0rx9fJeDKfsx91Vm3YMse3AKfyo19+fV8RCQ5\nYvRkD8FBoyjGEayBiShgL0HWWVqaga0/H5D8IyKPJEMRQ6CnWiIBbT5Ne/2g\ncOGCjQ8iSnAyNl57DYN+gPe7JsZyP9iDMCpFilVcEO6mS0q2lrSucKRTkbBQ\nSqdC9Q0cag+HU/XM8KxlgJUA6u7A9kHhndQua0frdIfx/KIk0km7RtrWfn4G\nK4vk9aEaZ6ofRPyq2doPzjGejCuph6/ilTnII1VQYZMxMBW5FI7JGalNjJFk\nnlJNph3aQyKjr+vxfYJHP8GP/ZTr4cxsl/gMeOXYeqRGtnZOnzo+TWlgg3yJ\nptHhwzX54KDxsAX8inLpAZBUd0WpvQhxeMY4E99xUSyoKTc1Q/ExJaIqW7YN\nlJIy\r\n=pt4E\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"31d08595c0470096709a4d5518ba7444313882e7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.4f3347306.0","@material/base":"9.0.0-canary.4f3347306.0","@material/shape":"9.0.0-canary.4f3347306.0","@material/theme":"9.0.0-canary.4f3347306.0","@material/ripple":"9.0.0-canary.4f3347306.0","@material/animation":"9.0.0-canary.4f3347306.0","@material/elevation":"9.0.0-canary.4f3347306.0","@material/typography":"9.0.0-canary.4f3347306.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.4f3347306.0_1606921713391_0.6384402149603832","host":"s3://npm-registry-packages"}},"9.0.0-canary.37fbae10d.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.37fbae10d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.37fbae10d.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e801b80161a32a883fd15556adab3801a8959979","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.37fbae10d.0.tgz","fileCount":45,"integrity":"sha512-AXVBLCZ+TFT1DGEYQmJepdJ4N9iKbVZENt3WAU8vnNRmUGgcHyH4DJd3PwhLil0voNKeVaPFi8N9l3TQOWxFeg==","signatures":[{"sig":"MEUCIH0wlzEcSXX6EMrsLOchGa7fruMeddIIibd8oLlGIoaIAiEAskZnCMArpUdKklbtnjxOOUgfe9qkNd+XEQDb59P88S4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfx9o5CRA9TVsSAnZWagAAJCEP/3gfMdgm2qPAUITrfT5Q\nfD+4YAjH7loN4bH5cRVYHmgmE3tKmVPEZwJdAu+wAM2R0sohGbGGYmcq9Okw\nLlv6Wdi2JNjfYHCynfJ5HXiTTxSwYzwH9LJl92gW9psp9guTySw6C15lIiCo\nN8x2S6BZ/5mOQWh2MncA5RxSXLVLrl7VvivGYR+OPSJCO+NBypqg4EKf4fEf\n0ovR+NrsKCSQBTZvtqVvbafKICOUkccMpuRTDAIffDKKnD7RZAOceJ+rCGq3\n+MWhcBy9NVkRnvPa4NjQBoQXsWDYdOsHV+WgYQ25YS60Ek+UthSVzSwAhybU\n/y4NHzZz1hSLrDnBqUL3sVC8iPd+/FfIBJjQn2HlLvK2/L0H4nFFuTaH/eHo\nFxGBw7a8j3UHUF2V3AuZGu4bC8RK47u8O0jhU5346PqUr3aeoOicZZSIuE1e\nR3QdMB5wwTbW5NufB8KLNjfoX1LOpr7ICrGLbuEk56cxO2wWbam4tAl3qiAY\n6sC8Vpn4sfdpL6fEBaCR7d2Fa3KyGfeErI/qHBW6tcwptosthab6QOiMy8+M\nM8ug0bexiUvIq0cER7QTRL7NaswSksinBcjYCM3niV3ihjDQXDhGL9M4URTk\n1Yd8borE1933kHGDl0cAkXg6JzfZD0IPwQZzEXpY2IoV17DoaQ2y6szCORuR\nhdvp\r\n=o+xk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"104ddf5dd99e7bc09a57e2cae74614b7726fa235","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.37fbae10d.0","@material/base":"9.0.0-canary.37fbae10d.0","@material/shape":"9.0.0-canary.37fbae10d.0","@material/theme":"9.0.0-canary.37fbae10d.0","@material/ripple":"9.0.0-canary.37fbae10d.0","@material/animation":"9.0.0-canary.37fbae10d.0","@material/elevation":"9.0.0-canary.37fbae10d.0","@material/typography":"9.0.0-canary.37fbae10d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.37fbae10d.0_1606933049270_0.1771421214788922","host":"s3://npm-registry-packages"}},"9.0.0-canary.11da3c0db.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.11da3c0db.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.11da3c0db.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a028c875ec1a25bbc2fb534ff3145539c9837af5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.11da3c0db.0.tgz","fileCount":45,"integrity":"sha512-HA29EkdMQUA83RQGzEwttF8RduS5u6NTFrQt6IfIO9drgGtM1bfFGibDtnoRPZvPkruXsS5EhGFx7c+YTfi+BA==","signatures":[{"sig":"MEQCIGToL9Be2QeAoh5k0W+zn6nxGzV8p8bpwtn4jwa5brAKAiBccY/tAnIkp89BdDnHL3rairtDs6OGyRmkCBn4asYBYA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfx/fDCRA9TVsSAnZWagAAY9EP/jTtXOOOzxZnIACFxLs4\nnyVrn67+HcPo2Zxi23mW63eUofxFwlQSyTyrGDTInBf8/p+25v829a5Qny1V\nKo+oZmc2d6zSluoAbxhA0wNmh5zJfQhNmv6BKKzpwMiFJQbTMRT7PuDLdVnm\nnlnKbzKFRavx/Dl9zSh6XlPxVopDDblUUIgWklMhdVGevf2yEyWo6H1+BN56\nb7HT+9oBivvoK8dvPmJK9kZ/a5uLrpWTODYRn/EAexzw2dIxscwLkb6vAWT1\nISIm31KfIf3S+TSp/GljckGJZXvcZWzqDR8lkgEACpUzFSsUwdR0qAs8pX5n\ndoYUz6X4ZXQaLLuIIMq++nFb4JeeS2G/Iwb0gySybo6l/s6Q0QoDFhCP3WwZ\nW0gS9M8kw3a/YNNcWORRDXFVaRdGzfyNk0l6u9hnBWQ2gmxmXmaWAqoF8blS\nD0K0mTDLPDKItWszaF75uKxetfZrNZKwa4Y9xOB6UbOtL4sOjsJzs+7YQ52n\ntjU3Qt9wJZ82d5t5t+Glda+9WguDCnG1qHVi6Yh/jx2/kJ3FY+k9aW+k9sqn\n7mT4H7Ifcxj5h4OLIxSoKQMuAicdvWtINPKk9BilBAiDkKhLxyy1ULRPui0/\nUXEtGKfYu0maJAVrlqk5T+Wj+3VrcepWpB0V+zBjnDdNWf73YDXsbq+A0/1c\nLrOW\r\n=NTC7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"db8b5af79bc8221682000a74eab75c30395590f1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.11da3c0db.0","@material/base":"9.0.0-canary.11da3c0db.0","@material/shape":"9.0.0-canary.11da3c0db.0","@material/theme":"9.0.0-canary.11da3c0db.0","@material/ripple":"9.0.0-canary.11da3c0db.0","@material/animation":"9.0.0-canary.11da3c0db.0","@material/elevation":"9.0.0-canary.11da3c0db.0","@material/typography":"9.0.0-canary.11da3c0db.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.11da3c0db.0_1606940610615_0.19076339876428894","host":"s3://npm-registry-packages"}},"9.0.0-canary.489d4c219.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.489d4c219.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.489d4c219.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"dbb228f516572af083b20c25eb1a21983bb2f995","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.489d4c219.0.tgz","fileCount":45,"integrity":"sha512-uIHyERNIYnZO/ztL27BSvdz+e6h/i1Tqg/r7rsq+S73uLaDqxPDUw09gxtBOZWpYOX8IJGN50RoDmu/NmMdkEQ==","signatures":[{"sig":"MEQCIGfM6f3WKPhd1gn9M9PeW2N71QkS7wH5SvagkQM2cgGKAiBYvl9nv8fAJThi80eiX0GLK8qHtnsOqqYt5uGYx9z8MA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyQSnCRA9TVsSAnZWagAAcvEQAIGcf507DJqFtO/taga5\nFJPygcYR/HQpf9wh5iHdV8NHXFjmCmEKjcymGZk2Jglx0CK1VkOqvTxonKXB\nTwxFQwpO1koeGJKv2j/FX/TI7WE7MDbBci6Efuxd7fNGEnyXz/J16hbY8S/s\ndfc5his3izEhXeeKpndAhmAkkhG1dXvqn05LTtJfcTYzz+m4kuhnvUbuKv/a\nEM4Oc8BpVpzKaRhioh5/IkYDCstanIUs3q70kvQH0m/KhIcEI23/FGn/zLrT\nKsKmDIe5YtixRFUPPSL0d0uXO/KziNJ3dRKGJ6rUyJr0MierwrrSlF1Q3afD\nuspymw9ngW86vPsOv0edk5xQ7/dWN2q0an7GVPIccJNnw6SElieTE5prcuiJ\nYFIWkZVKTATGvoHFc6WN8MVy3Rljs1ljGW7Go7szCS9XSS1V0oLABiyct0Ni\navGRh0OTT1msrlyzHOxXYM92CObvW3dYrklF1COoC6izgB1ONHvCNyWdV3fE\nmxYWkvwvTXnoYvren7BNcUNyDBK5rUgM9rZZcQ6s5brtb1ABfc5VEuypiZFr\neRTY3DD7RqfGE49QH9MQBwDaz7wZT84nvFFBdL/7d7iAh7d4AoBbnIzs0CW4\n3O0TH66m8eD9eVf4tK00I2OYdZE6IrruovmzHW4oxiWaOWzgRIX+pzT6kGXk\nbMqi\r\n=XbJb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b1c4ecae655bd87a48f6065e7c292d4b30cda43b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.489d4c219.0","@material/base":"9.0.0-canary.489d4c219.0","@material/shape":"9.0.0-canary.489d4c219.0","@material/theme":"9.0.0-canary.489d4c219.0","@material/ripple":"9.0.0-canary.489d4c219.0","@material/animation":"9.0.0-canary.489d4c219.0","@material/elevation":"9.0.0-canary.489d4c219.0","@material/typography":"9.0.0-canary.489d4c219.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.489d4c219.0_1607009446882_0.8022565625048423","host":"s3://npm-registry-packages"}},"9.0.0-canary.6557a69d9.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.6557a69d9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.6557a69d9.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cdc61f41f2e80e7c9ce2046fa11ec25c134778ad","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.6557a69d9.0.tgz","fileCount":45,"integrity":"sha512-MBxk/mbn7DjBUTYazYBM1qtUU6GdvQ5lqRGIocClNvSPHPGUIKhCGQ0HISpquuk6mw61yjhHTNaHmjIBMxCyLw==","signatures":[{"sig":"MEUCIHShSm5YgYmDFeTa7/5kNPewPQVZq4MZyzYlDJswb6w0AiEA0GTvz+T/tkuf9qKCU6r7U7JWWhBbhRTaln/CBNJo02k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyQdpCRA9TVsSAnZWagAA9agP/0+bi56wcYG3i/V+XGjX\nl07fZZabq1UVnLjUotWAOVsGRgyoLzdlVOcgaTjKEYsSQEKgFoYi+jLBbHOa\nVmoS456F1CFHy5T8q7WGQYLiT5+WGYr4EgaGkMaVD50V+NUx9dbtvGHJsiYb\nOcHuFKaXLt0oQUwQkxrAdUmFkCOUIKGWyZU/BAYU9yBSpqkwWxq+uOHUn8xV\n2rtsRmUyVf9H7h/An4EUOP9OxBfuxDzDzBQSkxyiTITq7kRc++8cuVxahshK\nLroyXGE9ep3/Z20iAIzVMed5BB9NZxISM2qYTIOSAmwgGWJVVL0m2Ii4GsxT\nZhksVsr8xnZujhBreGLaI1Y35C0CYdPvxbx709Ob/5zvjHC7hjbZLUpYWTzr\nJLtb5Lfk92OHMi4O5JypWl6rOiJV1zZitYIWY7AI4A56CF8C86k3+93S9GIb\nnpbjQ9JQS2OCZ2jEtvYzjHFBa7tdvm5UNIoN/OgcInTeJIesHOGIyj+ZrHVE\nVFpdXaKiQJf/xX4LfQLCNPmYTj8EWBlHzwlRUoUvq05bSqIzKQiJdd6mtr3e\n34gb6JEr/UERojAFWPhuxiYnQ9QTDsT2gWAYa58J+p6tGx5K26d1L68benzk\nxN8kc7Nu4+tn+ZEOcpmkCbdtBpapSyqeMofkv5C0P0Zj7jAxwp+wQ8QQ10+a\nNnWi\r\n=7HwL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"55ff05f1fcd2efe299d07cfd81279127a6fcaa5f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.6557a69d9.0","@material/base":"9.0.0-canary.6557a69d9.0","@material/shape":"9.0.0-canary.6557a69d9.0","@material/theme":"9.0.0-canary.6557a69d9.0","@material/ripple":"9.0.0-canary.6557a69d9.0","@material/animation":"9.0.0-canary.6557a69d9.0","@material/elevation":"9.0.0-canary.6557a69d9.0","@material/typography":"9.0.0-canary.6557a69d9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.6557a69d9.0_1607010153021_0.36926384663610823","host":"s3://npm-registry-packages"}},"9.0.0-canary.4ea1b7c69.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.4ea1b7c69.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.4ea1b7c69.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5bddebbb0b1bd9962ad4b40dd92abf0f3fc31e95","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.4ea1b7c69.0.tgz","fileCount":45,"integrity":"sha512-DUyCiefPmiIyFazkB3XFuh5fhOq+6cLczqWKyiB/us1PcBNpEQ1kwbSyhX/FEqxsOpSoDOm1sDNLl60Z7o9rwA==","signatures":[{"sig":"MEQCIByTd1JdAMVS++MnUVk+NFOGF21dc+83FJXdYAHgtAXKAiBsUUXvmtAxGDz+WTEqCUA2cSGf47SXO5JmEtVqzSDK4g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyQtuCRA9TVsSAnZWagAASdgQAId9Q+/PbjLHYXwx4Ksh\nP/5BFSaaN2dZxJTWaJyBb1bm3LW2IBRPOEWY9Ev8tgpnm0g/JPxDSp8hLggi\nrcirfqF3hbj4aSU87uQVsPHnK3UQI7HGV+RMhFLul6uqWT0G0HNXtRiZAjuX\nxtW8aOdcHrY7BRzfV2EZEJlsiiF/Ny7gsYNeqKx35RMUArdGjL2GwHdWKm5z\nSRfipJn2CRNKc75NtuDwpbGa2pteskeFDroJKmgBnhMuORmR6mDE061d5N5B\noLx6POsEjP/Bw/b/VUQc4kg/VcgsWoDaNGAKEIDEtJP8w5G2CF4CCTQjbzJl\n/Yg+X3JNhqyQoIYwf+nzED6/NcqGjivJmT/sTeA5mXccHArH471MmDtD9daR\nF5tnQ4fvdzaFSQZ/Fd9A3lprs8E7Rl6h3i49+iajG6bmY32NDiVA4xt2hmER\n3zCjGlgSYVyZfhbxNuYWtViAw7xnBZ3iEpkLwWfLX/HThIk06kvdX1s33OSL\nR1pIc3Ij/a9gTwD7nnAThgLqt/8V5fhN7I/L0LTU4BvwO4AGKI1ELiZpLQhb\n2cfNfIai34EaQUn9qljo/mbf4GrvqxAEBpiU0Mu+SS2/Yrw+IhG/4LgwPpue\nrZ4+gWOLJqdkyYjQw5f+L6Qr+eATS86E6xYzI7iGYFBr0We7+a/oq+0EKNQ7\nh7Qa\r\n=11Hm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d7307ed831dded5d9e22a8faf595a7411258793f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.4ea1b7c69.0","@material/base":"9.0.0-canary.4ea1b7c69.0","@material/shape":"9.0.0-canary.4ea1b7c69.0","@material/theme":"9.0.0-canary.4ea1b7c69.0","@material/ripple":"9.0.0-canary.4ea1b7c69.0","@material/animation":"9.0.0-canary.4ea1b7c69.0","@material/elevation":"9.0.0-canary.4ea1b7c69.0","@material/typography":"9.0.0-canary.4ea1b7c69.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.4ea1b7c69.0_1607011181977_0.2579656865699793","host":"s3://npm-registry-packages"}},"9.0.0-canary.eaeb78ce3.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.eaeb78ce3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.eaeb78ce3.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"eae7bd81432c4a1ab50ba6bdad5bd9c1aea47429","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.eaeb78ce3.0.tgz","fileCount":45,"integrity":"sha512-cX9eIVyi91hOGP0g75aXQ/x7IuVcggBiaNTBOZtkz4Tfrlsbng8dj/xaDRCjjNUURoE39C0NVr3h8KpS0CKJIg==","signatures":[{"sig":"MEUCIQCKjaZlK7Fcq+kcGheZ/mTLV6RHWUh9p/SlnBcw/PDG3wIgN1eBo28hgqRYQbVvmgqSN6AVSw/dkYr+5Vda3zSgmyo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyRooCRA9TVsSAnZWagAAV7oP/A6YepbIbl3Dr4h5S9Kk\nzlwlHr0hk8n/GZc/keyH+0gm10NoReXIAPrzPFOv//bfg+uf3d1yxWUgvTFx\nDTLhq0QYM0EShNQEo4Fmk31yJ/kTXfQ8SDLMyS8DroVLlkpdxjBOTyWKl1FP\nZJnzRWfvanuR0y1qQ31ppi4UQtBy824hX27BU38WxbuY3w5iLHY5XNGFfQRB\nWEjeb+u53d+kpEx0geJmkJS7nySU+Iqeld8SK7esTFgV+4hltcSjIVpFNAt+\nQDyODRBalxvRgGhgG+uLOzrvho8SlcajUitbS3oXVZJZ5qYRMOGa24tw5C1K\nT9FMeUOSeTKnWzvE4RqnHW4BySvwg2IOkdNC3EFgaB2pokj44BkH3fYq3rsD\n4JUJRyVo6jkw+qGXupyNNom2nTv+Npzd4DQa0+oSLUjNvOn56z4PCDb2Kj14\nWzSr8joT4H289++c0KwwNqI25wXL2jMT1vt3uEleELFdDwcrzH61xF1fTgjZ\nuqbcAG0MaNEb8a0gIplyj7a9AmL1yjw3f5jis9YsCDW42pvyxB6ajGb62fxX\nEKaO3a4/zuD373aWr7kYN9OI83KI37jQhzv+yEqiqHASX62WoaFmBwAZp/Lc\nD4Qa3+kcGysespn6K94/BOsX0As4tXo4csbyOODkzn+6GzdlSA/TrfFlxuBN\nSSfU\r\n=qNB0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9902fe5ed18fabe2d289f92e75dbf17abebe5a80","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.eaeb78ce3.0","@material/base":"9.0.0-canary.eaeb78ce3.0","@material/shape":"9.0.0-canary.eaeb78ce3.0","@material/theme":"9.0.0-canary.eaeb78ce3.0","@material/ripple":"9.0.0-canary.eaeb78ce3.0","@material/animation":"9.0.0-canary.eaeb78ce3.0","@material/elevation":"9.0.0-canary.eaeb78ce3.0","@material/typography":"9.0.0-canary.eaeb78ce3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.eaeb78ce3.0_1607014951830_0.24435760164898768","host":"s3://npm-registry-packages"}},"9.0.0-canary.1c156d69d.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.1c156d69d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.1c156d69d.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6b5c76a9cfd2abae35f45b74eb17c917db74d70d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.1c156d69d.0.tgz","fileCount":45,"integrity":"sha512-VJLGCF+1vsLY/YFPVgcFCIEG/EjuY7eg7ulBwhwbERIl3pyyY3NAvISGzaeUBKg6JOcw0YqcPKcRnv+Js3KchQ==","signatures":[{"sig":"MEUCIEP48te+hxo6ImtD6bc+6ya7riLOpuaVLUck+0HBXwa+AiEA51eJuQL63OD+975zlJUVDaYpgxbQkuMAOTb560Ft23s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyU6cCRA9TVsSAnZWagAAzqEP/1vueYfi1CWH1oHntVuD\nCbuV8iRI+N6YTzWAQJsTKBg4fHsew04u+M8R/dYLgeqYwOCxgCTNAkT3Ef8M\n77c+XovAgxeEP3+vneI6fknk5dDHSlR2dNIq61baYInTmVrXyK9JzGPXSraX\nxvUc/hVjvOvAdwlu7iMftjMPsHveoZH3xzfAfIbqY/cXM3AvAI8US5ER/VgI\nSuhqZPXydpiYE/jApywChp5zyu5xs/neCjYmHYnkUowDRj/X93RBrAIRYwNb\nrdXaSzsKKmZpYmnmPoI0wjJSNySFfnjOBM3FvZz8K7LCXUnkHLNxcewvpn5v\nNPsknTeyVeB1/RUr0F/n53ybuirJKgJaF3JiLVSYSqA6pzR2CRVOm/q1Qz5C\nAMozWG0A4cBVaHntPLSxom106i8Sn3JExRkLzAgzzRXkaGKSryR5xCdUmuyk\nAt7hU7sg9OqcCza30IFtne2qGGiiLqMD3RmtRIuL7eCxTJimrKIH0hCasM64\nzoWDgZRNobtoEeLACS5lQy8tzCdWW3BEl7HbkHIjx+rKmRFeZXxV0nW3hKim\nqkAdG+3awOY/fuRmnza2Lub1B66W87varjhkjz57aQpN2IFSdAWvLLDIK3df\nu5krnEkzm5nCgAyLsVeZBRdJCYux73Nuxa66gQtQqbjf1puN1xjJCsKeYFwI\nQFC/\r\n=aq/A\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2239befcb4baad98eef5bd67444b0f759e58a812","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.1c156d69d.0","@material/base":"9.0.0-canary.1c156d69d.0","@material/shape":"9.0.0-canary.1c156d69d.0","@material/theme":"9.0.0-canary.1c156d69d.0","@material/ripple":"9.0.0-canary.1c156d69d.0","@material/animation":"9.0.0-canary.1c156d69d.0","@material/elevation":"9.0.0-canary.1c156d69d.0","@material/typography":"9.0.0-canary.1c156d69d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.1c156d69d.0_1607028380118_0.2854592856717042","host":"s3://npm-registry-packages"}},"9.0.0-canary.832668d33.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.832668d33.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.832668d33.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b0c460c6dce97ba6d60b1d20c7ecdc4b50b36f78","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.832668d33.0.tgz","fileCount":45,"integrity":"sha512-/ttc3CRpKouIaXa/XKbcAsMB+LtzKMlgcLMWMNu17k6UvlX0a1AxMuUiK+E+3dzsyE1b1JIaWJayboseYUgbFQ==","signatures":[{"sig":"MEUCIFGbeMICBrmG7tVgGYEhdwe3WCzbfCJTpu+uXgz0fYa2AiEA9Nz0HGx3QMn7V8X+F7ydgYaqqnWGJE7a090AECWEYvQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfynrECRA9TVsSAnZWagAAUkEP/34mr3tSi/4d+N8gudWC\nFHM46YZLl8okZpfDV8qbi0MzG3BRDFa9inlDWAOil+7W/6XpJuDaE05n4X0e\n2w0zT++qxEeRTL6QC6R47suYHKeOaaSZsYdJdKrWqLh9+i4voo8XYr+mRHOI\nazNOrA89c2Vim58kZgKuAjoMy7HmZTWbwmS+I7TSy/wLgaPNuWk6gX+/YDJl\nM59leUihMqr3QtXsX1S8ysuGeL8uclfMkR2clSVQXnFZfsaBwJp0lOfkbMrw\n1BhTsqVPE/dpPC1y63FanKXGDVsaxuKP9OzcyLhjHoDKVLN1LuiPRKa3f1aU\n7C45dmphlGgCoxaYi6Fw6/ZQy7hRgslZygS85/8c2IyYG7DZCT49rYzLHJR+\ng0YRmkNCqfXxuPFPqfVfmACrr5HHRvhK652lIEDUS2ePciEGed0pt3L7RSCZ\nUQVx4zAXaOwM4oxf+ubNdCco8T8b8tK/KwbBjsmybmPaUcMJz4RP5GeFmWBK\ngio6wPuPzbnttJze4r11i9EOwMOPRhfbB4AkLe0xeT63ffWZDayryzTwXe0c\nOTfCWYPnxRZGpVLrX0rffa2CVDpftX87P94t/5izb8IIJH1404uEQzsUmc2k\nieu7lcjFiajRZ1JH7ez6nEw1hnXVemEDrxVbHfM2b5iUrxMhJv/Dnugbw/9H\njHp0\r\n=Ot7S\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5744d71a59950726441cfb1b4e3ae33706069b94","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.832668d33.0","@material/base":"9.0.0-canary.832668d33.0","@material/shape":"9.0.0-canary.832668d33.0","@material/theme":"9.0.0-canary.832668d33.0","@material/ripple":"9.0.0-canary.832668d33.0","@material/animation":"9.0.0-canary.832668d33.0","@material/elevation":"9.0.0-canary.832668d33.0","@material/typography":"9.0.0-canary.832668d33.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.832668d33.0_1607105219927_0.5573789821798012","host":"s3://npm-registry-packages"}},"9.0.0-canary.4321323e4.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.4321323e4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.4321323e4.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"18e79302d58297b2520c331661715691f88c4e65","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.4321323e4.0.tgz","fileCount":45,"integrity":"sha512-Abf0+P8F5TANB1jF/bZ6tfMrjgL39X5/IWC4CqPdUHS5E6B3wxY5lAO8f7JFx+8sgorLK/3OcTXY0C5mcBFRWQ==","signatures":[{"sig":"MEUCIFUlXMRdro16LXGdlUNeyezCTyZiZ+ZSiiTNs74uaqqTAiEA9muX2W8TK5nfuvUxbV1wnMYPjOkQCtT1RT4IqZqfJ3Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzhI2CRA9TVsSAnZWagAAglkP/iZ3g4TmSqEoIlPQra3/\nWkJBi/ITELzgwQiJnEjMTt3r5bX50N+UzGcjwcGt1FW5j0AVY8Ua4TMFKKg4\nA6k+CTqr5xNOdGCuoNMvjO++J5aeCVSTCGjCsr3FjY6+5XsskJzwJX3r4nph\niOsKEXSPqkb9y/seTbcL2eJiN/8IXNGWG6uLwXhRhTSq5NjTpJ7OHL4D6RcC\nMD6KOgN7hAGH2gVsWF0lKeQ7TTBS5PQ+9aZMQj5Lso9q/PMr0a2JQcBV6Z4T\nAGUtBqKNW7/Y8WxHIA8u5ghAXBF+mlgTR13cviWaexlA7NDhU7L/F8hjEq6q\nErqUHWUqgxbkqKqSXahboIdzWcumltSu+e6r+PwDQqFxPHALC2e/aU8DnbzE\nWgQp+yoWOVAySYbNLqxbhr3T/CY8lfLAX+pZihaVOcONHPnl/7fY32JTJ/CO\nxwBnbpPuDp3gMPZprqZriHKgjgIZBBm631NekEE3Yd6vSBGKfP/sTNRFHUo4\nhm/5EN0pPFLF9LNg0Y2OR8/mdrh3hohCDdAc08g93wCHGJvqOMUDhs6TgABI\n/nnwCNl+bWBiJcBfO8L4hZKLfdJTnakqhfl/EHb2mpczIMTehLtYAxsCV4eQ\nocX0a88qKEVlb4UmMFYjP9bat7rXt8w9cWcOXyqm3nL3bvF3I6zTVp8W0iPK\nZE+J\r\n=bJ47\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a838a6bc72ee56a967d493a841d4c69ace1f3f13","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.4321323e4.0","@material/base":"9.0.0-canary.4321323e4.0","@material/shape":"9.0.0-canary.4321323e4.0","@material/theme":"9.0.0-canary.4321323e4.0","@material/ripple":"9.0.0-canary.4321323e4.0","@material/animation":"9.0.0-canary.4321323e4.0","@material/elevation":"9.0.0-canary.4321323e4.0","@material/typography":"9.0.0-canary.4321323e4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.4321323e4.0_1607340597878_0.7065025970752585","host":"s3://npm-registry-packages"}},"9.0.0-canary.2d5f32d41.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.2d5f32d41.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.2d5f32d41.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"36f9cc30d1dc9e346355e5c06dd8812848c5734f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.2d5f32d41.0.tgz","fileCount":45,"integrity":"sha512-0vuQ3Hczg1H37FmIEE3GbxXvq+/cI2A16niUJaWiM6xus4eI6oQK+U4j04iYMirZ3vGPPQtH5q8Bm1MGf544Pw==","signatures":[{"sig":"MEYCIQCzRjI8/IBPT60iirvRXAcxx+dU+qtj1Q4qjqMZA69ohgIhANZaS3wmKaOYb+Ca0uecTRFOL6pmm5AQBpw0gAoklTnP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzluYCRA9TVsSAnZWagAARScQAJylYuOFyt3h4gyEkIa7\nA+oJNlb6/jP4WMrvlV9/3xoQvN238X/7b777RvP/lIq6ImgA0lHNCDrP4Bj4\nmXsurbqUODVq4JRJ/Zyyy1NgU4bCLdlUTAN41blkjOPZep2GxalwgMGefdaY\nfymrR5IrsHY90wZA9rGM5B3mw3kiSsNQMco0LNuMvb1rwbxVWBnIG0Psi8sY\nVMgFanyhcWOeDQYbC2NjKXmP9A4vaDZ16DE+q8q7XvydaAgcjzMfG69EGEgq\nXbOkao7VmuKXgd1SVPGV/OAVCtKsmaq+7UhNNxZFaZo4I57iYDMfHPqbeMJD\n2lxmDUtbTERcvZDhbfP/VUO55gFsKA2Qb3K+K4rxNwJh5WrEWd69nJC/UyJR\n8/jZDhyu5UqccUwkAeu9NRKnxKVrfaACe0RNtowiV9059xSl59/6SFYJymhR\ntGWDpTlss1uKW24qVw/7RWEJ4Sj/wQkxInsF9T6DJi8ZLKb5pzALHEcBJTzN\ngBBAETBsrKVOyJC7ca9pV0+eO7ZZcdgPl0L9O04c5mgwVj1esGII7iV+DMkj\nRVOSPPd4Y+Kl5aQtlR0pziEKmGivBZrSfQp8/yGjTcTiiGWIE8ro/GLR3n3H\nJ71T15Wrt7dwrKPC3zS3XcxvZiB3JgYF7NNzLKofU1W6E03e5gWw+aWv94r3\nglGT\r\n=WyHz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2c385d3016a738d32bd3c03bcc91bccf82981fed","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.2d5f32d41.0","@material/base":"9.0.0-canary.2d5f32d41.0","@material/shape":"9.0.0-canary.2d5f32d41.0","@material/theme":"9.0.0-canary.2d5f32d41.0","@material/ripple":"9.0.0-canary.2d5f32d41.0","@material/animation":"9.0.0-canary.2d5f32d41.0","@material/elevation":"9.0.0-canary.2d5f32d41.0","@material/typography":"9.0.0-canary.2d5f32d41.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.2d5f32d41.0_1607359383961_0.6040328240746557","host":"s3://npm-registry-packages"}},"9.0.0-canary.8239afc64.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.8239afc64.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.8239afc64.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a4fb7f0993a86b23a632da278a01e05ebc55951b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.8239afc64.0.tgz","fileCount":45,"integrity":"sha512-+N1i7QaUvw4kNBO5bQ0YNj6nQrak97F7gpXgTHxRwTjr3/ce9rjJ1E5kdqcPmLdywOc3qSQtr3a0danai+JvPg==","signatures":[{"sig":"MEQCIGtPqZOPXJSUesZu7i0Wc1KKfj0YAY39FqVL9EkgI9+pAiAnfHD97k1nbqwMc4N+P/uW131pthzAm7SZw7pxdO7myA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzoeLCRA9TVsSAnZWagAA3AYP/AzW8kKoAK7pJYu6iLA/\nhB9sxsiuvX8YpXrIBax6/bAG64D8LTWhTNRAu23qFrYYcU6N7sdkp9Xn2exc\nq/rv6oEba4bxQW37pcmJDvhNxyUa2vLPoXWc75b4UVup1hPrYklUIkp+Q1fI\nEeNcFMrHgesDfBgJ7yxfeZNIvqj9+xESgZFvYOIokmSWEj7wiFH0yU6JDEh8\nfuZVZcoHlKV5Duv+ZeaykwCEb5alce3QPZuojZTsRqWuq8oKVlQN2hQTZgIB\n3hKvEeRb5d2WVgXnxV65LErtzNjmQqosx8Yvulzga9EsVnsgaVQfuJkiAR5y\nafHhR7O20xxSKltz+zTOJUo11RkWlgpBMYtAlsg6rw3hSxU38pRupIGofDne\n17B5X2s8v4df+37NG28xJeQU20zfiLaHgUqZ3WQpu4BX6T0wX2EflG7SaKj/\n0ND0szsar++a1a89H8NqtUaFe6GHIqR3ZntY1ThZ8QyGV5xCp1k9utNzMBbx\nBeZjSOM9isUuRugSN5fWlmEUpVIiD2/8FmlD7g6wOyinIJ2Kyr4QFkwKwp1d\nAAcikXksXLVkHaJcyX3qT161QVGKkITBHAaMpJfto6s/fqLUgBRygKLW6uA3\nRx1rb0TW+19XLJaNSAVpTQNxEKBPxe2Pwm2LYo2dvUmHpXlIbp7REufTVjL+\nlP+n\r\n=Inwy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3ba24284e7fdc10c5aba869e2a2d3175867e0f15","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.8239afc64.0","@material/base":"9.0.0-canary.8239afc64.0","@material/shape":"9.0.0-canary.8239afc64.0","@material/theme":"9.0.0-canary.8239afc64.0","@material/ripple":"9.0.0-canary.8239afc64.0","@material/animation":"9.0.0-canary.8239afc64.0","@material/elevation":"9.0.0-canary.8239afc64.0","@material/typography":"9.0.0-canary.8239afc64.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.8239afc64.0_1607370634426_0.11220876493303988","host":"s3://npm-registry-packages"}},"9.0.0-canary.6871336f1.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.6871336f1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.6871336f1.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"23008397d8adc24708c621606d1d5ea80f6e18af","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.6871336f1.0.tgz","fileCount":45,"integrity":"sha512-TDe0tCb7bRllaI9zkkKclNKWvKVLGoi+DkD5ron4ahEjhg03zyl7U7VikWH/sps5XVHY1KLeyVSehvuGxYDYUw==","signatures":[{"sig":"MEUCIQCBsZjmybyRRm2a3yAAWsY4WsVQp2Rab+bw0PjhB6tBEgIgNbnpsjpdTzraDCB/6EO10KJSNX4N2JmwmFbI6P4YO+8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz6OdCRA9TVsSAnZWagAA7gQP/Rr2okK4V27AuFHGcGOq\nlN7PJowIF5LfGYyw10xnQzOI/+zLhwMgFx7i0KCMx9HFdr6kVulVQ6yID+bb\nrS4n/M+k6yXZRV9Qk7Wef5MIne8Qq9TDYAe8ihoJkvexjwB02sOnssNRIF6f\nIMZIu51ZiiWNIpohzudYHTluO2Bh/3u63FFHhxDvqYAswpCB6MsdRAdeW+Q2\nu/u3MpIazmIBEj0GPIPxUwMZ1AB9V6ic3BMXH25qu42ZwVbYYd4Qy9oPCfVZ\n6uBRSNv+Ld7T3E5g3Gi3uw1mfHcG6TMScCUyh17flwLUKWLDJ5J4aXheQav6\nS/nARFk8hO4/2wez2VqnBcakFtS+7XvnOOP5q+iBKb0a0iLiF0mbun3aEjpA\nYJto4ZHn2N5iPNcQe952KQpZ1BhaXK/n6IJ/PNiYpmCAX51+XP3rbH8kKL52\nTMRqjWn7mz4952TwwhoRbJo8ugdf85xphKS1eoTLbmmzdSQcIV8yEfPUg9zH\nc/Q5W7dYTygvpv8DzPcG1qQB1iSh7gFpj2E5wBm5jVSeJFp9SbNgtozuV8n7\nmpPFogCDKl+WysVJVDaiE6u32+LeAT89hoWt+3gSba1d1PLhVbYbdwmDkMze\nvOz0Ko5LTFPNYneN49H31jKdX95DUpqNiwoEyXYpHSyqfSCUvBEWtDrwAf6n\nL+X6\r\n=+bbG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"aed20b07d4f2597c382a6ce4b7c723f6df0c3efc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.6871336f1.0","@material/base":"9.0.0-canary.6871336f1.0","@material/shape":"9.0.0-canary.6871336f1.0","@material/theme":"9.0.0-canary.6871336f1.0","@material/ripple":"9.0.0-canary.6871336f1.0","@material/animation":"9.0.0-canary.6871336f1.0","@material/elevation":"9.0.0-canary.6871336f1.0","@material/typography":"9.0.0-canary.6871336f1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.6871336f1.0_1607443356759_0.21871071937569364","host":"s3://npm-registry-packages"}},"9.0.0-canary.9f718da94.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.9f718da94.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.9f718da94.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"16da11e7bfcb6732bb4195b2883e7ead80467540","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.9f718da94.0.tgz","fileCount":45,"integrity":"sha512-OhwGlOb+dtUlGeATpeaGbJ/+8hn5KSDG0TY6d/7RmFqtWpsQapoiSdWAGVoPYWMhntQ+O5vAtKJp/53wHvFsxw==","signatures":[{"sig":"MEUCIQC7CF9OiA95ZssYJiFyn+bkuA39QSwjkMWaoCc1YNH+DAIgA9tgu037+yFr06DvMpZZAvAjat2NA1qcaOueW43z5jA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz6ZeCRA9TVsSAnZWagAAVtcQAIjOwW+GcsD3IdCinAjn\n/O3oNy/9nS0P8Wu5l7iL6dHV3ZqOxDYqsYhrt+efhM3oQUyw8pJ0eNVviZin\nWkG/Ve8a2lq0Vz5L4ukkjiRda2HIUpU5iLBdHU98YNgDEf6Vw1nNJN/bnHiN\nBIbTW5gWV54zwUZCBFZ3dzUpC15LzRUj0nzqYZB8hXnGb+nIUDCAHA1tFzvc\nQu+kd4YGDgT6PHZ2+8XKx1OBVy6ILUd4Oa39kjZRqyugr6GwxcZLlq0uW/CP\n7J3sn6OigGB3mnIS4oJ/QE4FpqqdoAIC6oFZ7oHTKGSr/c23n0FwNX8DlgGj\naye/1Qe6+U+zsvdz6V4FijLQ2X73hWhMu4mv/RzkSC2aCJZWwoqCn0id25Uc\nUayisRHcYI8XfG+J2AcxMNKS2+1/WX6h73oC04sZPTT3iduvcKLYcWB9lSrt\n62yv/Gr+9cQnuNbfZmEn6X1yNbKFurafXd+1lWIUiSPVM19JPB738NNuKk3D\nbwZw9BCiR75eu49Ug+8xar54clEPAOxDjxajJYSB0Uzo8uXeHRLxvo9siW3D\nvyGGtxtDK4uDZLKYMFj7qTlwHP2fQokJEjqiqJsdLMpm8v1vmwqG1C+uJsWq\nMQzT7z6n9XulYMhAgc8fHbxSN2IXO880f0qBIf/pcVmQwF9h4p5qsVnu6IXu\nx49F\r\n=yHxu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7fb6692f329c5482f22dc9fe691a20fe4c6dd38c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.9f718da94.0","@material/base":"9.0.0-canary.9f718da94.0","@material/shape":"9.0.0-canary.9f718da94.0","@material/theme":"9.0.0-canary.9f718da94.0","@material/ripple":"9.0.0-canary.9f718da94.0","@material/animation":"9.0.0-canary.9f718da94.0","@material/elevation":"9.0.0-canary.9f718da94.0","@material/typography":"9.0.0-canary.9f718da94.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.9f718da94.0_1607444061669_0.632532184077258","host":"s3://npm-registry-packages"}},"9.0.0-canary.1fccb1418.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.1fccb1418.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.1fccb1418.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fda36dfca0966ca945985cf6e4d8f896411bb383","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.1fccb1418.0.tgz","fileCount":45,"integrity":"sha512-EslnTZdj/wuxHYaoqI9FuuA6R2OMzj6WcPSnm2+3eEey4wbW0icWeYL1LtApicCqKOIS4UMhp6ppEGKQf73nQA==","signatures":[{"sig":"MEUCIQCne2JH6uxa6BcvsKptzserDOcn5UqIS4ENzAuFmU6P4QIgIfkw/JS+srwEK0+i1HWDS82aBMFv1PwbaFwhiVJO3BM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz6ngCRA9TVsSAnZWagAAq58P/iAl7pOZmV6dYcLrXMH3\nCSWEv4kov7aS6NULKX3Fyu/nq5apCoq/NngFhykPcs3uvzk3IZeR0Y8Y7PZ2\nDpCRGdkcu5Z/yo7gy/2w8cdmNPpFKeB17sk176/NbPuT+mTpqkgRgAznEqJF\nSK2ZbkGflms+PMdQalLTBxKdH3lOx+GucbhLEv7lAR2fSNFc8U085kZtsTzT\nbL2ERRWXgVLb0bXJR9kvPQzLPOAT4kqF2f4Af/nEqNVRlGB6VqfIStr6l0M6\na7egTwieWuFhZLYJKqke1XoYTYp2A377mMq20kfibPncAg3V3tfo29UBx1YJ\nyfS7/xSsfuE2BS/JuwEw266A/kTtSFBJtxr+5FomOiNOu1FIgbLWbF6vNnJP\ngwgrtZv/YgEsT3zS7eYVoIILxjKiUlp6vVxH9hSdxMqCT3DPnivUkDCGgswC\noK6Ckzx5MHKY/dZfUHBESDwgORI2CGxv7AHsuc2vYMD6BaRaPX5PmSV5LVij\n/bgXEoZelBnlmmkGTqvCz46wSozE2wWevMqeegU36YjRczIFOOqvF0hwwsqm\nLVH0JfG6gk2svmzpMSgDrcHD7minQWyd5PGS1nk4I+D6HiPj6hgBcMwxxsIf\nK4BG3kzkk1OrnXq5tIrbTAqtD2AbIIG7DXND/wEH1czu+gEn6JwF0wmHJ/nV\nJ72E\r\n=UBR9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f9dd96ea7afbac37dca91bc879dc44ce4523c442","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.1fccb1418.0","@material/base":"9.0.0-canary.1fccb1418.0","@material/shape":"9.0.0-canary.1fccb1418.0","@material/theme":"9.0.0-canary.1fccb1418.0","@material/ripple":"9.0.0-canary.1fccb1418.0","@material/animation":"9.0.0-canary.1fccb1418.0","@material/elevation":"9.0.0-canary.1fccb1418.0","@material/typography":"9.0.0-canary.1fccb1418.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.1fccb1418.0_1607444959779_0.45277829833906025","host":"s3://npm-registry-packages"}},"9.0.0-canary.afb68894e.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.afb68894e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.afb68894e.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"819d4b24bb1b49608e2afe154a1dde17208d4ecd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.afb68894e.0.tgz","fileCount":45,"integrity":"sha512-I8UiQfvdlUFPc5Fz9Y4qqGg5xTL9k3W84X7GoFx7MFe77lWYEu1Yujq1G9A1OyeA/GKNl6MwT/9ocaYjD9LFeQ==","signatures":[{"sig":"MEQCIEDRCwbuuYIxqHi7Bd589tPZ3Noq3kLXoS92g+PCY+acAiAfqflGsPvQ776DAW8fbQm1Xt7mhs2ZeKizOtZTRh7nCA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz6rSCRA9TVsSAnZWagAAtYsP/RKusKAy3p5J+Q/24wqo\nKJROc+PU6GEQTbQAAJtbd8+FUVnZ9xGLIjs/nsFBSC9O0TrxuGoZmgskuePC\n6yrdE2WZTwpxDhdDLrJm5hkKEvlEtDWlURZ+PSvVUFn6+XiK+5Mx0VeIDiFs\nKRF2zD3kZ/ov3DZ7wKyBQ7tK+ej1V/MUQqdcan6sQnfvtnhJfiWrQ3HoCxJB\nDP3OzA4tbbZ+QFP1h/QtNVKiEkUyD88TkF+ORY9gqbzkO0ZR+KNAIWCll0Ff\nS3KTDTERZSdQxD8dJ39kzbVVnaAAKLnR3P3LD8mETUqRczCo/3qG+my951xE\nLOTUYOTVah2Q+xvlDkRgWNhnq0qnagE/ZO1k5gp4PtjnDKv5VyYxPlLZoXzX\ntJRLO1sUswVyOE1CIdMDm1kHow+ESbBaRl1pyC4NZT/KsFTrxzhA817OlZUJ\nOOaoban/vmv5YN+NU5p+yGibleupu9dLDxKe06v3Saz+5nW7FbOPh7e+e+y3\nB/f5QJF0yTBIEOJfcxUwCBAnlS5pP6jKEx1MQ3Q5v93jqAs9nKsK9WDTwpkQ\naR/eMVRhboECHZAniUVr5rBliSObUiExM1KIrdgFcirQKr7xMqN+zcfj4MeL\nlVsWrGARFwoiNs0JTfGjf5E4oJjyIVO7xj3dmFobKfQgWeUcilLxk7rjrlER\nT2or\r\n=o4uX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8a3ec1a501083d67f1c342fcf5b11a765a586ca0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.afb68894e.0","@material/base":"9.0.0-canary.afb68894e.0","@material/shape":"9.0.0-canary.afb68894e.0","@material/theme":"9.0.0-canary.afb68894e.0","@material/ripple":"9.0.0-canary.afb68894e.0","@material/animation":"9.0.0-canary.afb68894e.0","@material/elevation":"9.0.0-canary.afb68894e.0","@material/typography":"9.0.0-canary.afb68894e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.afb68894e.0_1607445202207_0.9582758808401319","host":"s3://npm-registry-packages"}},"9.0.0-canary.fd88d40c2.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.fd88d40c2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.fd88d40c2.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3c00e41cf699bc90285a64fbb538c8c6a97bc671","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.fd88d40c2.0.tgz","fileCount":45,"integrity":"sha512-dOgb9Z7ePGvLIeiTrH5SNM1nAmmJI5mQ967LuSPGbyuiRclO/eWD0DWARG5NN/mKV+8JawTu8DTOVwxIYZDlfA==","signatures":[{"sig":"MEUCIQCKXI2BTQXln/kAQ3oXcGUJJjuiRRNGFKztbyblscqVWQIgGsL0A0E6nj6bm0G5iTc3UKZPAitSRaBQXIbTepyq/Hw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz64HCRA9TVsSAnZWagAAtxAQAIVS1Jy9zr3R5nq3U5NX\nEpKKUxGl8K4vgmb65srFlqt8bAdCxZ4G3q4ogA2POx8nDR6Y0gf/yuxCqQtJ\n+vl07pXAQrRdctCXz+GrfTCU76/aWDOMpYCtgsrmVD/t0HEBq2W9G9N79h1L\nNETMYF/eFnO48JEcSL7zPPxh+zy0iYYO06/+hFs1L7NW6RmA8SvkgL2rpKdl\n+rk0xiyKMt6ph0o5ePG3goVTmUEvrR5m4rHEJPx5Cd71MztEjaiWNmKb69ld\nk8bPqICua4ubsJzq6cqnPNiQR55EnfjZGdDVPShSHJeQGQq1qQlGoh4/yHTF\nwzChQOXqPdsBFSx9qjkKnQxe/Z+q3cdKsXH8hYQWkbl4rhJRCbXBGYyfYkRq\njYcCA/4iE4Jsno8zMpFS6F47gHsEdZ63o0Sqp8AcJzp4lmYMsuJgKfmyvQtS\nVJ9K/EEUM9OJ6DyPfv8xmEHjNT1Y03lTC3Qz3Oeyje0NsImASAeAnYLK2Cl7\nhObkIJ+0wVRMPSc7bXoU6zmhXR9DN/StuiJwyCUejrt8sxkkl2tP63fow6Qe\n3R94sHUlX3z8VKuGtD2mGCyeIN4CSYDoZWxvjEWzYMfb4moeApW2x3LOp/XS\nUdoqMTMRrWHJAvTgTNN1KLlhv0axaViuS4XlLNyYzapQcQNDbU630hJcF68B\nrIbp\r\n=OnxJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b0f8299700bd0ac44ef5acfdd0234b464d837131","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.fd88d40c2.0","@material/base":"9.0.0-canary.fd88d40c2.0","@material/shape":"9.0.0-canary.fd88d40c2.0","@material/theme":"9.0.0-canary.fd88d40c2.0","@material/ripple":"9.0.0-canary.fd88d40c2.0","@material/animation":"9.0.0-canary.fd88d40c2.0","@material/elevation":"9.0.0-canary.fd88d40c2.0","@material/typography":"9.0.0-canary.fd88d40c2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.fd88d40c2.0_1607446022942_0.8800838987052271","host":"s3://npm-registry-packages"}},"9.0.0-canary.ba9e3109c.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.ba9e3109c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.ba9e3109c.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3f39a80a3e28555d91cf0e99cd62a07096830893","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.ba9e3109c.0.tgz","fileCount":45,"integrity":"sha512-SZD5eCkKmpQsLRHp3N7VGjUDpUuTjrRcX9m+whxB6+ArQhY8p5P1dbvBz0Xyoq0Qe0DVnQCY/7zz8J9kKrwZTA==","signatures":[{"sig":"MEYCIQDg0A2njhheKGHJkvyHdJfyirHjJvmevi2TEBzt0t3PHQIhAO88GmTERLSZPeWV9klU1aWB3W0YIjGXZmAO2oDPHTbl","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz861CRA9TVsSAnZWagAAWJwP/jlMxK8JcAvRb5p/v5W3\nkEkb0UgnPR/bYJfnJMxY8wdqhFOHJPbNPpACs0c3mtFo2T7s67Nl/6/2HJsR\npBVCpxYbBg6YYJLPl7ZkxKuFl20NKVrvDMfVj5Tjoq5/os7clgl542ClhTJ7\n3/JgJlJd+W4DG6H8tRnvVIG8iX8QsPUO4EDr7A387/dezov1lf502xDbdKjv\nPSTtbVB9Wq6v9aRvMWr0+X/BnmAK1w9/dnukfOl3n+nvcN806DQShz2QDlH9\nNNBFG4GqsDXKfn9nHPci8lBrXSwMLcezAvo6MhbpWhUHpJWw1fNWW3TUp+id\nOlHvpaG6YOjlpQwJn/TnHA9456uz2yqlWTL3t7MA3Qu0Rx8a6sBOUfnBKnQ9\nICwt+S64IOwzemSt3OZLofacvh+5C2deHAX2GaxEegswxNul+Ct3TyODU6TM\nQEqZq+wszqdJ3h9AUVQ2sV+QvwQ2uXwDRqpxcKfRWvMUeAr9Z9lmqo7wpfFC\nAotMTLgcD9fMjLXjFNTwZ7+t+/FAzixnaYRMshjoCOD0zBaln6SbNB9NEVUj\nXmVWRhtfsSZEa32wfq5CHPznNv2ENPuUIcEE85JtspltAXfr+iiI486Zj8OO\nGyDYimk5pwnB0ke2nTy3AZK0bBnCF6DTuvMibDRSn/KQldRDb20YFmwcS2+k\nEAgT\r\n=Xj6S\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"84bc4a2a193fb62b5721555a77b59e7bce321bd3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.ba9e3109c.0","@material/base":"9.0.0-canary.ba9e3109c.0","@material/shape":"9.0.0-canary.ba9e3109c.0","@material/theme":"9.0.0-canary.ba9e3109c.0","@material/ripple":"9.0.0-canary.ba9e3109c.0","@material/animation":"9.0.0-canary.ba9e3109c.0","@material/elevation":"9.0.0-canary.ba9e3109c.0","@material/typography":"9.0.0-canary.ba9e3109c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.ba9e3109c.0_1607454388905_0.2833790607354829","host":"s3://npm-registry-packages"}},"9.0.0-canary.1085c3b2d.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.1085c3b2d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.1085c3b2d.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7398a0c51eb173b54b24b3128a851037718c8fac","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.1085c3b2d.0.tgz","fileCount":45,"integrity":"sha512-+kmxFmDBLt1jeitgVPbFJHGhH3SuxZxE2qkiofJ+p2/PNJq6mGuN2P3b4QX2OqdwrM9NqCEdPingyRglJpFm6w==","signatures":[{"sig":"MEUCIAh/GXq/OetUdzSDeEf2b+N5Z92ZrfoNttjdobrG3iosAiEAkHhn8Sz1MEqqaRsexDcJ0qD9b9h2hKNcMa+0NIY0o8Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0SGICRA9TVsSAnZWagAAm0AP/3x0QaAg6hvkiVreOmto\n76+QrmMkfV7BQj+Xb+H+KR8is4qLi6cyqlZ67blJBPRvwZXxXpqRdzICc3ju\nFUauET7SURZm0YuUT8WiZctaR4YKOXgYgBQTflv/ObLRHYetL58tQcc79YYv\ndYhdUdsjezjntA0AhDGLzo+vpimeI0NpDVLsUC4LZbweJ0XORyZW63kGlXiS\nY8u1WDjYzDyVPFn6VJdfv9WoF4OAmolwhU2fmt2t6QkvgAUi69MfU6yIATF2\ntSX9JyGXIK92tcYsz0WcxTxnjVQEyJ2PDJgbkOXKvET2ahVqLYLdUqSwfNbI\n8La+GskV4ma4sqKYmIDN8mgjwcwyJ4ifZJA7NHn5mzkSlquoD1peeROXE8Ck\nZGUh3wSR+YOaDw2XcfHVwqOSwUszsSfaRVHCeBefoj1t42eBMch3/Xw6qfDm\nf0Wj3iGeyket06TVz266+bXgVJKSRdqgRStHYuw0gFGhSVCWJvjIxIy02mLp\n5TyxtmkmsytdlYPWAeznTCIRYgNIhUWnvfDXs6wzCHO8dyC5uHMg7URb3UBu\ndD8APtE5tFEi3o5pSQl5WCWDUjoHnL6My+wgSxw/RRTxpn6sIWr+YG5heZr5\nk8eSfNinef+7Omn4kOCIyMTSosHnT1Slm80/3S5pcF/o0ZUg75DdHhIVs9a/\nhGwn\r\n=rUCX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a223e0b83a78bac523ca498cc8389f361cd0f4e3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.1085c3b2d.0","@material/base":"9.0.0-canary.1085c3b2d.0","@material/shape":"9.0.0-canary.1085c3b2d.0","@material/theme":"9.0.0-canary.1085c3b2d.0","@material/ripple":"9.0.0-canary.1085c3b2d.0","@material/animation":"9.0.0-canary.1085c3b2d.0","@material/elevation":"9.0.0-canary.1085c3b2d.0","@material/typography":"9.0.0-canary.1085c3b2d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.1085c3b2d.0_1607541127824_0.7585240123907886","host":"s3://npm-registry-packages"}},"9.0.0-canary.c5dda809d.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.c5dda809d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.c5dda809d.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2b6fa7695366188a98cedaf5bb9a340e319b3eaf","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.c5dda809d.0.tgz","fileCount":45,"integrity":"sha512-1PKCyg1qDVa1+HK74pnvzaOWugcsjkfLR8VxHIz7LRam+l/Qa/gUGsgee1RFwc60AexILvTng4jLFCpVTeDjWA==","signatures":[{"sig":"MEYCIQCs2ralL95xOE+DDpZlM2cMwz/GnePYz/DjLmoCXvx6NAIhAKjqlMyi8xcnGvLIx7hf32TuZJTDG8ugDZvJSJJKm7zG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0TjDCRA9TVsSAnZWagAAIZcP/icE6aBhKNfm3FsMKYM2\nyv9gBv4yGLTZEruCbqGEQJE+9rj6bXqN7OQHg2Uw5xLHaZEVutgZ21bIZWib\nVSh/PgNjpxZCBlUIGn5Vt9NRIGe/Px/4fL4hjzkgR3SB5FMyJyo1LO7QfCho\nbLQXv+wVPfa64oMrJBFm+JnlOz1ua5M6+xDbq1H94siMuIG+TA/g4ncx+hB2\nAO9iTHL8yFamhfz4v6g9TvUoDFit5BCdtNn9Ksva12gB2OdykTHHLpMJ+gt8\ngjrogWf9mzAGuOyhge1W0Jw2gYhTV3E/fZoKK1S3gNM93C6JdjWYxccIbJL7\n+j5FpcFO9SYxDeo34K0PF9ojcD6ZpggYgTHzIZqvuO8wCjQgAPlSPQimwXGZ\nzG/jsVprNvft4M9OFpUVNxFNeNfjSxPUIb1zOH7rgd2VDX7Rg+dyhX67bFhW\nTFMNPOY0049o+/eGYr6RHPcSOEtd35rt9dYVe6CM+8g4ByhwtjpMNg1D7uzZ\no0I3gFz6P8bbAnx8TNpyMzLQfo7prYzGl98HO7oYO1nLz0AIo4OmZRFAyRvu\nbqdmDkDjo+ZC2j/S2zcOdtWFPqdcBm1SUsvC7LnBEjtdljCRJcNaItiS/4AE\nuDWp1DFOGWgkdPpox4jkObTCAx56V4xUgQJpumHGEt4Dj65b2us+QPf5EkAt\nr0nx\r\n=GvyT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c2bc7206e40f2f31377a09e53af457109018ff02","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.c5dda809d.0","@material/base":"9.0.0-canary.c5dda809d.0","@material/shape":"9.0.0-canary.c5dda809d.0","@material/theme":"9.0.0-canary.c5dda809d.0","@material/ripple":"9.0.0-canary.c5dda809d.0","@material/animation":"9.0.0-canary.c5dda809d.0","@material/elevation":"9.0.0-canary.c5dda809d.0","@material/typography":"9.0.0-canary.c5dda809d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.c5dda809d.0_1607547074671_0.002344168980167094","host":"s3://npm-registry-packages"}},"9.0.0-canary.f5f1bd86a.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.f5f1bd86a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.f5f1bd86a.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"89715edbb22586ecfab729aa9d76026dcb284159","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.f5f1bd86a.0.tgz","fileCount":45,"integrity":"sha512-zFMP2/EOrY0QxWcTGFelDLSmQiFDZMX7UnUGAk1whCi69s/6iM1R3QC+OopHBNdEBB+xi8KCctjMGlj3qk6dJA==","signatures":[{"sig":"MEUCIQC9yj4QQ1iUZMPt59uDxq+xfQhJxIS1ItDJtmW6RUF3qAIgfrtoSbsofokCiYjJJo/Sq8dQ3MOk8i+QiiTxwlYA9RI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0TzhCRA9TVsSAnZWagAAeKUP/Rbu3kb8g41kjsrb2sAL\nJY/+94V6ss+X329xOifuAcw/w0y9JeWNwMGkbpRlG2Y1Kw4tjZ9B9iT2sMqL\ngbeMeJPU37SChDNDncC6pOqewWgUOYihXpxwc0hdRLEptsmEn/QcNc1nmCiG\nO4HXSQ8wFr/lDUkjLbtH2aGzjZ8gpUMMpyV8ZBE+/QcL2oyZRJveuCqipOhe\n48oFIRjNU9OdY0p+6ga2eui57ceoRl3cAF8tKjjoz39W7gtq3OWxB0feEtrk\nG8Bs8++ZV9WP+flIphgYyVqAOIPbXq0hUJrVx75lKTksZLDSQCtxrFngADOs\nSFcQPMlzCf5zpmm/Y96UIthg2RMAMo7lF6WBqYh7NwNubmBh3+I7qCK2K6FC\nswoQ5CK0x7eb9ITNdVZ0q/lJhqLXt2xLVPxORnawzGMweDKmSSHaKuRT6j1c\nXCcQZ8K+N8/aLSPXr6r+RrzcVycd2gvhEopsCvSavDohOigp05JVPDNZaCk3\n+sF1EM93lEa+54vWWmnyl6OMo0NorVmVLM68GsG097y3Q1efBM+3XwC4w/za\nNBhkd3j32P5vm1pTsDmvyPH5V2FIhCcJn2Zsh1SbKHMT+MEP66dg0KkSNZC/\nN+1irCMUkcUp4P5ZwKvRY+TF6OGXYmqTy407ZlLmQ5L29cuHFNQjHAQ4FSuS\nxH/f\r\n=LdC7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"86cb1fcac08fb433af0662cec8583dcdf435eede","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.f5f1bd86a.0","@material/base":"9.0.0-canary.f5f1bd86a.0","@material/shape":"9.0.0-canary.f5f1bd86a.0","@material/theme":"9.0.0-canary.f5f1bd86a.0","@material/ripple":"9.0.0-canary.f5f1bd86a.0","@material/animation":"9.0.0-canary.f5f1bd86a.0","@material/elevation":"9.0.0-canary.f5f1bd86a.0","@material/typography":"9.0.0-canary.f5f1bd86a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.f5f1bd86a.0_1607548128859_0.9424099984616212","host":"s3://npm-registry-packages"}},"9.0.0-canary.00f38200f.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.00f38200f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.00f38200f.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b140dfbabd3bec90797c038ceecce8b17fa0d426","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.00f38200f.0.tgz","fileCount":45,"integrity":"sha512-wiHEZXgD0cKfZT8wnPoZAC1SvWDLpDOzHRxokr8SpnLwURy8RuuQwHEmL7a53eExZsxY0sXOVWLiQ9BSC+qU1g==","signatures":[{"sig":"MEYCIQCeMRzsq1py3PYWjAnElsE+d54pFU1Z5C29yJkOP/H39QIhAN2me5G0kAam9JC3aLam1RdBxDwahqTsj75DHONM5DIF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf05SFCRA9TVsSAnZWagAAjmsP/3DMJLlW6Zo5jpc9Ro83\nFAMqlTnXSknOWSddGrDxigRShY6cuWidi78yrwjoOdvyTG1M1lE3anfANxDu\niTXI9tBM+dXXJiIvcxs4ZPgGRpik0zZAUroKv4A2H5p8biqf6za+86z2fqxi\nugMhOlb1B9M29Ti68OBFUl69UEr/A19rDNuX/hRYAkpV0R1ZXG5ySlpLHyqz\nrghkv4878h8hlcHw3HK0jL3iJD6wl8gz9F6LQZNttZhlUncG7cMA2lvCtiBI\n7K3hsM1gUC8AvdJxKmnc5gyq0qU1+WN14UGkoBiDGRWHToQdNku3g2UsF2pL\ni6x0ct8cNbiHUfYpHjnVWQHOJzYLcaY7vY5a5cHxvcIvIJJoO83ImKVLzK31\ndrgfPdZf8KDWCLwXxW96Ox3+zkz4qOvT3FJgWhMQm2p20jEGHLDD9JBX1yYo\nU/CfZpMAS4yOx73qXC7IccK5TCcZ6uz9qa6f/8eMEd3yQ5GGjADDBxkxTQsu\n4VIYwyBTkSqXsVPXKjVFcxPv7D3UVmMJwxkEMtK1RdqIiFmIaDPYfiMGYA8w\nDkftkq9RAXy7gECjIUn9CpG7hthaVXkhV+tOrm9XyvW7lEbJKScxAEzxIdPl\nJfzAy6BSMO3NLL6MwaoIb8/syknngRc2vMUJXgt7qmEg0AmqaHHY/gr9hxxC\nv9Ow\r\n=kRd+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2771c0048541c1dde142fd7f565741f0dbb83c20","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.00f38200f.0","@material/base":"9.0.0-canary.00f38200f.0","@material/shape":"9.0.0-canary.00f38200f.0","@material/theme":"9.0.0-canary.00f38200f.0","@material/ripple":"9.0.0-canary.00f38200f.0","@material/animation":"9.0.0-canary.00f38200f.0","@material/elevation":"9.0.0-canary.00f38200f.0","@material/typography":"9.0.0-canary.00f38200f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.00f38200f.0_1607701636823_0.39659218275194363","host":"s3://npm-registry-packages"}},"9.0.0-canary.ac41a5729.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.ac41a5729.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.ac41a5729.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2cf0051a654d2c02a017417b82481c79f4e96215","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.ac41a5729.0.tgz","fileCount":45,"integrity":"sha512-R5ExmZfGUZZjARB72XjFuoZFhIlI/RjRdHRh0+CKwFNpeva4PK9VEZ7MC90XbRE/EBUC+Nw4wRu32X8+cv4euQ==","signatures":[{"sig":"MEUCID9tE+bQMXFMhsN1OfD9kP+HavXfmouZ/yCm3ZLqpNBmAiEAth6lE0NMbVIFpd9Je+m39Iv+FiViHzCN6IXFYttJ72A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf055tCRA9TVsSAnZWagAAqDkP/RFlN9SJCkb1EGj2B8Bj\n5rPki1T+ZF+nElRj4Gd7Qwcdk/0kVTqmMsSSfyjJuIMDF/5C8J8LzU4OauuY\noYxk2VH2ggsmizABOFWKWf+3EQnURmtnu/cVhEZOTEOAJLOMX0g+ZLoIA7KO\n6w1d9EOJdWg082cksLfvIJKZVCHYNEnFqq/2S2n9/Md3z8zXxZw34b+pgL6l\niMxnqtItGt3GYdukA1jxcReiPO5DI9UIYhZJ2a6umtTzn+qQXbCnyH5n+rSk\np39sUNwUSFyVZkfUG12OXz88p1JvzDouKMlwRtRdYSxes1gNAirWoY3aaQxW\n49+9R7DvNM4Rdfs5388foGM4lTL2unXGHIghmb6BXZPlboogf2VRrWgFCItu\nksLi7jD+y5+ykXNmQAL25bNh0iwNULMhKerCK8IXYtDYWP6nGD8MJ91sku3G\nQIoM07CD/wRLrUi+dYU1pEBq9ILYNYD+7igBIc4V6gE/scxJLFp999a2KI5u\nW5vvkxTwx/Tq/VsTBbnoWxzNiZLR/CVkAJWvmrF26+jA3Pb9gzMKS6GAe+qJ\nnlneppgJ31BL0ocSYFV4+1vagWr96Ui05098zdvLrMkDTBlUbw+aMKwFehI0\n2/CVdcsvIQZLvop532XPzKFatVg1GtiVXs5wTLfhRtcjJJAtJRKQi54moCyW\noAVM\r\n=F6eD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a8313ebe32ee1c67ef38d5e9ba2b5a4ee2d08f77","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.ac41a5729.0","@material/base":"9.0.0-canary.ac41a5729.0","@material/shape":"9.0.0-canary.ac41a5729.0","@material/theme":"9.0.0-canary.ac41a5729.0","@material/ripple":"9.0.0-canary.ac41a5729.0","@material/animation":"9.0.0-canary.ac41a5729.0","@material/elevation":"9.0.0-canary.ac41a5729.0","@material/typography":"9.0.0-canary.ac41a5729.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.ac41a5729.0_1607704172450_0.1451364619927844","host":"s3://npm-registry-packages"}},"9.0.0-canary.7fe0e4f05.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.7fe0e4f05.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.7fe0e4f05.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f0cf20fb66da1184e8f2ca3a61f93750abb17953","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.7fe0e4f05.0.tgz","fileCount":45,"integrity":"sha512-s5pHmvwyE8mMtoNDvwLR2JewpXUMI1mG5/6/JfCteFUOC1HoVE2YnkcS5/LvwfBgMaKbAQ/Bn0IU6XY4jBrenQ==","signatures":[{"sig":"MEQCICTEhRzmNafJ1RjonYyl8F+gOO4pxtzLYk+G5w+VUSlNAiBmsxgtguPauh3JiLmbj2z+ZWUE8/6SXN5wsiY8j/lXwQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf06cgCRA9TVsSAnZWagAAO8sP+wRmCeW0Dy/4drGyPJ55\n/2gtN47EhWaFC4aJJpCnKzyFFrAWSGo81WGMloBCob7IFkGmKQzGrsdU2mh3\nwzmtBS5391UKfPJSEtMiqCvaP7FI+ZkbE9o/Uhh0AGGf6w2KScrVuWQ99yea\nqfg85NyqKk70mpbJaH7B8qevwsfnruFqZLtPtY2QOI9mU8WlwQjJp48tu08g\nxVz0tUu8QcmBLAI1SDq4lbjc0Aj4LYsDM3RW35B8/kU0Omz930lNB/vglHgf\nXNBVmyVGmy6sU5sIjbuTxxNgKqI7JqhNDbcjQmDG2ZOK5Aedvjcki795BTni\nDPzG13QxqGFmRK9lLKUntM1K488hWaIcMHh1ZuZzqaaOFZ1+W3EnpQuRFQCC\nzZG6YLmIn1OVCgDcqcgOnuXHSTzZQDvRdnPqC3tAMnm15HcXIZ6x2l0iQVri\nV/ZpQheUdEGWUu5zub2b7CTeh54l7SCNn7+HuNs6edwaoflk+w2L69pNfiq/\nIufBkELuzE/0E0cukZU0LvVrbf9g3Kn25/I/C2lY/svcDr85ANpD6bwSROEa\njpmMLArLPfrm0EJpZRhHkJ3gccquLQuAgSYMY1EBwa0lqmNc762Bwe7MHNaD\nPU1akmCwWWrqhIJwcom7N4tY5aWBq+uw///Um0HcdWmFAJmNgsRlpKnZeozp\n0U4I\r\n=2jWj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"174435b67952da2f175e31e1db54647a2722499a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.7fe0e4f05.0","@material/base":"9.0.0-canary.7fe0e4f05.0","@material/shape":"9.0.0-canary.7fe0e4f05.0","@material/theme":"9.0.0-canary.7fe0e4f05.0","@material/ripple":"9.0.0-canary.7fe0e4f05.0","@material/animation":"9.0.0-canary.7fe0e4f05.0","@material/elevation":"9.0.0-canary.7fe0e4f05.0","@material/typography":"9.0.0-canary.7fe0e4f05.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.7fe0e4f05.0_1607706399688_0.3837428088010115","host":"s3://npm-registry-packages"}},"9.0.0-canary.9244508bd.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.9244508bd.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.9244508bd.0","maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3836bba897f94f89cd8c3c57b12a8da1209826ed","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.9244508bd.0.tgz","fileCount":45,"integrity":"sha512-4/MPlJohmcEMMiwLurunMPlsk9p+UMq8BXTtFi2zEV4rVf84waRfc8ft6FJSP9sI21zUjmUignBevj3/fw1ZXg==","signatures":[{"sig":"MEUCICv1XtUO46L8iLluzo+T5ZjLVO/NeVyUa5qb1hPKzXNEAiEA9kDy8/7196MnJTWs3u3Wv3uuTrR2JxJ2LIskzVCLrHQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf08OqCRA9TVsSAnZWagAA2tAP/1PKXd60FpY35s1t5hmc\nBlwyjiEWSVOp7SX0HfgsyFZb5qKwA5x892OMfy4V+tt7Mqsd+qS+k5PY3VD0\nE50DbB0St4K0/ejTDRVzVqT71/kirbrNOX29owGRes37bZ7BD6ei93xCcd0d\nTZEeLvkXp1FJu1rIHVkKTvzo+jUcSXxNoM2hrA4GHOfo6MXRkaDAwX5bZnrP\nzKWlcRKzBPVHe7i39VgOHQpAu0f5S8g0WkdKogeIkX2w65av40eZKXgtt/p3\njx9nwF/nu2IIappitC9U+D59KdKXszZGko6ndS6Bolr3QcC30IqVc1JVvRCL\nxZ3C4LXKj8XpdmRXV5nPEl//CYZzy0ynZeegHH3AJUm1g5S0cvibV6KUqe3g\nKnyWmb4wo1MbqaRcF64ZSNeQ4hRlTs9j2aDe5ixoWK1LwephrquautvmtKIc\nyJ9/xw26TGfIC8IlusuCRDPqIbt87uvFrGod9UW3VMrt6qb8/VRAbldtwrSp\nYxO+22qycd+6ams38wNIe0P6721NJrksS8AS7L9Q1S5wfB+8B5GtX6OYnuOb\nCqw0TRfbXDPm0vsONEQcwoGbOl0D4B1EjS8bDHsQJ46PK7h3mKYwBP7H/guT\nRBiCZTmXpeJG6hPovwbutbzk5t2YeoBhECYgREkHydzDCUU+ji+K+RZ2N8fo\nf9CM\r\n=fS6N\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8d704729c3b4ba17ed088d900fb2ddfd57d5803b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.9244508bd.0","@material/base":"9.0.0-canary.9244508bd.0","@material/shape":"9.0.0-canary.9244508bd.0","@material/theme":"9.0.0-canary.9244508bd.0","@material/ripple":"9.0.0-canary.9244508bd.0","@material/animation":"9.0.0-canary.9244508bd.0","@material/elevation":"9.0.0-canary.9244508bd.0","@material/typography":"9.0.0-canary.9244508bd.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.9244508bd.0_1607713706338_0.7491540004091781","host":"s3://npm-registry-packages"}},"9.0.0-canary.384a8eeb1.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.384a8eeb1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.384a8eeb1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e18ee6a8b534e6916dbac67ac771169c77271947","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.384a8eeb1.0.tgz","fileCount":45,"integrity":"sha512-Wlxu+DeOUvt+yDlS0fXdDzlcaJK3tFw8MEkGTKdZxIcvfsYsIv4zISIV/7c76nQj6Df4Q6q1fBKnmPvmz9yD4w==","signatures":[{"sig":"MEUCIQDWxZPENUi7eAYF6LsRnCjKH9tVnNGuRB74Z2IZ9+gTaAIgcCuBn6diIt346ixbkN6rM09tnffwDER/s9FMVrQm7jY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2j26CRA9TVsSAnZWagAA7kUP/2C8Gxs5VPQWuyCTyoZh\np3nhfu1acyAUa9JwChfDwkSUnPJOJMjruuq3pn4ZZDYcawXp9RGNutVNW9Ue\n0ldu7CxH7Zvl6mVxMAYIw7I726ncVXJCwegoEU9RUuQWGxDELpQPJwTqlZ6Y\nVmVscEADiCMeS4Wmq8nqZKv4iBb5k4ySqhp+SM2OFUq6V4WwtXuzCfj2Adk9\nQRgeGrZTEOpIyFN5KpJFJ+prQW7awb7IbRzAFoTbekNjIAnmiGPQ+GuzI+8B\nnxOQXHgs12yJvU6ochsMrtaeqxP9/nOyQQaVQpEHanVT1ojXl+EjhQvUSFE5\noCnZ1rGysC9WD1Uok/kQ5QipGxn+kjWpvC/qJXiGP6etg/EoNtpCZH6zzIGx\noV1NoZ+d7fljdunEFKtNsgge4q5Zu3uulaRgx5rL3YIxbO5gt3BcV1PJO+uN\ntBr74EAcGgxkLwvSMHvcEuVymgqirnQSuTuwtT1M5mSkro0cOEEPgObR0zdt\n//mvlbjMIV7UxJidYem7IaHryw39uKBmtbMusl3iAJnOWudPfxkDaCjG1Pad\nvlc/fluyQX/ta41ASwicfuF7UfhWJDe0ZOYL0vSof9t5P1qYGLgUYuRFWjZT\nGTb/50u8l2kRXyF998skjMx6274Q0FgGneMmpkBdaqai348zBji740VyKObE\n55W3\r\n=qgmb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"21b2ddce32077f19c001df17ebc3c8ca9c48f8e5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.384a8eeb1.0","@material/base":"9.0.0-canary.384a8eeb1.0","@material/shape":"9.0.0-canary.384a8eeb1.0","@material/theme":"9.0.0-canary.384a8eeb1.0","@material/ripple":"9.0.0-canary.384a8eeb1.0","@material/animation":"9.0.0-canary.384a8eeb1.0","@material/elevation":"9.0.0-canary.384a8eeb1.0","@material/typography":"9.0.0-canary.384a8eeb1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.384a8eeb1.0_1608138169396_0.7146120566281606","host":"s3://npm-registry-packages"}},"9.0.0-canary.eabf9d5c2.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.eabf9d5c2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.eabf9d5c2.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"03d6dfc95616a000f2c9a773e26831069fe13868","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.eabf9d5c2.0.tgz","fileCount":45,"integrity":"sha512-TzBPxFMOJniaFrtIEia97MFqMMfIkd6iMSYzE8yjPKiUJPgDvu9JUFaFwsUaJpLdrVpqF1L2Y6HGQvz2rd48qA==","signatures":[{"sig":"MEUCIFEYvUpXiLu+tPRKIldOF6bHwl7uUKv5ErSarseFkXv0AiEA2Sj4MPgfK8zvaPZDXRiPmfm4ZGS4eB/SFhERxunjwJM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2lHbCRA9TVsSAnZWagAA/7EP/jL9U/mt27+AF50YJlOq\n/s2/zBWZ/o7xhwT9QH8DH8x41saVhKMww/TJDMn8STrzlyfXTWtbCOZw8vfF\nFqwdplgRrc1G/e4UD3vHMzHyUq7EKEAxa5TxW1MTgzihUGkkNjIFTB5QIx0v\nlubwxn67U4NdVKRQKcR09UL75NDJ5i/XXHlYo6u/BqSJ5ZmEKoDM2p4m5Mie\nATEvWyhLwv6OY2E27c2k5e/O8Us/r19NYuCD16lMk+FGRen2EycyIkjbCDnR\n2qztuXRpJTgnVoZ/Uc15slF4Jr7RbJU+6RC4yICZNVn0cRaVd0jMJsXr3Brt\noYedPMPi43PXn1fs7FicmA3Aq0Ys5yX5nlk+KB3LIIfofTagdoDXBFD9tPXb\nlK1P4BSJsByF+aDBTegy+3PzgKJfD16oOHvG1yokYqEWYbKYx2L/bMjzdD5d\n/2JRRwj6CHXofeIBti11uU9MVu0GY+K8Z4V2dMhqBQJcu9KmkUeeNrPJMn6f\nYEwTIbI+tDHaz2OJIjcNmP4MpGrekV3VDZGceij4LyfXvStJkYC2ztMZISdc\nhISvVKQX9m7FctfR99WGSwm4+BL213WlD5cah/Rh2yCDMbLjDI5t25gUW2fb\nH8NnnojMfEqwHj2QUip9F+x4DYuaOR/YnxHCB9En3VHBshT3YhOm7KYRkI7M\nswHB\r\n=R58k\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"78b3a67c04374ddb43be73dc4daf2613746d08b1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.eabf9d5c2.0","@material/base":"9.0.0-canary.eabf9d5c2.0","@material/shape":"9.0.0-canary.eabf9d5c2.0","@material/theme":"9.0.0-canary.eabf9d5c2.0","@material/ripple":"9.0.0-canary.eabf9d5c2.0","@material/animation":"9.0.0-canary.eabf9d5c2.0","@material/elevation":"9.0.0-canary.eabf9d5c2.0","@material/typography":"9.0.0-canary.eabf9d5c2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.eabf9d5c2.0_1608143322496_0.6548828263027899","host":"s3://npm-registry-packages"}},"9.0.0-canary.30fdfd06e.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.30fdfd06e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.30fdfd06e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"92aec2f4d0d5fb442852e34f251f295601eb167c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.30fdfd06e.0.tgz","fileCount":45,"integrity":"sha512-bllX3qOpG3ClOXcj7i7j1SmV96pDBTkVkjjQg9gtxfAzKZnAWMDemtciFuNeS+dNzGrMC6YNLxqdLm0glCcaEA==","signatures":[{"sig":"MEYCIQC869+HMtJD7md5mBc+7mLMGd/bOZKUqDd+ZN4HNCA6KgIhALLzH8K3VhXDOkNuvhuj/HxHaekRI5HSskVCuU6oF+vD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2lsvCRA9TVsSAnZWagAAc3EP/0QZD342+Fi2g4PwnrpP\n7sMk0SZDJl+4mbOgn0II+yrfLa9ILGrDXOkR40ttDz0JJOoLkOz7glnMtm52\nuaeF/lVetIx0/IiW49Sus+GAtnHjjpz7ozdMeLqjqIjiMtP+2Y0TTAVE+ybu\nt0WmQ7F7J1i3t5Rl8bjdiBobTrqIaohqqCyu20RZaKhAbll5yJ4VVANLggwA\nRCG465HFrmTOW6lqPiRRcMDqva0HwMIQdWc1YwPYyb5Td4F1i+JrrW1Ds2fR\neZ+MY7XAhLQxSfKNeGpbWdl30goCl/4frodSsau/U1elCRt4lH2/0CUQARmK\nkWaXkV6LhWKjvR2sN90fvg1cjRXubeBZRbKJfKzPHp9tp1m0xnv3vOCYBWc0\nlvOgAnjXxmzxtE3alNpGy5JsXaPHSq2WU8jdGkVQCvSitig3G7qr2f2GSda8\nRalekRcsX1qxsAuyrN20njj0mVJkIMGGFKqc4lXpfr2ssGBczTP75GQXVBcu\n4l548HCRGK7huj9kqAbDnFuJzZO9a5f6H7w/WaTLMhrkD+/hyTeKu1x1mKsk\nA7QEDlzPyubMC7MjorS8nDjHyDvSY250A4jJjvL8Ewvy36PMjVB1sZybVt1h\ndELv67SaMqE6rd8bMouoVSAx5/n99nd2BUs5SvvwjfMm9mwoHrLsFxqkrrXy\nyFoL\r\n=ndtK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f9c9fe091a06230b038ac8a71ccd652c7c662b96","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.30fdfd06e.0","@material/base":"9.0.0-canary.30fdfd06e.0","@material/shape":"9.0.0-canary.30fdfd06e.0","@material/theme":"9.0.0-canary.30fdfd06e.0","@material/ripple":"9.0.0-canary.30fdfd06e.0","@material/animation":"9.0.0-canary.30fdfd06e.0","@material/elevation":"9.0.0-canary.30fdfd06e.0","@material/typography":"9.0.0-canary.30fdfd06e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.30fdfd06e.0_1608145710916_0.6962197318964269","host":"s3://npm-registry-packages"}},"9.0.0-canary.9590a8f90.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.9590a8f90.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.9590a8f90.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"52e9cb4d3880d341fd108b6bc29fbc569ee4620d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.9590a8f90.0.tgz","fileCount":45,"integrity":"sha512-IML294iquO3UoysDMSRk4CCSDJcNCU/2LINy8mTJQU+v6dKwfgzPo7yuxe/1r5FgXzEyIiul0GWobZ1nPDsFjw==","signatures":[{"sig":"MEUCIQDv6gL+YRY7gt/O8rPPcr6YRbOq5Lqh98r61jqMpdNZ+gIgK7DtOt7NkyGpvx40OStlDcAX/coVuZ9QFBlJRFqSZCo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4jArCRA9TVsSAnZWagAAL98P/1vcMuOqiiusXD4mcvjm\nOHGiTBHKNfN36btjTwsIZKjjYZpSbBmA93/b481wsMyYnecFIX0q3xpAo06O\n33DK10khgAvnjC40KiMxsBrMN6MO7F6zmXub/RGzLLhY6kUwsb9ERC6lK5pE\nq6MXOR6++XApC5wn+p/WH+cozIHfRrBypVJbGQabsVJMc2/ohoHUFyGyJhIK\n7APpYwCjP8OrQWOHa1Q8hU5V1pdHokQ7uEtk2PhbKb+LgSrhLK09LPQ4cBKj\nK0t+HlAZnr/GPdQ9mOwMXm6UEFBKSR1YfUy32kphQ3tdpvkfy2BdqqKY1MrZ\nbZdFOCb750bKzqZ9WK710jcl5ukUULxFAJzYQQN8WVYa57CbZWi+21tgBjxc\n4Hb8vRNt0KAiyETC34/oPRxqdpw7rHX4k45cNKz/8B0vvZzHzYMURJjv5u0B\n2K+XOOIOYalm1bq2pdoKK+fbGsyCZChBHB6yjC2CkkFymXnrv5EabOxCEpH7\nsTZ4cyQqYbQ3kBUgPL0sN+WjYxtgPtOo8tHVBC77qOswpCUytaV2jGy9BaZ4\nYNtgo+JGjr7fYIUyEQeH3z0Xat82ky2gTQQ0hZ7vUz2Q8QtCh3gmbvOj67uC\n24pVdYTSFQipEboEycbTWq1HgNsiPlHH3Fs5CO9E/NJhUElibhQwbO0gnMAR\nMOii\r\n=kdvX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a592a11a03887b1e1535d4d49ea05db1b6f72789","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.9590a8f90.0","@material/base":"9.0.0-canary.9590a8f90.0","@material/shape":"9.0.0-canary.9590a8f90.0","@material/theme":"9.0.0-canary.9590a8f90.0","@material/ripple":"9.0.0-canary.9590a8f90.0","@material/animation":"9.0.0-canary.9590a8f90.0","@material/elevation":"9.0.0-canary.9590a8f90.0","@material/typography":"9.0.0-canary.9590a8f90.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.9590a8f90.0_1608658987264_0.16684283547154366","host":"s3://npm-registry-packages"}},"9.0.0-canary.f89d8b8f2.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.f89d8b8f2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.f89d8b8f2.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cdbe1e8e48e3f04bb0bb7366365a861a6a71e257","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.f89d8b8f2.0.tgz","fileCount":45,"integrity":"sha512-AhcVXiciM6rQ6DXmv41dxjhlJsrxP9RQbgDBwAx3jOq6ls5ohCb9/UvBmbz/iRatiV7rkUyhNCSdeE4qKIoaxA==","signatures":[{"sig":"MEUCIES4Fbedc4VdY4k+21Ga2FSnzC8bgqShi6kPtBV59/T0AiEA+oMpfl/ps5FApBEiXmtGoJZ3JT+a/NFTG9vf6r7HmW8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4nvfCRA9TVsSAnZWagAAxpUP/Ro+NCuLbw1f08ySs06U\n32j07VR/tyKspMBV6dh0gLqJYVu0VR920T2bX+bH8TI4HJvxBNz/Sy5+GXls\nvvT/gnPGmyalE3Fn5Al9+ISzh5TUOeh+EAWiKrln/I62YH/74Y9sc6SxDEV9\n/+xLm+2nW4Wi7sWr0N0kKvB0BCLu7yU1D8Uwz4mt211AE6suUy72+JpDgweY\nvfqffiLFzDFMt++fp+70e5m3qStm+U54m/vJlmlnM/5rtqmk7ymLb+GxfO9p\nM70C0309x0Xo569uOmh45nd4VLu/A2gTeVtuDNU0AkBTOGA2hPqJUHWXRbCb\ndVADPPaZcZk58LiT+0J83A+/KKd8ce2/N+xYKnOq6HpsfVi03V/GMsidgFTL\nG59g+BVw7nafcLUi9SVAIYzAncIng2jzuOH8Oo2r+bK7OVa8k/eRsMcsLz9q\nAA1WikQxbPcpGo/6JtsPj1IbEf5fvOVSFq5vxK+TqBSuyKtfPI+6l1uVA8WP\nWNpitv7QujkD6AXKdwaUfgmymTyRzR380WcU+xrE25HuF2ISUfdyC0Dmmqh7\nV0oGQUfr2LEKHbWo59rc8y+67kmJgLHwSwfVQFdFx/NL0sB2qYz72T//qqdM\n0nYjOXzsjOJdYDO4RTJGQcnQYVFKtKpL92lcuaiQ/4d+sCk21G5a8sqPTrnm\nTtoH\r\n=iFOn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e0d61155aa611a1a8573762d75379cbb25d2e7c0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.f89d8b8f2.0","@material/base":"9.0.0-canary.f89d8b8f2.0","@material/shape":"9.0.0-canary.f89d8b8f2.0","@material/theme":"9.0.0-canary.f89d8b8f2.0","@material/ripple":"9.0.0-canary.f89d8b8f2.0","@material/animation":"9.0.0-canary.f89d8b8f2.0","@material/elevation":"9.0.0-canary.f89d8b8f2.0","@material/typography":"9.0.0-canary.f89d8b8f2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.f89d8b8f2.0_1608678366537_0.08848672767216081","host":"s3://npm-registry-packages"}},"9.0.0-canary.fb194dd35.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.fb194dd35.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.fb194dd35.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f12c64ddfefe31f1e0f1857bad19b91ae3ee50dc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.fb194dd35.0.tgz","fileCount":45,"integrity":"sha512-cwA5wlPtYE4k9ALZvTm1cverLloXPGaJwX+HsJ7MjDhwz4foh/m7W8Xk/Q8HdSwrHTBmSAx5S6LCXPQ7u8P2Wg==","signatures":[{"sig":"MEQCIHwo4JB83IQrI0aNKXRNgEnIhye6kb48Fvp8hb38JZEkAiB9ijw4+bSeKL8RAW0cnM83jU4SO/NZpqtuvAL69ILhGQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6kQqCRA9TVsSAnZWagAAoZsP/1RFWU5lxSOlb9UoKgDx\nDOXilofiKGDMihq9CCwgDlAgn6YkKhBlNH4RUy83YtPZIiBe8GNCsYXZ25to\nVBA+vyTkCNE/sk55QDd9HCJe01gbdMek5G8bGiMAOUQcNGBMA7hXcr740lTR\nGTYoLAaoopTgjBJQVdpawgslubhHO/EjrsL6t7NEjwOsoC0r2RoVVOKAKucN\nPF7GrH0SLjeQmC35lrvHRz8T1n03p5lC2YxvMEOnAOkYh+AKfS566n/bUeWh\nLfnJop2bLcS+fjtzqkBlXsnKTipYeuDWf1s+qKOg9ziGknsIv+gBGAgGiy7/\nXC6ARB3K/IFOZUo4iXtDjRTYdZdv5ThCffYwwdbHmvDJd5SImYCNdnVbUjiG\nBYHLF0CI6oDtb6CIe6R/sxaezzTsnRrhWrYP5CnQGtqn1yQjdJ+vUjWo4Eja\nCw+vnhcXF6tyHTNq45AGWfVYK0YUOGBW5t1HesgyvsIZPO/dpW2UH1D5MC3N\nsI+sT2VHoUZQsziYVxunmkKwgaemfCC6ZySnTwNIyjToebmdvEzHv5JG7IYR\nIXDr1+cOkJHoCjTdPVkeYJxTw7mKLonoBeQPDJ6eZB38mqu1nnNrc/kLW6Ev\n+JlqDfzIm8FENU1EWUwUK0qzsnQN5uehiWbely9U5FIlOWrUx+BmcwQ7Ie9G\nnUpX\r\n=ll4O\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"57a5b34de1026133757436905fc54dc5b326d3e8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.fb194dd35.0","@material/base":"9.0.0-canary.fb194dd35.0","@material/shape":"9.0.0-canary.fb194dd35.0","@material/theme":"9.0.0-canary.fb194dd35.0","@material/ripple":"9.0.0-canary.fb194dd35.0","@material/animation":"9.0.0-canary.fb194dd35.0","@material/elevation":"9.0.0-canary.fb194dd35.0","@material/typography":"9.0.0-canary.fb194dd35.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.fb194dd35.0_1609188393880_0.4629834248980531","host":"s3://npm-registry-packages"}},"9.0.0-canary.64f36e287.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.64f36e287.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.64f36e287.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fef3ae019e23c7ad6bfc580d7947edef019d449c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.64f36e287.0.tgz","fileCount":45,"integrity":"sha512-bi3WtVT7s0kGZT4u48C5Vsj7fquMgeZcQvOoole7B+ufIMqEvcY3J/mY48KLpKAOnuKf+0gMQGHtJIsFu6LQ9A==","signatures":[{"sig":"MEQCIEFzAhQ2FUAfoNgogJLF9PPfRCWopQExRW+EMp5/kYQSAiATMdE3cUSvDWsxgpVQ595e+GNHsoaDx3hEHluZHk04lA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6kmJCRA9TVsSAnZWagAAWDcP/i74HlagefFybuqWx40P\nkPXqtiXTpVRRwKvWKpZBuZMIFFFD0DpkGLodXktCiifXR3JgFhnrcNKCFcCz\nF7HHseWdFrSVtgyULAbMmOrnacYxzBFXGWG2YTzYtkguxjX0PDqJBzG4Zvcx\n6F841PEqSa5EXkgMUB2cGpk45h9W0Z4XVaMlYy6DQxl5x/8RpVQpskhpLzaR\nFnsu7IXb2tBHq4126iX0QZkYH78/ZV+rrrWigLSS/b88MmHlEDiVl+Qebih6\nnUs2mXYXuaFgINSiAb7ZGGBB8kjIzp1BQeCUmYRw27HpiZG66h2/9OfpWO2E\nChV3NSLzsRu3F4KMRY1fcAgX082xJHSUQdol729XeNMZZH0h7KQ0NDnM/FQM\nRti5W5/MTEX6MJM1HxE/t1sNssVVvEkTufoR9qKl/owDcM+oNJG3Pl0Ojvwz\ny2MwnMPKw+AMB+QfYWgtAh/88UlVsU6WxYO+7UhLPeTssuqLnY2XjzmnbyP0\n5pU5SEdF+8pP207W4GfTOLofiuMXkLGOLYEN8iq90xaSzC4KGgGL/i7/wvRX\nyPiyPv2JcjZOdVWAf+zli5gVJwutRdBgX1EnEJ4mazZA2c3ZJlo3dKEfPKNY\nMyPQv2ikWN9QDTLAMefyhcsjoBcj5kIwNFufAZqOVZrxqxqOeIvfaixbm2CH\nuExQ\r\n=Jvl7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"23f6770d284ec6c17b1aad9913827f8d456418f2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.64f36e287.0","@material/base":"9.0.0-canary.64f36e287.0","@material/shape":"9.0.0-canary.64f36e287.0","@material/theme":"9.0.0-canary.64f36e287.0","@material/ripple":"9.0.0-canary.64f36e287.0","@material/animation":"9.0.0-canary.64f36e287.0","@material/elevation":"9.0.0-canary.64f36e287.0","@material/typography":"9.0.0-canary.64f36e287.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.64f36e287.0_1609189769220_0.4701437699120319","host":"s3://npm-registry-packages"}},"9.0.0-canary.b7bbe7022.0":{"name":"@material/top-app-bar","version":"9.0.0-canary.b7bbe7022.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0-canary.b7bbe7022.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c6cad984d43197adbbf41ded6d4dc677bc242597","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0-canary.b7bbe7022.0.tgz","fileCount":45,"integrity":"sha512-8vtdVBk+veXHheIr7J0M65v41Gp9tdYwC8LgY2i6weLCgcFSsQD1eb8bFtrHXtSDDL8Zh6vEsH8FdV5yvhUqNA==","signatures":[{"sig":"MEQCIBavI28mBxP5aqtxvCy8y7C+md8ilfwzvJ9CpQqEws9TAiB/2kzbfEQDq8ymW8kbezaVuC6cPZm1QUweaNz/SGQg9w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf63oXCRA9TVsSAnZWagAAgM4P/2tV2kq59k6tlDIBjKRU\nydAlLxyro8UsLz0K6Nw2ZLBgBX/wPxW+EWZK1ehIHD21rPet6rCDZmDDQWUV\n5xwPMO0mx8Mfw3fBtY0IrKxAFnxpWaBPBxwOlslVT9raG7YKrgXJTEM2FPnO\nCVDfc2Z8jMc3mncGyuNSYJtneumixCjdv3Vs4qRe3LvntvEmimCg50OTx3ld\ng+Ikq7m5QZBiYZP/A84VB2guX+yLTd1eWsXQ0kQkFsz/W71ozBnO0qrf3Gws\nM/fFF4+ciLgW1CRp12hlSAmfpLQiF42Nv9EoGzbk7LfDaDNowI2biU+oumjr\nqSFuvRgybKPvI/hfAi4sixMi2KwQDhUWwu1DafenhclqEZXEggNmeZ7I9E+4\nsBnfC9W2xntkslwM8TlK6+lFm3U1ypA7hWtId5+vc09f2I3ie8nyFVXE2tpr\nX0F8INeMYcWeA6vrEUaH/TY3LorvNx4/S5uHF2f/oi0kWYmfE35UM9smDVFj\nGztl/gITrqocULn+UfmxQquxCk68TlmDNXCXH84GLOMuCQi+C5NIOY0OIJZn\nslVm5+0riR3aiz+7DiyIttBOml2OF11RLIK6SyG5DzszgIBiFMFXIf2mkOf3\n3iCu9VwfLuFmnsJ7mU8lT/voACa0QpzBA5V0yU9xnRxVR0p8ZEcT3i7dtBN5\nYK2b\r\n=mblq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"81238a3912ea8bf30c97b0318ac2ce65f297eece","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"9.0.0-canary.b7bbe7022.0","@material/base":"9.0.0-canary.b7bbe7022.0","@material/shape":"9.0.0-canary.b7bbe7022.0","@material/theme":"9.0.0-canary.b7bbe7022.0","@material/ripple":"9.0.0-canary.b7bbe7022.0","@material/animation":"9.0.0-canary.b7bbe7022.0","@material/elevation":"9.0.0-canary.b7bbe7022.0","@material/typography":"9.0.0-canary.b7bbe7022.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0-canary.b7bbe7022.0_1609267734498_0.9984435417082951","host":"s3://npm-registry-packages"}},"9.0.0":{"name":"@material/top-app-bar","version":"9.0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@9.0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"41fd5eb1bee09a075908b40b4af4a70611134e71","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-9.0.0.tgz","fileCount":44,"integrity":"sha512-6FJ7YTsXIv4gLF5zpSjffHTEwpVoNOnl0++B8Uozd03g/q/WkDQkkDgGiL0+XS34+QNzL72/7MFbvd+qEejurw==","signatures":[{"sig":"MEUCIQChRbCSW5H5LeqHvOGyJvznvCKUPRzTZndp7kJQVUN2AgIgaBfl6Vz+U4Nkp+sDLndkfcPa7lZscZRHiv4AUtMzy/M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090415,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf64e7CRA9TVsSAnZWagAAANQP/0eZVa4CQsQY19fn6vOr\n0BJbsHF6afQAChKYD6g2YOOtvoxKPutuhgTLZuvAuLoSegdHt2utbs6Z6X+1\n5J1dkJIaRZSfrIyi/WJEyjdYBggIZ7IW/TfdtgZUuZx58+8CgaKpSKGdUNlc\nmWG7LZ+AArJtLl/dP1Ikh+1fogiBeEDGByJnFZZgvBq4DcBSTItuw4Eelbc+\n5ftIWuA//CcjEIgFwsUGe+ULKlLxJ0RWftr9scLyGphmDq8oo8/BHOydhhGa\n5jBZXtjXHACpBUi6zGUWDlTAsJyPwiiRi9ocUy/B5KyUTNgvPoj5noahPXX9\nUQzw12iN3l08J4jgoDs47ThuRY4you9+xzl3OOhONj/zfhyUh0qzMoMkqeWl\neS5B9w6koUsTEZKJif7I4sHNHMfqCg3rj62qE0M/pxJfu98JLDp7nyLrZlRo\nIZ2jl2nLNn/2YM67c77IcxiHuRlvX03c7Hqd+XZm/yx5Ik0r7WRhcegV2kK1\ntrO9TqjifkarD2omluga6nFnapMcGRiNhj4ogcq6wb4iXte3b+DiPkWCzn/h\nuHsdCKwXauefoChdrpPY6RXJTJg1Om+lDteQhyLYWcpUab1fEVAZbPH4tWAS\nb5WeT5xQmudA2ambCOt8M5ZgZ/0+QHcYM1lvR/25aMdldgBgBkWXJBYbuXD7\nbUhD\r\n=Up1S\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","gitHead":"555aecce59125bc3f162b065dca47384bb5822b1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"^9.0.0","@material/base":"^9.0.0","@material/shape":"^9.0.0","@material/theme":"^9.0.0","@material/ripple":"^9.0.0","@material/animation":"^9.0.0","@material/elevation":"^9.0.0","@material/typography":"^9.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_9.0.0_1609271227292_0.02531349672281702","host":"s3://npm-registry-packages"}},"10.0.0-canary.776c18681.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.776c18681.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.776c18681.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"aceadc1ca2411571af3193eb89b1fcc9825f324f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.776c18681.0.tgz","fileCount":45,"integrity":"sha512-IJqCbyZfsAshgAOoaKkR/Gy4DBEGXgqH5SqbQNMmKOmSnXRBzAclov7hUlSSI0/ce/dPY4FghRL3jgSlXlv8ng==","signatures":[{"sig":"MEQCIFkKGlcuR7G8mMY5Thb4nTh8wtYmMaVMfVbpMpcAgyV8AiBsibarFrVMs9wYuh83tCaX/bXWI9ebcF5sB0nhLI8GZg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090968,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf68yjCRA9TVsSAnZWagAAVmkP/3fbtGkb+NnQcJgL0wgM\nWypfG2vnhlvqIGCcko0js9QR9kE2uvrDqDwQMcsSVpFcXTNZwte2RsduCiAH\nqQLtwN+sSdxCsP9ocxhGMmZt3wpWAv639SKUnbD0xQwufbGlsfUgwUb2MFJ3\nKNW/Je3d1ve7UMty/nqhMcP3vh4P0TCVb37m6IlfDdc/s798PeFgX1h9imPi\nelNczz8sp7DsBRhqQvH2q10gitSEi6d7+WbSMz5azLCp4npGkThhDYtWmaqH\nDwTcEvT1TKjJo6MtRRLW0L2ZoX7OffnbRp3rKhEE3OgFzkSFCIpzrfBmjpP3\nQXUbQ7c38ma1RBcmuObFYvdFZ4vO0Y8QSU0Pzz/IUKlhoYJuDXHVqm2hByNT\nrAcEH99uiGXiiYdOVWououVZ2F1649Cp5SrfcKfZSwTWJ2ETepvGpqI5A4Ja\n33Tur0XlPACF4C1bgmLuEp7VEK6HMP9hM8QMq4U7LYUPHPnQYYhRSAq1wG9I\naGzCcK5n5jLGVi1L2qJpJUD7G7P3wYPqwx6Gx8GkOkXNf6aQOLMosZk9i+jI\nduYrS49dn4aVvXn4SoRoTybjw8nkONUOjEZr4P+9Y7QcGRDAIPKaRwl9Tn8J\nZQu33y5d1dju08SBE9vnNfNZc//rJg/yi3tb2ZciJc6a7YpsOcAxmcOGoVN+\nF9kv\r\n=Ovem\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the standard and fixed top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"920f8ec98e9709a32b0564a5334ae434137478dc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.776c18681.0","@material/base":"10.0.0-canary.776c18681.0","@material/shape":"10.0.0-canary.776c18681.0","@material/theme":"10.0.0-canary.776c18681.0","@material/ripple":"10.0.0-canary.776c18681.0","@material/animation":"10.0.0-canary.776c18681.0","@material/elevation":"10.0.0-canary.776c18681.0","@material/typography":"10.0.0-canary.776c18681.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.776c18681.0_1609288866973_0.5653784594308136","host":"s3://npm-registry-packages"}},"10.0.0-canary.671d72d95.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.671d72d95.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.671d72d95.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4184363a74133b0a413d0ed51359796c31003088","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.671d72d95.0.tgz","fileCount":45,"integrity":"sha512-l1YzAZCkA+Wy2/3Gnd/84E5GZCqgv3b7skW7a8EmBWogJy+xgFIn2dyRI75r9VXOjTr2YCxBhADvOOWgJOTJww==","signatures":[{"sig":"MEUCIQDASw2DmpZ3llC8In23+HSYcuUtf10Lm1ahBzt3mGX/kAIgCPJFTcOnHYTeKi8BB4AmsFoZvEkz5w5NhdI73zcTnFs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf7N9ICRA9TVsSAnZWagAAJCcQAKIDZd/pftn7Kdd7xfqz\n2hEyC0tc5B7CKOkJxtfVg3dZlU9OqL+52uvcsNpu9O1j+7UKjCq6rZ1cmWsR\ngRumg2+1ygH226sI+ZPPH1ZLG6KcIRzDZYQS2fPN0M42jMho9czYu9o730cy\nuAefTv4cMQdXPILvJPopLD6v5xlo4kXoTTy50rH0OdFutw57N0kdfV4Z+stB\ngvvJUh6w9O0OhJF/5zvlNe+/6GpL7/ENYJX9Wsk7qEwlkfq6HNBsPJk+pNMv\nfiw63kbLm274SCAUMGEUzMrCKI66+Kk+YAfcopm0tH79+p7GxczWnwvvmcsy\nUnqicCFExGFu3nCbLAq68vofNyYNKZSEQ0JBIA4zCEP3lg1Zo+/m0a6eDx+r\nq3NTGYDovkFrXBd1528gRlTtnug/2KBcO9rliHRgLiDzGksqwXKN4ymyzSog\nwxpZUKl8upSsFXmPL0whGI8skCrmj1NX381sDNO7tKcT88tZ7JtAgH1cLLQg\nHNV/CzrD+CrZmObG3ojazJOWMJ4TqvlcUBy0q6mm4ajBQAkzG05IBYfEPTOw\nFT8zza0EUTQoJ10VY8Eim4XJ1HI4PcC5C3MLT9gyxaG3ECUmi7BF8alkyYDX\n/80quyTvhWuWUAX++kr3XxS34QJwZqe3c24niFCvYUWQ+y14QVb+uplKVAsP\nmRRN\r\n=0Car\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c22803ec93a76c661222622456cf6f5c5a17459f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.671d72d95.0","@material/base":"10.0.0-canary.671d72d95.0","@material/shape":"10.0.0-canary.671d72d95.0","@material/theme":"10.0.0-canary.671d72d95.0","@material/ripple":"10.0.0-canary.671d72d95.0","@material/animation":"10.0.0-canary.671d72d95.0","@material/elevation":"10.0.0-canary.671d72d95.0","@material/typography":"10.0.0-canary.671d72d95.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.671d72d95.0_1609359176142_0.96715094010895","host":"s3://npm-registry-packages"}},"10.0.0-canary.b4f5a1c9e.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.b4f5a1c9e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.b4f5a1c9e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fbe5fd75e2306799b6471e2ae6ef60bda5f7f171","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.b4f5a1c9e.0.tgz","fileCount":45,"integrity":"sha512-I5fw5+6GFc6uj3WeS10FL0q3/HywX6VsVk/84wztXP9gsTb3wRlGdAvFxnQh79160VsZpq3XfRun+4bndR5WhQ==","signatures":[{"sig":"MEYCIQD3LIH/wyqGUmxJx40ycpKk4HCpgoA/8T1Mr0baBXLOEwIhAMhnkfGaVB4GtQQOf58pWhFlK3/uI2zARH513EaaJzTA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf7PVsCRA9TVsSAnZWagAAwCYP+QFCoDumArPFN/qmf2yI\nk2mcwNWJC4VDhkwgNqwx4lDA74ncDc1Omn6+esulQdSdgaiIxn7CwNv4RcCJ\nrzRciL2cFybHnGltbu7BaysMb869j/nuNQ44mDBzS179QOO4TZheORmVOswt\n4LDJhEdM8txFzuCOzghHwb805h/PvIb9jvDE76/ooynCaPadWy7xlp0ZgU91\nuD5lRPooDjJmdZdicKIfcPGd/yXJ+Wnd4WxmaV6teoY12X76CzsvA5u0966t\nUhLGRzugWnHSfDnHsXPdNDDS9GzbyB5PnLgNpKWa9JcH4bts/ITs7npFZ4X2\n6Ts7/ckcnWQkp1eXOJM2cfq+u1bYSgi7T8IIeGMNXiJkzJrlfXSsuvwp8min\nDhhGdANnktUyYY/8QIUsdjf/9bO+g8yYnbMwoCku0Ryjrqb1n2SyJ/XIAVZd\nB1VFBhaE85iqhqr+riu4SJPR/+hkzDSJpFdLhb4ai9K+zu4QhZrZeFfUgv/1\n21gS0+laYms5fnNKJwav/HrwGobhEMmfTAsNjj5OEPOCUQPUVzbines2HmD9\nQEh9Xd2eYE2spHVA4idzTpffnhzN0rC9OkA+Z5U+pTM8ollpn4V8CmY3zahU\n0PANG64zWjOzR2YbFMxXyQash0XHYX9Zoc0sr/5hCLCi6TsoCdPfuS9GwCm5\n2PrK\r\n=NdvG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1db47387aa8e99022677270066e7cba1da23732d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.b4f5a1c9e.0","@material/base":"10.0.0-canary.b4f5a1c9e.0","@material/shape":"10.0.0-canary.b4f5a1c9e.0","@material/theme":"10.0.0-canary.b4f5a1c9e.0","@material/ripple":"10.0.0-canary.b4f5a1c9e.0","@material/animation":"10.0.0-canary.b4f5a1c9e.0","@material/elevation":"10.0.0-canary.b4f5a1c9e.0","@material/typography":"10.0.0-canary.b4f5a1c9e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.b4f5a1c9e.0_1609364843716_0.6269045157868522","host":"s3://npm-registry-packages"}},"10.0.0-canary.a94bd8deb.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.a94bd8deb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.a94bd8deb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9bda14f37e1304449c75ce7c50451f33904822c6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.a94bd8deb.0.tgz","fileCount":45,"integrity":"sha512-IwZJ/Oc+LEuN3MUMG6cYu8ngLZHY0rtHXf3sryoMNPCxTlerIFOWJMrdbY7tBON5e2kLTZktEJ3TZ+M7lCSm0w==","signatures":[{"sig":"MEUCIFYAhXreLksCSdHX4TVDQEHtRrN2hdprvnL69fZuhJThAiEAyhLIFpk9fYW1epYCkC5ymG4dIk3FHz+DNzpUi7Eokf0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf7PmdCRA9TVsSAnZWagAAgb0P/1u1KTcDNJJcUWbpP/d5\n2X9S79tBvUoQEebsEzqBf46Ew3YcTrDeq+g06kTnIYm8xSVYy42A1VHXUUU7\nkYuYY8gT3Tk74sfndhRVEuFsmmcN/NstsHbygIMIi6w1kzqUG592EC6TxS/J\nGc8rrO8gTbImT2V3etbvH6LKQovFR4hTnF0VLV7Rz/Xpzg2nkKTNw+/DrKZN\nuMGSclXDyc/JiIZFk5p28K9u6SioYJKCHocxkphtnk5HLgEm34R5OezLHeNY\nw6ujI+XrcKYYPXU8nxldtUl0Ugu8bD5pgSf6Np7fDXu04LS77iKjrZX/ONM5\nXhn+Zj1UinhV2ZFsumKLpAulKCWdt7JPiUXAITp4cMnmLcd3VqTb4+xJXiLx\nIJvEgEa4G+W7ZxSs5vvCoe7D+xymx5NHyAMnaWQaLmEAgsRHwbN3NTifkf7z\nUzyOpQP96o9K0lIdGiDr6oWTsnGBrICjdzOhrq1J/UZqTNAnJI8n10IU4Lww\nif2vNYfhd26OMrEy06QtJE5N9kzRB+bC5jzoNBW6cIU/Q5pIlidhemIZDtU5\noEzCpumpfbJKm+RIdtZNHCWnmQvcBcm2wrI1sjeWO6nT2A6SkgVM9ZdwvWWO\nBnSxuzIuFnaUzRtPsm24ivTbji9NeII4dJHUUW5193Txr5j+Q4DeKzrL+mxz\nMnY0\r\n=KmBd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"12c943490c76f911dda3861f863c68d7abf77ce5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.a94bd8deb.0","@material/base":"10.0.0-canary.a94bd8deb.0","@material/shape":"10.0.0-canary.a94bd8deb.0","@material/theme":"10.0.0-canary.a94bd8deb.0","@material/ripple":"10.0.0-canary.a94bd8deb.0","@material/animation":"10.0.0-canary.a94bd8deb.0","@material/elevation":"10.0.0-canary.a94bd8deb.0","@material/typography":"10.0.0-canary.a94bd8deb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.a94bd8deb.0_1609365917155_0.8135481920668357","host":"s3://npm-registry-packages"}},"10.0.0-canary.5d128511b.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.5d128511b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.5d128511b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"189973182cdd3d048cbb06d1ce712d646528d37d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.5d128511b.0.tgz","fileCount":45,"integrity":"sha512-4F4h+gk9F60czS/TP7jb8DrEm8WPDxn56gUivVQ126yc8hhJjKTy7grCTtqkPasE0w8g1UAbnlgSj0GG7LwYoQ==","signatures":[{"sig":"MEYCIQDeQDEJIhddyvXJLw98QvjyYjJwG4WORhQd03X3q1EhlQIhAOCFSNSanVtg6bCiP4vEYdzjFVt8d1VqbryxwWZUSYjW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf7PrfCRA9TVsSAnZWagAAtHUQAIogQntmfFsxwwlW9Z0y\nFdIfpML5pDHpcb5uBe2SCIHa1qxscyFQDbYVeeqbSEnDPM5gAWqoWhzpFM4t\nQ4Kqne5s6/fc2cjS+HvYcWGuCDHKByi1e3sK8FYPDwOsStMzDWVg182vvtd8\nTdJczn8zljXfXCSqMJtNpvZF727WIt1MMd3Y5E+XlmHWNf8l/FaSzOeWqKK8\nBC25RB8mzaBnbK11km91xb32PyPdUh0st87K90Is8m6wGQIbWAgi+C+0jOju\n2jn/op4Hq059aSRErDYa3VjcQuVTOWPRuhVyWBuN3aWH3UrE/scBGAXzXQ7y\nSMdVDIOUe7+8lwkkceUL7fR7GZ/nRJkmpkH/GkoNyNv/PxcgioSHRRtEYl/L\n8zCAw86G888aNLsdnquAZ3vPFIdC6zarah+np/+P3hxZwus0eOgSMkkVt+0i\nHRSAlzixpfjfEPaqJQRL8m6QRZ4bdddqyfnrq84cdoBQA1uI2ZJoC3pyKr6K\nTOdrmvaIDMOqCeQzz3zc/gsxcRheNmBV352FdxyxzxJOQBkgsfeH9ZNiLU0S\nc062Ru1OGUWlQyYIsnF4yiVYVyAfS38ZuRHp/1Uin+Kn27O2GL0BJumWTrED\n0SCICHhqiQBanYIBq9MWOz1AO7LE8uY7kkmie5yfVF/cQnTmsU9mNRm1xoQC\nk8DM\r\n=TN+t\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"05d17b41cbad4a8aebac080f082633a26be09a3c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.5d128511b.0","@material/base":"10.0.0-canary.5d128511b.0","@material/shape":"10.0.0-canary.5d128511b.0","@material/theme":"10.0.0-canary.5d128511b.0","@material/ripple":"10.0.0-canary.5d128511b.0","@material/animation":"10.0.0-canary.5d128511b.0","@material/elevation":"10.0.0-canary.5d128511b.0","@material/typography":"10.0.0-canary.5d128511b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.5d128511b.0_1609366239199_0.6816841199172492","host":"s3://npm-registry-packages"}},"10.0.0-canary.365c69360.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.365c69360.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.365c69360.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3208fcc92f1016eb85d86158feed80fc18f3e018","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.365c69360.0.tgz","fileCount":45,"integrity":"sha512-cLKIypQlKGkYhxM+wykNGRzlDbnfNahKyYbAG7s9y07deumuVtJ2rW5SMWVuooMoAppOaVUHuL5rEpPpnL5iaQ==","signatures":[{"sig":"MEUCIQCHKcf99tDw7yRm4k57rM6WCY2UBNAYq6jWkIAPsjE3iwIgc0OtCb8bMyc3Tad8yYTp337qe3AmZFr6foDqM9gyrx0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9KagCRA9TVsSAnZWagAAoz8P/jAm5y8hwdZY2JJrLHmS\nY/oesYQ9hYbopkKVNHS596rSTHOUS5120EZDHeejqwiw0AwUKBHp3vZ93pDA\n9PPthS0VzkxG318elkAOJ1112Q0nbNwz+an0SZ7qF/DelXEvqS3qSS4KjUX0\nN0zmSDw2VSn3Gb3zmeUBX4hFm5M63oIPjF9MQ4An4a3Eq9d086uSXtL3FLBz\nR6IX31HfKr/DCeoTRnagDELgAh1XHJnHoh3LNWuUgfJn2U7Nft/YFAPVG3LN\nv4gLVgBOTK0/2tbbeiJCeYvIHsYl4p5I7jjz2gfyzmf/sJkUNXTuqf7FGE1o\nHur2ljSRw/Czt0X6h7TK6qHESdLwTVLOwgx0h7JeB++J6Bwzq3LgT2/2c720\nOe8KB1aT2aMQAFeFMgyk9nEr/cnF+FPPv/FMuikx8OJiERZFpm+qPsDOMrQo\n82ciNL5Gw8atIJwuRnzhV0wVltZaZD31vXJMYP9uizcUTuTCoDcKfZQ4uUPb\nYWHDw3lNwOBsWELTOZV1Y5qUiVtkhlCMsgqltDjKvlIyPNCwdPo7fHbfk/Sv\nMBBmAodJY21nX+k8y0dU95EFpzv7cpvTXxQhapXFke7n9FP9hP/8ip1WyaGE\n9AmTA89hRsjyJuoFiTf3jiYEionhf0wSmUbPANIMqXnKTqDEAHzhqeEIVUUN\n8CDv\r\n=QCCH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0b060c30e2974c71db5d5ed87e3ab7918656edeb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.365c69360.0","@material/base":"10.0.0-canary.365c69360.0","@material/shape":"10.0.0-canary.365c69360.0","@material/theme":"10.0.0-canary.365c69360.0","@material/ripple":"10.0.0-canary.365c69360.0","@material/animation":"10.0.0-canary.365c69360.0","@material/elevation":"10.0.0-canary.365c69360.0","@material/typography":"10.0.0-canary.365c69360.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.365c69360.0_1609868960330_0.8901054720983963","host":"s3://npm-registry-packages"}},"10.0.0-canary.700a8261a.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.700a8261a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.700a8261a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f14a77646473a1f0eb9fe1fa6c06acf2391e7cf8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.700a8261a.0.tgz","fileCount":45,"integrity":"sha512-icV7WbqQ6jqAphID6Io3i6lRib0W3EXapkuTiPGiLD9xVANfc330mIR5SnUUGsCPUBx9ywZwrwkXoZNVS87PrQ==","signatures":[{"sig":"MEYCIQCAi9LvDhIhN9RvJFvlbBX27sM9woBwyvLSk1raBLR21gIhAKTlHX9nCYqhfrdKO1slzr/B6h3/cOUfnUmj7ZTzero3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9NO1CRA9TVsSAnZWagAAmm8P/2R5MNu+58TxlKoalPsX\nyjs/Ei8fBlf1p561gDcMoRe9n7u5AGyNl0qlKcxXpN3ubdOdDGmrUcnm9S4f\n2+yImRWnu67IK3aeurVZbHkRlOkL9e3tSWlevREkNIC/9cfGpIQ1gK73Vy5M\nBX3Z9QNGo90Fu+y68o+5o3+ve/VbAxGIwzSj9j7iPBHFXWAIxxJXKnQ4pFdU\nflbnuum19AQK1h4cIhrwtHUXmTQjNSszzc3tpDwOIKZtYqvMNRwHNt+iAUu2\nPzl7EYfzWlsUIUER0KjOyk/snlz3VunLfKX5mDmTx22PdTJBqqcF+6WJkpet\nyWcZqx45++Ux8rfF6dvRJ3eisE3bqevVPtwC7lvmDHFiTNJVjmmD1m3amRcC\nzC8i8DLJKnix1IAgfD/Zzx2j7TK2vzzGYOgqhW+B93Ei68up6Y75jDvxbD1J\n1yPawEtowk5NwFcbCggZ/LGykDsFKYjs05wSwtgv17DPJa5A+GFnKMd38dUn\nr4hHjOzBfzkYRbl4owwe5rvQTSsjTKhqTaQucWuPwfulGXqceNnA232Dlf+d\n1gGBXei4Tn0p/Q8XDWVgc6V5PveOf6NfIhJqcVUrTcZcgaDn8s5k1ih2TbGb\nm5qkQhMnZi07nhqWb8HCScf95aJemc/tRHAv9cYVstIsQTIGOBDlJr/avQxW\nRwtD\r\n=wDt7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0e9aee4feea82b83f34c723b52aac42fda1cdbd2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.700a8261a.0","@material/base":"10.0.0-canary.700a8261a.0","@material/shape":"10.0.0-canary.700a8261a.0","@material/theme":"10.0.0-canary.700a8261a.0","@material/ripple":"10.0.0-canary.700a8261a.0","@material/animation":"10.0.0-canary.700a8261a.0","@material/elevation":"10.0.0-canary.700a8261a.0","@material/typography":"10.0.0-canary.700a8261a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.700a8261a.0_1609880500679_0.3100101601493759","host":"s3://npm-registry-packages"}},"10.0.0-canary.766981c15.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.766981c15.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.766981c15.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8bd6eb41a1e18da376fa4c030012a563d5b89e0f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.766981c15.0.tgz","fileCount":45,"integrity":"sha512-ForEUZLz7G3NQrv/ZY8jYlLH4M6JGE17ao/whz4ZXlNkRYzyA+FQevdpqUO8/h/wOdmuQ+9IPV9UO9a/JvAZQg==","signatures":[{"sig":"MEYCIQDrADH23B4pZ/BVXBQFJEsa+6h711VThKOKA09vnFxhLQIhAMIvUST7GDjvkX1eLoFcoc7/fi3TxRPrkQcRdfvXcrt7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9OsPCRA9TVsSAnZWagAAYKUP/ivVs0tK9T2u/tKtl1nw\n/FghQvzo1UjDTTFn3+18p3p+ko2UW5nWUA3cNnMnM4A4D+E8JkqDlqib5pXb\nPvMcZ7Sy38gK9nv3bSzu5oe5ze4O5vE1nTcj7vFm6u0VG2Smw4S4fBSK4jYr\njrQfFrlNCWVORHqPSgpNwGPGgrK9WdENQl4ArAtKFyGgb3g7nz+kfM3pYNFj\nRM7e9fmz8Svy5yikK2DMqn5uVyRmYaW16dKlmQYdQqlIyKOzf5RWtX6kJP6J\naFaSXo9pZODOFXkd6DgkE6x52balr/bzrv3SAFRm5kLLlTgPdlQsz78mTbHQ\nCqcHFPboYw/H2J4eOrgRtXriU6DuS8PAjZ0mXZ+di+TrS0qGwGN9HA6YTfi6\nfUee9VBl1lBDVOa+v72gjLYtH0xpnoSlEnUydwYY88gaG/ccgDpZygNXzpEP\nl+q9StPnZBSAWm9yodor9DauphkWzP0j4VijckH6R0a/c23envjyAsgKXS1Y\niIMC3MuWN1waahuuD7d4VV8QFnTEdzuz3UchX66pPkHrbDfEKQCekd9rA7Er\n8xCUscirHDGQR5qaYtN2Lo2KyhSh7oBGULw/d55X2cFdf4sWH3eF3WzLAnvh\nHfS1HGwY1QA8tabJU5zWTqyeki4mt60QUupEez+Tnrdivg5SMSDLqmmcIIHs\n8t91\r\n=M0qm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"40a13adf47648f48d6dfb1daac9ded2f7f0bd442","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.766981c15.0","@material/base":"10.0.0-canary.766981c15.0","@material/shape":"10.0.0-canary.766981c15.0","@material/theme":"10.0.0-canary.766981c15.0","@material/ripple":"10.0.0-canary.766981c15.0","@material/animation":"10.0.0-canary.766981c15.0","@material/elevation":"10.0.0-canary.766981c15.0","@material/typography":"10.0.0-canary.766981c15.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.766981c15.0_1609886479081_0.06194793292669476","host":"s3://npm-registry-packages"}},"10.0.0-canary.b28c576d9.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.b28c576d9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.b28c576d9.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"772b8a237676c88d9ec2a6a6ce6d9624e0ec757e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.b28c576d9.0.tgz","fileCount":45,"integrity":"sha512-CLFVp4LIkMwKjjrDKrc2zIhgPzFVABhrbHIVT2ZJLSZ04OZubIWV4AtRgTg+NPNs4m1Rayb9RLVbCSAmTQQnKw==","signatures":[{"sig":"MEUCIQCGQVB8VW6M1tsmOxO7Idj2HXGmFc/laa1weES6bH9tkAIgDZo0Qs7LEplKkJpOJL6KlQ6dIkJkeasxS/KNr1LQ5eY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9O1TCRA9TVsSAnZWagAALLQQAIcqLE2cPc624tlesf2H\nAhPK/SmIvRw+mrmq5w6cPQwrSbIadUL12Hdb+kIedZQsztI5Y3tdJ6w0RB8X\nv6EQxQaui8gTCfrODj2GrPmX4DYQ+AYmH2Zv/+IQK819cb6T8Y847wKrpipH\n/ZmQQKLG3gmyxhrvnZsRenm/lOtmWQ2ErJZNAi/5nRL7uZvVrezcn5msDh/0\nQkdbS8FIeZ0vijqpzq1sxuqDZ+uO06Uv+bJ5ZKK8GWk0UL61Z1cPLX+l4ssz\nhNkILvvRJ0bgZzDMkfgQm4KIbtB/zJLZ9CwNJiDrPgbO1gUrRxubs3lDqhPe\nsU7jPb5hwgLuLv2n8A/Wy0SINf33DiS1zACZi1eRLjgEHIilBC3X472RlDD+\nHcOGMG702KncoyjQvcUTxuHcgQhMm2123eOxOeNAqyf0CZ6tGSa+w7a4AObG\nK6xEtVNxLiZYBAf4jyZ1AMFjiAEq6z1PNbgZUOdpJ4fPTvoVjGGrfD+ZXGgP\nNPfKrSQvMFQWqCTxWGmUTFLwjiDAYBDpWGWR2114JI3W/R8nhs5pJ33sSQw6\nu+KYEYkcjZ+ikq9JrujlgMi3hPNH0wTaBbCi7xFTUtUMaXNdkhjg6TdtXxCj\nm3kmgdNhiHkAl5DyTfPoUNFTwxjrA9n7a2TmroDWxnp2oqTTD/+HteY3WhZK\nUt7n\r\n=DQ94\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f11c5039e5e02253cd6e3eaebf7ee15629f3c182","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.b28c576d9.0","@material/base":"10.0.0-canary.b28c576d9.0","@material/shape":"10.0.0-canary.b28c576d9.0","@material/theme":"10.0.0-canary.b28c576d9.0","@material/ripple":"10.0.0-canary.b28c576d9.0","@material/animation":"10.0.0-canary.b28c576d9.0","@material/elevation":"10.0.0-canary.b28c576d9.0","@material/typography":"10.0.0-canary.b28c576d9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.b28c576d9.0_1609887058576_0.781364320308404","host":"s3://npm-registry-packages"}},"10.0.0-canary.968735356.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.968735356.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.968735356.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e1437db6050fd20eab9a01eb6978d6f9c29e63a0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.968735356.0.tgz","fileCount":45,"integrity":"sha512-4gmlzr/GW9Di9rMWZMHlmb+5NwuecYwvJOjNY+GhIWVmVghOxFWOwCMlPgiDHhcqBxI7BJ8KyMopxWT8wJ4oDw==","signatures":[{"sig":"MEUCIQCa4M7fJqCgRQRRulATCYJJgAn7Bbg3luZgKLj9UvO3RAIgMOu9rW4ZSyUP2mbxObMlYOWL7zyYCA5mf9CZFrKLr2w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9dykCRA9TVsSAnZWagAATv0P/AtWKS7RIviPH4AhhmY5\nH6fCFRBsNRhobOo3em1Y68qTq3tTOjGi+v0vQeXDIHnCh7HG/29SUMiO8B8e\n1k2PZud21PsyIPY/TJJLd0KXcUiHFMe9hJ72x3nyDnuo9rA9V2DTo5/2lP28\nYkuWGOTKKw35EVDar+za9ZvDmbmq9cWsYLvXpTEDMIrqbmlvQwjYEQ5Hd56Q\n/m+s2gILVMXp/QATqgWXLzdLxrzjpqj3ozqlhDSCwOEKQmTLywvwptT+tFRh\njxGYZ7gXVGfXEfBWtXfNpp73ik7hNjGZVcy9v53KLNsGcdhCrILG2oovD53j\nL/rGrMb3ultOF5dwd6d5pd6thJ2DhaT0umS9uPNy7M86CqdfXKTlJqBfdjkG\nrfmhlcLe03MJwbw4uHdqH+JBNpR4fzUpIUcy6pk4FmLEfxH0B6BQixTWs1TJ\nWQwGjphwo5cHyRQKSeEdphT6fWZJ0wIfcBB2NMFFVe+WUbOCnQ4xQeU0HKP1\nkMAuhVZ6zyuzzC0YlV3ATo1hlkmzIt5NsWTg7GwWCyU0de9bG3+xzX4OIElj\nBjnN7p5mXyc7eKb4vkDnGTo9qo8IF7QZfLiZTII6taJobK7KO/SMUyoFwfDP\n4bAoykFi1Mknbes9F768Ydx0JaunzHWXKa8N2VFs/wzSIO9sTXJ7uj/6BfVa\nOLYo\r\n=JUD8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"016bf1732e983523c8ba8007681b058735467018","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.968735356.0","@material/base":"10.0.0-canary.968735356.0","@material/shape":"10.0.0-canary.968735356.0","@material/theme":"10.0.0-canary.968735356.0","@material/ripple":"10.0.0-canary.968735356.0","@material/animation":"10.0.0-canary.968735356.0","@material/elevation":"10.0.0-canary.968735356.0","@material/typography":"10.0.0-canary.968735356.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.968735356.0_1609948324010_0.00013956059051123404","host":"s3://npm-registry-packages"}},"10.0.0-canary.c5e18b020.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.c5e18b020.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.c5e18b020.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"863509601526dfa10804f767f8e6515174ae2e35","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.c5e18b020.0.tgz","fileCount":45,"integrity":"sha512-u7kCJ2E4K6vXvea6JkDA+0QHmc0M2gTCR37PHtIFK6d2psqSl/BM0RD86j73UW9rMEJFuP6ZpF8cbpCw5yJHOw==","signatures":[{"sig":"MEUCIER01DFV663HMmT/bqrZOSzK6Idg6OjQkl32AdJCt5/NAiEA6KI/sARo9RmR81VMNY1JfgOxyX5Eb8XYTW/Hw2Zt8SQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9hNNCRA9TVsSAnZWagAABIMP/0GTm/MlsLhKXc5vBuMl\njVQGuIc2qdYO/dnVsT8geEMkTZ/uSK5fhIjm+S/jRHyfGU/OWAH0Q9L39wS+\ne9CvxqjbCz/DiKk5fJitQatlDsW5MtlPEQFzeokt2fRYq0OtSIxHm6IgN5DF\nUDR24GvKQouWk/RRgX/dbGSiBBJPrIqeYa99oYdapa3Ae63BWT2I+tk7MQjQ\npmEkniSVHtAQ400FY4kaEKxHK3ppIgYQMmvr2halnS7+ZbDNI7jJxTj8PB//\n5YtHneA/wHOKA9C5i8uWAAwFmG9mhBnf174uLXxQd73RtY3JmNvBbsNjqz9o\n+0pD4/jghiejBYo2XZS7jZnvNNVfP7KK5oChRMC59oOYBiZoUbcp8TjSuIWi\nHl+daoj9ZDbbR/+EWWPBVuo7/CH1n3Tr7cTISrtcMhlCFV7+jAxzttyAh2ba\nq2x0B4ULS7wDNeD/Uahu6vOmFpSSErVbdmzU8CjOAGpsnqFwe3ys+az38vT6\n0J4winH1Avx32a2CEt06xx27Gssd8LEN6q4w6gIlkpRuA7cFGrWleBpTTRkA\nHkigMAcpOY9h+n5VvosS6dosLHrRAy3FqI41ffyMDEK0a5K39/NEw3sEo440\neRJaqE/G1zQn5fgzBsvfSnpBFm1Ou/eAFmeHIbltdyQ3i/jDThNCj8JvJkuz\ng6CL\r\n=d62p\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"16a60c2c89ea18fb88971304d4491f612734e932","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.c5e18b020.0","@material/base":"10.0.0-canary.c5e18b020.0","@material/shape":"10.0.0-canary.c5e18b020.0","@material/theme":"10.0.0-canary.c5e18b020.0","@material/ripple":"10.0.0-canary.c5e18b020.0","@material/animation":"10.0.0-canary.c5e18b020.0","@material/elevation":"10.0.0-canary.c5e18b020.0","@material/typography":"10.0.0-canary.c5e18b020.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.c5e18b020.0_1609962317090_0.43772261340166896","host":"s3://npm-registry-packages"}},"10.0.0-canary.bcff8a66a.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.bcff8a66a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.bcff8a66a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"aa4500bd0f73ddb4d72104fb4b468da14838ebbe","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.bcff8a66a.0.tgz","fileCount":45,"integrity":"sha512-VexEU8ITy0n2QvcNkjAHVXEwWA1uUeRqif8PBmSesJ6U3lYK+9cuzw2RF++eXTUceTHidIJ4cOl0rjCmsSmDEQ==","signatures":[{"sig":"MEYCIQCtjkAdpBkkhdNBSmkqiUS8XQPegcu+ZKxBMIJ/9Agc4gIhAO5Eo9tB0PvL06BNlqEIbbotIf2jNwe9XjjqxK3AmEjA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9h0yCRA9TVsSAnZWagAAJzsQAI4hiiqdh8xFkAnEnl0J\ndrvyGFYlFDHBI6qFbqH1J1aFLOTKXbd9PSJvFjv3A3MfQsPGP757QHR1xHAB\n7ojGHz7RqOz35oy259E2JRq+eJYwVJd8yuwFUjUKb1zdkzUjIFClLgVadYtG\nbjJG1pMyt/skK1NjGUQV0glFVl5fJfIMGSV9il1Qq0EpFwI6ckvcM6yCnE5j\ncimmiW3fM3U2XT/R9tALaENqpioVRcTsJAAQkkLVnDEZ59z1qbQsi0xBUenz\ntEVgRp2/BgTKtyB6V3nxPLuhLr7XlwBe2PBpdD6A2bCoZeABY/Sgz18c2Uud\ncFfx5FILVRrlAAumrl6sT9vMQO8GDqor/yNzeYXCgq1yuDckfrlYMEa/Rgp4\nB7SExcHr57mcC6F6dk0UOd0uHvYDee9+eOcqnzG2Elc9SJYc3E+g9XvUcBJ6\naW3v7Z5g4KdeOZqv4TWHUJXks8r06uVn56dCC2/wOyOmIYJRQhy5pbgez42d\n6ziMRX5mG+CA/1Uw0erAc+BplFx1/VvXx+wFjVe04SpRRj9gNUWhkfnUHu0l\nUP2g+Hgy56GOPzmcoLcN3br8ZsS2QjfjD01Gn/7tJ1zcODh3kXx/0V5+5jZQ\nkqWGP2WddCuqsNiIPGPN6qHiPOi1CTal12TZOfygSSnXq2lCKqaFNElrtmuE\nEwM7\r\n=5DTf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"81af087ae7601c8b819dbada709de8d76ddab960","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.bcff8a66a.0","@material/base":"10.0.0-canary.bcff8a66a.0","@material/shape":"10.0.0-canary.bcff8a66a.0","@material/theme":"10.0.0-canary.bcff8a66a.0","@material/ripple":"10.0.0-canary.bcff8a66a.0","@material/animation":"10.0.0-canary.bcff8a66a.0","@material/elevation":"10.0.0-canary.bcff8a66a.0","@material/typography":"10.0.0-canary.bcff8a66a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.bcff8a66a.0_1609964849434_0.5198041356675775","host":"s3://npm-registry-packages"}},"10.0.0-canary.79328c9ff.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.79328c9ff.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.79328c9ff.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e91107a9cd39111f8b84a89850b9db97c864ea55","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.79328c9ff.0.tgz","fileCount":45,"integrity":"sha512-Zt8mQKIlUTVanNxogF/HVwmwXZAvncMc5vlw1OZjFv2QUdDehO22x0SfxWGcDsKQdFuIdhb7XQls8jlVUu22zA==","signatures":[{"sig":"MEUCIQDyO+1pE5Yhl9GGiHnbgwzTqGcBJSBC3FqEPa8Y/uZymQIgLJYtxDMXl9PAWTtMuV5xeBEuGrWLE3vlXK0FUofwjco=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9nNkCRA9TVsSAnZWagAAfvEP/2NC0GjTD7aqWdoi1LbM\nXwKe134cp06a7e87TOo6L3tmnxa8xYLCXyZGwvWvEzGhGBdPxKR1ruM4p1zP\n4wH1i1rLRDEnPCl5BXXolo37rBpF8Sunev01qbuHduds1Pbly+lN7VxfRQoD\nWl82gJzrhN1KRAQWGSbxaPPxWAOBMKXnDF5sgh7Otc5OcDAui3DmAwEFWjNy\n1n2hbYERGM4NioFoQuC2UcZwQRr5lv9LZ831ISsT44sXUFxSyGgTyAQ3IX45\nyhW3KkcAZH01c9rbzb5y+Vf+Pz816bczBPEFPY4avQ5ybL6650rxNjLDkayI\nAG0EUey165kwIEtX3KGaa1tqSBF4U0jwAAUzhwpoBx91uL/kHlm0z+sTDV0u\ny18Gj5hRVQgyR6iGA1yk3r+b0mB3/4Dxd2K2/8Vw4dwdEjCmGEoj25C/5ATn\ngT6w9OHnrNPVIa+9opEPv1NgUkbvEF1VtD6T4FXSUKEClse/RJv9MY4exIZs\nfss6CnfEJBWRrz+qk6QNs0TEUcl7DqO7hNEqqVFiay3lIHgm22bQOTBA3xmd\nkIoEzYB1+n3VCljP7SUOeeSdjoIsWv8iZvpEWO8YTgZ7MOgCYJpaFe/zdHN1\nXTKlH+gpxFvsSfKVWNjmfWTUFKpGU4lVsEeoF3TOlByzK+ILBRAwfQpW4iQO\n63zc\r\n=TtMn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"15dd1d7d9065f275f9f9779094b959944d33197a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.79328c9ff.0","@material/base":"10.0.0-canary.79328c9ff.0","@material/shape":"10.0.0-canary.79328c9ff.0","@material/theme":"10.0.0-canary.79328c9ff.0","@material/ripple":"10.0.0-canary.79328c9ff.0","@material/animation":"10.0.0-canary.79328c9ff.0","@material/elevation":"10.0.0-canary.79328c9ff.0","@material/typography":"10.0.0-canary.79328c9ff.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.79328c9ff.0_1609986915606_0.6025117252734045","host":"s3://npm-registry-packages"}},"10.0.0-canary.121e1f303.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.121e1f303.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.121e1f303.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"49c4e8bd6800c91f7d01a9b0a5ce62c0e2665363","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.121e1f303.0.tgz","fileCount":45,"integrity":"sha512-Dhm8vt/S0N6RAZD4JA6RMAN3m0OrRkqXFictuKMUgzypkWyazsedd/8pq+mMKJfxuKFzsHkc39Mj3yeIFVP+pw==","signatures":[{"sig":"MEUCIQCUULGC4fn8PqM1T6OiicMwJh/NJ6TR0lui/aANLeXWxgIgf4nDH6AW1DG4lUtF1ttd6Gb8PBld3HukZ8N7b6ODu1w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf95dUCRA9TVsSAnZWagAAzS4QAJQXiK7KtKwWJmWIh4Nu\no1uLo+PyKlgzYCttdzcmSUVDNsMgK0Ag2sWcAt7Jq8r/+Wd3reJbAhAh46iS\nl4x9l6Neoi2gyO7ApjPkf4g3Xk7bKjVHyRovRf6M1O6vnJKxAWLPuCVAef0X\nuRhR70iLdffHg3kFE5UB5O3Cvd7p3J5XRh2HW9EhOWRv4qeA4SUUR8wTcJ4P\niLZNXokPibkFB6WZhrmm6AZig0coUIWxRbWL628ooQtlmkxDPSO8q0shiGhE\nZd3UGsyflGOYzAWRXLUFDKle4dxghNqknl+f5AfXVGd/UypyQ1Nvr7UF+5Zh\nXyNq64YpPYGT2YMEayN+pQ54sfI9ddMGJwC7zdVIKRfhH/2k2DypeZbXcoUo\nI6NfSVcuulJqNvvBJarW/lVds+rRmwwGixiuFhc5bbkXesMZCf165LDGR585\nr33ngpEfi+zcd5JlcBpY1KPRVhzRGN553qXxebp6cLjG+McY2WtUgyursa6+\nqj7HXC3p+xZieFWitmyysP5whGVEYGUmW+8eK8M3ngF7Tpg0IxeYoA44VTHF\nHvyCqtSn4zSluTh0KAvbsHOnUiyBzYqsFbctDDPtiFH4U/Oos9VFlKNedMna\n8jQp1A35P1ETmSf8Uh/ZW4lTpcrNu35xJMSErraTN1u+pPZG4F2GrDsjONFk\nlNDq\r\n=jNjf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6ae814dae9eac40570f13ed9d7b821cceddf838f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.121e1f303.0","@material/base":"10.0.0-canary.121e1f303.0","@material/shape":"10.0.0-canary.121e1f303.0","@material/theme":"10.0.0-canary.121e1f303.0","@material/ripple":"10.0.0-canary.121e1f303.0","@material/animation":"10.0.0-canary.121e1f303.0","@material/elevation":"10.0.0-canary.121e1f303.0","@material/typography":"10.0.0-canary.121e1f303.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.121e1f303.0_1610061651948_0.7214709630858003","host":"s3://npm-registry-packages"}},"10.0.0-canary.abdd10065.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.abdd10065.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.abdd10065.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4a6e37f9e4464187112d5c55d179b86cc94f55cc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.abdd10065.0.tgz","fileCount":45,"integrity":"sha512-vT6YPCzak2Uk+Ioi4Dlqs1UuuP1gr153DwgDGIDpYnJQIm6P0jzbQeo36a1Nq0PZ5z5iF8p0H85LWZZJqmkuAg==","signatures":[{"sig":"MEUCIDV/fxuNV2pcldrXZ7qdM9bSNGlLqM448orrl2yDRWiRAiEA8JUSvb3DJDzn7KFzYAeTRXWuLcXgpJmTB9Yq5v6Qydg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+JvhCRA9TVsSAnZWagAASJsP/30kjDee7YRjCqGnCqFU\nl6IrA+Uzg4GlILdngh9EhvV0rSTWVkcaayKUZsl2kb6ML0Ic1NyA2iqLeM7P\nOkaS9MLmujBJrGhoPm68lcEV0WtM3z+7WE28RNj6zGSzUJL93HDWbwMJiJYr\nd9LSQv3pnwnZAoMntYwAjPz8NClwthp0BlULAN34W/TbonNVhOM5OraJH1rE\nin8kGRHa8DIjfqWuu4sd/oB51fUetF/mWQS3P2IPP1U25/Td/q2U8kWFLjrc\nutfr+oqx1lfmWiM5GYacXzU2cCTvfDi2VGAYfwqxqtwa24f8ZF4kNZB711Sm\n5SvRGpoqcZhD8Mr2EFX3WziJFuzPJe2kTYB/vxAFmC2ZifbiWUpqcUVK3Eq/\nSSGJ+cchBQ35RnCMGNTMuhH1672szZ9Tth8+cHLM1wlytqNUliVNGFQ5vkaD\nHVghHvzZryAaB4vYlqrS3Qt/97uTtXt5EwOsNvkAEelIw1z9NrwjTZqIRs8w\n/7EKPZvjxcm2TBqhw0Xo9yqQo8xpDMvOzdYfSd1hrX6UfxozVRXdstMC98Ml\nInoSQmmUcVq6abdMiFeCjDiRc2Dc366dOrm9ZGFo71Iv8ztpbDuhrwc23fRv\nTjiGveMoHJSYlLJ27HA9ZrUw3x2cnLstFhkjIHP8eSUPMr3cOooLHyUFF0T/\nEDA9\r\n=truR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bc8986a19721edfc6facb62cf839cd222de97d02","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.abdd10065.0","@material/base":"10.0.0-canary.abdd10065.0","@material/shape":"10.0.0-canary.abdd10065.0","@material/theme":"10.0.0-canary.abdd10065.0","@material/ripple":"10.0.0-canary.abdd10065.0","@material/animation":"10.0.0-canary.abdd10065.0","@material/elevation":"10.0.0-canary.abdd10065.0","@material/typography":"10.0.0-canary.abdd10065.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.abdd10065.0_1610128352454_0.6647132152451869","host":"s3://npm-registry-packages"}},"10.0.0-canary.089de519c.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.089de519c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.089de519c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d826e5a6bf732f3f75cc840b07a519159ab62f82","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.089de519c.0.tgz","fileCount":45,"integrity":"sha512-hgZo4MzVd8iqzQljVHNDaYU6jk1Alw8oF94IupdcIzHSeFuhx4u8wU/aT2p1WOjSFEPZIYw3c4lWBUgvhEbUCQ==","signatures":[{"sig":"MEQCIA2iHzWbq2+IgZnc2/hhQkdFhHFfxJ+U924BKcjFXjIaAiAVY4asqGT0PJEWzdoYWR5Th8ceN30gg+nHzBafdqjtgQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+NrvCRA9TVsSAnZWagAAQIwP/R/6i4Q78aUr/TsZLMvb\nnRSlGQAkDNJjxmQJ45zqcIg/Ny6ZM59qYaemePHUPfqkFasi7dRqLb/o3uUy\nCA8RRTYiwAYTJVGL0frG0UXT+ian3+ReHjB8YQQEudhFw3E7sz6n0VHe+oSe\noORj1wgquBb8Mv8r4y9Dj6Hmmp/Pl5jhUvGJCSaisOU6nrW5uC1Rq9n0Qpz0\n6viDJDMnBS6Mex+2wbPztK1EHNZw3QSbEz3I/mE40dSS4ie5xgrUuI1wXX+8\njQ3WNnB7bto9ycZeVSebKE76jipKzb7eZUvSRWhsOtbFO6AggzXKyLNfkeL8\n2yke0cu7sG9xLySbEVpy4R3gQ57hT1Pjtc+pdQM9qOHgg/vOd3LJILZ6Bk0a\nxCaTJAaWftbs70DDXCfuBKQruyLPHZrKNlYLKCGI6MdYHKwAp/BPEMYFZ/Cl\nQGfOIke22DUoM0fNAxE8oPeS0Zm33Zz/ua+sYmxU9ns5vprIGr6fLy8HcTwR\nRpk6Yk20zWU8HGrJwzypBTDiVtWqCJcuhAxtmWvP9iqukYGQ11r9gruRr6J8\np/UzZ73Ao8mHptjQBHM6Hk/lm3qOsMHOH4qMBBLRzEkbpVVrXDgwXWGnysDH\nVxRyfgX9jWIO+sQ2sd6Jcw0iIFHBLYcGYvYsHejjsl/esw28HKhQ3U+yhEmQ\nJ5tA\r\n=IYhz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6a64709b5be73a45401fe82d1e6d126d7312fd21","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.089de519c.0","@material/base":"10.0.0-canary.089de519c.0","@material/shape":"10.0.0-canary.089de519c.0","@material/theme":"10.0.0-canary.089de519c.0","@material/ripple":"10.0.0-canary.089de519c.0","@material/animation":"10.0.0-canary.089de519c.0","@material/elevation":"10.0.0-canary.089de519c.0","@material/typography":"10.0.0-canary.089de519c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.089de519c.0_1610144495302_0.6169355799514715","host":"s3://npm-registry-packages"}},"10.0.0-canary.163119837.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.163119837.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.163119837.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5d75d7001cf4bee806906abf6103b7067667f60f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.163119837.0.tgz","fileCount":45,"integrity":"sha512-6ppU7C3dDiJ2nSIpC0JRTJS3+H6dn6TLFofgumLU44qhRR7neDmwaL4/1SCEKTxiFexV6Z4NX5RRmbV3KxJQVw==","signatures":[{"sig":"MEYCIQCCIpqUfXefJYHusLn/nU9WlkWWuAVgY8nDuzxDN/qzhgIhANbfiUtG4KBPQCI74BP8XAoadaYcp4eXkaf+Q8AlJqat","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+O7OCRA9TVsSAnZWagAApZ4P/2pQJqvoVNOFXh28klts\nwDlvuN+Upr9+R7iXIq2f86TM3EFxNVgupkfEJyCEzgimba1QjmaN/kvWsvOG\nf5dQ9nOan3QuAZrIV4oLb/R9E65U7tnrSIYX8Al/7QxU9h2nQdOvxTUnIExu\naXWXOABLvT5oGyIyBG92Vz5hMH+oNxG09pkMGij5h+F7RWq0uv5gTOD1lnDX\nNAezmXUoFRuuOSM+ULEq5QF4LsaCBnWCwWSa2AYPn4ERHI3HbuOM8cX8L0Xd\nZApzg13qn6LJFmHayTMVbpgQZrlXxGVBJWkhvrCaIs/Bf2HOW89mgW0kDtWb\n4mT8U5Yg+4JjWLfmvY3W5brCH+mBzBvYwmHr3Ee96akCoE2GdfcXRlDDccGw\nzfSmBrXjV2fi3zEf167Vn8fmyEszLb6XqqTihLINtyrJwktBuTA3tNIwMMRW\nSEr6tNIWR2kYQnIP7PemAMgbR7Ttu8LBvb60p0rsxNTdaa9O91p2lWRwwvYR\nP4yRKR9jqMoHOv3x30v+kIpASBaa3R5M3xdd6nDqN9n/zNsJQJX5gk+o/2a0\nZHXMg6+28VsO9m4WD54tvoMEDQyWDqdt+fClNHEY/5RiNWI6OxoWHIXKr4Fe\nTiqkfONmbXHnxNRlnnBqQIjyMhMoIk06IB3VjlRPedIewfuOxKiy0y0/QCJZ\nAcaZ\r\n=jIJm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"86f8af57c151ec42ed920ac445544bc384ce0975","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.163119837.0","@material/base":"10.0.0-canary.163119837.0","@material/shape":"10.0.0-canary.163119837.0","@material/theme":"10.0.0-canary.163119837.0","@material/ripple":"10.0.0-canary.163119837.0","@material/animation":"10.0.0-canary.163119837.0","@material/elevation":"10.0.0-canary.163119837.0","@material/typography":"10.0.0-canary.163119837.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.163119837.0_1610149581816_0.5861829891012744","host":"s3://npm-registry-packages"}},"10.0.0-canary.b8a1a58e4.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.b8a1a58e4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.b8a1a58e4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d34eaf76a83763cb815692d7fdf6d6b04e0a01e7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.b8a1a58e4.0.tgz","fileCount":45,"integrity":"sha512-s7oAJD31X6gG3xbWGtE+jgmKhT5x6C8HoImtJfqP6JSUFoOnGV+JULzs6ZFB7aOvWrPUpUKwLtdtYEgZ9lRaQg==","signatures":[{"sig":"MEUCIQC/sd/F/LYhjzAuqAiicqoqKgE71C0EqnLfLi6p4FfUuAIgJRHGUMQbJOYP8z/j84nYM7VMBm6v6P+Xpz8GlPQT/XM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/Hv1CRA9TVsSAnZWagAALawQAKJ+28d4acI1lU6tzL9r\ngfEIBtLSGfjcD6ZU1fZ33NxssGQ+LFnDOXMkwBE3d7vufODNs+MM6s2d7Xci\ndM3tFA2Y4ZOipiDp317xv6Ix+1BqfwxI80mUDlXKCJduaa2P16jLi45DrVET\nIC25gYXkUPKw2laH6tdUrIL9gmMYaNRKzwU0X2a1MIo1b8XLrbkQgoUQlb3t\nauNn7fM0cHhnJdlFeNqqnCQs/y44MpwJ+wDjOofeCpEuleTzie+MckFeoGNO\nKF0bullXtEcifwVLo2VznUIPnjRTJGg/dw4vV4vPUeKAxVoz/46yGI3F46u4\nszzH30W2waXrotVqpzWol1LYhYD79STQ/01hbEw40yEILxOV2VQZyVqmRNen\nDQ/Ah48D7ZZyMUjgnexuNwB5ASv5yDKg2QuAXeaMtKNJVyN5xopWAUAnytHO\ndInzBYJWJ2aFJTcHIQLKtcjXv8Dku0C0CWXM4dyRMfYghMcZywqLvSViFD2q\nbXnU3iQ+xh6SJlHjHw4Pvx1lLkBJDISOTdXgHiH3wv3EsMHJMwFUyEcZLGgS\nVH1eR4fpq0NxdoCbzUqa3+f+qJX6JWL4dzKh0EdrR+BZ0ksCglPk5XVu8YEQ\nprFqk5uSom4vdH/0cVF9ZCj2V5Kb/ZS5/dG9569ew4MhVfi2jBMAigx3FxMK\nkfkG\r\n=JOvs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3b735aa03cc784b7346905168638eb6a486435b9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.b8a1a58e4.0","@material/base":"10.0.0-canary.b8a1a58e4.0","@material/shape":"10.0.0-canary.b8a1a58e4.0","@material/theme":"10.0.0-canary.b8a1a58e4.0","@material/ripple":"10.0.0-canary.b8a1a58e4.0","@material/animation":"10.0.0-canary.b8a1a58e4.0","@material/elevation":"10.0.0-canary.b8a1a58e4.0","@material/typography":"10.0.0-canary.b8a1a58e4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.b8a1a58e4.0_1610382324882_0.9585818475698398","host":"s3://npm-registry-packages"}},"10.0.0-canary.7584267ff.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.7584267ff.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.7584267ff.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"026abc55bf2c6d6b97f54beb1a2958609e5b6675","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.7584267ff.0.tgz","fileCount":45,"integrity":"sha512-XmE/YFN7+xCv7rM7jRkMv0xuzyDKn4I5AnUepGE/SWdYKPly1Rad6EanCnsdoOvoKqVlFU/qK/wYoSZMGWlB1w==","signatures":[{"sig":"MEQCIBhSbK28L0+Z7ArOBBoMdx/D+DZUN1YekFxfOINKwG4DAiBa6te6m/b4INVUk44DBduHrdlIGn84bUNgausv/GN7qQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/Pe2CRA9TVsSAnZWagAAgkUQAIlk5VlSX6lax3pKxMG0\nb81T/RRuc1nQ+XYr1YwAHro8w7kUccV7K718FlqCz7u+qUQpC06mlfuhIfdN\nLMJwytVOkY8P1ruRdfU4r0rvCc43oEWd7xn08xHsyYyz4KS6t67vFAYcfn/H\nja1YjYRF2fghTxcIxKfXaTMRRP47284qb/4K3h7DNGHyqq7WREagWmKEYFpq\nFQMKH17QyO1R349j5Er3BpS6cebfm60yMecUb1NDyvVt57elJFDC3IWKZuwV\nMfpNPXQ5faJePfal83zL1tLF4IM2YnjdkLHcgBzo3WA7o2tjjZXmGa3rGPz4\nrW1UlxQnq6Siy+jdLTVX0ZRmWUE7pxd+9TdRsSRFbyUhWr8APdk1OyI74Aqh\npd5lhJ/AZQ4j61U3+dYLRM1TsKL3uD2o2r8BifgTgV6Gjh86pz31us2ARDsb\n0omU3C7X2d2Qq0UIO5sHyQGg0qBqzDsYB3lbHPoQ7+srsyTFdIEFohRT+MFQ\n30zfU/6xOX3xVKuZvVmfaUwbhd57kON2hXjyeQrd0jgM4lIe2e3Ng57j+6Ko\n53sJLOGhVFE3Z3zknfjFBNGUWD2B182a9ZXWY6zupoaSlaq+cp3bkRQGG0Ee\nSWiXe8a6gn45xWlTRXPIBDAiJVMospe+/iznEy2f24PEIt4TwPYBcaGMS+S1\n6vs1\r\n=EMPI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"89cedd80674ac536aacf2762f084fd7d1640873f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.7584267ff.0","@material/base":"10.0.0-canary.7584267ff.0","@material/shape":"10.0.0-canary.7584267ff.0","@material/theme":"10.0.0-canary.7584267ff.0","@material/ripple":"10.0.0-canary.7584267ff.0","@material/animation":"10.0.0-canary.7584267ff.0","@material/elevation":"10.0.0-canary.7584267ff.0","@material/typography":"10.0.0-canary.7584267ff.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.7584267ff.0_1610414005798_0.5563267632281987","host":"s3://npm-registry-packages"}},"10.0.0-canary.251ac04c0.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.251ac04c0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.251ac04c0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a7486da880d70989b93d29941e03b536bddbcba1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.251ac04c0.0.tgz","fileCount":45,"integrity":"sha512-53OZCOYp8INVwKcyRsu0XUquTHO+x0ERBEa/HWZvAqL0eCTrR+cSLrr8uIwY9TrTw8iuvPwNpU1LHs63Q7CMCw==","signatures":[{"sig":"MEUCIGEoni8Ko6UMG5h2k+7KTZz/xF8BH8Z59TQLie65JrJCAiEAz9raIyX2NFJg5ZxJ61eqpr3Zmm15fRxwn9j9Tagihn0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/f7rCRA9TVsSAnZWagAAHWUP/3Rs8fRSvFcz9ipChqfm\n2hVFjtK7v3HLzL83EytTEts0D0x1MH1TRuO4F6P2/MHzpJ2pC3/hqgHBPi57\ntJvCpbXc0+YZYk7SjcXhRxpNBrdamQsjoIebTQ+4jtrQXLdJBERTxnkefNMM\n2fadN9DGE/XY90nVryP73Zb+30Ayzb6yCBKPVDk6nVCf/loHwRjf++6LwsDj\nuyLMbp0zskbHnkLni8XUSpHW7Gj42NQV1jdo6th0ugtWXcP2fQ4V0K7DKPEs\nJ7noUZsLIBZsxhWHylbZ7JOQXhJi2rtkrN3uwIbytPgywJSziPcPFz9hxhzi\n61PHdIAuPE9osShJbQESqb0e4wH/VzBNHmUSSJKI28KbW0txh0X0iKoj2jn7\nzNymoNKoffyJR5g1nQdOjayLrsxYZ34NpNbS/IRhEvAWoQ7fGRDw6D1onCCQ\nzlsRZwTMXNPfaYbJLKhdcUZ81+iXLwdSKPH+Z1dNVVDcN8UUqNEImD5IurRT\nvVYQV6EAuruXgZoj8lmTFnSHj4o7ET14gtU2R1PKHJCpRgR5BuFfIDRWD+lc\ne3fsRLLBEcqAsx+1viRjbWyjnPbvNx9SrtkcMW7lmom5QmumcS+86amguvPb\nLW5mSisq9SaVeFBOuA+6upnqK97k+8RJD1a9u3y38CHroH70tv712tuzLOgr\nzUoF\r\n=Yqo9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bacdc97357600156630f8321ac8a3a8746474194","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.251ac04c0.0","@material/base":"10.0.0-canary.251ac04c0.0","@material/shape":"10.0.0-canary.251ac04c0.0","@material/theme":"10.0.0-canary.251ac04c0.0","@material/ripple":"10.0.0-canary.251ac04c0.0","@material/animation":"10.0.0-canary.251ac04c0.0","@material/elevation":"10.0.0-canary.251ac04c0.0","@material/typography":"10.0.0-canary.251ac04c0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.251ac04c0.0_1610481385881_0.9240053754352824","host":"s3://npm-registry-packages"}},"10.0.0-canary.772cc1068.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.772cc1068.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.772cc1068.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6604911611628cfc1da8a6bc3454425bec815bae","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.772cc1068.0.tgz","fileCount":45,"integrity":"sha512-lX3Y/JTOhckxJ4EtWVLgnwzbukDX0mcHzeH3PPSBwwDvNfhoSTWHrqaI8DqoXB6x4tbqwenKVliMtaH9gf6Dkw==","signatures":[{"sig":"MEUCIQDTOJbcCPjSoZvVPxVIJRjW6QGxG3kjk097KlUMIF0J9wIgH0WniNLdUdktBbgJQJmggd0L8iFDmpMVkeMeVdSu5IY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/4tpCRA9TVsSAnZWagAA/FcP/177ZL8bhhpQoy0mVKrU\njcwyM9J9HVxeulqMNZbAFU7H1X/00lak0pTwD+5ssC1WujjIbNlG01zhFXEP\nvenohef6dCbL4lmkgbOUAliw881Psx6e8qpwDppEIXoBvc7QPQO+OogFdgAb\n9lPcTNT0purHf3R4M3l8L9ZdwLW3Y3XbwRpHEbqLER8UueFfacgRJMBfiDlR\nTuUGw69OeiaUv36RDCsp+mtrq5LWuYYFXRaQSGxtRrIBYukHOtsZd4o1uY4t\nOx8Wvqiun8iGio0acB9IDSvDFKdndtn3BiH+i/1Cqx2JWo8IDsUZj4d6rmLR\nBpUkuuBI/Dc8UrhLE8EOecR0I1TDEV9JBRuHWXQcnBphkjKZoVxtsmevrM0j\na1pNoWYLmDJZyBamzAmjExz1TlTA6aHuye8PjdrWL3B8YBt3aq59IM/cC3aE\nu78pcvOQgjfka9Yiz8GDs1nOvt5EHb9N9ogI6wj08LEe1kSV7KnGzKGJKVpb\nPGhL4mPQP37eAD9KCxipEcPuMv0NmTXy75ZDtEdb8F3WXZdcJJQn4CKn9Ngc\nFFKqwnjdhjLXRV97cCl7MSFJaxl1o+NyZiPHwHOgNcL2LSbMzqAqTem52JJS\nOYRbu9mAlUIuhPaSYRWeMeheMh5mBzvyulfR/eFPTlVgELZmmy7QbzCkhhU+\n/JaN\r\n=4RGM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e8dfb103b25351e76ae27e482ed4f13c4bf997c9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.772cc1068.0","@material/base":"10.0.0-canary.772cc1068.0","@material/shape":"10.0.0-canary.772cc1068.0","@material/theme":"10.0.0-canary.772cc1068.0","@material/ripple":"10.0.0-canary.772cc1068.0","@material/animation":"10.0.0-canary.772cc1068.0","@material/elevation":"10.0.0-canary.772cc1068.0","@material/typography":"10.0.0-canary.772cc1068.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.772cc1068.0_1610582889444_0.5056246076793247","host":"s3://npm-registry-packages"}},"10.0.0-canary.fe13dd130.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.fe13dd130.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.fe13dd130.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2e82aff5ae767641f831ad6a189e17f1fd0a77fc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.fe13dd130.0.tgz","fileCount":45,"integrity":"sha512-P5BrVa3hfyhbwok6kLUx5ExYT5lw6x/yYB8SwPke3knULDesK99zR8cam/svTemKwynsSeP/ptxREfsXg58zrw==","signatures":[{"sig":"MEUCIQD3rkrs4m4bRiXs/ohjrOZxVInUov3hU5h7QeOLc57iXgIgWhdL3JIZaAKaooJdmmY1cTdWLRLSF2fPEjPMYJ5ZJ0U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/5o0CRA9TVsSAnZWagAAD6UP/RNiDZouy0QMM4VVC//Z\nE+Ij42N4oxhoWsQ0fDFaPF9OFrfEXVmNXN7sSPOYpGfHapt/oZObjKMDFxVZ\nE8y5S+Kbq29Kh8qMxo5YBMWedQP4UumFr5NyYb14QOIuW+LAr6DxGMvgwh0P\n/ca5rv3bHCWWFE3lWQSXJcFnDRl368BmiAN5P2b4p3xGpdLDl6i/nq5vDQw/\nUD7Jnbcy9d3kbpdgsVSkRI0vfEC0sfPngg1atPGcIOGn85oeOTpjBhb0rU+h\n3ib2hSU9jgY//s+ePLA3NAyiTOaPXOKszBwxbjzKgWtpJPWy/AmkBWNpyU0q\n+73om5+GbHmN62eoqsX1Xb6uK2nriZBmnyMzDV0QcySvgd1e4ZUPP0o/xABh\nbozjniJjCDV0ub94LzyPzaabJvVmdo9QEs6ceAbKOIMqRpT9fF4/2+GCWqoT\nGGR2+qbxvS1yAGYpD7Z+MOfXROBrKyZSoTvpGMmGsFTEFnL6mDNBVTmFuqXe\nDbYysLmZhpuEcZevwC/VkJyiuaQ48dIMzbOAM/Kiw9jyRVBSRJxC/PUD38Xf\nAzu1rfH03dY5Av3FX+edUIwmgNtpQpvu2XFKx3BcCqc/og3y3LCnJGxI3kZ1\nulIWxSSV0/XJWTvbqEAnZ56LhT217UHxmvFI+2G9M0u17yZDhc8BiO7q4eQb\nZadb\r\n=p1sd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8825c25e04c8e88b7430f2f8e148da8a9197c02e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.fe13dd130.0","@material/base":"10.0.0-canary.fe13dd130.0","@material/shape":"10.0.0-canary.fe13dd130.0","@material/theme":"10.0.0-canary.fe13dd130.0","@material/ripple":"10.0.0-canary.fe13dd130.0","@material/animation":"10.0.0-canary.fe13dd130.0","@material/elevation":"10.0.0-canary.fe13dd130.0","@material/typography":"10.0.0-canary.fe13dd130.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.fe13dd130.0_1610586676005_0.9715960782835198","host":"s3://npm-registry-packages"}},"10.0.0-canary.c7c5da28f.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.c7c5da28f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.c7c5da28f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e3927a123cacabbde4fd369939e3455d8a7d35b1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.c7c5da28f.0.tgz","fileCount":45,"integrity":"sha512-RIXyPeSmMiY8egtvFHxsS5rqcTkqVEEoBjPsTDM3YtpJVbJzVa7NAo5E4nKLzR7TOSUKzBJGOpeuPFmJNXYI2Q==","signatures":[{"sig":"MEUCIEa1Roo8yxv6vmJgpB/JoK/5JNF1CZ2Fq7PSkzbSXBVZAiEA54yWPcKtG2zO3FeKUcicZmHpEmvQh1YJJZoi5KBoC8w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/5/LCRA9TVsSAnZWagAAsCEP/1FSFQt0TwpWj8cLPd1O\n/oC+ZxofGGOsI/SgGNlJ/jEolETvOrqO86Xnr/pc0KzsLs3awXS7gIDZkLbt\nTha3/gxO4/ZNP8kXrNmE0EH2qojTgrq4DZG6/AKspHRhnq8UsBdGQz/3O4NZ\nhYifmr64dfkCJ/h0rMrA7sxs0O1vw5N7AsasVMDLJYGUErHDwucVZGA51Tvj\npzlrtxQggnT05v9POSX/HqZolvo/jrF6Dmn2K3YaFhS8zZI9kZsQOKib/byV\nNviyehNknsvJ4erVElp60joBh9PTUOaeU3X4S0d8thIhdJD3RMwIBI1gpfzz\nSp0ASJ/m8HrAubHcmwVn9s6b/PS2R/5mqtwqMTewjL+Gnxut8jgK6U9v4iuj\nAQS5OiKv6FXLWxyPIFRHoZ8MPtbay/EOK4qy/96BJqIvZHD3m+rNvGFB2Ull\n29tBN0EftSj2r/MR9bsPKDUpCfUfaA8bYQaQArnzraBpn4BlTFd8IcQR0GeX\nxuZ+SsFYjAA+UHBDQ8MCaKQ9BRR2myVf7BuicxJYfINLwUcGdSj+mU9qVRXz\nhRtuFHncftnAmg69g+SHwRbYiQys6bbKi3rOsT0WPyGjsP8JAWCPNDVp2G4e\nCiVPc8Rz6uiIk1aMKrLMkF3/8lOLOtxr5xb9i/29zWu8TGKZBqHkUnIsXWq+\nJ4Lj\r\n=/3Dl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5d3f3a72d4e9757f2993684a89928b04ad29c6a1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.c7c5da28f.0","@material/base":"10.0.0-canary.c7c5da28f.0","@material/shape":"10.0.0-canary.c7c5da28f.0","@material/theme":"10.0.0-canary.c7c5da28f.0","@material/ripple":"10.0.0-canary.c7c5da28f.0","@material/animation":"10.0.0-canary.c7c5da28f.0","@material/elevation":"10.0.0-canary.c7c5da28f.0","@material/typography":"10.0.0-canary.c7c5da28f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.c7c5da28f.0_1610588107301_0.10488526153317745","host":"s3://npm-registry-packages"}},"10.0.0-canary.b2faa116a.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.b2faa116a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.b2faa116a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"600de5e7e81f177c52fdef669d007c64a3b0c86a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.b2faa116a.0.tgz","fileCount":45,"integrity":"sha512-1EdycfpPhbn8q2xpiiikG6di3VnGXRkjwl8MxIA7lsMJogb2Fm4H3SHAbN1kwd0dYIj+q22+Vn8VjLXqAApwBQ==","signatures":[{"sig":"MEYCIQD6U3SmThzH2PTGM1Yrpp419vM/0WtIJ8gcVbwKSL1zMwIhAImVXOrL6NJRjJYGxCrYu3dNH0B2OJliiF40xD29q6bA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgBzKrCRA9TVsSAnZWagAALssP/RamqLh/Bhh69Wqx+u3c\ninqQXF7HgXXDKAWi5tifkmIQiOWmHzX4R3v1jIYu+ouWqeZ+o545wrfPWKMu\nkhYD1vPgkG8EXSQcahOq1lEH6UGXcKzMwrnxCigXwj8Tgt2EpHoJqzF0njgL\nYpkUrHgT0Sz71ZkGuVvMCleEKGXMFbKL2ZRyQ1GpONrHCrRpDOuxcPHTnBxf\nBVGFS3dNRb0KhqnOVUVgt5OzDFrkj3Gzk9728M8yplIZIGzsj+0LHhC6rKRh\nlG6/n+8j/hS2i8sn8R5UPdrfciFlwxJtttpb3TxhnxSXSW3I19J6+lJprxBC\nRcZIfLq9WywS/Z1YJvDQHqZed72pK/GMwNHaLoZNoAg9U7Jsgo+u1dWEMtbA\nuodaL/JrRWLQghoa5syNKbnc82HbnJaQYozEhys1P9Ci446WKm+MeuzyTP8F\nAwipymEV7O+Q9feFDmN2kkXa2kWqmz22M/cGaeLL2dJEZuMfV2v16tTDwJkM\naTW3dbj/enrsUTt45eauuUytk6RIukS22GRTsdH3Euoz5VugpnsXnfSucSSG\nYlJfhOuGMhubYme/wOW5v/epxaRqqX6nrgFEL3JcuuJpBgfQ7hD3GzspxdF1\neojjCnfJDlW2rDleyIGwKhjUJ+PwLQbg2yEi7G3R4l5tuQvjoVQcLEz3oSS2\nrsMt\r\n=vau5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8c83e6751cbdbda8095b6ae0686196398066d600","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.b2faa116a.0","@material/base":"10.0.0-canary.b2faa116a.0","@material/shape":"10.0.0-canary.b2faa116a.0","@material/theme":"10.0.0-canary.b2faa116a.0","@material/ripple":"10.0.0-canary.b2faa116a.0","@material/animation":"10.0.0-canary.b2faa116a.0","@material/elevation":"10.0.0-canary.b2faa116a.0","@material/typography":"10.0.0-canary.b2faa116a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.b2faa116a.0_1611084459033_0.29764618109068963","host":"s3://npm-registry-packages"}},"10.0.0-canary.0c95c9f7b.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.0c95c9f7b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.0c95c9f7b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e8b5d268b20c35205e625ffb943d295cf3bf5f64","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.0c95c9f7b.0.tgz","fileCount":45,"integrity":"sha512-JbW/S/wTuwgcXm2+ak0uAHqiZ5oBRBovhWt2H3uxHwgElGNH35H1OuB9i2b+KDX0HUNtaHFyiwAzk+EJIjRCyQ==","signatures":[{"sig":"MEUCIDrR5BhFdh1YNrfIIO/r2v4gaaIXy/kII0rXcz8MDimVAiEA5N6Lve6v7LxkT99+msLPL7fgVxYtMfuDbH7E8EOyOIA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgB2NCCRA9TVsSAnZWagAAoWkP/jYwrAGqUJbNwh/uJPYx\nhLd2gzLWbJLF8rDt524rweGZwfDbjHWWGNpCpJCCdhBhNa9GPkY0T8mLT73A\n6z2IUqxQmrAjCApNO2egh0LdxYJDjsK+I1+lYmAojYkSb7hBzRXOji4XhPui\nceA9slZG4/sQfmrA92aesi1/vGNNbP4UWX1+x6y+Iblgrn+r7uYVm7Vbi5vc\nlbpmKVnGCMcWSSu0LixltJklEjO2S/MAUK9q4Tfnbflnp2gaOA9sDooIABBh\nPXj2u23A3NuyRMKYk6RNbJlB3WV+iPppsh0RFKHJ82SnVresyKLJilBIULyB\n4jiZv/9hIXsPF86I4wq87/yUP4IhsgX6TdTpQk1bQThAHMN8AtKvxTxnBdo0\nmsXNqYHChI+lx9UOR1ZQmKp6McbAbAGBm1EGIzqg1VBpVa1HfOQCAaThuWS6\nc3eXKVbEHQHWRUQqiNTSOY3bJzT4FcUTohw0abx1CM3DKbdQWWvO57/GoI6y\nhOKMs8JLyBjv/fsjQjHsVtC8ZsWjgYJt4p9pgrstIhB8hmOTnNxcrp/qakxF\nam3w3dis2WQ4bT3hIlssPiFOMBhaPsa4X3yNISDpH69ywSpwoSulkQEdNgPY\nfgfZVosk1aDEvpqrBE/QJQpwkoArRw70BCY5djj59BhdAT0uxA3EVsR9NBMX\nnp1e\r\n=tlKS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c9db31c38cf439af3f1498600e029c2dd812acb2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.0c95c9f7b.0","@material/base":"10.0.0-canary.0c95c9f7b.0","@material/shape":"10.0.0-canary.0c95c9f7b.0","@material/theme":"10.0.0-canary.0c95c9f7b.0","@material/ripple":"10.0.0-canary.0c95c9f7b.0","@material/animation":"10.0.0-canary.0c95c9f7b.0","@material/elevation":"10.0.0-canary.0c95c9f7b.0","@material/typography":"10.0.0-canary.0c95c9f7b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.0c95c9f7b.0_1611096898162_0.20565425208640953","host":"s3://npm-registry-packages"}},"10.0.0-canary.5268222c4.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.5268222c4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.5268222c4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2b0da90d381fa26c8282c099edb6cb2d8d3ef141","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.5268222c4.0.tgz","fileCount":45,"integrity":"sha512-DOJjoC+usVLxDinX5f/VndHFbCqbbXdw+TNU4Za8uvwsCKUFsQsIKvWfJ7LZVzfem0XL4HcYmdzLjgL1fALnbg==","signatures":[{"sig":"MEQCIEqKE8SIhf08pDLJd2E86R91qMxz94rBbrNiy3Lhk0V1AiATSHBnKrjvjR9U0MKdDeISID8UO8pos6IDq+17COFNFw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCIJ9CRA9TVsSAnZWagAAGRgP/ilPchlFVXFzuTC1G/3C\nPs1Rif/5iGcpO9HEcbmALJHTuC7MAcg5vi/o77lr5GC3UMXsjMOZXUjD8JQX\nFdk22YAYk7GxsJBCnQQUJi/C2NmcfWuaXOQbyBsiX98J3TXmIjSokRqWFdVO\nwIfFkHVs0KsGZLDvqMZhRZ9i7vEi+i9lEdcCEsOlW4jMIrCv0gSW6OAsDWZ0\njcq8ypSjzK638gNdYZzdJ52sC3bZt4BfxEJn34mRmDlmtI6tSeNgTyp+fFBJ\nkh7bmcDSpnWB5T2lIWUoglNMUS5SMvzlgX2fvD4941NbXLTxqoiub33xXyT/\n2XG9JeHs6Y52IEYaaK6sdc/wSfma+16bhZiJkZxOgfwmFPnO54gi+YLwNraF\ntyC8BFCVbjCF2rmKXdg3BsbJRx7QdmW7+hJoIY+3YqkiwnFjo/N0xPnVDg2x\nMo8mF0jlHiA1PeYdHCD5oFVARe7olSHsN7ltB+icGB98LvdpEgEyNm3n4YWF\nRiTHh22DYHmHtpYquxHU2seHyAdbUpugX+ITbGL/enRrp3ML3UHGdqBX1AGq\nj0vdNmYm4WzM2FxBH8AF371IUsK8eoE5zMJjIkn95rLbeu58zq4xSrsBOFvB\nYqWhUvC6Nhnfi3rRJkvox0e7cF1rzVVBqIsJMYyj4XWgeCCro2FUue4s/IDU\ncFge\r\n=O5dO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"149775a975bdac97e3f25a99b254c8b632e6ebd4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.5268222c4.0","@material/base":"10.0.0-canary.5268222c4.0","@material/shape":"10.0.0-canary.5268222c4.0","@material/theme":"10.0.0-canary.5268222c4.0","@material/ripple":"10.0.0-canary.5268222c4.0","@material/animation":"10.0.0-canary.5268222c4.0","@material/elevation":"10.0.0-canary.5268222c4.0","@material/typography":"10.0.0-canary.5268222c4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.5268222c4.0_1611170428989_0.7857560644827317","host":"s3://npm-registry-packages"}},"10.0.0-canary.2ed2d829b.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.2ed2d829b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.2ed2d829b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c582df33006092e6c5ea0fac04a510a056d43302","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.2ed2d829b.0.tgz","fileCount":45,"integrity":"sha512-9BTm/rN7IOWdchPrPWGHiCvDyCvMoZGuEDl+ts84dKIbhErX6I/jThcSMHwrW2+iJlIq2UndhQFi7DRSYhzw/Q==","signatures":[{"sig":"MEQCID9MW8A98XfHAfxD2Ni6TwQlIQPjI1ZgRPA9VfKCFhXSAiAcvaMLammctxFlPE2gXiA0yL9sNamb88P4MyDxU0zM9A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCLgWCRA9TVsSAnZWagAAfMIQAJSzK4QBk3EaboKIE1ne\nUXjr9ib3GkubFmbC3rCyqkCFbkQRYp22uC+tlju3bQjmJQboU6JRQmjM/3gp\n9SqebYygpFbLncnX2FFuvhk+xuZTb4HK+91n14QmtYVlyLBNGb24lfI9Ok9v\nzukvEF+5caVkZNA60Jg8OMI3dUQlG3o9fYDgAJOiG+rg1ZdbjPEj69NcHi3v\nwAKqMaPG+2CDGInFbIXDTdzYyndCXcIArNrmu3Har9aE7Xv4sHRbTzsg2JNm\nLtoY7SsNkDd2vrMu5zzpYd5HLDHrafQ2fd8ABsU0WRYSfgesdcifEDix22pG\n7TjlT/5kJ3Lq/Uk1ttk0Oa0tsCRhETR6N4gHH4IBHWtVDR+bkYFj+uok5tKn\naeUeSACJ+A85/8meuHEjSmh0dhv0v/AMRztBTPqV2BZ7gOslLAgq5Y7fa0Fe\nb5umVbzJ7f7gLFRF/oAscxB5V0wG1DH9mmq3d4hj13qA6n4DguOuAOUTMJe3\neqL3HKSAVAa6bpD42Z10hubCo085KgqJxjecVAI1S+9CE95vNYPl5c/QfshN\nO6GC+qh04tFhrSoAe218VmY39cb/RRkotlZHgwmyznO8g+v2Su8quZa4P/w3\nGXaPrF06Ee/E9mcPJoVFMNlA3O1bVe+OKB+8vTa24npfp/4jaLozzPDDiyV8\nzuvd\r\n=6+XN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e937a8c393e2170307639b8126f0a461ffaf9e6c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.2ed2d829b.0","@material/base":"10.0.0-canary.2ed2d829b.0","@material/shape":"10.0.0-canary.2ed2d829b.0","@material/theme":"10.0.0-canary.2ed2d829b.0","@material/ripple":"10.0.0-canary.2ed2d829b.0","@material/animation":"10.0.0-canary.2ed2d829b.0","@material/elevation":"10.0.0-canary.2ed2d829b.0","@material/typography":"10.0.0-canary.2ed2d829b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.2ed2d829b.0_1611184149680_0.8197266772821192","host":"s3://npm-registry-packages"}},"10.0.0-canary.df00c2b30.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.df00c2b30.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.df00c2b30.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"09c10ce2a0818001d4d1f71da71c1640a71d4489","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.df00c2b30.0.tgz","fileCount":45,"integrity":"sha512-LT4OOuvhBy0M7XCd5YLWdHQNQIdzDBJac077JJHeE+/NxeDNfYPq9xgS/Jh5sC0fjC/4T5ZEBHCGalXmX+hIzg==","signatures":[{"sig":"MEYCIQC19FLc29fFl0sHD0ZOyNi8FqZyLETQ4amBScTnQwpnQQIhAOw6IS07FFHXNokC4dKCFrihpYxgiywyGJyLgi+wpVvY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCdxYCRA9TVsSAnZWagAAJ0MP/i1tDuQJCncAy/ZwV8oB\n6By3rotzXXUWhf7AwNmxM2RI+/bUBfkHH01gVed6QAI4o9ZtGskRgvflAdHC\n65CO8iY6cuw5X57KNeEdiW9PgeZEv6qC3YbicKuLAFcr7iJp4ODX8e14K6O3\n7NfiTPH7FY8jA+10iaX6RwuDCB93QKRXYekWFpviiqxxr5Vhqn9WsPfLeg5O\nu3HRQejAcjVRAy7yzt6i7hh3QpHshZsEE9OoetK2mzv4dzeIWLclzX9H9Tkg\nSF357YGOnpk9qswUsjwIam4HMjus8/tj+8fv66yzhHjOAWvwXMUOOWXoOj2x\no83l+uGBYeFuuYMbYIPSI/qNT+8Z3y2sBn7L4hME6C+s7t+/P2VFVDReoN3E\nZGbJ9z4hOim4gff/FmPDrdr0K+PqRRC4RELmGIObynCsspOsbe/lsOwwH4nL\nvfNT9vJIRzthG1MDPoyjKSrn4Fcu44zTYp1D36AgzkOucjxk7tv0bhRLZ3La\njonyBQKAtqI2pbFrokkjBu45Sqmld0/y8u5I1qpIIxJ7oysKoQa29BUUjzvu\nzpGliw+zwVHE/O2HCktANqVL0WGiureVxgn2MkFp+57vAd/SvWDQLei4DjhG\nKu389qEh/SD6bpy4LssNMOS2fegCPvOVmCk71a2jNA8NJ6EG2/oxyq3Ba4wl\nFYh3\r\n=8Paz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b80e68ca5ce1e4ff7a83ec06c805029869aaa5fd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.df00c2b30.0","@material/base":"10.0.0-canary.df00c2b30.0","@material/shape":"10.0.0-canary.df00c2b30.0","@material/theme":"10.0.0-canary.df00c2b30.0","@material/ripple":"10.0.0-canary.df00c2b30.0","@material/animation":"10.0.0-canary.df00c2b30.0","@material/elevation":"10.0.0-canary.df00c2b30.0","@material/typography":"10.0.0-canary.df00c2b30.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.df00c2b30.0_1611258968392_0.4296756359506244","host":"s3://npm-registry-packages"}},"10.0.0-canary.fd61b0476.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.fd61b0476.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.fd61b0476.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9c6a43d57d35bec9473927ccc0f9be1476bcf838","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.fd61b0476.0.tgz","fileCount":45,"integrity":"sha512-YoNf4Ngt5MBevNMiByUCM0GUKuxFP6xdCFwMWIMbE/mSCE046IxVUtiryd7QHawoaL+iWr2jO9n4Hy5fMtXCng==","signatures":[{"sig":"MEUCICVjEWME0T1XCgVl6Y3NVZcJriyQhT3Q/f3WWeAlJ6RhAiEAq2NTNEwhg1laIMxtTdUgLmEVQSVJLW70effHpxB50BY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCd/FCRA9TVsSAnZWagAAarQP/jM/o9EDZ0vo96L4RHXD\nnZ9CzlAov6911Wpl0zkPuKwTU0xtoG+1KerBzVUQK1JrCnkmpV6/nAvo+bWW\nbACB/UE1BE+djbCLPIYELxlMhRitrq2kULbxeXR/UXN9V58gBoVUSBZwQg+2\n50t05iwh5N37OEDZE/V2ngyhaTXdcx9LCcGTd37lqtRxdY7/cB7Em2UPgZLt\n6H8z+jhBM8p+/vqAiPHbgkFPP5FR+BhKmjObXJ9C59sO/lnGF9MX3OoE5N1c\nlwc0arrGJpd+TrjH9NSR1og3I0UMUhppHnqB/rabKZIwE5fwR1S688++/gzx\ndUpZSTfbwFNwjmFuHvNEdcWm8CQ4UTvAVc2e7/NjmtqGhYtYxCo3v6L9ljIe\nbv6p0DwhpvFu4SffFwMQsBaetU6C1e+jbpzVnqS5d32ClUguWP4qSinRCTQb\nQyc+rXPkH1vpnCuqiER9tUoI1+EGr5Zqc5hH43I/OUzDpZoRkD7gIezMQ9nr\nTo6RTsYcv5SxfUYlqOLuoWk075TfWp6bA6313J4oM8zquCLQ5BuLBRSJdWjF\naraGhXtgZ4oMubjVheedpJLjPFn7gmp2WcnY8/pu1Sofbx/8NDto3pIJF9VC\neBVq1y6V/hNrPhx4rxpJ7nHZD02pSu06TdfrONTbCXMqUKQvYge4qWnHtqwd\n3hnM\r\n=ZajC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"67853fc809fc128218f211f5b54f854f102d1ec1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.fd61b0476.0","@material/base":"10.0.0-canary.fd61b0476.0","@material/shape":"10.0.0-canary.fd61b0476.0","@material/theme":"10.0.0-canary.fd61b0476.0","@material/ripple":"10.0.0-canary.fd61b0476.0","@material/animation":"10.0.0-canary.fd61b0476.0","@material/elevation":"10.0.0-canary.fd61b0476.0","@material/typography":"10.0.0-canary.fd61b0476.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.fd61b0476.0_1611259844590_0.11541396948745408","host":"s3://npm-registry-packages"}},"10.0.0-canary.3fb3a0265.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.3fb3a0265.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.3fb3a0265.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a805d78693af35f7c392af9d95f9a2b814a54bf1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.3fb3a0265.0.tgz","fileCount":45,"integrity":"sha512-/N76dcs9Rnf0vzGvYVQ0V7ieCfpQmcYPLxpvwso2mCjcT4bwd8yhvEfMQ5rj0rU4cUwAUmEYKr68zNGohci/WA==","signatures":[{"sig":"MEUCIQC+4ofXDPBybNkTeLX5W4WNUTK19c23vkEreYFLH7E1rwIgPaLRWyaM2C6EroKOoE/CTvTnaok6gcQ0ddwpaXWoYE8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgChbnCRA9TVsSAnZWagAAR24QAKURynW/4Pdt8wN4qQB0\n57xH8p11we0NulkUhNznSTpWR3F79Z3kojkUj52cQ/OgIbw75AREGCpInqMO\nr4uweatedm1lqBR3D7rKkVTxEiM2f5tiaqt5mgxsJ1cu1n9hy/L+gWm14SF4\nKZapAGzltmG+3fkU+aeXE27noF92EOW2z4Nh8rn/oSjNMmGiVhdAXUVNnnfv\n6PuS53bP0w4EmLqKLrfJN1uUTFgFTY72ftfdqHPmxSjgd5mGvOu0G5t3RVFt\nUiIiEdi8cYo3NlXiUXfJp1poGkKsx9fYorVfv0lkDNYGel2kgnyBwZ5SNWDm\n+pk/Tpkqw1b1wpkS6fqbTQuAdmXM1OAJSWlhYxHCV6cVXEMyN/FFQ+xpoOtt\nYHclqp7J3QpEvg7LZYZAkScPfOL28FZeY2ovIcWmXCAwvHs/dtF4Mc2MuFKq\naHzVYdq329Fn0tcpqy1iwXpD9ykpzmrpKR0Vwmbtj3rYKUjgwbU6B4E0/n2Z\ncI0ustekazg7SOXXcYH53ZKgg1W32fD0pNG8Di1I7a14mbNnH01SUDxTqlb8\n8GYHOYtSQB0AhiZgHumltRV6uNJzGlcb98TRwe9cRiva5YrOvLHVEwK+xEKP\n2fF2QDttG4KjMfvxZAy3GaqO94VDlRVUixqQVjrdkd5N4paxwYXfPuP9YUWY\nt95R\r\n=BR+S\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5e619e42cc5398fa779a726d775cc7e9a72a1acf","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.3fb3a0265.0","@material/base":"10.0.0-canary.3fb3a0265.0","@material/shape":"10.0.0-canary.3fb3a0265.0","@material/theme":"10.0.0-canary.3fb3a0265.0","@material/ripple":"10.0.0-canary.3fb3a0265.0","@material/animation":"10.0.0-canary.3fb3a0265.0","@material/elevation":"10.0.0-canary.3fb3a0265.0","@material/typography":"10.0.0-canary.3fb3a0265.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.3fb3a0265.0_1611273958829_0.8851442568631733","host":"s3://npm-registry-packages"}},"10.0.0-canary.07deaec27.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.07deaec27.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.07deaec27.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6408d7c666f2261ab8566b191dfb685159e411a6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.07deaec27.0.tgz","fileCount":45,"integrity":"sha512-LdXfN7pl6NQMHM/LM/B8Hn2/uUqYoD1gIAeCfQNParY/XiLj1v7iOZOzsz+udzrakV9tGeiGYSEEpt0dhJiPtw==","signatures":[{"sig":"MEYCIQCuMgvAvuacKNzmWX9sJh5TL5XlAeUkEw+cXNLlxG4DoQIhAPWgP0r3f0zCQLTb3AZuMfOFGy+Twt4FylIOlvxHE3cA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCwP8CRA9TVsSAnZWagAAR6wP/R5qWX/VMaWCpGi4Tloe\naUEG/xAGODl0K4ozaNoqTiqyN07pJoAiepSx30Bgby5Jmw7j6nM8UGlenhbx\nqvkCrKuxy/VqdBDaAetm9BKrC19BOymjKVuQkyFiFw1X8uxkSA104jI06Y+v\noN69P2s7puDob2iY5/Zn1onspfmhd2H8BqEpopdba/CoaS1vt9zqbSKI0oeP\nsGn5xnImlzMrnA10Si/zHx+OguXN7+sR8gO+Grdq95X3cBd6n/bsqW38Rbmc\nJKU7Sx3pHTNMot6hd/IuUT4/Us0UAXDUyyG8DBCGQ8nez3mQiRN1jJ9Ef13k\nFTQyMHrvILHykrf4nUcSf47TwP4Jp6Vq2dL0Q6d9GKufMbB7HY+7GRuIBnmB\nY6ex8E/rbdGRuCI24j0y7BiTw7zhJAxem3JYIRtKKsoM5Fy8i1cUu3JAkUIw\n1c81U5Qk4J5R6k/yCdKB9iUMMFtNPLEWLhjQPYLMXPzGELbqxLq7CvOd2c8Y\nzNM5KNGXlPiVmd0Uwm4sVUawaM9P4W8pOfnA+1SC0O0hZlRNOPl/EG9r8Wzs\nn1XwEmrox8O/LSxEOf6O6mCwszXT2cuedtySSZe1Yn3bM2X5RV50KK3BScX5\nJ2JKozt1KJBTiKNuuIo00yWkuONUQsVGN7CNZkX/+q8e3jlfAq2TSEFcmrz8\n95o3\r\n=bDJ7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"be75b8d81f1ed6f8ebe94c8673f32110d71cec7c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.07deaec27.0","@material/base":"10.0.0-canary.07deaec27.0","@material/shape":"10.0.0-canary.07deaec27.0","@material/theme":"10.0.0-canary.07deaec27.0","@material/ripple":"10.0.0-canary.07deaec27.0","@material/animation":"10.0.0-canary.07deaec27.0","@material/elevation":"10.0.0-canary.07deaec27.0","@material/typography":"10.0.0-canary.07deaec27.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.07deaec27.0_1611334651924_0.6632518060344723","host":"s3://npm-registry-packages"}},"10.0.0-canary.d2959b16c.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.d2959b16c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.d2959b16c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"92fd397f170e56aba273a83f4de503cbc6f9d6cd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.d2959b16c.0.tgz","fileCount":45,"integrity":"sha512-tDgbl3rcTucNwCP2mJb767yMlS2GPiu1oI6PdIdDd9PlUXa4kW8P5B1b4f8puOfs+hFvHleXzJPlC2uqww0LZA==","signatures":[{"sig":"MEQCIFeIgIaezYYbCFbKf8rnqHKbl5rFYsGNRiOO8F/IUmp/AiBp5ZMxZA9JkhZbWoWKE6Qm7CkqEi8TD0dmzTwcZU3a+Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCx8aCRA9TVsSAnZWagAAx/gP/09Oq1pcXM3n+8BfRmPW\nBBYjZ/dVD9D2GeFP4CngQSzqxkx3Ym7zvuH8kEXHrGYnHg4AjPA8IHSO+wlt\nXEgKNdS0MSz1GxBwOFIygU8ld9Ro5x+svaXTDPLj6SHygguOlBMq+ZvwcK5o\nfnwLOtwZK/Nrbd1nfjFVWTCK/cVj6YFVfif+nZqofe1/r6gDSlfysYZ79LCy\nQSzXf83OQLK9kPyqLnI5A89j1aDU0OukPGf+JnLFdWD+Vx/RvOjJGd/VmuRd\nmunQPa6DxY2jvxZwiHtGLM4egm86BcPySdE7aZr89AjIMl9zUyE5yfCG78dn\nTRI7R/j9r12C5tow9nUp3K97FnQ14Sh4NBEUeU/jHan3ABMt3OHRJwOIr27/\nMKgFnY609eGb8W75bXD93obzsqoCacbmNHNlZevjyQvBlT34ZktSI46wx93E\njQa7DhmCmqH6mfC5FLLOrctoXhcOsce4XvSbzQQhXBTG7l2gyXvBvdXNbArM\nGPRywAN4wUg6AVghi+lvaT556lS1dIvVy5EAXE8YhXIASC+yvCIZpTyQesTG\nRAZ17afCKHC7B+kt6X35a/sgl5ZbpsgGwjoQz8uN/UtOB07BTvBtHzsSEc/p\nInyMBrKpCQhQwLnqsMpzjWAhIG9iGXQxLEOoBEqUAMEaitJ0rWGvcBDByKzu\nUdY9\r\n=tWQ+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9a89df0257ea15e66bbd565cfea291993f0c4ef6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.d2959b16c.0","@material/base":"10.0.0-canary.d2959b16c.0","@material/shape":"10.0.0-canary.d2959b16c.0","@material/theme":"10.0.0-canary.d2959b16c.0","@material/ripple":"10.0.0-canary.d2959b16c.0","@material/animation":"10.0.0-canary.d2959b16c.0","@material/elevation":"10.0.0-canary.d2959b16c.0","@material/typography":"10.0.0-canary.d2959b16c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.d2959b16c.0_1611341594165_0.7346752379205976","host":"s3://npm-registry-packages"}},"10.0.0-canary.75f3bfe7c.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.75f3bfe7c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.75f3bfe7c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5327689092ee17587bb612202b7ee56a50c6ed3e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.75f3bfe7c.0.tgz","fileCount":45,"integrity":"sha512-IAWOMGp0oh+MPsnZ8qhi6j5m2nchFseVnNUiIerkLjV72TcDszZ7i0iOQYQC/4FResg8j3jNEfzkmTGXZ3nAdw==","signatures":[{"sig":"MEYCIQDkAr1jnZgJGt1pDhZAKBmoHX5cOq0IJ7K7cTLrWNiRLwIhAI2XbmWzbvVu4BeuLz5kPnD7TxsNgH1GryX7w4yFIYRY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgC1c2CRA9TVsSAnZWagAAhIEP+wcAp/GrPjb/soQRgIpF\nwA/dYV0AbqGrvGBI/+oDZ/0GqvweSirJCty+vONU/FhUO5CelzYYp78Jr6YS\nULOAlN6x4ku9Kabjch+43bHnBKv+GypZ52hQJ8I2V0JvCEY5yqkDSkN64Brx\nKJPXA7cLX4zuqEOUg5Nl1LzJsriXKVS+YBhQfpQhn7DMT0S7XHr8Ii6QZFqV\n9withs6YZaryvCd3NCr3974b/AFoTRS1iSITvUvMZ28S2Bouuf53i4Qwf3wd\nLFf1Bk8NmSYjBhh8JffK0uy5VrQ0io6kZH49uEj+o3UMFHyHuBp/D+AaS82r\nc1/3mEiFi9kn51SyRqhsWHXs+D3vUHeU9GxG4/BDyGPzk8ABGGKAi3/mRQ1L\nLyTypO8S0QmbOaFx3ulImPN0AaJ6FLXacfGPd9bQ8NdxFHwylxfqB36FyiIV\nC5RKwo3HsqUYNcfXalvbIGrEoFmAFxOC00eO15Ty8pmAxsaCcGZ4ukoIFfE6\nUKz2b65LE6a04pjDnmAWJYALUNnxYKJfeJGh5G1Cj701LL36BGBgA3SypQli\nxAQOH1ZSChU/fmGKpvaOpTecROMw/7hNNChsN9gminG/sebA5SprIjB571Y7\nMyWwuSRDt6VsVXb+2/mO4P5/+79Oo4AhW2tPVZ4UhCRJraY6ITUiMvwsiPvm\n05cC\r\n=2Io4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"057941e604e02f88d571d61967040f58bf499bdc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.75f3bfe7c.0","@material/base":"10.0.0-canary.75f3bfe7c.0","@material/shape":"10.0.0-canary.75f3bfe7c.0","@material/theme":"10.0.0-canary.75f3bfe7c.0","@material/ripple":"10.0.0-canary.75f3bfe7c.0","@material/animation":"10.0.0-canary.75f3bfe7c.0","@material/elevation":"10.0.0-canary.75f3bfe7c.0","@material/typography":"10.0.0-canary.75f3bfe7c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.75f3bfe7c.0_1611355958008_0.09905857422190345","host":"s3://npm-registry-packages"}},"10.0.0-canary.b9adb7a0f.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.b9adb7a0f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.b9adb7a0f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"79dc0cf28dbf2eef4e267a6fd83f75858821e716","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.b9adb7a0f.0.tgz","fileCount":45,"integrity":"sha512-2zJyFVZIU/w2aTcGPZh4B/KkwWkxx2xQgLTgVdan1XKEr8f1icm+EHTy9iyUFiEWrQFMOVTKOETSHEboKBbAwA==","signatures":[{"sig":"MEUCIH4Ly7eu3ctDMLi4hfXv9CQvu7z8e6GPI/ys8aK6r89fAiEAzE5BW57pmVlLrPah+an9gvQH1p37b6ECkpm31mlxc4g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgC2GeCRA9TVsSAnZWagAAwMcP/i10Wz4WW7H8+vVtKMUN\nDrmcsxja+MhejHmoURSJYZ0gFJ0/KTpcENJNCD+pVZQOnHq616HzHi6ugXVu\nBg0AebvTrGjeV06LeBXQ/cgJInDVEVC+WtGxZJLuvTW/LdNm+i4aAdOMLg0w\n5opLapH/eG/XyxPYVKR3dpaT9PMKw5LjbHTiL4cIQnu3oIhGX/ebA6Iya/JJ\nPZj7Rgot0VBEGAlDqnwC9jnvZwgpQi0u8ENQnSjO4paL77jfilzFaSobecZm\nsLi1GEX50qf8xTPYJXXs7zxU0U6h8JLQblrn1Y0u8NnLFH6OS7DloRa+tdoy\n4QZtqLkKu/7fAzkGsNHUnM1VEUdsNoZe7WrfHWxy2VBkQOWptnHV5MJq/0cK\nOvBabPV0ld+GtF/RMfhTJztx5ZoSjrdBS6+EUEuIESsSBPqK/LpkyBlyTYEz\nlBkThyCQ4zISYEyMDSV0Wh3dkuVsJ5D+/oR93kaToqa1lPbBVozfckrnaCvM\n+SEoRohabDZmlnBzCif0ZdRAhxWVlL4L41OPFa0jm5e6eosvdmGYTgfJQMD0\nS9K3WOwznOpWoWPBF8/MNMz3KqD/uDHzvuh3sr3n289OEpVYXXW4Wju+Hx/v\nnOg9fGxIOYx+XUA4rGyKpuwythGNF/DQ/WWMZktqM9e9fg8mUpm+Vd+NqGyn\nynTy\r\n=lFvO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a591eb080c699d02013eb9ab0090fdd5e9813a72","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.b9adb7a0f.0","@material/base":"10.0.0-canary.b9adb7a0f.0","@material/shape":"10.0.0-canary.b9adb7a0f.0","@material/theme":"10.0.0-canary.b9adb7a0f.0","@material/ripple":"10.0.0-canary.b9adb7a0f.0","@material/animation":"10.0.0-canary.b9adb7a0f.0","@material/elevation":"10.0.0-canary.b9adb7a0f.0","@material/typography":"10.0.0-canary.b9adb7a0f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.b9adb7a0f.0_1611358622403_0.5177334539266041","host":"s3://npm-registry-packages"}},"10.0.0-canary.d29ec2862.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.d29ec2862.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.d29ec2862.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"59314fb3377f044afa10734804ed6b097c985308","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.d29ec2862.0.tgz","fileCount":45,"integrity":"sha512-c93YE2ooRMdGm2Q9vKWIeS+g9IFIYdwIUmC2wTc5UwV9n/0GFoxP/2Rs+xrtcFOxOMaGxzCZR5Pl67Pf9GJGRw==","signatures":[{"sig":"MEYCIQDD646hKbbGMJ/IfK4oYQFVMBqbFAK791u6kSVFxASFfAIhAO+/HAJ4k77fAfovqlrc+7CE1H7NUWRJd2gq65OQNHA5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgDvDrCRA9TVsSAnZWagAAa8EP/2j5oj/SMGLHOwpmwDgR\nxhcaiOgzfnPKSSa1FwHBTd3PuvusB3bk3svdv5tdDjVEP8xV1vFT9nb6UdLz\nuvRpDdQlznkGEYxjUPpOOQxHo2zp89Dx1843EanLMiZs01D8FDRGWEqrzPRD\n52zADDlAy3cDiqHV28Baokd0bTH6IDqX9o1FQMZBXMBQQCh7jRz2oN05GrDj\nccyF/o1uR6H34L5NdiVJ2V1A9rxzXg1yrEMXF3VRaQIvdQv7e8dmDcQy5zjy\nslSikwVQSd/Qxxpd85aY1G2jZOaIbqZ8O/Z1oX3J4VEylSj10rnBqwv6XSzM\nabyusqKPqsUBPEkvKm072rnroueV92gp/XCasCZTGb0PCj/eCso5Byj3UPN3\n9XX6T+II4rzZxiV5VpMYRMXd2G6eGOOn1z8ylFqYydeUBO0mIiVOXXdxRZqc\nc64s1cL3FGiNU0kdI7MX6uLYmA7Lx6kg9XfDd+mZmew/XvtJILI2MIxPL2Xo\nyVr5L7B9F5yomMhJx1xRbzKj5qDMszl/J3R3WPhVVSPRE/OUJ7+axl7RrscV\nVHl6YUIKfTMOa9Up8mBm8xUxs2A5LqGVKzFSJK71pmXbWn51Y6MTROANZFM7\nVALT75wyanRD0YxyaGhae70P7pC2JeSkgVVns1JwmZZ4knIIfe65nLN7SXz0\nxRun\r\n=pI8c\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1f2d18d6e94fa1f0808b7d768169b9f4827dc692","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.d29ec2862.0","@material/base":"10.0.0-canary.d29ec2862.0","@material/shape":"10.0.0-canary.d29ec2862.0","@material/theme":"10.0.0-canary.d29ec2862.0","@material/ripple":"10.0.0-canary.d29ec2862.0","@material/animation":"10.0.0-canary.d29ec2862.0","@material/elevation":"10.0.0-canary.d29ec2862.0","@material/typography":"10.0.0-canary.d29ec2862.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.d29ec2862.0_1611591915048_0.9869034878375453","host":"s3://npm-registry-packages"}},"10.0.0-canary.96be07c68.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.96be07c68.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.96be07c68.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3d8751d4b0eea2979bca0161012096015390c942","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.96be07c68.0.tgz","fileCount":45,"integrity":"sha512-vwRgInxox/GZ0bBVNN0XGgEJ9t9oMjyRm2/+wWUBr37OInkWf16JKG6QOvXjzduJsDXh9n7rbahXA+OoTpZIEQ==","signatures":[{"sig":"MEUCIQCaJx757dyApXn+1+desu3pEQOkINGwDC0GFlgCUb1J4wIgNe93DmnAen9V9yWyBrkV/dCcDo4OG+Ly+oNblFnRvqY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgD14oCRA9TVsSAnZWagAAbGMP/19u9gYdGwiSsaHdEAve\nXGgNWIoUEnsl+WGOAOyhARGU4ucITFbeHwYvfYuGUfbIn3JIhExHx1eEie6o\ngvu9qaaDRC3GhY6Kcgs9OSV3l+Y8O7BIzoBDg8+rcCeGlwutUq8wzRumV5Dj\neDpbXNT/gC0lbVeq+1f6nJc3t7HhYR7FafUkHO0bfmRVhtaupNssQDRBkg8D\n5m/SIMBrRrsbtbPuC7tU0HQ5W9FeWU9cO+4CxKG3L4rJcvqdFG2hktO/THr9\nvnltuqOhQJOWT5M17c1r1j1pyhLcNVL822pMQgizPBsYMXLAq56Nbgbcth9K\nqGWFMWuJYgJZGSZT6XK0N77CviD+QX3rwBM1NId62BDc3K+rD0iRicAbsq/c\ng3VShil0c3cZajqmcb2/Vm+Y7aQgYTCpDOBVOshgQnrq49VY7PVxiTR/iBXP\nC6MZ/0CcXuZQLr6x2vjsjvh4HPiqU16aCqW3UwaLcVvKTvQphoTTQtLhO0Ol\nAIzG/KQr4ruayvYQgl8smNH6NIDutE9XUFy/7BCI8TWj5T2grVn7KxvzPDM3\nViCSyg7z7nSZ5EiBOAkOY+AJNZOK7WBGYUuOPAQghH0fyRHClEDk92CsMqWo\nJUKAQPiLcsVAgMLNMtt4WZdBR1XdEjzJcsaUOzRiE9TJ5ZSxLWMdUejeM6SX\ncilY\r\n=lPRN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ad510acabea4f02cd7399e109ef73d3b0bb52e0f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.96be07c68.0","@material/base":"10.0.0-canary.96be07c68.0","@material/shape":"10.0.0-canary.96be07c68.0","@material/theme":"10.0.0-canary.96be07c68.0","@material/ripple":"10.0.0-canary.96be07c68.0","@material/animation":"10.0.0-canary.96be07c68.0","@material/elevation":"10.0.0-canary.96be07c68.0","@material/typography":"10.0.0-canary.96be07c68.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.96be07c68.0_1611619879679_0.7433404938724029","host":"s3://npm-registry-packages"}},"10.0.0-canary.e383944e9.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.e383944e9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.e383944e9.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"28fda19fc08efec03c7366cbce885c3de654802b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.e383944e9.0.tgz","fileCount":45,"integrity":"sha512-cQBL8W+PakR0fuhECeGoAqH7wx+wD7JSQLPhb/RvHvmiJHoR8jzlNqWJgfLi3PUvQe/N+W5lSqyoKCCdG7JhcA==","signatures":[{"sig":"MEUCIHXx2hUFyKGBnghF4kZk+OGwR5hyHPyU6ZBHbCPrKmouAiEAoMIeOe8c9i6n3RLndoDsaEKbGagzeHNYuKxzUxIlx9o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgD3RcCRA9TVsSAnZWagAAYvQP/RULfqQebHlpufEwSgxs\nCuMRPy6XxSzBnvVDkz8uAPKFJwvd0rVl8Vg3xf/E60rTixnB0IwrBx7ul1gT\n89Jc6xBkbriHzGuYDeFrT6w0CR3/cQAK9iEgkomvOy92JQDjO2+Alg5zeYFp\nLYV0yai6GMpzQ5qNWXlybJ2msEI1rgUZu2k9xSkVRyTHnXZYUOmqx47ZMIMD\nOCDc8vqRaYGTB8UbgYP60hNXbnRSZEpgy45SkutX1dZpOLpdUBQnsUfGbbyo\nZ45C1gHrE/2eOD0uulnIHrEdznhUDYtq1daI+sdv/az/Y5XsVjuXiY+SsDPB\n4kPrjqlBP/u1x3KbF3GQ2ilY/9jHJFqbbGTGeB1rBxk3lvqROsWMZnv8/4Va\nPH7GnRbQDeBBR+Re2qnSThD58F33sPvjhENTUpeMpyXeVYRM37crU7B6EygS\n/nX025aK6fkraEbNDaHswHCXr8f+NN2vbEdFOiB800lH7FJF0KYomSsBZIbu\ndRMicoTcRGkRRjI641mWTswWsqysi1A9PUk6mQ9PkW36ZDveEprpaT8G70/6\nJL0N8IoAq7uiN/DntJQXRm8go4PAbAdzL+fzfpF5D6+LHyg+COsgaj2tv5EY\nl12kL29Tsd3VUJZpsmvjbglMRrRNvvfB/vxVto49qJfSOnob9LRIuZ6gdE9d\n5d2w\r\n=3Baw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dc6dc4efb9210fc9c70fb089edb90278a8ab66f8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.e383944e9.0","@material/base":"10.0.0-canary.e383944e9.0","@material/shape":"10.0.0-canary.e383944e9.0","@material/theme":"10.0.0-canary.e383944e9.0","@material/ripple":"10.0.0-canary.e383944e9.0","@material/animation":"10.0.0-canary.e383944e9.0","@material/elevation":"10.0.0-canary.e383944e9.0","@material/typography":"10.0.0-canary.e383944e9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.e383944e9.0_1611625563906_0.12277524133232265","host":"s3://npm-registry-packages"}},"10.0.0-canary.623af861e.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.623af861e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.623af861e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fa78f52e0a3b28358296d3d5894223d919283059","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.623af861e.0.tgz","fileCount":45,"integrity":"sha512-ttk0R7TlP+Gq2AmhEvBcJMx2tIcDSe+EZhX+F1PT+DnZxxg76RYxqxAklNrJlNIXI722EgKEYZAHLlP+mMZ65Q==","signatures":[{"sig":"MEUCIQCv/rkoJxE5eyuH2iR3n1tWhO7SJYt4G1GZmyN5yqeGGQIgf0pMXBAkUQgFrACcFKHHdyZhdu8ooHMcPnkEvsG+cRk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgD5CKCRA9TVsSAnZWagAAhtoP/13sbID1RA88XprXC0Mz\ncH3xH1Wbv2rXcu0o4uKI6WAmwGyefF50FxHxkrWBwCjG1tkrXQ2UiMPm3bhz\noPe2Zxrc3RRBS0rgINn2Akp05rzIWwc8X3zsqC8QlVFD0Wnzz0c7dqPhz6+n\nOoI6u0pVxh7o/RhPq0yvLZfiHqLpkGvQmkenjz8GVt2lbDEUr/hBCY7TZvE6\nr6zRJjK3+7hG70BS/4cJYPMx7ZZ1imgNWgtjrl0t85voYVI5Uil2gsKVBSHW\nkhhtPo+rM6gl3jcsC/c9A7/99Svq/oWkTLwVb+f2FI+qb+EBfYnemeu0Ey16\nOMQ3MbjR7ML1v3/12Yc9HVbzs1PaxvU8JwBiaHVr+D768NKCC8ZEWMD/KORs\nNgOr3u+xklG/j8ORFt/mEPlIv8QXINcH+pZhCFbqMop4ISnTc8eqkVXxPN8x\nQsK8QzuSB6E7XWiUe9kkOZmm/gnw1GAKDmE0pkGAwhhlJSFwa6Ov3Gzt8bvL\nU/WRx069azm+267KQM8HAeMUhzBKpj4Pz+XD6z1exsnu6kT+pea/zs8nif/T\nqQaUY+akkIvIu4RwxBxw7Ft4Tih6eohJekEBB7PxPHxOgaLOvJq/4109yKaQ\nZ0pMqiHV0KDwThOFM1xhhuv/glB+W8eI01hI2tAhTe5iJGxLzL0mCEw0dK5q\nPP9k\r\n=zG+q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5906815761339487fac225651c29aa422211a72b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.623af861e.0","@material/base":"10.0.0-canary.623af861e.0","@material/shape":"10.0.0-canary.623af861e.0","@material/theme":"10.0.0-canary.623af861e.0","@material/ripple":"10.0.0-canary.623af861e.0","@material/animation":"10.0.0-canary.623af861e.0","@material/elevation":"10.0.0-canary.623af861e.0","@material/typography":"10.0.0-canary.623af861e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.623af861e.0_1611632777872_0.14276394824276406","host":"s3://npm-registry-packages"}},"10.0.0-canary.6863fd43a.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.6863fd43a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.6863fd43a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3cb612264c7a1d19b8f2a913d93998ada97f13ea","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.6863fd43a.0.tgz","fileCount":45,"integrity":"sha512-Gog3/IwmbF9CEw8VYTA7xZK6c1GTtJUjBRpHpnSdOJEhMakKt1QvnCg0+nQRKmXYZ5jv+UcEggNMQ3a1iGk5tg==","signatures":[{"sig":"MEYCIQCYsTuzBzRb6sI1Dj4dg/kGAVpky5+TWk1tohg+RmKnKAIhAOf72Zv0kldSyARwaCOtViyUAesgPvPW9jIeXQqJmr5G","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEIrpCRA9TVsSAnZWagAAVFoP/1sGIeu7CFEI2VeCmq8o\n8Kyx9nVByTw+i/4SVPeD3SgI2kPJZsc+iNzDZxbgqS08pAv0+z5Kf1Y7Swy+\n7UfQq0HX7Klq9lLq0BoCA11GhP9x9Xl6CWJJKf67sOaRAF8B15O0xoPn5ha1\nFUkRWPFetunUraRRjoA+RrPjC6bOzQlC3n4QeqbjCgHDBWF4LeM77j6iXAgv\nbj2gPlUSkYa43n1pwmL7CRVZ4GqWsbL/bSBcJafn5uJ32k8x8pErsDIUJD2n\nMb3pYsSJrjZphGHnVUAiW2be+S/E6VyVEFPvGIUHrNz1irYxMYYCwiW63wcG\nK1H+ruGuDevP0NdaqSRo1sHqgt7pK9MzISmTUMSGVIPB+Bi08WUghYmPox9l\nQipDeD+gDXORpJXw1P9ozAWWT3q6Tma2WpzaL1LXQya7NOEQZOmulikw1FAl\nFDmdMkdLEThpihym5ZRrG+g8Q+ZB33LLe9xulS3Szb0T6wPk2kTAWiHl7uV9\nU3iarImIXMvoB2U3iosi/Vbw8iWV1ofB81r7GSheprQX2cf6749wXXRNTMiE\ntrG4c8QVMBOKRH2A2pZ0B5W3VZMCzdtyq2VFpHRouX2eExZj2+PvCnf9yyOj\nP+Lp1lLDhbhpLxPRziMBMdcFXWMZRWf/mTYmBYoQsdl8MOEO8qZcModXviS3\n7Enw\r\n=BZeo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"49d0dacd3a675991bd5b8c454304b1f10dbcfda4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.6863fd43a.0","@material/base":"10.0.0-canary.6863fd43a.0","@material/shape":"10.0.0-canary.6863fd43a.0","@material/theme":"10.0.0-canary.6863fd43a.0","@material/ripple":"10.0.0-canary.6863fd43a.0","@material/animation":"10.0.0-canary.6863fd43a.0","@material/elevation":"10.0.0-canary.6863fd43a.0","@material/typography":"10.0.0-canary.6863fd43a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.6863fd43a.0_1611696872556_0.5592420689109827","host":"s3://npm-registry-packages"}},"10.0.0-canary.ea55b87ca.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.ea55b87ca.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.ea55b87ca.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6a36fdf16d65daf1ba0c0e0fce37eacd63d1d5a5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.ea55b87ca.0.tgz","fileCount":45,"integrity":"sha512-C6SUgKhWiRTDjci/WyFaAQ3vrmrR537oF3xVNnho6VQNK7RLHqsmnIE+RBVPLhzVWhFwelcaeklTJlmPsom+zA==","signatures":[{"sig":"MEUCIQCVsmx3JXKR+hbE1kgHYAs46gYYDcuqQn7+UeIP4tXIhAIgSGJpwh7opKdahlPlI7xSzJZ1ng+EQKXHwsoFbkvBxOM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEKoDCRA9TVsSAnZWagAAt1oQAJUlcSxWHAlJYGG/zXIo\nUL1F4xQu7B1rjkNdxLmtxvQE8YhLNiOtvsE9U8hB8qSBHnUboQAjYpSnZLaw\nOjIi90ICOoFhMo+Xb4N0KT2JrUAlhpN3c0KCfd0ilKMWvfltK98Op7fTot6c\nzRJjJVkmXglzdW6yWErTs1jTveUkGggjbYwNuMrDCU+qM+hW3g8YIPdNCto6\nBYFiafzMrXSfbp3oFNNJ7fcxKxH6NFGSCX/XStgRRsSvM//ds3zaXxr51M0t\nHD2EL49qpnbicysM+K9v8IXY30hgICoO24fUcjTCRW8cALpzwIu4AFppmwt4\n4BJovhc/TN+qPmYTkIvwfqFFwWbpWfDzUGZ17Muk7n2eX8HXDSD0qzzr9bq8\nDKA5m5w1mrs9JWIyZp37o30nBgbEZjjd+e2dKPCisEa3Fl7T8CpR+sRA/TBs\nv8/CUInxcw2amGDi+N4Dq59pLVadV5RUA5hJ1dYHR36qbhfDtenfML3Xuk6h\nPUNue/1Y5FLmO8AqbSb0i0FqEVhAyuWWUNKma+OvWBMsb5olEb1UZMHORYlQ\nRD8Oriu8Rzy5WFBoGgW1b8G92DTcwJm9/Tf/ZWeeJMDBZ6HtkJHtPV7M79Ec\nUw1CfkYM3/JJVc5Cuyqx6Qn47VxhZOJQaeDQsx2EgE4OGleQqF/iClwRBYwk\nKxHG\r\n=FiPm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"00e7569feb0aac4c4dbbfb9b292c9f53adb608bd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.ea55b87ca.0","@material/base":"10.0.0-canary.ea55b87ca.0","@material/shape":"10.0.0-canary.ea55b87ca.0","@material/theme":"10.0.0-canary.ea55b87ca.0","@material/ripple":"10.0.0-canary.ea55b87ca.0","@material/animation":"10.0.0-canary.ea55b87ca.0","@material/elevation":"10.0.0-canary.ea55b87ca.0","@material/typography":"10.0.0-canary.ea55b87ca.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.ea55b87ca.0_1611704834620_0.8994480553251991","host":"s3://npm-registry-packages"}},"10.0.0-canary.e902ff05f.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.e902ff05f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.e902ff05f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bbbedf8e23d3367682708ea0c910ceead3adbe01","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.e902ff05f.0.tgz","fileCount":45,"integrity":"sha512-Uq47a0JdIYh/cDvN2FH57v7aNpSP2K3LCMWQQMfRFMUgkqAT7G40p7Kyi0ojRE5Mpf9ohes2fLzo+MDcTJ6m5w==","signatures":[{"sig":"MEUCIGYINR5bSP0ucf6SnUeB1zlp++W+3Q+/6FNck6PYTFH5AiEAkR51UxHunefHerppX3+aqhGZjMMxIXPExqrOCtK7XYw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEK5BCRA9TVsSAnZWagAAbpoP/1GsEJAOxJOGFiOBH4+S\nL0MCRRTqThHQCfyUEBKkxPl402Z2tkBSp6zvvQHYvF9KQf2NzRsCGD6miTzI\nsMfJ/Iz+ivnIs2ct81sAaEMm6xTLGzaqU2RlaGpHwyqkzCDUuL41thiCAt+/\nUPt/I883jjxhpRkXOw8lswYQrk4PKHTrb1XaSSI52NcCV3WHX2om6O0mbMyr\nXd6L0hg7bkHsBYMeP2sHTS6sBE5IrT9G7xGX2IS8rBuCZ+WFW99do7pQU8VS\n0glOgiE/J2Hw7utnB5Q7nBFqG8f3a4h96ZRyaKHqQD7nN/fkcUBznKncZKcU\nZm5/Z5exhzYH0h2h5gp1KivQM13PM3UBzpayteVCYPR86v2hMdCrr2ePUZMh\njxG9ZyJfc3jvD0P2184OD+5hcym2oeHzABI21n0LIDILQn6xeIQmEOSr2PIp\nHE6DN+B95myvwcbmsRWLaTQ6najdYW1KF3giq21ZTfLXK1j1c5A2mQPIdsmr\nLi9wUEUnGZcAfW6fIHj+2AjR28UEtuakQk5CAg3ArXQ/XgNYz1AqMDLHREAq\nBbGodS3bgeSw0FdWda/SVjct2DQjmWWbznZseGYrZ9loevRk34sCCjk7T17R\n1vLeun0/eoJsP5OtBLS9sls5OxfyJ6L7ljJQzwotuHu13KoWdzZi178SgrNb\nVSX/\r\n=UOFM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8ae6ee07772b70becfa69208ee5a4849f86c2fea","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.e902ff05f.0","@material/base":"10.0.0-canary.e902ff05f.0","@material/shape":"10.0.0-canary.e902ff05f.0","@material/theme":"10.0.0-canary.e902ff05f.0","@material/ripple":"10.0.0-canary.e902ff05f.0","@material/animation":"10.0.0-canary.e902ff05f.0","@material/elevation":"10.0.0-canary.e902ff05f.0","@material/typography":"10.0.0-canary.e902ff05f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.e902ff05f.0_1611705920586_0.8083356900833785","host":"s3://npm-registry-packages"}},"10.0.0-canary.2c9fc538a.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.2c9fc538a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.2c9fc538a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4e887cfc1355c91c989ff7d5c8d9cb085b8c315a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.2c9fc538a.0.tgz","fileCount":45,"integrity":"sha512-s/ymvr9FWG21ilN1+G1Q4dMl1Bl0khbS2PkSCiS48uyvvrKCe3LOHvVVb/SEY8L8aAk0LH4QsAWOrwXiA4LPGA==","signatures":[{"sig":"MEUCIFwAGXTaE/Ni4uz7duK+gbpa2l0lLq8n9FU8z21fBwe0AiEAvyKlFgRgtiPZCTrDaOdk+GsQmOulnvlckbj6ZFXwbXc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgELOrCRA9TVsSAnZWagAAvgQQAIJmftfCjc26PyGrl5XQ\nm34GAvCzlXKEaueYR/5IL0yDC4I+kBC1DPcfhP6mbnnvtr8U+ydsuOHG+X8u\nLoDiUmz9Pca/rkr7OFwP/JI0IQGTNX4nAMaa+Ox0t2ecIafDIzeSCoLz1K1s\nP7CXysUBW9OSZyyQHgLz+WPuZOjsmYcaUrEpEKHZEdhUiOXToTtKaPu7AxWN\nV+R0spztnacBBg7uebG6XfK9eo8dPWQL1bjG2+ogl/0i4qnnQ2EVAHyoohH4\nypfQ1dSALqXRXDR9+VNZ4/+wUDTo03/mouhVJKoIYUR3VbJkKI3MpL6hF2k+\nrgn2wxPeQVtdDO+2DEcLlcyKttn5WapwzZFeBTha/djGCnwr25oXtIPUT+Be\nImT5YfLrF5SbzmbVxhPTJP9qJ6QnVXnS8sw60c3pB5rFbt2AeQ7KNuyXm/Fv\nt5jbPO+SbnDwxRedvEpzjFcxrsTgZq9cVgF4TuOOYK1rwtiqUJ7YMFqyE4Qs\ncQ3b3Jfz+oQWTNuSzVh/0/8DGsvkVk/n0s2VeyddXoHbqz3kSDPzJDJy1GsG\n+HZsca8wIz2zgXrjBkOSBSNAcqkPAoHWaz68VyVTUGgyfZ/s0YQtalPPbEm5\notxpZYukzEwqk8vPzsg90ES2B3uuBppTi6vJh0UTyczoC0uECVGF7nTGeYND\nx+rx\r\n=wjU8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4bc5fff9ddee1f7703010e418626d050ca883474","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.2c9fc538a.0","@material/base":"10.0.0-canary.2c9fc538a.0","@material/shape":"10.0.0-canary.2c9fc538a.0","@material/theme":"10.0.0-canary.2c9fc538a.0","@material/ripple":"10.0.0-canary.2c9fc538a.0","@material/animation":"10.0.0-canary.2c9fc538a.0","@material/elevation":"10.0.0-canary.2c9fc538a.0","@material/typography":"10.0.0-canary.2c9fc538a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.2c9fc538a.0_1611707306975_0.9383149907249257","host":"s3://npm-registry-packages"}},"10.0.0-canary.6bf56aaa4.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.6bf56aaa4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.6bf56aaa4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d1f3723298561ab92f217964387f4e14aeb6a0c0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.6bf56aaa4.0.tgz","fileCount":45,"integrity":"sha512-+HeTJRk7Ogqw+JzdSEJZzgAFnWGNtiZQBFJfIEzolxmWMMiwu1zmpNp2cW5hvx/gtwASxVkKr+c5Ucq84ZL0bQ==","signatures":[{"sig":"MEQCIErhpjJM99jY2GT2qbbMhG5vItYKBQvzFFvbTxFfE4uAAiAyK7CqPSPay0BhqbE5czzXkFFci4KaTpsHbYR+AyAAbw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEMAVCRA9TVsSAnZWagAAYE0QAIEgn95BCRA1C4oYEwKF\n0a7LSuEu3RbHXav33H6k269KLhzO/IaohRW8ZkYPMtGnWsErdoYkZlUli9EB\nCoXLuDz7ynvs/L8W8SEEa8Ft9p0FNghd8bxtJxq+T/tk30r+f7iN8kjPloda\nXy+cxWCSu8RkunSbdrmFbWzbXBm0b9fRMSmg/mbGwl2C9z5KWxJJvq0Lua81\nGElcNDZdBrX4o5zx7uK6BTKI0QsugjCxtLXqqrSA+2e/75pzA0lYKJSJRqT9\nXXmNnfNiXcm/4TQjILypN11M+gN7IBk8eIgeLJ/b9IJ2KbGSseRR4fWgV+lp\n6a00FXeZDpzCn8OjOdKYD2reOp2I2QwjVwFX8fSTb5EjpSbaNybFCx4mN2TH\njGjCjsDgZ84P6gUQWUdBo82a7fRyUSik9G2vcklRtwknpfR7yY3WCknpaXlG\nyzjWubU5WMd3Vf8mStUQ22QU99tOvgnDFT3nEx0wOXHHMWqT4FImldvyiPGT\nYUftiKMv5tCgi0JigkuGYdOxjHI2xMEMdHPe8ddgwsoCsUqLSo8MXO6mk5vz\nFvgHMaFdGXBirZwA74hU8RB5/GT3EsDcL1rFVW/lLALXsyFMacYZE1JE+S3p\nUVRJRoEJl7hOo+o0Gh+sP+Gx/FLwWgHyd97QQdmucbscAj9S4EWwJkxcoTjL\nztK0\r\n=F9Mh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"557b9cd09fc15e60ea09bd17651230487a292b59","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.6bf56aaa4.0","@material/base":"10.0.0-canary.6bf56aaa4.0","@material/shape":"10.0.0-canary.6bf56aaa4.0","@material/theme":"10.0.0-canary.6bf56aaa4.0","@material/ripple":"10.0.0-canary.6bf56aaa4.0","@material/animation":"10.0.0-canary.6bf56aaa4.0","@material/elevation":"10.0.0-canary.6bf56aaa4.0","@material/typography":"10.0.0-canary.6bf56aaa4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.6bf56aaa4.0_1611710485061_0.9671606800894339","host":"s3://npm-registry-packages"}},"10.0.0-canary.994873795.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.994873795.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.994873795.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0cbec2fbb44ba425e04b03ecca770ef8cf31495f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.994873795.0.tgz","fileCount":45,"integrity":"sha512-We4uhzUiFlQo7eZXoVzqTNSkp1NhKPnpDeO34SAIBZkEzU1Pk02i8SKrTl7Cr8rqZDm1jDe5Drj87hi8BEZoiQ==","signatures":[{"sig":"MEUCIFb6a2NTPbNY008wanaS5UUZF9Irlrhfu+Vrqc+52Q+9AiEA/S0NM9F4yvPSb+C8ukrjyE9hiE2/nuVWLcL30FgtXpU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEX4eCRA9TVsSAnZWagAABzQQAKGxuSjjTa6Vy5C0rywm\nM4ynZKPK6YRCKBXkXGAm9YbxPGFCcp5Vtmmiyak/903C3F4YnOCdQ8V991BT\nzWDdj9VCP/1Uoe6nURt5aSJ5p9muHnE9QTyxku+7W2k+BmoJPwHRbecSm2aV\nq2IPRtia+DM9kz3hysjuOdZSWqhgBqF7gas5EPsJdJ5ZOqojD59jH275fU4Q\nR0IUW4c6ZmcqZNWzL6RMil9CJHrWmMdoXwmVO9xj3Dwpr9himTNNOCwrIJs9\nIN7OqJwOQoXmOJ7cJKSfKqsnCMCSYBI9383+Dqr9OWXp1ylzqYl0ZFE1pIyS\nmuUEqdpcXypKnui00OeTCRKk7PLZa/P2FbluMEb9Uc1dLLxdY0Lg7gZdHzAZ\nOF8KdImSkuh6R4FrT5d0zO8OGGOB11TVfAzMLUX7hRoFLV+kjskvER0ajlhn\nA97nTpivK7kI+GP0r9iyIaCIplmMHcvBHfqm8K/78rCixSGUDQfjJMoEW5JJ\nLwwbw1octelwxx9iudmGkMm/z12WO7bk6xCt44BoK+dg2k5iknNDySHguVn1\n949DdLvkK8n8Bz5zTAiQPQfDwh3DXbGODbGLQQOigdphQi7zx1lQCBCDXJbS\n2NVX6JbWVOpZizew7nHgso+Sbu/ZODaYavl2Px3bWctHlvj05v+msSseyB45\nJCJT\r\n=pE9l\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8d1337af6a27bed9f06167ca1cc1c996fffdd9a8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.994873795.0","@material/base":"10.0.0-canary.994873795.0","@material/shape":"10.0.0-canary.994873795.0","@material/theme":"10.0.0-canary.994873795.0","@material/ripple":"10.0.0-canary.994873795.0","@material/animation":"10.0.0-canary.994873795.0","@material/elevation":"10.0.0-canary.994873795.0","@material/typography":"10.0.0-canary.994873795.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.994873795.0_1611759133530_0.5958436083659944","host":"s3://npm-registry-packages"}},"10.0.0-canary.96878e1d0.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.96878e1d0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.96878e1d0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"62c60e756ceffbcd76e9fc325fdbc09aaedf99e2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.96878e1d0.0.tgz","fileCount":45,"integrity":"sha512-7ASSBuzUpdLaZ8xob85YJgc0ZyNnNErO0Q6ObVATMMosmX5T1w9EO+TziL93T49bk/3Lgxn4B01QRrWt+vO+tQ==","signatures":[{"sig":"MEUCIQD7CF+aZ2fUUZmU+u+u5PT9QSGeuHDfKuBeWonpcPitsQIgMCoFvZENI7Ut1MB7MdmpgmIa95VCR/Yr1/WeO41pdD8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEar0CRA9TVsSAnZWagAA4qgP/jYXir9zxzQYLveWFSEv\nOn5oRZAdJkDzaSAJRZEb7lxBKWJGNJ1ucMkUkEWCwjk9y3Wx5rRU3KGaxubz\ngvRV+vZ6B7x/eObqyZGNxaXlk6C7+lKnDPb4I+7/sig8x7z6QyQ8rmzRvw7g\ndvixzkNmv91NHH/OZITchl94QZd6nAKm7P2sjoFFwZcrWsMiVWhJ+tJ3Z9Wy\nRazotGh6FLX6WqVpbIixxX9o19mPgiEE1XZebCPdLCgu20lolDp3z2EKrKd4\nWLgHL84LaiGIil62aVDIn+7wWxjxHZF48p2HTIofsgkC8PQ5RNTJdEwQdd3A\nrAWZanrD2UqZGvpwppE6+P5U34eqm2B9hhTRuplxJQ9YWbnBZuEdL+yu0J0B\n6I6N2H17l3DAmN8LEegbVBr/FKswBISDinczOUfCrV0dERwbGXJ4X7hkhjxQ\ndBYkqoVwS96cApsHUzL4B3h6GBkjgtEC7/7BiBuhkFXbQZ3Bm2Hi8IJy0ejm\nX1RP/3mVawWF/S1qQl1ZnATtp+jjvKh5YJ4C7CKcsNdTDIO1rlUe5Ub6AChY\nkaVRQlSrbwWHpJDlqB8XvcpPQu2AILPrp7VBzonY1s/VyuiPooNq1IcJJXFN\n7+XEXUvmSlkOw0diYcpDeWdEAGnE5JAuwkgdTORvkophi1nO7NrgSA7iJIsv\nyOMi\r\n=wgqo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cc9f62002fbbf03874065eac25971ed2b49a47ae","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.96878e1d0.0","@material/base":"10.0.0-canary.96878e1d0.0","@material/shape":"10.0.0-canary.96878e1d0.0","@material/theme":"10.0.0-canary.96878e1d0.0","@material/ripple":"10.0.0-canary.96878e1d0.0","@material/animation":"10.0.0-canary.96878e1d0.0","@material/elevation":"10.0.0-canary.96878e1d0.0","@material/typography":"10.0.0-canary.96878e1d0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.96878e1d0.0_1611770612055_0.9641480904021293","host":"s3://npm-registry-packages"}},"10.0.0-canary.3c117cdcc.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.3c117cdcc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.3c117cdcc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1639725f33c66949a41caade5f784ba02536fece","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.3c117cdcc.0.tgz","fileCount":45,"integrity":"sha512-AH4+an7g9QgEFNy5qno6HFFs2EHEWfOjVpWcxxydX4BGMYsz+r/3ygcLCmebZKCrH6ZY3oFtCferST0fSeVQLQ==","signatures":[{"sig":"MEQCICMuBY4It/mPMdCWsVeiILXcVwGGnUQXGY8WXgngugU7AiATHphLn/oEJlp18vvp9fCcm8G/WQMuTRN8AkamBxFfRw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEbIGCRA9TVsSAnZWagAAxccP/ikHHPCje3V//F9Fuss/\nkt8fEqRBsr5Wr3dKiZYvJPAbqc34q9Yqvu8gZl4y+UoAbgkIsJhJ75hh6Jcs\nHXVnflhHiLiCQkGa2QxfEl7yVL3VzDuxhFQ45iQjYmgebo0LMmp8Ch5rqjIt\nB4hU2q0XsRUGkNAn/6o5YlusCr4iPr9h5kWIl1oLm1Rpze4bhSdFAj9EdcQM\nCJwnL49YCE5MjWFgvjca8sDOGGd8+236A+6WDcwUvCzcgsCn7HiLebsJ/yE9\nXcH9zu1s3T86p3zOeadaBKtmxCnfVrd8JQyYCIN4BqQjHHYICy5/dIHKAxgn\nT/zDrwE0aq58rcD5/MVCBEyEvsZV8rMAbOTA54oCAKySjW8/UECXhuiaFj3r\nYFa2bBSYs+SC0VI1LtGXNRsoC2GqhdgU5hx7xIr/gyKFIzkAX4xJk0ipZvtS\n0zR3S/OzlWiiSKtpO50AIi/MZsZJ4mm0ra3+/0WOOgr8Zj/E/7Da0tBRPufv\nhImcRNsoC+nFz0pgxBJPHBCWBouw5uj6ib+2Vr+OujZG3gCrCz5tw6StCbRD\nvsLJEXwFW6fAnBNdxhkthK0SCoIu2GvRz9Fm/SSpTIGxEssPPX3VF9TKVYov\nAOAa52H69FuGgBTH67Gh5Gi8N7ek3h6T8rKZvI+wi+LRyUUyJR0AGpGIOly7\n+ruB\r\n=S6Wa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dfd1ede4a4727199e63765d305bb36d91509dde8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.3c117cdcc.0","@material/base":"10.0.0-canary.3c117cdcc.0","@material/shape":"10.0.0-canary.3c117cdcc.0","@material/theme":"10.0.0-canary.3c117cdcc.0","@material/ripple":"10.0.0-canary.3c117cdcc.0","@material/animation":"10.0.0-canary.3c117cdcc.0","@material/elevation":"10.0.0-canary.3c117cdcc.0","@material/typography":"10.0.0-canary.3c117cdcc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.3c117cdcc.0_1611772421677_0.45846008231908364","host":"s3://npm-registry-packages"}},"10.0.0-canary.b411e7033.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.b411e7033.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.b411e7033.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f2cfe74c7ecdd3300e86fe818bf2ec32bfb80f44","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.b411e7033.0.tgz","fileCount":45,"integrity":"sha512-tRpgDbkm0Ki7yGvkx0b5O9J+AWAMnBSV2aSb3fKsNv8LdGAC/q12k64T5mvUJbqXO2C2+D4yM4BuVwSs5Nk9Nw==","signatures":[{"sig":"MEQCIEjilCnhGehxRo2UWQgIDL32Lu78O8iargzW8dHdvGw+AiB5Xnt7nKbVCl3IhPlp0H8TKMutGYSECFqRx25B0oA/vQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEeOGCRA9TVsSAnZWagAAD+oQAKC8Qrlud3r67EUqb5ie\n83iDPtPVmOiK+pN9FztQCaSj5Xh4FirXsj0RShXNdNLRUyCJCjQmIA4tkwdy\ngSb9YbhlzXVc8PJDdjHH4xoGFkO7GFK+5FZ/FKQrYSrkRPbUtMr1tv1T9m7C\nh2NgyugehLDNWIVHsf61Lwhz6ACPvdZyNZj12JcqRWyYzlSHuTu9SvOv4Avd\nYH8iyQFYQMuBi6H/LidQtyq2s5ItV3L24Hh4LKSpv6xJTCCu/V7XT9hmLERe\n92qlPSxdjGO/ri7REcIutWZ+tc15TrZcwx06st1EavKAp0tRkkEhJfI6OKrh\n69QkO8Wlf5RChIY0UlEBoicqXJixI5Szd6Z+3Tm29CLOSGKvjopKwvD9OpaS\njYtDYz5rWKMmfBG00uy5gj3xX2VmwdZCiDhRX/cphU9mBiqzI9qI7bezMupQ\n0z3CDLP/w74schILCdaTG4tdCVndgiHVoBPSDWxQcXXE/drpM6iXG8telrzt\nQfazFx9GFW0idahNLBOzh2dT+9yLOwIMUziz3tcfwPGjk6JEDgogjBCB7s6H\nDb4y7jnhmu7xA0OqjgM1f9ho6CReXHVPcC1me8xV28r6aAjT5StRVMqM8zmL\nMQfHGarqsRXUD8/v6FjzCoTp9AoVixS9ZQlapXOmcSKP477Y4peCbxoyG6ig\nWVFh\r\n=xN1G\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1d12550a6229cb648f6739f83d7ba5feeaa67dac","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.b411e7033.0","@material/base":"10.0.0-canary.b411e7033.0","@material/shape":"10.0.0-canary.b411e7033.0","@material/theme":"10.0.0-canary.b411e7033.0","@material/ripple":"10.0.0-canary.b411e7033.0","@material/animation":"10.0.0-canary.b411e7033.0","@material/elevation":"10.0.0-canary.b411e7033.0","@material/typography":"10.0.0-canary.b411e7033.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.b411e7033.0_1611785093829_0.6408459765801533","host":"s3://npm-registry-packages"}},"10.0.0-canary.a9ac16b4a.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.a9ac16b4a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.a9ac16b4a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"804e2dd60b61adf604a42dd4d332ed58cd0f472b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.a9ac16b4a.0.tgz","fileCount":45,"integrity":"sha512-XEAjWSL5UD65MqPO2icn5PdKD3+akAJQlDSWlXJAy70fUJynW3feRZE6kAH2MiEZ3OhimLE9+/lDMIogvW7HJg==","signatures":[{"sig":"MEYCIQCS6bj73SyqLvikByiBGNoYEQOwjYL7No0N4OvHTcpDvgIhAMrb7AxQKHxGfSFBlwQbuT0grpGd8sAXPMaBHMxI4Gp4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEfGQCRA9TVsSAnZWagAAiA0QAI2yMHDKLnPiDiiSM70I\n5HrL3WLPRkXSywEEjgs997fZ6WjdS1oxn0PRK6C9XD9hBNPNOz5pEq+Nv2yy\nOeuYndvp7EBaR6B3JmAvdyXfd+FeBuvjxzjNtiscQszk4R6xI62cEPSQGk8F\nDVZN4zCH139Zhp2YU8Mz614epVCPL44aPysXD5/HmABO+ke93vBEWbagQHXi\n8TIp7B0y36WSkU8qH/gLkO9yPuHMAv7loRFYWBPwUAN2q2RiBWEsJvOs58ip\nfoEXA1Pt5+bS91BLs5R1HjHqVAmgRojdrSS849RMMpJ7tyrR7PGekXxVmlX0\nSlcemDqV3rVcckvrsJjN0umdcjdAJBx6ecbc+EMYF6ds6skYoWq0Gx7jdX9i\nLuxLFSHVecdDx7tluIgDXJC8FFTL0Au9+TeWo2J7S4TVYbMGGzKAwjx+OlX7\n0oysQWxZk1QIzbBeIJDaOI5ChG20MtruoZ6of0w5bHpzLbU9sTeAfoYs7L7M\newoWJBATGril5+qjIcx0aUVy3g4JlqJXDvcDzSbLyEJRdYYi2wfRbVrkQVYn\nV3KRmyhSANvqDNJD4KKuEsZjVj97nvUPkKLN4ioFTbfdW68EgmOLVfWngvtx\n4ytajHEWRXf3QsQBUjvlFeshzMsELeC506EG+No+/At14uJkCWYbMDzQ5xK1\nJR8h\r\n=XwQa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1635bad405a8d329ac4e844d0a2b5f3bac553113","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.a9ac16b4a.0","@material/base":"10.0.0-canary.a9ac16b4a.0","@material/shape":"10.0.0-canary.a9ac16b4a.0","@material/theme":"10.0.0-canary.a9ac16b4a.0","@material/ripple":"10.0.0-canary.a9ac16b4a.0","@material/animation":"10.0.0-canary.a9ac16b4a.0","@material/elevation":"10.0.0-canary.a9ac16b4a.0","@material/typography":"10.0.0-canary.a9ac16b4a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.a9ac16b4a.0_1611788688445_0.7212269565426053","host":"s3://npm-registry-packages"}},"10.0.0-canary.fec7b42ca.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.fec7b42ca.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.fec7b42ca.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ce221886568343a72860b2e462a8e8c1afcf369f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.fec7b42ca.0.tgz","fileCount":45,"integrity":"sha512-xFNv1gzMmPnSkoIEH1OszvU6Bdwz6YPxMeN+vCFXSYjJXsUptguqZdk3/KgKmh2ql2/So3S5+kG55hqjN11WJw==","signatures":[{"sig":"MEQCIE1b8yEde+FuU3kA2idhDRynbz9j4fI2cIsqWITlttKyAiBACBZx3U6iJl6P/34Up6bXgjyTmA12ivAw+FzIdsMkpQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEw1qCRA9TVsSAnZWagAARBgQAJ0obIFkcksUWuhsRWQf\n43u8wZ4hEPLaK+Cis6MXCQTYX2QrptJEdrfu0I+tFByM7wViMxETccPv7MJw\n4utLpYJ7YimjL1Bo9YpSNkOHcrDSTlxp0Cu35V2J8tZYCmPYPbzSGAmCcSNB\nfykLgxciifuAk2TMXVbOeB1rDoj8wtSMgWXFfFNR3EBluXLagoglVEPBxtUg\nM2zNhDOHz7A6W/5qiShMZTKLps3QMZQOeeaFLIlUpHmnnD0RJtEdaNpJdyRX\nyyRNVFFwgGUkmKmXBlw36RY7YZJxVmQJLGRoh25UCUK8M8B4CURb+kyY5xPJ\nJDCzgD2q4w5m8Ul1y4tvoI91s3KuOWrAjbArn2oSOqqpp6SsW5Hce5pJOyr5\n7rF1PwZhe91DhkXyKRgeTKyhYvtgj82o/XDJLGEFc/Ez6asT1twGcrJUt2Ed\n/7heL7sMmX1FvbZ7v99/WQIysVTaCd6au6dA1xyZl3qZW5vW0KFUvnch8MPY\ntHJrp6lTkX+ILdsUPnCaFCnxSt5ekyj/4d22YrgC5DS6xAnWI4Yq7R4cQ8U3\nXJ70fsdf0jt0k6iNktMBy15U+Mx6tGDzF87pLJ5zQ7h9UugV+3bgoFpftMJA\nNGvDqNNCC6Ukx6mrQq3BKUf7qiGnU1vnFLHlqpYcq5I9GSSjTwsxVqtdXnVb\n+zqy\r\n=w6xk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c05b9618cc2b93ff9a68314dc20c83c691206159","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.fec7b42ca.0","@material/base":"10.0.0-canary.fec7b42ca.0","@material/shape":"10.0.0-canary.fec7b42ca.0","@material/theme":"10.0.0-canary.fec7b42ca.0","@material/ripple":"10.0.0-canary.fec7b42ca.0","@material/animation":"10.0.0-canary.fec7b42ca.0","@material/elevation":"10.0.0-canary.fec7b42ca.0","@material/typography":"10.0.0-canary.fec7b42ca.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.fec7b42ca.0_1611861354215_0.26586928385299635","host":"s3://npm-registry-packages"}},"10.0.0-canary.8e66dbfee.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.8e66dbfee.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.8e66dbfee.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b18b20ac86c338fb0a08b47db66d9077868194d6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.8e66dbfee.0.tgz","fileCount":45,"integrity":"sha512-K0F5mPkNGyE/Q0GmYYHW0HEOUBhulwNocuoJySl0QrN9Ur5fAGXs4gRUI1aR4bZSRnU1rgn+rt4eqtMFsnf/qg==","signatures":[{"sig":"MEYCIQD9frwegznAc131iClbuNcNqr8lJuOE55PTBt63A6vV2wIhANJPfP28zb5i1/6aarLOAYOVtdsB4yi+2us1LR52DQLU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGI0CCRA9TVsSAnZWagAA4zQP/3PSqb53DJAKZzu095s6\n04MheR5iQRDZy9wm55tBMxlLEJy4DFjtLrBIPaB0Vkgcbc+X340djCxRTd9f\n86Ed63i380vgADpRJtCW5kzSJkK8YvPOkXzjk33PuX0YzXUPgSAz/tyVyQ8w\nJ9dJQvHxduWbgUTxscFZKAJ9q0iaM3Lc5QRDDPlZRVRMEGia1qg4BvujIacl\nrhc1JcypqO0SR8q8/ZCzff5rD/LTg+to2I66YUZtQZm+VoY/g07tWnUfRo8w\nVnaLANtk1axmjz/i/XbgkMOje5M2rl481H+wDIGX3Mb4yjP1i1WL+34ZgREe\ns0ATMpnyuf1eVOSmtSYqc9lwa+jCtux1r17jq0MN7fLZ5N690htPea7n6HfL\nwbk8FGv2yBwsGpELJswC3Td+kIFSsENlyhzi97xYjwcH7aMoGlnnbbfRZf/n\niliWRmveefOi5HLFNV6+G83MIUjTlh2MYXuHXv0I4nX3g0jX/cmusr1VHHq9\n/0nEUATNVgGu6k+xnZXHOifN0KeW4wiS06gTMnlagFYhtSQAo76VhmBhlsx7\nYBQijx/fZVruk8gP+Vuhl54IBNtSqezJfx9xNWenKSSMsXinGtvUJXeHKCIP\nu1/FnfQGU0aD34pCAvxpjn2XjKq3kze9VpTqQRQwEwm3KqUK9ZSD7lyfWXFv\nY3nE\r\n=TYmI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"63606d4d60d94cbfccb1897812018e02aa13bd18","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.8e66dbfee.0","@material/base":"10.0.0-canary.8e66dbfee.0","@material/shape":"10.0.0-canary.8e66dbfee.0","@material/theme":"10.0.0-canary.8e66dbfee.0","@material/ripple":"10.0.0-canary.8e66dbfee.0","@material/animation":"10.0.0-canary.8e66dbfee.0","@material/elevation":"10.0.0-canary.8e66dbfee.0","@material/typography":"10.0.0-canary.8e66dbfee.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.8e66dbfee.0_1612221698226_0.038727340319330894","host":"s3://npm-registry-packages"}},"10.0.0-canary.637d15da6.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.637d15da6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.637d15da6.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d16040bdd18cd600d14e41bbe8a13a5a447b8755","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.637d15da6.0.tgz","fileCount":45,"integrity":"sha512-zB1otW48wmTuGSRHp/Nn0dBQ9XQB7mNInyJ9L2XPHWsEFDO1fXaUKRV0Zewypjh2nPqcRgnyd+cjwz1ES4hd0Q==","signatures":[{"sig":"MEYCIQDMIOXAF6Skh/AJWFyOEHMQCWLQCKX40GbJYobVTd9WeAIhAPWCPHypYdxxwwdw+XjXZBg8AN5/wFzjOY1lt+Z+O9QU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGZ72CRA9TVsSAnZWagAAnokP/AlG4l8KftC/RXCjfzCp\nx/W0QccfC0wnEefA8Cj16qI+dw6z7jKxUSQYQPPOe9VrAaT6W9/4U2jvN1d1\n7yJH73e6g6tXxZzz/8yjtqQkIDbi58CBakyBWRbj4EjvQafB6onYN+xS7Cb6\n5L+L38dXs5j12CdTkZi4wQ3TcZCMvdzK9/vwh0A7wFKSI38oz07IeN2+yJ1A\nPLhqwGc6SAqNEtaf1ULHajzxe0KbroNwvc7THR04HSetgB8M4hyoxpKsSspy\nYroYQvPo+15a7uCAYNh6gZKu8KAp5Q/XOCWuBo3B/kEh3Gyk8nqMvd5zfUeC\nJtAFGh+SYcDOMfwOEzK3kRYHVoZ4WXiouweoiB5rlP3epTW6/XhfsTnK4+u5\nbPuJinSck7N1vfFHqGAj9HSUBjUwEcg7DAvpnRS6/lfm1dpp4lBdmbbVuRW3\nrbK28Ir3Ij46OPWukM+WGdbJd8g0vxxD7eLdnZEmuV1Ao3DJHwGIkSpbDPEJ\n4GTTcg0eleBH/reWSKzK8raWfi3u/L53ubWB1sy/x8WL8RBZcXgIES7t4A+T\nA/1jxyCIM0UUZMdniMUET5FQAU39r15rnWcuCV96polvbWmEjnQDLsZGsGUV\ni0LwMhPA8u5x/0x0NvlpDiREQh+aLZdT7/vqBcsPxsOIOSr83LGz05oEaPTH\n4h3K\r\n=qef/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"264dfb09f81436a3537d88f2366133e250344864","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.637d15da6.0","@material/base":"10.0.0-canary.637d15da6.0","@material/shape":"10.0.0-canary.637d15da6.0","@material/theme":"10.0.0-canary.637d15da6.0","@material/ripple":"10.0.0-canary.637d15da6.0","@material/animation":"10.0.0-canary.637d15da6.0","@material/elevation":"10.0.0-canary.637d15da6.0","@material/typography":"10.0.0-canary.637d15da6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.637d15da6.0_1612291829889_0.5698983426592403","host":"s3://npm-registry-packages"}},"10.0.0-canary.fb793939e.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.fb793939e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.fb793939e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4b15d6a5b92a47c4d1a67d6edde068af9c9e3307","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.fb793939e.0.tgz","fileCount":45,"integrity":"sha512-hmvuIFUj2X3Qe4XAPY3eLdQtUia/JqjHHe359bOSaBRubhjWi/x8GsVQkh38V3qna9vc7IUHCaK5MJSFa+/SQQ==","signatures":[{"sig":"MEUCICp4pj5eWMKQgdN2yqxv8Aei10NZWzTNDPeSe3xES0MaAiEA0tufH+xb8/anuwTXfTXaYXo6wC5ZPJSSRWG83/ISfV8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGePNCRA9TVsSAnZWagAAmCsP+wSqYjdKnUgDf0eZHnvr\nDaWgKEbh9tAQnvOC44Lyrzp9nEL86/62hfz9txZmdCPBilJDsj58IWL7IrT4\nWDuZtLgJAXq782RukYKpYAmRritj7oef0cLadd8gBPkwo4AkTeeIlTq5tMHX\nZ0DN3utyhWdLo3x7VVsWuevSvFUawhTLzuENfw4fZmu0ld+scU2d9E/TVtea\n7fXU4pgbXBAIjRPjvQH7V3+jw0gVWWUbrpzHHlO7RrSyBB1+RtUscdPO/1Te\nWPlRbwFzezecAvBE/kopMcn4AVE0qSujM/npAGuTqPCQuBzK/UeEZwmUbISA\n7TR7FO5k5ehZJ5Hi26EoEjNH6K5AVcA7vgauZfSd828d1yPTqxYelPSgPS8S\nPWcshGh4jcaGmIIQudfsahQfU4I/xN/ULFrd3j2ZcWGgrwcnoDmBAIKG7jsn\nUCjA9ezAy3EFHPGqxqmiqImOFAvIRAVHsxjzoUnMRMivB9hE+SgeqghpB+J+\nucEZWZwGQ/sqE0ZRW81E86QyTcoWShX9UdorIVEfPBGQVdJwCKojR2e6n01Y\nNrwm1TEMdIZ+B9xU+h5PLlvJZIw45N+pC8W2k1dQWXQoSzI1LxtZoj3Mry5Z\n1SBAJbJmhJZEfFDaARzI3xH39e1fqzjYBBWVPxk8FTEkixjXbgjMmDsNQbMH\nTXxi\r\n=p+zw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b89489007d2a0c1f3821bd2291e448d44723ac68","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.fb793939e.0","@material/base":"10.0.0-canary.fb793939e.0","@material/shape":"10.0.0-canary.fb793939e.0","@material/theme":"10.0.0-canary.fb793939e.0","@material/ripple":"10.0.0-canary.fb793939e.0","@material/animation":"10.0.0-canary.fb793939e.0","@material/elevation":"10.0.0-canary.fb793939e.0","@material/typography":"10.0.0-canary.fb793939e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.fb793939e.0_1612309452791_0.6620318239900826","host":"s3://npm-registry-packages"}},"10.0.0-canary.15a4d40dd.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.15a4d40dd.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.15a4d40dd.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a9283bc0452e7ae255e9eb0afb4f3a8ea6eb9fb0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.15a4d40dd.0.tgz","fileCount":45,"integrity":"sha512-ZB7DJEtxEw5wyktrOBnPNtTRYfsq0FeL2qn290PjVZDv6zn8It84xj+IvtMLZXQgN34S+vCggTwO8PvO7Y4aaA==","signatures":[{"sig":"MEYCIQDN4ODqOk5sUD8kRhxY21jtJhX5/RBIVena+1MPkB2bPgIhAO10trSaPds28d+sBHUXYQ8zJBjsgr6QUPnsELQeYNNJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGgg5CRA9TVsSAnZWagAAK+0P/3dISAXkrzUmmyGIdr/1\n5a2f2MzyawBj8gF5aCYH8AHwUphhrWujXWcjrGPi4O9Bui+QykUzcF8W+TE7\nSiMd9aLPAP3GQimmV7kQXV273ou8gwZFWp+ksh0fm4b0d4osP8qy3wNTOBFe\nAWwkbG+jjClSVxDdTEoOQr/nFdJGMO9RZI125aG/innvcspwBSU54cLC3mFW\nM2Ox1rIXgyXaTEVJ+zmBUAyIk5DFAcay6Eeaaj4Xf7a4IwZ7vlQa0ekoh8v4\n+/I81vKWOR/S6rx3hPJ8UAmvKHrd7u/f53nV24YMwE/0RsDiifymD2BsSLgA\nAI88CkMn//+G0GbMxHX6SAOQoWwmyAgZ21YzNy13KjAWWm5ciQcA6/pOtrEf\nz/mlgU9yF4I0gprpnnJYC33H2iLU9VxVWeKzPfcGMY0bZMRJU+Y63YEPGAND\nXxbTGpTfUKoIMdggul31n2NmR93b/9Lud/eGnAPmI+CJaIbtrgNDg1ItRovC\nZlHeRwIJlb3m2hQ6X4vl8mhyYCLhZmBZ+w808KhKwhGysNPMlqfVt2y9YSvU\n9Gm811wFXKx+IVYgQwvw2HcGDj6aAkPYGsN9RevSG2WGsCchXZidVyPaePbT\nr6WFEDyxDThur1B7jRYGXThaUrBK2yWcxzA7w7xr+r1q51EmPN5LC5MWe5wR\n4BBm\r\n=mYh/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a6b5f072852f1f101d03fb492c57fc97f7f0ca9e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.15a4d40dd.0","@material/base":"10.0.0-canary.15a4d40dd.0","@material/shape":"10.0.0-canary.15a4d40dd.0","@material/theme":"10.0.0-canary.15a4d40dd.0","@material/ripple":"10.0.0-canary.15a4d40dd.0","@material/animation":"10.0.0-canary.15a4d40dd.0","@material/elevation":"10.0.0-canary.15a4d40dd.0","@material/typography":"10.0.0-canary.15a4d40dd.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.15a4d40dd.0_1612318776926_0.06658095276701448","host":"s3://npm-registry-packages"}},"10.0.0-canary.7a003acf0.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.7a003acf0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.7a003acf0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"deb39be150696af173fc0d82e3d8d58d03ce0b42","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.7a003acf0.0.tgz","fileCount":45,"integrity":"sha512-LbpTNqR4yIuMLc4FXKUgehEo6e7KhR+lWiQJ3l4kZlaTgo0OK13IvuQtq48VyuWY20DsL7y/MP+1sTO+YSnDhA==","signatures":[{"sig":"MEUCIQCDz5TMAp0kM8MeYA3LYJmYCh1x9kHkcFiRROAltVKBTQIgA8pkEwLb8FQ0dLNDWJZtc8U27/tcBLJWgNGbigI7Y5k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgG11fCRA9TVsSAnZWagAAwMkP/Rgekxh64NjXBX81Vh4z\nRzIeEg54UmfKih5t/CP1+8kKRYc9huNSE5sqJ8qs6gWpE/khUD45e8Gufof2\n3kFCcs5wc0EONONPQLUOd2eSsRB+M/ZfKq9XPwugUVW1I9wsGarq2hXW7rh/\nyKuqKPtWy68UBIE41ooGKvPkdEpylrOGii+Hm8J2DYBEkUpP6DGTXYNxYhf1\nEQ5Wx8agjSSZHaw/8E9QLXKyGdTFa8/BUP4JqSiGguZ7RXBzHfmTGm40LZUd\nYFSaGz+fLXMwYOGCdtTvpfl+Dr+pzqTt/CMV702ycpp1k67dgsjx8ohRDfFx\nv1xpXx41aQ2dKkqGgKW8DI0VM0RYXWDW0rK6RLLGEK27l/y2XgycBHyDP3qq\nM5wuqcloBWqttR+XrltMQUg8krsuZyLhaLGYkyk/Jy8XinngLT6uTJFjh7yv\nJS00fQteDkfDJEBLfQ7116W/Duc/LgVP7Uv1foVRPXHi8jTwlB5w7dQAFmQe\nZT1fOSPY2i8LgcLjutX/iekF8RxAczi+9mzF0KWZqm1ahht1pmARZVEQiOH9\n9djPU8mu2JOJpqRBQKlyeZXDq7Rq4Vl7gUThXd2UrYj+F9zafhOLV7IxyG/f\nz3CWgj4V2dBYkA6lTLPQKrwtERm8d45e/Q+DJMY+zi0oeIVdvqtQ3Ey9gGSn\ne0h+\r\n=Qz3w\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"50aca8110f6412e14432e118e1f9229dafb02d85","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.1","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.7a003acf0.0","@material/base":"10.0.0-canary.7a003acf0.0","@material/shape":"10.0.0-canary.7a003acf0.0","@material/theme":"10.0.0-canary.7a003acf0.0","@material/ripple":"10.0.0-canary.7a003acf0.0","@material/animation":"10.0.0-canary.7a003acf0.0","@material/elevation":"10.0.0-canary.7a003acf0.0","@material/typography":"10.0.0-canary.7a003acf0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.7a003acf0.0_1612406111295_0.3441919672524998","host":"s3://npm-registry-packages"}},"10.0.0-canary.05f249666.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.05f249666.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.05f249666.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1a3f075493089330156cb052f436792deb6dc2a7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.05f249666.0.tgz","fileCount":45,"integrity":"sha512-BKTupRKN/jJ/xImJBw78jJUU9bc91dbz/8AUG7FS/2lFxjx5r6i6FwbJ+ZCFHGHhignTK3o3ntu+RwC4UQNz8w==","signatures":[{"sig":"MEQCIDxUSxl2Ux4PEQMT0x+mOgUxK+QoCmA4NnG+sd4TxiTzAiBufyTyjjgMxJEL7/5zfqbjeN73/jskxVMu4vPGtoXwPg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHDQfCRA9TVsSAnZWagAAlzYP/AjBuIzp5wBMztfiHrHr\njenSgeUUEd1zZ355F+MdloTAPwEu8/1WNWjq97Hjh4GPs0cIxLvRsFy/nviz\nXfQXkPGdcKf1ImYP7vKiGpxMlcZDr2opCQJF24ebbbe3Ru1JkCwr7y91Ju8L\n8H8CTsC2hLs1p03SZqjpevjN0/2CnWjEWyKlXCdvACE2fxZNLgoS05r183gi\naWrtV0zWwdlnvQD85nJI2BTcyYrhhuZhG/V8yBlgDXnAB+hk0pYIvsQyT8cu\nwPCXnaBmkjP8I4OkMTRPyQnoqsKM58o7le5LIKXpOUbQnEybNHGdJYI/16t/\nVPH562E31TlM9OQA/aS/Hyl+R1eLeXTf9ehfb6pSe3mx470x1zZC2/9k660q\nOhpjFiJWR0Q1Rbd8xDJL37+1Eiv5WTv8W+Iwg6B4sQagKhaCgcmyEK15vzLh\nIR9GI64+D0T5Ijl/oMmzURn5HDSzxIFMBgs1Dnblo+K8ATqrhmz+DQ2mXdcr\n3sV1fj6pjZWivNDD/5bbXWte1ISbj2eNciAMxQel6h4Lp1YT0Cvlxob7R1ko\nJ5w+VPebvYypP2owmPTRLWRytBd6HmSdB67ku3A+Rzffno1D9tW8c3tlM0E3\nCowToDnLVtOM+qU6s1byrdSjKMCjslfp6ELpW7nk4UImB+LOkKZg2QwyH7ve\nNrGh\r\n=dYNn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6f1fffc7e905a3d49f007f288c26a4b5ea11dfd0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.05f249666.0","@material/base":"10.0.0-canary.05f249666.0","@material/shape":"10.0.0-canary.05f249666.0","@material/theme":"10.0.0-canary.05f249666.0","@material/ripple":"10.0.0-canary.05f249666.0","@material/animation":"10.0.0-canary.05f249666.0","@material/elevation":"10.0.0-canary.05f249666.0","@material/typography":"10.0.0-canary.05f249666.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.05f249666.0_1612461086673_0.6895864808399741","host":"s3://npm-registry-packages"}},"10.0.0-canary.1a3a39629.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.1a3a39629.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.1a3a39629.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c4fc8400d414e1ead7b387c704d02f1467a8081b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.1a3a39629.0.tgz","fileCount":45,"integrity":"sha512-YP83QgJcVmM/jQd8kqT66VTxUJb7onFUBqWr3V62ErhTItNDyoXcyWwepsz+GJrvtM+Z5fegWzHutDij/GBeWQ==","signatures":[{"sig":"MEUCIQDXL5Nm81QYIfGXSNtcOk+VKpw+qWG1IXR/MTUiJklAowIgRsysK8Ay6zMZE7RqsH0aid0zGk17pnkVgFMNAIOZi5I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHECOCRA9TVsSAnZWagAAsu8P+wdJbdojqtzo+Wm03uaM\nQtXYSY+QzOMZCyup5tg1b1vDToor9RfsueHwO/y9e4EbluOC/drrBhX4G+gI\nwcHd1M9PCweRy531TfJQNi2KtiOynZaAHOsHV+UOfoBZ1BOgsLgQIsaKyvrA\nYvXmqFz++Fwv+l72PMOztJcCXoUhM6TVWJ+PFrD8uNLBjM59+4E3T9fxsCxP\nQucJV45+3m5yATwZHUJDX3QHmD3IOFAj5C/CWpSqoyHb8ODeOYds2MYJmOL6\nmQxpHnkh/yHpzr9aRjdU4X+I9s2tII0dQIlE9WUKqnvQoQJGoQcmZ92wxCA5\nfeVCfwPhh1Se3HzkGAtET/31ZOhQ+HtS670Vjr2f3osrQ7ZZzz/BGoaVaoIk\nX8S6fvwunQqcqwqPNT87wbhgefMUBgCvoCer+aD0iRL21SRsrQ/T0Y3vMn8t\njZ9bESlZ4cVjpQXM2mDXwg4darARwttvLhg+7VOc5BEvF2QkKHLtILODDamZ\niwjUS7K/XfK/F0l+pMHPTz5x22fZ94kmjD/1Yg61Jj7vIi8XPQmgksYirMAJ\nrkxpwPenDoU1Bjea2qvEe94RdY0smFieB+aa+kCbuujoQPub94npABDOclpL\nOxbMIMSs0WpAF0/Yg9YpfhQwWQeVfA0VnoISlJ5NPaEJZZt6LamvlqZCAXvF\nQ6FQ\r\n=zO/0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"87d65275f85db5a2c4e630df10d231afaba36449","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.1a3a39629.0","@material/base":"10.0.0-canary.1a3a39629.0","@material/shape":"10.0.0-canary.1a3a39629.0","@material/theme":"10.0.0-canary.1a3a39629.0","@material/ripple":"10.0.0-canary.1a3a39629.0","@material/animation":"10.0.0-canary.1a3a39629.0","@material/elevation":"10.0.0-canary.1a3a39629.0","@material/typography":"10.0.0-canary.1a3a39629.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.1a3a39629.0_1612464269965_0.6555255511310842","host":"s3://npm-registry-packages"}},"10.0.0-canary.8b1cdb1be.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.8b1cdb1be.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.8b1cdb1be.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"07909c16ecd12938b28b7635a0bc69a9aa4784c1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.8b1cdb1be.0.tgz","fileCount":45,"integrity":"sha512-ZK/+3Yrs28TySILJ5MmLIiJhlowkcY8oIxu+xUNLjltari/X89agoRZuCo6MexJyj1EQONnV7//t9yZplifvUw==","signatures":[{"sig":"MEUCIQDn7gqQPh3ARXiL4UpEHt9FOS0Db+AzdejwNltQp5XAZQIgKr91wOtFeYy0pe7mHMoSTPoPUKVDxAoqdNSbhSFU9uo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHHbUCRA9TVsSAnZWagAArcoP/0ysgh8E7D1aZf3FbPZs\n2//q2WgnvWPRzGBUr/DuAWEPqNQcjK+UqHWUStqZjOOxW1n8YSe40rvKS7yF\nO8IzflDCtv0nmTdegdY3y4oT/zhFJTzfPfi79urDp2o737fOrU1xDbN24wjy\nRcNGawW5x8HQ9ySWrR61rJS7VT9X+MZCvEikWuifYOzCFiFhwKBMdk4xrf5a\nRzdRQShxeO8kzCg/vF7wBDQtkLbiGjeGwOkLmpgxvyWwoReV4A+5FYOhiDZV\nc9j9rsYYPY/ZGKlomcS/Y7uXwnjWH+tNOAVNNR2YutI+qyntF31dbSejGP14\nLQPR7vhG1kbihCUh/t/FnCCNNrygINrLYGOJY2l+67S0vk1xqMgZiWvpS582\nIhB6rNl58ILKhNiQFJ+xNtE6eLDkP4d2SYJWBAHRX0nAYcDB81G7V7bjopuF\ncfsE4v9JsmU3BDYHW2n/qvrU9VuMiHmJ+PraXtuFlvIUj8tItaQ4kEC/o/7c\nuDT5njL5ldE8/IiApgcZ+SFmsHlDRyzz6hGuZdVrknbDrwEKIG74Fn5YoBWg\nPh+TlchaFgQbJZjoy1S0NOSb6qtsR1FyOBF0Z6s3EDlGEefRNlaqstvIPRlu\nNsueBRiB55ihI/SpHeCCyN5QgC9KdGU7mBFE1XGawvwt2v3TntWR+XfzaeQh\nM0XB\r\n=XEtl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"73f8ad23c72c2fe32bd1a9e5e102b6aca8ce21d1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.8b1cdb1be.0","@material/base":"10.0.0-canary.8b1cdb1be.0","@material/shape":"10.0.0-canary.8b1cdb1be.0","@material/theme":"10.0.0-canary.8b1cdb1be.0","@material/ripple":"10.0.0-canary.8b1cdb1be.0","@material/animation":"10.0.0-canary.8b1cdb1be.0","@material/elevation":"10.0.0-canary.8b1cdb1be.0","@material/typography":"10.0.0-canary.8b1cdb1be.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.8b1cdb1be.0_1612478164407_0.5445851432944715","host":"s3://npm-registry-packages"}},"10.0.0-canary.8271f00f7.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.8271f00f7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.8271f00f7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8086b87470d6834c5be3b15294966a74e08a6cac","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.8271f00f7.0.tgz","fileCount":45,"integrity":"sha512-McFhN0/u9/8ipg2CLts+G+Jk5aKe90v0Zf72jPBtphlWtxk1ouMl81id/EYsDeFgLnl4FMA3Hl1kvvfuASZajQ==","signatures":[{"sig":"MEQCIEbiQG3MARlTwL6A1dAaTgBNSIIG8zLR9Zu4P8ErUNnHAiB/d9BM82gMeCenC3XHx5NuhgZ2WR+chPK7GmUK5kyy1g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHHzYCRA9TVsSAnZWagAAVjQP/1FCtK3DQFfDE9ArYQLt\nGXGQRkZP3H+t7A/ntWp0g6VL4+m+v745P5MtDS14lew5/RCR7Chimh9rzwxQ\nBJ6Yu1rK6QnAb2PcfkIZMZZErpUJIRsrVOzvBxvXgV84/vBszkJKqVAIuNai\n04Yo/OC6vRYxeuSh/GsZS25Ot0gap6+d1OMUVSvLYgE7+O61fkUEvQlRu9Zx\nF6HY+3mfbvvZJuLr4utRIoWQnKW+xLQCut/1zJ7prMxDB1s9PB6FsFHvfbm+\nCgOiTiL4sMwcOg1li+6zJfW4W6SM3gOd5Bp5ZpS7hUtPESk023tG0+5Pyolz\nNwfxN2GojNe+45b6q2vxcHyfh3QAsSFG6ND7Ety/9NXT+AdrihWRYE/kn38t\ntykULCkujODvv/T+XW6nxiP2lmLOOei3NXsZBGW9jr3oFLlLlRZG9cVzA9qa\ncU+y7nnkrBm+iTErHjUylR+RVWvahJwMtfuAdj3YbzagYoZ6B18BaNxXaK0R\nq1V0tO0jP2wrjbX7fFs9RsPfCUu95puoU1e+oSUPxFGHpezUfYiIMblI4WO2\n6rRgBRLO+/xPIu4dtQGR9pBUsGlccepSkfP9j0MoWHybdb4K6/8O2Wv3VDkW\nOpiAFRTWLPNwPiZuGrfaoPoiBuRy8qkZn9KzceNMHe1i+cdJUHqgYmT7RjQy\nHgXh\r\n=WU4Z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e210c5292564fea23c9cedf08acd2b8ecf86e94d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.8271f00f7.0","@material/base":"10.0.0-canary.8271f00f7.0","@material/shape":"10.0.0-canary.8271f00f7.0","@material/theme":"10.0.0-canary.8271f00f7.0","@material/ripple":"10.0.0-canary.8271f00f7.0","@material/animation":"10.0.0-canary.8271f00f7.0","@material/elevation":"10.0.0-canary.8271f00f7.0","@material/typography":"10.0.0-canary.8271f00f7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.8271f00f7.0_1612479704132_0.12070941355387843","host":"s3://npm-registry-packages"}},"10.0.0-canary.533092a90.0":{"name":"@material/top-app-bar","version":"10.0.0-canary.533092a90.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0-canary.533092a90.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ccc33a839170e9b11d845bf6b2c84bcc0c8842fc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0-canary.533092a90.0.tgz","fileCount":45,"integrity":"sha512-ZcthVVmEhl8do29bVqm+we/Lc54TNDaylGoyKqHymEfx3ycs6iZG9mspOmqngk+jJQRsAhBX94kMMaBspjcyyA==","signatures":[{"sig":"MEUCIQC5CTh7KD2wy+nC320+BlLz5TvhTh7RBGxgRXNuvBIwgQIgfB4C38pc7dHCGP/BdMPepL9dViT9XYbJG3Wxckgahuc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHL/nCRA9TVsSAnZWagAA5QoP/RAKWYA5JPqnRiFdp2mm\n9gyz5qXHrEuMqQ1nGnpw1e7mUUE3vhCUlNiiR3JlwgGHUChMSAXlpO/MaOya\nRmMHsdKmMAeQAdpbkRdWU4pAlVLvxXJwQmSeCvFaCAACDSRU+5VHtJUtCG9G\nhGCIgzRnC46DeK/8vjm9FEKOszAgKZZSUmqpuvgTaAMionsUrGUc3l3Tb58b\ngpE+qnhjdn/bLLihbtu1FsStNM/frvVQSBPUlWp0xqA012j8cEvTfGdTX73W\naTIBXXIe7IARyLYLPbWahdm9NoZz78f+XBoI0XntcZdTVDzP0PhoseZ1d6UN\nMtLdSquSNIHzsXCGZlKieke8C6OjYVxIQRbLUBFIx3pwqRMESDZsKc1eHcQw\neAs/9UiCoFS56nCJJm7Dm+tvFicXwPx8+Myjx2kR3U6ROgJwaR6d0SOK5HzK\n5D77Rjt2sKgXK07qGtLf/vvIGjCGo3Gg2qjIoVWohFRRPz3JI0w9PcR1cpDS\nl9I4MTB+ACwX2x7hTnrHrdAXPIEEsHzrd4DxDybPkBwpyAIvf+io4+e39Ui+\nxUNAAei0gXGd+CgrY2DHKCiKY1ExbLEsuPtvm+s6zNOBiCFcUb+KlKZ3/gHE\nGcmaDmEr2AggqRXT8Mhowgm4eKzcyJfgNhFXAPPe5KM4DgLTBQnqc9Rgv98t\nytZA\r\n=yTxC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1f76aa244e85ddde7348716259e771c739c09f23","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"10.0.0-canary.533092a90.0","@material/base":"10.0.0-canary.533092a90.0","@material/shape":"10.0.0-canary.533092a90.0","@material/theme":"10.0.0-canary.533092a90.0","@material/ripple":"10.0.0-canary.533092a90.0","@material/animation":"10.0.0-canary.533092a90.0","@material/elevation":"10.0.0-canary.533092a90.0","@material/typography":"10.0.0-canary.533092a90.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0-canary.533092a90.0_1612496871227_0.5945405786924425","host":"s3://npm-registry-packages"}},"11.0.0-canary.633a9fc7a.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.633a9fc7a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.633a9fc7a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"20627a4669c69323115a09ab7e61be0184385587","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.633a9fc7a.0.tgz","fileCount":45,"integrity":"sha512-4Zfg46iVKLJxILuFpdFffsS2vMaAZioMDCTxWTyLDIUZkok9Qa0XxvtoLJ4xas5/v5KfZofOHE57fK1kKm/l0Q==","signatures":[{"sig":"MEYCIQCM4exoqYI+1zngeHf2CRSiAaGG2RQuu2sbvakNSgGs4AIhAOUHTvfZyH0VkS6oGGQZLnVtB1RG7p5zZ+udg79FqPXc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHW/oCRA9TVsSAnZWagAAP0sQAIbo/kCLptkHIMvXTp8S\nBAIHe+Kju6aXxMuj0hAQjaUg35OtXUJlH6c9le8dg4E5McJzO3o+vVN2nZzB\nlwUL+EJIenRphFc5nGHx3JqhbK4NXFvLJcOBEDB97cDQV/L+MG8pHtHmVlC3\nBBP7VLYVXhapiLbXhlxBT6Yw5puRWovRZy3WXYvGyo0AK6rVhvzCFgQf9N5w\nol8afm2afccWSqD1w2XIR84lcUwdN++93D2aKouHUw1iGb1JZtDzPzDE1k2+\nrcGj1F+C05Zix1TtqteUuwcqMqjMFLdZmtxIG1MDqh3Dm6RlRPv4TqECo1/7\nGEAjVBpSqFWfxr/dCkgXAyCgimqZ3oU7L53Q1rdAO2mH8f86l+8qvE12nlIW\n5cSVnClJtiCATuQclTmt7QOrLr2m48UhMnwjgwcxGwKiziFY+IGS3prCcw7n\n3hq9VaamYmxHMfpyKRfEL4mHqN26F9OWyb6iuht/xxBOodEBWWNodsGRHpt/\nPX98YWxSDbf92Tc4hyMVXLca4dqoqRkyhEhp6rFnR12VL8bZ8L6jebL0rCjj\n8o2F0ogC8wSZxJCDaB6PwV40JP5/d47ee789Eonzv6z/YPz+ruceYIyoxnEV\nJEgF7T4I3/hVxE5epoJLPhUp8mxAbNd2LWhYlN2AgFwWYG0MjTvzLKyER6wN\nR9Nh\r\n=LtO/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9fe28e8829bc50c384861e340d551c0718dac053","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.633a9fc7a.0","@material/base":"11.0.0-canary.633a9fc7a.0","@material/shape":"11.0.0-canary.633a9fc7a.0","@material/theme":"11.0.0-canary.633a9fc7a.0","@material/ripple":"11.0.0-canary.633a9fc7a.0","@material/animation":"11.0.0-canary.633a9fc7a.0","@material/elevation":"11.0.0-canary.633a9fc7a.0","@material/typography":"11.0.0-canary.633a9fc7a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.633a9fc7a.0_1612541928288_0.561727119733527","host":"s3://npm-registry-packages"}},"10.0.0":{"name":"@material/top-app-bar","version":"10.0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@10.0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c9a1449453aa8d28d448e5eed46f788c882472b0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-10.0.0.tgz","fileCount":44,"integrity":"sha512-9UKxshyQw/FYX+V5qpsNcyU+4Z+3bvxa415jZkorq+ffoaIzKjc30zBGYcpQSAs2wwobiSp5srMmrTuU/x9k7A==","signatures":[{"sig":"MEYCIQDVsfCgYN1yBr5EO8AN3WmnYHQR83qfdy0NM2dHQ3xxOgIhAPVBSFkyY8oPllxxXg5RJd6a0FaGl1H59gol4cLHXM15","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1090954,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHXA4CRA9TVsSAnZWagAArlsP/i+0dAI19AF7H9A0LNLm\npEMXBkpaqZ6x1JUdJfcDyvx7Bak7eYZJzO73Jo5hn0O0Tw0GBMZc1ibDB5MV\nMfphjYDBWX55U34yyeR2JVh/Om1sNV3afWSxW2F4pmtXGpvItU/bfweBHmTC\n6EsPPDoMDmJRdB8yU1K5sMTcwVGgrOTWrULQcmiig/BAVyUg4j1F3Ccsd0rL\nrRTsq7/9hceQCjOfK8Zwilumg1NrOXLM01Feb6Klm03zu0SwpfRpmyO4gE8e\nXzl2soSf4Z9hcUcss/7NcMNRn6MVzUrmyCDjSMT+vxJjvbxbw9UGehIIclcJ\nGM9zP9XJt03ukNaAwR3c/uqQ9ZRnHs038Ke2Tt9im54J2bXtrhsasJ1FU0Me\n+4ZiSpbDrGWMGBYMiIiRB6iJF6MyQMgKJU2zcwxq51W5SuXwjTo2W5xW0ONb\n6H6K3s+3GducPPDL+Gam5kLiquHlyP15PnpJTFz73HVKpiPJNKHm9zc6fLj2\njgDi0IdDAA8wLa6TTBWRZkHH7ufDefXwjtAdwM8hZIGt1h38y4cfZnpz6AbS\nMZbICspjiZgtd4VXYN12Unq+I4Jti1/OUy6y8fPY0//hMaq2CLEi35k0/jTW\nrOMmimDQ8ocnCCIu/cirPuZeby573K9A4AT852/fhpk/nXzDfqVeLvK7LWSQ\nVFw0\r\n=Z0k2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","gitHead":"633a9fc7a98d0d9bdc177bc9ccbd49beb25bd5b6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"^10.0.0","@material/base":"^10.0.0","@material/shape":"^10.0.0","@material/theme":"^10.0.0","@material/ripple":"^10.0.0","@material/animation":"^10.0.0","@material/elevation":"^10.0.0","@material/typography":"^10.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_10.0.0_1612542008008_0.7554827874958165","host":"s3://npm-registry-packages"}},"11.0.0-canary.b5227247d.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.b5227247d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.b5227247d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9de590d8b7da82dc69df514ec93b8e594f0fa8c5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.b5227247d.0.tgz","fileCount":45,"integrity":"sha512-6M5dnQ7ncFcEdbDoNnrm0bntsK26O/1uEcR7qdK2Ueo2YNWYwcs7RUyYjdYeSxh9YKCQZd4P8rjx0GjeZiryZg==","signatures":[{"sig":"MEYCIQCxoB0aAQwoevQTr82kgxKz5xAC/7AOFnUZVAI3Jq4GOgIhANNJ1iYKyWp9EN8OWM98KhO7VqUWIcj1ODxT14Q3b/qE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091499,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHYO2CRA9TVsSAnZWagAA9uIP/2lVyng7u8WreeAIBUq1\nk4TwaIlOFTi4iSnmPknguz2dFPTfMb9HkWSAqe1aEooFGlBOyfMefWn5v3YN\nTAQJV/0e0FGlM5O9Y1UJKF5cTKc4QFvDVJ0oJny0b5D+AwBabjR1a2efeEnk\ntmUFVqvzftT/A50Un5KYJz3S00fa7qLYnhSLEOSiWYQvvJdj81pZQiGUvVrU\n31o1t2xawFLXt0dOlK388T3imXGmnLs3PlErprOUdkJX+FGMLpGV2BhxBKeQ\nAmUBmXzV9wRfNPIIJ1+Ftsn3dVjPI0T8SCgQyZGy/fUD726qzKuuU7VRM54v\nntIKqT6iu1kgGSOkBWwQwms9SDNNbArh9JtvvDKRuywSIMo0uAlb4YUhRu3R\nEo9BBD/crp2DRjFeNXlOtyrliVOKzHDxVkJRnlNeUfYqpAYu5/Qf37BgA1JK\nirOFh04ICs1z4zJX8GOeCbVm8PPNFZ/UNw2wEeZ2fmZeKTk1YE+NVuhL3E0v\nfAjOoy7cDVg6MeBSY+qQfRPvqGLEULogzIPQ7gPALD8YHbC9Wl06YkEsVRfm\nv02z3CsfrLlbu71pv19L8WJYCNiLMPxYdou2K03B1H6r1xsVr2kXaKrK4TOf\nJqMzL9uBksZ5uryzaNsZXYR+9HRiZ36tU6Yu4/xgIqhAOZQowwWsNqSiAyOd\nBJ15\r\n=AHM1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6f733c52a8cabe9fdd3ba4c35cb19e5526d8b312","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.b5227247d.0","@material/base":"11.0.0-canary.b5227247d.0","@material/shape":"11.0.0-canary.b5227247d.0","@material/theme":"11.0.0-canary.b5227247d.0","@material/ripple":"11.0.0-canary.b5227247d.0","@material/animation":"11.0.0-canary.b5227247d.0","@material/elevation":"11.0.0-canary.b5227247d.0","@material/typography":"11.0.0-canary.b5227247d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.b5227247d.0_1612546997719_0.0657254942765142","host":"s3://npm-registry-packages"}},"11.0.0-canary.95322b11e.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.95322b11e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.95322b11e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"04938216b1d24ebd6a9f0021807dd52978b032a9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.95322b11e.0.tgz","fileCount":45,"integrity":"sha512-2oM3wuXKZ0dwsfxm3ggm5A8Dg/pQGYlD4CsuUfSUcjnns+rLuApMZqBALYCfvu1Cm8lisvjf1ibPtBV0U0RPMA==","signatures":[{"sig":"MEYCIQDGZ1VkmWlPNIS1/OSDi5IfgiOQm9gHgQ6DX2arLLLS0gIhAMkUIIW5jjR27owEAl0RMI2apbpOKHWKGY+0Dyo1SaBb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091499,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHdWhCRA9TVsSAnZWagAArIAP/0t2XsNChpOapyqw+YmO\nBkyrfyM1wfFZOR0D7brvooR8qw5OC4k5sq6SHgo3/cza6o496nXRz50TcX9l\nhAXG5nVCK1sjDCAA0dlBiLu3fR2pUYdCu+uMsVLNYNBQw/PHEIDzO7SrJE+f\na5j3jHFDreG71q9mp5g/TVjfRh23oMAHuE1aJV2zUpl5Yr7Oclbuy32FCmjj\nTW2kGJkB6JviJaWbhD3Jm1iHistMfBL2mKENUy91KbDyXif3P1wdFhLIB3QG\nee/88LqzTFjvdGxop/i+64wmgDIVu65FTF25AhITf8kzAW3fNitgX8zMW1xg\nE/iKszS4MdjZyDmUkE9XPJYJtXiSPMFXkAHiF7IZR0bZt40a6NRnJTfvD4vO\nE089k1sl4VTRWZO2Q4gYC4saixQhNo30lBmPl9plnc4rIvp0ZrDq61j6q9tJ\n343bSKrtzbX1E7Fn/agez5ipy9D1ki+HVfDbE98DeD04zTi7gYh4zSvbBqqE\nM9ULCiMeqlgIEeiU6CLCazbZqxNLidrPbwLyCzPXLZc2u0GuB996F4Iagm/B\nfsFxhC+c5D+enxa3BfHkMlaHBQ8xndkFiq27SwKrROecsoZOL8Pp0XjNEMfB\nTpwv6DjYqDZ/FTFAF1msT/bO40IWKYBYEf6rnPX1K+ah2Qbcutbar4q2aa2I\nqZyJ\r\n=PrCm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"96cbc49ea4bd39eb1c275fdae68b6bae32b59ad9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.95322b11e.0","@material/base":"11.0.0-canary.95322b11e.0","@material/shape":"11.0.0-canary.95322b11e.0","@material/theme":"11.0.0-canary.95322b11e.0","@material/ripple":"11.0.0-canary.95322b11e.0","@material/animation":"11.0.0-canary.95322b11e.0","@material/elevation":"11.0.0-canary.95322b11e.0","@material/typography":"11.0.0-canary.95322b11e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.95322b11e.0_1612567968788_0.25095623800833944","host":"s3://npm-registry-packages"}},"11.0.0-canary.1f318ff0f.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.1f318ff0f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.1f318ff0f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b1711421e26a001ec5bb292697da7de7600fe019","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.1f318ff0f.0.tgz","fileCount":45,"integrity":"sha512-43DLKoXBE7CPizkPRi1Yr/o8hfW3tVnM99LK/Pijwtp0JDYclwYkZqzLa3zg9mZ2wxBBMhgAhhH/2+rJ3Srf7A==","signatures":[{"sig":"MEUCIEDJEbsK55zqBJEuGwWLn/ilDM7ow5yC+IyqB+gS5Ao5AiEAkeGGbo8LL/edcvuoqw1Hmz4ylLz/cCMXducaq3Brxaw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091499,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHd1sCRA9TVsSAnZWagAAWB4QAJFHo5JUtPofLel4Qaof\naB7y2UdZsrcDV7QSiyVC4dxPM9srd11V6DN4fbu9OjcVJwTIn++T6FY83gO1\nPpJ/ke15b9LAxNEmv9NHiqytaRBRO2pvC7G/kAfQ3h4MDR0FXZgxTgCsCMNK\nIfYihALQEUAE6TfxO55jMSLvQas8Jdu/A27nGoG7rNHtx4iYOltrw9kjnuqo\nnh0AejDMmaoza9BNEQRaPWO/sakyq+6oocTw0vieImf4z6X3j51IX3txDnBI\n/Ry0zwd5VANaTqodPehfdUhDa7G6zmOn+czCVjS+y+bQT5/MhLLyUB3QiZpv\nUfH1aew+1xH0m0Amp2lIhMcJ2s/9QACJ6pGfQV966aDJtXhubfmx6QYCo4bK\ne8mB65HhfFOCjR4XzJvINydeLRJOoGvQQZsTNNBkHISa9Ps90QuxgiriYXZl\nIGa5FVaASzU410zMjjJFJY06Q0OwmgqMyBGIBEHVh5yfuo0oinwzNlGSfA9Y\nvI/0kjoxt/J0O77QfHb4hUr+u6v/sa0lvi0LBAvAJdYMw1ff3XcC+lx2/yQa\n8MEb2XqzrgAnzRHN62ghQva5FRZ9Occ4gx4nkcZkbo8skVXgSE+pV0C+PPTZ\n/cbkCnUkhtTz42ZMP0c4ima6ePSXavB8kzCm8xq0eJ29h8/nHXPDxp63QXzG\nn0X+\r\n=/4/Y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fbdc53421d5701ba23a43e18a010bebd179dbae0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.1f318ff0f.0","@material/base":"11.0.0-canary.1f318ff0f.0","@material/shape":"11.0.0-canary.1f318ff0f.0","@material/theme":"11.0.0-canary.1f318ff0f.0","@material/ripple":"11.0.0-canary.1f318ff0f.0","@material/animation":"11.0.0-canary.1f318ff0f.0","@material/elevation":"11.0.0-canary.1f318ff0f.0","@material/typography":"11.0.0-canary.1f318ff0f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.1f318ff0f.0_1612569963957_0.24596240623821197","host":"s3://npm-registry-packages"}},"11.0.0-canary.ab12cf7a3.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.ab12cf7a3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.ab12cf7a3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0ff06bfa48b5c3158611bac727b52d1ac0e845ca","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.ab12cf7a3.0.tgz","fileCount":45,"integrity":"sha512-PfAIPJbO3tqfIoY7WmiKHRDQeCQoFaAUZBBC5EBq3P7KMZ0ndvy/9RZQwJXq0t2OQxcCnUBXC52aj/fSfevmbQ==","signatures":[{"sig":"MEUCICWvWxiFrJIILbzi3JMhzNuQFhPJ/oGUsr+GMjaa3iqOAiEAqynHrGfQlEqrDGEn3L3+WyzVrMnb3mE74FOFmL1uQO8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091499,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIVMUCRA9TVsSAnZWagAA1YkP/RRff7fAWeKD0HtZW31u\nekD5155Xn9SnXDndekiFb8AtZCKgYqnAdBJCwTFJBwoBz7yyJwxWzvXTsViZ\nU5WemEwlzsG+ilTonIIhBBtWbEV2sWCpCSGxILCBIqLdE6WAF6n+UcBsEPp0\n7wgTshLDFze6qlBrbz0gVNiRUnpx9+KyC9tXcTgaIjOCjBtkboU9xfuIR88I\nz6Mrh/pB0pEc7UMELL9rFQ/mZiMLPGZuz6tvy3MTLUx3vYp/0ymkvqc50QBX\nT2pgjJkRiFQHF/4xRz1tm8u7gAz3Ut3MKAQCj2uSNRTwRRFOJxzRQLb17UeH\ndQC/FBxBRGQZxng4ckT+r9EBTWZHrLI+KoN4OiRkhR+AOv/Plw/0/UgS4v8N\nPhqHlVm9DVKOmDZNIfKFCdBYo7F3HBnA2X/ilAifhr+j7Dj853AgAAfW8+qs\ne4/FJ3fex3sHE+ksvpvJgT4v3T0JWlMa+ToOa6Q3aDjquzBucRIj6XVMdBCv\n/3Zh79FSs3ONXCcI+8FrESlkm4s6gEkc4M5H5L6C/YQTHypxvDigVfHGRL5n\nBnx7qXwLhp/tPitA3ivYB2CGPZw7MxQsrzRM9vHrSfGtgLYXFjzsJLojFI7M\n2T4EH9F5/sFk6G393l7nrQgpO0Yr6pN0tVIPvAryQ+yY/myFWZ1ZP+1TwJAf\nXPdZ\r\n=JEgc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b1cf52745607ed664e2dca58a230a3b3849aa273","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.ab12cf7a3.0","@material/base":"11.0.0-canary.ab12cf7a3.0","@material/shape":"11.0.0-canary.ab12cf7a3.0","@material/theme":"11.0.0-canary.ab12cf7a3.0","@material/ripple":"11.0.0-canary.ab12cf7a3.0","@material/animation":"11.0.0-canary.ab12cf7a3.0","@material/elevation":"11.0.0-canary.ab12cf7a3.0","@material/typography":"11.0.0-canary.ab12cf7a3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.ab12cf7a3.0_1612796691699_0.7994993130797283","host":"s3://npm-registry-packages"}},"11.0.0-canary.98db2c5ec.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.98db2c5ec.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.98db2c5ec.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"52ac643f2f2bb70a17e53609027b6beab0d34ff1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.98db2c5ec.0.tgz","fileCount":45,"integrity":"sha512-HVq0q6kD31zqSJzfdK8T+CKkV8Z2WxEHs+IVERPZVAvf7IZ+nMqOCNaDpLRcb1vfHteUBD6dbP42zUlfhJoOCQ==","signatures":[{"sig":"MEUCID00W9kzrFRQh22wUlMkKr/4gUPIbkum4rvPlfbYHAw+AiEAoX2P4Cqx2g0DIBHXp1y2Swt+wCtPuze4yA5nAzRDD14=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091499,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIVpeCRA9TVsSAnZWagAAer0QAJNokikreWev9rTojOto\nO45KZ4N2iHO21hJYtKehf4AxDNmRudLv5uQxdNqkqZouP7StaDJpi9CFoQ9G\nbadyJ864BW1GhZbzGfKB/RUtU5ktxvRoK7z8/EcLxMAhZ1RCALbSA/lIBOsr\nojOxYdI9N7owpO8ESZhVnfO6lkoKcr9CGpfsollHmdyGsXv5WrrkwpNPjR//\npIx6b0+TdvrGP5neuoCLnk3WabgJ1IvTrCANRjW9mo59LS+wtR38VxNnf9PQ\ntHkFW0C3Rw+MbIVtfzMJPuwaAA7qgOuSPkzTpiWsRAsDy+gBF21DirbfjheR\nfi7Xyl/w9Z5kInLvQcCFnxGQXCy+RH/oEYYv69ODi2i7EY/3dWTcuB0uHI62\nGtcCGxjcuYJtqTTNDf036Nu7yC02whMUkOxVIATHY59d445Yff/YjBNIbCN9\nLMrnPIgkEU9zDYvoMLLY9lx2IHOwqmQgUrxHitDVAukypOE8EcCKC1Tnwy56\n5QfqJzrJFVc0d99vuZZu8tyrj0JVszFpIogYYGzel7z8x62Kfn9YymIl0Tan\nAO60R72H+IbG1VM7boEgst1WeE7oD9iOb58gOc/1Q6HyW+31GBfKiDhrQMVX\niaafpvLWAHp17ALi+Tr6UQU8+zScZORVJgByzAUKR45tLRQYRI7An9CvCBhs\ne9dT\r\n=BKfv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cc1b9da2cd7b871fe0f5c8370793e0ad9b1a5f1d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.98db2c5ec.0","@material/base":"11.0.0-canary.98db2c5ec.0","@material/shape":"11.0.0-canary.98db2c5ec.0","@material/theme":"11.0.0-canary.98db2c5ec.0","@material/ripple":"11.0.0-canary.98db2c5ec.0","@material/animation":"11.0.0-canary.98db2c5ec.0","@material/elevation":"11.0.0-canary.98db2c5ec.0","@material/typography":"11.0.0-canary.98db2c5ec.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.98db2c5ec.0_1612798557854_0.6259004055726058","host":"s3://npm-registry-packages"}},"11.0.0-canary.1f86b9f6d.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.1f86b9f6d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.1f86b9f6d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a4ad3c9af73f320e68bff9e9fb363c88f8adef17","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.1f86b9f6d.0.tgz","fileCount":45,"integrity":"sha512-bszteQ5JIC0HpDVqEJGnXE5bbItuAUatHbyozsZld92+RxAB3enQ4LxnNgfRgCyTp6Cdg4emRNmj65DZUR22nw==","signatures":[{"sig":"MEUCIE80HBmdjgBN098ThB6Q61/IEKoHgcK4xl/IbDhxZLdFAiEAsyMDZ7nZYbM+E75GUX8MrX/P9pw9zFsywirTD+VkQTc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091499,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIXJuCRA9TVsSAnZWagAA4bUP/j+yxmeOAV3DH7o3Jgnm\ntACzuI0w1bt0AWCOuvPtEQUKcCHOSwe9swXULd+0shvWCixyMRjPZOmgpzP5\nLe68iI3FF49l1T0IHWuGMkkS6vFIxPMnai7FCXEWt2EiND9T3NOj1E3jY2AR\nV7KHbHPluUIImu+Nx2oyBZjBwnajaZbL3ilJeT9mBL5GcRIWvl6eT1cK3N7m\nVxvilhJQHshaHRDDF9p53Oor5vPXCEki8Tj+wRPtSfwUYeKSuhP8/O/QpfF5\niPKd/Y5PnWaGDmSc3OHyPxm095+n23AE6nd45rFl69E/fCoXBOCQIY3knqZ4\nYl3dXTXo1GvgUBbcRVpYeo+nU4UGNfrHq0wKxf7Y6tmSAK/n+bNKMkff1KB6\n9tVyd/n0FI9rO3GaaN7wtfLy6TQtIaJqoBw6Mfymmsl+OeOJLzXKJPF5uk6c\nnwvDaYpfQRZSN2ctDMOKnqlX6xbeecbjZMPU3zjziSalU+awNXTzw/kJhiOW\noMoz6VrUeHiGYBp6QizgBJhZwEElD0zFfFSyQLeOZzBnSvwMsaxqGnvS9yAa\ndzcLEp0ncLH/1MNvBk9uLyaVygZd6lkSZQnhaeqex2vo9ZQ9lgL/rEnIIxuJ\n25DUXd5fPMmq9er6tOF8/EZU2uh+vzVbO5B/y4c/DzMCQAYQCytwvftQXNDx\n4Sy2\r\n=AjFy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"aff88a7d3786743558ecb0dabd92c225698d2b93","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.1f86b9f6d.0","@material/base":"11.0.0-canary.1f86b9f6d.0","@material/shape":"11.0.0-canary.1f86b9f6d.0","@material/theme":"11.0.0-canary.1f86b9f6d.0","@material/ripple":"11.0.0-canary.1f86b9f6d.0","@material/animation":"11.0.0-canary.1f86b9f6d.0","@material/elevation":"11.0.0-canary.1f86b9f6d.0","@material/typography":"11.0.0-canary.1f86b9f6d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.1f86b9f6d.0_1612804718351_0.3249281541295457","host":"s3://npm-registry-packages"}},"11.0.0-canary.aac8f5d9a.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.aac8f5d9a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.aac8f5d9a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8055e3efebecfa8cda899f3bc5b47c774d1dd40d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.aac8f5d9a.0.tgz","fileCount":45,"integrity":"sha512-Ce6n1nY6xbHd5SdVk4QNk2a9YW8RTzFFHjG0A3eHYMLXFM+6w0hbihqOT+MbeRpfFUSA6ioytO1asP18NFWnDQ==","signatures":[{"sig":"MEQCIGD5P50sNsrmcgGhav3VMjPGpE7J8xQI1/ZgsGG6YQAmAiB9hVG0njG2ATn1Jpg26EKehEsVBfXIb3qSiJUKnp9zXA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091499,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIXyACRA9TVsSAnZWagAAwfwP/AuwOPd4kHETe1ChRhzj\nWG6uqK2F2lpLokO/4/cMn3Cv4PVQ0xVnHrZl91/pIpsUU/irzPZj6rNt7wHI\n1hIi6iw8hJt7cwjtCJb4jepG1V5tfbXA4PLxZxWJYEQCs/PzMwtfjnnYq0fB\nYsvbNdKg0b6Ks0vCF1djYAcse3q080eMa5dA5gVqH+axwNGFSvnp+19xd8so\n63FLapaOkBR53A1SCl7iFtBVtpp3U9sp126cWyX1rSCrB5DCunN98xj/YEfP\nurvML5vHzytOXR01jNfnA658t9Nm6dbFWfE09WjlHNY3Z7IryEo4nGwU5kOn\n0FHrfe9R9XSbksyt7myC9PHhjVQbDT10mxrusSXWlEQwUHuLtSnXAJUyt6Zr\n0GaqN+BYUESPcTE5tPDPV2s9la6HM7TwHiAgaGZqBrUkSoxjv5ZSIOgu/Jps\nn3Tz4MIBVqp2Rsjok9DSnTG2f7BtgHdBUD/NGf2BqJKrBwiRXPG/Bd3HgfTc\n+32OZ93pJ4gm1h++MAQPSjAiEMuMD5aWFUgFRddxI2xEslxDB/AL6EiA5DlS\nPRIoGuI4S53EtRegpty2n6RETL2lhrFnmkTr8btvbfApQCqBLbQk6+rwmI5s\ngFF1vo2abdYGaXmqym3H24u+U3MF8M6A+GsL0CVdcYRwCNnv+DH/dUcc1RIU\naDA/\r\n=BlpT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5accfac22392cfbc1035dcad920093851b33cc79","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.aac8f5d9a.0","@material/base":"11.0.0-canary.aac8f5d9a.0","@material/shape":"11.0.0-canary.aac8f5d9a.0","@material/theme":"11.0.0-canary.aac8f5d9a.0","@material/ripple":"11.0.0-canary.aac8f5d9a.0","@material/animation":"11.0.0-canary.aac8f5d9a.0","@material/elevation":"11.0.0-canary.aac8f5d9a.0","@material/typography":"11.0.0-canary.aac8f5d9a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.aac8f5d9a.0_1612807296091_0.4146403174241866","host":"s3://npm-registry-packages"}},"11.0.0-canary.750e18fc7.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.750e18fc7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.750e18fc7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d26153e6874607f0bf7fe625333a0c216bdf0f61","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.750e18fc7.0.tgz","fileCount":45,"integrity":"sha512-QSkrfwg/sJvPGgdun71LI05ZgjzcJlPNFvyXWpYShehdvGmqRsGlELF2J88RNzM2S3/97ktSOJGF2VjNFLlttQ==","signatures":[{"sig":"MEUCIQDvDhF1Y3rs5cQityuXPQ/57kC/94mpWwYMtypn8MXwvgIgMjFDzZkTDP2V5UfYZMpzSpybOr5gqkWJu/tReTuMMVc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091499,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIbBDCRA9TVsSAnZWagAAO74QAJzejspbzolj88wIcdSa\n0MsL36NLDHe3weMWRJyFHWx3CLakD6mTrKb5hiH0KNHZqaLjdiddtX054K4q\n+3yrb65Y8uYBf0mC5ZCGfNjQRGiYSKJTbfCa3B2zohjVCYdRVfnem9ln65Pq\nKyI8FtvIGa91rJZZ6fgy6X7s+NIPs3QvX9jEd06594V4Uo+6TsbZ8i3FAigD\nif0tzyBOWnm/HB4KfV3o9KOw1sRyim7DF4t2d1JxbiLBe1J9uYDW/TxTVN8L\n7O0AXhj4inWE4O0AeaSW2D5W62gvTHqvpN7ae7E16cHazjzsN5dU4LrhR/yZ\nFE9d8n/EDqr9NEbUL7asdHdP4SDle/uSuCZoDV846F6rsFS5/1b/G32yxrWl\nesCDeqMQyJhM8ZQJhDvZQ2jmJ1RRN0I+49qt8TJH9AtDpkZD3SjZyD3GS4fW\nT12Y0Tns5kPevoSlSCJScpLg7sb409f5IuoXHv1n9LD0XktMGxRiRuuatgD1\nPxByFV5+5E2zFevSEGiCl2c8ob+zb+lzEnwJ3eE0D0oTj7Mhl2EYcrfflsZY\naB6vMDDV+EQ9aSYXjz9nGxtFJV9f1Q1Dc4rm/1BiMdxYnYmv4sgru3GlPbFo\n+heSzq0icgQ8/x5dW3iLUXukWRfQNfLmeKLBKgdT7D3P0KLLWFGtgBhOA2GC\nwagV\r\n=1RSP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1bab3bfc895c50d4159c7b24b69d3ab3a7eb9e72","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.750e18fc7.0","@material/base":"11.0.0-canary.750e18fc7.0","@material/shape":"11.0.0-canary.750e18fc7.0","@material/theme":"11.0.0-canary.750e18fc7.0","@material/ripple":"11.0.0-canary.750e18fc7.0","@material/animation":"11.0.0-canary.750e18fc7.0","@material/elevation":"11.0.0-canary.750e18fc7.0","@material/typography":"11.0.0-canary.750e18fc7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.750e18fc7.0_1612820547140_0.24201418083025494","host":"s3://npm-registry-packages"}},"11.0.0-canary.b62b1266d.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.b62b1266d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.b62b1266d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"33e754ab26d535cc9e0aa40df01691257bf8cadd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.b62b1266d.0.tgz","fileCount":45,"integrity":"sha512-fw8JeiA48u2n0rDeJr3dZqK3WijVJtDNvUDg3X6J+P8Hxp93bT06KivGpGl+VGlgLnkTCJivM+zBNNfSUnlJqA==","signatures":[{"sig":"MEQCIExgH9HJ9SV8DKHxgGnjaN7vql0/6Kvgju8y4nypCULeAiAbj1uapmFtPGuhPtLDpcLZ9weTpl2GSwtAQQok/SMVjQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091499,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIwRwCRA9TVsSAnZWagAAfgkQAI/N4Hsab8GMxfgCn/bP\n+uZJyKUMQvA7F4AtHcF/fPa2gjEYYx61G30vR1vYmD2QDJsNqlkjJBG4cLps\nnQVFbM1qk+cxH+vPtOJvy059NPooVwnW3tiSMzEMP12KjTOedRgWrXrjb5S2\nShZPNFp8zA4G2WKE0xFNbxynow3MBAqi6cJdr8srVNr3+Na/afu5ihHNw5KZ\nyTqDT5rg+DqCKM5vZETrA+AxaskGxQCh5JuOFN7j3FqHSxYQOClwb/xbnG+y\njpYhL7Z2PrjgpFa7u7naZYbZe979YHJ+84ewOoG4Eu+fx5ac4jBnny880iQb\nIpcznZO9QbGS0A5T4bwGLaTSIe9djF3E3kHtAMJuimEz9qF5gIaYLdPK1Yb2\nKFshg4BSmHYZrHxiFNQKzl4l3jonHh6w4iQubf0P5wig2AlO2RmuunfQRhqW\nRlcngnNJzhCgHPJFTIUWD7y7O4d69FfY4GdO7NeYMZdw/e+W8QNlcLVo24y6\nNW4o0/8Ow4c0r/7eewlQextJ9ZuHaqYDxC6ApuuXXNmxbjOl3TyGOdgXIG0G\nCLBFb/kzkJjC7+btfSB7x0tAI5J2/0YnoIMNijBNlEbsS2NPuGpxnyHN+fnb\nS3ceQR20K7Qnq2yhDxq1tDcn8IgkMnybS8YSl7emGN8OjigsLhVs8PR9ZjlY\nZmOH\r\n=44Fn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2369de5a28b7ff8c15bb5f1b2ba96320e8a9126d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.b62b1266d.0","@material/base":"11.0.0-canary.b62b1266d.0","@material/shape":"11.0.0-canary.b62b1266d.0","@material/theme":"11.0.0-canary.b62b1266d.0","@material/ripple":"11.0.0-canary.b62b1266d.0","@material/animation":"11.0.0-canary.b62b1266d.0","@material/elevation":"11.0.0-canary.b62b1266d.0","@material/typography":"11.0.0-canary.b62b1266d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.b62b1266d.0_1612907632259_0.06868118642507848","host":"s3://npm-registry-packages"}},"11.0.0-canary.a6b3101fb.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.a6b3101fb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.a6b3101fb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"adc1aa2461c117491bf46f4aa9ce3b10ff18f837","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.a6b3101fb.0.tgz","fileCount":45,"integrity":"sha512-FA7Wb0JpkXAVjLRiP2LOOBMP0sKcOf5cJNd4mNQj8ZgCz7VJ2t95Dar4HVUr4lCgxsNrINVMlfqRBicDzDptuA==","signatures":[{"sig":"MEYCIQCIoo2sDfcMSGYslDjkxCs+8VjMeT2+AvWf+3bQHIPCpAIhAK2NNVDdPMm2h1xcCBDSEuUyeqJzyhlgVKDFtAFEIjft","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1091499,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJbstCRA9TVsSAnZWagAAAfoP/0c/jEbhOfMSzNv1aYu0\nY53S7bgGN4J37gjrfBFBoe1VeIk6rO1iLfkiJI2Tu3QVF3bmGpnI9UEXya9Z\nU6ji7gVlFuV7D1lRz0+m0tZRE4L8S5BXQ/df//i5Pd+PvFwoD5jPnvdT8xii\nLWP7ORZwzvTJMeplxs5z2COlD4xjh8fj/eYPojubEahuOXPd6psMR2GM3SiV\nY29ZnYe1Dh9her22SsMPYG3EBR0N0zl7K6QUHF/pA2LxG6haWAaEdVB+gxYU\nx5WJSoLU/b/Kf1n6JLn2Yv6xbq0dCZbVMl8pD/GUov7plvMXD/E98oNhB4QB\nqlgWM9SduStStMmXf9wxvzJcKs+kvDSjgp/iVUwVCpIL8ogs0NszM1AB6ub1\n1WELs/4huY6nZy0+kbtlZupCSiVJl5Yzr8hWpeG0ZbdqrIZYZbbZxr5QLQtI\njko7I4ijWFLKevVVBkVvkurbaTKIuXuxF3QdFnuY2oVvpNkauA/2owsuIxH8\n52snckXsKCaHzrR85wi1DoB48UoAF9c32C1v2RsGOyK1E35tpTsQRW0bXLnl\nppVBKkVPRpqqqRNsf1GlEuq1uRb6lNxmLJTCFWIUiVvzlRhHE4KbBvmw3b4B\nwhexyUVRcPL8xsCaOu1UUMtCjlj+yFHJp48sgXcjRht3mP963jrIAIX0PiqW\nvb4n\r\n=j2Ml\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4e94d35f86983ae07d81d1c7893ffdfca50c2afd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.a6b3101fb.0","@material/base":"11.0.0-canary.a6b3101fb.0","@material/shape":"11.0.0-canary.a6b3101fb.0","@material/theme":"11.0.0-canary.a6b3101fb.0","@material/ripple":"11.0.0-canary.a6b3101fb.0","@material/animation":"11.0.0-canary.a6b3101fb.0","@material/elevation":"11.0.0-canary.a6b3101fb.0","@material/typography":"11.0.0-canary.a6b3101fb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.a6b3101fb.0_1613085485382_0.7634875499605998","host":"s3://npm-registry-packages"}},"11.0.0-canary.ed88df700.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.ed88df700.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.ed88df700.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b3d1e016bfdfa6b181e470e0b5e0bced03f1faae","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.ed88df700.0.tgz","fileCount":45,"integrity":"sha512-8NhO4QRbKf5Jq4qj+A6BCz8Wusauzqr5Jh01zEgWzHyvMFpj4GG0YQ5Z3SxXN4Mx8VU2ihI5fnMsNr4BTpFYyA==","signatures":[{"sig":"MEUCIBZW/m7GLuc2WP+Dlud9aloCS7R+Jh4rIiQppLvMd829AiEAzALu3n46B2ipZvEZEOW0mr5CmUGj+zjqHGhq3HgNj60=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1092109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJcblCRA9TVsSAnZWagAArMwQAIaoXpsagkh+m0ttXvjl\nusEuFVm2np0BdgQRsKVX8OmDVnUrOoEB9rORdXTmGG8ngEdS4wWTyVqkYNVz\nk8rfvJzh2eDzeI6C7IHHFC0ar3qUY6XKdcx2msrJVknnrMiX5gtkwgBIU3KQ\nCaRX4ArhZ0lwKFaHx0yK5lthUo5lzEl21xZm2i8SdyluehO7dLQe+xqqZho0\nUOHgOy+REz+xmVWicqEehB5NxRZDyDErh6ne3RBheSR7aJsvHAAP3H8vX9Zc\nZpFxkL7KUB3yLe0xz98fUhpWEHMsZQzEcOOsYD2XXEJmsgB9moite1SQRTED\nNNpDD2U+FJYtKNhS1K1dIzzBgyHniy1NwsOwjkP1c5bixACshIqcDhqOl2VC\niScG6BFVMpeHpiUozYfYOIsqfGMNlbLHEA9v7GZmddqF5iOy+kyj8dUlswD0\nkdofjv3+Yujh9WPyZgIfCyV8UpNwotqVjDBRsFKJ2arJhcUAp2quRT7YqFRn\nh9saNtRs+PSWv9X9pxxk8OnzmErPT8q/2lSa9c9pG0RRVBLS3vICpA0g9ibQ\nNqkOvjKSUcGHMo862dJtQxG/ftpWWjdVOVEubLav3A3qqZ3hkKvAxD3K/Jnc\neXBBB/UEvl3o2nk3c1mA+S9sJYeZShTx1WAE1HsWSUZ9R7N69ZX9I53Bxeh3\nQIm8\r\n=1YtS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9ee8b051c4fdfde9d63ea193e791d71e20094867","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.ed88df700.0","@material/base":"11.0.0-canary.ed88df700.0","@material/shape":"11.0.0-canary.ed88df700.0","@material/theme":"11.0.0-canary.ed88df700.0","@material/ripple":"11.0.0-canary.ed88df700.0","@material/animation":"11.0.0-canary.ed88df700.0","@material/elevation":"11.0.0-canary.ed88df700.0","@material/typography":"11.0.0-canary.ed88df700.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.ed88df700.0_1613088484789_0.28059752589539366","host":"s3://npm-registry-packages"}},"11.0.0-canary.d30efe6b4.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.d30efe6b4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.d30efe6b4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f0b7bd8c72fffba5cf3bf7abf3739dd394f0fa84","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.d30efe6b4.0.tgz","fileCount":45,"integrity":"sha512-EU6JHftgKECaO1NltznHONkJhNoFUmr2PFvjUOpYkbtg6dRYyidhuTeiWyBSlgsij9WoBnPGLCBTAE7ZXnRiOw==","signatures":[{"sig":"MEYCIQDV/OipRRk1pkBeJUufRaaMYzBPvFqoZajyQCm2ow7wuQIhAPPGK9veT/sz11IyjLx48rBeBwwQtkA55X1y9nBat3/o","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1092109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJes1CRA9TVsSAnZWagAAmYEP/3dnJAfUFjppeHaACS5P\nRWNddSD+t9+DIJrIBXGw1+2iw5HCTzmVvv/1vFqV8ReZNvGxkZGDpTW78GNX\niNp5OtLCTAfBkBQg9XJxUcvLRRmqQHxNG3pn4/LZn2qQTulS6112HBU3wbiE\nmEuzRmaokp84KQuTkfSLBQLpGsnHIKEL9Taqcfaz6+j3aGOe/zNJfbUHz+pz\n2p6v2h/zQENNK7gxgrWQExJsnk3PTDTT+LXJfWfn9PUC8xSL4kuYOo7QHabU\nnAA9emJ5RbZD0ROBW6WDNo1OJ/6zTffyH2Gd+9ZK3HulfnReKc7q5UAp0rh8\nYoqDHLIM41QKuWqLXq6debVNLocnJkG5Ghl29e2nXz3UfHwWvrBoZijeh7vK\nOsTOqpUTQCsGzYVbkhTLjhIOml6EYxWmGAK9MIGpXlEkckeQMlij3J2D97PQ\nyuGkxvV49EXuvwcOMpckfpaL5zpvsqhPWtNcrdTOiNYsV7A3s2NQoIR/c3+X\nOwDr/h9NH4NYFd2hXd9Hg1B476SNB78B/IB9vAG0uF+qN5CxQAnjQqj5BXeC\neCS9vdyoGRrj/Aop+deU0OP2yMPoq8JC+fQisPg2pD2Wf2ZrkHdBwXNWyDLF\na5r5V9hhrkkdn0604dms+z30b+SMuz++k1obthUFB1OTG3c2pja+M9JIDniz\n4OLB\r\n=UZKQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0d2a46d4ab9ca5088511e4e0b5cf2b261e3e644f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.d30efe6b4.0","@material/base":"11.0.0-canary.d30efe6b4.0","@material/shape":"11.0.0-canary.d30efe6b4.0","@material/theme":"11.0.0-canary.d30efe6b4.0","@material/ripple":"11.0.0-canary.d30efe6b4.0","@material/animation":"11.0.0-canary.d30efe6b4.0","@material/elevation":"11.0.0-canary.d30efe6b4.0","@material/typography":"11.0.0-canary.d30efe6b4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.d30efe6b4.0_1613097781530_0.08107530311087618","host":"s3://npm-registry-packages"}},"11.0.0-canary.0393bdc4b.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.0393bdc4b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.0393bdc4b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4aed4193e3e22872750af7c17507614b01ad1c71","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.0393bdc4b.0.tgz","fileCount":45,"integrity":"sha512-s3y/24I2FljNa5mrpWvJn4TaN3fJVZPnmHv4YPzsC6x/QxRK4boELCdyRbwKa1p8ltXq5xCv/P1LgQGUsNX+Ug==","signatures":[{"sig":"MEYCIQC7OvAUKU911g58YtKBqwmFhaW7EHpwHCN3yR7yIU+FOQIhAMKlJ7JEsSgO0laW4W3uAUTdcUsfRnictv1cW2WmTs4N","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1092109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJgTFCRA9TVsSAnZWagAAv8kQAIWLZYHJnElJrvuToEre\nEbEFwmrpvQmagV1wtUEaetKP304Xha0VmGCVRapodXUmnoR/DVB/lotzT5h9\nSxCtrP708Wk5n5GDPycc/dncZqnQymN22kxStBP+MRGPwuBHlP7EAKsvpeBP\nMxH51uwR82dTyfc3vwMgjdrGSjDtUmU6JR3yIvBynjPK6TfjGzN6iSLrF7+o\nXicLKev4LpsgqLZmI4zoaNRf0Ceyk19iIcQ4We8gBscS7vAP3E+0eB8u4ed8\nJAOubBfReIzY6ZHWtEK/0pRfO3rLAwA6kIbgVqWpJXhARDPfZcF8p2hS7xp8\nOwipgtiKpK6EpvAJbmxpG3TMu5vA6VucfI++X1jaYq7GZsXtfNYQfqC8DLoQ\nloCpEtJ4pAI4BtkC22uyKqaslc4akr5HWIvjVBujtm5CGP5POybzvwz84qwC\nCFPJ/tC0uMroXR1IVBL1Hmy06ryLLROO90KJQpTb6o3LvJEKhwgTKBFd1mul\nQea5/FKcdr9u1yuNyXos7gBXW8gbHzgikqWyzCKFqtUHT8UwUNHz3ZrNRq82\n9dbzLzaVha9SR6qxO6JHoRFzJIoo9r6EHqdjyVWf5O5lgBRfu0hg49Ye1Nzf\nlMptCzjzxcQpn8o1slHTBicchjxFUbTmTJqABp7XUtbrsmcpj1nz+Nxlw9xN\nTkL2\r\n=zOqD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8f241a2f549ae5b1fefdbb0c93ddadbc1e1705a6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.0393bdc4b.0","@material/base":"11.0.0-canary.0393bdc4b.0","@material/shape":"11.0.0-canary.0393bdc4b.0","@material/theme":"11.0.0-canary.0393bdc4b.0","@material/ripple":"11.0.0-canary.0393bdc4b.0","@material/animation":"11.0.0-canary.0393bdc4b.0","@material/elevation":"11.0.0-canary.0393bdc4b.0","@material/typography":"11.0.0-canary.0393bdc4b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.0393bdc4b.0_1613104325119_0.37658698805471547","host":"s3://npm-registry-packages"}},"11.0.0-canary.7cd26af4d.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.7cd26af4d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.7cd26af4d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c8de05196682ffa97c1364a1545b16398e13148c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.7cd26af4d.0.tgz","fileCount":45,"integrity":"sha512-Kxb+ImJiSQNd+Ffdd3alOb5uYl/9+5jn4C9km0tG+wEsE1TrxMXqiz/PKQCP7rgJVifObesMmAh75pV0q+ZG4g==","signatures":[{"sig":"MEYCIQDnFgbM7dcTGly3DT3bXNzpPYrGxDsB2FgKWYtmk1rfoQIhAO+p7D2wvs5cvbb2lR6JFz7eO0mJJ3xcZ78ctL6X4+4P","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1092109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJqYlCRA9TVsSAnZWagAA3QIP/i4DA1+QE57lcwO7OGdi\nMZmDG6v3LDFzFCQUXqpKTWWTx7nzYnHQhuXVOjdrndh1x2iG3rAHDxisr16R\ntXm0/O1Sxp+qmy/1yijX9JTY0+0ZCfyQwIb9zv979SVDi7iQ/XaeuxZzjBks\n1uneT1lq3oFsV/veKVfeTb7+2b15n/eq3OD6KRomyKwoQtnDQ1/1X0Tl+V8U\nyXdDAOY+MeOAGxbI1t4oTMZuN5LWLCT1DlmmTgV0ZCD+M1Aub+DkGwFybJef\nMu3sznI9WDqX7Fg/QpEuM1Ng9sRBAcm1Zw/jvp6fhcD8DT8CE67jJ2YMhWU8\nhjF6B9wuuL1mKPiuG5pvQEqgF+rnAukd3URoViDxGVX1KRkuKn0bAvleEHyx\n14RMTBGKEBJAJFOBzz4HnzJWOCCVcJXCfQIkmr8pGbBlnBDYykcsztEKFImV\nKDCF7t19jYitPg3XYyauS7W6602WRVbraj4W/v1+Nw3Yy/UEVyDFFZmaCQK0\nmjYY48notYSO8xJje+HP/Iw4f1278WyJffS8ZkQkoR/4/kQWgmD4eerT+WMk\nFMrLWUFuFb5Vl5kjd5uuCPfo/mAX+RsiIFBTKI48sLTly5sdOLz3wTFBw9oI\ntkhxg52c9y3VFiFXa4DEtKkqs/f3qLegvkxdTf1g4RYoBYrnchc0lS0smyx5\n945X\r\n=jPFE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"da78e237011a9e38abc623fed26601ad22a7426d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.7cd26af4d.0","@material/base":"11.0.0-canary.7cd26af4d.0","@material/shape":"11.0.0-canary.7cd26af4d.0","@material/theme":"11.0.0-canary.7cd26af4d.0","@material/ripple":"11.0.0-canary.7cd26af4d.0","@material/animation":"11.0.0-canary.7cd26af4d.0","@material/elevation":"11.0.0-canary.7cd26af4d.0","@material/typography":"11.0.0-canary.7cd26af4d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.7cd26af4d.0_1613145636590_0.7397337718948183","host":"s3://npm-registry-packages"}},"11.0.0-canary.71fe9a067.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.71fe9a067.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.71fe9a067.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bbf0f20798cf21c8ffd22808c68aec0eebbd4aba","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.71fe9a067.0.tgz","fileCount":45,"integrity":"sha512-LciJlSHzvwTN5UdSeQD8lvxreG6wqKqiEGAkXHQJaWPqUHZf+waAo6aDlG1wyUf8lo5JN8CGWx32LICf4ERq+Q==","signatures":[{"sig":"MEYCIQCS4WA5GcZsH1l35ltLJ7gWj6Mz7PanlzK8ILpXyYjlbAIhAKPf9T1sWd06cf0dzvnNTqxqRvPX4s5KQyoftsI1TecZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1092109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJq2BCRA9TVsSAnZWagAAGe8QAIZaOqDj7xmWpf7ROZGv\nYSrMxhyMy2C5ED9kHgNywYmupQVaQt+82mIDykT86lki3WDG+5FEdVxQmxbc\nVC08Fta9QBpmg2pr382U764kGwjGVfza/4NOW0vuqOtAYYoaosnA8ZTOMLCh\nzz50nzTjJJYqw2d0cE/qmyWzlqv70BWai48k6FNaNcgZeO0Rw4f+aGhen8JU\nupbB/2cSzittf18ePSkM058sbmEN1IL/J6BTnR4knJX2gykPMCGo5kZ+HQur\nZmnYvahdOWtFAG62e7b4QZz83aW2cvq5Fx/O7T4Rt3kno/YuAiNYbSX6hBlv\nxcRUkKf81O4E9BZBNxzpyoMxyU4iH7gqjLl12ZVL5vAioftGsu2S5lrTNSDu\nd3KoEGPQbPsRRwOIWXKy8XqwKVNwfR8y5j+j4MmGLSonmI3U/dsTMzB3Y9/J\n/2fKh31WUxoJLz7uz3MFqGxngDzLSgMFiYn5aHsK7z1I8wEHMhgRJHyaKZrm\nk0aYq86YmiUxg+11ZvfT1tXVMM5sGRE6GVnuVuGZNe+HiwKr2gWVN9tb2k5D\nx61NMWFOG85S9bwuSuMn86dOoiSqy/j+QH1tBRz5d7tyHdGyfMpVx96eGCeC\njQ9d4s8Ood27b+enOVc4m6hj+tUANTX6AAEH3lOZ3giJ2/klZ1cMe/ceNkzj\nVPFh\r\n=8PbP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c79890da6d0bcf08c3d7c57e31df805b50394019","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.71fe9a067.0","@material/base":"11.0.0-canary.71fe9a067.0","@material/shape":"11.0.0-canary.71fe9a067.0","@material/theme":"11.0.0-canary.71fe9a067.0","@material/ripple":"11.0.0-canary.71fe9a067.0","@material/animation":"11.0.0-canary.71fe9a067.0","@material/elevation":"11.0.0-canary.71fe9a067.0","@material/typography":"11.0.0-canary.71fe9a067.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.71fe9a067.0_1613147520996_0.28569160410596806","host":"s3://npm-registry-packages"}},"11.0.0-canary.0fd56a86b.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.0fd56a86b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.0fd56a86b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"17921600d343de3d57a823c5d6a9b5ac40ffde2c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.0fd56a86b.0.tgz","fileCount":45,"integrity":"sha512-1vxZnuJG0m+NBq2Sc/VFXPB9Syrqhigvr1qtol5MM553BQPWmrweTNKrI5m+AI1/1L8uXyGU41GxYmWhDeVBAQ==","signatures":[{"sig":"MEUCIHdz5j3Ke9Sf0ND4e6/u5VM/S+oH028GTfjQcTi2mpRUAiEA/4oLXeDSJPGwwcdGe78gFBJVilxt0Tw3ebXSgMKrK7c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1092109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJxmDCRA9TVsSAnZWagAAhvMP/A1WXPYOMJnVyO8KJVGh\nCwHyzToVbUNR2AvauiTpUoR2iQC4VOLt9CO7ok8R2we3O7AzG6LerXaYZ+wH\nJBXSS/SP+DTibwO1+DbjFb61lyhZmmVqxlyF+VCKn7AJEWviE4HlrH5wJFna\n86NxK6AYWtknavjpu7CwLJ5Wraoeh+gpLVokAzWCvfIkmSSZbEC3HXETnQk+\nTOw6+kfqBes6Mfei6AyhmK2IDQe/Swt6t8E3S/86OWJenlMw3SsVMbWiY/eH\nqXl0w3Wx2ifajBX7lPerFaexThVYzL3X4JrqauL+516AcW8Gb04Mhakc3twj\nDsE86gbjYxih43dNWEZvzecjb5jJs+g11w+9MI+OJpT3VuTd3mRjdbb0IoqN\n8Yu3CEWAx8C/FwUUOu7QOzRI+fW/PsWoaioJe+7rfXrn3FALCxLuoaVvBHf/\n0Q3xSOyiDrakmXlKaZCtOi9c5u0VEOYvOfD8VE25ORPEvKjlRWHvW2HHzJz2\nL9FmspDewb92U0FvXAxzflH5xOIZcKwOh0t9EcTD7cGF9NkZMlbeuGgaFcOC\nVryzQXXdPY0XkVPiZtoRlZ57sbCZaQgiWM5bF346sXPBm8Cp6FxJYkEYKBFB\nbCihm7a1o3wp4EtZNDryfisWX1OeZ5sfLfo09VFDdmjEfcDVNKG9t45DBk4c\n18Q5\r\n=OqcN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b5d7e78bfa318c864343a15754f4c5ab98160ff6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.0fd56a86b.0","@material/base":"11.0.0-canary.0fd56a86b.0","@material/shape":"11.0.0-canary.0fd56a86b.0","@material/theme":"11.0.0-canary.0fd56a86b.0","@material/ripple":"11.0.0-canary.0fd56a86b.0","@material/animation":"11.0.0-canary.0fd56a86b.0","@material/elevation":"11.0.0-canary.0fd56a86b.0","@material/typography":"11.0.0-canary.0fd56a86b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.0fd56a86b.0_1613175170834_0.7196148487716854","host":"s3://npm-registry-packages"}},"11.0.0-canary.f19bbc4af.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.f19bbc4af.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.f19bbc4af.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0677974179e7931f0b1ea17fb653144614c51697","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.f19bbc4af.0.tgz","fileCount":45,"integrity":"sha512-XgDTtdRm1/2gmUtstDAPGBND9eRW3jhUelAlP2bAsFGZaMAuG9PAWwFEi+KIMoUPcCqINX2sspQWmbKxrtxXLg==","signatures":[{"sig":"MEQCIHfTuz8LuWXWBm1urd0CATAy3RRUEg71HhRWQ90AkQXtAiA0NQ487vejXYUsJWVh1S8XgqpupZ7V5SQ6QSHlieatRw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1092275,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLER0CRA9TVsSAnZWagAAkPMP/0aLPDo091boQUVUFKAB\nHFVXqNT3zhB9+rfqsFjfvU+R9f4crAd6EV7jdmwHbOl3g8AX1V5HXp9LfNVM\nXsvO4I9WcjDbRbBKsQDpsszElTP+59GMgh7aDujI8rFNQeHbrEgajQgTPkg6\nYudGsI9kP06j8Rs93wKaHCyTgaBwexKYB1+bR88gja8/EiB/b3tuLMwXHmEr\nladfzT8yjwcHEdEB3rjsvjz7L3E3+ltWHpNLhW2LMc7YW9RrTwvyZXds4h9u\nZkDF854BjO7pdXZMOkVPUlmSRuybyiwvk7gP3dEoUZEOpSNX2l31nF+YHQrM\nF4fs3eP0z5bBmDG3OGVFE2PkNcZbSqqzKGRi0Tp2v7mPrO5gQTXrYZdlQxL4\nWJj4Kh/pMVYjElL2/IlXekvOMauxZ2xuz7bvQunBs1JEiANz+ix08wvGt6Cp\nnvSXfabkOEDXYc5bw7ux9649Kmw5AeGuNAvZeojWkgYSAzH36V25BvL3TCzj\n2JJ4104vjaBNcRtwZCcX0HssqB8aiUWwMmDhqJtGag6t67IbFZJq1sij0rT0\nzoaQ0gn4zD2scfZugrp5zzshZf23yy31EI65TNS/Q4A8QGET2fvYpNENK5JI\nGfKPnvrJFJ8p/oLyMkVQKhSSviSuUmnIDs0zMvCadtDQQ6Nulw7pCs3NbAYE\nnO87\r\n=XRQv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"842729c260f5a3be9fec8618b41657a90e725af0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.f19bbc4af.0","@material/base":"11.0.0-canary.f19bbc4af.0","@material/shape":"11.0.0-canary.f19bbc4af.0","@material/theme":"11.0.0-canary.f19bbc4af.0","@material/ripple":"11.0.0-canary.f19bbc4af.0","@material/animation":"11.0.0-canary.f19bbc4af.0","@material/elevation":"11.0.0-canary.f19bbc4af.0","@material/typography":"11.0.0-canary.f19bbc4af.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.f19bbc4af.0_1613513844137_0.9852709113657232","host":"s3://npm-registry-packages"}},"11.0.0-canary.f9cac96cc.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.f9cac96cc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.f9cac96cc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2db4f52411a8467671daa425914a28d0dcf55f66","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.f9cac96cc.0.tgz","fileCount":45,"integrity":"sha512-whnIbL0ALvCKZ+n9eUTFZZPbIrdEUmOHwy0mOD8jKV1xscJ9fXuKowfBIJoj2scjOO7jcdBmwZ8rchv3FKDY+A==","signatures":[{"sig":"MEQCIH0s3sv4JzBcyjrmZ9POvD2hmAnLLO81WJP4mWrZKsuxAiAhfoeiSHPmPMPgJXX7vYIApzgBZJ609ahfWodYgzx4xw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1092275,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLUAhCRA9TVsSAnZWagAAh3MP/RdTiHUtTS/L1mpT6Sia\n+an2pRxaJZVkGqeabmyedEkDQ2xocWbPtUS2qfoRqbx/OdcbhHSJcxAh59tu\neSIKENAC+irEhJELvRSZNL6FGnTViPPYjjIFYHLxezZV0glN+AULmXZb1lZ1\ndgTb3t16Ee32XcBsKaVeqMT1kJroIJpF2fMbCyH2D4wDuKOiJBiGOAAa2qfU\n5lJNQ0P9XOJTL0/V7z/GSJiKveOFf/Fz1MKqcAxDTmYu/Hww2rvCoydEOdXS\nlxOltl6+W3rRNWxhmTvyz3B30PzqKc7yQq+D2rQpUa+gklO3bFpW9ubJNeja\njCzLG1ygRdg+j+ydE3Pj4sUQmajuuppGYyeH0ONfasm4a/2CamZoLuWycuvE\nrKP7YBRLpVedBMauJ1RCrLIEAjYnL90lFOAhLeEmsFOHbrWYIrYYRcyKRfQD\nHEV4IcNW+pjWcq+sBxlAj+c37gkIPGuEea4ZI5U//mvKabNAwz/9+r5OIPnt\nKPpv7JyjlqfUAfj9zR3rWurYxy56CTtzMl1tIKcLnLHUJXdO1voo3/gF0kX5\n8S6KWe0M/gf2NbXHqMe1jeweMpV5OeGSUx3BAkpp6TcrRkPaU8so5Wjb8zAF\nYERFS5HMjnEkKp/CEu+LZGrjMXtYP4Gq8dZ5kRDdrGtwiJECZzHVYcPF1McA\nAoLa\r\n=+Pka\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"993e327235c8cd36a8c15095389eb149ada97cee","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.f9cac96cc.0","@material/base":"11.0.0-canary.f9cac96cc.0","@material/shape":"11.0.0-canary.f9cac96cc.0","@material/theme":"11.0.0-canary.f9cac96cc.0","@material/ripple":"11.0.0-canary.f9cac96cc.0","@material/animation":"11.0.0-canary.f9cac96cc.0","@material/elevation":"11.0.0-canary.f9cac96cc.0","@material/typography":"11.0.0-canary.f9cac96cc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.f9cac96cc.0_1613578272545_0.3921128628189643","host":"s3://npm-registry-packages"}},"11.0.0-canary.79ce0878b.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.79ce0878b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.79ce0878b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"986e6af57dbc8156a31a874d5ee3b6f11bebb04b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.79ce0878b.0.tgz","fileCount":45,"integrity":"sha512-8TLTVxX01b3CU7MKf8jgDT6ZucecEY516cG6oHLDTBfuMtyBazecjYfnxbUQovmO6dvc5r8UJPC0wFdyxe+X+g==","signatures":[{"sig":"MEQCIEbNsEZNY40NbRQBPfW7IHuHTiHOtZsd3Pbwl5x6OA4+AiBfDfk5hZtHhVPsfCVX7Sx/okcBjtnbQd8w9wGU/fC8Fg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1092275,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLW3VCRA9TVsSAnZWagAAd9QP/3NDBznKYDe7oW2aoVmv\nc7X7KXTvkXSwxcU0qUldZ1j566Cv+AWgDSPiZgrePKCn3qutEaZlyZqhBE8u\nm+jO1nyAleKgpLLCtYja1PzfKvr9gT0huxygRx3YZmP5OfjbXvG52/F2nvaN\nRAHEgtVvft9FWyt4ly39XyJecdVyU+SvPSbh8mLmr0jts3x9HGQF6W15840i\n8s8cxplsn4WaF4X/fi6rPFijsS9/O7cOdnKTVh+74xVEIlu1J5Db/xTp+y6r\nrabB/f2yWJPo9XEDdCtnTrOVLzImnKZVSNydd+WPovyf2mPu1JLuP9nu2jMz\nzO4dYPSH+AlmYdyIV+5KOZvph0Ivobichynp82rhJK0V4JkcTRNpS/FgTUKL\nSU7tkMcwdFuZNQykK1eDo8wMWshkXj5ocX45+fP+aVgwCXe46NFwVAGwGsnJ\npf4AZdZeFSh66SpPQe6BMu1yLT54puYZzImFPnVbRwtkGUmA2r15nQYlcjSj\nJdJWyxpTsHy0IpvyaavjSEGT8oSo8Vd8NVrcYcroiDvIZQy8uBz9MSIoRLnW\nbyx+7wIYm6L8L/Tzsx7dz5niK1w9EwN7+W3fhvS3kWg1gnn+jAAhWXIusP0K\nC2mrlRpZ0qOHGd175lc5lmcaLmJB90iS9LwNAcGOLRCypWzUdcM3SryF6Xil\nM7OL\r\n=h5LH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3941c218ed650b1d1767cd6b17652d4e1b5f7ac9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.79ce0878b.0","@material/base":"11.0.0-canary.79ce0878b.0","@material/shape":"11.0.0-canary.79ce0878b.0","@material/theme":"11.0.0-canary.79ce0878b.0","@material/ripple":"11.0.0-canary.79ce0878b.0","@material/animation":"11.0.0-canary.79ce0878b.0","@material/elevation":"11.0.0-canary.79ce0878b.0","@material/typography":"11.0.0-canary.79ce0878b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.79ce0878b.0_1613589973313_0.13193573291483962","host":"s3://npm-registry-packages"}},"11.0.0-canary.d6e507b5b.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.d6e507b5b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.d6e507b5b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0d6c8e69773b7b830c00cff1d166ebddbd7ffad4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.d6e507b5b.0.tgz","fileCount":45,"integrity":"sha512-4I/H5y9ZWvXjz5ma4tWl6vTX8L1Zls6pRsjz8mi/xGK8UdVZ/8S2VnnzSAT2Y2zQV4gwCpSfLdXPk5/74dm3Yg==","signatures":[{"sig":"MEQCIGlInRLpoGB3k4rID6Svy49WhAIHDMh5QPEH3NhqQZSdAiAvplsmR7cgCdceghB/zdtY7I3zpfm8M2UHOczOxl/R4A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1092275,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLXWPCRA9TVsSAnZWagAA9g0QAJ4K5I77RfvVW/RI8In2\nUndrbxvN0ygsmbF0k+AYNhqM4iq1DFrW1nGPxT3tjoaEwLxHYryUYc2XZFW7\nKACqdXbdOAddqBOqKZq6JzWd7QA0d2hPzxkDtaRK/M8XYpriEXArF7S4gymX\nxcB5Oa9XDY1lNtluhs7tR+aWxAYz58eQAK2huOykwlZRG08DQCjzamoU4QYJ\n66NC8Jc49iDF4VplRrV5TgXifUP4eEbq/mGTVbFWImWLY/m4R3kpWlFt1ezG\nKoDY0RBiqF6Nse7RcVOqCQzX7N53rHB0TN5IKzHi/r/ottH7FVwhwAJaJLb+\nTX3U7HMb+1KVfox6VQSBa/uNwcSNCIpspbqasY5bkrcqjauEPIodA3GXabl9\nfIHAFvSLn9MGoF5XsvU9w3DWVIxv6m4TFtMRY2SCmc3Di44QCas2npP733sR\nClBch7JWriccoNIailm2twyyMk6OmBPX/oP9NwUhZ+tO4/HHX/yPtO93jGsH\n+YroIMPiDon8z8VNdFbYxTGeVuGsDL64rwTvZkSEGSfsRPoRyQ/Y6VARkhOv\nO70LAV1dnIM2cwN5iRmbDNl5M6f805qljDczXcV2UOoga+SdwwSCg8my5D8x\n8VVjQGNJc3ByLjei22zlS+zAob0vGKhR9OVApkvUFGD+NAZAt+pLZi0H4RL0\nEED/\r\n=A2ru\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b20b73a4aa16995dcd0b73e46e4dc31f7914a367","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.d6e507b5b.0","@material/base":"11.0.0-canary.d6e507b5b.0","@material/shape":"11.0.0-canary.d6e507b5b.0","@material/theme":"11.0.0-canary.d6e507b5b.0","@material/ripple":"11.0.0-canary.d6e507b5b.0","@material/animation":"11.0.0-canary.d6e507b5b.0","@material/elevation":"11.0.0-canary.d6e507b5b.0","@material/typography":"11.0.0-canary.d6e507b5b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.d6e507b5b.0_1613591951089_0.48868268083317057","host":"s3://npm-registry-packages"}},"11.0.0-canary.f2658381b.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.f2658381b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.f2658381b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6de6c355f5e6167fac2135928cd250cf6b8fec72","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.f2658381b.0.tgz","fileCount":45,"integrity":"sha512-wcZLsOJpv5sU3u1KkodODLHstQy0f+19+Lhe01kKMo2TIYfYbHiEfv9qmhC9OxMPomCpRAZSFwX1K5PbnCs9FQ==","signatures":[{"sig":"MEUCIAfWFYtTWgkXEVbGO3YJ7Hy2l2Z1Fs8aiSB/aUWDUMUYAiEAveVkLWOYhMTAH7LXNWl0V0arxJrBphWP2ZidvByrqAg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1092275,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLZynCRA9TVsSAnZWagAAkT0P/jkiRH3zGvyvZIBlN4OS\nP7QoTYbcTY1VAPnOlZkd8TY/kqK0112LDpsS18bmoRdOesd5QUkHeSnhMAtC\nDWu2F2W9FoztaMzWt5C7yGkEzWLP8gkVY58Tw8i//UE6+GNu4/GgpssX1hYA\nPVmAk1FxF7eJLiBaya4+15ArXJtbGUbIkwxuMiTPsSlY9kPBDVTWcVRaysSt\nGLpZ6K6d/pSuvVoggNR99nF7YA6Ekd/n35nP4mLTO2CdHNbqIcxjDrhmPBck\nzYVOxDY9RXILAniR8Y39q7F1Lud5ocj0xnuZQ/cwgtiAYcDH0DL6SJ4g3tCl\n+f7qjSglghbfHBVvsGXVXMsd6SNt0/5vZYdL9/dYUabiLm5+ID2NR76AujYp\nIrWqWXsVN3qadUbFz/NrqR81B95tHs7zN7oWCiyNrg7mp+W6NvbPMy1nfnbR\nMa1rSlH3o+CGnaMKo0vuKeL6fWyffQ1ap4EcY52nFRZMKsAAOm95gDxpS7xM\nMJJDkgUzRL6LE8t0/M7QXz9TNNFHiCBM1V5pw59lBxScmKeRqOexkXv51Q5d\niBOjM//4/lb8a9LLjeag2fYqAMSoQ471pao7ak/DnPBXSF4RLX1qJDXvqmc4\npsrexjs/7R/pb6Q8HBXp0bzUg834ITaT55SSLDEUXEy9Jepuw5ovL/rcoC9T\n6w8O\r\n=tQOK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bb1b60f60cf9b1a4184aa52e590bcb4003d3c09b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.f2658381b.0","@material/base":"11.0.0-canary.f2658381b.0","@material/shape":"11.0.0-canary.f2658381b.0","@material/theme":"11.0.0-canary.f2658381b.0","@material/ripple":"11.0.0-canary.f2658381b.0","@material/animation":"11.0.0-canary.f2658381b.0","@material/elevation":"11.0.0-canary.f2658381b.0","@material/typography":"11.0.0-canary.f2658381b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.f2658381b.0_1613601958889_0.24603479660093486","host":"s3://npm-registry-packages"}},"11.0.0-canary.97c4d4035.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.97c4d4035.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.97c4d4035.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a046af73a98bc6afe471a593f5effbd12e8a09d5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.97c4d4035.0.tgz","fileCount":45,"integrity":"sha512-m6QVxQjx8FqiToUbrjVZAAM7PavqSKNohmirplSxCbZP+n9L5LkS4GINPKJGLPQD4rkI3Vtc6XJg/NBXsexPvA==","signatures":[{"sig":"MEUCIQDVQ5YiAJW+/Oy+qf9PUtc4Xxqf+VzGeT95kJVrPsAIOAIgf1qntIK3OfDCy4TNc96h64jkaEb+mdPI2gUmOg+HJ6k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1092275,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLdKVCRA9TVsSAnZWagAA0sIP/iZYWb9uyCmJLX+pErNU\nEy0TPwtLHO5zOu2r1EgsUeWlopgU9H3jew4uY9qoOVlFn9PmaJ2S4AKh+X1E\n50D8KzHabk0CyWHSZZ9ME5lbx1GJW+4jHnlyl5vOw1gEpSiOFsgK+iFGNjJL\nFPwmp9rH3ROX4pg+FqvrEbbEY3jMNozCbtoUQber1vAg6XZ9LO2OQQEW9NLr\neLZ3stA2LuQ/uCNvKkdwUC0EQluDHOkFFNcAVfZusDT8iXbnyhZPYlAzERAi\neUVe3A4hNFXVAKn1GtTpo8viWXOm4jJsTsnCIIA27OOpwBiEtLu+J+POgrsi\nG/VW8kZf+1axExf+hsUoYkk+Y8nro10PUBqeH1y5lYVcGxcoa1+wLsu3tsdQ\nFdd+/yZhzhYhs9cBRKUYeTeO24a8P4cuslgcO4TFY7VoQF3ZK2a6NCFhqL/Z\nY3YKyQFnZwomDQYGzJdVock0jPiE44hNbR39r6qcsElxWPfDeF4u9PVdZ1Js\nGRvOJYbWxhye/VXJ9UBwCCV4u3k3oM/d934BwDRRXvz/sMzR10gjcaj5NCfD\nFYVy9hmRiwcjiqqeqdvFc9ZzaarrMzSV7lLfxLEuYaYqSWc8a3P8W2ZYY0Tp\n4AzIyrHgLNCGKo7va5ujIWxLT4ZYwb0fjN1xadV5BDkgCp9iGJKMu1ttXMN1\nVrF/\r\n=ljM+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1d9a223ae17277dc00b76dbbc4263232d38e50c9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.2","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.97c4d4035.0","@material/base":"11.0.0-canary.97c4d4035.0","@material/shape":"11.0.0-canary.97c4d4035.0","@material/theme":"11.0.0-canary.97c4d4035.0","@material/ripple":"11.0.0-canary.97c4d4035.0","@material/animation":"11.0.0-canary.97c4d4035.0","@material/elevation":"11.0.0-canary.97c4d4035.0","@material/typography":"11.0.0-canary.97c4d4035.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.97c4d4035.0_1613615765306_0.9575053292671423","host":"s3://npm-registry-packages"}},"11.0.0-canary.f5bb4648c.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.f5bb4648c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.f5bb4648c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"40fd96ab285497be6f8e8203acfd8c56874d73dd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.f5bb4648c.0.tgz","fileCount":45,"integrity":"sha512-nEbWwjZGznRWa+8gL5LKT4p5V70BUxnVBk78J74ZsglJtuIaQTLh1lExfMjSp1ToobgZj159CYF/UuQM5PfyIg==","signatures":[{"sig":"MEUCIQCnYxGjOXdybY0x+Ut0KLxMBYECIMbyQR1RTe7JOfQggAIgXYhiEh1T3rCft45msl4TaeFmDHyzRdEoa8BJro+BVB8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1092275,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLpCWCRA9TVsSAnZWagAAqSoP/2MEGzOmL0RsNqEt3MCx\nNS8aHUnUKvThBnfOCsewyb+yL0AHksqaPJ5teOl7v5+CgM4mHmfX/kD3HN2Q\np8XNs0VIlwEap792F5hcvN/u9oCWHOf57vF2Cq5nI3ScQh3e40S7IlcEX9tB\nFU6DyLRcgbAT9y/3JvEOR84h96Msi6/pAPIJIHlrb1zUTBhOZMu+6KHW7v54\nlRcyTFwPJc4vqfklUI/1ZXd1KgANnqOmR+eyfjYz3DP1CCQ3wNLAXthXYczN\n962SfcdFH8mWPGHCDt49TODfSjHZSRHXs5DfgXzQlGh3fq8p9UmxnvuWbmAn\nuxK9wgRgT654+xb8JXIa9CR4l+x6hu5R8nzxY5fclqALUpkHVUuCYgX2ta2E\nkMD/Qzfazwu04Mk97xAIeyxwXV0NNEAD1M4/1Mbu4FgTqCJCSVX+d5fnFWXC\nwPSEFze0ZeFQoQN0W6S9EmZYH4d2G1r7GT3y3wG30W3RD/f3ECvjpwEGu+xb\nUJHqJTApatHtPqMh5Mc2oFjjoJezBFbTLX416mH9RjUCTF5xwzNKVKQ9PWMZ\nRXiV2RF3JhEMLAOdJ1yDqIshZRLX5rmH1F5xkNf4SMI2c+FK1hGYDMduaDQs\nUBHhP7YbzWN1EJhdHVNFX+bE1IJ75D9wkDnAgA1JpKIBq/CP93iMSaw3lw0N\n7yvq\r\n=dbB9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3abc3c2f94ce48fd3a6cc689419e03b8f7769ce0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.f5bb4648c.0","@material/base":"11.0.0-canary.f5bb4648c.0","@material/shape":"11.0.0-canary.f5bb4648c.0","@material/theme":"11.0.0-canary.f5bb4648c.0","@material/ripple":"11.0.0-canary.f5bb4648c.0","@material/animation":"11.0.0-canary.f5bb4648c.0","@material/elevation":"11.0.0-canary.f5bb4648c.0","@material/typography":"11.0.0-canary.f5bb4648c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.f5bb4648c.0_1613664405990_0.7065937645674787","host":"s3://npm-registry-packages"}},"11.0.0-canary.302c7a960.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.302c7a960.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.302c7a960.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"dd5235508548ca8be160e556dfeb81d10ab8837f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.302c7a960.0.tgz","fileCount":45,"integrity":"sha512-iiLzInfBYLHa8Hs9UtE4bBc3Nv01S53ADkq4hd2la0elfXXEA5rTidBvJje0gB/TV9bkYm60h/lyr+XqqSF85A==","signatures":[{"sig":"MEYCIQCFKn2pU9miIctyNEQAanxiEP+Kqu+F1c3EmErWc9argQIhAMDywXi2wLMPHpP7NZZYu3eavm1OJjRDtyjmuTyKeAwD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1092275,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLrRcCRA9TVsSAnZWagAASUEP/jtVEr91McuZcYH64zV6\nbtOZZGfMzcE5Ujsvb7ajqxPfEfn/NbIhfKJsKQcTkD7tIQuF8axGt7BB0Iwn\nhri0MAMyA0hTn4NgYGVcaMATNdyCc+Wo+p/ROmMVsgIE/MF1hmc2ZrxTOcnV\nnAq/SLY7HotohqlzjKtu7wDM/Xm9l/dmmZ6EhGQCXXqJTz6YaQ4gJmipjcAm\nVa4BtImtK0m49FntOEJy3RYSfDwBJ67fQmL7QhBHf36GfwdbI1Jy/F0VZRV0\npN/UQesZp3bt51jfAmPdNo7Bwo6Re33szgus0yBv8oiTzG4WYEFCL6CES4Q8\n1slbQeHx9yt4tPkAA+z2ZK4Jj9OcD0/Q5lZ2dd3guUUwPdJIOC06G6wBYKor\n1tKAooAoAPqQU4hZLvU9Ju+5vgh4XBkhHNDvhC6trKDUHB9gmHG4HISJDsLB\n1EWarVI49QuQNQWp6wGhDVTOLqw98Mlp0nIEXhBlUH0R3lQB7om17mcBAiss\nceW5a0hKjh6rqCdBK6JjWuPs6aRQRszY1MgBAefia3k/Bs6hkixRfqlHEpTB\nSo7Qdb/jmpwGs6KMWxDc+9Bjb4cr44JVLrggAPlyawfKgia1UwTv6t13Yi2r\nvztbGd84QoeNlNiBXWWUt3MX3vWwP1UXxGkBsQ41GJ7HORdnazGLv1sSwk9R\np1s/\r\n=Bx7F\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b16c4cf1d0826970ff04a72b663f1838cf8c37d0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.302c7a960.0","@material/base":"11.0.0-canary.302c7a960.0","@material/shape":"11.0.0-canary.302c7a960.0","@material/theme":"11.0.0-canary.302c7a960.0","@material/ripple":"11.0.0-canary.302c7a960.0","@material/animation":"11.0.0-canary.302c7a960.0","@material/elevation":"11.0.0-canary.302c7a960.0","@material/typography":"11.0.0-canary.302c7a960.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.302c7a960.0_1613673564135_0.8093489871417203","host":"s3://npm-registry-packages"}},"11.0.0-canary.aa0aaf026.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.aa0aaf026.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.aa0aaf026.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8e5934c80a955f4fc4d9dea339ab59f8054c790b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.aa0aaf026.0.tgz","fileCount":45,"integrity":"sha512-kyRQPpZfFULfnsDLr8H4MVUtAFRRNXxpaCKrfoFieA2eglcduvLloFum+npYzF7MlXnIIwph6L/9T/koIDWSCA==","signatures":[{"sig":"MEQCIE1AIgqpNAyxrLN0CwFcrWCkGYbjoCLVlp9/8mmqOy5hAiAsor+vfb+KLSpp9Qpvi45BdaYTu/LvBXFA/jcnJaEq1Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1092275,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLr74CRA9TVsSAnZWagAAp9sP/2qAxNOkABqSUHuMIheC\nr7nzI6of7DQEptfaxYfgYCsUmm19L9g+2J1ga4RHvTQG+N2KaP3YcCMp1ZLN\nQK6mhwJgEMTNHUsYXh4Dvkalz87nV0D+24zfJPVcMrRCXuQEFX1YS3J3R2g8\nTX2HeC+2b7yT/O4rHbWHlOLYjyTQAaXPDcXESMmWMkizjENys6xGFWK38rUv\nEXUkUj53Xm276ZH5W/U+vXD1Ctvm/BtZ3AXFdL8R3M6Y1cgjX3Ma8UBAqM/Y\nuV5sT7S8+98W9XL8BTpQII9z9aFd+T2DX+v7oCp0hTqupc8fzYAEt6SSfWYK\nnHCxbpUP9hkZGRLM9sJYInJMubW6zbXwFFE0SE/tKhCrIyj7f8auCITeqGw/\nrUSSDc225i6hGRRNLNGaW8Rfyw2SNh3KTiGvVtuGKHy8kC5SYtgxBxqFCfMd\nt5m6YRKDSzbOAEiMe+ce4EmbfGdU4iueDqt803hnI9u8+3fDVSXXrkwWzGJu\nRmVqweykPTc/R/4XZQ+ew2DJuiDLQ09TLF0I97tkKpQUs6+JBi/qTgmujDfu\nGBgpWy3IoCnJ/zubrfP6avC8FzGDUn227lZWjpx8HufI19MGBaypNNOd0XaI\nxZ5+D7RBxt2PxbV0sxxD0IA7anRId7VXuIS0FUc2dYIUPk8su4ffy6LGrT3Z\ncSfb\r\n=3xWa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"de542de1d7c4c8f5f51199fe207ef527fc1265fe","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.aa0aaf026.0","@material/base":"11.0.0-canary.aa0aaf026.0","@material/shape":"11.0.0-canary.aa0aaf026.0","@material/theme":"11.0.0-canary.aa0aaf026.0","@material/ripple":"11.0.0-canary.aa0aaf026.0","@material/animation":"11.0.0-canary.aa0aaf026.0","@material/elevation":"11.0.0-canary.aa0aaf026.0","@material/typography":"11.0.0-canary.aa0aaf026.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.aa0aaf026.0_1613676279495_0.31029347964038534","host":"s3://npm-registry-packages"}},"11.0.0-canary.07ff0c452.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.07ff0c452.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.07ff0c452.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"14e8f17f8a93e670a7e22626222dc6f9c35132dc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.07ff0c452.0.tgz","fileCount":45,"integrity":"sha512-/Q/ThVClTw99pR1P0FXl4Tjh3KScq8Q7uckBo1Tkz/WLZCQXeuUF96f61tnPEP5e5nrw5TRMYKx6ZR4/2bTBUQ==","signatures":[{"sig":"MEQCID+nB7PZDYZMukCF5vkxj6vGIknDhLsKbpppu6QO/k4AAiBhhpLMMv6HH0RIvfNV34PQftJ1FH584BqnTdkHv1+I8g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLsNxCRA9TVsSAnZWagAArHYP/0WHcThoC/XBO4D/+Yn8\nQLYdE44PjN4SVyk6j9M9mHdHNnNi6zrwfLXwzIroFkbBl3eSvFWnk+4y4uxe\ngPLRkqEp4VQy4jrsZamGoXAJN9bLJbJ0h3DTk3bTA7EwH09GJ9ou/9XWXdEw\nOlzjNYcjoY8pnd4BIbRkjRY+Y0txbbgxdexstffeSVe2tyWilrVCC2VKcWf2\nvxAFUq+hi2GhtRWjYxB3CCphgfrbvdOACLuwYkEJo1Ce70azuUaQZmM/FdJA\n1LcV8gd0gLn+rsS7H9BjvfgVoLo6FusQ49R1LX4taqEf5w6Y8hUhxk9axhTh\n2uOZrre5nsimcj2LYMB8r90hgdd6Jjg0B287fXw3TF/qTPdlAlbUNQ2B/6Ue\nSLKtTEtqE49rpTJKvAQEGTRuHaknhqmHQwQCQofUr12RMwVwDfH6UeGM2Hsm\nFaT3NBDuEy8ELwhy3ROxEH5liPma6+5I0KJ+TjHmjiOlCuT7LPBHiKLKoX4+\nwaKQ3WmX2Zlv0ndgtBlAiopm4Adwufy+ifYF5zEackEhJCrTvNXgm5GGwqBF\nyjyLiV9M1VEumR8du4An9ZQDk4dXKtFsjPIPDQbLDk+6q2Um4JvUCLZb1BXW\nF5KE4R15PUCa/GNX9U1XAJt4ZPXQO6lZnQC3fXUNUYIU2aOBkdsyULzhColg\nVR5/\r\n=DZuQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"52e3f1cc8fd4568a48ba4314f982d5613f53ef5b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.07ff0c452.0","@material/base":"11.0.0-canary.07ff0c452.0","@material/shape":"11.0.0-canary.07ff0c452.0","@material/theme":"11.0.0-canary.07ff0c452.0","@material/ripple":"11.0.0-canary.07ff0c452.0","@material/animation":"11.0.0-canary.07ff0c452.0","@material/elevation":"11.0.0-canary.07ff0c452.0","@material/typography":"11.0.0-canary.07ff0c452.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.07ff0c452.0_1613677424626_0.09266785461085836","host":"s3://npm-registry-packages"}},"11.0.0-canary.bed7ecd3e.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.bed7ecd3e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.bed7ecd3e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"211cebaeae9983072ff18dfa5a89320658f27d22","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.bed7ecd3e.0.tgz","fileCount":45,"integrity":"sha512-8sM97mgWqG37DQj+YNetbFzbJl85kLD6KXzR0YUsp+sWJ7ydd+YdWfhcxZJl4tAnnI/9MFPVp8kPswfTQZcFRw==","signatures":[{"sig":"MEYCIQCm9daw5bfN0IFuKjRIE4Bd860BPjlOFipdAIj7nY1/SwIhANvOK7tSI3/GmfMg+v0jjbwTy/9QkDUBZNoWDjtJpERV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLvgqCRA9TVsSAnZWagAAN3kQAJU5trNRqymvHCiCMafJ\nR5g4ReqQFLP1lXLVyVShF/y2HBIX3rLZIE3qbW4DUcmbB8l1lzgVt6AvJlqb\nj5/8GEYGSCy0WTFn6NYrqbUYQvAcco8GuqEum9XAvkOsgyCLmvfQvRtckCQX\neOQHKSuWoXhutnl6GHQkKOKuBvDLKcae5xn8kSg4qv9I63IFIS1rmpDKCnFY\nX9R1HecmVkxcaludnIPENL6zXlUC8jwNGqKAVXuqcS6MoV8EtW7v/lQF3WDa\nDLF9XqdidH4Ps8ekd0f89fU6Oh5BDWmDASzezcpoEfWpKyW60i/6dqzWXiyU\njRJQ0PXmx+BWX8/2xbVqMUASOyGs/zLIaFSf5OAkCmgQD98wQurBThRevgZn\npK0mWb63BlbHu6QhjHmtWToUILDNYAYeN80M/EphdWig5QM80rauyN4wARg3\ngmHWeCUoZEUYpjPbLfypt4H9A4LUQzHV844h4O/WX2h3Df06OMK6OmbeEO2L\nC5nAC/EMrXw+UvYUqgd50FzalTn/FBXi9pV8Jzf4MJtMzWuMlKmUKFJfHz96\nJ11Kx/y5wrGezqwq43cJmxeSCl1v74zrMKKMZOQQ3cX7IMV7XirnilM0zTRb\ndbW/p2FruScfgYW+7bvkq6MB+qaaTV3BHew2F+ZcO4wFR25cQKsmts5nc+X/\nUgdk\r\n=QnU8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c23b9ab547a5ebb36a108742217a017fed1886a5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.bed7ecd3e.0","@material/base":"11.0.0-canary.bed7ecd3e.0","@material/shape":"11.0.0-canary.bed7ecd3e.0","@material/theme":"11.0.0-canary.bed7ecd3e.0","@material/ripple":"11.0.0-canary.bed7ecd3e.0","@material/animation":"11.0.0-canary.bed7ecd3e.0","@material/elevation":"11.0.0-canary.bed7ecd3e.0","@material/typography":"11.0.0-canary.bed7ecd3e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.bed7ecd3e.0_1613690922100_0.49519414039408294","host":"s3://npm-registry-packages"}},"11.0.0-canary.06dead2d6.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.06dead2d6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.06dead2d6.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0ee196a967a0a78c44b0d97807737321e34f8401","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.06dead2d6.0.tgz","fileCount":45,"integrity":"sha512-HQBpC6pdzLxXehJ8O4VgXtMBAyZyK7SbAQ1gJhhMfiLXyWHLJNTP4yUb5X7wPHTrlItsANlPHIZuRO8nJyGaTg==","signatures":[{"sig":"MEQCIGWXp5pb7zok0uK0qb6c0S3/iNrwyF/Vfj4ESmPawj0VAiBzZ9MPrKaBWxn+wCVQxepII/Ex39RB4Sg8sc4X/8eGQg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLwhwCRA9TVsSAnZWagAA6RQQAKFOIL+SrVW2BtF2zRot\ndWv/L67VcoSxyh2orNpMnUQBFy+AFTvyFBR7dck+ZfnmpdMWRmPsqVEoxd3y\n6cG1QQzl4fhXiYW7ZO+LDIqjn81GcTghvku2/+cjSzpZ4pH0c6NyNNXu/W84\nZ3bjflBX4ZR/dj6GyWV1DINp7VTJv7+s83KVEvzREXMvMuFMWO+8c5g/+sVv\nPupnvt9cZkO+jllFDuK8NMCXKSUbR/gZG091kK0o0Lk/VgBwIX//2703QMdr\nNpq7FcpeQGBbWxUBS8boVUXOWVFz/Klh4Hgw9HYa3dMCGGU3flexPDkOPjWg\n96R9ro2UjjdNW6naA779kCen4CjNl9Xyr4uMGnmzv+1XfvRMpEmrNioB+gdk\nej7DOdzXiXBHMC81oLh3roDBafwTEME+RnIk9ahpsF9FAchlDErzCjPV6neL\nRd82qv9BSJ9pcOcSxG+v6CJFxeK5LSlnTAvdP/jNBTBT+wfeakRjOnYH0Mwm\nsehYZm9uhIm6nEhbUIEqkeh22dn7OENpSMKU5UFz/T7Q4MfbuYC4HL5pMKOu\nTWzyoZFH3gKtj7flE7774T4UQavWcz8ecEt/+ZQ7CZnL/OAI7plqltoOFwha\narWfZH7B2HWIjnE1frajJTuVYO8trPWFmejOAlnXxhnp6ddbXIr2z422PePg\nl6We\r\n=L9eK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7458ca9f14be94c1a279bd594f262289d278bd39","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.06dead2d6.0","@material/base":"11.0.0-canary.06dead2d6.0","@material/shape":"11.0.0-canary.06dead2d6.0","@material/theme":"11.0.0-canary.06dead2d6.0","@material/ripple":"11.0.0-canary.06dead2d6.0","@material/animation":"11.0.0-canary.06dead2d6.0","@material/elevation":"11.0.0-canary.06dead2d6.0","@material/typography":"11.0.0-canary.06dead2d6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.06dead2d6.0_1613695087662_0.40546016941502305","host":"s3://npm-registry-packages"}},"11.0.0-canary.cddb03553.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.cddb03553.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.cddb03553.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a310da55ab622bb3b89d152e0f216e279c188efd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.cddb03553.0.tgz","fileCount":45,"integrity":"sha512-HSEAOO0pZIM02OCfCNGGOZpC+UiZuYxM09M1m/hil7WNWQNAU1IxW1qx+wgy9Jur7i0Z+ui0OsjiACW20Taa/w==","signatures":[{"sig":"MEUCIEA3I+A9Vg5/WQE0inDqUd/u9Jn7gxCthNcsbU37mQzsAiEA1JeScwL1IksK/5u7R93AdOdWE7A83wIQPd4apzBgQro=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLy0GCRA9TVsSAnZWagAADiAP/Am2EUuib+KkzJsuUasF\nLLj52wWXtMg0gtsadXYzuGA/bsmkAkPDPryNvCu+1Q8UYE2RYOkcK6l5UG4Z\nHRgYjtNCKNK5znbLST7hfdHWptXz9knoqJ3mMfEAQ861f91IwgztSntkgJ/2\ns119OtuAwUiALV/64Eq/k4NNY8JTY1JEiZ3SUmXGL7ZOtTupTAkaz/Z+aU/O\noFE7zUbUp11W1yvVqDF+RIXKltA9t2gFWFK1vzP5okBSMp56Ja6M/KetW4u5\nD+UxtItnhkk3dR7E5UAtcw03HNGfmkp2JZ7mG1Td6QVcbLOvU8cUBES81h2y\nK30ARMG3Ysxn0NlZ7Ch25fgZ40AkTl8trCCLKWMNoUSVyAnU4pC/jULr8a2X\nkbHhwPQuokYbNoGoMtfBN0CMiDtgfOlgEc/W9x28is5ldb2UNWQIKFbb74PR\nqw/nxesuNdjZbIFpqmBRSvvW1ioknEkZMW1G7XvIUadSr1YMtrCA3Lslbh44\nsxIjy+NfdZ0M61D562e6IS9m2uJKxENuJp6vyBUsmjDYaI+h1XpBi4jMZb/e\nxfqs1Ao9hTb93hAEE7fhSjoe6CS9prc3wR9pWVJQDyfNVeHnoGkMKf1mCKu+\nUsaAwsgU9CFf0nprSe/dBbctLSa9/r22IYib926HK7tQ6so9BLBpF6wqlmvw\nJ+Kl\r\n=hNAJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a8deff13e5978e42ae51f60c844f7ca0abf64b45","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.cddb03553.0","@material/base":"11.0.0-canary.cddb03553.0","@material/shape":"11.0.0-canary.cddb03553.0","@material/theme":"11.0.0-canary.cddb03553.0","@material/ripple":"11.0.0-canary.cddb03553.0","@material/animation":"11.0.0-canary.cddb03553.0","@material/elevation":"11.0.0-canary.cddb03553.0","@material/typography":"11.0.0-canary.cddb03553.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.cddb03553.0_1613704454266_0.7987927858576314","host":"s3://npm-registry-packages"}},"11.0.0-canary.d6d8d0476.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.d6d8d0476.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.d6d8d0476.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"73024fecca03a33b936d9a38b0c805d99867c034","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.d6d8d0476.0.tgz","fileCount":45,"integrity":"sha512-XN8lkZXO3FOBC2n3Q2JwrCH0HeVjhR4hOhjZo2T+mEiwh8IKsKce+gOmReUYb+2R+6s6m8X0uOBdfoZ2+pfi9w==","signatures":[{"sig":"MEQCIGOL/FpjqDwSHFf+ecevUHdJ//CHwV5J+cvjsqPXuRkwAiAarCU5QOtYa2oz1Mamw7aY0XK2c14VUjFwGxDLC4YpQw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgL06qCRA9TVsSAnZWagAAMfgQAJX+oNpuYaSAxQbdKYrt\nud+NdDKYosV0R5ua5bL/SGQIf5Ad41LhHHJJjMrLMLIIBuXyFgNAvQu3iWKs\n1nvYdJIB5xygtO5VolmRlYVH0la1NUAAbO4gwWxuolpnUkEn+j5VkhqLcpbv\nFcR3DOQif8ZvjElgGHuSjKfxH/jr6oAGOd+3LKFG2ybDMHJzec+mAEU+dty8\nXETgbv0jOmxlqJrInUkl4ZIYvpxHzKgZIJXQJdWnw43K4RBkBKtB1cewwNjm\nHbU910Z6DNR2QHSdmZQ0uyZpJRdHThLs9mcyAyGsvVC+ZlX970FEJWpgpmwi\ndwumynr7/jbTjHgppJtW4rMSvbXgz6SpuaKUJHWKwN2tsOv3fKWJ8jXYE5Bh\nfphUmmPDOMSCYVMDrwnpgyd4OkWAp2lVzsU8HAoO/ga6kv4dnHLY5SknJlCN\nMN0S+XoRbZ5Gxart2oQvkAdpX5jJNCIfWN0tHPVI0YR6qO6TZ26d9vjyB9A8\nFP9hotSEOndVeIhKfSJ+Q4kCMveIqP5x7GbgfNUYmNrrPDp5b9AOCxJGBkuS\n+g8F8KnzJQ/c0rOghwz1VLHsjinSbOqN2DBRRzxErUKZ+HDhAaJbV4frEVBs\nhjCqFRcmr75YOCGcXSl1EW6xtM2dOgujURienVd4YcKwryVka7ST7nFmeBVx\n+waG\r\n=rYro\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"17aa6317e2c1a8109a8bae34e962d438f170f811","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.d6d8d0476.0","@material/base":"11.0.0-canary.d6d8d0476.0","@material/shape":"11.0.0-canary.d6d8d0476.0","@material/theme":"11.0.0-canary.d6d8d0476.0","@material/ripple":"11.0.0-canary.d6d8d0476.0","@material/animation":"11.0.0-canary.d6d8d0476.0","@material/elevation":"11.0.0-canary.d6d8d0476.0","@material/typography":"11.0.0-canary.d6d8d0476.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.d6d8d0476.0_1613713066422_0.31770016061508044","host":"s3://npm-registry-packages"}},"11.0.0-canary.0b4a4b2eb.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.0b4a4b2eb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.0b4a4b2eb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9475a836f4a07be8eac7aaabb6c67f93111d00ad","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.0b4a4b2eb.0.tgz","fileCount":45,"integrity":"sha512-qbYzYovk0DJ6P0DwbrShcDhZ9KwbyJSy0+t1IefyR6HckI4OplfIYVRTinf4qHJFj89nAbvYZaqs3PlObPEFhA==","signatures":[{"sig":"MEUCID1rzU1wA+NXczRmK9ABepfSWC26DbjPdm4YQg3Ue83cAiEAiVTqTWwzTm2Vi7BCQz+pMsbXw/OMEKQ9j0gjM1rJOyU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgL911CRA9TVsSAnZWagAAQggP/iU2lK2G9WX6+Z2Hgkiq\n3wZNvA6uwZNv89SRMl5cZl4cL9B5SYYIIpUZPfpVWP9/vytkfXJtemw0O4Di\nVA5onFn9W051fOIfpWpWIdEWP7ln8z9v3IEjgmAjcsnFCl6TpjZ5yb/q4QsE\nYvffGYq2WvOAz2riaAmV+kStKl8/omPr4F1qFlgGtnnDVF5uhP5jR44mpjQD\nCmoDunCsnWZulUt0HzU8glFKvunc9ctIOF+PJI20p6ug/CsJ7iAjlSx2ct6r\nNGBIUCTUphT6Egkp7Tue+c8TuACjoVoXGW8hUVFaPVYAfKXLcmvjQBbXseLr\nMKLIVzK6gsbF4rxiIFv8R5pOmDT1fUOsFwJaMCzILp4RksPEte3Kbf9qnXc7\nVIlC7juOopWcDxhM86k8gIMy4kLp05kMpJ2X4p3ETpr9LrTfyNAqxEexqBQU\nNlsW6MRKkFkwv5fCNZ1yNCAXZNidNCD/9wmYCrBDod+m4YkBnPxqFTcHRfQL\nIBk7VUyuvUB5XEE1sSz6PzIzq90K4PS/gM8IVRyXgBvE31YL/tK419SGqqUA\njOQatx8f3cLEV4lpjYBVUwJPGMrPOX3zTN0C6ZAYT9ZkS5S6VWvrhmoRDC6G\nPjNiPtMPw9UA/iVH9yUJ28Hkl/PS+msM6KIP4YA0sLJvIkQDni/nTb7hewYD\nXEnM\r\n=b2Fm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d96f438a60c2d44b9a3f9ec055d1dad78d316e6c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.0b4a4b2eb.0","@material/base":"11.0.0-canary.0b4a4b2eb.0","@material/shape":"11.0.0-canary.0b4a4b2eb.0","@material/theme":"11.0.0-canary.0b4a4b2eb.0","@material/ripple":"11.0.0-canary.0b4a4b2eb.0","@material/animation":"11.0.0-canary.0b4a4b2eb.0","@material/elevation":"11.0.0-canary.0b4a4b2eb.0","@material/typography":"11.0.0-canary.0b4a4b2eb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.0b4a4b2eb.0_1613749620853_0.7732758897364591","host":"s3://npm-registry-packages"}},"11.0.0-canary.3201cae47.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.3201cae47.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.3201cae47.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5fb77a7cb55a40a5bfc7668407514caadc995bfc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.3201cae47.0.tgz","fileCount":45,"integrity":"sha512-6o2jh/A/ZnhVyGxnObwtyGy710XDX7F1AcuFjgIuHJxCCRwAruxV8WcZix90NUm6pcY+IbzFwtCXAfV/Q/LV+Q==","signatures":[{"sig":"MEYCIQCa3972mUcsL+vA0qWaLl50AYSNhs9NSevhthP0CcDzPAIhALKiaC5+YfZyvpOIryTXHBlZWSAo8gkOp1orhgbl6kR2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgMENeCRA9TVsSAnZWagAAb+sQAItFvHroq0jIvUwxWiZr\nnecg/a53rMWPjRa1apcdH0HgdOZTlO5xlHo1LJrMcuOc+jrOoaKXo7i75I51\nfp1UsO/UiljQFO/XgfxZOrhEMsvY3uamOOI51/8tR4uron02ZrN2TEe1E6YZ\ngKNXLmAgw1zmyEnhOaxKeELhj89tHNzI90WdFEAOPV2wU22rOuzeibaJkGED\nkkBe6Db265gJboxR5TX6nhrhH89vY1gV798XK/5uZAkQ5+X+Ydyok7iBljha\nWZ7XR2FY68Bvmm0xUjUm96Adu7uNJ/iGtlcTJGpfgT555QCQ8N3plXW1WDxz\nR9J7SIg3iuU3KjZLb8H5+vQqHA0px++yFKnyHzXeuwnPQbFNaIceX7Sm9a/a\nKNh0HkNDeGrQjykLirRys3sDsiiH0Hba4bDNRg9mN8yI1/gGR+CI7meTgLmI\nSZ81Rl0vkUvnzKC5W6+LB9FlhWylUosqeUCvz5ZIdvqKPB7xl88XaevLFpbD\npZTthlYhALjqfdikl/ZHcNkahbgZCYPvTY5VJ3aLD9adKdNL+5E+oHrHQdlH\nalYkDcLC4hWGx3GRiLXaWC2Qj6LK9sxelTX6YFYIclT3zWrgMOjsRAdPLrn5\nDRpMpzc/r+e8em2+FodlsrE6FGbDRiCcIuIgpVicuvk8khJUN/QX/HB7kko7\nD7Wd\r\n=L7nU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"274d3ca7227bee74ffff3d46ddf3ae266226bca7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.3201cae47.0","@material/base":"11.0.0-canary.3201cae47.0","@material/shape":"11.0.0-canary.3201cae47.0","@material/theme":"11.0.0-canary.3201cae47.0","@material/ripple":"11.0.0-canary.3201cae47.0","@material/animation":"11.0.0-canary.3201cae47.0","@material/elevation":"11.0.0-canary.3201cae47.0","@material/typography":"11.0.0-canary.3201cae47.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.3201cae47.0_1613775709854_0.699506934168568","host":"s3://npm-registry-packages"}},"11.0.0-canary.f1b1fd5d3.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.f1b1fd5d3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.f1b1fd5d3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"78b025bf861c2dd05cf9630d62e1267273bf508a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.f1b1fd5d3.0.tgz","fileCount":45,"integrity":"sha512-aIZniwdjkcfJEeYXWQDq4mgopZD3tBMaXERqm1GM6aDjyAxAg+C4wtwzJabJ3S8Aay07sq+roVGNc7zEYbtugg==","signatures":[{"sig":"MEUCIQDyXhZwda7SomnmZoKWHW2/Zc1H5PpUEalRi7NcA5p+cwIgXiLp4IrIN9zR72BqFxbBIe2Mi8TppVqs8xF+giEYblA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNAsGCRA9TVsSAnZWagAAvoUP/2pNM/K2GLAW4nFnQDCE\nzhUXXm5WOKnNZdMV/qfVXFoS/Kxbni7ujP19kywRkiZasU7dxntTXD0PSL0M\ngFgMGVS3u3bvo9V2iTm1+7s1cmzJAp4MGIu4daBTlWdrn5tLEsRNqyzEQWJP\nk2Ilgzv5BwErrsmeEtC1nh84OPNbF7oQJttG3APT8IdkZVuhLSh+EIVdFfbk\nmqpDK0HvayG2oRxWEK2PG+z2Q/CDVwqmCuBo3QopldwnT8WjVeKDmKErOhC5\n72wCwMKT8SbYVBPBPO9pTfyuMKDaGfcFr646xBwPJ4bxTXQ/8Lh4FVZUg9Fw\nrcGkbViwpXV6KsxT/CX6nuJLlXp7g+fepBQh0/xmfCQ7CQGrvqwOiDkQobsq\nEQT0qHYkpXteXg08ky5iqLdbQeC5N+cnl3iw6t/LKO1gGPIvdNJi9GN7Teix\npT8KF/krMLL+/poRPIG7GnasKLSDXPNnSbxBSEBMnDhEueehvHY6HavRYZ8W\nZF3oHYX+6MvBI48faZAIEoNG5IOJT/4Yo4XfWPsuVN+G1jCqvd0p43nABt3h\nJ5kM5eJvuC4Xf/rLarFWgyV+FRClSSvK/neJEkK4mZoEafyHEfiyAluMt06c\nHeHRauazE/GIrVge+xI5lU3BRGinvCFaTW9ro6gSub0ucHa5H5TWN02aZQh/\nKsjB\r\n=xxsB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b73a5cc3b15b450664de92ee70312cc1e8b17304","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.f1b1fd5d3.0","@material/base":"11.0.0-canary.f1b1fd5d3.0","@material/shape":"11.0.0-canary.f1b1fd5d3.0","@material/theme":"11.0.0-canary.f1b1fd5d3.0","@material/ripple":"11.0.0-canary.f1b1fd5d3.0","@material/animation":"11.0.0-canary.f1b1fd5d3.0","@material/elevation":"11.0.0-canary.f1b1fd5d3.0","@material/typography":"11.0.0-canary.f1b1fd5d3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.f1b1fd5d3.0_1614023429900_0.8412761601760923","host":"s3://npm-registry-packages"}},"11.0.0-canary.7899e0fe0.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.7899e0fe0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.7899e0fe0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ae269d65d6146da7c49d652542504c097413acf5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.7899e0fe0.0.tgz","fileCount":45,"integrity":"sha512-ujTXNv0o/QtzKaLNzJ6tgXGjqY4qWJHJfP7YIn4sutr9F0Bpqr4Upx+iPQ327C7mLcoCZoVFVaY2AUttazplZw==","signatures":[{"sig":"MEUCIQCth5uKVSr9Uv/GeDkGhelC0uu8Q1unGMT9+hdMuSeULQIgKKI+j3Uj7f+kiMcvM3W1BF3lOp0GTjPjhqpIhsmL604=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNDRdCRA9TVsSAnZWagAAnwcP/jbO/0upPRHBujKl0/Fo\n6kbkBxU01Cn+8XUkyUMEkWa3ao/S1IQdjuIx1HETKKH0wJsGI8qghOwjVVr1\nk+acauMa3wpFQu0GbaqqFc2u/KqCr28+FyEvLDGtxfIHBTIKbqgS3L7qagnK\nDk/nBWS09D0IT4Xus8mpjXZ1c76lLCjVze/SKIgzqTE14OLYqtTMkWlXz7WI\nBTDHZbp6xo1mOXLTVjwsV0oh7lpmLdc0V5R6hzorrc1sw3DCiis+Y5QuFLFP\nB5HThnvArdeCata09M8fZpWFYPkwo45Br5N9OjYNnz74DBpSscJfZhQCzs81\nVITh4NSyNAdIVDrwb2ZPe+yJbaEvGn792L/3/H5EzMaWOvT7UxpAbugSVKFy\nE/RTXgcHHvSBMiwusKcnLdvtTSbVYoFosrfGgLaqcG11riX3PpUsXeBqp4DZ\nDu8zcJQWkLxTznK+shWinjqrwc9kIKSKQT8I+uJm9sxDtXvA+eiTCD7x6nTI\nNhwscTXYTP3NYyNGUUZJ4J6bVHc5kKEzvt2oD3N5l0vSnVH6cUlJPYx4ceUg\n7xrxH3lRWWe4aIsXcbvuqqJerwnvBjKGzJN6zm8IYGlAb7czBlh+Vw3VzWyE\n/XsjIB+ZwfzKCFKc5yeTCS9YedYGPdkCxHHD8J6eN/XL2p/3AZXXpprkVtVe\nu7ti\r\n=IKsY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"73b260d2233a31311cff76e4c10438913b91c2ea","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.7899e0fe0.0","@material/base":"11.0.0-canary.7899e0fe0.0","@material/shape":"11.0.0-canary.7899e0fe0.0","@material/theme":"11.0.0-canary.7899e0fe0.0","@material/ripple":"11.0.0-canary.7899e0fe0.0","@material/animation":"11.0.0-canary.7899e0fe0.0","@material/elevation":"11.0.0-canary.7899e0fe0.0","@material/typography":"11.0.0-canary.7899e0fe0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.7899e0fe0.0_1614034012497_0.06508990156326266","host":"s3://npm-registry-packages"}},"11.0.0-canary.f19c86d13.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.f19c86d13.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.f19c86d13.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f42bb271588dbdbb4a364f1bde8115df304cb896","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.f19c86d13.0.tgz","fileCount":45,"integrity":"sha512-6a9rofKeYt0WD0vMAHnNddCzXZTd2fA/HagmpNRLfRUXPCFMHLGqp34w7tH59nO6Jz1tIUbEVT1RnUnKER+5QA==","signatures":[{"sig":"MEYCIQD4YD0N4j+m8mbVH7LZtXMIF3+CynrBJXxuivZN+3b4+QIhAMx0XN8HQd7XMLaAyeYKZrKTnvCvlf6YFIGIoxcq82sR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096357,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgND7iCRA9TVsSAnZWagAAkOUP/36PF+bzSAQby3It+qIT\nMcLT4GcsKnQ0mP3gp5GFnE/7KUd8bwflMhdDExoSGPshTflZr/MCQYtq0szn\n6iExpZNDUE12HCUoQ2RYMn7SYH4ipwllZySgdzF4InMT3V2uDTD82vh9+HUZ\nwJS9nSukukJY1SbRQ2S5mS9oSgUzcJ5E8dI1xWfsIq4QhHXu6ND+XS6CIMAE\ng9QykkKyPvFfDzsOOLKeWr4FV/cYOt3CvSpw3cMjqEiD89rQtw7rZkuRc5u+\nScD7vmbYvUs4C+3UQ9RsujHDvsT53x01VcELUBjW8ZcnJUr0oFlsQaqe7Ges\nekEI+irCPoRi5J6DQ+WT0c1XmP9HQPlp7sFZl9WEQ26UTi3XuuaUq1Ke/eGy\nXggUN1076In/VfFNLJtU7VDWn8IiWa1a2JTg6bx3gmU9uyopychxr80u+wsd\nOKt9UljMMYL4Z/y3xJkflEdxT8l3a0gZd7eFVxI/PSchlcYD2y1hBNHrDGqk\nv3RvCqPTEvC6hUqnCG4aq4KykthObHCyAC9Qx4HjOkwwVxCIbeiMt7X5cIpm\nwslldAf3go5MyICVMwl3D0ccvYqkim0qdmUExdzKNfFqC5lvqZ6swBhSm25r\nK52qfWZQOPZECI+ta9hsotKhb2hr3dtV5XJohNMBsNY1W2he0/MqST8K+dv3\nAi+v\r\n=LTK1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a4b2b851fa6f3895a9e915d4bdc5b6b6715a4260","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.f19c86d13.0","@material/base":"11.0.0-canary.f19c86d13.0","@material/shape":"11.0.0-canary.f19c86d13.0","@material/theme":"11.0.0-canary.f19c86d13.0","@material/ripple":"11.0.0-canary.f19c86d13.0","@material/animation":"11.0.0-canary.f19c86d13.0","@material/elevation":"11.0.0-canary.f19c86d13.0","@material/typography":"11.0.0-canary.f19c86d13.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.f19c86d13.0_1614036705590_0.18812935366529548","host":"s3://npm-registry-packages"}},"11.0.0-canary.60e892d79.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.60e892d79.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.60e892d79.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6a3d12cec35bb9d3c8f975b9b711721a70fd48a0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.60e892d79.0.tgz","fileCount":45,"integrity":"sha512-cc92jEPLspNEEpmZ1TFkipiRJVgb9itEaGKHSsJPfCh2ErKelaVikP0ZZ2kNo7jMjFz7AZH+nkcK1KNpMnBjbA==","signatures":[{"sig":"MEYCIQCshSMYpFieJ9clc3vzByiKdRvtS2eB+BM6/vQL7RPbHQIhAOeoE5775IwnusbrfeIITNjEwezRoAU4hUyMV8F7stqy","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096357,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNFcoCRA9TVsSAnZWagAAKS0QAIoEEekkZlvgSSqxcE2x\nZNR7QCit58R8uINbd72QlajswUXlKvYgomLW+dnG25tvRpCuv3P+DHBVkNWQ\nYM35FxXyTyZdLmGNWgQeeAx7I2shpdOCMNfOjAR2KX720MHlyqEo5SWHFtSF\nMsBR4SlnfHwp2D8SNCt5Q0AfomW/RnEbSfX4fMcwYXYUE/ZEuplVADLIctHg\nkCU/iU2dc6BprsRsEVT71Z9qam+hv4f/GYBF69/SL46cNYHWmiCQI3sxRBAU\nER5McUhDU7Mmbh7bxdPmovb6qeweUnc/djFD/6Awmw2dj6aRn+SxfJXsqOD4\n6p1MF3X633GC+RmdW/QHxBnrHIZrINrK6Exzf7lTso+4wkYrHMmxPIaN4Wzs\nvedF7uxzjUrqSzMWe82bJfrztA7zb4iWlXaUVFQraVOyR3iJ/Rx3lVt+s0Lp\nnz5QLVA9YQSfpth8K08GxtEXR0TuhowcJoATBX3KW7zm4oKAX+wzwAgeUSwp\nbY1/zwn8KvbQKsUA7g6J30N9vdtjTM/CJwOtgfBIxoYv5KQeIz6S5kQUBS2i\ncv0Ukhr9fTA7STNVxF2cKTzlSrunL3Qv9abqXJEyohZxV6z5VjeZc1I5mfwn\nm64JXQ54rME8oR6lRTUWF6a9/2ndcQ1aC5AAR0MZfxvHWAJblVbhd9Vor1bT\nhKM6\r\n=TuwQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c94f9f392484897a962a9b7101ddc6d70e5df67e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.60e892d79.0","@material/base":"11.0.0-canary.60e892d79.0","@material/shape":"11.0.0-canary.60e892d79.0","@material/theme":"11.0.0-canary.60e892d79.0","@material/ripple":"11.0.0-canary.60e892d79.0","@material/animation":"11.0.0-canary.60e892d79.0","@material/elevation":"11.0.0-canary.60e892d79.0","@material/typography":"11.0.0-canary.60e892d79.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.60e892d79.0_1614042920047_0.08381837582879559","host":"s3://npm-registry-packages"}},"11.0.0-canary.c96bfa495.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.c96bfa495.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.c96bfa495.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c8f910944abf49c726c8854ca559a9f00c5084c3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.c96bfa495.0.tgz","fileCount":45,"integrity":"sha512-gOWxw5f/pgXHRvq5IwPJTuLYulAIPnl/m+rgDPC0sBOU4oefubPQ+p+4x+HgGzbYLEkrolqYQc0t0+hh08RR7w==","signatures":[{"sig":"MEQCIAxUjS6vXrcAuNS2MWv/t5aL9GAweKQWyPmRphhCm69iAiApduLM54TFj0kOsU4dpkNB7xWn7iI9ziODef0NxPfn/w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096357,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNVi7CRA9TVsSAnZWagAABJcQAJ90ee6qF56iDnE3YAC5\nA7ghWSL6cEwvAtI+msUAdFAlQqAzWHKTEEaOoETkCBLBEyHCyW0h8CIJkdou\ne/NNjIQJiR+xgd582NoAJui8EvnOCau4FqBv2CZqLhnVPY3Mk8ArDdq6zirq\n5PUG//+S/Ok0UWz8rRXrE07CLgTFoFaHIYk24mA78ZPiHZq6nW1Ezx5ycpzt\nt5FjXx0S5bnp6NHNwH+/XXDtEudpWCeIaRCjuTN4zJgcv6YkmpWVYBCWToBF\ndz8uJvq2rTnpN1RFqxNufCAZ9W+QoXIII3onotgeB+2jJuNcxEpA8a1Sz2uH\n2NA4hxxkEtWsxVUxQx01sWjG7drrlEZ+VNS1/bVC1IQWV6w9mEECvm1RLZmb\nklQqTmGUeEI/lb4QKnKdXACm9+/robCzuXHPJ8S6vj2y/jPJAV7VgjX+NCBt\n0h/nKbwAAoq2PfookAcRIhnN1qQ2ADPCpztG0WgJtPejO7M+H3tWg46ZfQdN\nX0fHj6CFdJd3D+IikrbxuXOGzGqKpbja5Yoi0RaK15Ha/2z6iUv02VsjiEbL\nBNtPQeAPwHlDHSJI6g0zBDeVKBMXH0MYxzunz0jfZUuEOTl3H9GkuvHblb3h\naOkrUkXmlNgxu54JS8TDj+vWzr0+hvRwmT9U9ugJ+5HWwKYV1X/iZbP6J0ip\n7mPN\r\n=hsKg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1fd35f98370bc606c6677b7045a8acf16c0ea7a1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.c96bfa495.0","@material/base":"11.0.0-canary.c96bfa495.0","@material/shape":"11.0.0-canary.c96bfa495.0","@material/theme":"11.0.0-canary.c96bfa495.0","@material/ripple":"11.0.0-canary.c96bfa495.0","@material/animation":"11.0.0-canary.c96bfa495.0","@material/elevation":"11.0.0-canary.c96bfa495.0","@material/typography":"11.0.0-canary.c96bfa495.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.c96bfa495.0_1614108859464_0.27010723500472533","host":"s3://npm-registry-packages"}},"11.0.0-canary.fa9b59f67.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.fa9b59f67.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.fa9b59f67.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ef1187daf723ff17fd21fea5e4386fb3bea5c55f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.fa9b59f67.0.tgz","fileCount":45,"integrity":"sha512-P+BtEA6koHfqUd8m0+Mz8ZnkgDpIylVkhjnroX809JkZFHcKCo1lIEoD7vknddbXYM0iXFWkc4jt/CYTIgPi2w==","signatures":[{"sig":"MEUCIC6h7UTmRi2d0g7Sa7uh1VE/5VYXqP5zbxxZsl2IcrW1AiEA13zkp9QZq8ZFAz2BfeAddYU+BXPdd5M5FMzbayQoGaY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096357,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNVkHCRA9TVsSAnZWagAA8gkP/2rDeuCZfwQIM0C/aqFs\nfuNlpRY8sfT8dwa8ELFAzcgfyvTzFoGB7+9kcjEZSrSy/DXMqshnsBaCTYjk\n/yxut69EomV+YyYHyTx/ZGU9r7bw1VdD9ybH0Se6SKejsAFkPfhCOoKBg0qA\n//YMWriDb7o0ducoJfywJm08zi3TdMJZASQbk0MUa8Hf3MY7zWjxjgsiI4n5\nXHz14Eu8YsUXg5ajQMrFIMweAjfhhbzCF1VRe1OoyLFCuSZ9hZJaNL1eYRDt\nqv1a3OSQcoYOCWiAT+xwFktTeS6u6it3Nc6OHL0Cz2bBXw1oddCJ4xCKQwHM\n3MmcbJmVK2jmgwrLOPwaB6GmvIcDcDWROEhIuzNRSpM+7I/EEr1qGQw2Prqt\nDqD/0UbPK1diRH96YZ4kCNOqrDqEZlBA4Fcn3ZFN4Z2fIv0eskvxvymdTgEj\nojw0sf6oIyHWgEVNKPeNxAmgMZi9l/+YCGrK7JaIuI2ju0OBT/oQkEl75KYL\nIkIHfMwsOu/wBv77uFAUyNgLEG3WcTVBh1szSCN2Awz3FcG1XHvwWLnsBoSR\n2EIeSGcdQGM3DxJcU6TOFt8Ahq3lK1oLQqf17SBrYOudWj4fMURGm8bfbk9i\nRrAAvicdR6lUFLSaeZhTExw1GgagYM/InAKH3Z2Gg7xvAhDXe6f1VTFVi83f\n4O6/\r\n=uqDG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5fd97ca8b5906f3b3097bd333237976e3e93d192","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.fa9b59f67.0","@material/base":"11.0.0-canary.fa9b59f67.0","@material/shape":"11.0.0-canary.fa9b59f67.0","@material/theme":"11.0.0-canary.fa9b59f67.0","@material/ripple":"11.0.0-canary.fa9b59f67.0","@material/animation":"11.0.0-canary.fa9b59f67.0","@material/elevation":"11.0.0-canary.fa9b59f67.0","@material/typography":"11.0.0-canary.fa9b59f67.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.fa9b59f67.0_1614108935342_0.8601962845471525","host":"s3://npm-registry-packages"}},"11.0.0-canary.869e3497c.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.869e3497c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.869e3497c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9672dbc2c536d209b03b3d1f8bf29e98bc8b38bc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.869e3497c.0.tgz","fileCount":45,"integrity":"sha512-d+A/SVyEPzVr8ljsA+2GisKKa03x2K7Jf13aupgp5xDynSL1fszTOakaNMLnsodzg9Utg51FMkTi1plytzWMmw==","signatures":[{"sig":"MEQCIFcIM15FH5f+6yJB4S3XrkPALpbAmzm4VHPaOkbfV17EAiA/0/E1CcZ3aPVz+6wmASjEqNb/7j5keKqbGHv2suOfdQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096357,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNVkiCRA9TVsSAnZWagAAu2AP/2Ir9x55ruWgjreXG37b\n7s7gHX/VaHANEbmrRCfaXZWBoZrGmYyWWWYX+s/nCs5DUX2vqPrUQpCZUcFq\nLQbpADqpV68+P9awvx7P+3ezd+SEZgPkXL9dZnnBvOOAFk/BoH3kq6DJ4tkg\nI+CeVtL+KeQ2kktu8hQpuOSKoekfFMSWBYoMT5SHlAsvnP6JnF9xOZgwPiGm\nB9gtxhImSJoLfEq1Dtu5svosTKFoKsTIia17+zguTOi+HzQMRUcs/2J+EaMX\nzXxVRPQy54DUKVBz61Q7pcBbnRqYhK2cfmULzOYTGsf1m/CQa0hMbvSwADPe\nEY9ipcE5QoU8t5xUKfnp1SyjMKLoKHVPe463CXWL6cKEq7WYe2pfddhhe0FQ\n/ue3b1tU4so1hz6KEiHD8k0mMT8eu7zYyG/QTSDamk+G7RbkjpHf4VtY2YNB\nXJx7fBulsLgc2gMdDU2xH0ilQIV9zx/YHL7G7+kONtC9Wp0Q4QRSJpgS2shz\nLAH6cqiHYy9H8+3TbnX41JSLl6vOaGARRXNiGuUyZ5Fs165eoM5mPrp+0EQ8\nGeQ6OLTGtn1pR2Q5epha4pRjHpCZFc/+AMMGJEvP9yRAXinWNSrqkZ2KpLLr\nEiYypCwcWz9ugSjUstzinqbJrtrPFZRDegJJIfsB046Dr6hYhzCUV9qIHFVu\n+iHn\r\n=RJNe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2e1e116734dbd0e962ee4e11a9952ba9ee6684da","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.869e3497c.0","@material/base":"11.0.0-canary.869e3497c.0","@material/shape":"11.0.0-canary.869e3497c.0","@material/theme":"11.0.0-canary.869e3497c.0","@material/ripple":"11.0.0-canary.869e3497c.0","@material/animation":"11.0.0-canary.869e3497c.0","@material/elevation":"11.0.0-canary.869e3497c.0","@material/typography":"11.0.0-canary.869e3497c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.869e3497c.0_1614108961959_0.48856161089267136","host":"s3://npm-registry-packages"}},"11.0.0-canary.8ecd7c9a9.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.8ecd7c9a9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.8ecd7c9a9.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"79a7b84210c686a907a853583b4be150b8f6b053","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.8ecd7c9a9.0.tgz","fileCount":45,"integrity":"sha512-MZYepWS8je3P/H9hH2nP4qQCuyx6+DuNsUTxRCBDzxIMKdi9vuYSDcS6X4rxSZw4NUY7NSR/0w83IHOr08hPGg==","signatures":[{"sig":"MEUCIQDzad1dOpYBqLDpFES9l8HJsVU6DVbKObQYQ83MYc5ANQIgQmE2Wr4HAZz2VcUqw30kC7GvBa4hWET5jgzZIF7lhqA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096357,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNVzSCRA9TVsSAnZWagAAW6EQAJcymKnn/9k1aBIzmVdo\nF5hCtCfWVCFaaJjHcZzxufa4tqCmAsJidOzuwW9KPt3b328MAapCEJGOnWyq\n0crMBWoIdKhjK0FgmBvHYyM2/3SDpfZjs2rqgHjJ/FqLb6Yv1eT3E/5B8nik\nc363HLHS3GA7IyTFeeT7q+E/KFwNCJLv6efycqKENjMg2EOR8Mk/7rZXKJzt\n/uyXHRKCDvepeQFpAao4D4HaC3Xwuvn7sjf/52OzQUlq7fSckNHQPq1qkvRW\na3zqmG3iuIeBhaYTs5Wm5R+UF15FpMcb8/sd1ft/8MeL13V2+ffU2nEdEMeA\ncFd7Tzb+bQ+4aOH2DqMtJPjAtj72CDt+C1OH4g3HYWiY9Bv5EOi9mx+Fo1Ui\nHKucaZlJpGRGN+SSyosYA48Yfbq7OhDobKgBO69VtjWi0VYVkxvvM0R3MkEV\nlhPMtzvEi9Cp16ZjoUCAtj03UPuETnB0319z3p4Q3nh4pvrrq/SsstgjFh9x\nKzxmetHWFQ0ShzS0mewdWyJ089zvN0Hqh2dO7VOkfEkoVLP6j3VcOkv46R5f\njTQ7UO7xLw9IwLw2/Mx8oBCAeTmm/LVztHB/RPmPUShqh3DqBMfJA+Nz+XUJ\nK7vYtun4tRS0PqCn2/XJJrkIpPIxEeH/+29xahiKgZ7QiaLcWR9ML6tuL609\ngswQ\r\n=hdoy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ec70d22f543f79f769bc5b509c9dc06cb8114af1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.8ecd7c9a9.0","@material/base":"11.0.0-canary.8ecd7c9a9.0","@material/shape":"11.0.0-canary.8ecd7c9a9.0","@material/theme":"11.0.0-canary.8ecd7c9a9.0","@material/ripple":"11.0.0-canary.8ecd7c9a9.0","@material/animation":"11.0.0-canary.8ecd7c9a9.0","@material/elevation":"11.0.0-canary.8ecd7c9a9.0","@material/typography":"11.0.0-canary.8ecd7c9a9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.8ecd7c9a9.0_1614109905983_0.29494782228397964","host":"s3://npm-registry-packages"}},"11.0.0-canary.9c85d505b.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.9c85d505b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.9c85d505b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ce661d09f73d06a2360536c8436c5b0297f5331b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.9c85d505b.0.tgz","fileCount":45,"integrity":"sha512-Bt1f5MMB8JYNq+9T58ZkPApD+2EoWMilbb68xSU5rl6A2pBNqVTc/I3E5xngvlCr0UqyatxgbvygAN0NIRXngA==","signatures":[{"sig":"MEQCIGuyI2kufXGpkowiqug5qTOGuLRKdyFpR1eg/lz9AuGQAiBf9L8bbzFMSVJ8M4CnA9XIc+3YjbOhfzmP87kY9OBynw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096357,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNX7OCRA9TVsSAnZWagAAOFIP+wXtbQWbohkKIBQskRSV\nlCyY3hYDE0pRvMmGRR9ijATudjTWW0lZUeNjG3GlJZNHx57L4uV3zkYmO9bc\nzxBHvhhLEWTukOvuZDub3gRYFxhS/RRZQIBgcsju5BP+Yo/Aj/V8FCmmWm0U\n0WaxwWDM9mLfqQWfiKj8VhJE+NBHj/ZGcPKWtLijhpbeqUZOTMPORjt991bM\nXVZwKRKj9keqj8E3GbVy4V8mY1ZR/q0xYbV1QXxq9ALGOnN3N5aR1yO0bj62\nz7SDG4Upy6BaHczdgbQkFx7gH+xH4c17FF/mxXCs7MIQrKjx3DFcHmHv34ck\nrJBJzrRvazTy5S8ThLQpikZEeZUoigwIu4WbTT0HIu1loRdsfxRF+9NXHkzp\nQoFKaH5EkxVPgVEHKUk/6VxAfjtt7IlGv00bMzvpISONMVgDL6zVFtckb0Zz\ngfNUJDt9xV/aT0bOGXotk3MAxY1kr1fXS0YjG1bRFDHCMMPtBx+N7rcT5Bgf\n9XkUm4kLV2YyjqPsDk6CWNeBvICk64pYugczQRkA9X/dJaly2VCIuTZH4Dfu\nNNYWgVgl/ghz0YGHyHrLuGNUIzvKqDCzCS5OgzLqmDtWNvkPPuZDvwC2G/VD\nleo0zVGnFfttWqKbb2ECqQ2xinkfGj46AzCLayfi0Zbo/vxkIEBWmAp0kRKZ\n/nPs\r\n=Pnkk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"374562c85250daef48b37a0e27a506a7e81c56d2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.9c85d505b.0","@material/base":"11.0.0-canary.9c85d505b.0","@material/shape":"11.0.0-canary.9c85d505b.0","@material/theme":"11.0.0-canary.9c85d505b.0","@material/ripple":"11.0.0-canary.9c85d505b.0","@material/animation":"11.0.0-canary.9c85d505b.0","@material/elevation":"11.0.0-canary.9c85d505b.0","@material/typography":"11.0.0-canary.9c85d505b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.9c85d505b.0_1614118605545_0.42154237681804974","host":"s3://npm-registry-packages"}},"11.0.0-canary.9f2e85fb8.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.9f2e85fb8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.9f2e85fb8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4bd7cacd00cf4fd0598dbdb23b34b77da22403c3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.9f2e85fb8.0.tgz","fileCount":45,"integrity":"sha512-59sVrKUBRUb2uq9i+Zc/fmiLSI1DOplho/2inGJH+okeXlxY8cTysSNsomISnRrvN3fmVr1RczVvjW/7+qYsZw==","signatures":[{"sig":"MEUCIQD1bRuwOJp2qWVdNoe83E5RLRzUxiaBb1bwnSTg+P5r1AIgEgSFE8Izy3Q5VqiLDirGyZtIdAIlv3UctJenpqAQI+Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNbClCRA9TVsSAnZWagAABK4P/3zuR0zGAjLbGOpfFHHA\nzOS03W5dn2naN8HAfJyp79qiv4IlEbTqRD58XKVI3wguh/pwDgHS7X8Rx1hG\n0vKeAE+xxwSzLbgLSru1dEzlQIbIuaCBvMMYokmvqokRRYD9h/KV5uwRoGZ4\nYuE+mO3UTAi3Nh+PZfowzATK7ttVBnd/oDVjVUntOCrAv1t2htOMqQSfEpB5\noKEnHwesYh146WDnTIoAZskYHsnYPcgWWhQXPY8UXY1Xg1YCH1gl++ga/ryN\nCknCLK7OEf6KY79g/UXhFzfZQxQii/7G8c/aYo5nO2CA3yEpZfQOW/0AE2Bm\nCeeVB1r3a/alDEonA8PG91IKBSTfbBpyRPOtC3HIjk7kLpAj0Qdf7rl0Lduc\n+Zc1lYBCi4aOpm9NGGCygQ+5cAKFo/Az1+Kj3yJ5R45DyRrf26mJUS7C9DNW\noNXW/3HT6P0j3GOApN5haDl2u8K+5yUihne2FS+6kGYvJhqs+fsiLTAWK7D8\nTI7XC8vrwJbq/7XjHl0Jc1Tt9bEnszcoSGlNuGT9M7j6J2/AiB1gvSf7S6jY\n6yLoJ/+BHmTg442bx7y7dv/bWLhddvBh8Dhxw/4Oe16jj+lc/TbWnxBpGn6H\nQSkGhVM351sWlw2+fowiFU0Q2TEWR0Mj35/TWkORYBJAEoBZ+4R6itRO6rfR\n3SII\r\n=nYw+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4dfe4e49ca9339b2914b3dfd9e5c12642a0fd60e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.9f2e85fb8.0","@material/base":"11.0.0-canary.9f2e85fb8.0","@material/shape":"11.0.0-canary.9f2e85fb8.0","@material/theme":"11.0.0-canary.9f2e85fb8.0","@material/ripple":"11.0.0-canary.9f2e85fb8.0","@material/animation":"11.0.0-canary.9f2e85fb8.0","@material/elevation":"11.0.0-canary.9f2e85fb8.0","@material/typography":"11.0.0-canary.9f2e85fb8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.9f2e85fb8.0_1614131364768_0.37924653785883633","host":"s3://npm-registry-packages"}},"11.0.0-canary.19c4f29ef.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.19c4f29ef.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.19c4f29ef.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cabee25effabc1325fe6fbf178859fbbb32d7cfe","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.19c4f29ef.0.tgz","fileCount":45,"integrity":"sha512-aSSeo4pFWu3nQrGpfDP/1oFAC9YzqVPSPDNeRkIh12gmghUr1MMnYkmG5/1+YDDIekX+SmCHQreMyYcMw2zNgg==","signatures":[{"sig":"MEUCIFCDnMYrHWywoihqtNKvqnqD1rILTPhMDF0tOPf2DYTkAiEA08a1jEvJ/rsyYptKyc+sfLCSJAGUgjG25QX+7Xxs6gY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgN/k2CRA9TVsSAnZWagAAOuYP/0KkfYk42efX2GT0Uy2Y\nhrevVAMSkHlC52uaeELBvbeJhb4jlLit6mKL6UWEr8/AxwjrUlN6GaTgEdf9\nPVFOWEcN3YaKmWLED1O4Lf9rFKGrZ4CqmLuXdEXinW9jsWTo+D7g4MzVQbcd\nYOArtUn6AVPdeWsLJkSXrybaE5PFJUYzneUwzShBitM3GH9euSK0RRv08Q5C\nOwJq3a16xAV3cFW05IRvMOeoPPG+EhrCk5KMZU/fX/A4qQTVaR8wErtV/pjg\nIgxjPrmDvbIRzKX1oGq4VmPyZtcszmIDKF2EgjlkyH5hJZ7/u+PPCupyX691\ns9aDRvDgRrLBc7al2gTZdrP90+XqtqbcWG1EZhc70YDnxq+JP57QXEGE7Cge\n/j900qupq63cqxj2HQSOVvX+OerTvW16rENeAZ4pbI/p0WdXVtYBxbSwtu20\neCUOkjS8JvtT5JHhkbyacHqfDokOxUJwaPmDRekG4b/KWyyDoxQ5pvCpoSxb\nOlLVsIvOtDCQRDlmkFC1qy1GcIshzc//TWDbzjKtK1Xlrdzmy7PLFvL4nW97\nmO/KI3gTijY0xUpc4YbHri/l0tkpPyLuN0R2p2BOqDUlKMUBBubica4ftGBQ\n1A9cYRRNfgxj52y8Qad7T9o0U/e4d1ucY/CEg94z3KsYRhC1quBO4SuEvs1Q\nKiJX\r\n=eRSg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cf61b54810b37e81ab57d447f7d050104a2f6f46","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.19c4f29ef.0","@material/base":"11.0.0-canary.19c4f29ef.0","@material/shape":"11.0.0-canary.19c4f29ef.0","@material/theme":"11.0.0-canary.19c4f29ef.0","@material/ripple":"11.0.0-canary.19c4f29ef.0","@material/animation":"11.0.0-canary.19c4f29ef.0","@material/elevation":"11.0.0-canary.19c4f29ef.0","@material/typography":"11.0.0-canary.19c4f29ef.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.19c4f29ef.0_1614281014240_0.17442313337778348","host":"s3://npm-registry-packages"}},"11.0.0-canary.63df6e9bf.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.63df6e9bf.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.63df6e9bf.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0bf65d8b23e05e9096172cce483b3728f624ecb6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.63df6e9bf.0.tgz","fileCount":45,"integrity":"sha512-55sqTR2rnXYmvt67FikQOxDdyQlny83UPOLO7DD/DiPh4NgZxGuqJVEekKyb6rfjXq2GK6a7tq3FhuvDbPMxjA==","signatures":[{"sig":"MEUCIQCaB6rWitf4/GAXtZWGzfwzJNNnV9xaYEV37PxXCyl9+AIgZs7VOm7LkEDZtLKDQacrruqRvodXNhT8ziaqwzDdSvY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgN/ymCRA9TVsSAnZWagAAvb0QAKKhsNSNyO3Sz2ADvsIo\nPmc+A9TXU2MAfHNljwvxhxyFzBL25JFxvallQmPfeN+nITLmkfr/CMpQ6kIR\nCTq+9K+TS89b18szgLIrg+ngMC8g7KkuFVY+2CCUChrnp1LNl7HlI+7S3qUc\nAhakwgEKOl71hqE04L6V7yUmCIEhVlNEPrD8in1RlsMLThWYC1AGOz/nOYlz\nNyXt1+cJh1qiN6WsoWFUFPZcxEsMMftY7GKtE26C9nWQAgMZ9RsNTU7mSJrK\nJY7BXk3JBzQQBCLdEtW6W3MDTBSRWt63i7khN03xC/Jimu4/McqD2If4WD7Q\nyJJGksNwBsheYxfabZHOUiE63kVI6358HEBIpRwzsLS7B0kMXkU9b9vPuhrG\nbT9Bdc4kH19MK36yECo4kwJOXPV3gwhs0SZVsNyPFQAStjV/AtidckBjnGxr\nQ8ehkZ/YUQPk/qiZ0dJ19fJeiyw4pmDctZp/BX4cO98C+pxNp35CAP/GEFYx\nxszs1OLYJJcYfIgrqWJO6QGPHinBKlnF+pS6tBaK4234lEz6r7SQ3zF4IPVi\n2qhF9nCMd6TiuLdwQC40yCWlj8nAtWlgixF3HkBTU9zECS7z8DQgTGuzZ4S5\nEZTclqC4WFty2MNY3Nzyhl2GjYS88xkIJrsJt7E6plRsi5KSBxFadsCkPa0I\nYOgw\r\n=DH21\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6d11b414d4ea43b5c780988e2437ee30c9f1c0b3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.63df6e9bf.0","@material/base":"11.0.0-canary.63df6e9bf.0","@material/shape":"11.0.0-canary.63df6e9bf.0","@material/theme":"11.0.0-canary.63df6e9bf.0","@material/ripple":"11.0.0-canary.63df6e9bf.0","@material/animation":"11.0.0-canary.63df6e9bf.0","@material/elevation":"11.0.0-canary.63df6e9bf.0","@material/typography":"11.0.0-canary.63df6e9bf.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.63df6e9bf.0_1614281893939_0.519996327746459","host":"s3://npm-registry-packages"}},"11.0.0-canary.981ad970a.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.981ad970a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.981ad970a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9d53c2575ab36b2a62e91a3282bc077826710be1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.981ad970a.0.tgz","fileCount":45,"integrity":"sha512-RxUjcrw7EQC3Wskn1xdYd076JqU1I+UrumtGs7n8FdZHo413HWeIhjAnCLuL3J5ugktVRgxlBfFyA8HHjYpPog==","signatures":[{"sig":"MEQCIC07br/Y7Hr6407AGueOXBYfvSU4s7UZ0vSaXBXyxdekAiAmgz9AaZ/My4/4mgOgikTdvETz0rfw7jAhD9Ab8U/SDA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgODwkCRA9TVsSAnZWagAAjC0QAJNRwb7u7G2Zg/jXodPa\neJ3O91DkGnCobwzHJruF4CmqV/7//w1hLWrYm8EOsYrrFFlOBaqppdQA3spv\nbuegNn2Q3zCqRAKLGGfpKFLkTHJ/3TezEz4Q2PR4KNXfNtwsQz98c3RSVl5F\ntj3iNZk+tiPvHTGWCOwVmvrrw81JadbGOh4DO5Q91QB91/VBWI3voPqOijvL\nbinfAWbO6s0ofu8kt4RCSyJX8ycSj038r8/xhPNcm9MhwCgfmznQGOKpIA7j\npbnnEn0kMGp7Yg7BtjkKKc7eYO9h5JHwFnoGu5z80gDNJN+ct6JfiH4xZjow\nCVObCIvR+p1Ud549rRSo01lFDE7o7T5OnGuOnlFr40qCN49N2mLttMTnHdET\nLh5ocnBOz648yNupv4nztKp63xRNOZjWCUsoDnaRff/VyU/9dIs6/As14m4n\nvai6dQTe5GMekjPFSuWayJ8ZvDqw8dv7bNyJSzjtNuFI1mpZjFjzca+IkWlq\n9npt2ArDxwiSBr1RuLWghnL8qobQ/BEeketiT3HvScaHcANe+jFuw5obMroG\niMTHbaJ+T84XjdFztOYtIPZ2h9BoCr6GTgcn84D2xML9+n8GHNhqrkwBN/Su\ndicnNbOOR4qFkTnVpKhvcOBrNycym7yLrZ9Y9iStdPhOg/PDRNLDBiNoMZAo\nDWLj\r\n=UR7J\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0faf6e6b78f0c9b2c63f416ae85331d13aea198e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.981ad970a.0","@material/base":"11.0.0-canary.981ad970a.0","@material/shape":"11.0.0-canary.981ad970a.0","@material/theme":"11.0.0-canary.981ad970a.0","@material/ripple":"11.0.0-canary.981ad970a.0","@material/animation":"11.0.0-canary.981ad970a.0","@material/elevation":"11.0.0-canary.981ad970a.0","@material/typography":"11.0.0-canary.981ad970a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.981ad970a.0_1614298147751_0.15117621519243762","host":"s3://npm-registry-packages"}},"11.0.0-canary.f9c9e39d6.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.f9c9e39d6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.f9c9e39d6.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f9b08a230dad484ce6a904c2b497d3ed56df93f4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.f9c9e39d6.0.tgz","fileCount":45,"integrity":"sha512-3x/O+3iBMcRQQGlymXHSIMhy8hQyv3ysofnUe+iTg3w8bCRUk8DDC7/aKfgFHKSwkFaBt5Bo5YvPR6xjCLK7PQ==","signatures":[{"sig":"MEUCIQDQbgyRLzl1qssiq+V5WFG47h8cTw5isO7VY664lYOjKAIgWIsGvTRrv5+7iLoZsi87ekk41Eh5jfpAWSIMApG7suI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOUB6CRA9TVsSAnZWagAAXj0P/2keQ1EuFBwgytayDNBE\n+bwhAjhal5YL2uYe3UPOnaoWj/uwMhaP8+hjY2vPzehUeX46qYHvjVYwKRzv\nEZ840djL/SVYCAARd6nVkqTFcbg1VPy9DjyXAteO96pgbsiA3Dys+mZtDZjd\nADwNzeO3byCq+p5vk7DlJcS2epuQUUL6RRZoEYJ5/JUQBv0mO6QuvV8g2Wm4\nagdRDmGuTt8FicrpjZntoamy/r1flJKu9c+yJLYBdTqmhfzEjJC1mN2SpxCG\ncnCDiLPpCNwnPH5UDC/ARNIIcIyqiL6qoYxbP27oXqe5AgGZQ+Wr65nRUXOY\nxDDQ0KAOtyPFRvSjG9VCN93hBlinCxdNuF6UyUjSXEPMmajTlNo1uCpM1XnX\n2Zf1yRGzrtCJJd5zaouz1EXeTTDud+e9mPtgUTCbZ1EoxVKgiEtnQtPOUxr8\nE5emxLr7Oqo+gmxid8YteLo/mzq+aeldwNqcXOTVoeSq/ECzfvniX56rMVpz\n0nzVmwWi9jl2Dj41wiNC/TEMJs2t+vFXf/xO+csc4MOCU03jpklWMYHchWDo\naK+kjORZLZTSVlDmhsEajbq05m9qMy7UG7sLA7f446UxTHUxTsH0F2EPC4T0\nCuy4wZ4wvZdKWzvtROlxVusZ+dtZlEyhUmsJy/glepLobwZRb07PSqKcxSSc\n/++W\r\n=mhci\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"81d489ae3f1defd63ee64de05a2a330040ae6406","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.f9c9e39d6.0","@material/base":"11.0.0-canary.f9c9e39d6.0","@material/shape":"11.0.0-canary.f9c9e39d6.0","@material/theme":"11.0.0-canary.f9c9e39d6.0","@material/ripple":"11.0.0-canary.f9c9e39d6.0","@material/animation":"11.0.0-canary.f9c9e39d6.0","@material/elevation":"11.0.0-canary.f9c9e39d6.0","@material/typography":"11.0.0-canary.f9c9e39d6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.f9c9e39d6.0_1614364793774_0.18563420729264157","host":"s3://npm-registry-packages"}},"11.0.0-canary.c97d7d881.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.c97d7d881.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.c97d7d881.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"821a2009dbbc7a21018c423db675e4695a16c784","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.c97d7d881.0.tgz","fileCount":45,"integrity":"sha512-XJRUCqLMtX6gued80qYC8zNVybSwPSLJH/0rzeYzJIs9O8x+kBaxolpy9q8L6uTMJ//x9DKrQtP/chQeSZ0Xcg==","signatures":[{"sig":"MEUCIQDcjtNM8jZ11DeLnKn9MqyVoYXx7AE0mN3IIpE81o3I4gIgVl3RHjfdB6QuzZimHamKspVL+dbNnp5GEfr8FgFeyig=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPVR0CRA9TVsSAnZWagAACecQAIZHD8+2Ukzr0LKCRqaS\nk0QfX+ADYxQISwtlW83EeJA1IBZgoPfyy12kBXYYEJIKeGLqzgHDecKHIM6n\ny6T32e1p8cbtVsjvW1LdxsAi4HCr/dqaqzRIcazXh5U6WYn51u4Zw/gH0bhm\neSRBMyQ4TEjkbNG3ZPvDKj3tP29OHp30pasXBeix1OGFtEvgmjk1Ana737ze\nuzwPSi5Ww4kBFZZkfmA734dgLRF0lZMoLmbeJOnbIxlHlCTWPjWaKxAfy+X2\nb2DJDXftH1G8srCPn2dhFuIegA7j2NRMhY3FZ+p+UQXSHqpu1WpWCovO88jQ\no8B1pSccxe9bSj4ciYhNm3zI+agY06CQQ7/RdocS3SPqD008ZrVaELJCLcVr\nPIPhhAeHkgaJF2I23icfJGHxdt5zKBWsi0sEDAcNoqnIjKOVFQsNrqKsf3PL\nmHRnor2To2DTvBodBSnyJwQf28mvL+VoSjefsMsWE5eFDZBFl5G/5vcPe/55\ng57jY1jHNZJzVj9/8tlsVEbNUDNPA03HaTVwReBNjzCOJvjPsurXntBUg2UG\ni8WR46xambwFYTb5bZEicBxUGnbf5gy+Iu7YuVSstMu0zs82y0pBEuMUYZMq\nTHBhffK0K6vIaP3AnP/Nszu8YXgLQf6ImdE8FFXY+/9ZOc0utBH0LhXW8O7+\n84J0\r\n=7SVX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"27a49055320511cea9f431f9c62d44a6490bb64a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.c97d7d881.0","@material/base":"11.0.0-canary.c97d7d881.0","@material/shape":"11.0.0-canary.c97d7d881.0","@material/theme":"11.0.0-canary.c97d7d881.0","@material/ripple":"11.0.0-canary.c97d7d881.0","@material/animation":"11.0.0-canary.c97d7d881.0","@material/elevation":"11.0.0-canary.c97d7d881.0","@material/typography":"11.0.0-canary.c97d7d881.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.c97d7d881.0_1614632051265_0.9220292395327967","host":"s3://npm-registry-packages"}},"11.0.0-canary.bf670dad7.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.bf670dad7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.bf670dad7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6b813454c02e86d8963f18c765bea3c8bf0473a9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.bf670dad7.0.tgz","fileCount":45,"integrity":"sha512-ttf34h2i1aoNF8hCL/9Pj9bG2n/iqJitIyYvwZWZg5rT66NcujsCqUVllKEG1BjalsjiAeKtoug4AIVE4GwjoA==","signatures":[{"sig":"MEYCIQCdd4ssYXXIqA/qmUohzgPt6la4Xkj+WciljrKZ7w3jjQIhAKVReFQA50QBVRX4CfQ1Q1bFrTKxp/udHFplmMTWOM++","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPta1CRA9TVsSAnZWagAAaRUP/0G2uf9aFl7WzBpTfGyL\nQvdfquRn5tPIpKtbLC77SblahhwNet1B56oEOz/pXegaz7Pd6fqh8BYazNnc\nT7MW70wVSBNYWyEWpnGs47tyWFFk5HnkQRByl0xVu/liuUQMMXE2fBoxiSKB\niHzlm3gkQbd5hHYYci1Fika94bbFZ95u5zPgbIDtZsi77r+9X8MaZ3ptr2ND\nmh3Aa2neiskZ5w++507P+aTuq9zhjFQ20nbt1ZqFgyYcNa0etIzPAVMlWjjY\nCIfJaFLhmJY5TlJnVeElaz1FFsx7ErJYQbrWakdP8zC3UDFMYtv4eipUIGR7\nBHJGYzWFW30A6sx2OObP5bxijacXv3z2HqEwlh2MjKItLt2TG8ZlsemfqNP9\nabGPHoZ0uj6uhiNeEXbIRvjKdwLk5tXKfCz8/ThEuFpVsnSxRCMSA1E12AJk\nOdRhkd9a6iLlgxQdG0DWaUuTa1jNx/1uFx7GoAkabs1BYrjrrH+xLaVaapDQ\nDiyjRskVViO0u08VC1dU4MmV6Hxfs4ty6/EuIjjkO+j1/uOyx1PN+g0g+GFo\na5lksZXlr2nrocYuqVPtcF3ZfCC3QUmaEThD1veAQ2QhXerYF+qZEEvNQNud\nnwDm4Q/O0TVw4iZyUTWdUoAdN6TYilI+ilL5P1P2CLdACPS7tHJhZpARw/6o\nJDnb\r\n=iivQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"61b03e5331bd5c886de5c4a57a4edc1b53878e47","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.bf670dad7.0","@material/base":"11.0.0-canary.bf670dad7.0","@material/shape":"11.0.0-canary.bf670dad7.0","@material/theme":"11.0.0-canary.bf670dad7.0","@material/ripple":"11.0.0-canary.bf670dad7.0","@material/animation":"11.0.0-canary.bf670dad7.0","@material/elevation":"11.0.0-canary.bf670dad7.0","@material/typography":"11.0.0-canary.bf670dad7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.bf670dad7.0_1614730932593_0.525898274518241","host":"s3://npm-registry-packages"}},"11.0.0-canary.c7d98fcde.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.c7d98fcde.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.c7d98fcde.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9d229aa7e750b3b193d36584ebcf4c0ab9000bd9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.c7d98fcde.0.tgz","fileCount":45,"integrity":"sha512-V2ZQJ/uLB+y6lfYWGkfHYq9VIEwhoNDmSLRs1ZBp+usEytrb8ZEh1KZhvWRWTaMXgePxPhb86oxw6z8Uy30b9Q==","signatures":[{"sig":"MEYCIQCjktOQ1kwgUPYprcw38NWKujUahMoByntEjLEdo7SUvgIhAM+f62rUZViyQHurSMdCxIZ/NGNbMQ6FL7fHtcfQ7UjL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgP/KNCRA9TVsSAnZWagAALUkQAKMa65/fqKrfAc+LN2Qy\nCTcHfZCH3V/y6cx/1UmjDg2jbbrdXTXmaY4nn03LpYG7TpnJB44yLgxk1Amr\nzNzk70pipdyDxnHbSRwHRPRTUmjnKVTW81Qye9P84eUf0uC2UJlVNpXAwCGl\njyD2iJzJjs6JKtnoKZfo/E8/bmVWvVdkuF0eWtdh9aU3V2guZmyUAp4ACgg0\nnreYOOheomdXg7nnKSCs3cd2KSDAojUtdF/dYQOHt9Zb/VOcEYN3WKf7bHio\npXuGgHygftLPLFF3aSZVgnQi5dd4fRZm3q48iIyXDaR/zvTQUvLARsG6tGJY\n+KQum0sjaiImq8v6eUpqHUx0ahK1xit9RDp/wiitC2FvhUQ1QiulfVyGjv0w\nhhFYNmJXVcWjuFQtm4w8JftvrS1JqPu1/cfvpltgBkuhTodnXZxiK0aZK8X3\nmNyPlTQl7skW5em5Ud0PADyS+SwMmBhFEBfyjCx2vu1wGc5tTdL1+ljvuJPh\nGIYli/eVW9OeCn+1Rg82ezlweALxEgmz2/IyJlotOw8QVrVcfXhP2Ijgsblg\naHb5OiwIJsNKV/ZOc48+5AUZ6u8T7ws+rTMjSXvfJYCmo99TaVopSFBEZAZ1\nkHuc/W1ExijWlq7cRxCzfiiyr0Q3eVddcGCOxMB62riIGyo8o4cuaYRF2ZQb\n3G2O\r\n=ufQL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c5c4c5b417df34d141edcb1fd743d83d7a2b49cc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^1.9.3","@material/rtl":"11.0.0-canary.c7d98fcde.0","@material/base":"11.0.0-canary.c7d98fcde.0","@material/shape":"11.0.0-canary.c7d98fcde.0","@material/theme":"11.0.0-canary.c7d98fcde.0","@material/ripple":"11.0.0-canary.c7d98fcde.0","@material/animation":"11.0.0-canary.c7d98fcde.0","@material/elevation":"11.0.0-canary.c7d98fcde.0","@material/typography":"11.0.0-canary.c7d98fcde.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.c7d98fcde.0_1614803596700_0.0038439881329672687","host":"s3://npm-registry-packages"}},"11.0.0-canary.4fef8bc1e.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.4fef8bc1e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.4fef8bc1e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7a876c34c3e586093bfece99241f23585e7bcc18","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.4fef8bc1e.0.tgz","fileCount":45,"integrity":"sha512-EJzsGecuqVHmLV2ksTion/nPLh1Tm70ZkzsiKM7CKFzXkfRIOtSJ0sh+iK7ln6eT1QQk0oNM/hBqvgKBePvmlw==","signatures":[{"sig":"MEYCIQDTjmOp6z+sGXao4ZgtTT9cOLiLQH++wYyqitHn8VaffwIhAMe3PDNLiDdQ67225FExUL5LwUjSYI45knhaKO8twQrG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQBrbCRA9TVsSAnZWagAAZQcP/00GmjM7GDI5gpvT0CZG\nVV1+rHPe2am6oWZR85yUKZvSE5SzrJaawi1EGy2bXldUkqa9sNoSMsRewW0Y\nNUthW5OOVccYowp9y5m6H1+4rQz+40bMtVFpNs7VavVN9D35su+PCiswlAK7\nsXnI3kkR1GDGSFWSw1Ds39td4dcsdf6L2bgl8atcy97Yob3lPMd5BY7yG2tO\nKNmtqcz7MQdPjtX3KWP0c9yqACamKn8S8+N0bOXHaC9dHbWRb/wFlkMlaFLz\nhRaG8igVzwyKGExBP8IkJ0pjC2f3MxMAAbhZbLDfIJv18uk+IsGVhFSdUFPd\nGZpPFDYfYF0uyNDEal06UCSYIWCRxFP4lSJyPmvuNRt7f85O8zu0lBqKkcSv\n3bN74TSor4M8p2wn89UJmoQmye9qXeB6VkSZPRpHMZG1qY+JYUQsGcgAJCWu\nPff/dr+IvqPmP7QNrPa7zl7SyY+wh85Dtx76QSFYb1Dx+u2fy3zayc8EMbGX\nXI6I62D9l1ken0FrJDPxDNanglbubFFuySfvkGE6OkSYaYUP+GncZDCKAVis\nxmiFbw31gkKgn/mvZyKNowehmVXyxmXyfYLYwBGkpuIoPPNcJulxJ/u3wLwJ\n9qHJwUJLqEIJcbVyuegHTiOjnaQJlq8ZLYjmLqLP8xjWBsNOkwK9VwRslSiE\nepF5\r\n=JkNH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"933905005f9c16276caed5327bc6ca581afabb6f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.4fef8bc1e.0","@material/base":"11.0.0-canary.4fef8bc1e.0","@material/shape":"11.0.0-canary.4fef8bc1e.0","@material/theme":"11.0.0-canary.4fef8bc1e.0","@material/ripple":"11.0.0-canary.4fef8bc1e.0","@material/animation":"11.0.0-canary.4fef8bc1e.0","@material/elevation":"11.0.0-canary.4fef8bc1e.0","@material/typography":"11.0.0-canary.4fef8bc1e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.4fef8bc1e.0_1614813914540_0.31469093880582144","host":"s3://npm-registry-packages"}},"11.0.0-canary.afae3a3ec.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.afae3a3ec.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.afae3a3ec.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"069bdf505adbd17a61b94ab8415f7d95e1a852e6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.afae3a3ec.0.tgz","fileCount":45,"integrity":"sha512-pMMA7mdz4xyoj/NTlI2Jno+4gj0sA3l5J9an6RHnU4rn+AZk21UBmpvFwl2nWEyR1AcIgwLzs6W4exm5ywB6BA==","signatures":[{"sig":"MEYCIQCTuuh9N4OgMA1cqBHV5IhU3/CUGAHBZhSXuQ59/nD+UAIhAKcVpventV3iwTpxf+yZuhi2nk30eTmSy5roEe9YATR+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQB8QCRA9TVsSAnZWagAAIYwP/1gaiSYVLAxI2cM/2pgK\nfg7JUE1iAs+bVhe0Yug5rdkavn2zN8kN2mzJwXSEFxAdMEPrSGh0pPhmbqGB\njsS2C0ljUnA6Cnr1LpMtRWgk4KJp6TgeFEYK8I0NAA5tVFT5uQ6Rl9GBHCvZ\nml/2JBHSc1EDK91nF+5mo0fp5LqZJlzSY2fGx4SFKpg1byvkErEpRNE7Urq7\nZlsIVRN9VmU53Rut7TsudWRZQOF2FLGg85PrZV4zEfk1SP1BncpXerKBgNSv\nDGsaaXW/TMrlGwORLLVNaLutYHCSQhY1WgZhd8Hho8Y+vRuCrZXGxsjjEHXp\n2ITVzG1eVj/3jRfnrQmHG7V61XGpzlnc8jiF0NRfFuKnbJZWcKhRipV+gxDK\nMI1/N4e4HLjLDqg1URZYyin22kuxSbRsGVDuxNdVWu3QLiCUH86nI0SFgPFe\nPAw/F1vgiNl3rqnbU0Ml6nEi6nu0l93Lu+61rV26A4Jo3eOZ/lWIZVJ3lYPb\nQpKJvxeLp6KyilW8Eu4uZeZPO6LVlhAO5Ofa771tnDKnKxkmRxPNoY3Rsm/Y\nxefi5qePuaFR4JV78eDoEvLZPsfk5H/Om9nL0kSl1/tKAjxZqER80bqotTAw\nnJ20HXDrKlyFTupGfcXpfvpEdIF132pUNNC+9TaBGpoidADGlL3rCAQ4hKEE\n1PXE\r\n=1M1Y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"054b07cc588568c82346f2cab8aa8948b77a80d9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.afae3a3ec.0","@material/base":"11.0.0-canary.afae3a3ec.0","@material/shape":"11.0.0-canary.afae3a3ec.0","@material/theme":"11.0.0-canary.afae3a3ec.0","@material/ripple":"11.0.0-canary.afae3a3ec.0","@material/animation":"11.0.0-canary.afae3a3ec.0","@material/elevation":"11.0.0-canary.afae3a3ec.0","@material/typography":"11.0.0-canary.afae3a3ec.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.afae3a3ec.0_1614814991571_0.39150269715348784","host":"s3://npm-registry-packages"}},"11.0.0-canary.0a0b10f22.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.0a0b10f22.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.0a0b10f22.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8e40310719e271b679137373b668cd80e6c54fa1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.0a0b10f22.0.tgz","fileCount":45,"integrity":"sha512-PS7gYZPh5tBysWRPkfyz/HjxngFTgqwLk9+gqzgZAWEqjOO9YNLeDuqYGHJE9nn+qBxyoXi6EOJcB3C6bQ9K8w==","signatures":[{"sig":"MEQCIDh8Wczv6BwHdXes+d4LFkMZwZBnLoHL8Sg2EeBg1q83AiBb1IkkHrUgQz5K1I1HMn3w8QySv33V/S/h0R4zsfOtdw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106766,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQCN6CRA9TVsSAnZWagAADOQP/2/7Qj3ZbwSK8FKOtHCX\ncYbMn3xgVsO+O2jpEaHEJJE016zg3GOrZN6ZPEvGdEy3taBDzuzKF5ua4tH5\nKw05atOSXUuxUQeKWxhMuOPqVSfCY0reUWB3oiB0POVZzq8ekpQxmMhN9m3h\nKQUgz9QfpLJif54iDALtd1kJkrR+kNUGR0EwcodrAk2IUr+SsXaDQOCDxV78\nU4pOBPE3g7Yy3LzDoO1oJgqv2ZpwUlyKk8CxKJLQzZP4gCiCoYgpYThf6Ncw\n5JOfVssnMSemUJgpJ2oUAEYJn4xRr5mueflwIl2YifPObDXVEG6He2laBiF9\n7F9X+znQMVXVjgtiJZj/4AdLcZd5b+4zrZ6gYyNX/QXkb7bAA7fHsylBds4c\nmOG0DexMYjTqLQWiCM8Cxpv4vyTxctjEVdjOY+JhbBtDxey46c7tbDnVauy7\n8Sw0j72ycjHtD6teWiRy2BhMjsgrYEK8DYCWdP9B+l7uLPSD1Vd41tSVdXCD\nU0rI7Edi+/I9cf44w76ankSyuU+2LUtAwjwBpoenO8Y4Xkoau7EZtTpG7+rb\nb80XSnHFGRom/ASBcT+LXX4NObSzCOlCKPWcTk6OOzHfvno1smR+aLMz0QZt\nfzo+gx7l7LqTHDdnFLh2NxOVNi+cfppsM7YWUcT2HFDMK9IhXDgKlryFKhWW\nUai6\r\n=j/Xg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5b560f4bc4c4b50a124c9432e81b3287bd348abe","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.23.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.23.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.0a0b10f22.0","@material/base":"11.0.0-canary.0a0b10f22.0","@material/shape":"11.0.0-canary.0a0b10f22.0","@material/theme":"11.0.0-canary.0a0b10f22.0","@material/ripple":"11.0.0-canary.0a0b10f22.0","@material/animation":"11.0.0-canary.0a0b10f22.0","@material/elevation":"11.0.0-canary.0a0b10f22.0","@material/typography":"11.0.0-canary.0a0b10f22.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.0a0b10f22.0_1614816122405_0.9379588083083723","host":"s3://npm-registry-packages"}},"11.0.0-canary.6f678a91a.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.6f678a91a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.6f678a91a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f754745d99e43230346e47ede82b86f1bc851958","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.6f678a91a.0.tgz","fileCount":45,"integrity":"sha512-gW88FzaHmNxlJhaCh2v18TFEh06s4rPaakrGYBVR9dqE3gnTuJJTY9zGkKHcZaTXXjEQSapXDOIdQ7jpzxSuxw==","signatures":[{"sig":"MEUCIQCayO1ULpv0DR/Zs+2wo4uAsg5sLJiXlfG3l9VQY5559gIgMRABB/JraJBGYcT+jAz7IMXho16hqjcCO6T1XSQsXi8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106766,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQSnFCRA9TVsSAnZWagAAtLAP/1Zb7ll7Wj2RW+PVpNUd\nnnYvtt9CXmZ5k1fKuuxMXkA78561BeZGLdYhdpioMDfZ3ru+UpJ8uPHNDmyY\nyjZ22ZxooNX3i8VLXK84srKXNBtTTpd7Az5FB/krzbUoMMcLsTR5kW9mgm2m\nmsf9vMW6OxNE433+J7anxkR4aoAQ6A/KGhMNNMb6damFuGH6dpwAKRROfO4b\nbUH4UV0k2sCtPKhZGXthpHuCecm2Pr1C5W8Vs3KzpWbYJj0KZLBvHE5X0xNH\nw4chw6jdDPmxrW231xgOHZLlGUrp+aM4IAuknt78mReppG4OerufHf8wt6aX\n3njRoeLxp+BtZdke9WUBr9A57oEe0p0kvaPNh1OIk81AgXOHHWsg1iQjx26X\na3Nu/y+i3RVSmi4tEjz57UriuJdfwf2jqOBiFV+wV/sFWfBdSh++n2tUbPPB\n3UlHzX/Wd1Bi4cpiNiSgsw2gvlhY4yFhDnb4BHgmWSCCzVdKpilAu3VcWJ+y\n7vjV3zYpbd6kMQTmcpVlI8U/UKpppZUL/g+aRt1uKqYm4jyYq860F2iNnbcU\n3IKIXp2x1aZBe5vm43NwQOL0BshlVhtKf54sOShw5AJYEwE/8sWPJt5eo6OQ\nvuwev+Sh85cyt3JIKj9+wY+Xyh3TLNFTrPa+qhAV+v5ExFTBNMaoKGqt5FBW\nKMpl\r\n=3sDI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"863e8a04081286602f8b0c9bf446655b9399e8c6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.6f678a91a.0","@material/base":"11.0.0-canary.6f678a91a.0","@material/shape":"11.0.0-canary.6f678a91a.0","@material/theme":"11.0.0-canary.6f678a91a.0","@material/ripple":"11.0.0-canary.6f678a91a.0","@material/animation":"11.0.0-canary.6f678a91a.0","@material/elevation":"11.0.0-canary.6f678a91a.0","@material/typography":"11.0.0-canary.6f678a91a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.6f678a91a.0_1614883269280_0.41114084349469726","host":"s3://npm-registry-packages"}},"11.0.0-canary.f5f1b613c.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.f5f1b613c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.f5f1b613c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"af4b590881c7d5636b2fcf612e26e5d8265aaec1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.f5f1b613c.0.tgz","fileCount":45,"integrity":"sha512-liUCPjdUozCyICtEqUNo5SqHclXaO5juvDcjPApxgGXKFatn++DnFnjldLdLD5ccb8p0jiymXOZjGOp7d9p4pw==","signatures":[{"sig":"MEYCIQCUhDcSGD6jyOPa24LPAJgxn0xF7B2lPSwBECgYEODLGgIhAM5B+u2hDaXRCJXnWqxHfi84EtdnvzJahvli1x5WgRo5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQUgYCRA9TVsSAnZWagAAV/wP/Rf8paFxzLttxZNgEMkh\n4gJKjn3EJnPFB7N/hclQOTOyYIjnnFIg6esf3rRM9x3K50FjYoiaxKza7Bvw\nmtl3OdQcit4Lvtqg+CyUfQ2891BKvIex6oNeyGsIA8eOAE1+ec+qJGJcA5oa\n0WYrBBTTGGx7EfcsRnesG5WFT/1C8qspCT8tMqQtQI7pgWNfi307kP33D7h2\n9feOalW668wTCLAoP6Rfp7p7/il6BL0eL22OjhoHsTdD5XJjAu8sCIp2RNMP\nJlI0HL2gPALTgPPouFsX7F3Q+AKoOoPB9olIwYmeiVNl/ptt4MZDJhnk9hSa\nK49pFUV1nfF3hnBFwkj65jscf+Zi5TK5GvGwrWdwhPWLWxQoBnXGhFgS3BDE\nOCg01j3muSzLTpE/o0uLqwwZ9DewbWCOqFlzo0a2gqxivjg4U3riRbB3/wSI\n4YcNe2hiq5PLMDLb14vzXM453EYE4Mfum+KcChZbzFk32ed4v87Uhk+s0MBV\nA7NbDhUfMVzYCJXxZGxInjfjL6+yyxnGqye6UH/iSphMqFezw4kY9oQdv07a\ntVbUspJo/7sz2jiaYKBhZmRkbxM3NtPO/IVw/LTDIZa9VSqOFtt+yCEFLRY2\nI1a6Gdb+VkusmvLtUOpkMqhqc0vgFmYevnAgECFWwsqrZwBcmMBM5zJ/+R4F\nnX5c\r\n=+RGD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"20e2000d9ec732c7cdd0b5c15381f0a55f778036","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.f5f1b613c.0","@material/base":"11.0.0-canary.f5f1b613c.0","@material/shape":"11.0.0-canary.f5f1b613c.0","@material/theme":"11.0.0-canary.f5f1b613c.0","@material/ripple":"11.0.0-canary.f5f1b613c.0","@material/animation":"11.0.0-canary.f5f1b613c.0","@material/elevation":"11.0.0-canary.f5f1b613c.0","@material/typography":"11.0.0-canary.f5f1b613c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.f5f1b613c.0_1614891031806_0.00259350425859739","host":"s3://npm-registry-packages"}},"11.0.0-canary.606e767ef.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.606e767ef.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.606e767ef.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d6bdf3345ed93d05fdb104897aa67eb90b063026","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.606e767ef.0.tgz","fileCount":45,"integrity":"sha512-jVnMHaTVo8FVgjIr0ajbuekqF66DFHgLmL6ePyZFFl0AueffuCNadElhuKL30PeBdioPaszB89+X5Igw4MzPQA==","signatures":[{"sig":"MEUCIQCnNsSrd4U/j2Yev4wF1rZIjHRciWebDAFCCbc+WTwu5AIgQaifNxZn1m52k8XBrMpfo6YkYnm+qhCs+XggVVnMihM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQVVHCRA9TVsSAnZWagAAxokP/3DOuYISL7bSZOiy5h1K\nQ8BPAoNjyNAb8VL0Mf/7Qwm8lPf38NLLrPfyDC8Lu6zOVi2zpgEf3+fdtVbg\nE6d8ni0pe2RttxMHW0ye30OHlshrHpxygmy2Tev+/8+Z7Ckka/US7LqxU4BI\nvFfORJyUs7MseLfFSLoh0RdYOCQUdqPLv+eslZraMdlQ4LLPb+i+/t8ByNTC\nZUtqNZcwIcSeA58X0zMwCxQ41+uW0280+Dl6RJtpX/gBOoYWTg+AUOmqBnQv\nva8MuaqBo6hxbKWD0wwTqDeiaObxuvfk+hmYHSxs214aR/teEpjyKIXfecpo\n6upcddijxqifIC1OWB0MYiIO1xJde8Tkp404y9e0TzvgGkUeqk/bHgsIHTmQ\nUPtRUZ/lv6Z8fE/1IXiYqGoLoS74IjueROgGDECUR6teYoLfOQTHWmuxsP/I\nwK8BBcE/GfV7VQ71c/8FvjkNtzSdAHcwz2O+ikcfsVSv82HtiGB30RujiSQG\nyxCuGrRKJaOfeawmeMQojaqBvaHSxdRKQPuKbBHi2YZM+zHuitjFEaoVsoqX\nUPK76ggMwQYdlNL8v5b5zjfjA0U1VWQq1+JtcP3FsvNaE54RecmYj63Q9vpC\nGupIuTmJ1JdxaO6+ISFiGpd7CWTDNKIPDXJ7kokbA2eELSPQp07AEKSWH6Eb\nlqgg\r\n=N9ud\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"34c41b3553e1ca4ee49c0c36a1685f3f462d33ce","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.606e767ef.0","@material/base":"11.0.0-canary.606e767ef.0","@material/shape":"11.0.0-canary.606e767ef.0","@material/theme":"11.0.0-canary.606e767ef.0","@material/ripple":"11.0.0-canary.606e767ef.0","@material/animation":"11.0.0-canary.606e767ef.0","@material/elevation":"11.0.0-canary.606e767ef.0","@material/typography":"11.0.0-canary.606e767ef.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.606e767ef.0_1614894406715_0.545993917553004","host":"s3://npm-registry-packages"}},"11.0.0-canary.f77a4dd1a.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.f77a4dd1a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.f77a4dd1a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c3d35114c9e39a51c711d3bce729bd5dc141df2b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.f77a4dd1a.0.tgz","fileCount":45,"integrity":"sha512-Mp/ej5zQw1BFcdvGb5xNRCR+ErUMEwSLMVRfRwhxMZWcABLZXIuQy8ueFkN8+vfHthMxi2Nq9MMX6lpkm1QA9w==","signatures":[{"sig":"MEUCIEc6kZ+BlTVyRIFu6uGCipPcyof15rX+fm/AB3n9C3eBAiEA+gzYla3MXP69KCBG++E3Ntc6jzO84EagA0Q2FHF2OC4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQwfbCRA9TVsSAnZWagAAhrEQAIFTifb7li83247WrgcL\nK2m76/hpRP7e8MQYNXfacMhgwT1Z11Mk0TtwgkdwJ9KPoVgMHHUwNb0uprnB\nF5fVmpfMdmRL/PLyk08YZTuyIXz1dp6Yg7aTbkRMqUitiqbl5UnI9t4l/ldN\nr/siXj+Vlzcv5yNsvd1VQ8kQ4caplZ1XBUAoDqd01BzAHqwruVJdGTq0fg7n\nzlF3ELnmiFRHBlZbvmXAeSmm6xfHihXNeAxkVGmXXj+EZ4SoALLFlSQzGa+t\nohGSAFbRVqOI9d2AlXtWrV+fDDtS9GiLj2gPjjFvfyT68XfTqr27LI6oyTTR\n6lF1YIZ8VLRlqptb3H8EDu8zHn2YqWzE8O4Lva9eSQps7M8DKwhoATqGClIv\ngrEXnoMUq/GM95Wsr7uELWgYl1YnwtQKsOaZ8P0vRG9n85xaLoghHTKD5x1W\ne2G69JAl5TFgq2GRfZUnkANAia0OAhzv5imE0zMMxeuavNcBMsytv53Zcwru\nT59+WRqFzDYrHnAIK140hYNoxLOGamZAA0RdqE80p4GSOXFJOwgaBJ0WJxp6\nNIvy6S3P8ImpX7DfNEiMukkUVsG8iE9HswamhjBmPEkBTKwN3fN5BjL0UeH4\nsOtpw+ek6Z04+btNlVb/7BnrryZCy1YNSabmSPXIGCAZUxp2fCj31G9ZO2b+\nAet7\r\n=cJGU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9a729bc3e368dfd8685190e8460ffef16eac8947","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.f77a4dd1a.0","@material/base":"11.0.0-canary.f77a4dd1a.0","@material/shape":"11.0.0-canary.f77a4dd1a.0","@material/theme":"11.0.0-canary.f77a4dd1a.0","@material/ripple":"11.0.0-canary.f77a4dd1a.0","@material/animation":"11.0.0-canary.f77a4dd1a.0","@material/elevation":"11.0.0-canary.f77a4dd1a.0","@material/typography":"11.0.0-canary.f77a4dd1a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.f77a4dd1a.0_1615005659165_0.8955616210232022","host":"s3://npm-registry-packages"}},"11.0.0-canary.2d6ba2c23.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.2d6ba2c23.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.2d6ba2c23.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"00ab8c5b2fd64518f498d3968ce6abefec37a3c2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.2d6ba2c23.0.tgz","fileCount":45,"integrity":"sha512-kX0PK7e5ejSiGUw2nby/yPn5CqCGmx0UXwhyClvwBzOG+Zxq67CPDx+NSVjm9bQqfQMfJMFTHfFt+d00XCNmsw==","signatures":[{"sig":"MEQCIDDI8/2da1DBE0PcWfqoaxOWdUYdYYvaOl3Bdp5ZrzAoAiArX7MDZYs593kfrBUYi0FFVhlGb1P9gMGzV2BPO5L1sw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRqj3CRA9TVsSAnZWagAAEAwP+gJRszveQMKjiK5ALVip\nmAcxtrXwGz9e/vd7rgDv5DP1+0Nnogas+E6OEi/fRI8vtfjwyRidrWJMLTMj\nRlGhQeEkQa41IgqhRbOAdgd9QYJUVRggp8eD9aR+mWV/Oh08+ObXCR5vg23B\nXZPDf1X6atCD4m4MnEFLKyePMtnsNU8M4u/ME7ITWMs4KeNV+dj49EFIDMlC\ninOXi3SJz+0KdtnMATpKoAdb5G8TCH5fqBTAWNmURiA6Kh5fa5AhVsdZt6FN\n2xWu1O98dToR6L1amJu0aN7CDFsbGe6PSxCe/I4unt9zbu9/BLz2RZmeIyA1\nWVBRG2VsJQi1IIgp1PjSkZqLYkBJR24XIIUEoDONeObxw3yO+sCHzzllSv0/\nACg2+SGGUVD549VXqP3Fl197S+CUXOVWNwxfSb4umKS4JB9/yA8T+1mVynLd\n0cND8j+gTEfuoh/8kgIBRdqpe6n0uBpv9T33KVI0KXo+cQTRlTWS21RKoljt\njO66eFX+nZRovPogYTs6G4vJe3rI8S7qmnT8FZpIo8mNTY7dRYcj85o+HXOK\nTiUddJbT1CSC/GtDdjSA0dVx8sdHKSHETUvkGciFJXsSdbA6QtRUpNpr0lR5\nUQqxpxmAQS5U1g9VYJJOiKh3XO+TzqOht3FzH9TJmr+Z5HqDhV2QM5uR0oO+\nwhYp\r\n=/6m3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a0b889753d981e10bf70b9bcaead70c1549cf865","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.2d6ba2c23.0","@material/base":"11.0.0-canary.2d6ba2c23.0","@material/shape":"11.0.0-canary.2d6ba2c23.0","@material/theme":"11.0.0-canary.2d6ba2c23.0","@material/ripple":"11.0.0-canary.2d6ba2c23.0","@material/animation":"11.0.0-canary.2d6ba2c23.0","@material/elevation":"11.0.0-canary.2d6ba2c23.0","@material/typography":"11.0.0-canary.2d6ba2c23.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.2d6ba2c23.0_1615243511266_0.5923727296008068","host":"s3://npm-registry-packages"}},"11.0.0-canary.7522dcaca.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.7522dcaca.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.7522dcaca.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"82213896e705aef83d97916221bed586f4bd20a8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.7522dcaca.0.tgz","fileCount":45,"integrity":"sha512-FqRI/TdLFDRVVlLYYHfX5OVCVXayFle7o3Sa02qA8RAbMEzIQLp/f+tGypWIPOsyQRue/ly0W/9go6HhnIaGuQ==","signatures":[{"sig":"MEYCIQDUhGPyrg+jEEs4pnHpXtg0m2fNjKwG2c2BAe+tuBmp9AIhAP2WSqVGf0KmeRMOhlqdhxaLkOW3XIdjlL/TugBm34jG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRsEyCRA9TVsSAnZWagAAIAcP/jxMVGjISn2W1VA0Ckqr\nwyTUDkroTCja59OWBnrLxaeTF1X49zMzknMGeMr0GvnUzGkxc2R2VK07TsO0\nVGpzDw/8hQd8KmM0OWEgUNtk56B+DYNELYGoe5rZNX3ch7k8H/No8PFqAlQ7\nv4kceDRTdTmhSlkQzGsPC32KP7vGEGwuL4rtS3ivjZXTIRgSeBrJ37ZK6JoC\nr4kWwlVts9dAPfEtyZ3Zek2wIYAxG0A939704AoFLQowqfwEKZHro0al6jnA\nD6qNvHMLbncFMdJ3ySd8nN7232kIMfjPzaCPp9vriu4Sg8/NzI2ovoxnY/FG\nG9T9Pnxl3iknOAEWlzwMdg8AHr7JXVgu2pMqd06N/m6OrvPDsqFGy8zTnFth\nNdY5cbnpL01vngpqRUgt7Zx0qUoOgtlG8SPcUcEgqo6/uB7v5E8XfK1oZJgz\n8Hp3bizZaR0gCxpZNbT2QjYAOrxjhFNTP2SfDLSRxfJHHuUApblOz2Ap1MAY\nYNTslu3y3dg3mlo56dc0xAGe0TOg+1eUb06zx7eb2yH0R5J6N3oXlMMr+u8J\natYZadtmb6Vs8fY+b662ZAk0CeIxpf6QNmq1YnsiX3xg6R3hI0s89D1ZOa6E\nhMEkj8MkWc1Pu6KCoIxt2ZMyl0mVZ6uLgsqGO7hsd63SM4vr7rsUsWQXaGZ4\nqC3N\r\n=J08Y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6e73ae404aecb0602a5da37f40b650181ac48062","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.7522dcaca.0","@material/base":"11.0.0-canary.7522dcaca.0","@material/shape":"11.0.0-canary.7522dcaca.0","@material/theme":"11.0.0-canary.7522dcaca.0","@material/ripple":"11.0.0-canary.7522dcaca.0","@material/animation":"11.0.0-canary.7522dcaca.0","@material/elevation":"11.0.0-canary.7522dcaca.0","@material/typography":"11.0.0-canary.7522dcaca.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.7522dcaca.0_1615249714061_0.6951839921111933","host":"s3://npm-registry-packages"}},"11.0.0-canary.5c0ab7401.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.5c0ab7401.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.5c0ab7401.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"eccc5ca55fd81b75bc93aef5739d145fda0ad539","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.5c0ab7401.0.tgz","fileCount":45,"integrity":"sha512-Kb9dV2gLN2qZSik1YE/cffbG7Ia3UG3yhVezWIuP/Is+hhTb8XINjraOX2W4JIZsoVhm2AeQzLyf1DpfJ6K/1g==","signatures":[{"sig":"MEUCIAy/3REmBD2VtjsqWPMa5PcXwtyzslyVVg20/PjvYVGTAiEA8/Iga/1qgLGD94K/uz+n+HO9gFTgCFgeWYC2onT+1Lg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgR/xpCRA9TVsSAnZWagAAmAgP/jS1pXudTyMBCmKd4Obc\ntyYirWCrpZ0R/3C8YfCXf9DSsYrfTILzqbimQ+LTQ1lX1MytfD83/a+BaN01\niZp9vOb5Ozl4P0cSLEw3gYPrwKmSwN9q6z+OktGJ40qOWx2vRTqR84nJl9k4\ndX5ZzCNJcyYhjXHDdjFL186w0C+kv8vHKn718TPgbUAx2eeDu7PL3bn4gMnL\nzHnXfF+AgPRz+xghSbtD5fg5yN5cYygMq4bgQMj2ZOaiMsfiEQZDjlYwV0JC\nvYatJd0SjVzz1bT6yZDUiXjipdtrshXIQ4+hbaSLbMVpwEEpULYGcSH2/ovR\nNqMhVsK6qQj9I2cTCOT2E+WMGL+2NiZIWX9I3RAPIXgh69zcm/SgJc7EqRrJ\nVjpCAC3t54oBplNdhpE+7XWySLJboUkY9NZZpsWqD2H2gXVuUqnl3D9gSGLt\n/K2ODmBaPOkxYatA36scK3dr40yd3lB16qlFieLEkoMlb1NUvvP8tVZ40mHr\nUOUOZ9iQJW5X2ioavAtxec+CkARbp41j8rWq2osBt03x8rZrxhnReYpe49Tx\nxvFpjDFG1MOArt3Y3lJPQeYQV6WrR7GYnDYyOAKW0Auxt/wFhDdkvTvfhaNq\nYseuSYtuqTYY+OP4CVsKqk8wo8Rq2TyFMu6ISKcuCJMXgxnv3YiGsrD5LbfT\npWry\r\n=9Ugh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"95ff5a1121ca15128776896b8e4759594ec51246","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.5c0ab7401.0","@material/base":"11.0.0-canary.5c0ab7401.0","@material/shape":"11.0.0-canary.5c0ab7401.0","@material/theme":"11.0.0-canary.5c0ab7401.0","@material/ripple":"11.0.0-canary.5c0ab7401.0","@material/animation":"11.0.0-canary.5c0ab7401.0","@material/elevation":"11.0.0-canary.5c0ab7401.0","@material/typography":"11.0.0-canary.5c0ab7401.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.5c0ab7401.0_1615330408548_0.6966377120342857","host":"s3://npm-registry-packages"}},"11.0.0-canary.59010b6dc.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.59010b6dc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.59010b6dc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ad0a539ad5f2b31961ff9ac20aca4fcfe9551250","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.59010b6dc.0.tgz","fileCount":45,"integrity":"sha512-OIfgIV5DTFrblHmVHN7m2H4K1kdBLngJaUoab1jiAe3yCDvNH3KFp6KF+hvJmt2AsOr+Yu7KqgQt37MHlKSHxA==","signatures":[{"sig":"MEUCIGl+FnKMGuYZ5B8f5gbT4xc6iR9sa/vitNzmaxujMrk0AiEAsaDh3RhrLB1FCIu4hvbxP9EH3/FH/A6PjvGt/WfyHlc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSPq2CRA9TVsSAnZWagAASOoP/3uaoQQaUvQNYMuYCOo0\n4Ew899Lyz4sypp9v4U0cBnHF4Drrqi1OvY7ApEJLKygwIKvAoJhJvpasexDa\n/NzRiyORljrAAg/IdHWuyb/qx7ntEDC2voWkva4F7yFSmonp7EdkuqNMQ8Bx\n6K/KhbMhJ7NyPVVsv7aYcaD9BKGuECozbxuJ5XJAV5lIITavh2A8lGF+rf8a\nhwXkoNen6AlJP/ozYQ8otNlE1YTBOpKKGSg9uFuigANlKH2uJdn2A/eq9U85\nKDnforbRUhOzt6Xn8xJmtoJ3r28+nqgYjSnl4mXacJXuUSx1WDTtJrWVjp87\nD/xBuc7Ukgx0eevpx3OBrXblh3KKkVflrhVlTNSOyac2DyC9FNm+WXBJ4BEc\ne/+3jcEiu/DhSSVF0wkb3onCMv70ageUFXg2DNh2DuyAYdD3Fqe2sgCpv2ex\nxun+IRo97hPQVvLJbX4isryQFu+g3YG02aVdfrbjqQI33L7gWxp6wRhQZsvV\n13x9o3mpp+pfWRJOndM+7S4trq4aMN+JCtwqwihgyz1Vah16Xs14lAtlUYwP\n6ewAWpFYcn5fpEcp7svINEr8IjSV0Hk55IV2xMgch46/0nciQGTp8fMQIb5K\neQB0kmgynJKHvCTnxbtR4zJBaWA/BVgm7l0Ipdo+t00JWU1w/mNeGoZRXES4\nbldV\r\n=v9k8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e697574285a5102f4c1e5002a85ae33a3bf2210b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.59010b6dc.0","@material/base":"11.0.0-canary.59010b6dc.0","@material/shape":"11.0.0-canary.59010b6dc.0","@material/theme":"11.0.0-canary.59010b6dc.0","@material/ripple":"11.0.0-canary.59010b6dc.0","@material/animation":"11.0.0-canary.59010b6dc.0","@material/elevation":"11.0.0-canary.59010b6dc.0","@material/typography":"11.0.0-canary.59010b6dc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.59010b6dc.0_1615395509726_0.9450696568325734","host":"s3://npm-registry-packages"}},"11.0.0-canary.9e52f5544.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.9e52f5544.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.9e52f5544.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cacfb89e779d0fbd3298c0c9bac5ae7391c15646","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.9e52f5544.0.tgz","fileCount":45,"integrity":"sha512-j3qmvVB5+QnumOCnA/DzSeksEdQj492QFdHogf8Y06ST1EFQ/zu0wbBmf7Exzq0zJkbTtWz+UsAUokd/6D+YaQ==","signatures":[{"sig":"MEQCIEFdGpd/jsDFOaIN0vr0Mjgokyv4stQdGhQfBqvHnlfiAiAJ7cYmibSZqDxLfYiTpIhzGg2lcTZotprfs2a36xGE0Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSVWPCRA9TVsSAnZWagAAVy4P/2DzboFQgZ+hClkC1HMM\ndkHr2E7p1iFGy3JBxOS7vXTbwEEVOgiZAph5cgW5BeYfJZDrBieQYoLbjSTb\nwqr2Cpgw9ZlEWkscVYwAUV56BLCRpZhAHZSCRmCkYW3Gx97UV7RDmdtoMSKY\nimP0R1Bz//JyvTJE0AuJkBhZq+N0UtAH2GIaoOERLAobomJnkqj0eoG0dpph\nsvGJ62F5UVo5ZsHmPismPc5aO+1BywUdVVG82eeB4RriqWwIXx/5hXS7aOlL\nLj+RGjvFVduw3tgoxCkQQuUDvjEDM0fzdmPulCrD6kOJLYz+cSmRMOgw+0sB\n4jI8BRMMVzJQY/c7VVBY52pWeaAaGYg5aOK7jwh5Rb8lPxeD3+nOEz9LB2PA\nvXQVyByyLjzn6HFx65Bk3HDrDj+uZfRtC8hlFZcy7L5y79Szu1oyYCOLmJ9h\nlr/vmilFYc0RLth7f7ndzXVHzTyRmjDOB5TyB1YqWs+iyzN4ia4aglZ/1YrJ\nwltN/bd4eIa4QBAB+IGdJPYThd1O99cqybfJHw0AsvQUFgjCuQYSuOTWCrnD\nd+dPGisM7uCd+aOtoqwhEbwQRIA8KaUSfbxzuGxsEFB9r/oL037jn+jiq4Vk\nr4GEOMtIL6JpFioPiJTu8C+A20ExMg/FqMpzyhbPjWvOX22MOkyB9dxl81lQ\nOXsH\r\n=NE3v\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4763f125770ec8e3a6ea4d8f1f5f607371847e45","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.9e52f5544.0","@material/base":"11.0.0-canary.9e52f5544.0","@material/shape":"11.0.0-canary.9e52f5544.0","@material/theme":"11.0.0-canary.9e52f5544.0","@material/ripple":"11.0.0-canary.9e52f5544.0","@material/animation":"11.0.0-canary.9e52f5544.0","@material/elevation":"11.0.0-canary.9e52f5544.0","@material/typography":"11.0.0-canary.9e52f5544.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.9e52f5544.0_1615418767461_0.4947734701353643","host":"s3://npm-registry-packages"}},"11.0.0-canary.a678806f5.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.a678806f5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.a678806f5.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2b771f043aaf38e0b59a5bfa7b2cedb64f079c98","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.a678806f5.0.tgz","fileCount":45,"integrity":"sha512-U3WrZo3EnjwbjeWYFy4dtWj435Ry92/cPfBCrkVP1J3ZmTmP2CWynQRpWp76IHSUvNHq/i1hJKC9bFPKBC04bw==","signatures":[{"sig":"MEQCIH7BDGwuhoQpUKD8Zsee9UhkRQf6XDJU2Xp4MQH8b8fyAiAutP0jSZnvgPlBjYlTetK02C+uKwGX4bL7B2gbQ0u34g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSXd5CRA9TVsSAnZWagAApwgP+QAEvRxOI46MB4h2VElD\nhrdLzJGXDdkyqvHtD/9WYsVi/UPCF4UY3Nile4uwShUYhqhdGSMSIV6u+kR8\nULFD0cJ/RmSGRXDoantXmXvywgzXhRCDlUILUAWo/8BW3pfrQAPjNnpC5/ei\nnII6R+0ehOy6cZAyGg+q8A+h88ad2s5rR2HRKMXBs1E6AhWUAkMeXPJQB8Gs\nG3rFM5gua2xyNZabZq5G6S/0GwHkjguBYxl9FwedqkZ0j5wGKKMKA9IW0jVk\nvPJorWwOYlrJOGi2bHrFXQrleMbMHA6Vxq68ZnJZ+d8Hszh6pkmD48Kqvb7j\nYB+EOLj3CnwIHUvrKjhkwHT7n1M6N9cz+HkOUiX06x0nckB2osiyVarEIGvv\nZeZyUBMjTzXfJuNyG6fxxxj6FXiS9DDZcW0YAkB9O5yw9PMFW4adQ9WXff1q\nx75LYDym3zI0yg4Zqezkn1Ev3Sy6eIYjLP3ukEwm6GjU6NOoO5GVp+/3aCFl\nlULrO42tpXFXoxlL9mmjzgT9EDJY2mO6cGvuti/vYhKsb46sq6Lvr+IzK8zy\nC8xwBnmW4IAKQ3piV4mkSubnSX+/kIgN2RStldtUjaIeQiWqdg6NzcMVSJHt\nFO3FoPETllCvQpvFip2DdhLSc34W5utI4aEhx1Qw/7o8FDqHK5lvHlI2x2Dc\nZLAp\r\n=zDJ2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a724ed1e64d54989ee4c27c71935f90fd5614f3e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.a678806f5.0","@material/base":"11.0.0-canary.a678806f5.0","@material/shape":"11.0.0-canary.a678806f5.0","@material/theme":"11.0.0-canary.a678806f5.0","@material/ripple":"11.0.0-canary.a678806f5.0","@material/animation":"11.0.0-canary.a678806f5.0","@material/elevation":"11.0.0-canary.a678806f5.0","@material/typography":"11.0.0-canary.a678806f5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.a678806f5.0_1615427449122_0.9781433729401492","host":"s3://npm-registry-packages"}},"11.0.0-canary.b2d22df5b.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.b2d22df5b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.b2d22df5b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"27cc22e58ec96fd05654057fc5e39bea005a04bd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.b2d22df5b.0.tgz","fileCount":45,"integrity":"sha512-3qjKeLItfjlBbdIo6Y0G+crNoEvZGUsM26R5juseTBO4qMpBzPvaQHZN6OD3sUyHTkebOSXx/526cSTHl0wRzA==","signatures":[{"sig":"MEUCIQDuJczEIVdeuA9iR2xIynEBj7fSh5MuJCje4awoV6rSGQIgM9NN/KmO/ZsQRvH7w0sjuyoEer+LZhDJG6bLEoPrRi8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSk19CRA9TVsSAnZWagAApysP/A2ADOtB7TfmkdE74UeP\nJiW0o6hfUfWN3FT8LsqpGdDr0bthbcK8xgiu3j7tSANlpLCEHX6I7nEm7JMo\n5Y3caydwlghNiAD91IRUuvOzVbwNB6igHRbMxL0SolQsKv+YClCme6Tl69kT\nlXqjb9KyP4pkOlpO6n1rA5tYPK6nzIfsCP164Fj7opqB2m17eXe/jkaeIdol\npEydnPp5uOEh61kLCSlgP/oIolw+aGGnVoX+pMk0mDz5fB96+bpJVV2f0kLo\nEGtbBFP3m5QRft8PpevCxxdYkT9fRBxv/0Gu73JqBRFT+mHALPsC+oJB4cPR\nf7ZdTOjm+WhU2pnT28r7FUCNrnDgmKko50zNIYzDejHmjg3ZN7MCSbjh3kbr\n8QKisOAbsVScLD0S8IIecDUeM9rC8wYZ3ihCeN8QRyL53rb1Ntq/vKrQ5bin\nN4RNBXZrSiWvMzVDHJuv4+nsY8OWPD6JRDfVDtfcEYAbvIamgc4FgmnbOstE\nqQ24wNuR99XDJs7fBAf4bdtGAsQkByF0tyC/h+6LaTO7kJk9CTv5xX7AuUbW\nQ8Lib63qXNuPUEPg2tuz/K7SlnVOTwfAtCUjV0RpI1Lj800sAdiA91713O1x\n1sDG4CPznYK0HNLKWRWX+aeJWRiWC9PEbjTxmXdOQnAUg1QxSHBWkVgbqoqs\nXJBs\r\n=f8vz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5c38fa8d841f5b293e55e4a22202bc6ea8220874","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.b2d22df5b.0","@material/base":"11.0.0-canary.b2d22df5b.0","@material/shape":"11.0.0-canary.b2d22df5b.0","@material/theme":"11.0.0-canary.b2d22df5b.0","@material/ripple":"11.0.0-canary.b2d22df5b.0","@material/animation":"11.0.0-canary.b2d22df5b.0","@material/elevation":"11.0.0-canary.b2d22df5b.0","@material/typography":"11.0.0-canary.b2d22df5b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.b2d22df5b.0_1615482236600_0.22996231697520875","host":"s3://npm-registry-packages"}},"11.0.0-canary.81911b707.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.81911b707.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.81911b707.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"496d1408f2869843053c567c957c8ff5aee8d20b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.81911b707.0.tgz","fileCount":45,"integrity":"sha512-9foq2rzLas6M0FHtD5cMmEHMirPWJxpP75hi4vmKwtrf7GFEfRnWwfGdCIj6WOCFPRMAHKT+5MiYbQ5ewjHjzw==","signatures":[{"sig":"MEUCIQDH2gvqg8kedLy0CA8DuQHkDoCpdAX228pU/X1TMqPL/QIgO+kCtrpZdTtzfQDBZo1yD4Wo/TqNP/BzAmT/1Pfgw/k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSmBWCRA9TVsSAnZWagAApQoP/0XsclGx9NuGuA1frtJC\nbRjms/5/9Ru2k7sciki/gcImwPaAigLgKRiJrCyY/72pgjmXYYOvXThuhTyP\nsl/Ztg3b41djfgGwwNbgXQtwbaseI8x8ikDNHoM2q7JuLgTu3S9uXjQ6XL94\nLoUwCQiux+5zmho/tQ8ho6H6HqMRU3prykMDBJsxm0lxJGY3XzMqScKhoetp\nAIHt39FoNhv5iLeqrAruGa6eDGtcKYKLLvZfvSJkmsawfc0AYNqAMcMm8ubV\nUX16O8hb0hEHmreJ7DmrFVlCRz2ZkM+rnvnhpEyPDpL2cy6eK3XQRadjqysK\nClRteplNNRu+U9+uBswXWUfOFJs3NzlqbGNHXQYHkXNsOD3I0zvCTCqmFXjF\nAXRi35/2/xhviHWDndlTpR47FG07RxfSUTacnJUuleLCsP8ME+0y3hillv6L\ngLFm1i9/ReQKUCflOb7K4O8Kg1L27TG0R8InJ2XC6P5S3Thk2uHiuD6SjMjH\nyjnA42mmNExR1yvuQ8a4Ob6dUwKk8vDkKoL9U9XaI2yvrloXaztEOv3nQ+v6\n/zt0QeVahrnbo2dyP4PbjBuy2TN7/6A+N29tPnoKEwlYJuhvwXaDrYMxXhwO\nGc2K5gf8gDTCzV0g1TNpf+DqqaQn0o2j53supGeBPLTiPNJMA+BstTK5Ehii\nJPKG\r\n=MAiv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3c1bd5b1d6d6453c4f616633e1d16b1fe0812814","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.81911b707.0","@material/base":"11.0.0-canary.81911b707.0","@material/shape":"11.0.0-canary.81911b707.0","@material/theme":"11.0.0-canary.81911b707.0","@material/ripple":"11.0.0-canary.81911b707.0","@material/animation":"11.0.0-canary.81911b707.0","@material/elevation":"11.0.0-canary.81911b707.0","@material/typography":"11.0.0-canary.81911b707.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.81911b707.0_1615487061518_0.33724990332979976","host":"s3://npm-registry-packages"}},"11.0.0-canary.9eeb35c38.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.9eeb35c38.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.9eeb35c38.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"52699ae8ee694d0da108caabc4389c736f547915","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.9eeb35c38.0.tgz","fileCount":45,"integrity":"sha512-nuzKKJKDFQjcQv7Vy+54jzrvvbrQj72BYYtomUdueUtNGuZgULHKxNouKklRke2ItaqbIl9zRz6ocYj3DsaLZg==","signatures":[{"sig":"MEYCIQCmODigXWWc+7B/nEGF6k/fa0FTTb9X5LMxr0+GApeYvwIhANJ565OYeyiD5i+bx7wBBR7mg4BFxlNQh/A9bNmwCXBp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSnGTCRA9TVsSAnZWagAAkDMP/Rfv/4eUhjE7nzPw32B/\n40FnpHqB2atIKRWgsDRMXpPRm0tYQcptGprvYGur+He+er3RTmzPRI5X4wMt\ntFKhT4VM4f/7DWg+HtWWQQC0n4da6XrwThxsNrW6gyl/gZMAFoGv/LidawSX\nd0HmDPuanmw0C8G+LrjXKdluZg5HrvOv0fHIr2IGvwytU3RIUdJ7fvi8iIGi\nd0zwRCbKlhs9GZhPncL++VTJTTCeQJ1TnIK3+CHSJfKi2gd4yC0aEHtUzHmp\nnW+LFznf9GDGbnHkgdtKnBK4TO9x1+PcfEJSjnILuNkjPVWJePwFiRylhjMv\njo+imjFMSTGguGkCzCUx9bOHzB19+Tqg9nGz1HZIDt8svAW1fU4TZQnHUIml\n41toX+sGc+ajsxFJNCrB6q8I+9VkY2JJmIrWKmS4swdsP9OvaGKa4y02bbpR\nl48duMo1YqK7WLGMQXybgwtYIu1EAgcPfZxf/L6kAV0fp9/hDAyjAugc7AOE\nSJubZx0BJoB5wwKDy1YIuyXGRRcXsaYx0rTcewvEsEsIczKQ3v8QnpUj1NY9\nZDUsK3Um7DZud4HPEHzzx4dDkoKVWyFlXNOLZklP1AdqdHQw6ZuBIIP1jOnV\nmfyPtmR4+t+IlkM/gC8J40y1nqtvNkRD5pArHd71adXUVtJN8VNO/k3ME4z0\nPwti\r\n=u8fQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"147a2a556e5155bedce0b0f267f64c26cf87d0bd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.9eeb35c38.0","@material/base":"11.0.0-canary.9eeb35c38.0","@material/shape":"11.0.0-canary.9eeb35c38.0","@material/theme":"11.0.0-canary.9eeb35c38.0","@material/ripple":"11.0.0-canary.9eeb35c38.0","@material/animation":"11.0.0-canary.9eeb35c38.0","@material/elevation":"11.0.0-canary.9eeb35c38.0","@material/typography":"11.0.0-canary.9eeb35c38.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.9eeb35c38.0_1615491473510_0.3680287811207883","host":"s3://npm-registry-packages"}},"11.0.0-canary.12be3e95a.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.12be3e95a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.12be3e95a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3005dc35dd19a63ad1445085abee64e6175d0521","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.12be3e95a.0.tgz","fileCount":45,"integrity":"sha512-uWbxaNpPvnxN5JxucMXeC9DswJMiPvQosx2Dvi3B/NZygRDfDmgAMt0Oim4gipT9b8uQ/EVCeLsQfAzK2Elbgg==","signatures":[{"sig":"MEQCICtO4sCGAjKJ8GQxDZ489t9HtwNE1YpUbzBma6sb/sq7AiBlfQmE3RoGc9vBa/9bSbO8J/CdgD9lLma5URh2HQw8ZQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSndXCRA9TVsSAnZWagAAevcP/0LIoUCKf8lq+5Aft1cf\nEobCp9jEx8ZWtd+KyuTKE3S8uUakQ6FRRgvImXjCw7L5YamQU5EHVi82ge8y\ngHq1MWWfqDeCLbyArF+VLXDEW1BtrVyB5MSsBLvPczwIeuYjD5srR3ET1H00\nKgWw8BMIkGx5odS0xyf+fy2vQxrWWhz0pVYvOBB1ZZEt+z1amQjEVVvzwPYJ\newffeo3wJ/dsHi0t3y0hM2lnT7sG4Xj02ZbmioNSTollh7QKJphGvp/SqE1L\n8MiepvvIobf1Xos2FnNoaCLb5mkQEaTXBD0gLWyzNkFGLHxZHofIi6WNOVEh\nAxiyMrOqP/ZTqVVPTjXRTV2ebkrNtSweExRm8zhSIv/8Shtwo1y0LZG8SgOj\nxL+rOrYOb0PWCUU1hXCTMobeyVQTqCBgeSbdQByT4YmU8fbAouakWMSH+YGW\n8MiBlMGqw1R6SPCc4uVBoRjGu2yJlyNV1gyR4N03/FYfTQj1HEsVqNbNidkl\nh5tIEXsjUO+7HNfS3Y6Nxqhyu7X07gQlpBscoK6XF2BtbcB2KTtocB30EX0A\n21DPPp1xJ/vPKnz79yXYKdhUmODTlUvpnmoGYbNXlNYjcwMcZiHz5wQ6etsp\n0z8U4r7Vs4+ApC6fHF1AB510f0C3TPywFxbd0ws0lsUe64O3EXt/iW1JGwH+\nUMiB\r\n=Jq9v\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"883077446617b632d698e09818dc9d5903a7586e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.12be3e95a.0","@material/base":"11.0.0-canary.12be3e95a.0","@material/shape":"11.0.0-canary.12be3e95a.0","@material/theme":"11.0.0-canary.12be3e95a.0","@material/ripple":"11.0.0-canary.12be3e95a.0","@material/animation":"11.0.0-canary.12be3e95a.0","@material/elevation":"11.0.0-canary.12be3e95a.0","@material/typography":"11.0.0-canary.12be3e95a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.12be3e95a.0_1615492951050_0.27191336057858617","host":"s3://npm-registry-packages"}},"11.0.0-canary.e683bdf4a.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.e683bdf4a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.e683bdf4a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b4017d84266b8c8011b48109b781be2529785e66","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.e683bdf4a.0.tgz","fileCount":45,"integrity":"sha512-3ej/Pu9LLIQmEpu9m/ocCGhbhTcppFpS6nqwtqIxC2yZwR6RR19IoH8ZmRjFPTf5HsTNXcpqa+H015J00/TEIw==","signatures":[{"sig":"MEYCIQCBfy8sLHTf3EHG+XgE9v2HxlWuKvvpfNHGJz9ET4cEdwIhALZ5vfz+Hw2/Up7EeYfdPrnnugFOW8QUxUIvWEwoCzwp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSnkdCRA9TVsSAnZWagAAH+MQAKTgl49RlZMDtlTuwaVq\nVgs8OqZxsxnsCiJnb4cCuXIoGpUAvSiN6W9J65rjqxmGdHU/23DzTrmxCqhL\ne9PqMg/mtj++LXO6f9KFBoBjkK4dMb3z4VPtVUNG7xSxu5cSWN5B6A1NCZQF\nQ9ftcNd5K9dNyqTW7JXJGkUlOZfVrkL1BqdEnQXw29KLAE6TCwHuylpW/RHi\nmmbyXAUT1F+0tXKY5WgHFe7ptCUhC+G9vCv98jr2rEmFktJo6avjOXe6NHl7\nL0CPQbpr/gpXJNte+3bjZ6wTmxWrVsexRNtKqbcXBb8ZjNYQ1wAZWiCfDcCj\nt0Tg1zcGXX3JWuqHcRBsFZTgEMUUH3v7hJT9nf3IO5X1COyIthgZaKwvDfkU\nV0PAgp0v0TsCA9fUuqVa5ROMXUFJe+mgZoycChPf+U9PAtf0WJJlygphHicm\nqnn31x6kKrIpOhtDvmY4Nl/oz7JHnq6SFesO2Ig202/SDTOiwgIcOYnLkssT\nEXx1ip3RDjoivU0OVy0LVOcWLXW1uS460MSsrdyY8vRpjffkV3yvv4cwMvEW\n1nJxVIX3n47rHmv1FcYDuVk8j9+tdJeGrygsZ8jyxVAvlLEXamb81wdV/fTC\nCq4RJDIQYXnTBsJNtEQxo0+vMfICsc2uEDZLPXjRG+90Kiqqy5NjqRlkNSZt\nCjoG\r\n=aPwV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0323fd7f39f825f8717fba8542628d111777ae35","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.e683bdf4a.0","@material/base":"11.0.0-canary.e683bdf4a.0","@material/shape":"11.0.0-canary.e683bdf4a.0","@material/theme":"11.0.0-canary.e683bdf4a.0","@material/ripple":"11.0.0-canary.e683bdf4a.0","@material/animation":"11.0.0-canary.e683bdf4a.0","@material/elevation":"11.0.0-canary.e683bdf4a.0","@material/typography":"11.0.0-canary.e683bdf4a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.e683bdf4a.0_1615493405153_0.9418251267989073","host":"s3://npm-registry-packages"}},"11.0.0-canary.a07b6d486.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.a07b6d486.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.a07b6d486.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0a40ecabafd4d58da0ce411c896c6c7c3a16a733","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.a07b6d486.0.tgz","fileCount":45,"integrity":"sha512-34KwHRfBm8inYeexMZ76yUVPz2wiN2sCLu/zEStDNTV9H4eiCk2C+iXx3FOsevkb20oG9+Ndkwh+dVIv/zsQXQ==","signatures":[{"sig":"MEUCIDXNe9H+q3sGZW7llxORvz2o/WoRKioNc5ocBQ6FYjBCAiEAsPRovgunEahiLND/s6Aea+LTFHjPC7RiveFPIEWbb5E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSn7OCRA9TVsSAnZWagAAzkwP+wckLkmp7jb6iyoDeEvD\nWJqGBArOFA2IsotrocIodblgssJxzfqk7BSkaUAyWkY1A1nR9i4MbJ33G6d/\nSF2Ky4fYnQc84HEbgxFORVzqq6BUhutyEl9LMWjhF6g1pkGzA7+xS4HPXvw5\nNuvnbAKur1V/egO+B4MxOh85Qf+CcyCd3FZ8bSBXJi4kySQlK6NVmrlItodA\nKXZVXIUzKNP+BDLF4pHGvneCzZQ3GMUvw+r3bC6H/HpAw7JdHfAKXj958YXJ\n9J2EG681wcboGXeFoZLwFU+9IsOPAQaVPMmVrbmUUki2oqmss/z7wl2nEEt+\nGJxz65MRy4JzrIfni10/vbn6nifTh9Vh78ySpaTkzqTPxwZpnzFo+eiI7Hfu\nf8DHwXhW6+lOlK63PnJRd/ueBbGnZDKNqApQn6B5lHXP6oREPH47cSGKwE1Q\nDVBh6CeTdtt2psMtobbnJg5DFSn0G+zQFT4zAwU0FrgYeTM7ur5C6T0T9n8S\njDvAE6zNZPiV1kV26wtF45VFNuQrBs194FidNLXl9BnewFZwrzKnRxGPX5o/\nAFxdSb3VQeefG9vdEzOcwOh+YZ7zoREYr3vYyqH79V4BUjFljrV+DYBA0VWA\nlZYNVju2QC3ewOye8SDZsLDB1qpyJyJIaWOsyzJDlMiHNJ4ZxcDb367DSx3k\nr05R\r\n=59ZW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"425bbecac77849f8786f0a32de18a168e1874c9b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.a07b6d486.0","@material/base":"11.0.0-canary.a07b6d486.0","@material/shape":"11.0.0-canary.a07b6d486.0","@material/theme":"11.0.0-canary.a07b6d486.0","@material/ripple":"11.0.0-canary.a07b6d486.0","@material/animation":"11.0.0-canary.a07b6d486.0","@material/elevation":"11.0.0-canary.a07b6d486.0","@material/typography":"11.0.0-canary.a07b6d486.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.a07b6d486.0_1615494861754_0.5741489402265365","host":"s3://npm-registry-packages"}},"11.0.0-canary.1e0653477.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.1e0653477.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.1e0653477.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ecb8fcafe3d70710d7decfe5772084d7de1f5d29","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.1e0653477.0.tgz","fileCount":45,"integrity":"sha512-9bOr6E0n8cyTTwgHrFzdoHg2u/i9gB4dHoANMDB86XRjhv7srwPSsWRA+S7bhFLRr+gcYUlxbbT068heciqszw==","signatures":[{"sig":"MEUCIEYqOWhBusobOH4RbajYDjYWDCjx1I+3emYDPyFcIt/bAiEA93UpEG35t5J+DMsqPW42hAfbc4YRm3xHLU5VNR0LwN8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSoB5CRA9TVsSAnZWagAA2UoP/Az6uy/6FcCAU/HZ1Ugo\no51UoFsMYPmGCox48p9uZeMtV9sbbamV3ct26snxgWFDR6dZRStlpppEZneS\n/zPHdYDAX8X1c09RhF8oYLr53OzztNgyugml9XgmHaeERhlXKGKlBRt+zgrt\nzSySz/RgXCsnOK+tv4N1PQKQHeZDgFEE0q0dNvDmZhHLS0+AthJP5qPbBgBz\nVdpSRIAMcBIe4seSqNP1Lx08Zcg4DNjYQDarTi7gtBNgly7Q9HUjNZTzxdD1\n15aKF6LNZ3ddiqqK+q80JrJMYaprO9LE8e1sjUZHjqJYqcUeeDWWCWqg6PX4\nXG2CCpolKVH/NcXTxfdaHGKYVWHoYPLEQkB4J2HH/hVkiFOMMgPi9c85yIFP\ntNgMlKaoA/fOS98de1cJJZ9mKLRkZsqbFtEUphMNcetNSX3l+ZEB86jB+WPc\n41hh/W8eFBgAnpoToJIXUpg9EjWq6harcSZ6lB9kdM4FTYiuUnLhXmZEz3bt\nu2h9Z0nF+9BEd7LP6U4iR2Fpbi+RbAvRRtwcdooo+WluyxHgboIyWZ6GAbXq\nF8oHp1e3bL0kovcdRiB4/LmvgYQsIQ3JAeWFiV5EKYEmgdxsGMIXclrqwkC/\n5xHoGve/drnk7d7V4GtHKQOMUdBISw1tF4xn4z1K2U46Zlqj5qdlxyL9t7nr\n6yrh\r\n=gkHk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6130e0fb82d7c39da4ae1e02df8f0851da419fba","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.1e0653477.0","@material/base":"11.0.0-canary.1e0653477.0","@material/shape":"11.0.0-canary.1e0653477.0","@material/theme":"11.0.0-canary.1e0653477.0","@material/ripple":"11.0.0-canary.1e0653477.0","@material/animation":"11.0.0-canary.1e0653477.0","@material/elevation":"11.0.0-canary.1e0653477.0","@material/typography":"11.0.0-canary.1e0653477.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.1e0653477.0_1615495288697_0.5548729665805394","host":"s3://npm-registry-packages"}},"11.0.0-canary.148e8cfcc.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.148e8cfcc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.148e8cfcc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"66b0950a4fc30d1f09346c8a787bc557516ea39e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.148e8cfcc.0.tgz","fileCount":45,"integrity":"sha512-laOU4WSR1ZO2ni+qUHbR+Uix1reCtm/ZQTD6ee1IHPhNByLkwWNjmi/fCT7mY58mxIgfpdSofq1F7yV5HAviXw==","signatures":[{"sig":"MEYCIQCoQJFpczakDb9PrQD8oXHaOtx9NQfau+2AA7IRJqx5IwIhAIcmZH/eSyx2B8uib063PSCzocOihhHw0IrAfxiqgoXR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSp2BCRA9TVsSAnZWagAAEpcP/2X4QB8uGHzy4cegxGhN\na2IqosSSJvNS59C7tqCy7AnBmBJiBS/jMg+vyfhMeqVfkCtQcpGxEn+ucBI/\nryQQIq8/KlEihlYrFvu1nshH5HFb8/SjeELm3s5qctSgM06AYmd0tup9D5WO\nCCweYAoBZFSXRyRvClVBynFV93K5/uSwXHqn+T8cZNWehCc17PyaoMy0ogab\nvtXsrOpVEn9vpCUyQiHxy3ZuxePBLTKKg90oduTCI3MgZejsGN449acEIz4p\nAL2F9zki1wBHv1qn8GpWA2PyiVueg7yJqepitJlsJMIjv6+depPizMzujOsu\nusgsRe0JIeyUtvhV1zBrgpYNQR1kPkCXc0PJMs6bD4Q0zH8fo4V9j+pe7MnR\nwTZZPQvDN/2mkAOHOIX3gX6CE1GXX5K+b86pY94LcbIlX7yVhScARSIXEc1v\nKcUA7MBbZcduLkyw8Alm5k3UGfY9Io9JuloFBbyL4NxSKgYgkqQB+8WDfMC0\nW0lG17grg8ufe0ewtuJ++1XyiyIVZjo3LMEV90zH7MxVDIwJ64uptNV7VfNB\niGQUnx10kpLVGTTVjhcR7cpkbJq4bcAgQYxK0sXuOa5a5IyFxaxqe4KcZKX6\ndON7w3+0NufbfJwljiNjIwf9FPBbXc21/0B8CJ7/a9JJRIqATAxdAYuc2YvN\neyNV\r\n=xqFI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2e686ac2d72b7a249bc4deb8b09742bba99ce581","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.148e8cfcc.0","@material/base":"11.0.0-canary.148e8cfcc.0","@material/shape":"11.0.0-canary.148e8cfcc.0","@material/theme":"11.0.0-canary.148e8cfcc.0","@material/ripple":"11.0.0-canary.148e8cfcc.0","@material/animation":"11.0.0-canary.148e8cfcc.0","@material/elevation":"11.0.0-canary.148e8cfcc.0","@material/typography":"11.0.0-canary.148e8cfcc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.148e8cfcc.0_1615502720733_0.9680887533066309","host":"s3://npm-registry-packages"}},"11.0.0-canary.73a227194.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.73a227194.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.73a227194.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0e7b7b4286101f6449d63d62f4da8aad5e4b22de","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.73a227194.0.tgz","fileCount":45,"integrity":"sha512-gjMG91YZHnKF4oBcY+nWOpt98DWY5BDiRWA5QbulSfaCxj0qu1gHw0J3o6e/jkr+A3197TMRmk0gHo1Q8Ln/xA==","signatures":[{"sig":"MEQCIBjPWC88QCYkb5xqNihIV1FuDKgKzy1OAGTe9FkNjW45AiBe26beOyhLCIKQkxQuq3r4e5jZ1NuctrN7dFNWPBnVyw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSrTlCRA9TVsSAnZWagAARlQP/RlGjfY4YzU/LwY5nv2Z\nvNnK8dHugjLfGUWPzx09R5a2V/NIPUKsOVilvZjYI/HqtZy6MCRa/fZ3fnS5\nBlaRVWDxK4C4zXVGzrzfdC7EOiYP6PfBcjUyOuCrPFvZsI45n+R1i0VvJ9PZ\nXxl5gjIAcOrXKse5yU02mGp+vZ7UxsW4pPa2MBd6BWtU+teIO1A9qJ1FVG26\no/oRQyPL9SV2sP5TvR0ziK/TuG+LDGKkUCR576BfrtCmaPfR43FsP90CypM+\nXFp55R6L1l2g9l9v+f40eC8nAVqKH5YOEhmvJpks98o5wv2cY+qEVdv3d153\np9j6JyvKJbEaaXxnU9LeVOlhFOZNRZsU6QKYp6TPx/AH7dm3m9ukpfouKb3R\nj9FMPy03BOivUvVdchHfzEdDTlm2CXdrAW+JCgtRAktDpYdMKV5eKiQZDumk\nFxG86pdSntOapawf761aLAXQLUdmZ+8y+zCRBxmoVZXngMZOHRXa6XN8r/2G\neDdXShcWSczxZg3bV9nkNSIO3XqoK3JGbQaUAvhce+eGoCjjIiAMTpB23zEM\nLAszeBD4Geu4tw0h16K/xneRRHRdAT8/i7hCTOzGkCmrQrP4jxLoSxhXsYDw\nPZaYa9BXaVqKS4MLoCzbpk9m/jRT4gfI9KQRtSn7ShOzLsznuOZz2QFfrQVk\nP1PY\r\n=ApjE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3bb5344393057d23abf5414ff61402a5091ac74b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.73a227194.0","@material/base":"11.0.0-canary.73a227194.0","@material/shape":"11.0.0-canary.73a227194.0","@material/theme":"11.0.0-canary.73a227194.0","@material/ripple":"11.0.0-canary.73a227194.0","@material/animation":"11.0.0-canary.73a227194.0","@material/elevation":"11.0.0-canary.73a227194.0","@material/typography":"11.0.0-canary.73a227194.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.73a227194.0_1615508708563_0.06398310309929589","host":"s3://npm-registry-packages"}},"11.0.0-canary.f8579b7ea.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.f8579b7ea.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.f8579b7ea.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"812e13a1646c03934c39589eeb112a7a01a9639e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.f8579b7ea.0.tgz","fileCount":45,"integrity":"sha512-yQnABCySqiDxROw8oLi9XNX5lHt8+xU1wCu5QQEB4lP5HzsCM2DAJ4vly2dMT1NfsqOvZ8cKKdqMQsMZ9RcCNQ==","signatures":[{"sig":"MEUCIEqLnLchI3fqtCbV4Bi7+frz7Vz5D/Nt1qfaRZDgjY07AiEAyQVpFE+IOVjIexh6rdHFRkIruPCmb3HHs/sWiYsHxcQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgTB2VCRA9TVsSAnZWagAAAcQQAIAbaB/1PME/MSewscLF\nmPHG3YrQrC+2VpbR9T0GJjjuVMr359UlsMfWK+6oOYxoYeFmTvciB33S8uYc\nveGBPz4uw1BlarrpNOGYhjhMvS0QSgIOR14RuilBAneWt87Zc5wsZsf9Z2wq\ncAJ7vDQ6kOnm2MRzSLc6uOTK80yhCHEti3hIdCR7GVeh+6Do1bgviA+UEj0k\n8rdodw69tMvOyCJOFLwXF3/3Bm3unpnMT65b7AiqaA4s8vxt197VIIpEVPOK\n1wGDIjY3cw8eMTZNVVyWoLmchWca9FrhR2/cUkDU4nvB1k3k0N3+KoYUoseN\nOKPfLKLRgqoTF0JV33hHwPXxOdzyI7qc/tjTOqLSWWXUujPf36HGlw+XVTjT\n91FQkjN6TujaxNkoN3ztHNg5W3JNpjlBH52Mc1IBEjFucPCqqu8rMbRK02rw\nlbncsf9B+BxEHi2A8mOfsiKw1g/oDBd7vpVds20CJ654AqKKACz+gzmQyzKC\nwl6Zo5lNk1v3tl8g/cZAHVAV7HELLazSFkM9ow+PmYZ/GD4m756KNrKTfuBR\nxIe10pWuQFZTyZY1VJ+1ZvL0KlUuy1Ptfkv2Ia0w40X2nPbOfbiR/EDu9rfz\nQmBwlrcx8l9EhnJ8BZ00DNN2CJkN3It/tRZM56L+EcXp9iawqzbTsKDdCKZT\nYc7n\r\n=CE7P\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8b1a0816c0d3a68a851c5e6a199c4a9ff75cce07","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.f8579b7ea.0","@material/base":"11.0.0-canary.f8579b7ea.0","@material/shape":"11.0.0-canary.f8579b7ea.0","@material/theme":"11.0.0-canary.f8579b7ea.0","@material/ripple":"11.0.0-canary.f8579b7ea.0","@material/animation":"11.0.0-canary.f8579b7ea.0","@material/elevation":"11.0.0-canary.f8579b7ea.0","@material/typography":"11.0.0-canary.f8579b7ea.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.f8579b7ea.0_1615601044300_0.8526268096019227","host":"s3://npm-registry-packages"}},"11.0.0-canary.d2a39d300.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.d2a39d300.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.d2a39d300.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f0a97ba15355cce37550ed8cd3dc7698c3e441e4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.d2a39d300.0.tgz","fileCount":45,"integrity":"sha512-g7QM8NNJZ4U823kiaYqVQ/Yq77Y3wVj78jubN606UgOQxfdX8Kz+OCSsceQMR6xze55dBIM8Jchge0jGFpPUqg==","signatures":[{"sig":"MEQCIA3tlNzF1Qap9ZCKqqy+sciC1frs9Cwv4DzUuhGMqKUtAiBw5IUBIx0amgHuRzar+PRGSmuvdGoDIsdG74YRhzophQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgT/12CRA9TVsSAnZWagAAkPoP/36fSOgfcnQyGaM0uQlQ\nGWLmfU29KxJiXu2qXQAvII6fJUuCldtHjCi2tg7HmDUDlFzin4AD2lFmk/lZ\nLtJPwb4scdDH2VSaYduT1xLZrxslFwnYRSwi9FbecA95NRM5GKvn/eC1lEff\nLQ7WnU6DdFNL+2bLAjICvqsU9CXqcrB6/pB9/BmVOSJ9kCG3WW+Q4zCHfkNk\ncu012NKJgxjFucmIL9b/QLLWPYZmYomHsQosH8GTgAyVCueUhbWlblnjJ/ly\nxo8dR30+jAZXAeWh0VzZ6F9T+IeoHCO+6qyKwE2iBq1GR1/SrxR4znJ6iJfN\nzYlAJlbLK4n88AZjDRxX4UHgmLo426Q+3MZGGgZMg2og2iicBxNPwcOXo3iA\nFwHpveXi4RhcLE3jJYnDpuUY86HnHH/xACkbX1bYQhk2DtriBE3vgFmxegUi\nk2e2k3r2FVb/tbjP4OP19RdJeuLemakT2D0CKOSzJb3gX1HWpVm5Nk3QiW8r\nridvSQSjWYKptQS4ec9YyLYfdI9Mt8RpyPrOEd7SOHcusS8mxOuvjagEv6V6\nc6ES1FnvVKAIS4vno1cIHzG0T9iZDayYnDXbwPQNoaiIo+PeR/TELVj6Sj+Z\nbJn2hpKdxX04nXByBT2aGH6kfIZZCh28BUpL28I7+51PjqEeACLKmUWdqkWW\n469x\r\n=rlBT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4e928ba6e35dc70b34314c7509f647a6fbc4be00","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.d2a39d300.0","@material/base":"11.0.0-canary.d2a39d300.0","@material/shape":"11.0.0-canary.d2a39d300.0","@material/theme":"11.0.0-canary.d2a39d300.0","@material/ripple":"11.0.0-canary.d2a39d300.0","@material/animation":"11.0.0-canary.d2a39d300.0","@material/elevation":"11.0.0-canary.d2a39d300.0","@material/typography":"11.0.0-canary.d2a39d300.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.d2a39d300.0_1615854965529_0.7452933376810587","host":"s3://npm-registry-packages"}},"11.0.0-canary.7cf67823e.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.7cf67823e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.7cf67823e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3836c93a006643d0d812cdb9a067b3533b2e08e2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.7cf67823e.0.tgz","fileCount":45,"integrity":"sha512-LPpT1AVdT3obsky5fFiw0nTcM+br5D+031NK8y05fk0Ko/OPUfwozXBkBmzjjvt3jyPCOEQuSXz74hr13pi2WQ==","signatures":[{"sig":"MEUCID6O9wm0SR4iVgHml/RvnmPmc7EF6WNSPH/aCCWh0qVhAiEAy9jzFFte617+Y81X8CjujfEC+/tJ0ywLQWb11etuh5c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUPcYCRA9TVsSAnZWagAAajUP/2Yqwm24ICyJ1Nfbnjkv\nyk57EW7hDQYkgTCuJRcPOk8s7OIfL+p0/Lcf7kFFQPV7F5FIRZQK1OOQIxIz\n7xC6kiauS7FddHGHoKnG+y1HBlQJwjsA6Ev5C1g70vZZP0cqIMSL30amnRnU\ns6I1E+eaKwHYJiyeVRwn3lCh0X7CvoAEP7aVBoN0+wGz6s7SFVejGv3UywEv\n3hKu1Hl/K7KiEekraHv3KbmLWVBtGMWE/pCI8anJjNgiDl4CMC7sIhbE6EEd\naMzP9KwQ8FCFXWi8ff6iUz6TIpv/ufAi/sgjeJ0wdo8M4JiBEGxAKHWfnE5n\nIIcFF/BVcaUDg+VpE6pzh6VuYrDlVyvI37FqonnHj4vkBcxleqNUAQxHSsZs\ncOpvIvcEdhdShDEoO0wUffi38qBk3ACNTxhTjSQBiVPpSFc81TZpVvUm9H76\nGav8mzlExsnPbbuGqUADV0s3oVlrnrkZwrIrB9QZ1k0DmXOdIRulGHoL/spg\nSsyO/PL1Y6SdRleFm3l/g0qyxgYnLlguOKpKGnFQ/SyQsiTp30GrJC2eg82J\nZRWwVPAQZfVxhMoohxvfaIn4ngYdhA57VJv+EUiYm9ky0cx8ozsKH59yioTJ\nJxuC39rPonB5Kw6rqenccGYtkliaxK13ccozbQOGm996vea3Ox1rCekg8K7W\n3263\r\n=Ares\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"afabf42a48ec8775fa133ab10e023c1b5d2ab802","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.7cf67823e.0","@material/base":"11.0.0-canary.7cf67823e.0","@material/shape":"11.0.0-canary.7cf67823e.0","@material/theme":"11.0.0-canary.7cf67823e.0","@material/ripple":"11.0.0-canary.7cf67823e.0","@material/animation":"11.0.0-canary.7cf67823e.0","@material/elevation":"11.0.0-canary.7cf67823e.0","@material/typography":"11.0.0-canary.7cf67823e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.7cf67823e.0_1615918871726_0.9604251223724705","host":"s3://npm-registry-packages"}},"11.0.0-canary.67d780c79.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.67d780c79.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.67d780c79.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e029ddbaf16c9845e2b1b35c88a0fcd499601ac5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.67d780c79.0.tgz","fileCount":45,"integrity":"sha512-MG3HWNKgIb3XRgBetl9mwXosTCSAGbhEYhp9tv4fHWPRms7Mzun5Tbzh5BaRLAY3ZbwbtuIyHxr/wlh6QaUwug==","signatures":[{"sig":"MEQCIQCHbL9wUb/vA5Y6wNECsLSo8W6sjQkOrjiyJ1QafHC0gQIfFVfaaulYtV9ADDiyM6kQ9P0UwDGZ1jKIa1XypPsmmg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUQupCRA9TVsSAnZWagAAOg4P/jLT0IDW75yH8Nv4APur\no0Y11lLShuH5CX0qPpyTztKrnMpN4+nAkiW44TeGpOhARqSZHnDgAgrVjSBf\nsgNk+G15vQSn/Pr6KSXfuUIM21U4Mq3dj7lhkTFDrtF81gH+IS2lSUp7RlrW\n5KG2WpW8yEfaQwgJYWEcJIhw59TOHmZ7pBw+22CZ5e4ujQSD6UVW3XNv05T3\n75gI2XtTbULHqWbdP5yXgmYmeHet9lU1XLlCd/pBnP2c9ATMlGHaSMPrWSh/\nA1LgE//z9jsA4IIhhCm+BoNf49eHAvc4NK8KnrDlB8wjArOtm6vnj5lTZdNE\n15+mGaU3JnVKdd1y1ZA3wUW75IzHF/gmuFqqE78Ph9fdDyXrncm3C+slaTLb\n+DFIb2LQ+j5MOr0CIUUwRwanysBuuSoEYJfoSb+EOb1CweeSTQ0XbqFDVfH1\nMwmUTvg4ag0e/ADPL88rVuKe/zuAuaTtOGaZGaurnesRVMVc6spRJmz1Hz2p\nTkxJuLyFRbKi9HdAmn0UTGtD5AlQwxcqigX+JbINb/5H90YeIhi0X79yGBVq\nHyBGPF+FoKPuid8JJ6G/n7ugfiJIs7kMHGitJWc/4804Y7KSqxTJB+PDu9Pr\nh+Uxic/xZkAyxCCaddd2nRlrqxlAPgKLw+X4jmulRqZkwwfGThm5/MBhlIMy\n3fKW\r\n=1T5g\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"05a76ad8cd6b15550e685799fb6b9b5643d7e0e0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.67d780c79.0","@material/base":"11.0.0-canary.67d780c79.0","@material/shape":"11.0.0-canary.67d780c79.0","@material/theme":"11.0.0-canary.67d780c79.0","@material/ripple":"11.0.0-canary.67d780c79.0","@material/animation":"11.0.0-canary.67d780c79.0","@material/elevation":"11.0.0-canary.67d780c79.0","@material/typography":"11.0.0-canary.67d780c79.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.67d780c79.0_1615924137419_0.2018818209155775","host":"s3://npm-registry-packages"}},"11.0.0-canary.0f358ddae.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.0f358ddae.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.0f358ddae.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7cd3330ecbac360eca6003ad536a36dd7a1b5dc2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.0f358ddae.0.tgz","fileCount":45,"integrity":"sha512-tYrDPIlMsfx5r9nDWYE53kZ9FQSNIQxHXanFdcqB0enFOuXSbArr2MHirSqgCd0eGN597paw/AleBsySXE08sA==","signatures":[{"sig":"MEQCIC7+dFjZGFniDYw/ax5h7YRakB3Ubifpz3SVfyg8b/sZAiBkP5tAsKAl+XUdrS3IrtTmFLXPa5gCcXpAKN0eAgSJXg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUS2LCRA9TVsSAnZWagAA5pAP/3q9C5Aj7keXifU193lg\ntlzW0NUzKCYV54t8r73HDbTtLh7HBICrtIJ1FxSS7Kyx1HA2vsNli0zWDQV8\nvL7K1Rnzxvl7EW4sqSVGQcxOTLDIPh1KO9s8C03PVgkaRrtrFTxheUPRUXFZ\n6npKvSnISis/oAv1rNP0+JWOY2iEuuOjOyecB3JA27new2OrFITm2wed7prf\nUt/sk71UP9TXOwxw9UoQ/H79aAlHazIvD057igHstYLm/3f+2TRoxzkqM5yI\n9QuG2UmdO/kotciAAGmQfIVXtwUiB5mH5h6l3EyN+rCnQrapmbfWJ3NKFydr\nsqVTKunITgjGYtLgVq+GVwhyMF/X19HoJNWf0OGwY6Irlw9ax8yXPx3FzKEb\nzmKRXy+yn5rTsXUbqvcvqO0LgZBadnDnzoRTrL2AZIqBsxezEEl6xFwCDuun\nrDiRnbxOqMjvagtYSKz3SvackHGv2n4qpCSQL2NqwhAnvQho/yFT+yqbSz3y\na6jID2Bk5RvNn3RN89IEUf4mddvb/qYL9ctgSpdofu+iBqQnNthTUXmJrExX\n5myYXr9nJrwch3AguU+Boit4a0m4X6n6s8kUQUL+UqBjGAfHl6dFvbBP6z9h\nHXApcAfP5j7YIPgFynn9r7CcZHl0iblYJD5KCXKfFYxfYTDH5vmVf1JlbCYR\ns4kr\r\n=OQWS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6acdc7677f01b6502d0b491a9816d6600ea9cbd7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.0f358ddae.0","@material/base":"11.0.0-canary.0f358ddae.0","@material/shape":"11.0.0-canary.0f358ddae.0","@material/theme":"11.0.0-canary.0f358ddae.0","@material/ripple":"11.0.0-canary.0f358ddae.0","@material/animation":"11.0.0-canary.0f358ddae.0","@material/elevation":"11.0.0-canary.0f358ddae.0","@material/typography":"11.0.0-canary.0f358ddae.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.0f358ddae.0_1615932810672_0.5754908133508476","host":"s3://npm-registry-packages"}},"11.0.0-canary.67eb0df80.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.67eb0df80.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.67eb0df80.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0fd04d58081352fa2c62c0198021754a3bc22d72","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.67eb0df80.0.tgz","fileCount":45,"integrity":"sha512-NWdWgynGqLG86SwL2wxSShcay329ILjvN+INDzF0mKiTZ21dr35XUuG6SgEQokFj4I/5/53qFx1pl/K1yuI8Vg==","signatures":[{"sig":"MEYCIQDehubXGiDsygs/2DU3YxcUjksuOkfJLia+WRoeE+15sQIhAPDINcbS808UeEKlmmpGPiRk+5xaON+oZ2Cg8bjiBPxI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUTPqCRA9TVsSAnZWagAAbGAQAIld/tehsbOhOHMXuefH\nH42teVRxOrIpmDzG1yliogaVXHPs0FJdgLBBG6SvTeEPkbYpE8nUpncYHYtO\nrJALVK3xoA9OnsKhuQpFY7hqW7parz0KvOqhqSKNzl3yGVROKoLw2z795Jc+\n6fNxF8cUYHz/Pk6IFrmtFlkoch6bVmxKx9hVSRnMcxfsuqh5qJtabS/6d4kZ\n06nT4wL9hCFqreVVHGIibZkCQ5MPm8zw7INLXhxKkk2qvy2O6vXlmMa4b1Oo\n0lyOu0m1uGkMhAyyHEv6OBYuN1rApA7J/JThICJ83KFXP8QQXIIccxNQdbv8\nj3zlI4PUvQTZe3m7hfsPyghvgwM3at5b5+q4lvWW6DPYgOz7sDs4DXrdXyjc\nqZkN6kqou8nZlYIbVPAM3wl2+uTR8mPd2EWYsWuM9XDak6kxBcs+41ykgh3q\nYrFZGK3E9Rn4on+OlmhhMG3YsjAOx8bDA5NKGnYsZSLOXqh5nSSNtp7/Jjg2\nGt1vHU1BjF+ptRpNmZPvg3/uhYL/osNWoy38r7Y8sUxwSrPiyI6c488Z2hA+\nEaUpahWRtu9yP+21fA0XwfGqIjdE0r+yy1x3L/GETEbFzzVXhreMgvZ7H6uF\nG996aiRk1NSpaS0RSPiamkoxLE3J+SDe5XYTcQN+ZlMYBjyWYJ5KeelPJ58D\nE6Gt\r\n=Y7+A\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5f5e9d259d95bf3abf565622edf7345e62993020","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.67eb0df80.0","@material/base":"11.0.0-canary.67eb0df80.0","@material/shape":"11.0.0-canary.67eb0df80.0","@material/theme":"11.0.0-canary.67eb0df80.0","@material/ripple":"11.0.0-canary.67eb0df80.0","@material/animation":"11.0.0-canary.67eb0df80.0","@material/elevation":"11.0.0-canary.67eb0df80.0","@material/typography":"11.0.0-canary.67eb0df80.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.67eb0df80.0_1615934441439_0.7669958067133815","host":"s3://npm-registry-packages"}},"11.0.0-canary.941ca3b3c.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.941ca3b3c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.941ca3b3c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a8de970460393c1dd511239e90b950881b8107fc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.941ca3b3c.0.tgz","fileCount":45,"integrity":"sha512-Go1KjiNoreTyeyqTZ3Rud9rE76LecvwOe96Yufm0vbHwqiX17anxMdekpvgxD+a8DAw3Me2/6emgQWtpmww/ag==","signatures":[{"sig":"MEUCIQD6jiXcslXebLSTJm0ZlTtv+rLfHCn0v9Y2Uu813juP5QIgW8iXHYErmQWtNR9on0pNSC1OSolvYuNRbI+vVMXwNzQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107137,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUTRSCRA9TVsSAnZWagAA7VUP/02cBcoxW55wxAIdXcAa\nV2O17hnlqn0t6wSSKq/Djjd/63l7KAcs9+mRGZ7OqFQ+k5UDBjy51WYPVS3u\nsLBctoZ7b3sN6c6NfNMYLDG1A5WktQwM6LdyVgn2dsng4JR+/jZXDhW5ZO9+\nK84sCfUJ2k5o/HxFjCu6QZ7u8agXgl1UBKK9Ci2ctPAtBo/XNoPGUIrGSxRS\n4gHUYa6TmUIoevNFRViWnPimaPZJYxblNWQyOF/CSlAIvlsW5pfYpl1IYqD3\nomOzMmxLf+zB40E4tUbmkGq8RK+HmqJokfz8W2ldGNe5RJSR36Y9grmHVD1R\ntVPSfVBf1FZRfFZXJ1az50AMBggk1W4cZhu1lEUvUNE6AaBolxFpt2ZyEBWG\n5of9ta+FUE052tMF8TWoGPRHqHFBjYWrVgc6aRpF1c8UI6JR58x6wSX1FpLP\nrDHIi8mQ8HjV+fo1uzwgJ1tv8XeoapNljYYjsJEgpnh6PSoXAT4Bg/Zp6vJR\nDU/ISUM9O2Tiq6BbQcFQ6DYnNgOcaez+LwLaiNHHjv1bfQNnXgOCaP2s2B1y\ne9svY0dSAGlmZ7o8iM2msEsDKNscd4Xd1qZPU1mOh2kjLOqRHZIepqyHqxqs\nQ0bnKEOUrlvd1GcZdc7j+wMMo7x+fCpa7FQeeWO7KGZiWexVIxdtVmBUxFj2\ndqdT\r\n=F4W4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"27181e4c2c90af170c9149616613beb6599ff94a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.941ca3b3c.0","@material/base":"11.0.0-canary.941ca3b3c.0","@material/shape":"11.0.0-canary.941ca3b3c.0","@material/theme":"11.0.0-canary.941ca3b3c.0","@material/ripple":"11.0.0-canary.941ca3b3c.0","@material/animation":"11.0.0-canary.941ca3b3c.0","@material/elevation":"11.0.0-canary.941ca3b3c.0","@material/typography":"11.0.0-canary.941ca3b3c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.941ca3b3c.0_1615934546479_0.6049528468679044","host":"s3://npm-registry-packages"}},"11.0.0-canary.3344d12ad.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.3344d12ad.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.3344d12ad.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8e753f035e258526bd42ba5678703770b5b7e122","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.3344d12ad.0.tgz","fileCount":45,"integrity":"sha512-pdU5JDDqLmBBMeGAPOTlA0QefSrwWNtV6AGSJfUszdShqOL5FdSDDB5TP5cvo1KBYprEHAy1k8IhjAniEbJv3g==","signatures":[{"sig":"MEUCIBE74Q0f9oezb5EG5FKCLqVX87TbQrXsMyJ/sQS2G6yqAiEAooHOlqJ0KpTaYN6Rt0U7NSfEOiTeJr5oeXzlzUDaNg8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107137,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUdPGCRA9TVsSAnZWagAAoDsP+QAq/N00ZQM+MAzeFRwI\nxTc1AIo95VQmUNxDiw1hqkmU+uF5aHIpovc3lgYd9dVMGXYxZ45k6CDauvLV\nZirAtObA3QfESgpNsGjVfTm4oYU00sERiela0f2/4BxL5BSWvn++91C5JOV/\nI/x5YRuolNhhtPWsMckaSQkV/MBsKw84bwCRVxJgJGFJ5835NB/Woq0LpMMO\nzwlnau7bZ9Df66FgOqn9PxpEFZ6sfxoAfS7XDfjX9+GxqVLb7KJShj86BZ1n\ngR/wcbcFkzVLvBO4BO8XeXfoyqj8ftcIs5DfriM3BVe1At+98M6PpjHPm1tM\n63J54kynDZ58Q3lGVKgbGpop1ycRuGacadjiIh8nDnnfA/fAxFEeyMs/f/lF\noZ3SyuLpHINpib8BEV/e35j7r4VRDXEoKWSTCUvlLac03RYCPZDBv2a6sFOJ\nE9zman87ZWzy/vfqs9sbGtu4iVZtbr61rqE5L+FZL8p7YLpB/SXcEcl79WVt\n52P4rRxem233NhB5vYGukFVoVX20BgApbut8Kb7SU2DWUZ4VHzVg+9qDyQ7u\n/MR9FbiWT1D9aeOpNX96RHvUfLVUM3DlsGfki3QG9gm5kid0I5gawe1luWb5\nd5/u2PAihQ8yNZK67i9EPiBUEi2dPf09qhCx4ybeaA/n/4FeRTUCavrKebRX\nKHAL\r\n=nJgE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fc17c547b4aa66b6412c0b0b56b75978332702cc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.3344d12ad.0","@material/base":"11.0.0-canary.3344d12ad.0","@material/shape":"11.0.0-canary.3344d12ad.0","@material/theme":"11.0.0-canary.3344d12ad.0","@material/ripple":"11.0.0-canary.3344d12ad.0","@material/animation":"11.0.0-canary.3344d12ad.0","@material/elevation":"11.0.0-canary.3344d12ad.0","@material/typography":"11.0.0-canary.3344d12ad.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.3344d12ad.0_1615975366256_0.7299084006226708","host":"s3://npm-registry-packages"}},"11.0.0-canary.6072ed604.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.6072ed604.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.6072ed604.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ebd1bb5234b679876beb6ccd40f056b5de172163","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.6072ed604.0.tgz","fileCount":45,"integrity":"sha512-XRG73EqYd3doBVhfD4qzKflRZ9fbd5VBia1rZj8PWhs8rAwvhzJ1zBgaGH/GEI9xjfeLipIq3ecfdCF3kmuHOA==","signatures":[{"sig":"MEUCIQD10am1tX1vzKK9sA1jEJpEPs4ycK5syiXDFaUT7rHOmwIgVAzx/u+U+fxhsNLESw4tdQjwV6Qdo12vfIHyA0P789g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107137,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUooMCRA9TVsSAnZWagAAj5wQAJVd3vgSSooD1/vmQINH\nzt6i/Pqp3K0j+47ncS0uVx6E8wlXr3w+VkzTrXaTHrA/LDFOgFAlTahmSHvG\ng16L2yXHEL/H2oWHzOqIe8jcZEGMcxoGm/uSqkIGv7T+cTNb/mbcXWtRm3YR\nTnPkhLqW4yoSEa7qouNNhnbH5+hlhE/YK7TDS8P3FAbqHc1cGNQiLNq4phn1\nnamlJ1r7UHAh3JRQ5PhBUyDWGQRn29x8vTjkHf+foKlIgx+NUN3/JR2LOWJn\ndnSxV5nxBzK8tgc9tGx+8BcD6PXjaTIXTPo9Q1kwtGv7C7qgYuUsLM/opCyr\n6QCFqJ62kvxVjD2u95wKllg1Cehtj1xpk4dShLckAfxkNajAlQU9+9Jbm9Dl\nTeHlaSKp+QhnZgUZ+Lvnj4LZLKxIZm1ptEHf0cLqBCLcEQGSqSWYbcM5dgge\nKh0MIBAiXDYHYcRup7B0/JFyoIlu8IwypXLUhU7UPwAYA7puIKOJosjB8sSU\nvKh5YwufJsPf8OMGmrX+z9tX0S4wV7+29yM5L/3r28VrJZLoVj05Ny02ETcQ\nr4k/svwYFVR8CG+BJrF0DTGatm61fZRmVQv/odDBKso0fcJHvY05m6UTFCAs\nFob7SxPB7wDb8IpTEph6YlPfVKb7bapql8rbCYD728AKa0y6EtFdqUPERL3q\nPe/T\r\n=QEph\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"219b085de7ee97c7b75e5f25dc757e7b5240916b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.6072ed604.0","@material/base":"11.0.0-canary.6072ed604.0","@material/shape":"11.0.0-canary.6072ed604.0","@material/theme":"11.0.0-canary.6072ed604.0","@material/ripple":"11.0.0-canary.6072ed604.0","@material/animation":"11.0.0-canary.6072ed604.0","@material/elevation":"11.0.0-canary.6072ed604.0","@material/typography":"11.0.0-canary.6072ed604.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.6072ed604.0_1616022028141_0.896244784198361","host":"s3://npm-registry-packages"}},"11.0.0-canary.d3a6862af.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.d3a6862af.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.d3a6862af.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f0164931b62b8258a05549ae27061c0efb62d578","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.d3a6862af.0.tgz","fileCount":45,"integrity":"sha512-42BiIx4l79aJuZZfIg5rxVW5RSZ1MMRo6cwfuoRzA/lVnHkuCZfx4SKhpUfXsTODYysMGDGuxO2+fIHBLtFXnA==","signatures":[{"sig":"MEQCIDLZTEsb9EpKGL3fHSA2+tQDxNX17vsWs8tdh8+fQGr/AiBUGXhh0IpoKnmoGYMEtvFJ6BS82tiZAolPr9ZGMKHl5Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107137,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgU33vCRA9TVsSAnZWagAAZcEQAJUhCp9kMgQG5asF1T2b\nuR9A17bSJabWQtQeE2PkEDachY6k0Qz1+WdI7/vLDyDGevFIFuZd0ij5FAQY\nAkIrUWCvBTBJeI3mPoOac9YN/wajrm9kfrgnG5dpByHfjNWplRpYcTb2giQF\ngDaWo/MB0moEKqHlVfbAvIh36R7zV3bOfmcyhlMkHyoZXbVMZAT7hc4RTOdt\njJpsPHrlbyBYLZ1DBzqcyGhaEEHW03YerBWqk9HumfxR05an+DalYXWMDImO\n795u6FVBVBVsWRjx9I8GBKBrZcEQK5dJ5P1kU/L7XsY8dCylZ4B2COq2WfeM\n7xNodPzVxo8C26NDevwC/VRCUCX/9R3MRlQnDRj2lktO/gY6CUlSEcUqmNoF\nkA2HRLU35HE9pjuwH6mlbb3kOhAN9UWqZud4RyT5WYKWnB6WFe3hAlhFhcLe\nKrbHBlfAPNfGW8bj2Z9nHhhx8yItI/2/Xz+aU1j9n3Fvx04qXOlyy3l/lT2y\nIyYzmkuH1ScEgdvl2GxhFjRBfgAnQmp9tkiR3v2t9am4b7gfDWwUEQGL/cqL\nHydlyWwMZZ+bjCzw2e16YCeLVUNMxFZPs9zZ2J5byA8DZxk4t2ztBKI2sGBd\ngGr0VEi4G66IVnMAcwsegZ/AARayzO/cjtpgZWrdz4Ir6UjVDrsDcPtfj4Je\nYWhl\r\n=rbMu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ab10f53a050cbeb103a3ee070a9134ff428deae0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.d3a6862af.0","@material/base":"11.0.0-canary.d3a6862af.0","@material/shape":"11.0.0-canary.d3a6862af.0","@material/theme":"11.0.0-canary.d3a6862af.0","@material/ripple":"11.0.0-canary.d3a6862af.0","@material/animation":"11.0.0-canary.d3a6862af.0","@material/elevation":"11.0.0-canary.d3a6862af.0","@material/typography":"11.0.0-canary.d3a6862af.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.d3a6862af.0_1616084463211_0.8536806495637173","host":"s3://npm-registry-packages"}},"11.0.0-canary.40dd242d5.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.40dd242d5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.40dd242d5.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a102d82a28060d6f66171cb0f905d835a9b7ad75","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.40dd242d5.0.tgz","fileCount":45,"integrity":"sha512-cZl60HOUjpsjOM2r5/r+XXnjUXXgCKgMC92JtwYu+59XO/Zitsw0dv3gYatq5YPFG4gPcb6a/mGesK6+p1eTuQ==","signatures":[{"sig":"MEYCIQCm7b9N/yJjLOO0CH4RVwDcVqJ7ErZCmM5e/Kr1fOFuoAIhAOdjApK1zybM9yU0ojbAI3L2lQHql8YmMAltXYLr9FQo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107137,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgU8OVCRA9TVsSAnZWagAAcUQP/imnlSThvDMIAsNQpKC/\nWdjog8m3wKn47TBxqgCdI1hDAJkNUDYP8ysRsRIPSKUf+lzrjVB6/hPcFnfQ\nn/7S9bvJLESrfjZvqr0ksSJfGgQdGfsD62R9HH3WhCnoc22J0vltxylX82jT\n7CuaU5DYBzZRxMv8slKS7h5wo/VE6OJ/yg1mUqOp1imwtgNgziz65pOnTDJE\noJYplAXxBy65dScBsKWrZrfN0wUZIsxY6SC6YgZdl4rn6XGHbJ50TAeOHZHs\nX7Qx3YOJDF3CR59E5TGlJNTKRfs9vftBeuUg8ksgRZFad0XNDaSxbYxXQkh2\nbYQTWXK9Qu3RxiGse/R5z38dD3ekos1Ulg/mSFHtdPjMYUE4PYfuG5JH7FF7\naRAWQxncaF9uPwTowbL05f3DtAQFf8c6HQ07yntPizKRdswtML6dpMGqTiEj\nc+Zo1hbwsCoOswQdNgCe5gW2in19RwJBFLS7buNpF2Ezg4XK4HniME1QP0oL\nqzWWW8tyIj2AYR2pOO3hTHvGxOQe98mZ+fj9B3E1faC9iB0fx1tC55KVomk2\nSQTjT9XG+3fNNcVN4X6ev57flTMajwsza2v0RrR4dBT3E+ZyvFBMywl0B/Ta\n4coqpTLZ+HxafufvE2zW8iHJVap1eMfKoox0oVvHHs3ykkBGq7PLpjy5yVCQ\nB7l+\r\n=EG4Q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"07de383ae306cbdee42be69fa0a06884d97ec259","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.40dd242d5.0","@material/base":"11.0.0-canary.40dd242d5.0","@material/shape":"11.0.0-canary.40dd242d5.0","@material/theme":"11.0.0-canary.40dd242d5.0","@material/ripple":"11.0.0-canary.40dd242d5.0","@material/animation":"11.0.0-canary.40dd242d5.0","@material/elevation":"11.0.0-canary.40dd242d5.0","@material/typography":"11.0.0-canary.40dd242d5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.40dd242d5.0_1616102293219_0.6049147207619565","host":"s3://npm-registry-packages"}},"11.0.0-canary.ec8f8465f.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.ec8f8465f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.ec8f8465f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bf183d23b0b0249e2b554509eb265a3f2d2fea5e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.ec8f8465f.0.tgz","fileCount":45,"integrity":"sha512-PxNyW8Fta7RU5XWpnJtgmiYmPimS5scGXcP71G+zHcARgfYcL23j0uYEFhzuuumH0r+2JZ1aceJ8c+Oau9mUyg==","signatures":[{"sig":"MEUCIQC6u2n6d6l4gZgEX9oYcOLzLJw3me5jlIzUOqvVqt7YqwIgYck+pBTuy8W3nISp8MPRZQqzoq5yug+XMsQzK+5C/Cc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107137,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgU8nhCRA9TVsSAnZWagAAxTcP/jyZX8ZdGNhzFG9/9NLW\n4Q+TnxgT8dBiUT4WxxzwEB3qo8CUDtZ2ZyF57M/cSei5FbM6TI9PAy5LdfmY\n0Z4XqGhZ8KDPL1pwMKInFw3pry+wSx31A7zjcAGCfq8q66smQPyrk7o6Ywp7\nu5Xv86p8VfoCEuy/H2yFuWcnnS2fWC3Eq33hIYsiCOTAa0kzzQwboZD0wwKU\nRZ/P1Ra+7kjeXdseFuOSMnBNOTAny0gWdo/qCP8t2CSetJZnjdP0BYaA6/go\njQXwaPPl47gCoJ2rlCLCNgca8vcOm8khqYTbZcuEJZL+pLNohls/g8KdfPN3\nQC70SbPyppmsXwln4jzbeKKDX5KP/V4F80rN3dYerZVBL+it4l0AbQxWge+Y\nsvl8N3F6rOMmkCsOV9PKuqItcVbbR0j3q0e026rI4oWzfhgQpR8dzDuRe77y\nMbcvHEucoqTZ8EX39OM5H76uDBdck2gnnkKo0OEkiMYzqhyCMoNLLIAkIbG+\nCP7cvCWN5C+iJoNpeHcDU4LVjip3pdxf78aC9nn2vic18z+UzjpW+JK0BwK8\niVBHDJTZq+yQz0logNuchM6JUe4bxGMy70QSPBbduAVAzDhnrVC81of4fMWw\nMBeAtmEg2OPt2neyMC51SpQK5gfWdHiES6Dc2GdrqOuRoky32Oho+IwDWjVd\nek9v\r\n=QPT3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"896f8e45effbe3c44209b4542bcd3d10a7f8421b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.ec8f8465f.0","@material/base":"11.0.0-canary.ec8f8465f.0","@material/shape":"11.0.0-canary.ec8f8465f.0","@material/theme":"11.0.0-canary.ec8f8465f.0","@material/ripple":"11.0.0-canary.ec8f8465f.0","@material/animation":"11.0.0-canary.ec8f8465f.0","@material/elevation":"11.0.0-canary.ec8f8465f.0","@material/typography":"11.0.0-canary.ec8f8465f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.ec8f8465f.0_1616103905045_0.9746372760402331","host":"s3://npm-registry-packages"}},"11.0.0-canary.da38969ec.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.da38969ec.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.da38969ec.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ea678e2a199b3101215b3a6f357c892e55d7dca2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.da38969ec.0.tgz","fileCount":45,"integrity":"sha512-rYLrWHQ2sDBeA2Bpyf+LSwvBrQPsWOrFiyJeRwO3j6zHmSyYY4FeugLNiYP1pafZRlV0vzqVUZiPpbnWwxnyvw==","signatures":[{"sig":"MEUCIF5iiJ+fIjfld6Qkkv/HNtS/HmL5KoyjsPbJzdlatDQKAiEAwHdzkp9hf4c5j9/HagUS/g3TAKDtNlozGvAKvdC72Rc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107137,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgU9HHCRA9TVsSAnZWagAAvHIP/2GALR0cpwAVZpNAFhW5\nzit/Ipx6QDcpf3HbyRdH3nEuUS4afBhq4xdKQBgsSbKQSA7tUV9mmlu5ce7i\noDs3gPntmt6amGfgbHLGDNlvkV4cjmWjVqqn0hByz0OgTFHYDyMeaNpOaGLD\ngWOkweIcEly33JN/s7aub2AtCZsCIjqOb1Vrs/k28zwI6v7ZSRRTSBSxq3/c\n4/Sw0FsuVGw0f8hgepe7NZ/Sum5sD5EYcBRE6zWMTSnCwOM17DJHgInANnHw\niPdqHHJvFNZTV3XFx2USomKx9agrlaeJ0J0hQwS6EF8GomOk0IZCb5e6ZyHA\nkZW40B0Kmwg7QnIbFHPO60D1hZNeqOeuLAJDo/6ow1n0McXnsj6OBCV7nBSX\n59/wy23zHn9gwdxlMIWCO64HHdP1XrmrCu95n6WJs/GqGEjlu1FCFkuuz65x\nvKit92AykqHTNCUOcHrDwshZEBPExCecoS4X5tL6ECc7lx/QO1vdE6aA/GQD\nslmDy6D3hy/1n2iY8B3ThwkbxFyw1b+DcIAiZRpG6xDnQbRaG/FlYuMb/raV\nUcWDrTbDwVW0AzoMVTULMDbdcZ8xRyK1wulJ1ky5qyXVuzjtx+f0bXUBrFQF\nVGdo83m/wBYQrI4LemiLGvCkA7OQkTRi1w/5daAtTpZeX4zmHNc7DZlrLyhC\nW2vT\r\n=7L3/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b43d112facdf74c62e02576a918d522587133fa9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.da38969ec.0","@material/base":"11.0.0-canary.da38969ec.0","@material/shape":"11.0.0-canary.da38969ec.0","@material/theme":"11.0.0-canary.da38969ec.0","@material/ripple":"11.0.0-canary.da38969ec.0","@material/animation":"11.0.0-canary.da38969ec.0","@material/elevation":"11.0.0-canary.da38969ec.0","@material/typography":"11.0.0-canary.da38969ec.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.da38969ec.0_1616105926774_0.30899650007076573","host":"s3://npm-registry-packages"}},"11.0.0-canary.f5246264d.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.f5246264d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.f5246264d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9178eb5c7a579f59d6a1c1ed7d7a438aa8f869a7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.f5246264d.0.tgz","fileCount":45,"integrity":"sha512-EUuP24fxaQKvTsX9YnPrsJvl5wU7r8mG5VfVj/msghOcGLAT/XtzUmYcOOHk6BXT4i3kjCWSM8ueIAnWuVdHOQ==","signatures":[{"sig":"MEYCIQDq840pFVRX2/dWzvKtpgIzk0aaa8/D9VTP+yN9rDq2/AIhALh3moT9NNzRZ7KEvgQ+nxqNQm4+QkGN8lQ8+iRzS2bO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107137,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgU/LJCRA9TVsSAnZWagAA5bsP/1/kMO2ZoiQ/7T5ArMb8\nfZKBe6uHidOXOpc8SL0fE/1zCW0C+J2JMk9mlRQ0h4vn34atCqbqsVyRB49n\nyRc6humo8jJNkhRnna2QVB/Zyj7y7lppifFsx5DuU4/oLMpTeyYUC/FWjB0g\n75G8xXcIvDdIZ1WUG6y+v2ungxwCgSQo2i3/O3aKjDTWM9FXxC+ILcEMzRIF\nBYL+vLUzoRvr3HJYcX+QBlXS7F5jlO2y2Lv5aQboFEue065YvmuQS2pQBetL\nWT1CwIWCi/vQwwIvhxa9DUOHeZT+Vw2c80rotpk+t3M4Uw0JLpG570wlmdpa\nHDgOA20Y3FmSbiwt62cRUR2xSo3jZSEeEw3fz0mxHF77G7UvyN1r46GyBqCo\nKKhc2LRtfO4gI0sychKvjpOnPxFGiUYDcxYyt3H0oChNzzFZZXVDKWir60kK\nK3YN0C6VlD9ZoCe1a5vnAa2n8eQ7DKrJ6PX8LXsYe8Y8BzYAwVhRCQDJ8R83\n9az1AJl1P+eIjfQ4QUWoKzGXDimLYiRIYCWZ+RB/HiRubq/5aM36g+M+2Gms\nXmncSu47HCFcPY4iBdiZ9pdmM5nKuZV3sxhIzKAkLzmeBzeiyz+HqAlRZ8Xt\nD3PbjpwwZXOj4S907ZodqV9rP0HQwvO4QzioJ/yCPyJSZlO/zxZBJMiIOL6X\n0Ujm\r\n=SR4w\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e5bc1717405750210bb9d7e3572f0cd36c9bc0cb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.f5246264d.0","@material/base":"11.0.0-canary.f5246264d.0","@material/shape":"11.0.0-canary.f5246264d.0","@material/theme":"11.0.0-canary.f5246264d.0","@material/ripple":"11.0.0-canary.f5246264d.0","@material/animation":"11.0.0-canary.f5246264d.0","@material/elevation":"11.0.0-canary.f5246264d.0","@material/typography":"11.0.0-canary.f5246264d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.f5246264d.0_1616114376663_0.12449536238868397","host":"s3://npm-registry-packages"}},"11.0.0-canary.03d34bbad.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.03d34bbad.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.03d34bbad.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"81e90840ca38a95df3edab60720b91a57d740051","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.03d34bbad.0.tgz","fileCount":45,"integrity":"sha512-MNjLRIXI+SsrGlQYGztjz09zboXi6y0luUJDM08BcEebHtvX2qCa9KeGiLWLBgNTcpevnOKk2jYCcZEBkOfWig==","signatures":[{"sig":"MEUCIQC5a0w598vgZmJ3zLFs+00jHnkieLo0y1vXVl7jRem1mAIgBtV1Mw1S75fqxssjrhHLVTjYJd75cMO+a0hugQa1tms=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107137,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgU/XJCRA9TVsSAnZWagAAj4wQAIUcvZg3zuiveyqEf8yb\ncyfiHOUnmAgP+q60a0f9yB37dGcdl+uPWHyzVLQ927hg9Vo9TvABVz7YrbRT\n6yc/aBkKLm7kPzYY2JpJNgEqQWoQxALb4obl3TMkK2TSeKTfo35V69AyyI4x\nbEIYiZHnKywisyWAYNRWUl3b+hDcaEfiiSyw3iLR9I2Ds0iwlD+PH0+2jMck\nKlk7VWi5DpVFf9ZPHZSDHiEr7S2X5480pVUtxzFIDpS/nHd+Tpm7uR1M3ITe\n5cFi/9ZuH4sVCKqBIOwsvdQlROeIzTswbpSpqkpBzDcGYWo24N1Y4boohRT/\nFk+UDAU1t1+fLa6oulpAZ/Ykox7F8bPduSk2mvl9lT8VCVo5U67EhtSRYIlS\nPJ9fJU2cFhvzgOMHlL4HstwTl7JCp/sgzfQDxYzsgijz2WUsMeZlOSKfpcY3\nvhQLqg/5odCNS+RFm+abrvLU2fFzjCTHIqM8AYwrNWZXi8G4/5uJW6BsY/t+\nPcWs2IQmVWilhTieoSfXu0EQBk9OKIOI//RE+KZRM8ZWM4ANpDw5J2aqTWXM\nEWx6XDREnMEE3VnNaeRL49/BA5yGyUDX1w6jLbgs9L7G69sj3r+J3MC3l1zL\naenXxsm0s7UGw1XUIXTd/xHIPsa6T+V3aBS5+43fyKreGqR7EBTohDvCK67g\nm6im\r\n=28pA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"650c89999524e7131f5808d28c8ea2fa15db0c86","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.03d34bbad.0","@material/base":"11.0.0-canary.03d34bbad.0","@material/shape":"11.0.0-canary.03d34bbad.0","@material/theme":"11.0.0-canary.03d34bbad.0","@material/ripple":"11.0.0-canary.03d34bbad.0","@material/animation":"11.0.0-canary.03d34bbad.0","@material/elevation":"11.0.0-canary.03d34bbad.0","@material/typography":"11.0.0-canary.03d34bbad.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.03d34bbad.0_1616115144543_0.08695779735464582","host":"s3://npm-registry-packages"}},"11.0.0-canary.cbc57c600.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.cbc57c600.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.cbc57c600.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a2cf907735b3ae768bb370bd7538119d20e8e3b0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.cbc57c600.0.tgz","fileCount":45,"integrity":"sha512-9J13Vq73bdXGy9XAmsWpATn9a8Woua5AVy3Pl4bGoMMxfqsBNOX5BrrAF2dlaq7E+sl0s+eWEFVZ2pAOoTgpAA==","signatures":[{"sig":"MEUCIQCATyhMUbf8rd7aJVrzZH/iLFHvIieObQ2JnxK8UlToNgIgHyvmwj9XkLgQqYgb3HN58AwZ1Xpbdl2CtMvHcL6OmrA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107137,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgU/e6CRA9TVsSAnZWagAA86YQAJe3LM3Uh/jnk/pd8+No\nU++h2K5Yb+z3g6QgOx8hQEF8LxWXauQuq/uOeaVB6ew7/wxjV975ef9gTDa8\nHWnSNG7ddYk7m1ufho3vfH8b6fIGlaAIW6v+vtFIlVDDDfY9BZmbPsYmvmSj\nuC2HJ7Al8VoVNGbA5arDf4bclqVtuZR4GrXBaieexeJ4G5W/VwM7xFIMf40W\nW7VqQ3l2CDflPR+mV4uAtibgt2XcvePhU7Xy3wp9IwXIqyG6mvUERor4n2f6\nUZ5bqDEL8T9Y+oG3gVRnZEVS07ex04q9jqDYDEcPXMpAQkt18FdDiLjE+Fx7\nkebkqtgbP8RXp6S5Zppn4MvGZHB2KC6Z99TlCvj4jIK8MsIZR1JZbvAP3ntO\nI9DuLjfnpk3D/7RVL2/TaTygg3giqhuVnxyoE9DdVdIQEal9BSRPvVjN158/\nBp2Wmz5+Tb6D2oJWom7Q2jr/r7G+V2iCls2e/Pwm+AFU7alPWDUfwBu24Jpk\nIVjI2W78IvtiCHld6EWUxL6ivVeDZNLHpk403oq/g0xgoOV4NEEVfoSIFqBE\nJrCXKOW4JrHBtcZZTAddWeqjHqUj/LFs8Ve744dYwibi2RhWQPQ6cZjlRE7g\nwtLq9GfUbn7sjO9QspXVTtk9AhotlbJmP0crLh6xqQGU7FlCzx72z5W4vsQ6\nHYN3\r\n=8Bc7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c16ee9654e2ac3913ee3140dbc31e34bbc443c00","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.cbc57c600.0","@material/base":"11.0.0-canary.cbc57c600.0","@material/shape":"11.0.0-canary.cbc57c600.0","@material/theme":"11.0.0-canary.cbc57c600.0","@material/ripple":"11.0.0-canary.cbc57c600.0","@material/animation":"11.0.0-canary.cbc57c600.0","@material/elevation":"11.0.0-canary.cbc57c600.0","@material/typography":"11.0.0-canary.cbc57c600.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.cbc57c600.0_1616115641456_0.7282937935563081","host":"s3://npm-registry-packages"}},"11.0.0-canary.d6c5bcf37.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.d6c5bcf37.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.d6c5bcf37.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"464101107fda8109328cc8bf5a37ca510406d853","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.d6c5bcf37.0.tgz","fileCount":45,"integrity":"sha512-3dSXysiuQq5dgBtlVtCYERQbp0X54dFuXKfgIropv2gANuqo2JkUPuCB8WKz4cuqjK97gikjwRM3LHb/qunWFg==","signatures":[{"sig":"MEUCIQDI4gfu3sPFrlmTmkeVsvf/z6dMRwZ4VjsYahLdnL/QBgIgexefnKCBaBnB8gRBy8f8PV5jtmIEdSyVuw+tyjTCuIo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107137,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgU/q9CRA9TVsSAnZWagAAAfoP/0tDmZuO+q1tBw+b85rm\n4Me5tmyhTHHzlUO93x4V+OuMJKigt7PA+OpZwvXn/iBUU/QwAHgfO0nehSUo\nd1A5t29K5F5Xt03Pn3fGVbkkXZaXx/kfNYqGAvjlvpH6PPrac2SVdw8++X/g\n60EJubtEGSS7SVdsgU996VGf5ODtIUwMbj10tRHaOHneOCSiNvT5geamqUL3\nwHog3HXKye1pV9MvZxOdlhUGDAW80nWzTRY383r35x2kBlLUSIbwZrtIisu1\nQoK4zGBwX5pXFi61YCwsQY61yC7PpkCD3BKzPCnZ5cK6oMckAlD5fuEVHJBV\nFPin8b3QkURInrU3iZxjZy18L/icrVDCbYLcVeJ6/tcFvRWxfQJu7S7V0CVE\n2Y0uNZTNUtsnaVc31kXxvhY6Ko6b1WbfZ87gYIkcsnpAfQ+ZuD2qEVtic5tu\nauz8K89AcI1R1jbt02/ZTRm9VNLUP0KM8UeXDu8ryJ/YoXDO4gnluNsc4e0m\np7yd8O1me7tiqi706Yjwrw6qO+y5WUArYYwHRlEs492R9XY54wNmk7o8Hiny\nTLV9ipKuqWZU06AN6g6CJH8euNhuITU6uaSyPzxqTfKUzlUrScmMiyV08CVc\nr4JqVszU1zxWblD+/pLtWyqCTumNfgNjR14Cp44woSs0WECEoMDQO2o3JQrE\nGM6t\r\n=m5OA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7ed31c18c565964157fdadec7c7876ba58c6dfff","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.d6c5bcf37.0","@material/base":"11.0.0-canary.d6c5bcf37.0","@material/shape":"11.0.0-canary.d6c5bcf37.0","@material/theme":"11.0.0-canary.d6c5bcf37.0","@material/ripple":"11.0.0-canary.d6c5bcf37.0","@material/animation":"11.0.0-canary.d6c5bcf37.0","@material/elevation":"11.0.0-canary.d6c5bcf37.0","@material/typography":"11.0.0-canary.d6c5bcf37.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.d6c5bcf37.0_1616116412800_0.7913072308944176","host":"s3://npm-registry-packages"}},"11.0.0-canary.fefc668d7.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.fefc668d7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.fefc668d7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"11cc6289a6bc17053f8ac7939fff87e6a40f5f8b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.fefc668d7.0.tgz","fileCount":45,"integrity":"sha512-Qey8fA/oeBVwLP9j1uMU9P33WKe9pNIO2Ktm2lyK2mG2QFKmAOQPZeEIfwH/KVJNgVVVwyW7Q7YmDyK9dHZ9PA==","signatures":[{"sig":"MEUCIQC0gZ65B5EJpqoCPs9e41feYdg9JbNol8IKDGq/7ql4AQIgeSCKEWf+ICuEeosM3KUyBT6KUjHTYh9TLeCI2ZcqlD0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107137,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgU//ACRA9TVsSAnZWagAA2EQP/2jy4NoY7/ADg4UWA8vI\nJGzfBZ49g9RRM1EjnszvDrShcJkI8kSPZShFPyagBTSsF/fq+QD/xwZPYsjp\nUhiT46cioH+cvzc62VP8GM9HV5GCq0gt+P0qFWhXOL+ZtxlrK1CLFH3tiPjj\nkkUfq+dwrKM4IMgEQ3iIUmGbW2GYOi34zVssqzdlH+Uaiw4ODqvFMqfM1MTR\navSBzPPWIhxPUzJbliI5WbYxIg0fWGdmpE7j4xEvaoBPRWdxaf75Mz39Eo+v\nockIoviH/QfPnARkQqw5UckHIOt1s2SDHWvPyh4wfnDl2Rt/IZgyrF1bz+N9\ntWMnVtkiTt6aIWRoAkWxS41uMn/aiaOTwY2eQ+GcA9pJOU9hs8ZqQPTvTpoT\nByqQd63s9eL/UZDbxfbht8qd46e9awXU/pccg1VWdhMg1Qvg5UOu0B1UhY3v\n4P+jRqLFvtKqX39NUbkRjbaqv961wDyEg7g0OADEGaJE05yO56X2NWmQFXPf\niq+EqivjSYcG4S+fFWOur7DG7D7Ql89t3MW0/c1BMF1B/CPB3yuF2zMEmneq\nYMPZhXOtWnPbJbMNrnBB6AQelWS7EY3v4efzg0rFKVyk3UDoYkA7gFcgl/Vc\nI5q4v3fuDhj+jY/YulFJ7y6N3ygtLhsc4Mjiib5HzLOxV8OATx6s1os5Y2xQ\nIEDJ\r\n=qTn5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7c976c590b16e8f3a000dcf5cf2b4daf6269aa21","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.fefc668d7.0","@material/base":"11.0.0-canary.fefc668d7.0","@material/shape":"11.0.0-canary.fefc668d7.0","@material/theme":"11.0.0-canary.fefc668d7.0","@material/ripple":"11.0.0-canary.fefc668d7.0","@material/animation":"11.0.0-canary.fefc668d7.0","@material/elevation":"11.0.0-canary.fefc668d7.0","@material/typography":"11.0.0-canary.fefc668d7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.fefc668d7.0_1616117695940_0.20312808962654794","host":"s3://npm-registry-packages"}},"11.0.0-canary.faa7d3226.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.faa7d3226.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.faa7d3226.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b8582e59a3fa36f216b3045aca985f80f07361fc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.faa7d3226.0.tgz","fileCount":45,"integrity":"sha512-31RhYOoM/DZ52AdK3DVk59vdHNTuvWjqd9cNdflLsLUu3j90vVPzmN/SK4Ndz7ickewuS15ahenm494JKkBCGg==","signatures":[{"sig":"MEYCIQDh0cYwJXopvB97ImH3Z35ImCARUfwvOc6CQWra2FdhgQIhAMbpcEKJ+gT9D+oaROIJVWyNBvRhISJa+f6n4EiJ4zKu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107105,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVOMqCRA9TVsSAnZWagAAdscP/1aTanz47Y5vCoWmGr77\nu5qPtUM6IjNxtEijFD0yJ54BDdeUPjbO7EP03BMRV7HSu5+wPYQkYZb5FUhu\n7Nd4od7mgG4LTQk4Abn/p4XU+x7gv9LrCOvYQcmMff7V91CBcZqaO0uQ4U5F\n48LvRod0+po5kopEcWETgOERYtgU0sxBw47nZC38vxyuldYQuoCxV1YPO3C6\nPgebQlf12hTnTnSIkO2F76oafLYCEYqCQ+tHENxkQ8cmDTA/40BIVeI9YIvb\njmrSKQoJLVRqoCPb/m93x3NDaHoXY485nvJfiw4nUm6BZkPuovNJBHLZLE38\n1ANw6yrJjhSoKbTv9tQXAhz+aQqqM8QQOamGoQBrHx1uFrrORuG6ea+1hghw\nr84kcfOkUWU2qmYGGRGtQF+/LgZVbaGGpaXy+pcyjq5skgQOGTAzgd8btmQR\nmQQoKi47nQfWQdlzzQpgH9cxpUKVjdCY8Dl8pNoQj5fhMVWWPXGXVPCc1egl\nkaabpyV3KURVK6Kk+y1LRyfNjw/cHXYHbaKl3cJ/pO4hGnswHcH9wuy07PA7\ncu2sSiuX1j0kUvcPxboY1nZly/IhmlvvTDBoUogcU9kFMFewnt3tgvQLNqiP\nPTG+Yqa1JIcDpHtS4ERr0imFXH/uh8p+BF7XlQcgIpre3eEZHQGcaAPnHl9g\nXqpt\r\n=gwC7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c6038c8b2af85b70f2434939a69416e1593d5a36","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.faa7d3226.0","@material/base":"11.0.0-canary.faa7d3226.0","@material/shape":"11.0.0-canary.faa7d3226.0","@material/theme":"11.0.0-canary.faa7d3226.0","@material/ripple":"11.0.0-canary.faa7d3226.0","@material/animation":"11.0.0-canary.faa7d3226.0","@material/elevation":"11.0.0-canary.faa7d3226.0","@material/typography":"11.0.0-canary.faa7d3226.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.faa7d3226.0_1616175914049_0.4861201784879754","host":"s3://npm-registry-packages"}},"11.0.0-canary.c60449bc8.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.c60449bc8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.c60449bc8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3b5bfac950d10a3d4557ab3018e0e9b63a6a10bb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.c60449bc8.0.tgz","fileCount":45,"integrity":"sha512-55Wg30SgStsAgnuVf/HV4egwzkMVY+jhuDktkAv9Ax0PWAidTLE8rnuAeLpeJsravngDHSCZzAIEHTjCLOuYOg==","signatures":[{"sig":"MEUCIQCgGiuQMNYXg5yeB/lUXyXVTRXGJb0STlcmvuK16JnBfQIgCgqSgFDYqCEwScg4Dok+A8lsH8GoB7R9L9b9ay6++Ss=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107105,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVOgRCRA9TVsSAnZWagAA46kP/3PKAy3BYftEeUvDd+bX\nkjYrk33Z02Uxt99/AJ4sJlvx+lWGMSiZRaG79sDda4QIU7uCiWTUPmq/iOBs\nTJfQP3VReyKTDXxO+7FA+UUdxDBTtyyIIxP3qL8R6V5O/jUyWNAouYshTrax\ne7rZ2j8zee5+UdDTIEWiKcRpdBN6zn8/tYRWrJaiPbiHqO2x1mXmF4H1i+TH\noVDMN4hhcvuJ40U6M7bw2STzMIGFHL/SU38xFsv/2ojBnh3vyIaYFdbCq6SD\nW82R6V+eEle6dPzGvvq77AKSpH+faBKABeAGnin2KbPcM8X+Cgfw1x21LBYg\nTfuukrcoTAR8cQq9G5wOQteCuQ/jZMSalaLUVxycW7zmiilKBFuqZ3mohKS+\nSan5kAhBlDhSGVl3mXNIEjz5L9/AyknbOcNBDrW/nmQG1OXQDwYWWi8RwJvE\noNcw20FYqfTmUAPAFz8r96SvrMBYHRODOL97qkJ1JAYoDigisdLRi2+Xz3Zd\nAILvmknC1/bkHVty7z/uI9wrePKdV5OR4NOf38Mu7d9oyDnLIEDsxh+eSyKG\njGDGBi/hcFcroS+lh76iIbkXUhdibhPS0Q5So6tsknLaguZy/jGKjlIFX2HC\nB+f5h5HLLihi4btZ5Kvscd3oRhpY93FpXEpF8ooh1hgNbA2tNQggl8sSEoue\nNWDc\r\n=43Zx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"874083f8b4dbf457158a7eaf9924ce1143ef6fa0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.c60449bc8.0","@material/base":"11.0.0-canary.c60449bc8.0","@material/shape":"11.0.0-canary.c60449bc8.0","@material/theme":"11.0.0-canary.c60449bc8.0","@material/ripple":"11.0.0-canary.c60449bc8.0","@material/animation":"11.0.0-canary.c60449bc8.0","@material/elevation":"11.0.0-canary.c60449bc8.0","@material/typography":"11.0.0-canary.c60449bc8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.c60449bc8.0_1616177168514_0.5691163849384553","host":"s3://npm-registry-packages"}},"11.0.0-canary.5f0fc444a.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.5f0fc444a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.5f0fc444a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"17dfce539ee30050a2a27469111111aa30d7327c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.5f0fc444a.0.tgz","fileCount":45,"integrity":"sha512-xd00dMRjnxQtxZjJqidiUc4+kMMok7TI0DL9H/GiUne+7mELFh2+z45UUo7IEMTsTYn5E9aCGGgI8HFq4QI3Qw==","signatures":[{"sig":"MEUCIQCqI7PWDAmgs+JqNfCIVJ2qCZG2AKPBh9FWtGBPl3DhFQIgCrSZyw5YJ7t5HdUaU1/jv/QXtPFHD/U6J55KYFLufEo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107105,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVO+yCRA9TVsSAnZWagAAqbEP/j4ZN4LvKwkwp4nmxABP\naZNK8dstwuWi+OSMuC7NzVHdWsPQZ5hmZcP3u/zDIyuzXKuovH9oB85Tm0GN\neo1MuYvZNs8KTXpwIXAG3ijcLtc2bbJvWlN+NZOBw5D61UhY0F57HMowvPe0\nr/4VFtXWUrClQmBP4nEeo9K+uI6ZeY+0ngxlUEc6/8HxcfEZVWp5GnJph2GO\n1vy6u+yJaTKElc+xdCfZp9U2zD+lijsUUtR/zTo+xMXe49xIdnGhXtw8bZCU\nT+LSwKAVJ4O7LgG1t69eLSrwTivAE107WDSXWtd/Etr5uS8BiA7G/rbQ/4Wf\nrRnrVrX7w0YSnRuErRWeQsLrBKtMgr2FFyM60YGNAuAtEmwd7ZGvYg1BXNmk\nuz8ELqEE+VazThCF3o1NqJaFYrNWSGsnRfoADn6dUE2KnyP3ajSjwDtM8Dkq\nkXn3ZlW/DNYBvhnodByXqn5AQ4gqLWNdJC8W1jYpGFUVG993kPu88BovhQw0\nvSu3wWH5FZstApAP5zmWWTH04kle/JIrYs3xr9jeLjarWb0QysOTV27xuPa4\nkRrFzQDiYQD76ktotGS+9K8OKW8yz6s/n4fZOeCruTH2ss3NLPkg3vD+Pj5h\nGa8uYazfduuFnYdnuk8h6gS/wuUvMxvAIQGYp05RrjF4WhuxdWg0uz2/oQUq\notcC\r\n=bACo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"122f31622300f5877c850a516d74f7c692d0718e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.5f0fc444a.0","@material/base":"11.0.0-canary.5f0fc444a.0","@material/shape":"11.0.0-canary.5f0fc444a.0","@material/theme":"11.0.0-canary.5f0fc444a.0","@material/ripple":"11.0.0-canary.5f0fc444a.0","@material/animation":"11.0.0-canary.5f0fc444a.0","@material/elevation":"11.0.0-canary.5f0fc444a.0","@material/typography":"11.0.0-canary.5f0fc444a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.5f0fc444a.0_1616179121675_0.9948239580486253","host":"s3://npm-registry-packages"}},"11.0.0-canary.4567a750d.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.4567a750d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.4567a750d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f447385dcf652509bbdad77868ddbe6fec1bcaaf","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.4567a750d.0.tgz","fileCount":45,"integrity":"sha512-GpeigpDJkb7FR08VLwIW39gksA/6a00gQO8DCtqzjKHOxisFIl1tmmHFT4yLkMTtN+pQmCzgsAFbTWy0KUgk5g==","signatures":[{"sig":"MEUCIHJrwbjAzk1LWkJeQ1aXqCVnxMcxNSBdYFlqIcvqrv2PAiEApbIRTyh+pAHEJPKrHf2Wq2e5pbU1rRNtQOAWRFaCUVo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107431,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVVk2CRA9TVsSAnZWagAAOwYQAIWKiH+CNDIdarDmcPkk\nI0nlUt1NNcTfRNGmQX4EXvRIpzLhXhEDyyC0CFvH0bpqTCOc0rvFb/S9AxhX\nM3PNR01BZ0ERP9O++I/9GF/CycYp3P7DnBrdSgvNfC8wmz8Axv8CjL+21A9X\nPnhhDySldlq9+kx0UIzZYpiSJczUVcZSNwy/dCPvBVhTzlv4cjgHXaB4l2Wx\ngMKKsskRL4jUQo5SNJL6kSKPfABO93lRq3lBPsvmAVzx87t4K0E1CfNifDgJ\nbQuOKwud5RrKuwZQ6nSfGuXopD68WN75gcqf5FX4c9a8lZXn5i5gzv38fFPs\nqrPpMSOP1FukLwkX5WjbluTIsnJJSg8lxvJWhSJMosfIy3RJZwHUYy5sQTaV\nBtxhH1zZiYVtTdfOTi5ay/lyBUDKfYM/dg6SsPvCWBzRNXm/Bc8Vp5sYr3KZ\nLXdpvG7V414YnPeGRO5gXln/FQnaALCSqJzb6Evhuc9mKfO44JJ97QWHCe38\nj6t/Bm+5F7F46kdvP9v7g0qVH7QO7OuJZRaDp8k6S8iGcyDmRmiI66i92MSm\nFPy/dC6REJn1Qgj2VoRceqf9S6xzW4d4AWGS0rlIZVY1yQPaJgsf91nsZLS1\nrJSOVNPfTdY75gklFrEKvmdyOojAYPWbWM/R5cnzm06WZsoIbnWK+hZ2oWR7\n5IY+\r\n=lo+1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e165b3e1af02e963deb71d6f39a7df6962710c30","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.4567a750d.0","@material/base":"11.0.0-canary.4567a750d.0","@material/shape":"11.0.0-canary.4567a750d.0","@material/theme":"11.0.0-canary.4567a750d.0","@material/ripple":"11.0.0-canary.4567a750d.0","@material/animation":"11.0.0-canary.4567a750d.0","@material/elevation":"11.0.0-canary.4567a750d.0","@material/typography":"11.0.0-canary.4567a750d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.4567a750d.0_1616206134177_0.7879358660404665","host":"s3://npm-registry-packages"}},"11.0.0-canary.0cde52f5a.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.0cde52f5a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.0cde52f5a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"77506183773f86c131c6c5b7e8080d4d07b73f2c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.0cde52f5a.0.tgz","fileCount":45,"integrity":"sha512-bfvjozJi4n+Os9Vqzf3IDvxcncBM9h+JI1LRJIOX2xLNnJRmw3hp5QjbbW/gNkbi9Rlsx/laA0X/DvoXqJ9OEA==","signatures":[{"sig":"MEUCIDOa8k4ISQhxcFNjjc5AHRLTNmiqGNdk9vZH3HEQSeXTAiEAyYRW/f34y9h4Il+0sDPD4y+DPhKQgAZGRdjWF83M2Ag=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107431,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWTBpCRA9TVsSAnZWagAAtKAP/ArBwAIv8VvHWW5N1YgG\nQ5yKnBaCayNjkUlc1iKiTpceJCzC6kQHLrKmdIDaLSDlNzfTFwQmY7/JBYW6\n3lrNvvRa8P1S+nl9avn4cKiECwPZHHgOWFJNg2Zh9BSJS8fYJb69ttD6YKPP\n/XizJSHEx5fDYmsJ2wWFLF/Aydf2OvMX6wMnfCBIgWY7QEU7Gk0YDL2vtMkB\nBvKWyf5QbgJBbmraY8qWQeB7McYcDV0J1neF8VNYr7j3rIde8jT91itgl4Ht\nhDEbG32NuMe2I3Mjv+JQotCK+s3iiyAwzvQsvlmJnd/Zp7S5NWzcvwGxZPOx\nXP4a4uE3MWf559IcYNg856jtQe5R+Nd3tZo5BwtMv3d5h2trAfU1Q2cYjgn6\nC/J4PCkz7LsQer9tKtLhoN/1lyCk1jZGZp852faZWCSi3AqOPCLlchRIp9zK\nucFgKl4M6xTjA50HPgLZiXR+hgugVyTP5aSipgtBejg3VUJZL0bKfzLWVaxn\nj8EYJ/Lb4IEjitIv7vA6+Antui4MjPHFj49Sx958LmrmwaHEFoGC7/YaK+fz\njjvX4Ewj8XuzgpNNDXRcErBdj8ftfx/vno2Ytd3csPYExVOYbBmjk6H/7e+/\nfBvWQLK9M20gKI9kcq1B4sY6mypmJYoovMx2MiewSBreFm+kC+PJu/fVa78K\ntiV+\r\n=uu00\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6f6719c5270f569fd2ab44620e89ccd53a31f98c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.0cde52f5a.0","@material/base":"11.0.0-canary.0cde52f5a.0","@material/shape":"11.0.0-canary.0cde52f5a.0","@material/theme":"11.0.0-canary.0cde52f5a.0","@material/ripple":"11.0.0-canary.0cde52f5a.0","@material/animation":"11.0.0-canary.0cde52f5a.0","@material/elevation":"11.0.0-canary.0cde52f5a.0","@material/typography":"11.0.0-canary.0cde52f5a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.0cde52f5a.0_1616457832698_0.05727944036151511","host":"s3://npm-registry-packages"}},"11.0.0-canary.48f4b67fb.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.48f4b67fb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.48f4b67fb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4a414d3be9b9bb40b687f141c01e14fc09acb60d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.48f4b67fb.0.tgz","fileCount":45,"integrity":"sha512-ZU1x0ieYC8+yps5kzyrHlhwJ2UtDTGrvMy8H4MaGj4d1bCquI1eEvQ30inYa/Aie9QQ32VQen8679oolW0C/ZQ==","signatures":[{"sig":"MEQCICdXZZQ1q1cKPc1biYkaSZPpTAAoNQGmiYfNXOqDekljAiBWYcwoC1E7P1BbJNcAV9r4LO8FEEHZnozady9jg74JhQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107431,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWkejCRA9TVsSAnZWagAAV2QP/js9wSJfC+Y4GG2a54x7\nLAPXDILhJaT7YgDl4neYYYLeRuXfNRI5gurxB7SnktIz3Q42Z32lN8N8R57Q\nxk5AfB7ykwqxGAOK/hRKN8O0XRlnowOmb+9DB0VUWsjZAq497EefA4Tnjll0\nOqpT6sR4RwraDGCilRadmm4e13LSyxPxfotdazdgIaQbWwgSv24AR3yWzRQh\nbCpnOyDSGKMi7pNScejbhX8PBbjGEGoyS/O4oKrRH+ptya8DO3j743RAD/le\nksYjs4PUbtBWW6yCPblu2M1GIiuFUYil0wQtm5ikzrflWHGIhvQOgpwi1us2\nLlGoyCvKFLVnHxOkbdT/4EOhT5xosQrrOmT3WmdYoDRmmQ+Qcr6pFvc2GoMa\nLRomLx2MVQqcbnPanaKZdgVRocwoTbGu1swRrrIGEb4fjdns5CE7AZOyiEWg\nzeXbL7WCmUR3z9Jik7gBJdKRXM5iZvw879fF0e5E0IW25HE9Evftl6YFh6cc\nBNH0Rd4VkuyuFvXxXkipNouzto5VIeGmVRJJUmb0Mi75NS61eYn8x5XGH2I7\nROqPX3BqOHQ4vKVjQyID2NPACLs5lwuegJUtE7VUjmmsiEPok1WDpB2yFzKi\nnRhW98B3oq9xWzGXBbNXVbM3FkyBAgRbgtFkJBaskL+YU649GCPlkVhIrNah\n74w7\r\n=3NGi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f83669b240feaba73206d330f10c80a9aa31c1f7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.48f4b67fb.0","@material/base":"11.0.0-canary.48f4b67fb.0","@material/shape":"11.0.0-canary.48f4b67fb.0","@material/theme":"11.0.0-canary.48f4b67fb.0","@material/ripple":"11.0.0-canary.48f4b67fb.0","@material/animation":"11.0.0-canary.48f4b67fb.0","@material/elevation":"11.0.0-canary.48f4b67fb.0","@material/typography":"11.0.0-canary.48f4b67fb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.48f4b67fb.0_1616529315402_0.4620815305981303","host":"s3://npm-registry-packages"}},"11.0.0-canary.0b8cff734.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.0b8cff734.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.0b8cff734.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8113ca3e71374f8f7e2e8538f506964b0d6008ea","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.0b8cff734.0.tgz","fileCount":45,"integrity":"sha512-1z5HsfCS5NltGQBrG3Tolc1PLlYz46PLOllm+lIM8QuGZ9eLPSurraxXoatxpU9+M1A2kdzHyWB6T48bzJlL0g==","signatures":[{"sig":"MEYCIQCDcL3A0m/xZWLuFfzN6ZIePtX2EQJ3aZGgCnBwhxw8LQIhAMBsKPAXUzWChKHuLinreqMsbwXk7bTPs7wD8WuQZpt0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107431,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWkoRCRA9TVsSAnZWagAAIAQP/0N1qO1iI9UwYE/BjcBZ\nnCKIZKwm9GTd9uxFS9xgMtjLl5otat1CoV0R6gDOxJXxtid+sMlKUTGYn6T8\nEruUXWc0+fN4z/wh/woZOyw3beVWBO9XUAmiomTvNWszcqpkKyKcE+VTlcxi\nOAb2ACAUdiSRvsgIiv60ogXxutFwpdkp1liB/6m0XhAWsO1AlfaB2ySbFk3/\n4n4iYweBQ1BrxC0Q7OUlzdubKxbivGEv3FQJzgUQOlM6aCW0FDxCqQ2vd4uy\nj8wkFpjJi+wzI/4ku3vmHVfJfiN8HJ06T1aPyulfFjF2mJ1lo8AlvCaDtND7\n+Jeu4Tstuq3/bYV3Se9M+x6Oz4gaGomfTz4LCiyaq7E9baNCu8tnJw72Rwcw\nr/bUq2rIcLZdfIpINEa92T8g37mhNOzu6HD85wVPpJ+ZXS0b4puIdXI08UCx\n2zabpFiL1G6yXmsraKYfVuF8H2EchHLsbts7UHfwxWfeC8vMOVuGqxmznvcv\neSp8caGoj2OFRrb/kYe16FDpw7e2Dug8fWCAJmJ1m3xofGo6DUpbkAExHoDE\nPOPFV4GG1kR5IwIYvBG8vmVznzBTFINw42YUtKc2JqBSnpoivuR827WoZ+aU\n5SC7mfLELXVkq5vqD+QM/LYpOc+ZNHoECCjmo50KDjCFXgtuogn3fO0y5S4a\nhj75\r\n=XUVL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0371cb1671557f9e1d8a3bee3ffce11bdea058d8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.0b8cff734.0","@material/base":"11.0.0-canary.0b8cff734.0","@material/shape":"11.0.0-canary.0b8cff734.0","@material/theme":"11.0.0-canary.0b8cff734.0","@material/ripple":"11.0.0-canary.0b8cff734.0","@material/animation":"11.0.0-canary.0b8cff734.0","@material/elevation":"11.0.0-canary.0b8cff734.0","@material/typography":"11.0.0-canary.0b8cff734.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.0b8cff734.0_1616529937285_0.3577826509574171","host":"s3://npm-registry-packages"}},"11.0.0-canary.8943b991f.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.8943b991f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.8943b991f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8be99c63e6d55e8f8d9c7aefab3171460122af37","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.8943b991f.0.tgz","fileCount":45,"integrity":"sha512-vY36tbRTAWuD+bEEuNp+5OZeyDDvxWH1O/VbTmGkiBu6WDONx6XIj1L/QPQM5atE53pxMXT2rZ0VGFu6i+B7og==","signatures":[{"sig":"MEYCIQDq48MeaIhqarPoRjX/1KVhnXxITLiylYDPpyengaT7gwIhANZSewxkPBC+HnKV5PjFac1470bJeaoO9RnuFvlN6d5Y","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107431,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWk/uCRA9TVsSAnZWagAAQQ8P/A4Cwz318NCFfuxHYy+M\nNaBYJgeEMj1Wy5lrzYQrq7+qa2UtOsaGsnB0C3Ojhg9donYaaxDdkDD2FvR+\nX5P19F1OZp1hcZUT44MxH3zsYyazTY/gIQjtnTzQHj/O6M2E3syu4rCa5Ee+\nnmMDYYLVAP9UoY7Gbd+27WGlOQRzIPOJKNWLZ7ruBNBa5nVR9f8CPxs9ptmh\nvbSIscOTGVLI5+rFFulT1cXdZV4OrN0Q8AnT1lkK/ZmbaVynkxfUPRW8Q6Y+\nKdn+TU83SCAl+SlFnxvRs7cA20hx+ChtJb7F4Zmd+tQI6v9sLTQj2CDHfTM5\nWJh/WBTmR3SgkPunXhWDiFp7i2Ulyzsj+1tts7x/JzWczeYgqip4uddlZgAH\nWXuWtXB0eLcDocLnXmIzYGJjGYxy6stf/LmlG6YHn4+beb9ImZImPMDgblkQ\nfyqVH3s7PH8xlJLlFc5hPx9IlasnaWlr5jwDPeTW3uPgCAt9/MIgMIDb4X9s\nMz1/DK744xn50q5P+EfnhzUbxaZjsOqE/yzSawlE7FrEHNo8uVX+fZaeiBty\nnQL3eRC5JF4IzG2usV2XlIbBrPfLAJCORlStA67gL1CLDI12jAJQxk7n2Uf1\nplgDq72hqHMA1tJe4o18OftrPzeX0Pf2vIgbFfC6LyCWgAktF+LH0uL9Jw/t\nUllU\r\n=V9Fb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"85cb2528143c5117974441e499367a5fc252b745","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.8943b991f.0","@material/base":"11.0.0-canary.8943b991f.0","@material/shape":"11.0.0-canary.8943b991f.0","@material/theme":"11.0.0-canary.8943b991f.0","@material/ripple":"11.0.0-canary.8943b991f.0","@material/animation":"11.0.0-canary.8943b991f.0","@material/elevation":"11.0.0-canary.8943b991f.0","@material/typography":"11.0.0-canary.8943b991f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.8943b991f.0_1616531437854_0.4115202943031817","host":"s3://npm-registry-packages"}},"11.0.0-canary.3955d8d3d.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.3955d8d3d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.3955d8d3d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b1988127489d8e2bf78091cde2af0b5172ac1e11","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.3955d8d3d.0.tgz","fileCount":45,"integrity":"sha512-3F0ubY7CjVouFQse7/52LcJ7B0NXLPKu6orZ+6Wd5p8zXckcs1coUGWTuyudYjVRNL74OCrGSPgkAgGDLikMVA==","signatures":[{"sig":"MEYCIQD2GOCRgMSWnI4QdLc6mRHF/K9g+3Z41xYtMUTeCT+pCAIhAO04OSjoZYyP9e1BK761NPy2pc050eNTVgB0gzv8p/YW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107431,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgW5BRCRA9TVsSAnZWagAAxE8P/jIRfFeBGhufkhqPsBNB\nc0IfLRieU14qzEKaxEmzD86u7UkKpsbmXfjv5oyppuW86pu+SUog1p17jxgP\nV4IJ18I49J6CBfrR6zGNcZqXHk/Xw9KghhlwTFe+mBTmsCJrBa86IpFtdeYI\nTi1QWY8VA200vdymr7CK0wVH+wmu8EeTc+LmCTUhzhIFWSMLawPpradwitVo\nhsHvpWPsJg+PVrFIm1OAGFi016TlDgG6eTyJeesmfJHpZyoToFCF15GR1HiT\na7GCfPNVFHmoGKbHZ/UrAVjoQzElshFHW1p0LogTqpRbCdlnbGTPjAwGv+wf\nyLZhXAe5QgGtnC8MAAM9hFk6UiQpWLwB2tPcvS5gYHTRlOV2QE27bWjLMFVG\nJ9J/tkovEXfWvtRcOHn9iDfLjktkVsXZnecMItOjAMQo+RkavToV4tUZnVG0\nGySucxaHdFZE/AE4UIh/rA7Hkm374u6DOCR6C0gK3ZpGUr9QXzns2O69lvOh\nBRblzBr2iacziwJgfdkoJ1al6vwGtOjEo26nQEE869WHcoAPQBL4cM4ydEGH\nHaP2J0Wo4l9c4kPGfgVKFYCY7VWHI1Bu/9kdGpurcFWldPqkcW1FjPoW7Spm\ncLlwMbh7dhx0g6dVPTYCLxAKv2dqZRa71fFVMulmW0P9wEH5aph8YxfcDdsw\nyf1n\r\n=8x3h\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2679d736975b17823079a52aad1e329d8c2a3b71","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.3955d8d3d.0","@material/base":"11.0.0-canary.3955d8d3d.0","@material/shape":"11.0.0-canary.3955d8d3d.0","@material/theme":"11.0.0-canary.3955d8d3d.0","@material/ripple":"11.0.0-canary.3955d8d3d.0","@material/animation":"11.0.0-canary.3955d8d3d.0","@material/elevation":"11.0.0-canary.3955d8d3d.0","@material/typography":"11.0.0-canary.3955d8d3d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.3955d8d3d.0_1616613456918_0.5048391262371152","host":"s3://npm-registry-packages"}},"11.0.0-canary.23ea2d85e.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.23ea2d85e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.23ea2d85e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c7ccbfbdb987e1fcb29696e710d5cc72add3ec27","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.23ea2d85e.0.tgz","fileCount":45,"integrity":"sha512-ezKlOGCDZo5XvhA2qYoNapojUOq76vvAIVmqTny8w/aglMPvU119pGZdDnmO7eCJeC/FzvK3/6/88yK2828Ygg==","signatures":[{"sig":"MEYCIQCKU/3GNC2Aa7xHKshFHsL6DybmiHQG8hmb2Be77U5UKwIhAJ/1DJyVEdT5xeLhiFzEbZ/MJ8IoyD+iabCM1rAz/OKO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107431,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgXMl7CRA9TVsSAnZWagAAwLIQAJZPcBEVrqDO10L5bqOc\nrjKZQjFVLEqy4BvdkRMNB5qXFp3/BlAIK2O7HOuuf3IRcDCN6AcERdIUBRe6\nv5zAGn3uIo+slzZSN6owWAF3rxwFUjyBv/43tyQ/FZypuoir/CGYdZcaGhKu\nnE20NAWgXG71WK6epbZecbwX/f00BIcKk72/QadY1eRqjklk0FqEHIXxK8F0\nC1ByR+vyZCpCSbQ0uUE1W3nuYqq5AtvLxCtk/k/y3/7eysxvsjELausJS0OA\nNi6qzYzEXrhDbmaeHK9JuP/cFdthglFDbCnlcLNNY1tZa+SvZM6rIGQyjwj1\n0bCtzTYYL/h0g8nNL9RkvS3vmFzTPqLWsBYY9HIYNfb1E9VTKLn1kDce4Q/+\nAGnPBGdTX650C89z4jTK8LHMhS3gpV9dHqB1ehumDUdtpRI+3mxr/rNp20lo\nWBnfFOckL8+/4CydzlfzHAbQF/ZDF2g5j85A7mgIlI04crfLfvVro70uXSI4\n3TmO2bB7Xvlr4EkQuC55yGire8PbgVfqdr+yZvcQ0GaYaylp8/j4pX3rrRwH\nQemmtaM5AxD6lHXCLY4GFsP2Up/KcLRuAB+onpN+Zi3K8/IhDXFpPIY37wpX\nzRO8Ko37wK3HJbUNr9+OOJV+SW7RhkMyUdEiNbWCmLaMhVDDQucfj+6NE0BX\nL3T4\r\n=GSWo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"705a9cbab9462d9e300da18c26d7992aec452ff4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.23ea2d85e.0","@material/base":"11.0.0-canary.23ea2d85e.0","@material/shape":"11.0.0-canary.23ea2d85e.0","@material/theme":"11.0.0-canary.23ea2d85e.0","@material/ripple":"11.0.0-canary.23ea2d85e.0","@material/animation":"11.0.0-canary.23ea2d85e.0","@material/elevation":"11.0.0-canary.23ea2d85e.0","@material/typography":"11.0.0-canary.23ea2d85e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.23ea2d85e.0_1616693626527_0.930844281425083","host":"s3://npm-registry-packages"}},"11.0.0-canary.e3ec22f45.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.e3ec22f45.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.e3ec22f45.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b6dd89c9b75218f70a39dcad6b28e8d9e3ac2778","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.e3ec22f45.0.tgz","fileCount":45,"integrity":"sha512-f0H5D4X2iiWV6AdHBlCF+2L4L5/OdajqxPp/4770qY8ZvQzkMIpLMMWFIhqnxzHVsmBybosx7agRtPefZWu4jw==","signatures":[{"sig":"MEUCIQChn0L0KDUp02Fitr0ffVUYHfER4bGT1aX0VK0OM6ykVQIgAhbCFV3Uiy7iHyplqwvHHPPBGqhU7t/6yoIEgEuyU84=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgXM9kCRA9TVsSAnZWagAAH+EP/0MleDw1R6OlerrYgiX6\nQXpTcFhD7j8aUz7gBldYw4DrL5AdI0Ms8U1zSWUgC5bEF7XTi93elTkbzo3a\nr/Kw1oI7k2hlpH8++UorPiCvUVrHLWVvbsXGeZPX/QLJDECQrBaK06K4ju74\nz7wQRmU2N/so0nLeIZKVuE67VN76jANgAuF0Nc7PkfWzucf71usiGsVwCX14\n34IkJSTbVAkXGyq60LYdPTdmh2znVWWWDBlgOUSUVy/hJfPAKC9bR2ILfVtB\nhtSuk8oriSPNgxeWCkwaepPiJmR9/RRO2DQdJHpW1oo1WkhF6fzzWLsf+hOc\nhbCvz98no+Ja3jMm4fAnWNg+HpKY2bJ3NkyT0n6eGsNK0SQik8jcug3TvDhW\nz340O5I9UwN9kRXlZlnhgBDHUinylenDVEwLT8e+dlduw7vRNCw8Qgy/hjMc\nDdtNxnd+uIr70T5VHw7M8+UriZ0ZJaP7rALjX8xDeOnSPyklDrxagGa7gb1g\nZUV/FFFUzwjg/xc3+MxIFIjkuh+3jPaZLSL+mbbBC/yH7HAceaLpy+Tb/Lg5\nCyUoNzuU4OOXKnlnoUKGXEph+nIVlg7OdOBl26rOm4FjLiqZDsIxY/SOnHSN\nhBquxWv0VhwJToy+8ElZVGsfCF1VWQdfJ2PURBqWqqrVzbNsX2281LA0PNZg\n5mzc\r\n=PVEy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2827fdf50a2ab264554f8f307d61fddbab82c5cc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.e3ec22f45.0","@material/base":"11.0.0-canary.e3ec22f45.0","@material/shape":"11.0.0-canary.e3ec22f45.0","@material/theme":"11.0.0-canary.e3ec22f45.0","@material/ripple":"11.0.0-canary.e3ec22f45.0","@material/animation":"11.0.0-canary.e3ec22f45.0","@material/elevation":"11.0.0-canary.e3ec22f45.0","@material/typography":"11.0.0-canary.e3ec22f45.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.e3ec22f45.0_1616695139647_0.27836633918264053","host":"s3://npm-registry-packages"}},"11.0.0-canary.4ceb42220.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.4ceb42220.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.4ceb42220.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"05528ee89d654e314baea8e1906a3718bfe0656d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.4ceb42220.0.tgz","fileCount":45,"integrity":"sha512-Ygd6UTz3JyMoRH7ck1cqtXHPncbo7uqaobFfldccxLH77+5R22OHkAVI1gSL6dozTR2CO7QSDOIi60LtmWWZVQ==","signatures":[{"sig":"MEUCIQCHHA04FNDIO7YYfw5ba0xvg45wLxY4xU+CCLbKwwaTzwIgPRVwsb8cVH2JGMIUzNGyc20j/rwiQAsKSfpPVr+03Nw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgXZQlCRA9TVsSAnZWagAA49IP/0EWSfBu2exyiHe4tyjO\nMO7V6B23ySzWmbv3SxQ7cMcmM1d6qDV06EX5y/QdJ0Rgkuc/ScG+xtCtDGmu\nbGjpfZpqbuEvhXG9gcokCYBWXAX0dCCxge3/jN4SVvJPD4GeXHXl6oGDk+9n\nXxfk9tERps2LDv4GkZnGQLn/LFkUfvGjpZb9tj6eh4tSJXHGdVd8uLAnT8Yk\n9oMEWGfXYznGklUP6AnY/x3zR45mX7l1HX9uueKHvAkX20O5vJOoFzXSijhX\nO/vN91RLxoR1JkHKI1h2mAgiM47+uOEyuYE4E4kUf9C9hyyLF81NvxnkrGe4\nLVACEHD7FyT6aWkHsyemxj4zpO3GZrpu6azCYxqlhKHgIlPzBLZ8a8R2hycG\nXeSi1QyZorG0U69qQLu4+lsckTmssFLDzOnSMrYjgktmBCdqAbU5gsC3Q9qu\nJlXhKRGUVHlDMG8tYMbbShbAUOm4kvJ0uH7A/uLLhUY4T5GdfmyVPpng7OTS\n5hwnPt0ruo8Fh1KQlZxWT2NB1smQd77KInCMmd4u17QSTxu2jf2Lku7GLOZF\nf+RPV10gBio3O4dK1aJDCNlsAD3eoIHrdp/Wj/+k2L+kpiuFLTsY3Vc9jolG\nreoeSrUQoVzMMApvreU3LoDPCD2moZzB35ewBC+MvrHH8IBD6wgOFuHhVE7v\nEBIr\r\n=gR7B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"75fb611f33737c857d1b59245ff5a31676d7f3ee","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.4ceb42220.0","@material/base":"11.0.0-canary.4ceb42220.0","@material/shape":"11.0.0-canary.4ceb42220.0","@material/theme":"11.0.0-canary.4ceb42220.0","@material/ripple":"11.0.0-canary.4ceb42220.0","@material/animation":"11.0.0-canary.4ceb42220.0","@material/elevation":"11.0.0-canary.4ceb42220.0","@material/typography":"11.0.0-canary.4ceb42220.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.4ceb42220.0_1616745508916_0.09884241011347017","host":"s3://npm-registry-packages"}},"11.0.0-canary.dc9c84023.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.dc9c84023.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.dc9c84023.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8bd597badd3ca39fae4fdad9c489b4351d27e69f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.dc9c84023.0.tgz","fileCount":45,"integrity":"sha512-x8FE/6vSGc4TUCi/GHUFGASobfnh6VNqXVH4uoN0dMS9SreJFA1X6tZjOvXQVOw0SrSILv5Na9crmQ8ZAsP9/w==","signatures":[{"sig":"MEYCIQDKHjY6LgcAe2BCx/k/I9l3hMl4z4kxpW9BGQJdCJPAfwIhAJO/0M1Jn5R/13nju3FNpdW6BMuGy7sTceKReEPhlsrE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgY2SkCRA9TVsSAnZWagAAgecP/0KCbEUnHAczkf0WWBN/\nw9PWv/t/VSNX1F+nD6HgJhVCl65nJihlUl5vbS9SSc/g+5WKra9zA+LYQt0J\nSjd/QCijRP+/bz7ER1yJNpO84m0Lza8PW7XFpWoAP9Gg3yJ2r7kfOPVrA+g6\nzlICcf+a/Y0FjmfQw8fVttnjFhIBJeq2EP70Ts3MvbRDvVADd/WhWy/mmsRO\n34chY+KzuLeZmipwctEq2eEggg1xBT+GvAaGadBAMNf1zaDabsLxap8t6ms/\nZ5Xqf6FbeaugD3GRbZvTriBUE0OchCf4fRfbVOc3A9eRUPyw35Cd40Rys5O9\np2v0r5BsHOmWpZeCsfkMTNOA2cOXW+NeZP/4TPBOeNcjkSJcc18bPsVABWpj\nBtxvK3Oi6kIAX/FQl6Sw/ZvQVG6+x+qm65fN3nNJXoEWwDXIOWl9t9aNWbb3\nR2VMC9D/neS9yLzz5XtTAhr4vDcURDrPyprNt8zliFzen7mhmqq4M9uzzayF\naVpcFYl7PJc96kQ0vUZ3pv8Egdm/VUBDo14fm0FN/Rw3k4F8tiaH/MTvqmPP\n/tJiYU2t8RDwatnkJKQREIp8djXvQdTD0SLlSpEayrqKoCu7/1PlHS0fUTSx\n9iNhXRe8R2sAuK8NguDIXLvsvfVli0TTQE72VuH7xNsDngQ8hkTWFrPU0VN+\neOoY\r\n=1waQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d7f7ddbc4309b6a8ce5cca3772255dcc6acdc701","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.dc9c84023.0","@material/base":"11.0.0-canary.dc9c84023.0","@material/shape":"11.0.0-canary.dc9c84023.0","@material/theme":"11.0.0-canary.dc9c84023.0","@material/ripple":"11.0.0-canary.dc9c84023.0","@material/animation":"11.0.0-canary.dc9c84023.0","@material/elevation":"11.0.0-canary.dc9c84023.0","@material/typography":"11.0.0-canary.dc9c84023.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.dc9c84023.0_1617126564068_0.29730739178401233","host":"s3://npm-registry-packages"}},"11.0.0-canary.56fc26962.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.56fc26962.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.56fc26962.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9729a6e1d0bc5867b55ac5eab93bbb809a41e028","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.56fc26962.0.tgz","fileCount":45,"integrity":"sha512-pOx85tqdeBb5WA60v+gX70uiYTd1gBkWhBYEA4NsmSWilzXbom+HimrUSod6arWw583saVg88oEkpjHl2ALCjg==","signatures":[{"sig":"MEQCIFd8ZO3Um42kBDarQHHXmOoBGFFijwyKgwKf9jnWm3s8AiAapOZh1Qm0/z0feVStYHtx98RPciZNvxjCP6slTAQLAw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgY8CVCRA9TVsSAnZWagAA1NwQAJ2GfNl2KnScq903woZf\npdjBOmHl7Jh8QKw79JQ9Eu7WIxzkMvze3qIZ11WV6U1ZAG0303Q4ddjY6jDk\nMNgjq69DCiUpWShnTlVSMSDqmL1UkSzXHYtzeBdobsBCZsPdvS/cw6/QVth9\n7W+GuXE9AOi1F+143W9rkHMweGUYo/zpO+4N3c8LkhDPS/37WDRgKcDqtzCq\nBqqA2zlD/VpNoajq7MZQIBlSqzLJiK6KHUiMifO0sHHJAjlTDc+T2lpBnNu4\nAc772y97vF5hD0fB7pw2l9tQhyHuoEEC8Emc0UL6zfy4z1RYJyfZfiyNOBnZ\ncTkTQzCKleMwCAdNkZ27WGvPutVVGC5vot1GfmAwUKL/ulHXHfpARoKGnPgA\nOXXsp57Q9FlGu18lECJt2tc4G3rltx+k5waJHbOnwatg1lo+8ODr+B9hGGVM\njOkjJrvz2+FoM4gh10srjq3aGaV5lqv7q+gfgzuHHylCWN+gLdTP7B8dwLom\nwzRt97poibpnbldEut0zujkrJuwoddw9JeRAH0fNCTkqJD0w0SYHjx3WTTXw\nLOstH248KhWNFRaZReFJcA9VJZ7PJgYgEyufkim+7tMkjq0qLCXx+awrEVIj\nUG+fytq9Dwb3E+81Fnu4GPOiY8fzuM7QvLH4kUnFLHK7gP567otYdjyOtxK/\n25Cj\r\n=LGUv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dfdb8792d4ee8bddc61386ac6a8e7e216c1681a3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.56fc26962.0","@material/base":"11.0.0-canary.56fc26962.0","@material/shape":"11.0.0-canary.56fc26962.0","@material/theme":"11.0.0-canary.56fc26962.0","@material/ripple":"11.0.0-canary.56fc26962.0","@material/animation":"11.0.0-canary.56fc26962.0","@material/elevation":"11.0.0-canary.56fc26962.0","@material/typography":"11.0.0-canary.56fc26962.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.56fc26962.0_1617150101313_0.3489624324175591","host":"s3://npm-registry-packages"}},"11.0.0-canary.bc318250e.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.bc318250e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.bc318250e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d2d35037221efe14a35d3b2c93463bf390eec4c3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.bc318250e.0.tgz","fileCount":45,"integrity":"sha512-WZNWQItaSqJ8XXbkJn32GwBEu+Dc1dsj5we4zgRMnXKisnGM8ITVrRPczKC6HSMZYu/wMYIcFXeuk2I73NXlNw==","signatures":[{"sig":"MEYCIQC+nwe2T/bKFoV0WCRMcpUKMme4105K7J0/MBABDjUHiwIhAKx6OhnLY+ReYp0+4DPcmGzsdhfwuLdh990KTPHbEaOI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgY9GvCRA9TVsSAnZWagAAaVIP/1hSfvYhm5XAziwATy/q\nfJ2ntXLbI2rw5QS0X2956vfzzp2CDPtX3cJ+rmfn8fkwvR8pvK1CqKdgcc6Y\nDanxohdSJRTVL6M3TPvaVy1fekvjnDgWXxMMPzvY1OPLKfziaEvWtcPSNt5e\nvPMERVt/Dpi1oXeEWbGjka7fA2gQ+K62rkKg5yjRctzSUBaR8VfmfDdjFE+j\nX72wCytRMSRCTnhZl3R8qBN9ZchgFOIhqTl7C8hMe9bnXSKsapu6Ekp+Rkfv\nlJCz4Jp4O8GD+RWCxLMg44t6eG4Cc2eTYU8vun9QrbN8weRnzs1fvZTVtZJD\naft/DwYHn50Z4K0DnnYddbyjhEEt+5MKGZ190h96tP4f0R+Te8nzPRE+ckXH\nOJKC/3nGDPCIsyM+niW8r66gV8QP3SEReJm5X9zqhfqlv7CDv2Jkro2vlPXq\nwfAuFQYNfjoDMlQ8SkWTja89GN3jqOYprHHynR6DCXIy/3gUtrEWxKa8ibWj\nPJWaEL9MQDYsswdYFrH0rvTNfQhNFy1hoAPitDPClRWAUhEOW5I0LLbPC7Ls\n1pdJHPrC8LVjts/TD1vX82NmxvuAeS5CQgEUj3rPqDOrRDTIFdB/rQqK8G/5\nmfz4WMPP9AG3bv5T+ahmYgMm2aoqYj5o38MknoC4Wb7ZTiNp7dZxORJl15SV\nwK0O\r\n=aiEM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1de1daa9e4e0ee7a779d524a027b9e7566841b56","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.bc318250e.0","@material/base":"11.0.0-canary.bc318250e.0","@material/shape":"11.0.0-canary.bc318250e.0","@material/theme":"11.0.0-canary.bc318250e.0","@material/ripple":"11.0.0-canary.bc318250e.0","@material/animation":"11.0.0-canary.bc318250e.0","@material/elevation":"11.0.0-canary.bc318250e.0","@material/typography":"11.0.0-canary.bc318250e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.bc318250e.0_1617154478858_0.22163205828291765","host":"s3://npm-registry-packages"}},"11.0.0-canary.edaee19aa.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.edaee19aa.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.edaee19aa.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4851e8aac80abd07537ba931ea9d95aa5c9cd18a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.edaee19aa.0.tgz","fileCount":45,"integrity":"sha512-MUOEXROcbWbs9MQCJ8DWiz9zEQvxd+BK7H2fVSPBqsevnaY3uR2x4RIpBNP0eNv1hhQ13yNgQQToCsFW+ZHfMA==","signatures":[{"sig":"MEUCIDXm1NlF8oNvSLiJlm7dNdhBMSZMgQONfUVVOJZ1husDAiEA0eNwZ4HOX+no6Zp4dyIOTYGfm8AxGgzLYhIR9m5y87s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgY9qQCRA9TVsSAnZWagAAqaYP/2cD1Q9D0jRl7nynyyl4\ni3sz8zztSgTT/kf8u+ne4fdumKhlKpF4zVIkM5YhDFQsSEbQir55ozdgBjyg\nxygZd8VqAAy8yVS3HBXphS3ueF77bcRYf+u/f7gwem/4Mhd8yLcPQrmJdQce\nXrkxWxCbEIvYJMfO7d+RE26BxmLomL6QhAzxJhitrZWyGS/aehH1Jf/1JztT\n+U9WTiDxrOhRDgK3mQGFyqmCfDJJ+1cMyPnNDV7rRr8hoZs2SN07PLxtF3z5\nnb3KZtUjiuIiRBVh8Sz/8XpX+NMj7jS0GNaCIPWCVP1N1dY0PdsIEGKHz9ju\nBlk3qhGxI7Is/dIiOAKlmx18Qk3LEfuESIYQ29kmAWE+OaGhe+D+PRPexua2\n0MwNO50HyMeMIW6adw6Qww/No6JdUrcsDtJatQJxt6u5p1IMq8QZdNk4JXnI\nr+qVz5/pzEe9B4spKJf7YlGz94/cA/DWcjZx241VcoGVHpu0wUhxl2TNr+NP\nKj93uGUBlVIhBJmfVGXAujSTVptzIZ7J0OwKM3NJCBSUvaNljibzEf/BrMs1\n1VE65mPFfvvtOMWD5fxYmRFNLNTCuy921PZutFo8zEzEvBeVK+6zfn5xD/Qk\nXkBOyLnbJaNKyKhE/fw+GajNSZ0Sk3S4fLP33+QdX98+cE4Vqas2cS22iVKg\nh2mT\r\n=xSar\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e2249b4be4cc5bba6887f28ddb9a3b9cc8ee09de","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.edaee19aa.0","@material/base":"11.0.0-canary.edaee19aa.0","@material/shape":"11.0.0-canary.edaee19aa.0","@material/theme":"11.0.0-canary.edaee19aa.0","@material/ripple":"11.0.0-canary.edaee19aa.0","@material/animation":"11.0.0-canary.edaee19aa.0","@material/elevation":"11.0.0-canary.edaee19aa.0","@material/typography":"11.0.0-canary.edaee19aa.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.edaee19aa.0_1617156751989_0.45771115879792634","host":"s3://npm-registry-packages"}},"11.0.0-canary.24609b822.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.24609b822.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.24609b822.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"65c414cf1faa64f813b884b4f782ad9ae139c318","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.24609b822.0.tgz","fileCount":45,"integrity":"sha512-soirkXb6D5CJ6c7QpmeAHqr524Mavw/YFpxw87LRcEbKdjVX30QkAEpNrEB7lq2l3lhhkRYpvAM9wkmRpPnM2g==","signatures":[{"sig":"MEUCIQDVNUmDnBdMszSeux70JybS3+1xTn7QYLA4GqzQGWt9+QIgH/OqGgUGGifmauehAUg96tw37lY/MrGogrF2ZfI8sBE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZOJQCRA9TVsSAnZWagAArQUP/RKLmf6SjqBqwfgOe9QZ\nCWzUgtsQqFVk6N+lR0l+NlhHrwtNKTa7s7akxS6sj3ePisVCNNp6pXvjXVvr\nPbEY++H+hV5kOkae1BeZRa1b74913pkPxO8owYTdI0jKhUxWjklglqEK/0pA\nqMDRQd4bY5cRGXZh2hYmEPyxcViGBoLqnhfHjH8tvq49U5H3sbsQPiSkRMuR\n47ENQOA94HqfDdNeZv2Ct4crQ9nc6QBg/3KEw9dh/igFeuYxYFfSN6+c/kqK\nInnpalbNusYlpbSvJrrHXjg/H0XyiBymvZGzWOje97Rp3ajsRXQV5iyB4w0u\n8Idpd1ADtPDQVAtlrCFSybDYhvsLqqMbXGHKs6vcezvK0dcT9314tOyiSZP6\nA56Fvs3Xx6SNQ4GWQnquvw1U1t09ESeZCxiqPWL9Tn6M6jiXWMFo52YP+TW8\nFWz8QW1ZqCqlPQbNFURoobN2uJ0xk9opx8UqarBUvmKNkfr49I1uhwvllNyi\nBLNpxvMG2cz918Sy1BVp6pfFuDlG77srBKYtNoiOHm9CsUZQtVKp3tlmoxqc\nUs/wjYuv8mFgnzSIk5l2LQVYx76DqhWUdvL7ZytoAuuCeO9QjdX8CfUO08qY\nhlaWcZs3aPwmyWQNkDhzAUsVkJ1sR8s4aWxkCS8Mpe0OZuJH5xqrR/t5nczG\nKmHE\r\n=+e3z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"50b495134dae6937c2262389aba694d7664f78c9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.24609b822.0","@material/base":"11.0.0-canary.24609b822.0","@material/shape":"11.0.0-canary.24609b822.0","@material/theme":"11.0.0-canary.24609b822.0","@material/ripple":"11.0.0-canary.24609b822.0","@material/animation":"11.0.0-canary.24609b822.0","@material/elevation":"11.0.0-canary.24609b822.0","@material/typography":"11.0.0-canary.24609b822.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.24609b822.0_1617224271332_0.8560581971318477","host":"s3://npm-registry-packages"}},"11.0.0-canary.b6cddc2b7.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.b6cddc2b7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.b6cddc2b7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c9ca38f75d695736f6e6012de045a08ea8f93be6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.b6cddc2b7.0.tgz","fileCount":45,"integrity":"sha512-5d9jbVB4mMR8szLqhqGNFNKKwVlcnO6n7WPzcYTym1RNWPPezHEG/E//XMF9dJbpCsUK4kMM1gVDzo0EPsy+xQ==","signatures":[{"sig":"MEYCIQCintfBA/J0NTpD9U6XnLeMEQdES3J9B0TaaonGHOT62wIhAJK6L5OV4WGV2lhvQvAYfKEtJAJXlzuaPHbWNMpox7ne","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZeFlCRA9TVsSAnZWagAAq8EQAKIr9JiazyxzOAxNYeiT\n4shZsfeSDr9Hdt+xbjonVFs/AwDXxMH4kSN/W1rCIcRoiyjE1hePTuUXl8VM\nGNG18j03dy/qwVnfyMUG/wdrwaESMzg5N3U/y+yEEQfICXSvPvLlwjQ6IhlB\niiYXwBQSXqM7gN+YWdmGAgNMeFGQaglhkg64D7bVsF4q9tspaIZGulKgYQQr\nGUyKMPwDBAkf8JjR//qxkPXQ9fu2CyBhRynaWHVZ6bFnAeJbCRqmnc4vkCz+\nxgKsSA5y05QEqRFXKNYXKxkVAwAj8zZja88CBnITfUWkc8oaM6Z5NBi+cbDA\nwqiedgW+ZhTVhrnGNJvCp2v9u/2D6XPpnfdVF3EMJVSbKngOTQ17NAKFp7qQ\nd+8jquN8gRb4XpYGRhfX+XoEMXenlyiDbA6VhQqFf9yELyHtW02MT/U5MGfo\n8kErSsY3zVZuWpMEkPe5NKg2hxo1V4JGYygFl0hJITiS6IhGfSdQs5RlpbK1\ntSZcPIgWfRSrM3JwA3tebKy1TkcHNK/75hDrGmWGnbIB5qjE1Pm9dtmm1shr\nTYVN5yKacV8088poEdbX5jRxQifwduKmN09N1TvKzBJwO/TEybg/mgsqf66z\nLkpVqH0YJJSNBdSKVkWyrxlULDO5jpfcdKChk4YwgWrWUZAN2kfYzJXI7DN/\nLnBT\r\n=OE7c\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dbd92fa1a28a9b31a1e4eb476b15f4cff38986b8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.b6cddc2b7.0","@material/base":"11.0.0-canary.b6cddc2b7.0","@material/shape":"11.0.0-canary.b6cddc2b7.0","@material/theme":"11.0.0-canary.b6cddc2b7.0","@material/ripple":"11.0.0-canary.b6cddc2b7.0","@material/animation":"11.0.0-canary.b6cddc2b7.0","@material/elevation":"11.0.0-canary.b6cddc2b7.0","@material/typography":"11.0.0-canary.b6cddc2b7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.b6cddc2b7.0_1617289572663_0.18060097063074654","host":"s3://npm-registry-packages"}},"11.0.0-canary.94937c78c.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.94937c78c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.94937c78c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"97a1283e0885a5685b3e8b2dc5e68ca12635758c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.94937c78c.0.tgz","fileCount":45,"integrity":"sha512-tSKqSpJkqCfv9i4gG+3KOf68GNObY8FETAI3kHIu1gv28IfhFt6jmsdJsRblnBg8VPzZufBCJ6fcBfF589BthA==","signatures":[{"sig":"MEUCIQCF7n/7nVzRr1l/uxNzU1YEP5rzPzgFIscUXJGX18rmyAIgIgJVTOseSNec8hNNV5l6A4kYvN54XezWALyCCuELBC4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZjS9CRA9TVsSAnZWagAAse4QAJmyIGvjA8FrnY1ulsdI\nicY5py1s1ZLf+Vr9wEQxHamyKlwMT8BAyAtmwILiT1kbTjmR8siqNcnPQqw0\n7scnFc/UlcpkCRfcQtyQrf5mu+9fGNIbxGal3Xc1CoJuDCarLWC6NMnBC2R7\nUWNoUDkT23bRUMk5tPZFLiRnjwR+SBZerRWnHrFDqNMvfTehpjJ8DBIblA/A\nZp62JTEv1scoiEWT0E0WWTZrK5zffLpnC8ojM94k3T17wTgC2UNortk+5vWh\n6RnhStDQOHj+w+u147PUIt9VJOcguOY30U6qr+pdDPUSlamzxrtB8aexKBup\ng+AaJBkyWqphRNybMWEwG5D1EMsT3p2eeSWWrUaehI9fzJAT6AYm8r8Zxcc7\n9+Y6VtUbU4fkoFnn/jOZ8SaHbTKtr606pQyGbLUgIfNPN0H3yzcp4hO8+x87\nZBBCzBdO52WHtIvS54iT61ohRTfww3mQstKzT0tFtf7no/Xab6iucOR44usQ\nc6FcsYmZBrPjEkyRIJhLcie2Ylaj4MEkixnRdwnKQUNwiEmmL/hGuEdr/bGo\n/vyuxQvg5J7XBip0oXa+vTaCXXcha9F/aZitCs/IoDRyE0tkK/AGeQGLquV3\nxqwX7t85XsKmrYT6nj5oBHvfpI0InY4k0eQ+2EdpHiTmxIEMURdMOY+7o1cP\nUWhQ\r\n=f1jw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ada608c773d2657680fffa3be444debd83967f00","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.94937c78c.0","@material/base":"11.0.0-canary.94937c78c.0","@material/shape":"11.0.0-canary.94937c78c.0","@material/theme":"11.0.0-canary.94937c78c.0","@material/ripple":"11.0.0-canary.94937c78c.0","@material/animation":"11.0.0-canary.94937c78c.0","@material/elevation":"11.0.0-canary.94937c78c.0","@material/typography":"11.0.0-canary.94937c78c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.94937c78c.0_1617310908830_0.9836209119076023","host":"s3://npm-registry-packages"}},"11.0.0-canary.e7202cb57.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.e7202cb57.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.e7202cb57.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"500a29a91d8a0c77e48ca7bec7bc1d5b327bb61f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.e7202cb57.0.tgz","fileCount":45,"integrity":"sha512-CUNQcGCe5BviHmzImcXL9DI717jDH2CGaagWlFcJYy9cOP/DlgODUwOZwThSaiuYJcI/0kMk1uaMrBOlSC87OQ==","signatures":[{"sig":"MEQCIANNrlOTA6poVzZEXHbJxY87Rqd8rVGcOlynH60l40pOAiBbtOBPbwgpdWmFfCSo7kdtJTYo9JFmVv2JPe/KowzOjA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZk2rCRA9TVsSAnZWagAAGLUQAIewqYA+knPVEUCwjgl9\ntXgc2F/ITVOfaKiYMcpoyUtREOzHRCnaBnRGyJT1ueHOlDdUZ1QXvrB1FUjl\nmTKsXkPNNFXK6VsjzJ5w0nes2rsuTxj2Q/nCRDadwj0t1LEiI7uPxIygZbtf\nV7LrirOI40sPkggelVVsm1PsC/z3AMj17+vCjik1+tP2HA8WSJ9wSY+SVV/t\naaF0NnkQ+uR/sAwtpJZk17GrmR50rfA4oBMhNgULSlScP2Rhxl+gAiBwv9oL\nuj94PASFGI9W3v0vepNT2Fqz4pjvRTkrPN0TWvqWzwq7hl26s/Fc5NZza+/k\nPaXH01CqtCOEk4jSrudJOcVZoYyoBw5myxbV2O//si7F6o79kXAQYxcYVtZ3\nNEYH/3pPhrfSFjj9eh5ujON9CkZWzWugN7KOkXaQXDNFVt9Lte9tB0iFwfo0\nzZ27ZGjvn3MV/DEijI/DAHopvUrnVkrBbd2/3m/2NUj+BjOfQ9MFoOGLFxEY\nFHW7Ubq7lod/NDsNIIP4Bdqzr2QuuMTn6nVUOPGiwbLbJGEReekzgvPVCGS9\nvTFg5Gu2AaOgnAjS1iPWipLrUrWXY132rCQKTjoon2CrdB5O/g8R4JuKRx4x\ncbfLZ+wZ+G636tt0eNpfTfDXTIO/cuTA1F0/ChEue7Fh1UMMQEoLL600ydO2\n2xHH\r\n=u9r1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"113d79c2879cb1503ff12c8064eeb38ada16b472","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.e7202cb57.0","@material/base":"11.0.0-canary.e7202cb57.0","@material/shape":"11.0.0-canary.e7202cb57.0","@material/theme":"11.0.0-canary.e7202cb57.0","@material/ripple":"11.0.0-canary.e7202cb57.0","@material/animation":"11.0.0-canary.e7202cb57.0","@material/elevation":"11.0.0-canary.e7202cb57.0","@material/typography":"11.0.0-canary.e7202cb57.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.e7202cb57.0_1617317291014_0.214837884666097","host":"s3://npm-registry-packages"}},"11.0.0-canary.1f636b205.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.1f636b205.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.1f636b205.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d2c359875ff38540ad9b5d76b44d5d91ecf285ab","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.1f636b205.0.tgz","fileCount":45,"integrity":"sha512-gNMmxpfFPJ5rwCmHfoGhyX7YoVEi2ClMga5uyPYbz6OofJFKzT7pHyySYhNKsryxaZy9TKJbPojNZ05SvTEexA==","signatures":[{"sig":"MEUCIBSqv1dmc4RmwDODlIvgV3kJT/d4O78XmhbbUynpq+aEAiEA82W6wM2GogOfEiTC7sIw4B+BqozfhBgNNrB1NiA5Izc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZ5nACRA9TVsSAnZWagAAWhQP/A/p4jE52H2sKDzZ0FZG\n08r6r7LkO+isBOXmS6g7ubq7VLS8KK8Y0wicBVg1Dh+fVyyZcrOzZr5uAcSM\nLBZk3zGLn4iFQJkoGvf1JJ4Y2E21JO6kOgg8jYhmyTdQU/bgWo8IcSWxZDM1\n3uaE7ukdwfKcKrq+qMvk1ETA0/U2EGdjOMFRLsIfiT/JDK1DJv5fXBZJCDNf\n4iu6MRwofI43jUSZv/3Z52wbumXYc+2v3KW1M63ZGf21aM944pmxQXvdvp7g\njNZI1PHmz1loLzLER9oxRhub3ImJySspkW6A0JWBsXd6QcAoGFJ3Sj0dgFFJ\ngAwWfC5MTVFoMAxD52lhDWxC8zTzMaMbQtrFB8c0S6I7kchHORrXYhGGDFtp\nB4UVo9Y2/TqbyH761PcUCWAqkVMQUOFZnxEyB3B5N0NZxHWaIpJUFWjU4Tm9\nRX2AX4SFZ8rvkcUBMCoyhlSCHKzPUPbrPTQm3KXuLEjxkXY0wtkLcfp1L8V+\nmdSrZm6TFAJ3sjwK8KgqNrOUUTESi8jjE0HWZlPEPEWzgf9GsbSpminxKxKV\nGyDB5k21xX7uxc3wNNuLXRvvOHzicE8Sr6LPY9apO7cRhER6o95x9iHRyciQ\ndBPUr51/m3XdkeRYk6/Ax042Jf3PRmKYtXtLlEsFLIGq5GhwLtm4AJpqJxqC\noxf4\r\n=eE4w\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a523c6467be13e8aeead7e4e2e5f20c418871bb2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.1f636b205.0","@material/base":"11.0.0-canary.1f636b205.0","@material/shape":"11.0.0-canary.1f636b205.0","@material/theme":"11.0.0-canary.1f636b205.0","@material/ripple":"11.0.0-canary.1f636b205.0","@material/animation":"11.0.0-canary.1f636b205.0","@material/elevation":"11.0.0-canary.1f636b205.0","@material/typography":"11.0.0-canary.1f636b205.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.1f636b205.0_1617402304353_0.6480227650609909","host":"s3://npm-registry-packages"}},"11.0.0-canary.94f50b260.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.94f50b260.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.94f50b260.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"042db81d5360651a09facc1725279b2b1919b4a1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.94f50b260.0.tgz","fileCount":45,"integrity":"sha512-yUn894VG0qyOMMiqUCBE1yJkaTIV+zrNVytDhxaIlC1B5agw7YwbBDwASXbAYrZsQH24HK/LzRYlhmc6GiAibw==","signatures":[{"sig":"MEQCIDfFhr1m7G8voRaDDqqgsjzfl7v6hbQTH/NhW1K4HdFFAiAksTjIZg7Sjqpg2g8Go+yHEh3bm+p0YLIi7UOcCV4e5g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgaydYCRA9TVsSAnZWagAAnyoP/2DZXvRr1RvlhgQsybT0\nQcmjWKg9SUHoV2sNZIYDrCV9kL+6+g/8dUnsSy7rxLVaMmKrOn2F0NPP2Bay\nhL+g6RVd32CjdTXZW/V7/tyWJGiJm5UJhXSnlBFKtb8Qi262Gg79FWhh/Rkc\nBeDdffgXAa3RTKkN17y0dR14ldMMxMk+mCd+8hQyIBZ0Yz3HDlZ51bmtkEyk\ni4AeRJyHHVVjtAVfwSMh6EJDwqv+0zqD2e1f5dw8Z/XLzObgLYNsy5BswRg5\nsbGl+jxlgGRYCRFZYC1957NORTjbQSJTZfzrig0J9TyCW22kT8frSfxwJnMQ\nVqBVdcF+7XgEg0XFCmQpsMWvxZZypFqQmw4h5/GAWB7tCeOhHTOljrzVZMSK\nOlDCf3TZR+z9POiaWdmM72ekQI+LD/i3pu3szUCdF466EDUESGutF3oMtUgZ\nORiembP4Q+ZFZXUMHXZRE4/c5692pSYlgNG1xDJPNJDV9UBjRqvw9Xnpa2Zo\noUBjgbaVRAkyielv0VQKtikVfDhIp0MVmDl7ad1S1hZ375+uzsuJAQm5A8Pu\nwcrlEIiEPHd1bmwnMp8xsnSvHvMoJPcTDk1jh/7FM7bft39sO92gZNWZd+Z2\nwzsPJ2Vgp5x7az5e5oRfmFj5sg0WZzFZGKHS1xAmRjKJViQrtqw8QpxFmY3T\nKJyB\r\n=1DSY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b5f84c677cd669d6958748a69435b56ebb640bc6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.94f50b260.0","@material/base":"11.0.0-canary.94f50b260.0","@material/shape":"11.0.0-canary.94f50b260.0","@material/theme":"11.0.0-canary.94f50b260.0","@material/ripple":"11.0.0-canary.94f50b260.0","@material/animation":"11.0.0-canary.94f50b260.0","@material/elevation":"11.0.0-canary.94f50b260.0","@material/typography":"11.0.0-canary.94f50b260.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.94f50b260.0_1617635159995_0.2397057784998533","host":"s3://npm-registry-packages"}},"11.0.0-canary.a4009b80a.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.a4009b80a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.a4009b80a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2ab070d292a911b921471b743ba195693ee23deb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.a4009b80a.0.tgz","fileCount":45,"integrity":"sha512-5RaTwK6tYmKIVXBB/M+meSkVJiQsqd0JDlXNXTdzFyKZX8A+q/wqrvBdiN4x3nCafmDuZ9EMMBnCzCGgqDy6Zw==","signatures":[{"sig":"MEQCIDV4C0tjMqAg4yMqv7wC0TSdq+X4DKmkKp8Mr8sQhs/VAiBWyOEnfnhmdGdsfI5ZJz1k2UWsmypYkk83jhR3U0MDzQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJga4i0CRA9TVsSAnZWagAAp0UP/1oeWFDaSGH0SMky14O2\noqIADwglN8Poo9dIKeK6kxp/XirZWvjXYyMKkK5NX/YCdB0RHxwzRjAHj1Ga\n4QZooJxiHZWGeJHKdO3j45+ZXJhETBxk5GjnpL6vSmm0VOok7kvYfdgi9hXG\nz8bpA6KUpzyTg8wlwmXSPaaTw2z3Y1Dm0ma93Bkb57uqZ4a1j/ImFGF+bwN6\njTtqqAqhQO5pa0ag/lQZO4mDSkWBLZwAKkJVbwgDMIF0LIVmZBlNZTFySN5x\nMW9zQX9YjT2zbhvKsfSVn3lc9FRloYhjcKjwNnepvoFUWn/iIpH30IHqphJT\nsaMxROgZ2XfkrnsdNfUv91dOHaHPqnl1DWYcS9AYCpSeVycVQoD8o9GxbQRc\nKaJp5cLUax0AA1MxBfFl3+J+n7pwSNEK/VLY82xu+cmHqNIhB4X3/CMyxvI7\nTw7zp94rB2si6zIZPTlC/evBWtX/ALObC9V+5J61WlGc7U4hcQ6zFQH7Ct12\nD0TjwZGh4Lfg+/pYa4LdEWjlCKOGhHC09QCP5RyEwkGCNMCo0ZZI63pAUR02\nWUbMyybvX0aWlNQXlAdZxyBFDlScp9/TneuEOdfeMLOrNQVtI7s1JibyVMtz\ngR6Ht+Z5y+8Za5D1f13NLm2okq/1vmMx0ylbdYP+ahkfTl+q31j9LvfMlcHM\n5d9Y\r\n=QFYc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"35eef76af32a43b61b6a0fb725dbb83cfa5d3421","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.a4009b80a.0","@material/base":"11.0.0-canary.a4009b80a.0","@material/shape":"11.0.0-canary.a4009b80a.0","@material/theme":"11.0.0-canary.a4009b80a.0","@material/ripple":"11.0.0-canary.a4009b80a.0","@material/animation":"11.0.0-canary.a4009b80a.0","@material/elevation":"11.0.0-canary.a4009b80a.0","@material/typography":"11.0.0-canary.a4009b80a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.a4009b80a.0_1617660083555_0.40682090841731977","host":"s3://npm-registry-packages"}},"11.0.0-canary.15604bd0d.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.15604bd0d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.15604bd0d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5997e80b8f464b6b274f273698b71b0065ac440e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.15604bd0d.0.tgz","fileCount":45,"integrity":"sha512-t2DD3yd4/vmF2etmKPlI9s9h89UbHsf4TKgCMto2PtuUGG+g7UJB5X4UE91yoLhpAdl4iavufRmkLLPHJjMTpg==","signatures":[{"sig":"MEUCICpYXOo5dFrC6A4Nu4tB7LoUPplzlUTrtpDDhnLRiL9cAiEAvCJgUJgirDgmWkuVo7EzVWYudOiZBQ2UEJHW+rS+HUk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJga5J3CRA9TVsSAnZWagAAFBsP/1sg5PdbgqlmYcv/QmoX\nl31I4FCoOivxQj+yNvMHxKOORIg651cPu1r83bOc7wwEobcXmztIOzlulKKz\nbubanz17gasPN1OJM5N51E0EMG0EF/AfkAcssZ+CCp4a5V7tNjUKpKgFNHPw\nt0mjYnOcHwTW25hf5GdX+jdUz8e5yi4IXwaqGUTDzXe9I4h4ITvuYqJBKit8\nvUUK4HVgumPlmVAxFCVav+alHV3uq54NXMcRwl2d5X5O8AJtmbeERc9rsKR/\n8EjcBO8rrbTBgkowRtuITsVmrpcB9GBZ5XZVm9d2NuWBQGp9gE1QMs8RZU+/\nL9hDkzXa5U39aADl13s5zuVTRAefIl3vkBiCMnQe/pQkK1rbweIvvGDxtkBp\nsQvfC38Fs2tRzmFgC6+D/MTRfSgJ6hhbbKUPISs6+mwHM15T8VEhKQbCAvPW\nCnkCwe3EF1xRzWoeOaRwLwXaWC86Zlu9QaUlaHB3Ol4XYeNr5DSGQEkBs8sh\nyvEgotwOUdF6nhDQgHOXLUDp2rTgrBH8FC6VSR1qkrfq6ytDCNQDGZGf8Xvp\nSVHnyafRSwBAWi+VuDEvfgr7vyYnoH4RTpifNi6zRdFl/osvh6lKg8CB7E76\ng6Z4VYDDbOr7FctQagGbz383X5dikA6WYt8QqsjJJRR9mOnl5yb6yEFcXl5k\ndH0p\r\n=3etl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ea3949c02ab8da1a812a2127f1fbc7e7a3c98532","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.15604bd0d.0","@material/base":"11.0.0-canary.15604bd0d.0","@material/shape":"11.0.0-canary.15604bd0d.0","@material/theme":"11.0.0-canary.15604bd0d.0","@material/ripple":"11.0.0-canary.15604bd0d.0","@material/animation":"11.0.0-canary.15604bd0d.0","@material/elevation":"11.0.0-canary.15604bd0d.0","@material/typography":"11.0.0-canary.15604bd0d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.15604bd0d.0_1617662582681_0.16239750336358982","host":"s3://npm-registry-packages"}},"11.0.0-canary.76da7876c.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.76da7876c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.76da7876c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"58c9f3ca505cb5b33441d175097af0fa7e38ad72","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.76da7876c.0.tgz","fileCount":45,"integrity":"sha512-VZg9MNc+3IqbKfgqh9NJmRg63vLRMZtD9CPVowku5kGyYlGkAeDWednGfZfEdiWHl/1F/0p7Qd0pn/7nZOcHCw==","signatures":[{"sig":"MEUCIQD1ZVOKiSfhym1741oztqRR5Dy4f/INT6+bRg6o8BCVTQIgecO+q1n+0EdUq6AZsnNRiuEeok9x4LJlYWMgKBFof/U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbQ7DCRA9TVsSAnZWagAAgqUP/0sKsC3Q6GR9xVrWWka8\nLIU5ACWSOBuuM/Iw+SuhQhxnzYujEhRSM7awI77nMiMG87Exhyt9RgHlGFgm\nVTCXNZyoljG3fTx9LqzCGCuUKEOjKPegz/OjyDelFc6D0+Iu3YES/N0ivRRw\nD65Qe8dmTK7B8n5UWE9rzrB1gB6EqbEksQt1rpCfYKhu/KEx6Wmz1YnhG53l\npJBUg/W/9feGsDVZ3BTNmg58n3Y96YpIwzeiX82hS7ig5IfLucFK50h31pct\nbC3dyyt5HcT6O+8T+XFBc1/tFcpCFBzYqJKChQWH1YE/W6joXWd9BFFsYscJ\nihmxpqbqp3eXIfStlOZlFJURwmudLDwc47I3uQrixqs725wE0sWlGiYctba4\nL/o3vh0uzJ3yqlBmsOoIu52Wuzncnvq0GLPHIHyW/eQT8fXkNnoZWlPdUXA7\nW8wuinoevByucijmqSKfyNjTldkydDzhwpQWcnQXW4ouuXv5MBo/60x3e4g3\nLxV1nBt0e799d1bozQB8QskrQHji5iqYmTN6MQcChrm2iDj2fxZw0yJ6X5vE\nfgbT6drNoDk7KgDQdDgySjxHrSxb1pEr/ruwfXEe7nYDNK8ketpKrNWBMzvY\nuH2uMeUFXQlxrhtuyqLiPmUIOd5GzvRqGQbhWZyO7xf8gfKTjn1CT3lOokQT\nwYgZ\r\n=CAhT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4bace63831a45c0c9e6f786768b2aad0d79087f1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.76da7876c.0","@material/base":"11.0.0-canary.76da7876c.0","@material/shape":"11.0.0-canary.76da7876c.0","@material/theme":"11.0.0-canary.76da7876c.0","@material/ripple":"11.0.0-canary.76da7876c.0","@material/animation":"11.0.0-canary.76da7876c.0","@material/elevation":"11.0.0-canary.76da7876c.0","@material/typography":"11.0.0-canary.76da7876c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.76da7876c.0_1617759938679_0.2838771144017789","host":"s3://npm-registry-packages"}},"11.0.0-canary.6bcb6cbd2.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.6bcb6cbd2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.6bcb6cbd2.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4791c361c983af451227d243e3b185b7203bd356","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.6bcb6cbd2.0.tgz","fileCount":45,"integrity":"sha512-4TW2FgqT/AP/1Ma2ZcuT0sodG0RAeV7IfTJc07jcrSqwBs8AxUv6MYZnvOWlkHCjbqY8WQbr1DPwd3hcL0BPug==","signatures":[{"sig":"MEYCIQDVJHoahOO6A4bnMgaaVruo411KCdznbzoPgwuIo1Lm2gIhANnTW9lZXxzzAJqUb/vrW3nT2F9vJkZ4b/PqPqKfLbIc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbf/3CRA9TVsSAnZWagAA6tgP/AmtVJ3d4y1f4aThm3uT\nyXmb3ZSpB2oYDoBkgSxQL796PMNE7+MSUtuDU7g7ytkH6hybZxIPJd6Laiuj\nsBdhWMd788Qy3rQgl8kixRD61LH68s4XCmSFb/5IQRraqiDwZIEuMegplGeF\nOuAxPxmBdMAkzP6G54pTbbMXaQoQwycBLdbMQJePiYw5adUGZc7bcDEZhdEf\nGx70SreaBLcAmIymPLxACF3Y6mqFX/RXCC5e2p6rayE4HcNoH2BZb/MxhEfk\nMI1LDIBHmdDUHzce5daFL6kkDvCHUcOdvQKFHRWQREsKcstlCHq8dfJ+Pt7i\nRlkWlJbUYjUyZ1rei8bwiamW46qnOFztTirrr4A7ND13DMiRzq2OlInenjd4\nlnLQ7NJQKGGD6Q651PiFB6xxqEoOSI8n6+OWNF42Eit0G14XAHhirSJw8xJu\nFdIT3Mdiqsr+c34M9he+8RBCqmyZ9ZLmgU/hyydnh++jbXkoDh6bJ+eY9teh\no5Sym1ZAZ+OXoS13z86/g5eGMVwz8dxyQlxzjhse+CtE2pSkDJ87sdGQXJFV\nKeLuS/wvPPnWYW1MpMubHu7ZEd5I2a7wOkZn72Wus2gDg9TcKavHvZO1uhP6\nhCVQSlW9bnH6pV7KOvHDHV3J/jmB3aThV5xXOlzL2l82nlYGOWDMI0k/jqgT\nnH4O\r\n=9ecL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f3ec57093899a7f082bd51cae05b398c31619392","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.6bcb6cbd2.0","@material/base":"11.0.0-canary.6bcb6cbd2.0","@material/shape":"11.0.0-canary.6bcb6cbd2.0","@material/theme":"11.0.0-canary.6bcb6cbd2.0","@material/ripple":"11.0.0-canary.6bcb6cbd2.0","@material/animation":"11.0.0-canary.6bcb6cbd2.0","@material/elevation":"11.0.0-canary.6bcb6cbd2.0","@material/typography":"11.0.0-canary.6bcb6cbd2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.6bcb6cbd2.0_1617821686940_0.6567445526330478","host":"s3://npm-registry-packages"}},"11.0.0-canary.c91e8d141.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.c91e8d141.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.c91e8d141.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e4c2a2b48c3905b36d949a09a119027a9fa8af1f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.c91e8d141.0.tgz","fileCount":45,"integrity":"sha512-CPZG0dbg4IPguLC/2TrazuzOCWXzDUFUh9KodW17Md/KUcF+vwEz2fZTVbKBxT6rR0hiB5jcoCJ/bxpvYB93/Q==","signatures":[{"sig":"MEUCIQDs6V6IA8Ca00ikbCdO4TepOpPl/L3Wy+9jL5TeOOzR0AIgHuwXgA4mTcPAm8Ir67foSXSve7MlJF6oEeurYatxFwY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbgDnCRA9TVsSAnZWagAAbxwQAI87lidD/UZZ8sSfR6yt\nxLLxrskJpE2vdPCyAhDhpX0gsF/LDjDNXA7q2R2AlnJKABU9RKvAuuH6k4VT\nRoT49zgcm7YpROTcr1Lz3qjBoYn/JPkFgkTzaqlxAFExYrQURmjgcrK6g2nr\nPAtcf40cRZOMVvIe6sKP5qqWXY9OEri3kHOQhaexG11UR5LUGloQiI1CNpIT\n4ZfXwafMG1wH3LkLHe02BTiQyMqPuqlblXplPLDx9tAh6JIwWAhOA0PK1uFh\n2Jqbbai/aKKSfRYlkvtBpCRNsgK35M48oL3uAObcwrv6THVQs/0dp9jD+BjC\nAJIqH7bkdDfZ4tLv76DfI526qav8/oTanXyV4SnSKgJWmu+wIE0bqRm+d2GH\na3y7O9FJz6OmgXl5Sn/vdX1RV8vPgc268zFjP+chmgU/t7yUxHA58EtSSY0t\ncSU6mtcAm5v0TCPqk1CTgfziR2tMQka5Sy5/+GGdZmmViNQSyOKm8gPIbLDV\n59NbAYCM+hW/hXg2iBvWP8TYxZo9GicOM8xH5CGAtDcg+nnDiF/g2eG4Yp3Z\n+91WierkCnYAQvlC9/vPuT2Nx0GpCzQCg4RGiGXDKsd5FUHmWnK/KVGTdpqa\nAOJqBgi05RjH//1wSvmLZPFElsVJUbJY+lbIKMcP84ln6h0T4T8km2kvNDfj\nysi3\r\n=5gZz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b13009a2b12843e6eefaa0c3ae66fc519af7bb29","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.c91e8d141.0","@material/base":"11.0.0-canary.c91e8d141.0","@material/shape":"11.0.0-canary.c91e8d141.0","@material/theme":"11.0.0-canary.c91e8d141.0","@material/ripple":"11.0.0-canary.c91e8d141.0","@material/animation":"11.0.0-canary.c91e8d141.0","@material/elevation":"11.0.0-canary.c91e8d141.0","@material/typography":"11.0.0-canary.c91e8d141.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.c91e8d141.0_1617821927036_0.9800854844125264","host":"s3://npm-registry-packages"}},"11.0.0-canary.f77c50860.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.f77c50860.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.f77c50860.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"94a1611c2588bd5db23b850b8103199ec503cc1c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.f77c50860.0.tgz","fileCount":45,"integrity":"sha512-UzD2Gxt+qPYxouurKkNU5ACoeIucw4Utgty4jzfdfQDYCBv4WO9+a8gkMaPOwDD92kdPW66tmlKd7HmujJr8EA==","signatures":[{"sig":"MEQCIA86XXIqF3OtHId9e1BX2SgblvqXl+yGrgqVZxvDCGbPAiBrbIo0/QKtkcI+py9uIJTYEu9ucV63wiAPUE2oOX5Qlg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbyMLCRA9TVsSAnZWagAA1YEP/3bAnbLDslKSlUiy3kDO\nYJQaT5x+qWRGinS5LliyipeC72WxpJFohv5jMLRL6Ob5NLX2vcf8DkNefjBW\nlOJ/UVDzmDs4I9urFrQFBJy0A0vqIjiV6yfR2g9qoNdiu3kM21ifV63ODc9n\noVhBGZSaXI2NcMpWIdE1tyqTXqmyyKsyMimQ0qDZP9SrMr/agT3XrATE0iSp\nn6XFEqV5Z/kBknTcMW3ZessVxLYAlG5OQf68fjas/DBCIwVGzgh1BXf0v/v6\nXzs+/wHJoMoMeRLP+gAKzo5+ZOAG2XgywjXvxM+UGwCDqYOpZxXFBFQLGZlu\nq6109UeJzrvb4wy52PJtiK5+DrS0tPX7jwvCv849nlfKVqcetXiGJX5ZEC6g\n7a5wnhApoghato+Ev599PC5H48XfYi5jHLaM8SYCTDQXGBmYMQtE388g+1e4\nDtHwHjU31r7q4Ua0NxL2hIe0zNB9zpBj5V9HAcZsdtLOlViPueaRmqbxota3\nZqmUNZmN+Cnf1Fxe0DuZZ7iLxswMaA51reKgoCvVkqofTZ9i7cZAZCvolAzT\nZn08wRTlPnRILCCBVNsDazcY+7BpTmJ+pdBYdJODGx2kiHZ5RmRj1l2y1CaW\n+ZvshdRcSi5P5KE8+wJSQyYj3F+6jLpNo/gsg92MU8o3RyOwnxTg647qcnxK\nNEba\r\n=zJUd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d35db9665d4a8a4f385b134c9c1a23bda8668fa2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.f77c50860.0","@material/base":"11.0.0-canary.f77c50860.0","@material/shape":"11.0.0-canary.f77c50860.0","@material/theme":"11.0.0-canary.f77c50860.0","@material/ripple":"11.0.0-canary.f77c50860.0","@material/animation":"11.0.0-canary.f77c50860.0","@material/elevation":"11.0.0-canary.f77c50860.0","@material/typography":"11.0.0-canary.f77c50860.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.f77c50860.0_1617896202801_0.5128450051942626","host":"s3://npm-registry-packages"}},"11.0.0-canary.367d88bdb.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.367d88bdb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.367d88bdb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b8be5cfa4cded654cc9ea2108f145dbda53999cf","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.367d88bdb.0.tgz","fileCount":45,"integrity":"sha512-17TKMd3nKkst1EE4O7AM7u0Eh4AU7yTiixq9amcsD3y5d7yZjKovT9dsO7TzeZNMUIUZha98MNx/EOwPjogE8g==","signatures":[{"sig":"MEQCIHgVKxXLWNy9vmhTDkN98mzBZan2ZjEdlJTwszbA3q72AiA5suhZQJ2/zRS7v3IgCDlnLV1yeXt8dPIWfRPYYccb3A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbzHGCRA9TVsSAnZWagAAjWUP/0QPPwc+dV1sewWDncZM\nyu+QE8LQkO3i9ybBzPTwNuERX+opiq9cp8v2vQfvOQ0VpJ/nmn5iETQIX2rX\noxKy3E3JGnog9o+m3Tu/Ov4JFIwr4JFtj5DjpC2PeH3kMzsjuhh/29Qn3g4X\nkbo69+HlduwW7tKSay4xpaJYqKGfsNI0v7ZcnbQWZ3sCLJmGPg3qBKD09iKS\n6N3gBLCdmdF42Ct0JGMyyEBXkM5pQkvEbEbA09M50n4b2Xo89EBJmiDT5Z6n\neLev9OFbL7mJunZJK+RQgX3coAG9w1GQryctb+YXx2YTloIWGT4lb+PmtGzP\nVqdMuj6TDvTHDxgtMiZKNYFhALqteddrWkF4KNzaPEGwQo3p1Gsamc6DhrNg\n3C0CHWT+FRpRx8vEt22EbP7itEyj80i1D77l7Q3SCiMAq9OTLFm330XoPg/G\nzP4BYLc0ECFict72ujuJgGj8x/+RBS7Uc/viYz+hJAPbzySJafBM0x+zoiKe\nybzYOD1FaAzP1Krk6WrZKHkAaHmAKdEkBtCNXAeQNuqMBzkxAb4ShImxqJ4/\n+gTyE1v15TxahzMRA3qndn1WMpzFh5IOqI4DWci+90YPItFG5+sCXh895Fqj\n2KHKxxSMDsph28DuBQrHzAY5Q/1ajXWW6QRMZE5rbAAAy4uzy8XqClsesMXR\nBi6M\r\n=0oVT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ba9cee87fe351c7e76ccb32f2572bf3ca91e88d7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.367d88bdb.0","@material/base":"11.0.0-canary.367d88bdb.0","@material/shape":"11.0.0-canary.367d88bdb.0","@material/theme":"11.0.0-canary.367d88bdb.0","@material/ripple":"11.0.0-canary.367d88bdb.0","@material/animation":"11.0.0-canary.367d88bdb.0","@material/elevation":"11.0.0-canary.367d88bdb.0","@material/typography":"11.0.0-canary.367d88bdb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.367d88bdb.0_1617899974032_0.9323512680091561","host":"s3://npm-registry-packages"}},"11.0.0-canary.0ec437d3b.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.0ec437d3b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.0ec437d3b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3d84238fcceb3e0ef73a46d232b1974b3f4f0581","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.0ec437d3b.0.tgz","fileCount":45,"integrity":"sha512-ZhFjyWSS/h+HRbMUMMvZw1GqgQjTVSeaGd69dc19hU/ak9WGh6yllHbLR3Tr9Ukf9HG6/sQmOHPqlbd/qhXWGA==","signatures":[{"sig":"MEYCIQD4DkwZOsOZHxYTJyrDR8jFBLZqpzAEjvBweo3IGNGG8QIhALo23moTMVna38Kc0mn+XU98L3K5BsL1RrUqXaIuLbKh","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgb1swCRA9TVsSAnZWagAAx5oP/RQ6Im2CdjMcart4l5tH\nxdDOn9exUknhgIz3U5yPHEkEcci2qU/c19AqFwLvl8/EXnT5H4MvsdxXOLW8\nVfr08/itXyKLcOaHO4/KVc+VG1fglAIigmxvXsatXuSB35NDc+/62zYsV/aR\nYLIkoqRcvMbOKhkiEUpfgtXJDRiSlU4fwAx58rmxS/oVbticZP1n9sOjKa5D\nRCUBacRb/9XpUeWLKu/FSdcPnjfwGmH7R3b5Ljm9zIIgpZlmiHStM8I/3txV\ntFtEG6nRLnWC0dKD/UO6ENaAfpi6UbvEpDJvk6mqMu1Zo2u0Df44EiEvIE90\nToOW6Bia/qwXqmThowKdzlPOgmMEkrKC4re43gDaOF41WIafMG2V2jdGYcK4\n3yDhl9HRM7zuuNsanOqV9kiUDmX0vBFfn88aCeqHMoYUdaugdHVV4iPtmMXc\nJajr5q0C3KM/h0EdLFm4j4HwWGBhntGTrX+40R4dBCDu0LsE43OIwGpGPu3A\n2Kag2HQY3N59rZfrv0MF5VovnN+pdRvnJua3UOz1j7hVxbwCkcVnjEKgNQan\n3ve3VAxUsaxiuEbbTk/187wZ70Acfq5ZFiHy8LUWGUuf4V8ptf4O7+UgokMF\neve+YnpdfFe61v66VuyZwXN0Eu0N1oPhjfCrV3ZW+yI6a0K/YjUK/7yLTa6Q\n5KOn\r\n=w2LR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"50ed2429a570432fef9747a954d7c31d2dd11f0a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.0ec437d3b.0","@material/base":"11.0.0-canary.0ec437d3b.0","@material/shape":"11.0.0-canary.0ec437d3b.0","@material/theme":"11.0.0-canary.0ec437d3b.0","@material/ripple":"11.0.0-canary.0ec437d3b.0","@material/animation":"11.0.0-canary.0ec437d3b.0","@material/elevation":"11.0.0-canary.0ec437d3b.0","@material/typography":"11.0.0-canary.0ec437d3b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.0ec437d3b.0_1617910575900_0.40493227161224743","host":"s3://npm-registry-packages"}},"11.0.0-canary.b2fa996a1.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.b2fa996a1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.b2fa996a1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6939e117b001e26ebec84e8c8cde14d42386e15f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.b2fa996a1.0.tgz","fileCount":45,"integrity":"sha512-mL4E//pryW99j69FlXd3lHncD693Pg0g1W58wdICqk420FEuuqPkrjXUDRQlBZql7+9kB/+2wcibG+9skZeZHQ==","signatures":[{"sig":"MEQCIEBEDr48/oJbLTOJ3Ltu0AVEZBuA0SVYe+zAwSxCqBaiAiAYDCCiNnNC8uitVsC853pw558Aocv/51zPRzbPomuIng==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgcG7ACRA9TVsSAnZWagAAq4AQAI41Tvg/EyjxMOd+4AId\n+6mNIp84QeQYyX0BQIe8b1kNlsurNk8Od5JD8x6CeP7YLcgXTgcF150GPbtK\nL7T98QKKb1Pf6A7OKyJme+l7dtvQgMPv1J4UceL18O4EjTLmq2ewbi/duNhj\n+RovZvWUpAm8PN6C+s+IeZn9tzjrGorwbNZMt8gJBbxsL5Na0aiiunB61DOt\n+5dnfPYqRH3gHBm5qeivF3Gd7P63nozDRP7UqTstJ5Jk8iYwACfzqQaReTef\naiWrJUL9cwErRUMBm77IpyXs5yNtpN1yJJzc/zuJNS7WvjvSfgjVCKB76dPA\nyTGbjm2eMH7cyPRKOVZYb6RnkSZ7EWe/jfsnE2RcxF8QCx0GuBZBrrvRyTKP\nnbnrBRJyTDFpS7zZdYaqMZEStwGJQdK7cDkLI+AXH72vbAa6o2xsG3zO7Dxf\nk8LWGc6m+ARg4G2fLwiV5iADia7u+cozoP5LLawBj7KkL10f+m1CnTKjnC8v\nwiJuPRSs9TxqGk5z3RZjsdPZ/ccPdHApHq4Fnle/bdHg6Rk6HHo3yzilMH3d\nr5jUb1/k5x7CFTug+WAqR8DsivKBFSS6GyT9zxZoWnbFnQCHicPYEnXNQceD\nZ9IuWINXxtTNwoS/B3M61SKRSpW7S2Hd5QrkgTgFQwXvbFyVNzjMt3k2TEso\nKl2C\r\n=lLRn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0b4eb5b2d30d6d9a7b20f57164a2beba3c20d65e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.b2fa996a1.0","@material/base":"11.0.0-canary.b2fa996a1.0","@material/shape":"11.0.0-canary.b2fa996a1.0","@material/theme":"11.0.0-canary.b2fa996a1.0","@material/ripple":"11.0.0-canary.b2fa996a1.0","@material/animation":"11.0.0-canary.b2fa996a1.0","@material/elevation":"11.0.0-canary.b2fa996a1.0","@material/typography":"11.0.0-canary.b2fa996a1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.b2fa996a1.0_1617981120031_0.47161571555075543","host":"s3://npm-registry-packages"}},"11.0.0-canary.24255c408.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.24255c408.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.24255c408.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6a4c5d09fc1f8cd3311a38e89ae8b14b975a1af3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.24255c408.0.tgz","fileCount":45,"integrity":"sha512-vQ99bppzTYEBHxqJGWljAOoJ5sH248QhRpMDgCdG4Br3p3JOKlCeAzlUEYRtlu53tTSFA1VGWe3mK+1Xv2w4YA==","signatures":[{"sig":"MEUCIAvlcSxM/uaXCJxPbQ9LwIy0I/0nHIHKuQhNfW7EInNwAiEAjArmN6dt9whzU/vJgUV9TuU6bEAbmaYYRBWxSgfPUEI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgcLVkCRA9TVsSAnZWagAA+k8P+QBDd/x2/sml4VSOiF15\nYZYrMv9e1+I7fM8sIz56kQkbo74RSUoLkWp+ov1+UuTKuV+Q7gdFVN44dIKy\nZPnNW+imrk4SfPtnxDDDlahSeA2YJ0oezu6zj9gb6obq5wYhTvwcVNn4ho6+\nMhWevmqtR/ArRX06QdXNBstNUNyLVn/zZzIB3YuXvyCYo6gH99yTCzcVNSZ3\nAkVW5Yhfzvzj1rfMrv8Gr5196gBej5nykvJqNrMG1nlsVFm6xgppLChuhKjP\nwzMv7B6r2hAe8nHXjgEzWenmuYHaYelur0TtKGLF6tdFCrw/DFGuCRO7uUAB\n2Kk/eFRtasyBEbQkFtCMI7ce+LITWCaEn0rp4MzpOjnlEU9MLpT5WNo0eWKV\nDvOAvny5UXlUorE0qkCBzNtIrj4aKbnJPfkdI7HwFZpb0MV/Q03Pg3BGDE+d\n+5mpj8a9I7OGvCZrfJp0+Tj5AmAN596tTJmWNHXwwaOyZLw6TQiNApyL9iz9\nfvTxQzJxj1sThRiRu25WGmPhT/1VWLRUL5RfaSKLhTkzK14UAelEIC0ojxSp\nvoCAy3xtAyt2d8m0akRBVTjtv/h8Ob9QnIzP+z9NIlEXPfAH2p0zQoSpmKfn\nfGhS95HNwNFXbCDvyOjZU3MABhHB/fZisvm75EuksAwkDnvOozgYKbQG/ES/\nngq6\r\n=l4V4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5cc224c5482fd736af03872db458f031901bb693","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.24255c408.0","@material/base":"11.0.0-canary.24255c408.0","@material/shape":"11.0.0-canary.24255c408.0","@material/theme":"11.0.0-canary.24255c408.0","@material/ripple":"11.0.0-canary.24255c408.0","@material/animation":"11.0.0-canary.24255c408.0","@material/elevation":"11.0.0-canary.24255c408.0","@material/typography":"11.0.0-canary.24255c408.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.24255c408.0_1617999201178_0.8736910794069725","host":"s3://npm-registry-packages"}},"11.0.0-canary.7d6a4bb72.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.7d6a4bb72.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.7d6a4bb72.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9011b2124e95035e0d32fb269a3a783f626e062f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.7d6a4bb72.0.tgz","fileCount":45,"integrity":"sha512-jdGXDlf4Zwz2EypCQ9NHet/lSyIZuV+YBC9r56nWCCJwbbbT/GCTqUBqvh0iSKUP3E9xVNX178gV/mUQuLLNTw==","signatures":[{"sig":"MEUCIBh+Ao4YgIICxiRVCMex8+LgxrhjbHv7mYfnZ+X9H4MmAiEA6E5vgdK6wlsHoaL8GxFjPt8LtUCd27alZFhTyt0El6A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgcNslCRA9TVsSAnZWagAATDQQAIjMeIQTM41zP278XFbv\ngqYCrYL+90u7tUCFWhaoumEaWXkSjT1QkvPPWNWWDLFVEOzpKfYwOkaMQyJ9\noa7EYk99fsDHB+VlDGyNZR/rhW34yrIirPh6FHD/kRwOt4B3WtX5Po5Oiivn\nhtOuQI0vf7+FdkiVGXa7ZeRvaIs9oS5d6ALLU6oQN4wy1SwJov6Jy8wKcdug\nTifVH+OHn17JhvlrkYrIVzH+Rgg3S+7uaovQZJImP0Rczz+XvUD5rityc6FX\nCn5qAuDiRJ7uDxUI8eZffomYLkz9roQEO1LBxP8w0Qfm3smZzpOkGyrNMFrq\njxePjtBv5ejgEJxG6InbqwKNiY3U5HzOoDnmsdNg0cUhEtkntD5WbnyfE9oP\nkwdzEPth/7qyVR2qRk2w7VhJgR+LWbWN9Ut2nV3i9h3CMg4iQnclaWiQ571V\nxbpiGPFt++/yYizmjOmHS1+rgaRhRAiAOYrNDNdF3h3RcBCtHCCa6MEVDEtM\nGuF95XL9JL1PCGL7PHiIZQq6iInxYKbPAbjnkbxmLT+2Oav5PnuRDVlfZITt\nG5NQyByWEA2BcozyNpa9tN0EEpgCy1WBcr1rM2seN6FdA/j0+wmPg4ty/B7T\nUa5w4HWfEPj4vjHyRORYpCC+U05i+G9bPcEjpCpjjd+2/m+zroxbU63lpdEQ\nEL3l\r\n=khcV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1e1f0ea898fe101863062b7a760600cfb1b095e5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.7d6a4bb72.0","@material/base":"11.0.0-canary.7d6a4bb72.0","@material/shape":"11.0.0-canary.7d6a4bb72.0","@material/theme":"11.0.0-canary.7d6a4bb72.0","@material/ripple":"11.0.0-canary.7d6a4bb72.0","@material/animation":"11.0.0-canary.7d6a4bb72.0","@material/elevation":"11.0.0-canary.7d6a4bb72.0","@material/typography":"11.0.0-canary.7d6a4bb72.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.7d6a4bb72.0_1618008869405_0.5585237955546574","host":"s3://npm-registry-packages"}},"11.0.0-canary.352b295c1.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.352b295c1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.352b295c1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"297f1dcb209e160262d8964b7d62faf84463766e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.352b295c1.0.tgz","fileCount":45,"integrity":"sha512-mabfZEuab7Cq+P5bJTLGyguJZUxB4jGYGSUwYxajF2KnbQGpkE9eEhfOTxQxktboVpCPpDJicWTui/x1mNV9CQ==","signatures":[{"sig":"MEUCIQDf5e8M5pNhm+FWBS4D1s+gRf81qfjYhlX7REE1ArxneAIgFbf42gx3sycLsCIiBbTYpLcr99Mg1Z7PQ3CTDMRWuCc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdI6BCRA9TVsSAnZWagAA3qYP/ikvrOcEHMqrj7g5kBhP\non3wumgBLks1c3H8TIaehOHGob+/M66z97qQpyMdbGnlYuB6Un5u3ZrEBlaR\nq/oI0lTOSIz1dd52ZHPdMkvBxwz48pDQ7lAHVADYbvpjsVik6J2ALcX5Istq\niccK94b77M2OnBqVwxoUfLm7WZhYn8XltlU086IIc/A1x8BcpED25H6z/IH2\n3OII/3Jg4goE0KSvWiYBlsDVaR8KIM8ZkPWh3GWsLMhL9HHumr+9tnpWjsUn\nvMnOKFsfzf0RcW8P81D/CKZfvgQlp0JxFbaktMcbH54Ho2LkEkY7EV0S3cC5\nCVOTBsrk45j5TAXlrxS2Mq5El1xnqn/0zsewIcGivK7HS7Rx9TOI/rNd0fHO\nYXQ2/pE7yPO1HNojDom19wh9kV+iPvCC4MNS55NT0TxRuk7RYrGrAp2X01cL\nih/wQe6eOdzcyMqoHtz3TdHeD2jUD1hz9lp7a4AgiNu5wFzT9hmad+6XR4o/\n2qXYCjVUk0m6GuCFvjqxZ/24hOcjtwOWIXulrxmRmP5gm2jb00RQejamH2MC\nmo32LOXK8Q533Qfbj3MTvMxkJKVDjBQJs1EtPrNd91DR9IaqFKyYiqTOOyj6\nB1ElmBcEnqCzxhOktRL6/BgJ6CEwtMwqxIMks3CgsNpyDy1QQGbABRpQPac7\nTLGH\r\n=nPvv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"472a00ecb08e85ff1b602e3bec15d38f2a028f69","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.352b295c1.0","@material/base":"11.0.0-canary.352b295c1.0","@material/shape":"11.0.0-canary.352b295c1.0","@material/theme":"11.0.0-canary.352b295c1.0","@material/ripple":"11.0.0-canary.352b295c1.0","@material/animation":"11.0.0-canary.352b295c1.0","@material/elevation":"11.0.0-canary.352b295c1.0","@material/typography":"11.0.0-canary.352b295c1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.352b295c1.0_1618251393202_0.3957196644735086","host":"s3://npm-registry-packages"}},"11.0.0-canary.ab99b8064.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.ab99b8064.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.ab99b8064.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"433443e85501f75fe4aacd31c3e19260c603ccaf","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.ab99b8064.0.tgz","fileCount":45,"integrity":"sha512-6eJuPVm8bVXYEyVAloqMpvmw8OBUYu0JzCD/jUvicpJRJ0TkzQC9RQQ3fUxyy9/FfIQMUyn95hlg2I6MsOtvXQ==","signatures":[{"sig":"MEUCIDSFnt1BlRwAqz0tX3iPnGkJRllvMcDZABZ+SvIL1UUyAiEAwlh+7tmLPfOEY8jwdctmy7au1Mr4tr3yloZFAoKEwvs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgda5HCRA9TVsSAnZWagAAKRIQAIjFMyEsfF/zBye6CNC2\nwDcBgkcrZmJgHprGDVtG/OUVCfklrX/7Q0tJWjPUZTb+4PT/d6dSZvCSkoO1\nV7pLmvxn5GOgZeMEuM60qPA7IZOJYmQW9XJpuV87lap1FnRr2IbaeIVpW6bh\n4148Tu/p5u4cOlr4JLCX+Udz+BhCDKhz8SfpM4+jQ3KsQPc8PaknyZWP0EJJ\nwxSH/CFfu4Ry0b2J2sW9OvM6M3v0clkj2CciWqjz1Nmh7oQ7xAvByj4r2Jwf\nFCkoF1yfUpZXJNagqCCjXDRXITTauBNNpELoqFiAE396DRRXoKtodExak+7z\nU+v+/kuQP1H3feTZs2Z1/9KLTNSkUTabRgFuP9ngWjdsXg/B9nEjAeF7xQHv\nLMIVdFYXfLyvZilcrBt+uNuF7xsdEhAeti1ogUDrM05gXIi/456J54v0dWKZ\nvTLSArIJbDsW2q7mtUwhkxTGLuKQVCQ9SEWQHeyKakCjWfcb0frROXrZwA+9\nuZ+XnG8/wgie3Q11/E3huhN9ZYvK9+6R2WoU6qnMjAjnxgJmCQcYhgiazIj1\n43UQdal249SROwwY4doDLm19lSYy8oGIhFDw9THtQI6W7txVSEIWMvTOrqW8\n5R13j6YmN28XsISSp83Bx08/iQx3PFVqsbkF/B+4JD1hfkqv9hm1EtT/TtqQ\n9bGA\r\n=itsY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7a67c09690e367ad8ebdba2d551f6432c20ccccd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.ab99b8064.0","@material/base":"11.0.0-canary.ab99b8064.0","@material/shape":"11.0.0-canary.ab99b8064.0","@material/theme":"11.0.0-canary.ab99b8064.0","@material/ripple":"11.0.0-canary.ab99b8064.0","@material/animation":"11.0.0-canary.ab99b8064.0","@material/elevation":"11.0.0-canary.ab99b8064.0","@material/typography":"11.0.0-canary.ab99b8064.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.ab99b8064.0_1618325063142_0.5810217606491037","host":"s3://npm-registry-packages"}},"11.0.0-canary.8f0a11e32.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.8f0a11e32.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.8f0a11e32.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"05094346c001c29312cfafb4d3869e56ee8b8916","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.8f0a11e32.0.tgz","fileCount":45,"integrity":"sha512-YXrBBVYXvt5z+apr7gKx4pmCNKwv1aWKYCIYwQ7S/KTwHIudFnO3BtZ8/1KeqBYBgK178xiTDTZ4ej2qLDOaBw==","signatures":[{"sig":"MEUCIQDxn/kM2BHB4s/n25q1Jlr7IJYa7uQahI3cGiATd0mKjwIgcDFXSQtIJHq8BHaGF9Auxx4+HInOIP5ql5+eXZe3FIw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106931,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgd0qrCRA9TVsSAnZWagAADFcQAKJlbEKH68huUe5miBBE\nf98y/j0OzXvFpLa0m0uQMRqgrCFF0ZHOsZKRqL+Xet6kN0m83hqk1e2aYnDy\npBhyvsf0S7szqN4KtQ5BwOjihtoRXDP/+iMEjxk3f4H+JPyANKXowLWS/PYZ\nSwajYBWY1OVoqlQxYGWRcsWHATX0Nn9fRn5KvrbzbpK+KtRj59ewIe+IFu2j\nxtsJOPwWlyZxHL4bdUEyfyKLqT1cT3HFCD62FSgRqSAQ882PhLPABuGRRcyd\nGVFRbJ2nb4dafvR/LUtN3ubdE1xPbjM18lbeUBA9gj9okusrtq8YxrPmFKJP\nS8nKRBoOHJee/E19hwJD6mR+HIYcDFZAJQIvqgMP8E1rQAaGioKR6D8ASE45\nzLypTJnhnLHGuPZUD8M/upvjbIwjL0+B0p/pIDv/zUfYfDUoyHlQYd5KP5FR\nt9RLPX1l5nAeR6vJVmUex4amgOHmZmgewh/+B1RtFMYLRuLVL6jgvAdOxnhx\nogADf3xQVKyL99B/6PjHcztgIq3b2ZP/0B+Kogp4TOEgj3plAkGINSSxnnpK\nd5Zp4EG14hdxyTBG374P5lTymuOkuW+tdHcnJm9jSu3w9iZIAHTFSPhg9F41\nqXpqAi038jH+7uO7B8bV8gIJ9ufhzWFAbG1ZOF0680GPflHaAty0pFJbSyxc\nKprY\r\n=3Qp6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f09b2c0c350e2f684e84766c95eed5c92b5afb0f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.8f0a11e32.0","@material/base":"11.0.0-canary.8f0a11e32.0","@material/shape":"11.0.0-canary.8f0a11e32.0","@material/theme":"11.0.0-canary.8f0a11e32.0","@material/ripple":"11.0.0-canary.8f0a11e32.0","@material/animation":"11.0.0-canary.8f0a11e32.0","@material/elevation":"11.0.0-canary.8f0a11e32.0","@material/typography":"11.0.0-canary.8f0a11e32.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.8f0a11e32.0_1618430634549_0.22895186454822358","host":"s3://npm-registry-packages"}},"11.0.0-canary.f5c6db8fc.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.f5c6db8fc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.f5c6db8fc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"94ad20cf6f0b5109e3ebd84d4e9c4db3acdd42a6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.f5c6db8fc.0.tgz","fileCount":45,"integrity":"sha512-MVzc4oKWCPf7wYibD0ioKa+CU/HZun+rKj09/IeniQk8x3Lf5oxrRsTOtAXzMMblcLEuTxxUXt3t6TeOjrNiPA==","signatures":[{"sig":"MEUCIEMmoUwLx9Z5aPvJ2RW6k1QlBT4+HvHNeSs4NZidacSwAiEAiSG6S4aTlHYO9pnYzqTg/v3bQifQl+Coc7CHGlpcwhI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106931,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeIBPCRA9TVsSAnZWagAAuSkP/i9FAfcXydjnoWAtpC1d\nfneqjEwDPzFSyo4b5ZAZFImkXo6lAmOhsudNODJ0o0HQh451Q30HQXqrKPIZ\n6yYVE4EUcaMkb1HazYJYH/JTh3C1Hw4KG24C1JBe0nTD9TujRvt36h0IAJ8L\nmdyQ51yyLhFJ7kT9Q9XywRDqtISwZmze7JwZ9FMADTgzieq2HtydiaXFN2IS\nPnM9XtysdktxZ56R5MnYDPIGVzG8OzQ+NnCQlEkEBwjcKkkC+6UII5Ty2Oay\ngru4hymEoqeWU01o/8o05/RHvc1ds5omRqpBrzQFpfavs/s0mbH7mSJPvS+5\nCa3CsYjZsUJ5Lx5TqgIb6bxV12FqrDZOeM917lZNx+6mLFmJfrxEgBdBXc62\n26KiAEk405OHnoqtCLpD0xSj7ia3AT96aF7OurG5M88RmtrQscwdyfTYYZ36\nyedYG9snW+1QO23epPK9XZt6F9ZP166vNpb79cV6OORnb/E+h3650ZmrgW/7\n0IPiPkm6zuNn6zs/d54hfx/fCljK+97N1s//51ooadxQL7wcuqk3ssD+QAhu\nGzgosUJfKAD0gZYq+Y22FgLkdHkFtHzP7yHbOUV9bkPDN3f5KGAkb5gzRqbu\nmxaoX3Ol/0BznNhvBqzesppsLhmgmZYWmeaMNoIu+izf3ND24iszqsWeocfv\nBYMm\r\n=wDie\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"eddcbd64f4309f4bf5faecb13428405a28774f15","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.f5c6db8fc.0","@material/base":"11.0.0-canary.f5c6db8fc.0","@material/shape":"11.0.0-canary.f5c6db8fc.0","@material/theme":"11.0.0-canary.f5c6db8fc.0","@material/ripple":"11.0.0-canary.f5c6db8fc.0","@material/animation":"11.0.0-canary.f5c6db8fc.0","@material/elevation":"11.0.0-canary.f5c6db8fc.0","@material/typography":"11.0.0-canary.f5c6db8fc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.f5c6db8fc.0_1618509902481_0.973645575847917","host":"s3://npm-registry-packages"}},"11.0.0-canary.3793a3143.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.3793a3143.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.3793a3143.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b613f9d831a81f3c8134b827d2c5723cf552f4eb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.3793a3143.0.tgz","fileCount":45,"integrity":"sha512-RleiQ0OUM6CijjINW6/3+exHtGTRqVN2OiHZIi/4xeSvsPi+o/oT6KNo1Aw814aESVVAeQM1ysCkNBzcW6fHbg==","signatures":[{"sig":"MEUCIGyjqQkplh+5nHxG+9c/lZWZK4+oSqgJ+7urPedRZwNNAiEAzitRdm4kvsBfhq/6LbunbU/FWn0k1ATsnSgTXL7kec8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106931,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeIaxCRA9TVsSAnZWagAAdMMQAJNCZiwiKWqjEge+wDsJ\noIDEBD0H0xZC7f8062IDfdagXEBVlW5zOslxgjUEEYqHoJmMSDMm1B8CT/Bd\n/oY6x/WfecObIREpWGklslQa/UAFz9UDhM+CqdCmNgL5d5qsut2yO6hrJwzY\nGvCNEVAUhqkO6v9KIH9aA08AX1QdJu0gyrATdmYDYT3WlHNgtYwqo+1Ch9wz\ngXVBji/vx28yNa+Lfw0ftn2p4dFXTR2ipok3fKDbazjNTc47TBPfekUIfCVb\nHP6B4DocIGUe+t124I/tnEOeS5PyAOiNhkpAetG48HWyeGYZL8cLk1OOoTz/\nrTrgw8Q+RqPabO1Nkr4+0MupCL2uSzdu6yBnjDo5IeRAc43+GnsmongIcTy6\nve4/c6klknPUZxhHnWnsO57YIn0SiiAxGTxHPiEkG51oizn+PM2dZE1CtPCl\nptP5NFMqTGlOp4vhZDHbTaShcCN5PtcCyS7+p+x4NpAHY2Bj/cpodYfXMUCG\nsVDU5yt7jQXUdbsCIhOae57D8QncIg6oWv8aSEo9KwIGmguaLKIykeewx6Hm\nr0teJrkkBW5NmTbl1KZMMKbu0bvM3Nk1PLRTzq+6KerEuFajg8MOAO/tILSV\n2hxjhwEnOAirOGHidqAko1mjzuw91pgkYrk/NvUKR97OfTwG96RKGD1MtwoI\nqC89\r\n=DA3l\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3cfbed34975d8f2990425af21414290a96e2240b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.3793a3143.0","@material/base":"11.0.0-canary.3793a3143.0","@material/shape":"11.0.0-canary.3793a3143.0","@material/theme":"11.0.0-canary.3793a3143.0","@material/ripple":"11.0.0-canary.3793a3143.0","@material/animation":"11.0.0-canary.3793a3143.0","@material/elevation":"11.0.0-canary.3793a3143.0","@material/typography":"11.0.0-canary.3793a3143.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.3793a3143.0_1618511537293_0.7526856775377131","host":"s3://npm-registry-packages"}},"11.0.0-canary.bc104bae7.0":{"name":"@material/top-app-bar","version":"11.0.0-canary.bc104bae7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0-canary.bc104bae7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a53e44870db8e116708fdcf55ef5f08ae3a0537e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0-canary.bc104bae7.0.tgz","fileCount":45,"integrity":"sha512-gVBlMJo4oa0em2MmDsKEJhEPzm3OH7UfBBEclTTCw7oeOYINknZyNHT41W3qL7AdnQGNDnFClBodbhjdOrKtpg==","signatures":[{"sig":"MEUCID3nnjji6+w44hGtX2GFdmAgDjzbOxjr2SClt8BzmixmAiEAoSZq+VTcoj9r5a+HDH7JucumbkMFOHgjya+idcZbi4Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106931,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeJg7CRA9TVsSAnZWagAAZrIP/jROI+rJ3cgotCmLKJ8f\nACTv/9oE4PoIDvd1ljZQufz0K+w3ZNaDHwzdL2FqmeyFOU0rIowR/0e5NMVC\nvakk9cGT5k7MsnbOMBscUd6MYl4Kd8AhtAmv0XfpqJNguttr4EJvbDnw4va7\nE/LMGFFOqTT0uMHMfCUifGdrJO656qX7tUrPoaZ+q1D5xGv2YiivfXqnXsl6\nScEYTh+WQt4GltgM/upE+NF4CaZ0jvpmXgge8kdCQNrTi3YpiDj26TFnNsqx\nexyHCRWzXq9BKdF4mKFDq6h3xMq9gs3r3pCnRgXX7lCaYQUSl+WOYUak85iR\nxd9S1ovQ9ICOP6tDNmZC+0P3uPbcrSO6OsW4uUV3+s6R2E/aq/4yzpJn6ykI\ndnDkcYCIvVryZCRDOVq02r9tUA9csdGw8TbfuF8jC7+XlQ7HdzdsQ1Y+asXB\n3veQtVTz6JMFP/jxAJKcHca6cM/t4oHnVQQOdxbhdwR0VNNN001/ctePWO4+\nIDIdJ7rvKJJEW2WtzTCQ9gdo+1cqn+f1JPuxCJDSkLlYwfNnyc+IiHEfep21\nHaYbfYpXewA/iiL5Q+go7khWoycO1R/8ZxN70zRlttHcMC5gye+mBJycMVAN\nUB68Rp+B5KfP/fNIKSjLU9Vdw6Ej0W6xnSkhvE5cSVCZtofiY9YwSeKDSYtV\nmBqT\r\n=Gnzh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fefd0309d7bea91a430a20913f05f501364f2ece","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"11.0.0-canary.bc104bae7.0","@material/base":"11.0.0-canary.bc104bae7.0","@material/shape":"11.0.0-canary.bc104bae7.0","@material/theme":"11.0.0-canary.bc104bae7.0","@material/ripple":"11.0.0-canary.bc104bae7.0","@material/animation":"11.0.0-canary.bc104bae7.0","@material/elevation":"11.0.0-canary.bc104bae7.0","@material/typography":"11.0.0-canary.bc104bae7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0-canary.bc104bae7.0_1618516027229_0.9941487984445023","host":"s3://npm-registry-packages"}},"12.0.0-canary.3f342c3f4.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.3f342c3f4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.3f342c3f4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1641ceff7eef89c521974069bfa9b65431ac7a3e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.3f342c3f4.0.tgz","fileCount":45,"integrity":"sha512-HaHS2GNIFLJlSE+WPicBlG3LeiMY2msoRiXXtXKbX0QuAJUK5FBWnuSUFUybeFhaUxMdyniCYQLQHDQoChWKDA==","signatures":[{"sig":"MEUCIE0px80lcu6OcQw4a7CDDdTu+m2J6e5ybnnV6FeDLVVPAiEA40z66OhwaOaPG6sNuujO/E3NOrlkIi0AnnJA3+wRcH4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106931,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeMRMCRA9TVsSAnZWagAAoBkP/A8Vl22QSK6Dchnfadln\n9tJwGgCdmm2xYIqORclnvV3dUyGszmoKnnHw+vhKL8JBARl5eV6r3nvuzrXU\nRDiKW8Yu2rgv4bTtJvqrwl7+jtDikk3FhpUP4R456CWPerGHjZUkNbb6RoOX\nqw4pasBAHknAKSVDqHgwSsyrhnKlrszeWR0rfrYuJ+JHmnJ/BmbFM4iSAihc\nUuRcvjNdITQGPcF8IRb6quuFCkdou4JGE2/KZalg9CqJq9Yd6gpbq2NetAE9\n74+Tt2JJvFvU5MMI3uAZOhxq+gYsFrV0hph34gcDoOlC+U65CrIM1zLqNRHQ\nQXkZzG1A2t8xRl8EQ3+3fynh6UxaLKmhnLhMIm6qXl2bjR/vS0yj9eoPpilz\n3xHJoWKPYmPrMs+/HINI6Do8R5DhD+f0Jmzwy04ao9m8eZYxtJhNjwq6/J1u\nmA1bTRQ05N2GhJCH3RrDekUI14gnNNVaQjBPcLzzpkB0QmwHqupGjQY+uGbo\n3fn8GS8xb4SFInRjO5R73nAhH91rfcxAITVo3QoQoa0fMzpcpOFew3vnGWog\nSiBPClQAlks5HerzE7zzqK462CtyGUqQSxao5/yTFQjE1U8zjZ+2mIWYcqzH\nZsnX+gqFxfPDTcfM1v0Ev43BUvm0VOaeeNNSMujqU0+CLJOgrJATHLoDrV/X\nOOJk\r\n=pl2Z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d82c002d3f314f99c3413389c77960016a48bfa7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.3f342c3f4.0","@material/base":"12.0.0-canary.3f342c3f4.0","@material/shape":"12.0.0-canary.3f342c3f4.0","@material/theme":"12.0.0-canary.3f342c3f4.0","@material/ripple":"12.0.0-canary.3f342c3f4.0","@material/animation":"12.0.0-canary.3f342c3f4.0","@material/elevation":"12.0.0-canary.3f342c3f4.0","@material/typography":"12.0.0-canary.3f342c3f4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.3f342c3f4.0_1618527307622_0.8499806487903498","host":"s3://npm-registry-packages"}},"11.0.0":{"name":"@material/top-app-bar","version":"11.0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@11.0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ec907a130555900e67c6307d3f22f8e0aaeaf0d7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-11.0.0.tgz","fileCount":44,"integrity":"sha512-ZP8HTNibABYPYJGTx1IBQFeh2JwtLNamdG/T4D3POC3tDWWXwWYgOTCHdkYF82rBmKEXPacA12l3qjKCEvHyJg==","signatures":[{"sig":"MEUCIQDwgjpfxI1ICqHupa+fu642/bKpD/4HLk2ATbSDyKZWcgIgFxvsHDeE55rM2H3FQZ7ZApjB/I/ZsziLR449wZw99mY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106257,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeMVFCRA9TVsSAnZWagAA0QAP/2qSDO3PqpPFv8aFrgZQ\nj4FIslMGF+VlG5nwo1eeos9UjLutH24drB/fVvlqpYY/pkiN/Gn/I9wgvvpE\nK6USGIshm/3TtaU8TN1k7LxEMipQD30uvL5yMxZfGiIQQkQuzZJYO8URBZre\nnJXbVxqZqPD7I/p7Dev803jJFhO+CqUcNb9gyQvlxvjVN1+28XXvA/z64rq6\nYM6+tLALhZfCCj+9A7OBJ5/iUua30cTrKwRYBpFy23/hzJQkk1g4OI2mfiAL\nZ2SwipZ/b8bwe8XxypvYfuWJNq7+ZnYsujqIfwHF15ulVFYq9S3A6nNNQuEI\nixQbYygBlFFjA14D14nLUoDDsqohz+4UXjMNR5J0yJ0kwiAGQ5ELuWaiFuzO\n2zNBhkoWVM1txKU/Q5V7/qjunsNlvT3DVUB6PdzehfDjxzPrHo3znWncptXU\nY+zKI9s8NzVpRBFb0n6ZXXjCVW0xkjzMQm5DeyChnkcpaCpIaunTHwm6v/Tt\nNusmSF89ju2Hakr85C5YEXD0fUAdWpLFqyg2b/T2R5DzTmw4150teCT5O1bj\nh8+kCIA4GO1VC2R7bqf57vZpMQxsmvXvNR73J2hUi/VwWIcyK/VRkdP4/1On\n4x3TdY+scduUCwPs7ZjHg5B1TYVY82Z/LnjwV+GnjRKNpjumUh48qE9U4I6e\n1klr\r\n=MCa0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","gitHead":"3f342c3f4715fd3587f327ce4ea6b5dd314c5c55","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"^11.0.0","@material/base":"^11.0.0","@material/shape":"^11.0.0","@material/theme":"^11.0.0","@material/ripple":"^11.0.0","@material/animation":"^11.0.0","@material/elevation":"^11.0.0","@material/typography":"^11.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_11.0.0_1618527556648_0.46335354380443605","host":"s3://npm-registry-packages"}},"12.0.0-canary.2ebfc5374.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.2ebfc5374.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.2ebfc5374.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"eb6057e9a419e0d4d014dc6c87a21f3ce52c96fa","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.2ebfc5374.0.tgz","fileCount":45,"integrity":"sha512-jEAV8wKa9AOEN0WwwwYdBjvBbtDF5ydTPhnuArSJbSPGj5vn8ih9cOtsIRQwMQjp1/5qpVbvsyEtlHWdoAvtHQ==","signatures":[{"sig":"MEYCIQDmaKagpsZOZbUzbOWJVaKvuecSTTNUkMTrJj/sAXTYLAIhAOgAgKCOBJEJQmUnMzPPyK6oXxMkFuJxnt48wlMZ/BYF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgefeKCRA9TVsSAnZWagAA6HsP/A7VbfhdxVvf4rN6E1d5\nZJ9zSDo5ydoS3S2jkFghOurYMkEVJBbjsSS0fLsMVNZqqll60uXQODwNmyov\n7HHpQdlNYYxgjG7WHHWDVGN3YqbpXXbG2Rb/+035x9MI3GTxq86RDcWZVQsw\nQskapCcaAyJhbYyxfeXRKtf1eT/zju6y4FjPT46E50jqnuH+sQf2V4+mZ4W4\nbWWbLqQ/6xDxHfoje3PnogzhiZh1BgxgBg1aeV50vn9Pqc13ERnpnNSkM8gO\nMI9Ao+hiun1ljKh81/NkkqGrZosU7kPwW6uDT1+8fx4ftTGl1xrPuJw7sQUW\nWBNdoNKgVUHYu2mxiKXQakXDz4eOIliVY+Kc+V8mbsQGjSOyxCO45yXIArLV\nBEmwrIvGjRlMbNPhWglbMRc8v83x+9fSR1FlG1aQY61bXoHri/IHSeC+SfCQ\nX5wVAwkmwqRooa/61cAd4P1FZhkRDmJKz6nixTojFw5+VUxzaGvWRjWZlCzW\nBTKM+KBwlcmmsnTMnxMxo7XfCFtGf1TUad3dzLI9n+V6nydf4xbsmQFG5miy\nykUbGthNoMHmcOsnpBGaDQcwaeDFjstfsbfJH7XJ4+rMOmvPmX5DetDqR5NX\nCWNXk5ybU8VrA6GA44My2Td00K27SZCMLLQJC/2je/2zyBB+ReDtOTDJrU4d\nY+Cb\r\n=Qqy2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"603bba9493212a7e1b6350d2f12e7488ae1d9594","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.2ebfc5374.0","@material/base":"12.0.0-canary.2ebfc5374.0","@material/shape":"12.0.0-canary.2ebfc5374.0","@material/theme":"12.0.0-canary.2ebfc5374.0","@material/ripple":"12.0.0-canary.2ebfc5374.0","@material/animation":"12.0.0-canary.2ebfc5374.0","@material/elevation":"12.0.0-canary.2ebfc5374.0","@material/typography":"12.0.0-canary.2ebfc5374.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.2ebfc5374.0_1618605960897_0.7790839374717524","host":"s3://npm-registry-packages"}},"12.0.0-canary.5631828e1.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.5631828e1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.5631828e1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7b3c47200957ed800ef2bb1e7b6eb9ffd54974fa","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.5631828e1.0.tgz","fileCount":45,"integrity":"sha512-eEV44eQ5BtcEZY05CJm98sBxcLgzdnQD39q+9etwoYVdcOWVcA8L3NFix+qaVJ4kO2mQYG+BBvlW4j+73661Aw==","signatures":[{"sig":"MEUCIQCgThkSz3ZHHWZouD77sYjwDz6KQTIeEOO/0MoAgbvHjwIgGbLg1xcNyf54MUkhP8CUhoGh3RcWj77fQit6WUVxvQs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgepKnCRA9TVsSAnZWagAA2ZIP/iy6OSzIwvDH6tngs153\nW2SQLrOjFw7px1yvc92eOadgqc2r1QxXxo282XJsuYVp+ZAT7U8IcCYhgvAP\naLILt4VQbuQnT4cwKD+KTXVzneGa9ShnbImvFt+4+VCI8ddg0kbRhxeR5oAu\n0nfAJxFs92AwEMwk1REOW1jj9iF1Sw0YIV7ocvYSOoQ382mYaWoqO1TTqLsx\nQGT/87WKpbFTVRqD+WFpjd/dtcDAth4l9DHqURXKPacYlfug3IPlMWXXw95O\ncfXTwT6gqg5sYuIGvCXvhYwlnB4b7z4CfuoMEMiHUTIszFe4JiEnWmk+qfrB\nuvEBE3k+rdvRvjgEpkjekgFnc/Ya68zBshlhb2vNhEYAKtn7tgzhovf/+lcH\njI9bV80CaF8pZl2thABBhC53QwazLr+4aKjTVxILAios5+6pRRtQKhOY8gx2\nZO366WsQuSt1T3vN0iisBWVD0a7HHKpFRpcjE9Ef+gWXhyQHj9ItbAt26QEW\nEVURnI6uKKR/ax/ozz6hwA0/h1qxypULTLIv9VhYC63+Zx6lsvsJuV3SgrEf\n3ZmkezwfvoC6CqW3Bie8KlANivDXD+98joZCdRsLvP5yR8JmeDF04DT15WFa\nwJUEpHkmEqwMBs2/f5mUsPU2AKerm+BZhI/vMewgDqCaUeF27VW9BCmxO94I\nHPMI\r\n=YkeE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"497e1a2527ce0368b4038766ea4893675ced3523","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.5631828e1.0","@material/base":"12.0.0-canary.5631828e1.0","@material/shape":"12.0.0-canary.5631828e1.0","@material/theme":"12.0.0-canary.5631828e1.0","@material/ripple":"12.0.0-canary.5631828e1.0","@material/animation":"12.0.0-canary.5631828e1.0","@material/elevation":"12.0.0-canary.5631828e1.0","@material/typography":"12.0.0-canary.5631828e1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.5631828e1.0_1618645670812_0.18534405334917725","host":"s3://npm-registry-packages"}},"12.0.0-canary.bd685395b.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.bd685395b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.bd685395b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"734725d2605aafa35ad9d123ec3c6ca28fc5d229","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.bd685395b.0.tgz","fileCount":45,"integrity":"sha512-X9SldmWo/bJC9vUBbdDhRjFReWQmMTLdTDh9j86p90vHJu1jT3c3t5e0MUX9a1lVMFiem0zHDvGd3kb7/XLtLQ==","signatures":[{"sig":"MEUCIQDJ/EILpBBTMbMBBQxdF69/ML2xVgcFe1ew6IM2XbebTwIgGaKlHAz1UHktnQX7XJdkniusUdKJkkpwiCqarYDnRQ0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfc8FCRA9TVsSAnZWagAA1lwP/RDo6LtPi8MuqOvC57Oi\ngIDlIW+y3CLazRgZcH+SZfPg1hFRcZhwS9D1onLFD0lcIjibLGBTVz8via9h\nnmAUhK7DMq7O82zXXrtdWj8gLGZ4MdJnGipZ6ki618XFZ4b9T1SV6sxgaMg1\nTV8gEkRrFoUS4FA2B2Yse/F4ULn/QM9XBY47KHKc69li71f4IxcZnqtzEGBo\naEZwzbjsLbiZ2dgMgde+FGlzfcAgcfAvicIYA4UgpcheI0QhVVLaneuzAaRT\nJSOumouZslEmcvOPXzrrOVIYgVLducOeIBjt/E6izHXyWW2sGzvbSx+o0VHv\neYlKdQ813tTSmCzFMpAX1Pjg2sX4ghLJgYQGkNhMq5erPtM6W/eZRu6nHcUb\nH5dedsxwSGilCmbihgsR0hQz0jzEZ4R2X3hR15phGgomLOEggci5mQta611A\nkK1x+7MPy9qODwTPNuUCUs8BBjvulm+XE6sSutxMMeD9gS5drwA5J96cF+63\nMfgbPZknlnwiKyRPGuR/fed2XRD2F3XM176zIeO9FfxxrtsFDak6FnrxLOtG\nJkqYHQ4lA3+OWdLsslMj9XYsrDlxZvq1pXjiKOhu2Z8yxlE1dqucN31EBfv3\nF+8S7g1uuB+JU3n9XLzlxx8HOeeCpLXNg19VOpeUN5E9mPS4RkDFWresf2IH\nQJqE\r\n=M+Db\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"69c7d9ec7c5de65144c3b2a9b283b6baf7af107a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.bd685395b.0","@material/base":"12.0.0-canary.bd685395b.0","@material/shape":"12.0.0-canary.bd685395b.0","@material/theme":"12.0.0-canary.bd685395b.0","@material/ripple":"12.0.0-canary.bd685395b.0","@material/animation":"12.0.0-canary.bd685395b.0","@material/elevation":"12.0.0-canary.bd685395b.0","@material/typography":"12.0.0-canary.bd685395b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.bd685395b.0_1618857732602_0.1583456855617409","host":"s3://npm-registry-packages"}},"12.0.0-canary.b52196498.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.b52196498.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.b52196498.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8f99fc92f49639a6471bdd5759fa91f72de8d771","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.b52196498.0.tgz","fileCount":45,"integrity":"sha512-qEKRWk5WonMZYKg6+5VIJs0WSafkuS+Jf3KEMKpUIeUQaaLaVLNUF24mFJlwFpDSQ25EmAAuM6buZHdNXZeyzA==","signatures":[{"sig":"MEYCIQDw3ME+S/ttQAbUaAm/y34vCTAwA2PSwXNCYnu1at9t7gIhANGTPt4PF2EoHwC0fHN9xLH9YXmL8nS47TjVdHinkf2H","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfeD0CRA9TVsSAnZWagAAOzQQAIFHYkh5c/icR8aS6AhL\nTTJKVGa3SHD3Kr/gfQQwFpfNtNEMLdNtIYi3PyGw4d5KqsTxwmQFOLvs8P+3\n4WFp1eV+SdI1nsRnWu4voUp7gkYgJ29ZK1UG6QQ0SIZLbMftDqVDnDGi45Mo\nPDKUkdOA5lTZy+ezRChMN0Uxvq1u/90g2GUJ547YGvnxFBIiP9UEKCXxL2zC\nWV+ZGIugHcog3VVdzBhi1iS7FlOOHIKc/ry+8/z+3z8dEl3ygtLwmzCU+ix4\n1yzzLCaBmRUeHllVLZbng5BtTyILkHvnFTZ1+cH74FFjo1DagSBFxuGbR779\nbaliJ6QKGzJQlENAtumKoWAITDwyNisjjpeKiIOkMxAUMz10RPI3DxXAgPEd\n7rPFwqIge6khPDsYRcFnfmnqpskIcA6MZ3ITcBnm8/h64EAM3zA61n2+l+Ut\niIGoHMdDFg6FGDiwJCgYdvkmSjAq6UJYZsJ3313jQ4vj6aAV3RVNfzxOnOpR\nBk1VhZovORM6sKxpQMsHwyKWF4/BOv2QM3acnYlWpAxoiYJ4JAu9r4hy9KfB\nFlFcanjap03LApPcky3WkI+UB7rI4GHYFl+xbz4OVqUuT/FQDjk7aUR7LWxb\nI0/DhwSnQpIC45kWuF2pkU57G7XrBgu+RI2XV8eY7uV56AVJOkMNPBM0Gffs\nzLf0\r\n=pd3z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"953cfdd3bde4c66a4b6b90171d4ee702958ae1c4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.b52196498.0","@material/base":"12.0.0-canary.b52196498.0","@material/shape":"12.0.0-canary.b52196498.0","@material/theme":"12.0.0-canary.b52196498.0","@material/ripple":"12.0.0-canary.b52196498.0","@material/animation":"12.0.0-canary.b52196498.0","@material/elevation":"12.0.0-canary.b52196498.0","@material/typography":"12.0.0-canary.b52196498.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.b52196498.0_1618862324203_0.17736466625767378","host":"s3://npm-registry-packages"}},"12.0.0-canary.8ba3e298c.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.8ba3e298c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.8ba3e298c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"459ded609d24bffd2ec2011c0d40a12cb527e5e7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.8ba3e298c.0.tgz","fileCount":45,"integrity":"sha512-KPI+Xqs57qybEwbrLGcoH49saqYxfLZO8vf95sPXHrJtSmE+Rmfwy9DwP0uMyj/2k58UhSF4Ac6DBIJ0/jNJKg==","signatures":[{"sig":"MEQCIDNc3zfch/JpUzyLttoz9jaLBgcS6Nss7s5gA7adTsIjAiBCK4FOcp0tJJIj9NXiclagmYKdYVeLKocBE3Y2t8AZIw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggDIeCRA9TVsSAnZWagAAR+8P/jzzSNxDp5i5rZzpIMIk\nSM0z2cOmiO9Sd4KjxDScDWqoo3ZvOWYvCc08cVg97MNp3pm77vp3gUe5Fo+5\nvNGZ3FfJA/xqJeBhn9WGwbn5ln1JXo7VgcfZFLq1sNfb8HINO1E3OIJfSPrU\nV/qF2XVzEluCWlcBL+5O9WWC8yKRjETBPNud6LYr4pOIrciNLohVz9mD7wlA\nUhoKF8eVhIWTj7Bt3vdukCEE45EG29cKPDLT/QaOEqWjHURxaUP28cFG1btK\njTlXSXKvLCcIAcx6ygsh1nFUJViovK/RerzRNZcfZQGPvp/jWuCkA0iKuoA8\nJUUmcB2rbo9t/YDPnlrh53wv5TD5cpbTqXx/pjFQtADEwgqmIp0+wUMXDZ6e\noalGRJCLnemGjC9wPDUtJCwkf00jLsDLXXLL0IWMFHNHAxphYl6Y9M51V6gT\nm5omet3kg6WPq9Nu+55phbXiy7qvHThP/dcgWyKSSFAr7feTjUjuzBv/85KE\nNqEB03g4kfqHbja/GooNKh0rW6MQ03iXQ+4+RHg/kIgBjarU0b7Ej6mYPmU2\nTSUgmS/9wKqeZmfFlqgTEpTDc14403D0zFs042PO7LiynuKrmMz/nUYbsUrn\n6FK2c6cQ5cgesxwFXNzV86aAUbo6PrCUgc0CNk4/Yk6mmCVzoY+lIMXIzbOf\n+plC\r\n=k17L\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"206fcb6cb686d5de97867cb4e4005926e2a94501","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.8ba3e298c.0","@material/base":"12.0.0-canary.8ba3e298c.0","@material/shape":"12.0.0-canary.8ba3e298c.0","@material/theme":"12.0.0-canary.8ba3e298c.0","@material/ripple":"12.0.0-canary.8ba3e298c.0","@material/animation":"12.0.0-canary.8ba3e298c.0","@material/elevation":"12.0.0-canary.8ba3e298c.0","@material/typography":"12.0.0-canary.8ba3e298c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.8ba3e298c.0_1619014173743_0.011829951586449505","host":"s3://npm-registry-packages"}},"12.0.0-canary.c629eab71.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.c629eab71.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.c629eab71.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4200f73277d35d670133ae69c2fc171ef26bec1f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.c629eab71.0.tgz","fileCount":45,"integrity":"sha512-+17PJfCQMGmS7xJ0cHfIsoJqkWb2PMFehhA7UpscxIXi+DPa4x+hSRN5fMIVJfbkBF+C1FuCHMeMkQZDjmHf3A==","signatures":[{"sig":"MEYCIQDBLo/PDfifQPTRSUQNjEjNpY3NNLC2ciexG2VYvW3VigIhAJr3FAkVe2h6XhYYceA5KFeSJQw/DuPpNCcMgQj/aeuR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggIPPCRA9TVsSAnZWagAA+iwP/1H3v2/bOrXIktEljuzL\nNf7NfGEsZ2nZe4kJ4GjqpEvcN84+K+GNFTPfN14F1Q4mNKKFKWmPH2mLFNS5\nQJwvFTRwafPRzHqfvE+z7yWzktRj8cd3R3aF91Z8/UwdwkZ/Xbi5yJyX9nSj\nRlbTQpa+w1SlOBcIh4XoXgsAlLt8O52L8CD+/fD0NQJoel/8dJ1Bb26uAdhp\n647TxfK4OFHGsmt/HSuzxU1N+6UEsJ+3mtVfiDwzFahpy4BSmJADLBWJlctB\nb1G/YTm/mEE4zg7wnZNaW1bVKSzPwRAAJq4woCnXN0R+wwdAh6mpjufBmv5f\nfs5Q/b57kciglF3o7VuChBIcgdzdH0PzRkVPR4SnRWZXQ7l7rdodZTzMpCHa\nAdP2uaAxRTfLuaecOFKxKWFYVuSP7mhcYbA5VOX9gx0J5sN5rJZHoFWPfNAu\nR7WSy1Yzr/l1LjRWbOFc9KYJFoY9Fdt+4/8FSjjsyzRSKOvMxExoYTUTrVfl\nS5ERjoWqa/FiWODqp27ZcN7ejuTyzz4lmr9iyQlMg/zIYXTrw7AcHJv0dy55\n0PbVnqaUKOM6QzXFMjA4ymhXnP7eZQLWddnUPLLd3ID4VlH4B1gn31PaVCUR\nUV391x7ZP7vfQHQ4xB1Mn0TFZKM+WH21qIcum8Xfay+L8W6TbQP1WkVNfpkQ\n6u1f\r\n=cH88\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"13ae4a821cd20abff4520de3f38c689af7cd0edc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.c629eab71.0","@material/base":"12.0.0-canary.c629eab71.0","@material/shape":"12.0.0-canary.c629eab71.0","@material/theme":"12.0.0-canary.c629eab71.0","@material/ripple":"12.0.0-canary.c629eab71.0","@material/animation":"12.0.0-canary.c629eab71.0","@material/elevation":"12.0.0-canary.c629eab71.0","@material/typography":"12.0.0-canary.c629eab71.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.c629eab71.0_1619035086860_0.0012996706020618198","host":"s3://npm-registry-packages"}},"12.0.0-canary.8ace3b810.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.8ace3b810.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.8ace3b810.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1312a881d2ba6c2dd6f7272c829b8eeb6b98810f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.8ace3b810.0.tgz","fileCount":45,"integrity":"sha512-wyoKAkFiN+5pLjUx36fyY8LRJp4Rfqu9pFnIYHciU0dZ432vWkh5ZpLZDk5xGjO6mEGjDxjIdigrP2thQLm+AQ==","signatures":[{"sig":"MEUCIQDaj2YIU8EvqD/XmHDgQZBiIqIuRhlI8APNV0S8pnkqSgIgKjp1vywTA9XEnCLpb812HaaJMZ1Pn/TXV5Fm8uXnrSg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggI1YCRA9TVsSAnZWagAALa0P/jLBWPxS7Mq+HiU1KEuY\nfdYFTvDn/XkVHcDDh44x/BcKOZJya5nEHeXeOy/rOTfIdzQHEOqdI7TW9LPp\nx3Lz+hFlezDS3GylyWADxokZ8JfQg97lBTG3wBGFcvrRLa5S2AqeZb2cmBJ0\nHqZvvUE/hdejtGVm24hAa9fZ9C/cMDjjEIW9bhfZmRXwVjnnuVCqPq7XI86B\nJpT7u+Nu/Z8Rmlyjtc5oOJKthxCnd+9s88wHBxPsJP6v2r64bHTd1OXR7RZ4\nKtQoimiOgL1cPL5AqrMQPKISx+mysZpGv7vZDMnUr76vHC+Js0b5Iu7UydQY\nIFqxc7v2zHNsapVCFj1rGwB4czNsRhfXlCyCIneL1LSu4p/5+KPObl5hHLkF\nBqpD/NyzIvrjbQBZ5VJW/PpxVC8M5S80l9Ktku6mRhIswGuAUXrGXH2WcRZ6\nJbP1KYNZTjwmvB4ImQwKKyeWMap1pEY/gM2g+YGeh2E8dGs6gC9kLtD0vYfq\nUZWutoHklGXDEcG95VSFm8r2NrTX0AuL6gfygXqRLXsd/nZVDwAwG+mHvGyb\nIBlHhmnwNXw+aAoClcQIV1d9xVfO9Jg0qMV3Q21dYNrODRlkB2aBsfWMN1OS\nFv8J++82ph7C4HpXPPUFaQRq3G7xjQN3dblg0xj1R8/hfEoOCh3LGtc0V/uy\n6XLL\r\n=7Dif\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"622173e8e2308a6104e06bf943b6423381a17e5e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.8ace3b810.0","@material/base":"12.0.0-canary.8ace3b810.0","@material/shape":"12.0.0-canary.8ace3b810.0","@material/theme":"12.0.0-canary.8ace3b810.0","@material/ripple":"12.0.0-canary.8ace3b810.0","@material/animation":"12.0.0-canary.8ace3b810.0","@material/elevation":"12.0.0-canary.8ace3b810.0","@material/typography":"12.0.0-canary.8ace3b810.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.8ace3b810.0_1619037528311_0.9750899535777278","host":"s3://npm-registry-packages"}},"12.0.0-canary.70beaf42d.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.70beaf42d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.70beaf42d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8deaa130bc553fd720c6f17c4860147ec7a0a46d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.70beaf42d.0.tgz","fileCount":45,"integrity":"sha512-AOfuYrhiREssL6k5KEUooK78GQMnNT5WHTcve+MjkqTC0ch7VUP2fshgIVkr/R4CLs+aShsbbzic6lF2pgX7eg==","signatures":[{"sig":"MEUCIDYcFq44Rd4E/bm62L/ci+CyKt2MEXa1WIa/zpLhZDZ3AiEA/lK6O1s5Ea7zVFuZPwas7BokNufWYVtVb8i0YT1k/NY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggJALCRA9TVsSAnZWagAAfoUP/jvfPw0oSAcEgAZtixzQ\n9D4UgfpBM+vUQHxrPSHT/zkHeZ8U7PIPmJUIEq4RcW6TWCMdp6EP0B+JXXql\nC8HnagYI7O6kujdYmoxFbJYLqf0D5ksJbw6Oab7RHkCp1Bu/RBqp+N+OQSMZ\na4QJypMgZNgyAWmdklD86n8yBvjA8QgT6Lg75DUpqyYb7LJtLZyyHM6H5ZGF\n9KfH3wa09g5Lpheg3RhuzAnHvb6/Sq2tLoy4I51C/PaYUI7QW1fOhc67x2sQ\ncVT8/YBXCGFGzya9sCUdMkacFmrbVzUQ1W8a7uKt8IaGAkvi9aZLqivaXOen\nHLRK++ioiVMMstPqghnOgiEIZcGqlovoQN3HyjNc3XICHr+8DKwzNUvESEDS\nxZSi7FMxFfj89CPdK3ovWqqMI4/CbTT79zYehy0DSqbLrNA8lJwEIkA116xN\n8dRqw3L5PokmemKw1bvLxL0GjMYHbnK3aeUjaw6Hm4TWrx5LGtrnTCkq3ugb\ncxXw/v18uKZHQyZXqCeLr+CRWumNCHUW9HgYLfpGQxyvJAD4fXYB/7q5q7o6\nP+7V1jNlPCrp42DRiEteHg+nUKTinW3Vq9D6qHvuZcm2qwtrQ3pSH5/ju38Y\no2YlxlQOCpieB+pYXjVIvBXIoNuS6IAw00UlB4dp7OXQqUPU4ki7XXNQ4Q7B\nvD4W\r\n=dY0v\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c5b29092fb8fcd0102b908417d8ed3d61c3448f5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.70beaf42d.0","@material/base":"12.0.0-canary.70beaf42d.0","@material/shape":"12.0.0-canary.70beaf42d.0","@material/theme":"12.0.0-canary.70beaf42d.0","@material/ripple":"12.0.0-canary.70beaf42d.0","@material/animation":"12.0.0-canary.70beaf42d.0","@material/elevation":"12.0.0-canary.70beaf42d.0","@material/typography":"12.0.0-canary.70beaf42d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.70beaf42d.0_1619038219334_0.29125163339084525","host":"s3://npm-registry-packages"}},"12.0.0-canary.cad489689.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.cad489689.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.cad489689.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d809f8f3ca315d1a8af27ebf0c086a6a0baeda55","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.cad489689.0.tgz","fileCount":45,"integrity":"sha512-9Okm+zO40nGzsVeZFywe4h7sZounGB4SCFJKOWzIkv5FAwTgpOESKNYcmQmP6lDecjy8DQaqyGuP/3JF0/A8Og==","signatures":[{"sig":"MEUCIQDylzrtJM9Z6KDZ61WgprFXBOCBmgvdkKH7WZPCX22WAQIgChQHCSdcAUDSQZgY3a9ZPWBXHVQJWOmC+92k76BnBgE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggalTCRA9TVsSAnZWagAAa/oP/jmwGWcOv/2VmH7/mPcz\niJLtc+jk5eB78SNeN+Spe8AmrflQySbTNQiU48VO6GzHbQyc+Dz9Kb2lOSD4\noujxEzMRaZbQs/f2n2tDLlqy3wOrt7hDkbkzOr+jh7PRFsyddIW44UKcQLk+\nOPQAEzBAER6AdzYEA3LRBPx5p/5zjGq4wHGcwpKzZnLuk8cRMfXAGWS93c07\nA20tYsSC/B++XTdsIw1U2QGYjCsCnWX9aX6I96KpT2+VOR6UG5ovfKxh04Y3\nQvEMT/hPqh/61REuP4H4PZH2LyuN6T1FasZepOIlZ9Os/9DZM31GZaqhLAsg\nwFs+Cfww7puzaxnCEyZlhnRJCABAl55hJYHCbOuxMDQc6huQuHnIkB06libY\nJGUYH4OQRKTvQV2+iY0xOy8uoDrzEyumnEGHybgI5D9wC2rm7oeCtaRNnxyu\nI/qAgdJEOvhwNTuqwPMikqyWdK1EWgjEQjzoWKLaoL8O/CkrKKqazTtLFBVQ\n9s4pgopZBGtGiYGCH8LaCBd5Lfnb1ZQEgu1pEbMz+ZayXxS9+2fOknI+bo9K\nwITd0LT6lfStKBPy35nipNLRBNqjx2hjfcfxBOJxnYc9n98fdll8jE1hJ/g4\nlGY0pCLv4F2jbIuSWInoeunuitocBdS0Qv0VFQFzOQXg0WCEcwsdpGqzWm9P\nqrL4\r\n=KXVY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3e5c20e059b33965b63d0073bed7e300c57d5781","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.cad489689.0","@material/base":"12.0.0-canary.cad489689.0","@material/shape":"12.0.0-canary.cad489689.0","@material/theme":"12.0.0-canary.cad489689.0","@material/ripple":"12.0.0-canary.cad489689.0","@material/animation":"12.0.0-canary.cad489689.0","@material/elevation":"12.0.0-canary.cad489689.0","@material/typography":"12.0.0-canary.cad489689.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.cad489689.0_1619110227387_0.024885691874343197","host":"s3://npm-registry-packages"}},"12.0.0-canary.d928692b5.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.d928692b5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.d928692b5.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"69f51d46b8d7f6c5abb9244e2a11db79004f20e8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.d928692b5.0.tgz","fileCount":45,"integrity":"sha512-8/HPKlqdyLl2OW3xvxmGEGhatQR3pEX/OfC6cMkgQKOvCpdIvPJS0f6bfgWTDc0PSG2COEeg0Ya76Bzj2c4KgQ==","signatures":[{"sig":"MEYCIQDKsQDYHkwFMFmClQUW8LkwfnEP7LUbe5wpKKb20YbzBgIhAJxZeiUzER5AVtllbDiKeo7ioqjTts3mjLfMpcVu/rJc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggwVhCRA9TVsSAnZWagAAWT8P/jcyNhy7M0+R24guJ4s0\nWWP0BAwHr8rMSEDrJ5z2Cj1MS9Xs1PO3e1IjP0DijZN69HUoWRAwPh/8unU9\nPruoZAa/2PXHXOarM8Qt9phkBdy8DqYFGb/zMcxV4ZgHZQ2pdRQnRV6orw/b\nKJaVSDmGbj/xQ71YYvX7RtKPWhC2HC9/xYmdYNNgZg5flV5YQW58e31SYwKO\nS0N3Mj9tgu7SDOUhHYbUab1FAawDIMRomLgo26/NrjGCzG04Bb6BO9wFqY1l\npDilwtT7j45OiktM9B+/xzL8oyKdb1qpc5YWiNas8QDbbmsN1Kc83Lq47gUp\nWWHG+w1Eo0B63C/btlbze4rixWXhDL5QxTfVv+yZhmCwA/zTb8DNBesQ/37e\nxH8aSmZmW3V4rgymP3xn45vs3sy052AsUKMTFzwFt/3ie/dytdixhWYn3116\n/yzSV0sFqEPNt0hoyiMyQDfD+DiF/ADcc1qTplaeCY9jemZI6TIBKNeWUfCm\ncITpxRzoPZ7cbK9dzSv3pkLjIi9DWQs3tbxfc63RA95h34YiuB8U50Yu/TWp\nl3uw4yZe2r2zjt+cVqiOszt4rh0AaKiidb8VDmiMXV2qUG3wTFFhDjGF0AHi\nD5NcC4fqCLssbx4KHIYqkP89rLzyy1fWVDEnA8Bd8kPnXDvpW48GcGz1Z23W\n3wlW\r\n=uJep\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ced6a0237d36ed84c4d277fc25a11d9453108e12","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.d928692b5.0","@material/base":"12.0.0-canary.d928692b5.0","@material/shape":"12.0.0-canary.d928692b5.0","@material/theme":"12.0.0-canary.d928692b5.0","@material/ripple":"12.0.0-canary.d928692b5.0","@material/animation":"12.0.0-canary.d928692b5.0","@material/elevation":"12.0.0-canary.d928692b5.0","@material/typography":"12.0.0-canary.d928692b5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.d928692b5.0_1619199329035_0.7951876946316323","host":"s3://npm-registry-packages"}},"12.0.0-canary.8f68de8f3.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.8f68de8f3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.8f68de8f3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"51f276377c534fcad65fd2a9b006d9413afa581b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.8f68de8f3.0.tgz","fileCount":45,"integrity":"sha512-ba1jyXWrZBAdk7FCScqo9LWWD7XtsFuJHFzn7sm/yuZnSayq/L7iXWBIL/634fSa4MNrc19ifM56A+iV2wue6A==","signatures":[{"sig":"MEQCIAav5OLTe+oGud3yTiMz9jpiTiu9m0QDon00V8yYYOwXAiA8q6fZeHCutd1rQP6Cw+NH+CbRHEL8MCcoRUS2Vs1HdQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggw50CRA9TVsSAnZWagAAjFYP/jogafmp/qKAwNbIOQZz\n5jNpOQMrZKBmpt1WIMenWB/Dm3pNssqoG+k5oeUEIeQx9g60k9BxsD3oVF2d\nHtWLdV58RrgEsHzyXqJJpm8hsKkoBUZhM+x/vXhLmpdlWCuVKgNqD4PCYUZA\n+eeJV11XocDKIlnbIarHSR3YDxXRTIQC+PFGCU2EzOxG/dBNyDm68gM1//Vn\n0sEAHTI19MLeWsvfZN+Xe3m/Frv9qVo39K+RToEQPd+M+1o4lR6jzYtE0Egn\nqd24p3AydPNHtT/+5NG2tUlpbg27XKEEQrJ5PxEnHww3+Rl8jQWqzwnXX8ls\nCJCxC0NVc190b8aVqmLMVxZXfC5WnslDiBSlYhVnJKc9Bk97ArWGANisA8+0\n4w3X1dfeNXbhA8VenW4FkCQzEIToiXwbFIhpXFxQ+PWnhCne4ICmIOYv8Ery\nWP1y7T6ujcEgtON7rcXyFbtH2MeKj6iTrKPWmRveujY9xJiOK0MJPRDqTrtq\nvBXQgKoMHYxYWXNTxGKtFhHgYtyt+3H6EK5GD7q21RWvsq6nCO/usHcqljbM\nsnmx9y5uj7HNaXP7J2FNbbvLsxerjgLIwsQHaV03s8+mqAhmqarK7h7d56vM\nFysKctYJmJdDUjqvFddmzj3V+iD2s1uHdAmU+XwUU8ykOBNZFub08d1/OVFh\nDwuc\r\n=1xIa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5bf06e910f57a544c428d7559d72d5fc2a5f30e9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.8f68de8f3.0","@material/base":"12.0.0-canary.8f68de8f3.0","@material/shape":"12.0.0-canary.8f68de8f3.0","@material/theme":"12.0.0-canary.8f68de8f3.0","@material/ripple":"12.0.0-canary.8f68de8f3.0","@material/animation":"12.0.0-canary.8f68de8f3.0","@material/elevation":"12.0.0-canary.8f68de8f3.0","@material/typography":"12.0.0-canary.8f68de8f3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.8f68de8f3.0_1619201651448_0.15756721447673439","host":"s3://npm-registry-packages"}},"12.0.0-canary.05753cf77.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.05753cf77.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.05753cf77.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0f8c93219899a48c931d405a719314d72093cc2d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.05753cf77.0.tgz","fileCount":45,"integrity":"sha512-fNQ+vYBMy0Xry6zZNCUtyz9z/OlrOSRu6kCqVvCfylT7Dr7y/NpcVoJkI61i5uJUICgRKHlQwjr6+2089qCUDw==","signatures":[{"sig":"MEYCIQCv9iucNCj8XcXNegcMZ4rWqOFwfNJL/o6gbNgf8xls0AIhAP8UkOSKozvE4K0g2xOWksMbHnc5XHvdimCESC2OPtgQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgg1vHCRA9TVsSAnZWagAACVoP/A9C3O1IppRRACG4Iphd\n0qncCyn6Whe6wVlsbzyM9eYzibe8x1tMl4Ek/7rfgQtoRUFp4QCmLR/Mm+VA\naSd8Ggpr3ronfIcxumsHMsB5YyU9Nu+0Ez2n+MXzIOW8YTX7m2JF1x/w8oQe\nTpFf4mrsqoPbmheOvrLtDHhNfwnZMuSyObBU/NUvQrJOfkGv+a3S9NtE3S76\nr1g1BLX3Sx5EvKnQs32+ffNZr7yCpooM9u5iLMfX0tE9BJosG08kLgzBxiU/\n8GwdsaU/cXxeLZx7VuDwLNkfddsyx16uq1/UR0kizsvoEMk/I1WAhXfJ54VX\n2JLrjts7BDC5beJEMYorlJlk1WAQ2DOeYWibMky4uPWaAAw8HrOU0he/5cKV\nCLH3QhXCy0D7acl3OpizhFMvOw5sLwRPUfe8m9Vw+4nvWG8mOBumfVVDinVC\n7BaBmmhqg2bEyipaYSnhoJqL2c6uNOff1UCFw+DMoPiabdrrd1rNVmB3AL/w\ncsu6Ta5VbcRuEJY/bbp8pjw6lqSDOGnfBpvkKFFuNuk8lRPFbMRjLUOcocDm\nbk+5R6EdV77DGWCqNIs0KT8LAbrolj/Sl1VSIiT0Sxv3P/3D8MRRcKyuO2BK\nnx2FzwIihm2frS/CPyq4zwlPtLjHizpgYz8n5Vx0CzXruFZZATSrHgV0zKrq\n+a7N\r\n=RpBe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3557c74d7c4f9400f0a8d2c88bc2610c1d600199","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.05753cf77.0","@material/base":"12.0.0-canary.05753cf77.0","@material/shape":"12.0.0-canary.05753cf77.0","@material/theme":"12.0.0-canary.05753cf77.0","@material/ripple":"12.0.0-canary.05753cf77.0","@material/animation":"12.0.0-canary.05753cf77.0","@material/elevation":"12.0.0-canary.05753cf77.0","@material/typography":"12.0.0-canary.05753cf77.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.05753cf77.0_1619221446859_0.8989746068075706","host":"s3://npm-registry-packages"}},"12.0.0-canary.ef43e6d96.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.ef43e6d96.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.ef43e6d96.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4e173f74efaf3195ae56d8b624cc1c9ec0e6cbb0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.ef43e6d96.0.tgz","fileCount":45,"integrity":"sha512-r+d1hQq7BtASijCGM/1izR7TyTUJKoJs76hJtTl4UxGnQUFJF8nViHidbo+dYj3ozbAiQG4XqSDUZvSEgaTU2w==","signatures":[{"sig":"MEYCIQCNxhUm0Yg/PNj3HvX3mzaEiL4+I/mFw3sbHy5YWX+8OwIhAITMp59R71RftqA11adLitffgCX4IQQbOVdkVg+jaPcD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgg10/CRA9TVsSAnZWagAAACYP/3a2RQ1PYbCdzzcAzVJH\ngetbccL6XYZoarA/abJ2aH2XeVihgrbKigEWo7n5zpbFCjsE/9vYnQ8O3pbA\nsvmwGGzd4eKA9SyBiGqZ+dy/1zPjATIBSGym4gADu16rkhMKN2rqYcBP0SjQ\nMS2izKLDd8ShYVkp18tIv6dyzxtnbhl8RiJjSsShb9bzWpy1VTd/yix3psAw\nL28Pe5Ay8o7QKYf9STteWgKu32iwzwp5+d2xZvBeYu8sLTIMhd1C1/Dsq/Oc\nzhIxnY92ygQf4DmdeNhyQ8mu/bR3g9lNtlASu6DP6YB0Jn0QkQHExFGU29/t\nLMVfOIz80UG+sJgwgJ+PejhCvqAtvzpyN7r1tnTnAHjok3RSFxnxcNcL2bSm\nrDHnsZAQldK/TRUYmvsFKT/8faVSaqNibdzPjERNEN9GDFWEDF7ouxAYea2M\neySJZ3q4tirOmQ3NV3b/wEW1PRAgYrUF9Hj1OyIV9NWLLtbKmjC8qpehuFwG\nRtaH5GnyIQ9j7JwlQk8w97eN0R5uOqdOLb6O/4vGvw3AXdxEIqeo1IWCuOQs\nZY24r7SYG5gha5n9jdg8ekjXkJdllWCqbylkE2u5+0s2dNRkeNJ7ogZWntj4\nKcXjRBeCM6HNnWRQY5JGMKvRUeLa1utvK7gZW6JSo8sfsnY5QPPLxXi7V+C8\n8HF8\r\n=HGBl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bf61e37f943b49cb1c3287501ad6fc31f8c88687","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.ef43e6d96.0","@material/base":"12.0.0-canary.ef43e6d96.0","@material/shape":"12.0.0-canary.ef43e6d96.0","@material/theme":"12.0.0-canary.ef43e6d96.0","@material/ripple":"12.0.0-canary.ef43e6d96.0","@material/animation":"12.0.0-canary.ef43e6d96.0","@material/elevation":"12.0.0-canary.ef43e6d96.0","@material/typography":"12.0.0-canary.ef43e6d96.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.ef43e6d96.0_1619221822763_0.27011014455376325","host":"s3://npm-registry-packages"}},"12.0.0-canary.197f64fa2.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.197f64fa2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.197f64fa2.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"abe150940f54e497954b18f8c4caebcb68c60304","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.197f64fa2.0.tgz","fileCount":45,"integrity":"sha512-g27K1BFloCYyLrgnBkfzjIZayeUxGiu5KqgZ03f7swE1s/2isk2FDZdx15boixS/4NpaT8RiC9aZqki/j98F6g==","signatures":[{"sig":"MEQCIDeGLfpwmxqq78j7/pBhaFtMLubInbjdzu7VMpyoXWwDAiBV0ilRI1d6FP4zJmAaUdNL4LnO2AdZb8JXGlJza4NR9w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghvQbCRA9TVsSAnZWagAAXMsP/jEpJ80OA4j6bW/2P+AG\no4Mb+jl01v3wTbbPWULRwa2kb0eF3Ja9SyZejbGgV7TOboxGI3NujWRD1VVQ\nkntHTzsB1b0RApvkSsiEJYxb+Nqq11KGfi+2NTt1X+w6k0Dv4qXriwdvjViK\nkoAm8JMe6tCyY2Fhj+0IWFm+h21a9ZsxszptikGjUY2jbl4Z+4R+etpCSfiH\nd71fRKIvqPCVO7xbJgckPFlwEL6XYtSimv4e+AjpkWoKTSSCf9SAC8mUpcNu\nGUPZ1sEZfEeNYbCgM8tXyMAYju1Lbnn4LKSzz5+CiAtFu9nyoGazmBIgw27E\nXn6iriV0kwSji3WoBpNu9tWnCLD6bUuORYQqLaH1U6GIoOZ8hftLKIacyG9E\neZf4eqWrRieFq45F/JmQ+t9GAhpGhfGtjMQVf1gXWq+ur760pOEMeJ5yoKhK\nD05kAyHVEQKPwAPlR/yx55qVSJAx5FEhEGJE78gJatoCfd40wHzS+BczMm23\n2XCKnNeQhmrR1XzrXILVe87E20a4MTALrV6Ei+tf4P5nRCJMdkf4b2QmvNkg\nKC1m66eoZnRySr3SUFj7ZK1CDbJnGyIvd6rMZrHHx1klNo/LU5JNw80ClPCA\n9ChBytOzoWPpV+M4v3FWPCzXTgQ+DbYBwBy2j/isxDfRAO4jjoBL5QXxj/+n\nJjaL\r\n=Gm6d\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8ddcd6186c353b0d99439cebca29eb95eebc705d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.197f64fa2.0","@material/base":"12.0.0-canary.197f64fa2.0","@material/shape":"12.0.0-canary.197f64fa2.0","@material/theme":"12.0.0-canary.197f64fa2.0","@material/ripple":"12.0.0-canary.197f64fa2.0","@material/animation":"12.0.0-canary.197f64fa2.0","@material/elevation":"12.0.0-canary.197f64fa2.0","@material/typography":"12.0.0-canary.197f64fa2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.197f64fa2.0_1619457050916_0.2739877939142197","host":"s3://npm-registry-packages"}},"12.0.0-canary.55ad2d7d8.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.55ad2d7d8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.55ad2d7d8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1f380c456ac1af94074e2e1161a29f19248efe81","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.55ad2d7d8.0.tgz","fileCount":45,"integrity":"sha512-FYTReIg3UhomrxLEW5eDmXhsspDe6YBDKdM0orUY4tbGan/BlDFVThhO56pmkslh/ZWOJVUyLrkd7vl+v0AzZQ==","signatures":[{"sig":"MEUCIHcaKCRYD++zIW34fQZopeksiGSyL0kA7YZ1xDryyBEmAiEAhjI7HlkWHVT0FL5y2le5fTgGsgWZ04Kr+EsePgpBv8E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgh2bzCRA9TVsSAnZWagAAcIQP/3Mk+dvFiXFkgOBKR9a+\nc4VQ1A+/APAKKpXemlVXlQ9Do8aInMyd/UUxjNdNRFs+5psIi5cAUmIsTXCw\nGdQi7wu0+/9lmZoE0CLddYkOiGtvEe/Kjwcm8ClMfU8VpE1wU6yIFcNQdU87\neZ9ciMv2w48MFQ8MsILC68cTpvQ/7o+t9/CvGExjgp82TgYIZfnAj6+fHpoP\nXd3aZVg0Y93/i4M7KuqEUMw4jJXykclIQQi/GV3atC7uVHuXn+oSQPq0MGRL\nssKm4zTPtSXiBgVNiCCa/zwJ5td1+mb8YYqhvPWoo17M0U7k2HXbrmgiLblI\nLUwdLWD56UWnrNbuUwcQ3T0Ft+CcIARxot0zQwr3LLXkRD111hhLIIC9jgAf\nqaOTsbWKcOsNcpuCkwz+UaegnNwWWTip76HxJkX2KtTiK6GFxi/rx9m8wZgI\niHTIx5+gb4YLi8LTQ/H31tGzmdBhlDdkVx3hawUwZFgGGPDI9p/w0yRc1x1b\nzR48Ajej9QZxgf6ub/sG5mh5PpNUgFz2UwSIVfcd6EtfU722K1zM++IKSBBv\nzcd2nJL4QhnwKPY3p2tzuSo4thUJkZe1NEFYtyjLyycEo/sF1CyDVusMQ9/V\nGmQ3ukEgulr4o+zASlsUeZI9ACDORvpCsWYDyskRzSSYdSoUmPQ0XgJZxc6P\n587Z\r\n=BN51\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ed8a5f8b1756d56e3973815a51d6fc7e51c366ab","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.55ad2d7d8.0","@material/base":"12.0.0-canary.55ad2d7d8.0","@material/shape":"12.0.0-canary.55ad2d7d8.0","@material/theme":"12.0.0-canary.55ad2d7d8.0","@material/ripple":"12.0.0-canary.55ad2d7d8.0","@material/animation":"12.0.0-canary.55ad2d7d8.0","@material/elevation":"12.0.0-canary.55ad2d7d8.0","@material/typography":"12.0.0-canary.55ad2d7d8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.55ad2d7d8.0_1619486450696_0.2449841688270462","host":"s3://npm-registry-packages"}},"12.0.0-canary.ec4ac5234.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.ec4ac5234.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.ec4ac5234.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4ad64edd234b27cac17bc5d37960c989807e57f8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.ec4ac5234.0.tgz","fileCount":45,"integrity":"sha512-eNlTurXx6lnCGSJD4P6zFT1QfnCCn1XYiQ8eVv7ePNZbMiCtLd+4Ej7My2qxL9PFjK4C/f9dIjaAFM1bHVedVA==","signatures":[{"sig":"MEUCIQDiEqF4H061r5u00UIP7Read8niedPfJD8c+cIC1ipk8QIgQ+zVYWabbO3xmEKhanamdCqzMnEefpbHzqbaO9shOVk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107580,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgh8RmCRA9TVsSAnZWagAAwwIQAIDNZZVbM9YljiNIoNpp\nFIwK8LT5TxRtP579NMD89QQy10LFfFMHc+NfKZQnVQu+Jo9rIjBuriz95xF1\nba7sSVbR54x3z38G7FTRgV/kFIjmx78tfeklsNejh9NgOpEJL32N0MhrMhPX\nEpMXItp1crcCqQqsIhaezl2d0QFXP+Eby4qqblLw2uXoXqha++pG+TiG6wG3\ngKrvjRffkxlMiKfMznhbr91NZqHVlnbYvPlVzamVtEXSmhCwluNrAgVsdw6J\nyvzJWFv44Q94ep4M/9VMDOJrFMNkd5vVRXa5tYZNW4L20IQ9izxYE3kYmsvv\nGIf2jjSxAiHi+ZlcylO/Mn5ifASJ7HBoeYPGqfwtoJ13nQ+pTgbitQMBl0Yh\n9ONbaGTyG4aIPj0zys2S0ZViVqA5LbdEeyXaklzBYmNg7l7ycO0vJSmJf7fS\nnpP1aXXRPhhXrdY2yI0ZRJ8uU4yJQReCJ5QPI1paHc2j6/K8gJbCTjCBQ/AJ\nCDS9wzUSetgcXLaiazF308+izHvkIfKFbPokbZIB1Zb+sRJK7XaH0pEDrUj/\nOoYH7fHUr1oywWiphQOp8TsH/YFC9xtCngUbmwhx3ITfCuzt3MlP0grfTubL\nej6ZskiencB6iASEKDMh1WYpjJ8ZwyMLFkfp8YYUArDYvG7QgpX1GgGsDD2w\ndx9j\r\n=JotQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b189e0be8deb45b4e94790f21c377c3884f551b7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.ec4ac5234.0","@material/base":"12.0.0-canary.ec4ac5234.0","@material/shape":"12.0.0-canary.ec4ac5234.0","@material/theme":"12.0.0-canary.ec4ac5234.0","@material/ripple":"12.0.0-canary.ec4ac5234.0","@material/animation":"12.0.0-canary.ec4ac5234.0","@material/elevation":"12.0.0-canary.ec4ac5234.0","@material/typography":"12.0.0-canary.ec4ac5234.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.ec4ac5234.0_1619510374522_0.329482014498359","host":"s3://npm-registry-packages"}},"12.0.0-canary.b0579acdb.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.b0579acdb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.b0579acdb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a143af4f67ece7579abc2d28630d7ba466665840","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.b0579acdb.0.tgz","fileCount":45,"integrity":"sha512-0ofTCZVyJi5/6ELtKfETLX7VEiA3BE4A7lIyXOVv2UnnbBj4TQSaw70Z93tTGTjvMDBwyPk0+UOrajAcON/Iww==","signatures":[{"sig":"MEYCIQDjOt/AFiVAjgiiN1INnyBA01SYY76fQIsrBw2ktwrb4QIhAOCbSqzUUG0xC9E1qgPKgWjesZyvBOi9qXcKxmRuz1rq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107580,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgh81JCRA9TVsSAnZWagAAFeUP/0SrSTkk+WVLoSOu2O3P\njArPmNnlAQzrOe+urGrzt5BH+tfOEpMHmr8VIO4H0inicgkBIat02W8j5AtF\nQxiOdNoDFjF9DWlf18LRm9y1k4WZsIyYYMBxlL5NejiMUc7EBU96OB9WrsOr\niLXtaKikJpJ/B5t+NDrnTQZqsVX7p6DxTsx9UVcc7VEEI2gtjTEBjNesxtEr\nYiMe/oZQojAgtuhRmnpl3pXKOEOICLD4dpOaDQeY90+8N/o4Th8jZ0Q/qIr4\nydW2qCiB8BYtqnSOMJ9XRD4d/QSICBO73F5w4lSnnjAvrPZwMhDYNhhIArdW\npq1yyZ91A6smxo69XP5pgBs4d3VvZPOMWCMhyGfyKpNymw9elXFxur2XF4iL\nrSYrrEaHpvJY1gSHbHBXzuGYuo63eT/y6+GklnaainhGTNvNgpUwvH+e/32F\nYBvcT/3CycJxy5KXBWT7REg0LqRoA8ib2M+TAPJTsRRUAYkKQ/sg7YKyc9FB\nV996VRccWR7VV/U3s2ZdF4vGZpfuEGpQKuNx/fsi7zzaZ4GD6APZqw+b7WTa\nMg2N5VHEEl8ghNjFDzNUnMI6o7dGPeEGOh7Y/2DbvsOQ2S8NkTykUCrqsF/h\ncfCcHPfCOEWoitFz1U10O/PvfNLRxwI/BhZXgL+cYjekNYvTOI3dvoNe9LYY\n+3gL\r\n=YPqJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d1f704610766e7d0c46b8a40beb1848121809a41","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.b0579acdb.0","@material/base":"12.0.0-canary.b0579acdb.0","@material/shape":"12.0.0-canary.b0579acdb.0","@material/theme":"12.0.0-canary.b0579acdb.0","@material/ripple":"12.0.0-canary.b0579acdb.0","@material/animation":"12.0.0-canary.b0579acdb.0","@material/elevation":"12.0.0-canary.b0579acdb.0","@material/typography":"12.0.0-canary.b0579acdb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.b0579acdb.0_1619512648803_0.9759837694479025","host":"s3://npm-registry-packages"}},"12.0.0-canary.81e2d4ff3.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.81e2d4ff3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.81e2d4ff3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4fbf700d031dd6b9d310a4cd7cd489045326d180","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.81e2d4ff3.0.tgz","fileCount":45,"integrity":"sha512-c8aQ1ELu80EEFliSSSC3Ozqrj8tlCQmx/A1M6YCr4dvWXi7tNX2HyVts24SSDwfmWEZ2ynEUJ63N//u7tC9fmg==","signatures":[{"sig":"MEYCIQCM9wQFfAwDYPplpiep7fd4Prcg5qBEgiSn7hNrvjZYkAIhAJhKSSfDWAPfggXFErhVfVvlSunv8n7H2GKdAfAIBKnJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107580,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiHsMCRA9TVsSAnZWagAAKrUQAJdPKhNDA/oXKaHu119u\nWl/RkBQVgiIVErBkE2pdZn9G85kY3r3cp14iqZJV81S1oHttKx7MSVh6qSNS\nvWX29cLF0HBiNWWNZf04fKKL984xUVrnEZ2EroHCJ/TPZENKHcfjgsIZAoRZ\nRZ/LA1jphcGW0b2aQoxZl52GsxO1A0eH+Y8gaQxy0C7ySG3TsJ86XjLo48no\n4l/F+lFR+dyXvwKPh+UBHmNaIUusemneT9iGZY8ggq1qBn5QVm8rZV9EJtyp\noODB6reszaYzBDGuxpRL/oFjOALpevYXhtRoLPtim+NycOjH2hpsz7sj2236\nJndratucso0aPAHbUPaeB3upugvhx5JWe+mq+CZLBEFb90gchVy/kzBSQ8cu\nmiDz8vEa2iYL/fzdQjeg2YZrRzkPels6QTUJd0TvjP9M8BfOgaF8KqZxt5pg\nBBbM60TItboOdJ38uELanSxJXi9w4fiwxKd6kTij+hZkEGZne4lxcmEXvv6a\nD8CQCRyIuIO337PJULlOQizw8hG3JYw1MG3o0T1Yvt3+yAHl3hY3I16LeveW\ngGx1vhHRuIW7VZOayf33blyIw5d21W7CJhqY+s9FSPis2yUGOBXRtCdXIQVd\nTNfFtnLx+H0PftYfFZlTBYSDtviVK9ytozgitLF/Ou+KFOd4HHmiWQUHLkZd\nVfCf\r\n=2mD0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f55512ab74610e3f3cd0db70822ad9b52b9cfefa","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.81e2d4ff3.0","@material/base":"12.0.0-canary.81e2d4ff3.0","@material/shape":"12.0.0-canary.81e2d4ff3.0","@material/theme":"12.0.0-canary.81e2d4ff3.0","@material/ripple":"12.0.0-canary.81e2d4ff3.0","@material/animation":"12.0.0-canary.81e2d4ff3.0","@material/elevation":"12.0.0-canary.81e2d4ff3.0","@material/typography":"12.0.0-canary.81e2d4ff3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.81e2d4ff3.0_1619557131480_0.28509736326903945","host":"s3://npm-registry-packages"}},"12.0.0-canary.c8edee52c.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.c8edee52c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.c8edee52c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c957d6be72d24c61e2b8f9e24d73b11cf58f35ad","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.c8edee52c.0.tgz","fileCount":45,"integrity":"sha512-HDYysbgsCYYAZ3rXzny+ksZ3dh7SMBhmJKpmBYTPmR0ozMu3LQdgl9ns9dhHtjq3LwppwBUCvBxYfDLe4DYsQQ==","signatures":[{"sig":"MEUCIQDqcc98u2c3QtgcJVLLi81hXj2Y1m4v3VvqZtRAA+qCkgIgacZV3xOv/kHyvlXELkkyT6CPry8jnyhGAJFOGoWXVgM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107580,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiIZbCRA9TVsSAnZWagAAwyIQAJYMUlq8m9gQsBdWTLvk\ncoxKrX2Uy4R/miqrtUbIRS0Z1ZguOEnOjLBu81nkVEy53ZWi4/8bjEZLUhit\nV4iN8kwH84ltfCTRRsSyQr0xQzPebjojI/Sy6Wzp2atgFtHuE774/HeH9rgy\n42IwyGsGa73MdO0/y6CviwMBuDesQ1GJ3w9pmqTtwCMuGq7EyYm6IGn0BMSx\ny9y67ZHuphrYsjxy3T0P0Mi8tDwZqQq9P1/dRr4OSGMMIvh/m5qdOQ+h/CtV\nPMkS1ES5Rgi1RhAT1aQmzaerkEv/yZsoKs2K3PudqYDfYTE3Sn9I6bhASLSb\nsSwQaY+ZSiUUfz8CH8K+xLiuHMTO1lH9/LX9tKMeX40zYJIgdvAH7pQ7SyYD\nVirY8Jt/hyMHEeZQ8Ck6Z1ZzmYMRFimPrY/X/b08WDrfyDGS96oYF+vGl9iA\nSKsDm4Oj+maTMvldA2oO4LpOjsI9l3Lv42NFWCmr41w41JtfauegqDr8ht8/\nB17idWQwPjNGp66U/4CETFICuE/TWNwbglQSpTIKvu1CchYIZEOwofQBlhvH\nd9iplHIdgSVPPLYFDKpYgIEp7jDvbdtZSNNg9K6IQePmFbv1jFRvppkx7LXs\nhLxQoq5YqAir5GaEkuFB46FtRsA6qTruqz0j5NpgvFVMZDHp13RiK8XQBK0a\nVbCh\r\n=KX/s\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e8c7902721c81225e1c8b750094cbe6ac4666a0a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.c8edee52c.0","@material/base":"12.0.0-canary.c8edee52c.0","@material/shape":"12.0.0-canary.c8edee52c.0","@material/theme":"12.0.0-canary.c8edee52c.0","@material/ripple":"12.0.0-canary.c8edee52c.0","@material/animation":"12.0.0-canary.c8edee52c.0","@material/elevation":"12.0.0-canary.c8edee52c.0","@material/typography":"12.0.0-canary.c8edee52c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.c8edee52c.0_1619560027313_0.6493682412131574","host":"s3://npm-registry-packages"}},"12.0.0-canary.f5b6110d6.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.f5b6110d6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.f5b6110d6.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"62081cd5502e5a808d510ba68d3c7d40bf9ba14a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.f5b6110d6.0.tgz","fileCount":45,"integrity":"sha512-f6rXIg39HGMte9f2MVheld2T6QbbPxBpb8zI400GqmkuaSnRjQqg38cnr94y9Uj/XKQkYjqTn2fBHAl3rJGzQw==","signatures":[{"sig":"MEUCIDh1fFn60q+9ZztnJG+OdN/euA2LSR6CpnrF7v5bHC04AiEAwH/W4p6z5PWyJrflJx3p6Ai+gu4iXZLnmoLVfvXrYpA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1108040,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiItVCRA9TVsSAnZWagAAa44P/jFGn2jsCxyqGuqn350a\nlB24fnfsaM+pi1/vfoSm90cFyHHNsA7XKc3NsC8Y4F9c1Uq0SEj8MWbfgCHE\nb/D5iCqy4qmZriK5s8+oWq6mSb/benGkgItaXrjnTDZf3iwa5IlpM8rxKlMu\n56a25okZMx0V2HqKkORfnRPvOB8Z2TlTzyp98arWDJmc8LKr7/MMrNighQQ/\n9OOMrF8P0RKRaXpw6VBubQ8ENAkV8ijF2EBQbrMSs11Aa/6SVjwBo06kkV1f\n688vUof6GRoKrBTArnh6iHS2mhfn0RJMIvObKdf6rT4EP44sayo/3hfIL2NH\n7PMYqhAVdtTBovJBuMx5WkpSmvYnB2xzU4+GhH778A6ywoG7diElkCnQNiQ8\n6/UMjpSBU84imfb+wXNoVOL/EpLyr6uMxzRBpG7y4dQYdhu5Ukvh+ysQvJCZ\nAAVowYNZTlzJUs1zI7E1rvXylOgSbCfCPI+EyEKzKtyCCXyqHhjQo2GYmfma\nd1tKiXZEUCkWOiv9fVVQ+tweTYqMVCF9rSJv7MGKsowHx/uvLzgAaXnTsv8C\nHk0etwBsQKBjJYoY1Zra83XQeq8SKfqtY3hCjhxa4lCa32QH3oZxESy2pHcD\nnvSkkHQNaB2tb89nXFm8KuOGXV3Hf9wKFawkUgu229ZTR4+cqFOKN3Zhw6fw\nNPRZ\r\n=59LX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c7be6486c9ad6826105a70187add5afee2a6b50a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.f5b6110d6.0","@material/base":"12.0.0-canary.f5b6110d6.0","@material/shape":"12.0.0-canary.f5b6110d6.0","@material/theme":"12.0.0-canary.f5b6110d6.0","@material/ripple":"12.0.0-canary.f5b6110d6.0","@material/animation":"12.0.0-canary.f5b6110d6.0","@material/elevation":"12.0.0-canary.f5b6110d6.0","@material/typography":"12.0.0-canary.f5b6110d6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.f5b6110d6.0_1619561301418_0.4907087126500653","host":"s3://npm-registry-packages"}},"12.0.0-canary.cee9b9e22.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.cee9b9e22.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.cee9b9e22.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2f33f74be3a6145dbb822418903416015f4478ae","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.cee9b9e22.0.tgz","fileCount":45,"integrity":"sha512-0yDcezFJCISouHjkiHXd/LDjZuUyYSVg2jw0rKEIWVQn3i6lnDkL7Zf0WsRLraWubzDUxHm0laFvGe0Q3n2vrQ==","signatures":[{"sig":"MEUCIQCFTeVlH3gvn7UeNHAu7slNRqEmFpq5VF6jeboFfbURuQIgAO6m1S/LMkx8PfnUWex0C/YER+u1tg6skU8wlcGn22Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1108040,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiKi8CRA9TVsSAnZWagAAY4AP/29rtawuFTbGyfDvKp4X\n0A2cLpj1W6uMImUu5AGJktY82IBxPT3WzvFm54zvNNvQQIuCMsmuqoXmC3Bj\nHY+nCdrYYFE0nsLVvnY88GAZD0aSh4InchGmbTLUrbPVY+R3SR5AAyEpv4pR\nllHVoCMR4fj8/kLV/lkD9pWYX3w/B3ClPFZb+LnL1D2dfFrwqkOUU7ksAGMH\nzWtREgGYioslW2Uu2a/MByKL8lXjNPMNRZIgfHleauUkP5ojEIKH2iWxCD2U\nVC+rlJGxK1VQCevhEkWEpnrfxN8311ukuPCsI6xYnz0wCKXrngglwW+nWRFk\nNynUP13qZ3X6YbnBNBYIes5tdKvJhFlTBATfFC72BcQO5Id8IX+c6K7oMT5Z\nxRTTEZ3BBXqgnt3YLgQ5pgkJeeJPOHsK6q+c5Rcz+vay25LIlvSZ5D4A/5Sj\nvqsrWmsKXUocfIM4SVu/fzvopcnj+ehjN47rGSAnSdHmZRXNagQr8VKv8RJT\nclpsFirlt+34XWtWhDz2sSlGLK9mSeZEbqmW46FspjCktVpOkOezXsJQbzHU\nXnmBtY61e7QVHO9/a8OXcgv6zHKvmohR6a+uytqYdYG0gWvTNIIYjaduWT5z\n+Wld8yWeKpspUAYFqN5Jd7dZLsAGc+405HkOlLFulzv9wdY5zRIwfkX9ZigY\nR03O\r\n=yVdh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b0c779970f0809be4565910c1abadeed4dab0377","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.cee9b9e22.0","@material/base":"12.0.0-canary.cee9b9e22.0","@material/shape":"12.0.0-canary.cee9b9e22.0","@material/theme":"12.0.0-canary.cee9b9e22.0","@material/ripple":"12.0.0-canary.cee9b9e22.0","@material/animation":"12.0.0-canary.cee9b9e22.0","@material/elevation":"12.0.0-canary.cee9b9e22.0","@material/typography":"12.0.0-canary.cee9b9e22.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.cee9b9e22.0_1619568828378_0.533559976907082","host":"s3://npm-registry-packages"}},"12.0.0-canary.96e83fca7.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.96e83fca7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.96e83fca7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0b8ab04fb12af3980f0e4b6435f72f170c5adb7f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.96e83fca7.0.tgz","fileCount":45,"integrity":"sha512-u8efdwSDsAdRet/bUp1PlhWwF8ZHx/eNo5H7CztVIeqfG0dMErcOafF+dQZ127xBUCOSRZ+A9L40WnLi358BQA==","signatures":[{"sig":"MEYCIQCUhiNqbF65q7f4fxwRa1k+fcMiQSU30hgEeOH8VhUDYgIhAJViIW/aKVsUjYEd/l6z2mUybRXCA+XsiaqR/EHabIJq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1108040,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiM0VCRA9TVsSAnZWagAAdTsP/0IrvJ/2nCKLlmWiDUdU\nyGsYm3da9TrOqXIml+zvD0WsYPE7VBIwpB5XFiWE8mgqNxaL7V2YoZWLMwH8\ndvsIDSPAqK9RLrr7E0EhMYMn2MO97HQd+2wSdoW1EjOnrftk94U1lbNyig1O\nMLUOVhksMiSSyspOhda8x/SVvrAhMJYrKFKLJsBUnlO2x7JxQfwWV7L8nqhh\nSmWSU8tSiMII0Jz0qBYBc1wm+8418RzIciujyTaA/EGvhozdg040fmHYjhew\nCKhkZmOuQNdqJJerBLXhNa4pS13We0Up3KxkuyN9Tji2D9aAZl00khj0ZNzr\neVr1SbAUEsKGUoxNe9pjX5g8gSZnYmYcAmAsuU8o+gDcggCz97fuDp6AXBrG\n9s2X+L5ncKgnfVj+jmkCyqb4jtGolvsgW7whYdnSWnVqO+GuxhaC4emHkL2G\ngZoXs16e2pjIGDZevvCQYf7yRFbPQV9naqyArClBOrKywaTRlWI5wdcGfTOn\nesh8n3SAN4AKXeWKBOEoVDjXuw0MPlAR1ULyZa/AQ1dzISkXKRyO3MRDyBhT\nJ0R2AbrjdFuonneQKCIvzSnDqtWF8azMz9wmGUGCC9KN33qtieg7VyEI3oir\nQh4ucP/ndL8h4B7WhOGqaQrpwRX0CgqvhCKS13PRMxZTDxeB57v9fZPhMeWV\nctsF\r\n=NwpM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"377f0025088676d544c1393884e5f27e96143f16","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.96e83fca7.0","@material/base":"12.0.0-canary.96e83fca7.0","@material/shape":"12.0.0-canary.96e83fca7.0","@material/theme":"12.0.0-canary.96e83fca7.0","@material/ripple":"12.0.0-canary.96e83fca7.0","@material/animation":"12.0.0-canary.96e83fca7.0","@material/elevation":"12.0.0-canary.96e83fca7.0","@material/typography":"12.0.0-canary.96e83fca7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.96e83fca7.0_1619578132960_0.5517556749874584","host":"s3://npm-registry-packages"}},"12.0.0-canary.4c497bd19.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.4c497bd19.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.4c497bd19.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"467b74390cc1d87a6f81242d845f2eb64caeb98d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.4c497bd19.0.tgz","fileCount":45,"integrity":"sha512-XhvxEl1YA+YiHDQowBFg308Dx6U1tVjEO0RZHVG1cNnRCXVRjzC0g9o+AEZAxb5J/nPZP5KMZ80+tdUM2YH11w==","signatures":[{"sig":"MEYCIQCcIMv6+27FewV84HaMFYZZbC83hCOwXtkRvbCA3giYNwIhAP2Kyl5p/I1VhSFit2hCnQW6OcGLXCRXS9fp4XyvgL2U","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1108040,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiaFfCRA9TVsSAnZWagAAw+kP/iFnGgwQZvzibLNTr3D5\n7i4cQHsL7RMPYRubRGixXfkwQgb90GzQvaeNs7XBGhX3QmcqMBCT56JIgr3a\nYIWKrJINsD5AK6w2I5TIDkk6QkZ6zfyWcs25ldriijcVZ5F+O5a8Gsods74K\nbtYHGoZiLifeZLjjUceH9t4Fnrb7nu6OABMjtojzWvAjPw7uSNMqMR/vfIEH\nsqlRyWOTT8a7CHKiJeEOc66L9LmlcgEnT3SjOYZY7eYJFaMIxCkFYmCaOhY9\ngHxEsUKH1u0lGpyA1zztxfOveTsXS+hBI01TJR9GZ9EzAzh+8+FRVKFOQGd8\nDP2iPlX7VqalYgAb8TsA/njU70LiDZvdwTRQALNK+4s4I0d5xftd+KCU8tMO\nHeqKKQwpW+sLKHKcucKyGPvkSYZ/vFo0q9MYYzEa10q9gUNDNmzh+hXHxw6Y\n2f1/5sluIrfKTYf4QniUCxAIs+d4t9ZQxg/8hTj8O3G4QCw4C0tPm5L3qA1O\nrqHnTdyridEpBPVpkSOcZsVfF6zIQ/95m/iGSqQaDQgrTelf3ReIlAHl6ssQ\nIFev+is1fg/WI8i38bP6hCXq4uvMMlGo4rSeKsbR9KfeBeRLN9knvIi9y4w7\n3tvSvsnix43ErkAw09peMSyqtenEy8YfW1z165M8wacKZeioNfuHydlcUiJN\nx5SF\r\n=iJXS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"beb4a14c8f43815a21024c26a96e3c53851a9b41","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.4c497bd19.0","@material/base":"12.0.0-canary.4c497bd19.0","@material/shape":"12.0.0-canary.4c497bd19.0","@material/theme":"12.0.0-canary.4c497bd19.0","@material/ripple":"12.0.0-canary.4c497bd19.0","@material/animation":"12.0.0-canary.4c497bd19.0","@material/elevation":"12.0.0-canary.4c497bd19.0","@material/typography":"12.0.0-canary.4c497bd19.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.4c497bd19.0_1619632478833_0.025485464392171586","host":"s3://npm-registry-packages"}},"12.0.0-canary.105b15b96.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.105b15b96.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.105b15b96.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8d81bd39641f9d2722c928546db02d7c23d91f38","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.105b15b96.0.tgz","fileCount":45,"integrity":"sha512-EdrBgMjc/j1Ic21FS7x52JHMuHGeVgmf9RY7XNuBqGKY49b8gWf96sZSQafqcvZR3oeHvxi3mGpVvV7E3Ss6kw==","signatures":[{"sig":"MEQCIG7ts1C3iQoNIb7tFTP5TIR/EWozJZQCZjnew2/0UFx2AiAQ/SOoNqQ01GnbL+ghJ3t6HagPkZhhTw8+6XfM7VCDuQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1108040,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgideNCRA9TVsSAnZWagAA13IP/2LqBFTvOByAKslw3KJx\nOoLJ+Ar0hRoNX0M8ew0btyFaDpuVBSazDe1gt5JUiatjz30OzI6NwZygm+PQ\nD42IMq8HmelfWzYNAQwKnMmp3bTugGssC6rzkGjS6T3DRwF+HN8l0eYb7Hgj\nuTFQFtCBZH+2snmevKkI2y8uFmzL7vNLC+iUX99tvQgAGkAQwkgeo6hQRDMJ\n0BlcVbvm5crcwDKxc1V/0cbuLE0pCFJ7smuVuPlOngu/fU/P2ORC83jxSKLz\n7qiUD7hzOu4WhO42JvHfM3B3wY2UJyleoxkUvw1Hb1NsgM8sk1hioNqDCoHM\n09JgOzx07VYfxgha9/MhQaEmNU4VXRQu0Z5qJ9Ifg8anon7j16fFzP1UjBD8\n6ZRX6/ykfUtt7CfoV9nPigoDjil6z/i5DKV5mjpb4hphHs7jFFGSi6thlZFN\nJlr+IWw562qQGaMcF4g7g6caUMv5WgivkV9VEBwK3N62mLypuNboVdVmr8IE\n9HZ2k54LE/zl8gBz0V67usczmge2oVueBMIpwTVAvNxEQG3zva7lmYm7cYyy\ngeGBK8XLOcwjeEIzz3L7x01hw41PdTB3KqJH67y6fOd26Xv+nY8B3zghJckv\n0v4vnkI42JYkaJQC7wfXYT4onL4tteYuxiYHJv6cmREBky7EBBoObVDMtJfY\nEewb\r\n=6P+o\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"762e9351a26c1968c772104d6d64f7874c81528b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.105b15b96.0","@material/base":"12.0.0-canary.105b15b96.0","@material/shape":"12.0.0-canary.105b15b96.0","@material/theme":"12.0.0-canary.105b15b96.0","@material/ripple":"12.0.0-canary.105b15b96.0","@material/animation":"12.0.0-canary.105b15b96.0","@material/elevation":"12.0.0-canary.105b15b96.0","@material/typography":"12.0.0-canary.105b15b96.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.105b15b96.0_1619646348745_0.1864209246158517","host":"s3://npm-registry-packages"}},"12.0.0-canary.6e20259e3.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.6e20259e3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.6e20259e3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bf0aadeb6f5ebb0f9de38bf62c21bab7cd7834f7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.6e20259e3.0.tgz","fileCount":45,"integrity":"sha512-h2TT6X3YKIpqO+Jvf/d5TYRjhHdGDJxytvD5L2i0sTavKUZXQD+7621jwKkBJkzAWI89aR0ncAXy54KfIAnd0w==","signatures":[{"sig":"MEYCIQCK2u3UJGsOnVosPwPzrSKssQbSalKY7FO7ahUC070kNAIhAK9+jg9G3XA7bB8dXo6xLrEBlpzSrWYLSbQmGFaqs8tb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1108040,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgidiZCRA9TVsSAnZWagAAeX8P/1FmPhR7NLLeUpmxz0KA\nZsmy0OBp9+BTnLzYq6OJuFKtJuTLZPEmaXjtNzyUe8BgHAJti6gbSlsAbqiv\ndGOJkQombjq3u7/DOl6hReZAq9xU1gMHe5t03v0KUafNx/ZNRTE6aVpSgYvZ\nTcm+sxdAzqyP5s3bDASShw4/zNZFzTPPxY/NFRwQ7I553wJ2O4X8esuZN8Ob\nkrLQGzvLr3oYy7WxnzTos4PgVblQYPhfpdh0a8rQhYYcCyEcLJq0TKiDSMrU\ntutsF9NuIpV/SvCC3SZNqTVnR9WcgA863O+8uhtRYNCwWRuyPgH4X2MEuEr2\n2qzN6yFPOGsUbyMpO//bGAg4z7fYx2n51JdTXjJjD/8Cf/s0bob6emAr+AHR\npgGpewJgFXdJgFaMJH5GGjrylMeV/UyHVXdaeqHpCzQqnPFyeHYpjY4hcXlJ\nTv2tY3iRr2jlvlU3G+WD0L9nRvVh1cZtA6sW+3Hff9gNEkXf9FYYF6lwjndD\nMAAuu2xPiHpolCYjH8H4yM+udZZUqaWQen7vX1r6mQsvQWbVMeTY9vqH0N8j\nmrqjohhbzbVc0NmwhsaF6JOjjkfW7IKA6Oh05e5VeJcVLgA5ec7DaMA2TGqw\naOeUdt/goLfn9pQ4rKJOPLNMf/KfAhag31TerpXce6xNGB5nD5iV2d7tgCpa\nsBMT\r\n=qCy5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8e07864b42f463f977fbd0f9264b8930da72711f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.6e20259e3.0","@material/base":"12.0.0-canary.6e20259e3.0","@material/shape":"12.0.0-canary.6e20259e3.0","@material/theme":"12.0.0-canary.6e20259e3.0","@material/ripple":"12.0.0-canary.6e20259e3.0","@material/animation":"12.0.0-canary.6e20259e3.0","@material/elevation":"12.0.0-canary.6e20259e3.0","@material/typography":"12.0.0-canary.6e20259e3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.6e20259e3.0_1619646616676_0.5116098951635606","host":"s3://npm-registry-packages"}},"12.0.0-canary.0f79a5d74.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.0f79a5d74.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.0f79a5d74.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"acbddc2a34109c1cdde28de4d257f979fb9b5a4a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.0f79a5d74.0.tgz","fileCount":45,"integrity":"sha512-FoCSHzwV5ZDDCKUMR8/+0ljLEJqbeMnHVPORHYY7e15UNUjSkq1pDbUNk0Sl9ThIEjzVpdmvNLCZyXMYjzy/SA==","signatures":[{"sig":"MEUCIQCzWMX/j0C/uAHI051keHMbvgF7KMiosmOmX3eHmt7EagIgIFSmZRU5jcW0WgBkLq8Mfqklz2tnOCm2Ecyw7sKB2Qw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1111961,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgieU1CRA9TVsSAnZWagAA6qUP/1RHy5ioMqP4/YM3CrXT\nyK33TvdFirfxeKEnq/YltY31mbcbrsySRXuyOvOnhYh4yiPxCoF+vldtyHWU\nf2DX+MDRlcHV7vddZezwTERxX9Cv8r8+9Vv2lkZnK5QlDP6eDwq/ZKLd+NzI\nF1Lj7bGMI3unaWEhVKBU/nC5vJIjHIH9PgGnhvw5NUzUR2REnAZV5gqssG/5\nJcB5hwXxXKZTgIVcGWkMVBNoscdOH/UlJL5zAMSqcieTrF387k7WObtcbMey\n+p8whmOFQ+Q9hJtqzz2ZBO/sOtuvKbRjIQlnAg6z/4NAQd3elFYO/YznZark\n0OG8YhCc4LqHKHEHpIpcoo7x/jwESao8H83GmUGnnwyCc1gd+A+viMU8UpX4\nVWUt+mc33NhIGMjmyWIHydPnHwSGZa3znmPDsia5OlOd7vlgTyfDiZ/9IPGG\n/B1aELjGkAEVz8yz8ZUDDqBR/e5tgiKlY9TNK1k0RUArgeJ9Ye7Iy4LYoq/5\nN9F1uing4V8iDki7EkZp9kkfEkxg+aUoR51hrjhPy7Gs/3hQjNKqdHp41E11\nSRd/AjjrM8OvJEoAgs7NIRkxN7xSYb5Naef/xW15gUHPaIhQ0QG4exnQfIyX\n01b/LyEMI4Vc68sBhZFkPASGZs9yq+H+T4TzxRrJFrMXKsKj2WtJSJnffLvL\nvmuo\r\n=UQZH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2fcb990c07fcc62dc025eb258f87a8f04f08fee5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.0f79a5d74.0","@material/base":"12.0.0-canary.0f79a5d74.0","@material/shape":"12.0.0-canary.0f79a5d74.0","@material/theme":"12.0.0-canary.0f79a5d74.0","@material/ripple":"12.0.0-canary.0f79a5d74.0","@material/animation":"12.0.0-canary.0f79a5d74.0","@material/elevation":"12.0.0-canary.0f79a5d74.0","@material/typography":"12.0.0-canary.0f79a5d74.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.0f79a5d74.0_1619649845043_0.8247868427068574","host":"s3://npm-registry-packages"}},"12.0.0-canary.84f3db9ed.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.84f3db9ed.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.84f3db9ed.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a321022913c2852bb56ca6cd3b887e316128e680","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.84f3db9ed.0.tgz","fileCount":45,"integrity":"sha512-Aye25KSJyf17Xp/+G+tYr+rbx9blH5r7B9g9vt6GxCDGqm3YJGKIoFMH4cLus6WbjSJs60CpS/wPdV8wBT49cg==","signatures":[{"sig":"MEQCIHcVO6e/9KQiuTuVBEg4Qn8qzwy8EBrkaL5TulmQlvhiAiBadEppk0L9HzRlN0LxV1fn/tUG+8K7Tja7CxV+97N87Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1111961,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgisBZCRA9TVsSAnZWagAA9jEP/RscXNaTnTYUqLWr2l2q\nLMyIF1y2ALsejqi71b8Nd97es6LH3g5dDyNm5vhe46sq9rJfvtvHS1SLz9e3\n4DGcvp6W28hVQbdDtYXW3w93Xvyk6Iq5dcdyG85apvnx4nXSyHHVAKwfe3LV\n569zex1ueHd9M0ZBaKqfcQ7Y3HujTeAniAj5JlzOwaku5uDUAPMJxQD7yGcv\nQcud0SEaKstMMEEPyPCXQRFxmmWUK/Ld9FhUv+GbpaOkr6s9IURqKdX1Vpw7\nf466faMHUYCkyLFUraCbzLUXEwcDXbwZfw5XGBo1riRqicI0GOtsFtTm15K+\n+FaCR1q0XiNvoO9W6DSNb4qRtVl0/XHxpjzuVYudjBalpsqY46QH/7jF6ljB\n8ZHYMn/Ru7riYGkCwcM6Q1Cu0W0BhTtnTNTfYcrdNHe2jjEg6jwE4szveWfu\nQm7EAisZbRi7gEWUw/356f/2Pjr+665lo3QY8Tfc9Tcl8MKW2tUsfIhDAvjA\nWi13U+uSMBnG2Q/2Q5B2B2VrimQtvaTD72Az6lisALEtk2vmgnf5Y2/fg1yN\nn/Rs4bwTeZeU0WBS4G9SYB5xrI/jRUnjmg7KpVOoHS79iUW4csjbUO6Twg++\nuOWVWDJJtgjqZjbyPaRkkdF5FkSTHaOtdD46F8kyzriV1vSx0BnWMJTMYMep\n33VC\r\n=gAtx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7c4b7e41edc7737412479194451432cfd33839b4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.84f3db9ed.0","@material/base":"12.0.0-canary.84f3db9ed.0","@material/shape":"12.0.0-canary.84f3db9ed.0","@material/theme":"12.0.0-canary.84f3db9ed.0","@material/ripple":"12.0.0-canary.84f3db9ed.0","@material/animation":"12.0.0-canary.84f3db9ed.0","@material/elevation":"12.0.0-canary.84f3db9ed.0","@material/typography":"12.0.0-canary.84f3db9ed.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.84f3db9ed.0_1619705944839_0.4681609202255168","host":"s3://npm-registry-packages"}},"12.0.0-canary.8fc29273c.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.8fc29273c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.8fc29273c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2ce605ea954d382e0c7a7dcc76c17b33e5bed616","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.8fc29273c.0.tgz","fileCount":45,"integrity":"sha512-D5wFucao4OsjcN+Ox9BGqCvrrwPfSh9f0JcIKQqyHEPah1VnUP9yGd44EPrA0qUeWr9xj3nMNQ92JKMtX/Z5Vw==","signatures":[{"sig":"MEQCIDD7iA5BjHtcBYbygZqQyYt9gKXeTB+eCTd3RAXZaX2cAiAvlhB0zIfZXBfesf5p0VFXkoY2SY/zaALwUjubvR1Zqw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1111961,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiyQhCRA9TVsSAnZWagAAsnsP/3UgrNr0rKHQkLLolvhC\nXb6lWRAHKz41qlWRJyEuPExzNLrqUOPC9fZg33UEnjyd/D5lLXCG+Fw0dXzv\n/AAZxzwkc25gBwvsEbsvmj5Dp4Lf9pMzTS3JOXblK03cMk+3cnHnYmj9AjO/\n38rcsXj2uSpTm8QlHrMD6bsFexmJk6zsaN+Yuu16VAOD/xRpHdyDrUwGcvq1\nNlUQIYcNlzVKCCVid5NmB8uHov/7UCv+l7xuxNfzRbPjy/uU7U8F6oGEg1vf\ngjoE8A4SrklTKraNrDSrnC4Kht+erm+IDQW7ceuR8vKmf3Y2HrgpMN1zGpGV\nOkuSLwaOXiPNBSkP7dhYa8dQpCIqgjiairgRlBt3NNuxCPy9HEZPjwkvyMyI\nJxZ0awLqbsDi4BzfTN4HU1Pz6d+PlnJouuXItZNyryMYM03l0tHhs8bC3iQ6\nPuFSzJ5YcZ41mtO0NSREM2TYuSw/F5hBNIKXpFeyZShLur+fvSPRvPal9Yey\nuS6pjCIbswGhM9y/u0zwQXc0NN8F7czAHHFVl8oWbJRmLYcBpY7INe8layDc\nKCSnIvSLoVh3T/3JWWMZwknZu62joAvvlkDkm417z42jmXAygp5K3J8u+9W/\nH+OQkGThKeDNQG0NA7usbPTied1XDf8iux44kAPu6p6k/s1PwXFH1WDPTdQ7\n3RIl\r\n=3u3j\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fd877c3e50788fb95663fb8213bcd66f347cdd0e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.8fc29273c.0","@material/base":"12.0.0-canary.8fc29273c.0","@material/shape":"12.0.0-canary.8fc29273c.0","@material/theme":"12.0.0-canary.8fc29273c.0","@material/ripple":"12.0.0-canary.8fc29273c.0","@material/animation":"12.0.0-canary.8fc29273c.0","@material/elevation":"12.0.0-canary.8fc29273c.0","@material/typography":"12.0.0-canary.8fc29273c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.8fc29273c.0_1619731489137_0.8511023432947633","host":"s3://npm-registry-packages"}},"12.0.0-canary.c50d20bab.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.c50d20bab.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.c50d20bab.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2ccd32972c99ffcbeda81d12cd3475d0ee17548f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.c50d20bab.0.tgz","fileCount":45,"integrity":"sha512-EZAW5Ln4bHUqpfjb6W9aTtgLzzgbKKjubLwq892MzIU3pbeWBMPgYoFUEYuy/qcgmhJRQg/CYoqmmkP/5G12DA==","signatures":[{"sig":"MEYCIQCvEP2d1DmkT9gSoStymUMunDtu5/I9IvDgVvBr49BkDQIhAKxiTrf1rohxlSGWtYS8ZLXWABQH6A5bBxP+jIP3aZVL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1112412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgizskCRA9TVsSAnZWagAAZuoP/iI8QWFagxVbTAXk7lC8\np3+DQ2pNvmwD7H6CVP+tLFp6gnplXYCAxnCysySVIi8YApWr6MpdG4vzSjGJ\n1l914n2qUtUG3mTygNSD+qW5mOWsIH3mFfgUzGdg5qSvdf4aliDf0givNBTR\nPWZn5KoMnMKT33GmnZ4+0tKlDR1JtGCm87zRpG8sRy4bym++N+YAiuaBNZe4\nGUn5vgiRUg6RoNY+wiUGj2iJ4F5rO4wPqXWuZC/ixi+BzysLtZbSTUqBKRDt\nZvIuKd6n3hifNasqM2lT4hZkFpOivnN3E4AQ7le6ESCjDEXLdCpvLuos6ml+\nPfZH2c5NEp3Z/DbvKycQ5riPS5n3wwHy8qMGZNlYnssrX6xx7vLS++HTbGU/\n35QZrYSPsdy8ZyCT/VxL2qsfqHL7bidzuGK80Nxq3+YGlzm0ub4iNXdiG4jt\n95u8Kw8yeZiVUcENFq2JRytShDH1eGJZ0JcbuKxKRz+jCIt3trVs4ubsyEIR\n7qbJoRhK8zRmp7CP53PGAiliu8rzzdt91/RmrxpFWOxEShircM+CgSVkrgr+\ni5R8xugdy29kSsn8si6CX+XCMXGUrA/ifSoYqV6urP+OQLNF8XB4ftSAaiRv\nmO3c/ip2sKkTV+sfJ1kSOfrmG2UQzFh7lcM1Ujfzc3f692PO2SoPP9HuO2H5\njDOn\r\n=Ux6l\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2aee1fe5eaed5267b0e67f1610c29dd399d323c1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.c50d20bab.0","@material/base":"12.0.0-canary.c50d20bab.0","@material/shape":"12.0.0-canary.c50d20bab.0","@material/theme":"12.0.0-canary.c50d20bab.0","@material/ripple":"12.0.0-canary.c50d20bab.0","@material/animation":"12.0.0-canary.c50d20bab.0","@material/elevation":"12.0.0-canary.c50d20bab.0","@material/typography":"12.0.0-canary.c50d20bab.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.c50d20bab.0_1619737379977_0.6328013888189925","host":"s3://npm-registry-packages"}},"12.0.0-canary.474836ad0.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.474836ad0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.474836ad0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2a0c0e29432e63670e0177e0723c6ac42152f6d1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.474836ad0.0.tgz","fileCount":45,"integrity":"sha512-zemKsxH7RJuEfhcQaZ3Ed0bSjNYHqnzMyPhNgVW1Rw7QjB2zLxVhywrfW0kzBCdFKBefP6vWF+lTBBLyLOobMQ==","signatures":[{"sig":"MEUCIQCkjT2sEl+tMsf1XvdlHOULNbuS/cekAzzi9fcBmoEtegIgHT3zjggw16JgdHXgJGs4DP3gqsnD3OXS+7ADxYYv/GA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1112412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgjM1CCRA9TVsSAnZWagAALwcQAIOGyWVrAdBxNlAG25ID\nxWiMN7AVP3fiBf/7HhYN/JW87ZdrVo7MOnoxN90J1xNEoSubs5iGyxDWnhzA\nFB8JpHZRdoMxeh4zLmGFXyqet2p/Rseo8UyJRjvUKfT9sX1ZndWwa/lrrDri\n9uoM/zl+GBCUBKofW9dXGopM6EDEfvTdGc8uPNhVvao/nnuueadVdSpRcUF1\nZyTCYYvTqsmGG5BQI6Ps6M/gNcVxQFXReoxovVd+MNZLHPcC+AOZcfJZVLgw\nMTWdvr4LDtep7OPHfrSgEd93Rkwosq8d/SyvcneWoVUMdjMCDxtI0lsb5Hg5\n1fqoJ9mk9sDaRZ0/mp1YsU1HVX/7XgG1nsdMQcgOxxjos4cvHPMJm+hcq9VD\nWGBgKnQOypfNUb9aFL2pPDulU3C31kfCF/kqgSO0i3pcEEc0mrK1ZWwlgA0u\nhsgBVhiIJZia8yogCnNY/4DRLW7yP1oc/FHJz10vpXcGbxLKguWmgUnnM9xK\nhiCZpciQ9Y8MeqLqu7llpvpZhoql8QVeVuIhwEXMqO3ZQsDTBeGGihRAZlfB\noDc9QjOJ73Fqq4qTV7CZSNGnO35I31vz4NmfZNb1BYdntVPyFCcwv6+ktd5C\nyC+eh+XKTTjaObWn4W7viQ0K6DbEuPuXg/TyQKhPVxJ/9ocZ5ksTvrDvdCzc\nhuny\r\n=9THz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c9a6db3013566afb165bda88b05607f2ee398718","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.474836ad0.0","@material/base":"12.0.0-canary.474836ad0.0","@material/shape":"12.0.0-canary.474836ad0.0","@material/theme":"12.0.0-canary.474836ad0.0","@material/ripple":"12.0.0-canary.474836ad0.0","@material/animation":"12.0.0-canary.474836ad0.0","@material/elevation":"12.0.0-canary.474836ad0.0","@material/typography":"12.0.0-canary.474836ad0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.474836ad0.0_1619840322125_0.34656350010318526","host":"s3://npm-registry-packages"}},"12.0.0-canary.f5ad92287.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.f5ad92287.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.f5ad92287.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8adab4c7083abf89f9348848cb3ae20f3043f048","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.f5ad92287.0.tgz","fileCount":45,"integrity":"sha512-ZUewAZoNQjFNBBFWXwnxqTt3eFp+0puiOjPzPBiwsylPDCjHS8+7xEX4m0vCq1s72pKwHXcu8PxhZdfuAFkPHg==","signatures":[{"sig":"MEUCIQCblu+Dqol5/ImMZnW5kH3EbYEKaoeS6yvjIILEC3U9cQIgXAp5e0wxvDUx4z/Q4nqpnhpByf9UlqodaCYqAVbm+ms=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1112412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkD+WCRA9TVsSAnZWagAA9KYQAIoFgHSQnztCjgbRSiH7\nbvvVrGcoK3EfVRWQRi9XgcZJP7jjFqzyd9Asd4cKs81vrIsNkZWOSWAMb2p9\nPB06el46h7H4OAxFNEp0Uzd9S5QUxLcoOBuJv0+JpgNSt2mA5AFdz9V2mubz\n0rWJ7gfyyolNhJgmb5QJUJbR63c17o0frPkTNUc3CS/He6qSOnZQpx0fxRkU\niN82HnpI5y5jjiuvHfJiifdVWJuc01YqrH4eKuRZUf6DlDjqcH1mYYMceoV0\n/SQyuRKsZepowrjrfmwTCgBGi/wFlwM10F+rg+62zYZwa+OdXW+MorM+KHkq\nkHmRa7E2N48+sJAZ6Kete11wZ9gvzbt4wrzPnm6RUAI7GryrkykJShgxyIvE\nP9yhiFrUjO6e3BD8d/Q/FgdlVqHqoE8+8zn22/K9UpidJ92suOS2XViJZYNp\nsFvGrB3mBbjfWbmFdH49rzhyvsoH+OocdO8Qzxl4wp7y3dQw8GxKmmvfa4i+\nAdnvdVizu+1MTt6RzQ360GkQUFxSFxWbDKqpFzykbFHafVMfp0wPl9H1Z2E+\n3cEp3JjaeozI5ZA8Uhnb7i6K3olBnRXbz73jbFyZecApefB7LHk/e/PcP/FZ\nAexHiAOSFvuENmvneeTJP19hD3UkhTLqa4e/030FtgsRk1CGK5dAI+bSAMs8\nSsof\r\n=f6yk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"493c206bef4cedd10981093c61731e1c1547227e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.f5ad92287.0","@material/base":"12.0.0-canary.f5ad92287.0","@material/shape":"12.0.0-canary.f5ad92287.0","@material/theme":"12.0.0-canary.f5ad92287.0","@material/ripple":"12.0.0-canary.f5ad92287.0","@material/animation":"12.0.0-canary.f5ad92287.0","@material/elevation":"12.0.0-canary.f5ad92287.0","@material/typography":"12.0.0-canary.f5ad92287.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.f5ad92287.0_1620066198177_0.5042010562449488","host":"s3://npm-registry-packages"}},"12.0.0-canary.af453daf8.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.af453daf8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.af453daf8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"55cedcff70be47d8ac82d93e7d6990b8f4dbc3ff","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.af453daf8.0.tgz","fileCount":45,"integrity":"sha512-6Ec6JFgLTPaIQQfYjPhlJqw1vmI0iVhvHtw3cZjxxg3MCGodGD7SZxHk7dUrvl1v39m32W41CY1qn0XC6sygQA==","signatures":[{"sig":"MEQCIHvC7AHSNxw7UMudB1/FGEsJoSvb+mpIouDX3wFcAiw7AiAKzG9lTX+S2+leXo5bHA+WkSi4tE2dtnhnHftnmu7nKQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1112412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkEbrCRA9TVsSAnZWagAARUMP/Rf6QB3Hgrak5/8R7IzG\nX9ciAdzUk26Oy4SnpEV48mKNHOnDOAZQwhz7wfJwWm2lKeQLnGAW90qRp2A6\n/4r+4SoPBum9Ne04YWVUf6bLkJH51Uj3rN26BVIguCo3gOQAaKEcSR1gQDXE\nJnxd/KYKMXjcedcZinlIfsp4RsuZLKCrp31OwOKp4WE3yM0UpHTgrEUQTsDQ\nUSBpwHmFsLdJXduLK+aohlsrggT3PvHx9ougeqX4gJN4HERQvbIitbItbBba\nMAhCNuHItm+1LGL/t2MxFC96Whc05GWR5ip0lfbtb57SNe+GN6eym7WAPzxT\nb6Z9EEufp5pM/ieSp81XXy/8wQT3w0/alyl9mWSVBj+csY/twW8PPFEQFX6w\nOULlKVFxITvShFv0MH59y9bpw8jwTsbJkVbnAoiWHcfY6rDul0wT3QnSXC+V\nmFyhx6CUAFFiBWMK6Oe7b8QZXfRIK+s0IRuc1duqc3QQKAYYMHURqlS6pIL7\ncekQfl1k9OzzBNbZUni+x3w6rm8RXvow//A9WecmUKT4kr87OzAZUYg5/ibR\nLYNtjhtMUp6/gH1JEk0Qh0t8c+dtA9DMtlHwMtJ5igBgnyudTvhlG1UWuAhh\nHf06Rj56OAqNy5/YaqnnO9KADobP//sRQCNk3Ldu6D/eovDiOGORW291+t0s\nn89f\r\n=guN2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d55347cda19a4d9469eff68955185d9d5e235a16","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.af453daf8.0","@material/base":"12.0.0-canary.af453daf8.0","@material/shape":"12.0.0-canary.af453daf8.0","@material/theme":"12.0.0-canary.af453daf8.0","@material/ripple":"12.0.0-canary.af453daf8.0","@material/animation":"12.0.0-canary.af453daf8.0","@material/elevation":"12.0.0-canary.af453daf8.0","@material/typography":"12.0.0-canary.af453daf8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.af453daf8.0_1620068074524_0.7757456324003646","host":"s3://npm-registry-packages"}},"12.0.0-canary.1f1918c24.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.1f1918c24.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.1f1918c24.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8de43ece42acbdc14dcc113fe45ae9241a4562a9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.1f1918c24.0.tgz","fileCount":45,"integrity":"sha512-Pd35QhYQjWE9P7O2kzEw60UBUAu3af8o21TDgbB3SFxY0R5dmV6GrRn+zbq94Lao0U4pEJLDGCxdYr33cQS/OA==","signatures":[{"sig":"MEUCIQDgXjLNTCL9P685HO8pbGVIABfd+hSDNSoVQggbdsqQIQIgZbLT1y9Mlxjqi4ahsUte/1TTu+ZtrE1FJniu3j1yYi0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1112412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkE3CCRA9TVsSAnZWagAA90EP/R7bV+hy8gTQSvlr73g+\n56WI5OH68Wh7MgOuoicfm5pqNS+0RKq4tNK2QNRedgSqNAK8bX+U/4HpdmHO\nQadSZoueC6P/RTQqncTexKvrwrM+PoKSmO25R1DanHEJwYk2yRzMAU/zyyLx\ncp47U/KbEojBrjAZrgpk9DcPKY8+xNQUcRYIWfW/guDJqyp0+WEuQFt2tC8V\nZ77Gz2nzq6Oot2beZE54MoJYMAfQE/1s+5elQxRbHHZjvpH+EfeioEtly00/\nWvjNLuKl0UKZny6vPS3B45Z4xCL0l73BpI7vx+gGaJW6E4TmUDNxgHam6crM\nBboHnKi0JDBqQPHiP+fab3rumoHoDpKfkdcSgi9ULvsWYjHdMztfpdVNgB7M\nEdb1GAAYYSlXcdliyGXYuR/yWc61iyCRcPGElyD9hishqA+eX5TPD3Co0m3F\nhFVVraw4Sy1Ww41eM2qtKJjyMao8JQkZy84GDPaO+vZ8NyPq42yS/PObEGVL\nMzx8cK0mY92ncZg9K9cwcNRCVoIqwX2sQk3s5+I1HYMVD2vwB5n2TBmTLJSP\nyncNaIUYYdJv1I/uW78SejUFgZ0z04PsEV6LyfGtawyYigO4XPy8Ky//KJKR\nmi48VP/f3upGZPOXVAn2e7sAILCX162wrk7ihWr80JtKLCDek8AZjMzGWjiF\ncfY3\r\n=eAXD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cda2e786bcb73ac46385a1c6459a8ab7bd9ef6a9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.1f1918c24.0","@material/base":"12.0.0-canary.1f1918c24.0","@material/shape":"12.0.0-canary.1f1918c24.0","@material/theme":"12.0.0-canary.1f1918c24.0","@material/ripple":"12.0.0-canary.1f1918c24.0","@material/animation":"12.0.0-canary.1f1918c24.0","@material/elevation":"12.0.0-canary.1f1918c24.0","@material/typography":"12.0.0-canary.1f1918c24.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.1f1918c24.0_1620069826050_0.04610645829241178","host":"s3://npm-registry-packages"}},"12.0.0-canary.33148231f.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.33148231f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.33148231f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8f37d006642e13df4c8730dd0eca7e2558cd7754","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.33148231f.0.tgz","fileCount":45,"integrity":"sha512-LQfHbI8udWohmNFz3MI7OkxbUOGR61FBTeLlNYnPaSvxTuuyJDEAqmu5Eidmu1ByVdcsYsI/hSnLNXeXd3ekIA==","signatures":[{"sig":"MEUCICBkzOaqwoJkUiwlOnohXC+t315J+Zqid7fcg8MeFSgnAiEAgenuHxlQLH8S+FdoQyzLH9mjDVE9DaQ5DOEKdS9RIHY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1112412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkFGECRA9TVsSAnZWagAAb0kQAKGLaluzpv95GBrL9aps\ndGwHP/ZNEULrNdJTFLpk/+5BBKnZdH31FgZzfM5xxrTpLao/y0eSWo0K35+o\n5+EBAKPGQgQ0HNh2Ncetaq4iEj+9L0eZtMUD77hcd7pYJOlM8HDIFN/K8vbG\nRz5YBZlkk4A5MkAU00Xw4q/WIHxyAwpIjMS5CN6f7KZMsQ0pV2+O1HMSVLRz\nafFvMmFhy6t7k96/u5RARlJqXp0GKkWuSo05lA7GriT42sv7nG/SMG+xfMSL\n8jC5ZQP86LtsfNQNZM7YjqvHUA82CqkV/x6rJ2EZR04r6qX76mWtjNrrEKJ3\nSPxj/QRzcUnIwu6MRxrsQe+fUPPjPS7GvqB8pthRCCPCwoLcVgBuWDEAnTUD\nUJtWnTFi2Jsw50wIXPuMijcdSg6uUo3D6lk0CikuU0G6b5h3JINqUONRI+vX\n8Rro1QqBOEFbg6vcCiS/ZP7XJ03tdH+FNT8rX3fq7mor9LgHXo90y1biAY1B\nwEUuVNo3kMHIqnSbYe+XZV4Y7ifAVdg62FGU3LYCISVwAX0foRqXAFCVUPEq\nOM0hc6q4UlS8YZo2OvhVn+xixjvZRmcnffBGga9OSLY8vLrkpB3KCyCfS/eH\ntLyjC6KAF2GlK8Eli5F4qLzT9ffGRSpIzYXA4h5Iqe+/2v+1FMBnvqd++cxm\nuss8\r\n=xg+P\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bb5a14b15a74fcef265050ad96f737d0acf36987","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.33148231f.0","@material/base":"12.0.0-canary.33148231f.0","@material/shape":"12.0.0-canary.33148231f.0","@material/theme":"12.0.0-canary.33148231f.0","@material/ripple":"12.0.0-canary.33148231f.0","@material/animation":"12.0.0-canary.33148231f.0","@material/elevation":"12.0.0-canary.33148231f.0","@material/typography":"12.0.0-canary.33148231f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.33148231f.0_1620070787752_0.49813290390246134","host":"s3://npm-registry-packages"}},"12.0.0-canary.06b76fa74.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.06b76fa74.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.06b76fa74.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8ba482b65f918d95056681a5473b4de5563923ee","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.06b76fa74.0.tgz","fileCount":45,"integrity":"sha512-IZ5OXG4/e46ImSTHBzIE24SYXO0XUSvwpD8fPd70aKJf8VqdyuMtk/jtQ4X4PoXAybwPBGNGHPWsGxkEzuSIzg==","signatures":[{"sig":"MEUCIQCUamaN6kiR1dZe/EXcN9spy3yWBrIHI22GmGSyjf2pZgIgElFPx6ehG9BtDyCjTEALnYeLrorp9426p232hpdOFIU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1112412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkFMpCRA9TVsSAnZWagAAGewQAJBRmC5fgqp93VvC53mK\nQkfvaf2gPqtMe0So70qHzzIvF29hJ8Cc1U9huxKiIxH5N9WaE8ODsjLFqu62\njuoM1aqXhDIVEiQPYOHJ4KrXCRrWxjWghUypLJ0/RdQvCafcli7D6lZ47x7E\nnbruCpOMXZvMZ3Dbahh8c8FxUU7QD4F/0MWPkbOvq2o+d7Nn/poHcTK6tXhl\nkGcXJKQaUh3E1lBG6FobrcfUPosn6fdKiIWr+Jx1P45guDs5tf7waNcqnpbZ\nOFbDkb6OGLOpy6c4hHSy9gHeq/FDEzdi5iMfsap5BA1SFDPlOksMj9fZnMNL\nopYBSe7LSs/ZUTGZuyKSU6UNjCpgUki4C3sLfK2WfFZZbqfqGMFN+tI/DZls\nKpDGFL3yiPXvzsj4Ac53ALXAwQ2Ayy+4Q61PWwWuLWXFUaJ1c+Qeht3rYsqQ\nrBdgqEF/CHZUEv70j9l2VBNjo73gXn7MPN5mG1pISisay7VCbvdW9wwGkZCH\nZy/9fZD0uqdtBJphLjkFGPLs0Pu0Q1FcJbkeBjnBuDWm7fvpq1wP2WKgfHl0\nv0ri6cmEk/L9DW3tTAx50GBsjFUf5IE490muI/ikKSYHK8n+VN5uhtC4xN8t\nqdA4lTQrHlHZEf6Uj/G9qGPr/BZpYcKuzKavVjU8U8dAvQwyl/FSVo1PUswO\neT9o\r\n=qzfA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6a6a73c9687e196677329640dc1ed025d13b44a4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.06b76fa74.0","@material/base":"12.0.0-canary.06b76fa74.0","@material/shape":"12.0.0-canary.06b76fa74.0","@material/theme":"12.0.0-canary.06b76fa74.0","@material/ripple":"12.0.0-canary.06b76fa74.0","@material/animation":"12.0.0-canary.06b76fa74.0","@material/elevation":"12.0.0-canary.06b76fa74.0","@material/typography":"12.0.0-canary.06b76fa74.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.06b76fa74.0_1620071208821_0.44886064924849767","host":"s3://npm-registry-packages"}},"12.0.0-canary.7c5000473.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.7c5000473.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.7c5000473.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"297754ab351e26d876dad60abe527f7b2e511a5e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.7c5000473.0.tgz","fileCount":45,"integrity":"sha512-4yF6BTR1s6q/XLdHsjf5pYiFNjCZaoY7X91xPFuBDM1X/ee7Zx4d3rAcCZSnXJrEi/0l3TgF1WD/XVASrDfS9Q==","signatures":[{"sig":"MEUCIEDyRD/k/PqWUtuOeYFV44suXjtAZhWKOI/UAHQeDPIiAiEAvW09L/h03oxlA2sSpO9mgp2yt/lqkD130jkTvgXNKQw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1112412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkHxhCRA9TVsSAnZWagAAuqIP/2e3ZVhrwJOjwNnzAEJ6\nBr60httBD6a5h8ULrMa6joAdW94sZT5YzGPqR092/T7oks2HmGgUutJn6yIA\nHQNxIx9KZ5nGedgworESAKtqbG0gnbaSL1gXQslKam654yTY+OuTh983lHBt\ndTXkyM+Fea3Pl5ELyGnqTHjDSfVyU6s77S0m/3EfuoL2HhCU6JV1najo8H/N\njpklCgpRStoVjodojmLRofAPeVDHyh+tghARdZpYcU+xvSo/PcPItpLn9+jg\nAxL3CL3qEQ3TjCSP6ugxw7cbCzmBKSVQOhGI4S7vYlyE5vKqswZZ+sEhV+wQ\n94Mn+8ObmsNtx8+Iub7NPzdvlXwNeOVLt+pgvPdAtO8UvJ7o6xBwtUla3ZGt\nPPS0GVYB5SwKnyPp6Af8PaTgDPX2iRYlnplPORblFvoDM+D6xeqsa8itybJ8\nJEirXK8astTqb4n79KyRN4hdN8a//Bzixn6PGZC32sPBoz3vADoldvE7QxEo\nhB3f4AF6RXzELOAof2sPcqXkEnUt64rBY59awUjpbXlwZT929CS2XmppRVlL\nJ7NgUsIYvbei5ycKgqanlBTlj+7AmQ2TGBOxio8UYqhJEZMQBvcUkMIt+3Vo\nv9xBSTgoVzNfflqK9gApsGybNTrPfo50Z6GpcaT8+rrwympaHLf47ZFgyr27\nvJZJ\r\n=IZXM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d53e0032497f2efb6a42d541ce5cd2072711f86c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.7c5000473.0","@material/base":"12.0.0-canary.7c5000473.0","@material/shape":"12.0.0-canary.7c5000473.0","@material/theme":"12.0.0-canary.7c5000473.0","@material/ripple":"12.0.0-canary.7c5000473.0","@material/animation":"12.0.0-canary.7c5000473.0","@material/elevation":"12.0.0-canary.7c5000473.0","@material/typography":"12.0.0-canary.7c5000473.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.7c5000473.0_1620081760824_0.4197238358658626","host":"s3://npm-registry-packages"}},"12.0.0-canary.de997644b.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.de997644b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.de997644b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5217f6d1737456bf94c9d13136169e45a716b9e1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.de997644b.0.tgz","fileCount":45,"integrity":"sha512-L0ddZ7uI86rtPQQbxlptXV4DiFdTr9Zvx2WXrJPf4ZmPA3CkMARYfyXNWp8grnV9B8ii70p9QBYC653ABkG6yg==","signatures":[{"sig":"MEUCIQCOWaMbEj70Sn1V7pKNvMDa5oUPQfmCujpm6obzVrVv3gIgcL1mrxSMEta/ZKlge+jodm2tDPkSdT8STtX81lD/rKM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1112412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkYRtCRA9TVsSAnZWagAA6KMP/1NBwM8ASLKpVA6OpHkN\ntPs9l7vd8xg2SGOQi4wq2ejpTYbZx0wKgpkzcbUNdjFU24iJDuCYJOM9zn/N\ngjHjX82YqzAytfgJVtrLwHSy7sjB1vPEUfBPL/MJt53UmpyhRZmu5V7TllYn\nx1eH0uaSogJ4xAfhdWeaS/u2z2EK6U7rNJ3VcslaDtGcse2MBjlPMhS3gGUH\noClQAiUExBFyQW3zHAuK2nR6G34h1ox+BzgM3so94/Y+Qx2RujCjistI+zu0\nfOJjUQHwnPWJgOZlDLExikeaYlzJocCcpr5veh3ZLCizf3I4hVXiPKNZXeYp\nODfPDSUmYxZ0agghpHQBQ2YBIuNmVafGzyfgefETyvKobeD1QyD2CIk7O02Q\n48wOwV+u4EdPypj4SzafMzJ8sn7V40/7FveiWHDVKX6jBzHjxVviPjy3Wd3O\nE7uiHeDnKKquwTBMFoHNgfR6R00htvv7sghUzkFyNO94kF2BUChjg1fcJ1xV\nRZoa0ZWr45h9dlm3qkf+C+LinUgwnzgYyMzO9asqgNlZd+ZyD5wE/U+fyuju\nILwLCb92ZlmCiA0fPddtw0zoGtp7voBmsOyT7J2XO0RDeZn1RkJov4F21ofQ\n1Xg8/1R33Wzn/E18beSwvUWodZW1XldxHW5M5C22JWWMY96zexTqT/VZN1xK\nQKtr\r\n=EW0a\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"efb97e2ef70bfc07ed9b429041e4f201bb0d3a53","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.de997644b.0","@material/base":"12.0.0-canary.de997644b.0","@material/shape":"12.0.0-canary.de997644b.0","@material/theme":"12.0.0-canary.de997644b.0","@material/ripple":"12.0.0-canary.de997644b.0","@material/animation":"12.0.0-canary.de997644b.0","@material/elevation":"12.0.0-canary.de997644b.0","@material/typography":"12.0.0-canary.de997644b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.de997644b.0_1620149357322_0.8945319792851643","host":"s3://npm-registry-packages"}},"12.0.0-canary.d4d7f1cc2.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.d4d7f1cc2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.d4d7f1cc2.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cfab91acc6561c7216ab27ee66d49a10624d911b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.d4d7f1cc2.0.tgz","fileCount":45,"integrity":"sha512-/6tO4fWzRqjc7awTqbjxZ7kiBa8+PRXHjnbm4C5Utxyb/Cm0defsn+PHs0NAs3Hb4fTd3/IdpiV0BUCjfZ6q5A==","signatures":[{"sig":"MEUCIQC22xKoQwU8FoQBlZVI2cpg+lWO0Hpyg79PLyxRgsZEVwIgX60KIPBmI8Kh5Fl9Ur9uV/t0i+HETFXDVV5lOOc1qYI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1112412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkYq+CRA9TVsSAnZWagAAWMUP/RZfITRxkIfRYAO2Cdld\nlzULY9vs2f7B0H0KcDGq7Wet5pL2Nq/zcPBIm/77py9CPJFrJ+dlPB39kp6k\n9XBvqe5LCo8YWOnegRPd40UGx+yA8XWuURbSNhtl63sakOlw3TQ8OcHLiRma\n8+ZV5ISf4+EPbpBDmrDXW3hWcbLdePg3GaXq/jfFdEciI90/KoREWnrnukon\nTrEMtSorJ6I753lP5pO7tumZcJcq7KEYAOEgNb4UhL7Ysfa3MeOMiXR/C9XY\n4tN9k4xPSMoOsUYWExGAv3mgk1EO7IUr0OsASxq/jGC7wIXc9jS1MYV6CxTW\n2Cuk4wwOY6y1vPeSdMZIIw+o8ElW+64Nuoc9eDgKtGZPoD22hkfi5lNAXAUB\ngiSyvJrdB1zAsinQ+AVIumwMMXUQkDUQag9Rp1EsXkEAmRB91YvDZB5mKhN7\nClYA0Xb0DlAw94Le2DS5UfSuNrKPFsOc+4X29goHOh48KDjzpfagAeF4rQfn\nzy+EfkstjoOQC+MwGECAVQ+MG7fRj4cZiGvTpU1h7Z4pb0ShIGyrbM5VI3uu\nog1h1TRTyTK8oaqGLII9oPJh3m30nKlylvUy0VhJskKFthnTmRaFcMT3M/da\nyYBKr+0qe6Vl/nZFMRTQW2xbRAJxrSRVOKj9zFcYOGA/OSNpRHsMpKy0/7yC\nouly\r\n=bSmF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"473ac5e3a11b87616a0dcb004bd5a9411a271f6e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.d4d7f1cc2.0","@material/base":"12.0.0-canary.d4d7f1cc2.0","@material/shape":"12.0.0-canary.d4d7f1cc2.0","@material/theme":"12.0.0-canary.d4d7f1cc2.0","@material/ripple":"12.0.0-canary.d4d7f1cc2.0","@material/animation":"12.0.0-canary.d4d7f1cc2.0","@material/elevation":"12.0.0-canary.d4d7f1cc2.0","@material/typography":"12.0.0-canary.d4d7f1cc2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.d4d7f1cc2.0_1620150974026_0.2489543554249325","host":"s3://npm-registry-packages"}},"12.0.0-canary.be999eb08.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.be999eb08.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.be999eb08.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"afafcf23682be52799581b0e0c35bb84b38803e8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.be999eb08.0.tgz","fileCount":45,"integrity":"sha512-armpIySsi4pn8E7Jc4BHuPOtCs6a315p6zBkLbmNCKgdJX9HfASvWTGSEqIigGJAdduLfFN6VDqh5YznODowOQ==","signatures":[{"sig":"MEUCIE7P3/5GMaenSwbFA20Q9I9CDlDbL2NE/78Yg/1ZL9quAiEApuLbe1ONxM47c2LDyTxRBxB1grGtHiTlD1ErEUTC3sE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1112412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkYvwCRA9TVsSAnZWagAAA9MP/3eH84FO081ybkmjiern\nAMvJDuGMh49nIREO8dNDIkk2cd1xargAm1L1dLViCen72Q+FVHC9e3jjzctp\ncM0/7nuiNyK59zMYSuxCWJ/weDG0EkSxayLm3COBTHwkYexjm9IoTm1JkLLG\njUK+3ag2eiZynJHA2W9JidmoJpTLrSDWOKWY2vS0+sXxz1MDheY19rUouLr8\nsZ1zb9UavREidwqet6ZpVMahH19iy3D8DmttZXALnQE2TIADFh0Ed+KyoH1K\nguTZDVew0tMaSMazm9NBE/a8C8FtsaWGEnUDgfYS0kykfpvxGsGTYHCB24+E\nRXSpJsRuxhML6bFqrNza98ppwTw22ulTKCNrDkJD0EqO2aPJgCwi+Ig1bMtX\ny141gUQ5UuFUxEt3Ov02mgSef4bv/Yv2GSN/zrzQez8CgokFURQDMEaCMr46\nySW0Lpisd1K2kdTiLRW2v3R/cYTpeOs6dWg3/u2IXfSBID9I7ehulKCedXyN\nAR6Ke1kIFKxbwrwT2yyh6RZrTevKEd6nMWkq0lKP3P78lUnc6nShj1bIYs4S\n0hdMDCEezijhXbEQBj4qjdKV22g7b0oZMkL8y/lzHsKO33R9MqP3Hz9Oy0Ra\nq84zQHLKhoXuosAbN8v5Ezdw9Q4MYqUURpHK7HRER8eAVFtIyJvFOuAz1lBS\nwb8p\r\n=HshS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"78911f7ba4a7d68ed38f554357f8f224ec7a15fd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.be999eb08.0","@material/base":"12.0.0-canary.be999eb08.0","@material/shape":"12.0.0-canary.be999eb08.0","@material/theme":"12.0.0-canary.be999eb08.0","@material/ripple":"12.0.0-canary.be999eb08.0","@material/animation":"12.0.0-canary.be999eb08.0","@material/elevation":"12.0.0-canary.be999eb08.0","@material/typography":"12.0.0-canary.be999eb08.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.be999eb08.0_1620151279250_0.9872413273674483","host":"s3://npm-registry-packages"}},"12.0.0-canary.eda1705fc.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.eda1705fc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.eda1705fc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"445740c8fd09e394251edac6f5039c41d762ea11","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.eda1705fc.0.tgz","fileCount":45,"integrity":"sha512-hS5WbuVqXOQ6t5mOADxJZn0orbVeHox+y5DktePKu8FiXbIHK6Jh3e0xtsGOLfO+RUaMThkGiYbZKYYUMxHCNg==","signatures":[{"sig":"MEYCIQCCL795eVoU97eIxLJwyRElUTnYKZqwwoFmPFxXd1czCwIhAJWHnB24e5xiHwRdK/49kWV6S+71GPX+3eE1+ewl9FSZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1112412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkZxhCRA9TVsSAnZWagAAJ0YP/Rkqt+ljemRn2AdnEYY2\nKPgjred7nuQT6OVbwOxfIVCnBQg8cYTIs+wi4m/tYO18rYPvMIVpqR+Gn1E6\nc55DuiGUFE/JCIPHzWVp/3oL0gQYbbME+FehirnN895JxfNfeL9BYR6EPwFQ\nkboae4syxjSihJFC/gP9S8vdywzIueeThscdpwrURqafnk5kvxtEYFBLumKV\nsZDNm3KhFvtXiRtjDZiW61lRYGuUGS9s80CYCukJ8sNmUAJXwlbGLiUuuuJ+\nKm13E+YZ7TogbJhyHCfgc2NidePeYLNUIt15MJCjAZgDD8DbT4AVHx+yLZge\nK/esqkUTsQ/o4Bk+WjQrNDy+6pWjSW3T5Np42q4PuFxX1jxVh805xtfGWpUB\n7RB40+rTXyJ6OOH6eJTzKbfn21ErRy14n7RxgJdmvE9DpEjc/2/q+1XM8MDs\na/EV13W/GauRynzcy9rmPRWUcVhKywpphb6rc2kqm0RKDabg3qCCK7JvzSQi\nC4Fw5kz2Tew0UtFwhheKb0FmTiNNe8nlemJLm5HMkVlaUcNIuQkR6JKmhBqU\nv+0k/X/kg7R/tf7qKoTO++AXWaRFtLn3WKsECNgXtHwQJy3vh6tc64EVI2t1\nRQuRgK6FY0wGIPiSIH+qORyDexNTJrx8IqAh97Fcy25sc3QePrmD6e5FSuwA\ntL6V\r\n=VSz/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a4c7f355f27d26cb39ac4876510254d165a5645d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.eda1705fc.0","@material/base":"12.0.0-canary.eda1705fc.0","@material/shape":"12.0.0-canary.eda1705fc.0","@material/theme":"12.0.0-canary.eda1705fc.0","@material/ripple":"12.0.0-canary.eda1705fc.0","@material/animation":"12.0.0-canary.eda1705fc.0","@material/elevation":"12.0.0-canary.eda1705fc.0","@material/typography":"12.0.0-canary.eda1705fc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.eda1705fc.0_1620155488622_0.4735956802439434","host":"s3://npm-registry-packages"}},"12.0.0-canary.718c90178.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.718c90178.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.718c90178.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0332184506556198617663f8b7181c5974c2a27f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.718c90178.0.tgz","fileCount":45,"integrity":"sha512-cwwKa6JKcRgUbHF+Tq0JEw1OO97wVZCHx2C9XhoHTqynYa+iaFfEr+UHbTh1uQ2NrbhfM8o01avDgXOErLpFGA==","signatures":[{"sig":"MEUCIQC71MpV/BRdZaAwNj7T/qJA6ZIT2gI7MfbdvPckz8ODJQIgKVrQ/S7+ADDu74tOywCZnkU5n7kc7d7BxT7W8SWEVQM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1112412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkaBwCRA9TVsSAnZWagAAh6oP/RRR0fAAvh+KjE7BjwRm\ntC5nzXbVSdBe3hhKm6nKuoXG8Nq4oU2/fNc+HIJGDtFwoDT8F00S7POR0VfD\nYxxVKBSK8nhimUJjzY9xEFrKE8WUUUNQJTKZ4sIPOk69gL/nHWa9k/opLGGG\nO3VFJcByVAo6kX0NSjx7l7K+aN4RqWBULt64hUeknc2KTG5/w7AErVaGlqyP\n8PAtteJlMpQCy8bdIchjYENKZpUhYeAfqlWvKx+NMzEmTHtFx9twQYYY9+4h\nlWHe5582xeFVblCwJXCog0U0xOtLvWl/GoNBZfULweWf1G66O1ipOVyFDTwB\nmPJymtznavAWPxpljD0m9MNSKQOCCWdWK/4YP/R9yW7wGcnz8Kuq2T/3ZtnJ\ng6cp+yriZOWhbo+pI8tfXWTvO/+I68auEgu+729vVVlKzLTqBWTD3O2MmEvn\nC5q5VzzU0gK3Ze6dRnexKvCod/5jV8eUuv69nRxYUqzbItupbsBzmaPTAunV\nRtfKKdvsM/zvxMWSxRwPwMdReO6hS/uxOOG2e+7phIVjHM5MLVvO4D7mHg6G\nhKFTaHLvMSo8XzRKVgYXA7SIv6jRThhao1igp40m5VIgvv0JCA8PEKanT4Uc\nswjRCBW1H9q7UOx2/g49keoPwFxKiNpiWUb9h/aOktyQg40vun49Ghj1umlu\ng71S\r\n=ZY4n\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"38bd77e93e567329d390e9784d4f591d6dd41191","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.718c90178.0","@material/base":"12.0.0-canary.718c90178.0","@material/shape":"12.0.0-canary.718c90178.0","@material/theme":"12.0.0-canary.718c90178.0","@material/ripple":"12.0.0-canary.718c90178.0","@material/animation":"12.0.0-canary.718c90178.0","@material/elevation":"12.0.0-canary.718c90178.0","@material/typography":"12.0.0-canary.718c90178.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.718c90178.0_1620156527880_0.7112120763808245","host":"s3://npm-registry-packages"}},"12.0.0-canary.0e3917299.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.0e3917299.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.0e3917299.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"398382f31fc3a1ebc65900d4aa2f0f1c5017ca11","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.0e3917299.0.tgz","fileCount":45,"integrity":"sha512-QQLKJUAk6wbT6u0BgccXuuZ2qGfTgfme47mmiU1GOWzETbPUnUmbQl1juBYid4mXWdSoFZZWuATrgXJvyDdPSQ==","signatures":[{"sig":"MEYCIQDgV6e+b62MRPrXM7qApTTswEfjJSpRhTcbE6s0uOeB7AIhAIveLMzzWh5rOclX5da2bDEZfixj1hrHPaMc5TFFmELz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1112412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkaEUCRA9TVsSAnZWagAATQ8QAIM4RjMKt9hbgQNlruy8\n8rxd3+ImJBKM5k5XcMB7dz/T7PN/u3g3Ri+8241bS+yKRN2ldy1Xc23sxt2i\nPNJQ9UTbQcfe3dlW6vXaPDFob3GRe6QZfZXsaiyTHQjUl176snQOnVbqCmxB\nQwre+sjDc8PJR4ywlk1ToOXj8QxiIbSq4Ch1oyWlFfWIdeNxmmagx72aAVV5\noaWKsf6RXsLZ24Pho191OhEFCgVRTsYHFjmShzNr3oP+rNq3KQQrHMAi99TJ\nmIfY4z0xz+sG6fMua0QwNPc87HBTKydGJTB2FIGHJcsjWPbJPTYSAaKMU3d3\nD6zrizqpheJn+ShLjDczMxIg+Bxucet6RWI5L2TC6mODb5UB9TGKcSxNXKgz\nd4dGuy3cxahIOtL4izTdygy+PZKeq5PpqHO+rK1qw+jRRM6TVPZFHLoseO21\nVWpqXxBXqeOcteMbq2N6S0N3l/4wusAQsWRoPXDsUQNOvNH/6/NkoeERjmMm\nLf+HjIS+L+cQ0ln8cEeztQB7y1bS3xRzrKYM3erkttMvWrNz4FtG8qmi0Sfb\nCBwSQ8YQX8orNHJKAFwuAMRi2hN0r4VMfl5gR9m/pHywVokDjmhKLJRTh2/w\nnx+NJNkE7gLlXmdnpiFiRC1i5MO7P4SJFNdMEerkNpGO5EPs/fO6TT7xVhcD\n0ZhB\r\n=Qg3Y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b53d9d2ca98f518aa071c4933f2c0046916932d2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.0e3917299.0","@material/base":"12.0.0-canary.0e3917299.0","@material/shape":"12.0.0-canary.0e3917299.0","@material/theme":"12.0.0-canary.0e3917299.0","@material/ripple":"12.0.0-canary.0e3917299.0","@material/animation":"12.0.0-canary.0e3917299.0","@material/elevation":"12.0.0-canary.0e3917299.0","@material/typography":"12.0.0-canary.0e3917299.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.0e3917299.0_1620156691582_0.7705343159820515","host":"s3://npm-registry-packages"}},"12.0.0-canary.836b3c7db.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.836b3c7db.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.836b3c7db.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1bd36f49ce242e53b61429c0c245ebb8869875d1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.836b3c7db.0.tgz","fileCount":45,"integrity":"sha512-y0N3OoNmYusqqOI9MNNFV25mdmPHAtdufMjNGoZRWcY6JBgIDAUUo7hjjPLvWGaSKjF+i57GugTaADO9Bj/YwQ==","signatures":[{"sig":"MEUCIQCR6S/As7DL6kkDGpLjpVuyVQWVVGnyf0RhGoEbgFkRtAIgKw7ZS3xqXDpdEDR8dlcX6kJaSowat431iEoNy0Ry/zA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1112412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgka/zCRA9TVsSAnZWagAA0fkP/R/JJtBnYmg1/pwIEaJr\nJ305KgQ7g6X3acZK+ejZJjrDofTyjDCZU5aLH2+yQ2WXduHBHYGvHCDuFW47\n1CveRhjLFYbRJsf8rhj0/Sbcnojz8EwlTnZWPqS74HAuDFQI2eD+r52cU47K\n0sf5M/7cfaiMmVEU27HYWm47jp6Vaq/FNImo5d+1792L9YNp8nhrNDRoVl65\njQjwYk63DSMbuxIyB69LZ6dirGurDMd1SXTPzLE/MjWJlJKsYFMG7Mok9htC\njpZBhlolbLSAzA87lGHylUPALtKE0zDfHPjss3X7NJVUp/UpxkNiWxSCbjwt\n6Cb4z3ma+Q5BFKs/+rU7c37cwKmli6avgaYnwly41NYNZk1H/4/t8BQBH7OB\nSh0+4jFbkaNFaMxZICYmfTJWnsQPmTK5sI3grqP/IdG8EjoaRACzPcBqk1z+\nhML9x/F5xxbNVPYp46F9CvE0NuLfNeFr9ZoKaMh3Xva+4LhM0JZWRabJZh51\n4GTwC3R+Q7PchCALdvP4/VwgAUrQwVL4n84BKOHCWCcU7/JmAHoataouaq4E\nis1wuqKyuMwiZai9nCwrjcWzB/HGbOpXlvlrnWzTcQ2c3GmlY4LiIrAp5M6+\nU+lMBt2bkEJgxHbcuEYcTebQOhUCcut4Dyo9lv6vFfMJzqorbyoWcsfO36Us\nS+HM\r\n=tVcn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b39ef8f7b55792965f33ce0e4907f1811ba2b17e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.836b3c7db.0","@material/base":"12.0.0-canary.836b3c7db.0","@material/shape":"12.0.0-canary.836b3c7db.0","@material/theme":"12.0.0-canary.836b3c7db.0","@material/ripple":"12.0.0-canary.836b3c7db.0","@material/animation":"12.0.0-canary.836b3c7db.0","@material/elevation":"12.0.0-canary.836b3c7db.0","@material/typography":"12.0.0-canary.836b3c7db.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.836b3c7db.0_1620160499386_0.7957806508527188","host":"s3://npm-registry-packages"}},"12.0.0-canary.53d4e6d59.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.53d4e6d59.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.53d4e6d59.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"37d08323fd621fa9a8485e726f6bc0ec0d8c1c77","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.53d4e6d59.0.tgz","fileCount":45,"integrity":"sha512-vrqa5s+OJiU+uBe1KYvow1yEhtmVbhqTAj+oOkb1fbG4cD06mrOc583To0kST8KEkCfaHOwik03+hivN+mygpw==","signatures":[{"sig":"MEQCIHWFdlzDluUJpHn0397q81E4k0LmFIGXTIce+RiumJenAiAwMlMo/zYpwWrnE58d4s4g7JYmRpGpCky0hU/lNrfc6w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1112412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkbOdCRA9TVsSAnZWagAAKRIP/R8G3VifQXftp0OW+Yke\nDQIcyAAyH4LGYNAoI5rA0XeIfc5FHuGeurnk9M2eQqvOQD8hcj3AdxMPrkbh\nwv7qet7XFvOsHtrmPyLE8/Ulfl8rotFi5HXlKxhi+B97CVqiCs0EWV9fmvWR\nAFwyr6VLtpkKb0p2ghfNbChi2bijdEyej/AD3cArkxGmRy00Q5YiW06999QX\n52BtxsNEuHJfeH3QDQVImTE1y3fJQMlm8dP+8B5c944I/pwdXovjuVrQW5fx\nbbajo61H8O2mKZga/f/aAq7KUCGgPe18g32xqV7w3WnRJEFWtXvpe2K4Cjf6\nFUAJ1gRx3pf79oLvGaMZKUsMVDvGs3okYLPRT+NVtfxiWRMXC5Nq+n0nvNmb\nNONNnRA+u729/CiuyRf5ofH2d55qhP1CH42ey9EWGbu21h/bby0XOYHZzBeY\nTTp+OknzrrfitKDZiYQVnrNEhM6weVbMb/OkcqUQIiAFxDAEkdqg+3V4hCJa\nJ00DvHHrq8Hl6O+ClHCoeI3LBSKWrmioPXKNl3kPIDjpfHF8fu+zXfF4gx/U\nw9jTq7B8/IPC0DLCA0X7NXzXaXo3MyFqgunxp23fFUkmyC5Y2agTXxbcCVhh\nm6m/5ZRTrFG7HT/Nl2kdU96HA5ELHn6C8DVnkeAhDlm6obIVAXzHfoAGYx7d\n8ovc\r\n=Uc7Z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a89a7c81034e7bfbeb469ddc1e1e463b018f7179","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.53d4e6d59.0","@material/base":"12.0.0-canary.53d4e6d59.0","@material/shape":"12.0.0-canary.53d4e6d59.0","@material/theme":"12.0.0-canary.53d4e6d59.0","@material/ripple":"12.0.0-canary.53d4e6d59.0","@material/animation":"12.0.0-canary.53d4e6d59.0","@material/elevation":"12.0.0-canary.53d4e6d59.0","@material/typography":"12.0.0-canary.53d4e6d59.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.53d4e6d59.0_1620161437361_0.15690589180904002","host":"s3://npm-registry-packages"}},"12.0.0-canary.18d147e27.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.18d147e27.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.18d147e27.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f52cdb9d53f534ab821e67d79fb353200c71d434","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.18d147e27.0.tgz","fileCount":45,"integrity":"sha512-WcNqkSzxJ8aJnybOEEida+hGeLEDaea4jYUbOp/Qwv6yC41RgL7NLV4ZI+kkrYf6ij1WGbU+k1PReeSOCzqz4g==","signatures":[{"sig":"MEYCIQD5iQdJO9wqjTwCJyyoVimm1IXBz2MnJ8uMXIjAe1/RFwIhAIDh9mUEZASOSPzNz0uyiPBRX1E+VyxuGbYj17Oxehdr","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1112412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkbWbCRA9TVsSAnZWagAAxXsP/icfx0KoEe/1yszUOY9O\nFvslNciF7jA5sl3veLEUeg96gUUEnntF8BHMi+/S418jjYh0azM/vAa82pZr\n1BYdxtRhHSGyBgJ8GuNZyEYeW1CsFqugOV1WfoDVJ1ONEJapc2vFRLYe2iPF\n0qSeH8riAXV9iopWyB/cGWM6gr51ziX/j02xeou3WmSmuLSkPYUDMqdcoRgw\n3/oKX/KAP8w8DD+fHAVuBOdNQQljgv+NCclVaH14wwzWxCqk+g2RPIYx5znj\nTyX1Q1lhG35p7ucWwlfe5CWWqX7l+PLVgyrKcoXVktAACNh3KFBg3BgobOr3\n6AG3RhmXg3mw7Q0QZVyxUEu0msYfj9ZLNX5yyvsW/JG3PERZKzHA3TkraMVk\n+V5KHeJLk29FB8yS7DgtQczVboqpRKZFNT10sTSNhWpbF5LQ0sNdNZMIbUYQ\nVGxvLsNm8d0f0x+ZJufeoX/De7zcvCsbQ+36F2qsAe4QvypQQ/vABkQ8spU5\nPagfHRI6qDHSA1OpXi7iqkvONq7blX4OFxFr4Gc3kzHowTSIj6LNVV7rXYpy\na/uoLFLXq+KkxC+2UQ+woqG8/f/uNGF0Y15M8bm8lj+sq1GW+FUXwzmh2BlE\nqdwhyiV2UBl+8duKiKbjxurmqU5pF+YJGR1ykjxxbLWEdEd4xHMzp/KsuXkL\nre13\r\n=QMA8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"02e686390dabbb1590eba968246da65476db162a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.18d147e27.0","@material/base":"12.0.0-canary.18d147e27.0","@material/shape":"12.0.0-canary.18d147e27.0","@material/theme":"12.0.0-canary.18d147e27.0","@material/ripple":"12.0.0-canary.18d147e27.0","@material/animation":"12.0.0-canary.18d147e27.0","@material/elevation":"12.0.0-canary.18d147e27.0","@material/typography":"12.0.0-canary.18d147e27.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.18d147e27.0_1620161946624_0.7015498929884725","host":"s3://npm-registry-packages"}},"12.0.0-canary.b9984794e.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.b9984794e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.b9984794e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"886b04e01c19fc2c01c89de640f3bab95d86eb60","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.b9984794e.0.tgz","fileCount":45,"integrity":"sha512-HHFuan62Ubz7EIDsCwvaj2GZZ/inuaLZ+uzrNcz5z2smvW7DOqK4VRXxHeCFdmnUdS0+Z2lvYkAsHuBUFBb6vg==","signatures":[{"sig":"MEUCIQCQ8vwndGE5oQGoiFC/Lk9hLMSm5E4qLczIv/cICrCJhQIgNl4sGIegO5zRu6oJwfAMJxJNGnNKe3eTqJJndL1dQoU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1112412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkdLkCRA9TVsSAnZWagAA0ukP/ih9CS1HCyeMviQoyGKK\nv2PVDVKIQVOqtqILROXt41gxDgDNyAbNP+MapeTUGYkro+fGh4PtA3AxvYh4\nQEfQhhfyStAtHzJbBVUrktNDre/kpGvyv+DXOFQvddub6vMPh7sp9JDt0N86\nKQ1rsym2r8osfzWFhR3C+ME4aY8YaTs1E7t0Wg1+QyRPxDRdrHnsKskLI14M\ncr2lI/vSSvQ13u0/NW6b9apdR6BfcH+/XASWPNjIUOnz4/23isZizrT6lOw4\nsuPB74XE7gwFWc0Ix7ASsMc8HwLRaNaiOVklVJ149F0OxiRItUM67eW80Lrp\nG9FA0ACZd0mda2iUw7l3rhGjuhWo0R2ZQxL6ksOXD9kgjEbdO3qRaiMQvEo2\ncySEq5HvEYQQKEeGEk99nb6BOaGuvwP7IXETttFzgx4F5+DqlpVfuCJUR0sH\nTOPdA6whhepLcF4tdcWAUwDkLKsEMYBbkIwIMZHZ0o/ZCfKLKDgPdilSxJFQ\nkAxTHiOL3ChB+b/RRSlE6RrKiKQHS8/r1Gfc4gpOaEO7wdINhw6gqhH779tg\nOq8AAjTb0AWG9LUJQAxZ7CprFBUbkePjpa746qUhUS+NwW6Qf6WT6NppMkPq\n1TkpAZcKFHBGlThUQ0cQ3QU2vf17+u5l4PDLEgjDUX/wV55NpmZyZiNS0AOl\n86vc\r\n=drFi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b9cb2c88737add4e6d3e04893ef4ca57b7848549","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.b9984794e.0","@material/base":"12.0.0-canary.b9984794e.0","@material/shape":"12.0.0-canary.b9984794e.0","@material/theme":"12.0.0-canary.b9984794e.0","@material/ripple":"12.0.0-canary.b9984794e.0","@material/animation":"12.0.0-canary.b9984794e.0","@material/elevation":"12.0.0-canary.b9984794e.0","@material/typography":"12.0.0-canary.b9984794e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.b9984794e.0_1620169443747_0.09723958199484906","host":"s3://npm-registry-packages"}},"12.0.0-canary.b76f5fc9d.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.b76f5fc9d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.b76f5fc9d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7bdd48bc59037a9378ef0106d5cf916b061d4dd3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.b76f5fc9d.0.tgz","fileCount":45,"integrity":"sha512-VS8Hn4nGCwvZmhqhx/ApAijzHMOl1IHeU4AHZ62TF3UaROI5qovhKdun02SsdJrXefYN9JqU2IZrJNIrL4A2bA==","signatures":[{"sig":"MEUCIBLv//EAnSU4Rr0YEtATYKWumCSJnW8j3vrpxb9m5Od5AiEA/AAvjOE+NuSe3CtRFCN3fdVwMRutxXB7x1lyiEYnmAs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1113879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkdO3CRA9TVsSAnZWagAA1zYP/3QwKGQrOblnV1c6cL3x\nCKat3JM9o1QHkcI4Nr1DQ6Mufb7t8X9Py/OA7sEfK4gZj+m7EQEtyRcAuV9K\nY1HA98EsEW+4IsV6wCXJE/pxDEFXBRZxeqJmyDd26yAs5lBk60x5D/5gFer8\nGwv6YHWr7JhUdT+2x0UckYsiROCZ474h8BbAP1bKpf/ysyMT3bXYgpt5qfEl\n/5VgsFfENPu5o4zrkZl96h6SnqYRSGp/8M1ATHqATnxIVjUaqavs+/EVTyk6\nKgzDb+/F1sWLQXtnRuaEJjWxQp8zr3fH7tcq0bozK5ZB/LQhCVJ+K8xT/3PR\n8Y5NZWQThbU5T1o4mSwem5EdMj8u82VRR4uOFObBTdo+cvEPNxk5tAUYMnNO\nbGJl7A2aTv/0gRHh8VH+GJvSWn5ptMU6mm3sSJ4Dj8iS+qbnNliIOA1Pv8i4\ninqI2JveAiQpHDXNtbFtoXYIp2PBdgHDj46AKqe4ljR9WkNSGnYbI8A+AGoF\n1rodR3Iu4E68vv2Gf6sCbPWHUrm5H/vXzICD16y7yqUcgCY5y+E+vQzyAkSA\nLJQdvKe7ahMyhz231EvWihxehgd5Zu9O9KGKMzOhYgJR6H+BZEm8Eu3NdlQK\nN79pqbN+ZxpkdZ/nzY87GV1gl6Nh4+7RhWpxtfvjojiWq4My1Tfj1n2mepqK\nh6La\r\n=OO0N\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"219c30995da49f5c5f458aa1b983f09054c2d4d4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.b76f5fc9d.0","@material/base":"12.0.0-canary.b76f5fc9d.0","@material/shape":"12.0.0-canary.b76f5fc9d.0","@material/theme":"12.0.0-canary.b76f5fc9d.0","@material/ripple":"12.0.0-canary.b76f5fc9d.0","@material/animation":"12.0.0-canary.b76f5fc9d.0","@material/elevation":"12.0.0-canary.b76f5fc9d.0","@material/typography":"12.0.0-canary.b76f5fc9d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.b76f5fc9d.0_1620169654487_0.9417782068562512","host":"s3://npm-registry-packages"}},"12.0.0-canary.055d4f10a.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.055d4f10a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.055d4f10a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d79c422977b2d85609fc93981e8f5021c82e29b8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.055d4f10a.0.tgz","fileCount":45,"integrity":"sha512-Cx2Yi2zSPKDKQqdIxtjLorxIK60+2uJZpG3P85PF7tUSVgKpDathN5JJyHqd2RkB788nakWJ/YLyYE+yjyk2vg==","signatures":[{"sig":"MEUCIQDSO7x0HE3rJNmngyCGTHwcywyYrUpC55Ahl2TK6CPsiwIgGHvK3G1FN5FJfhj3F4M7Z95BXxJK6zhMtpyoghKV9l0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1113902,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkddICRA9TVsSAnZWagAAFAUQAInBEmypElsnQJMMKazO\nLcHD9OM+zzCFZhIjkgQAuTiWFodB2GDZ0Zo4HeQZ6tRnEqJ6USiVibo912eW\np31cgwlj6usxTlGOnJMxdTsoTLMgfUzH/1gnG1z/mjONK2CY1s5AQwKo7rXm\nnHkyLpB54WwXCapNNx3ko2ebV6XKVa9I2gmEKhBujqY4x3ow8te0B8KQPDqD\nbTckkFG+MZgwdRqadmiy8lbC1NsOiIM5V+/wx+s+lnkIrM8Se430VTvm7mJd\nCnp5pyDAbFd2GZVU9V7Mj+jc3+qNvZ11kdgTijcjRxoQyum2ZMM3IuGQ8YQw\nkIDC29EqHZBTpshu1ZOBwtx+NHkZcP66GO+bSMKkKirNQpon/ellhm93apLH\nPyaiZJN+EWlYsSXP3y8B3Xue9Yt5AgMMbX5BbDCFD6UlOX7LCxwsA1gqLXqs\ngAW36fE5ZC7P1emt5Z3V7dOCtINaQ4oH3DWnbaXBSqu/E/W/1GtIszvimn0Q\nuLI6+8NobcFSnTMM5Dmm5NHr0K4ufMce49DTq5t0rqN2E/8dhdueM6ZPqDp4\n3EF+urGWtDe2B8TQksqnXWKr14ZyUZwoZB/k7ETj//7S0JuUcZGDiUnqgWRY\nmbvpXyzOUfW692l8fhY9N+BJZHA1WW9OVqPm+7KRTkDsZx0NLb8qrY9hqt2Z\nDbg5\r\n=CV+b\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"df8d3cdf52cca2c339c1fa1cd18129db35422c55","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.055d4f10a.0","@material/base":"12.0.0-canary.055d4f10a.0","@material/shape":"12.0.0-canary.055d4f10a.0","@material/theme":"12.0.0-canary.055d4f10a.0","@material/ripple":"12.0.0-canary.055d4f10a.0","@material/animation":"12.0.0-canary.055d4f10a.0","@material/elevation":"12.0.0-canary.055d4f10a.0","@material/typography":"12.0.0-canary.055d4f10a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.055d4f10a.0_1620170568069_0.13498621649934583","host":"s3://npm-registry-packages"}},"12.0.0-canary.5b6a46016.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.5b6a46016.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.5b6a46016.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3bf05d2eb5e3728dc6c26e71b3b038702923c9bd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.5b6a46016.0.tgz","fileCount":45,"integrity":"sha512-z1biTeT6Vbe6dphxgDaI96VYGSk+oZWdNMRFLGlgeizM68nDeWfdQ/Gz7wsS/8qdXqIUyQZ8p89mLPthXd+VUA==","signatures":[{"sig":"MEYCIQC8gUE0CYAYAmZaicbfkEd9wKKTb+qotJLeKbPLuMaAogIhAO2Rd4bfr7RBbIAUUPcOX84y54W9GN348R6Q/9zcAGHk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1113902,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgksUTCRA9TVsSAnZWagAAeq0P/2XhWEM1ZyQ2cNgYMhbO\n2yX74UJggnWqmjCP5ZHDff46HsJ8q47fURlfzcy1wE2ThFOXtTTbCKfZD0aj\nwuXQMdHBC1O/NZwjnpTbxvUyzoqMm6R9Uubu7s60dpf0QyMcoQuOkDLsq/OI\nTcE9ZgUAfl+bjYtcJmaES2IV9Qi4kESdBd0uqR7pveXMeB4vn/smSSD0FTR9\neaVEt36EVo30fNh5fNhLfWcgM02zF88PkwR9fRV7OczcGHeZxBSV49qA6YlD\nePMMZFaCvhniaxNHVSHYcyairnlg3KF9AgkS6nb1dSINrJM3P2h9/AFMGPae\npdPPi0z/I3lOIwJRiNj8E6ToC7nFdNS7j0KZk5SUX7RplOVdMgwn+/Xkq9l1\nUPMXY/5//mbGi2NmlmBv83VXrAfv8qztR3l5wE+gWQOMqcBpTz383giUtS1U\n1OxrpOJ73esg7QUbAUUsaX0mMrrKnUg5/8W/a9HxwX2kjF//9dvkHE7CFDEw\nP7tTU8uY3WsQHX2joRa7+3LYJ/3Mxw0OTDYa+Rf2t3FAEqC3AAEvRQA8wmt1\nQ1pcSxaG1nVtky1r/zX4q6jZ/SQcG8VB5yKdVavdipgjyNV8n9nE/IOD2MCk\nrMKtGIvtM3ctGKz9/Tp6iV4VTzF6XN2EZZYtDT3sOVivJ4uHG8DADTboWLTD\nll2c\r\n=i+Uk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3d9c7e3c179062db8b5bc243e8bbfbd9d9132e50","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.5b6a46016.0","@material/base":"12.0.0-canary.5b6a46016.0","@material/shape":"12.0.0-canary.5b6a46016.0","@material/theme":"12.0.0-canary.5b6a46016.0","@material/ripple":"12.0.0-canary.5b6a46016.0","@material/animation":"12.0.0-canary.5b6a46016.0","@material/elevation":"12.0.0-canary.5b6a46016.0","@material/typography":"12.0.0-canary.5b6a46016.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.5b6a46016.0_1620231442948_0.4379746786237415","host":"s3://npm-registry-packages"}},"12.0.0-canary.33c9a737a.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.33c9a737a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.33c9a737a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"da39e753e355d7c2ee4c17e15ac6ea17f4fb54cf","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.33c9a737a.0.tgz","fileCount":45,"integrity":"sha512-BDRKwPyOUqv+yTQsCf1+Kf/lKlzEt23St6WjJklMaD0p6xZKofqOztSQiRr2Ecp9CTedlWDdh68i8KecYgaaKg==","signatures":[{"sig":"MEUCIBYEF0aV7AzuIhu2/JQ/C9L4/TRdBU/DmryjgA3LzhC6AiEA7iR+ipjE98FR8r26tDdODYsDYDRuxggV5j13meKILiY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1113902,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgktW1CRA9TVsSAnZWagAA0lIP/i0Li6IhQdW7Igyv8TjG\nR4AKzKn1t0FrSbVhkC/Hzv4gW142lRbZeqH81vi+fN4H/E6KIf4eAaxaL6wV\n7iwWC2Crsvt6r+3vhfIStF8JKeCBSLw3flCbRWYZrmjLUOryHemWG2+xYWpP\neNbOY2RZeAUuzZx4OSKP6Ks+yfYXDTRpp7PYutbNLcwXmsfjmWViqK429B2B\nRa7f6zlewVyB6mNvFDwHIYAt1cN5XSiF41iZhZcvxFcv2lY6Wx9MUWdHzvSM\n3hzP84vkFVrF82c0lEdgNOau3YuoVY9E0HnQ19oznMRsJf9K/3gBm47OVjav\nHoqOfSVr/mbbjyoCFrbDs9vdDkmY/IF36Xt/kxa0f5RYML9jtthB28EJF5Xl\nFabICFRxxn9PyT0KsqD3gIMyNmf14vCPr6jlV7LpUsd4P5EhS4Tqfgja/1+R\n9KYcQJBrMz7pOjF3B+gn0YG02zyE7Sfs1GhMazWB2lTOoIxqXqbv2RCjPZE8\n2baYKaPZoFJ38KemiISRt6akYhQsX3WQnGfR5G4ZAkJtBV7mn6PfTWeafaTw\n7O7+sJySyc2bXQxetjyrXVsXtOqvuISo6W5f21T0aS5SUJuZ4mkgu9DnX1uB\nnJfO21K1ncfUNXGXv1czZH1iaJ2l1DPgU+73G64//CfeTwIBj8nx1Edh3Ac7\nvspx\r\n=0RcY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fa5c97d28049bf03f5b138c0d97bdc267f43c363","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.33c9a737a.0","@material/base":"12.0.0-canary.33c9a737a.0","@material/shape":"12.0.0-canary.33c9a737a.0","@material/theme":"12.0.0-canary.33c9a737a.0","@material/ripple":"12.0.0-canary.33c9a737a.0","@material/animation":"12.0.0-canary.33c9a737a.0","@material/elevation":"12.0.0-canary.33c9a737a.0","@material/typography":"12.0.0-canary.33c9a737a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.33c9a737a.0_1620235700473_0.6597822009145891","host":"s3://npm-registry-packages"}},"12.0.0-canary.9bc0effaf.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.9bc0effaf.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.9bc0effaf.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"69eba25238b225b41c87257d1abe13db404d7540","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.9bc0effaf.0.tgz","fileCount":45,"integrity":"sha512-co4yoUXwHttMtMjwmdVVup0B6bdK5ucIxyKA0ctg0336SwysFLRVUYFsyx202AX7JKlZL0JcsKJTrpWDMl79aA==","signatures":[{"sig":"MEUCIHOWRfj1HCR6lCd2TiCuXKDi8mLVKrwBW4wk7HPoFawnAiEAuTOUjKgHzCV/tcOXoxv0BdLzuCk3dmoZrSvHGqJYItU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1113902,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkweVCRA9TVsSAnZWagAAzt4QAIcDjGv7FzS2R8aWh90e\nSh1dBwsXuXL2pePYt0byyiStOe5/iS+Oz71s2V04er1fw+I/T04DmAStwVHk\nMEut4sX1VSqwtad1ZJFTdJwiIXUdsuUy8znlZwyx7Hlovqmti9qU41/asTfu\nIlGMnQJj8kPyh+yZGsyyfYjKRv6yQr5M7bJCpTWQ+U+ElDE7m/Ye8OC7J9ao\nRYCIIJCTIPPOiKvmH8FFZLqEET7zNV0ZlrfBeSR/1ZmS+P/jHYJxy4Dq0SnW\nbPf0sWaFTUTR7jPe2nwtK1rBBYZFT2TVhpu2gB8TYVLhxNgBMaF1AemxhoCJ\nzTSJAV60EFGa3dEHEIPWnAdKfsUgtofSFDkhuujfPdknZqht1cNdtmAA+WgF\n7KinYdaXL5vM87aIno8iOjzG3wzsrnfDVtHJ/wN8eA0OrB+lzmoLjsAbBP/b\nrSAo7F4aPMAXLtL5ONHNVPjnc/G+AhXoIfpdHfHEfmcwBGpQNdoB1XVUp8z/\nNpHy1RznfbvJlokvBDcAZ77V5l3h0j9yYz5QseghT4fMPInxNRq1C9gZBLL6\n2h4auhqyt6hoMRY0v4utNo7FiX/QHg/F1zzHSIn4JXhMOwNWfe/epCbf9VoD\naJSgBCSOcl1EJqykxFLD/PhGBGf1j0P6ikDSGK+jxi9eYKhLcTmjfDJ9Gf3F\nuGou\r\n=pFJA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e671ae06efdf42f7ea0cb40bb6700fc57f6a35f4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.9bc0effaf.0","@material/base":"12.0.0-canary.9bc0effaf.0","@material/shape":"12.0.0-canary.9bc0effaf.0","@material/theme":"12.0.0-canary.9bc0effaf.0","@material/ripple":"12.0.0-canary.9bc0effaf.0","@material/animation":"12.0.0-canary.9bc0effaf.0","@material/elevation":"12.0.0-canary.9bc0effaf.0","@material/typography":"12.0.0-canary.9bc0effaf.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.9bc0effaf.0_1620248469107_0.8449773193989882","host":"s3://npm-registry-packages"}},"12.0.0-canary.a1e0f2af5.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.a1e0f2af5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.a1e0f2af5.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"66f82c7e685da9ff25f82a85dd1065ad88edf3c4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.a1e0f2af5.0.tgz","fileCount":45,"integrity":"sha512-+jKgfLXDrfhrpj/0FEH2HdIYVPkBnZpzpQMhQO/JmPpRU1IfRCoz7AJP95famJ/q07ScZ2XWEoL4FbZLM0/cUQ==","signatures":[{"sig":"MEQCIHlNelkemviALJvjnJp5wZISuyJduH5r8FCG12ScU25rAiACei2Igv6uQ0z9yD1Di3zqpGgC6sOzaWJuv9a7zZ3Wug==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1113902,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkxEvCRA9TVsSAnZWagAARKYP/Rs5zJtETOksmJUxBRom\nkvo35cPgNtns0OL8rPl5Btq8RjStDKvlGZEq9kt2vnl+2kb5QYtgtoh0JY4f\nVj+eiBqmcLium7BBfHcvIYfa1DfjcNBWa/7bn965EKWdxvAFPQCTqY6yJtib\n1tVpjV4ctjwwq+t8iAUDlukAOY/w2Mzs4iz3wIVjBvm1gimYNP4ZmXrSjdth\nJvD7jAslZhpb4LZYByXNh7DChLDOXT7c0Th90R8Boi14YHdeHTT7lSkzMVyW\n920FAgmbAQ+YYxmLL0JD+xqot9bsr6qcgVLaPkHuH/HUaihVQrDMaybl58pk\nhFX1CiQW20NUAerKvsEjN4QDKeDsFlfWSPj5DdBFkL0qDpzw8m+dzKlonaww\np/UJ010kAsbe6jSkSLPcudSz6jSF9T+srfbX5gSPqBEszX7itlutHCii1jH0\nRhQ/94gnqIDziTgLMYa5X5nDS0t2ptu+qSSwHJVzCbF8OhXkGMofdre5Zju0\n9gKxNxlDGLWq8TxoqCP7UIAwsYJiIbHNeCGoD5LZWrxxHoIzDEzgV5CpITfW\neyxrK0N/DHCNd36nw7IlxEI/1CQBp6Qho0Mz0ETZ56Einequ23u68NcGEqxS\ntxgd2dzR4DY2tWv41lnayuT18XD8Lcb77hxXYhbolBcBISTo6Og7VJX7DIhj\nYFUM\r\n=AtFM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7e20a4b86d7cb59be9ebe12cead11b1e8c7bb63c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.a1e0f2af5.0","@material/base":"12.0.0-canary.a1e0f2af5.0","@material/shape":"12.0.0-canary.a1e0f2af5.0","@material/theme":"12.0.0-canary.a1e0f2af5.0","@material/ripple":"12.0.0-canary.a1e0f2af5.0","@material/animation":"12.0.0-canary.a1e0f2af5.0","@material/elevation":"12.0.0-canary.a1e0f2af5.0","@material/typography":"12.0.0-canary.a1e0f2af5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.a1e0f2af5.0_1620250926586_0.5350229724741133","host":"s3://npm-registry-packages"}},"12.0.0-canary.06930c96b.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.06930c96b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.06930c96b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b29652e5919bed20c823f0e90b59a877c2278852","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.06930c96b.0.tgz","fileCount":45,"integrity":"sha512-Ppg1o8/7J0/kvh+HNdyFli57h8EifNjVhibF/l15nO+pOZCeJ5xvwjC/1rFOBeRtD1VchZFpX7XBM6fkg3itwg==","signatures":[{"sig":"MEYCIQCatBh2EGwmLl6yodFIfVS2X2myITurCi9XAuNu2pkKYAIhAK60URO5vtIrIpeshOJhBw/3T6RCgbZ4WIL3ADoiYsm0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1113902,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkyzdCRA9TVsSAnZWagAA0ucQAI8kzbXpkMMpfVSAxsP4\n8I7a58DjSXXAjUYAH4GtfkE95im0JiZ6SXpvbbtqwY+TdzduW6Q18SqbRUTn\nchvxI2zgfpER4dWWr3vW9tGYMYL/aaOhPgvTf0ENCPTYT4Ex0YP2O4+rAkc9\njx8M1ZHJ2nDfrQwt9IRysUXpkIfLHzCAmx/cMksdk/GDS57hqjJoLe5wsYfI\nDvmDAPGxxeJFB9jSQUV7UoIScEdVV+/5yQRaYWdHqw034ld9Ayp7xkWVDf42\npVpooxunBSGIWMNyK8bEqPh9FNrsJFQTk36O19LdGNNRgy54H875WyX5kkxA\nSlJK1xfAjpzFqB9C3NIx9K1w82cek5jcrb+xgrR7+PAn1PMdjvuz2QQlgYzd\nZIP/AR9TG5IBcdtmzVaQvYnLZtBwVwKuSMkfYKNXClmkfri56m2gGheUdPJF\nD02TmREKG5Um3vGWLxSH4lu1UWd5sVdepXDsdh9YjmjVrV4/F8ClrxpWQwXD\ngxg7/LucgaecpwnRsMsfQEcBf3an4P0P3ZO+++4qxEln7cQuZ4o21tXzT2aV\nYi0ohLFfjTssuJx3B8TFw5GRBHk0bMyy7RcdJYG4BlfPN5osquerpw9rNc5I\n22Nwt7A8eHkFhyV1Z1yY7fW1QYl4cfnlBdXkmhMrzRYvHJXcKTWzCXFGe2b7\npZCi\r\n=jrCV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"aef50df6c5f49244a2b0e5a941794f4e3e4fd21c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.06930c96b.0","@material/base":"12.0.0-canary.06930c96b.0","@material/shape":"12.0.0-canary.06930c96b.0","@material/theme":"12.0.0-canary.06930c96b.0","@material/ripple":"12.0.0-canary.06930c96b.0","@material/animation":"12.0.0-canary.06930c96b.0","@material/elevation":"12.0.0-canary.06930c96b.0","@material/typography":"12.0.0-canary.06930c96b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.06930c96b.0_1620258012643_0.2299812803719714","host":"s3://npm-registry-packages"}},"12.0.0-canary.03f525f9f.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.03f525f9f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.03f525f9f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c1b91c27ee1fa90820bb16ce9a03f41c9a9778e5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.03f525f9f.0.tgz","fileCount":45,"integrity":"sha512-pq+qJIFsbpzqdTYEmJUknZQ1F2PGUxVADr+oLUPRpqi9Gp0EDb/ecN8QMtc6iu7CYymLMrNtNUEyEIsJBWb6CA==","signatures":[{"sig":"MEYCIQDtR+X/jLjtEQYZKEv4yK9dxh+XPAC5DWbB8PJO+7c5hwIhAOzSY+RmxcANjVy5cR6sC8wEBorAFi3Li4O5ETAYdkHK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1113902,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkzjRCRA9TVsSAnZWagAA/X8P/2YcqSVewa8T8nShPgjK\n+dy6OPLD+5axbjb378FgtRUoJAOn0dqNO74t9Jr38xZ8ewoZhVokYxy36Afh\nmX9tBNDgGBGkgEa3m8cUqlWnACELXBRNerQNL8svn1l6+e6K95k+BTRTYW2m\nYkquSpens0+jlUqVpkDeI1J6BxWWoRDZBk542at+Hga9cOe9GGVIW0pVQg15\nCR7kbJ6SLuxMDJ5Z2WXJzbaOaEW0dL1HwNrh/qMb0pmz/yQ3x4QCSOJUoFCh\nOmtpy0QyZeiARtl+MiQfyHwlHt86MTVr44lPnmW18StDKlDPfKq3nYmcBT/R\n8BSpJQr076etATl7okUNrWCgjnpP7aghnEWinwhShD6jdNhDB84wPwc/NN14\nTF0P4Vxm6T0wILO9TdtBY0DgLuyXeCvpnAz7cdT79cn7/X5RMcfBGRjYCHam\nijk+wVWG5K6aYBe5jJJE9UqVHwLCYR3qrJZmhuRQ16AX5o5QBZ7IC9zdmxYG\n0E6gu7/Lmu5cZT6FWuZfKhwbbdyW8EhC6NiOnqUPpIwEyY/bwTjs7xAe8Kzf\nUdAqEOycTqrzf7LusTvjidb0//uzV3RY+mkSjb3qfmIUxFtwwu2EPrNZuGvC\ncSxEpbFaIFKCf0PQVCr8ZXOlw7GcyZMUGxZ1QBxJZBUmblzbWgMVhzg/xlCp\nKJ0Z\r\n=6+Sp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f9df1400e21c75e46fe6641abb76d5840dede67e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.03f525f9f.0","@material/base":"12.0.0-canary.03f525f9f.0","@material/shape":"12.0.0-canary.03f525f9f.0","@material/theme":"12.0.0-canary.03f525f9f.0","@material/ripple":"12.0.0-canary.03f525f9f.0","@material/animation":"12.0.0-canary.03f525f9f.0","@material/elevation":"12.0.0-canary.03f525f9f.0","@material/typography":"12.0.0-canary.03f525f9f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.03f525f9f.0_1620261073416_0.6238240322389814","host":"s3://npm-registry-packages"}},"12.0.0-canary.e82ba2a26.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.e82ba2a26.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.e82ba2a26.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e3cd3cc3cffe8b59f80f29372783391fe561e2b9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.e82ba2a26.0.tgz","fileCount":45,"integrity":"sha512-tu54K5AWiPVmqLYV+EbA8L/j2z7sOo3UnsvD2ttPonwT3GVCAgDkIypNV3Sg/mugm2ADA1pQK2C1GIMbYuuj0Q==","signatures":[{"sig":"MEQCIAx5F9sUu+7v97idd+8ihiWHkWIjDZKyDY5USwh8IuztAiAx5NDHZDghl5kCc6N5rj5e8h0lurTrqmOV11yrEp6fDA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1113849,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJglBHvCRA9TVsSAnZWagAAzGsP/juoI+NlAZ3W5dx5FB3d\n5NinF77rw0coH3lKw/WqLA0T5uMO6m8w5CyVWNRKoawxT3iOT9gkfe6W1VZy\nP1lFlGjjdSWBy3c41C8vgQMLUKzzEvRGjbWBhxwHafKs36HFYR0fhrHNPZjX\nsWBiyR7iZbq5DfRCbTd5DD0VfQ5ZjQX+bG0cDJoHJCu8Sq/w5C6dXnvGejPN\n2Gs5gBVk+6GhC1mNs1Q0JXLJa4Ivbi5pHvTawR5jBuYFiMyupEkpHQtS/qdv\n4BhuMEmweODvT7OISTGNisCxqlmMtz3kLDPJ6gQRtoogQakLFcF+egQ0GQN8\nH0aJfT2Q3+VytoOw1ujo0RMhQ/4p9uHK6KlruFxT0AG2iPnvYBPobuNoICAZ\nwrCrTpwfZYYpIGCz2ZDCRne8IwFX6CEUqa4T8reIWof/9PvtTjHTt4DINxc6\nold+hrzhDqP/ozSM29yZxTGeek6UTxcoVcgDbFE16X2+Z7dMsIhuO7b93RBi\nHgkWv0+ZyPIQ9nzmnU64f5WzSnMELUc/8ZaC6g/L3MVFyacqoGQLbAIDrOWz\nu0n0DpxQFrCuhIFVDYxru9H+9xtX6I+T9Pfk9hUYb5gMBSF1diyvId9juec9\nCiHUmEnAVoMYLG2VsdFGqUjOEE0oHXZjeyL6QCovoRJg1l1uW3kp1o94+FGh\nLa1E\r\n=M+Hr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c3349c46dc5415cbb89b8260a8db012f44f09eec","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.e82ba2a26.0","@material/base":"12.0.0-canary.e82ba2a26.0","@material/shape":"12.0.0-canary.e82ba2a26.0","@material/theme":"12.0.0-canary.e82ba2a26.0","@material/ripple":"12.0.0-canary.e82ba2a26.0","@material/animation":"12.0.0-canary.e82ba2a26.0","@material/elevation":"12.0.0-canary.e82ba2a26.0","@material/typography":"12.0.0-canary.e82ba2a26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.e82ba2a26.0_1620316655205_0.2238829121420709","host":"s3://npm-registry-packages"}},"12.0.0-canary.fc7c4e5ce.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.fc7c4e5ce.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.fc7c4e5ce.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7f8a342f95411a2ddb409bca72e81c19bed0bf7a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.fc7c4e5ce.0.tgz","fileCount":45,"integrity":"sha512-Me8JtJySk/QCFGz+WOheq2k8XJ40yuM+D1doKgiEY7xnbc4Sc1fgLZQwOG8VMCLKxR0c8th1gRXmdbZ3aJeOJA==","signatures":[{"sig":"MEYCIQCsmeFhywYXudYeSSHk+qo+T1/r4esv3YBjxPA5oKacYgIhAKEuCUzI+7s168fi8aWIc9OgLWMRqHEz6/igOQQ8DouR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1113849,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJglCe1CRA9TVsSAnZWagAAR/YQAJwTm9YBLrnvac976WNn\nyDOjQqn8/+rHvqAgC3Cc6+fJHBzFRtvjNrYn4Aw3C9xaAZPAeRCDnEjdBLJF\n/NndhLa7r/nZ592ccGv9M+EXYG5LsXt6fqA0xDkW+VcqZtQuFfDPKB/qhdWe\nvXVRmX8W65rAHwSxnngY1aEprh4ndkZEiU9DoLtR837i1ea7DztC25cbNPwG\n2Xu1Jc8lEcTGHl6hRBaqf5G4Vvlzypn6hTROjAd0GkpBn+k67asRoxahScOI\nX8LSzQfeWZ7bSwtNJcBWYvoHoiU2Yz0jmwQH+mrRwua8eR4J6z9dYOBwBJvX\n4hFqtxJAUOoC59cxx2mLkztpzsbdjWLvO+F9j+ctJ0Rij2uyPfEquv0z8Gja\nqCecHs9BqURiesmmk7njsHCm9DTdwveRNfPwNS/+nFPhpWXgvGT8TyGogaj/\nnBI24hX7hLCtlStuqWAoGT+Nfxqvw4sZvIjSHqjZKbPvGBCC15IMzaAzVHYh\nA3uKI6pX0Km/ErTrtYLsU3r2d3uO42I8b25z62q6uejdWN+tHRm4WmxXsfJf\naYOE0LLXwMFG6gZ3oV6YT0TVieLOJp20XRHLwwqoVbdwlVNw11nS6g/8tM0Y\npK05DWG5cdJsoYcMFLutQTZsrcUYCGtsQUNuZNvDoWqbEFu8w6sPspsqC6of\nHf7j\r\n=T6gV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b549929c65e0a33cd9d427a600513c663c2dae28","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.fc7c4e5ce.0","@material/base":"12.0.0-canary.fc7c4e5ce.0","@material/shape":"12.0.0-canary.fc7c4e5ce.0","@material/theme":"12.0.0-canary.fc7c4e5ce.0","@material/ripple":"12.0.0-canary.fc7c4e5ce.0","@material/animation":"12.0.0-canary.fc7c4e5ce.0","@material/elevation":"12.0.0-canary.fc7c4e5ce.0","@material/typography":"12.0.0-canary.fc7c4e5ce.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.fc7c4e5ce.0_1620322228680_0.9279984112825439","host":"s3://npm-registry-packages"}},"12.0.0-canary.65c04514d.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.65c04514d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.65c04514d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fbd0ffba543711dc52d5a54d6d948229e0557084","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.65c04514d.0.tgz","fileCount":45,"integrity":"sha512-/v9Bns61f7yFqnGynvF1n2leVzkVWxJs/1Saxis0DeaYTQJbIoEAVoXZRSlE+PcX/0Nvtij8YkisCYV4UNDsPA==","signatures":[{"sig":"MEYCIQCmq4pZduSW1d0DxrF6XonxCpFl8osNkaP2GcbzJawyFAIhANRUeWMBXyWWv5Z1kIOgxZ6jEKsMxp7U6OhlNbO6uWGt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1114586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJglDkfCRA9TVsSAnZWagAAjQMP/iFp+v/8GIr6l+tEfVGG\n564yoICWFbpCvoTL1xc6RBCsfooDLjPy5ahKPP/O4AOGroHe1XQvkBHMi0rg\nNTSgPRzlZQ8USo9Cq7FlPljj4uIQmBl4CuWrjFnYwfFIzUKD7UYqVtLFk+Ra\ndOGby8rdQAXDxVJipRbX8PMiB4zfdixgGGHdpq6pxzSvyIcTfkdgl5QfYcdM\nUi1NUjYiE8k5zFj4YG4GHZGNdTVMn6m6ucfJOcF7Vzucbgj3aRG3b4T/CtS2\nRb8fxrpc9iBB3Z7docMu+eRj2VoT1AJmqyDyMYrBFhatg1ziYu5wLCUNpEN5\nqvc7hXRmPk6/ipJXJeooG6eURKkijNqMWOZVAB02muGuYuf7T+IE73xS8X3V\nYznsmrg0vDveeZxxPaGhPu8SfVpiDi4EYOdJB2YscDfxXoJw3l3X1mwLoirO\nIsTuslYkePS7ciP2WOtfcdimKBQchLx8jujqK4cXld7sB5HtFpuwwqCJhVYq\nNFNjDzqHyjp42tLA2vnDZ22v7J60C0ccBFUJzcfoMJF6dppg/LbvTrQcD6SD\nqUCmNnTVPBzVlF9vkHsDWvTEP3J/M7vfF422+0NNJ9pcD3Bn1lac9iQc+ual\nP+n7ZQq/1Ve46DFB3BH18CkXqYn+U0sI0lk9h4pd23opOWo8Pe/wKQ50bIQt\nJcLj\r\n=SqTq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"01ca5daeb81d99750f9020fc62e04bc76085858c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.65c04514d.0","@material/base":"12.0.0-canary.65c04514d.0","@material/shape":"12.0.0-canary.65c04514d.0","@material/theme":"12.0.0-canary.65c04514d.0","@material/ripple":"12.0.0-canary.65c04514d.0","@material/animation":"12.0.0-canary.65c04514d.0","@material/elevation":"12.0.0-canary.65c04514d.0","@material/typography":"12.0.0-canary.65c04514d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.65c04514d.0_1620326687036_0.8997500418546946","host":"s3://npm-registry-packages"}},"12.0.0-canary.c97779ca6.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.c97779ca6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.c97779ca6.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a524ce559c6ecb886c057d096ddbeb15fd312f6e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.c97779ca6.0.tgz","fileCount":45,"integrity":"sha512-ePCp5qx4VixU8SD6qW0GFGVOE97S2LR7ZHA7xQuIKo6X59InQMKC76umTV8cJKTe/+rl/u438aE4f5ybW+guGw==","signatures":[{"sig":"MEQCIEdBdMXBWFauuKi+qmjHlHL5A06EPqLxkrTiLL/8NNfiAiAj2qZ8XrJi56lBgCWrnr6KJw6Mk0buVPCplikxPLtbGA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1114586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJglGM1CRA9TVsSAnZWagAAhgYP/3bCS+yLAetQE2AnVWbh\nI4rIN9Iv4PJG3UbubNHGoWfLfVGMdv59Iu6l7DW1XTfN4yDke83Qt53jIE73\nxax4F298yJQflH90qr3TcaG7Fwjj90Q9l2LLeVsmqsCmilIFf0cvcHcC4Abo\n7eps8VSSypXg7W0eEaEkxJHMFlsMbdx2AHzFO980H+9e5AKDtAxx2DxWQDc7\nmmhymbxQorqR/7stNNYu+QeJXPGLj427mnmtbyCi6nDh2ITmJCVXEEK/2L/r\nQtM8P42F/4Llf4/nzRstWp40xh2tz2YLXngM8O9k32dohQBf5+dy0hB0zkyo\nvWV2WzORAl8bKl/4+Ozn1xX2Bh8+YBzn5k0dNj8jaeND0eS3zc/pQqlmcdzo\nMJmgrRo+uOQN0FN3QudN4iRsaz8zJh63T8HEE8miAOzs9RBCDmanrbC10Y3F\nIEj59BSb7aev9Cmp4Uu83hCLqfjI7bbvQdkwraID3VS3TYNSV5k7zVitOCyM\nVeDzuEyyzp/ciMhOSCyv3SgxKtbaVqOlbU+elRUtvVV7jP8GJiFji5nBDRlX\npFGdGK5IVIApz9upo67qVsFFGnylTslrfryWadGr2AOIUfqfkKyDSUgWvBlL\ndBtsb8AXFrJgp6wjDyRY8q/xaknp6cSebSaQLXhccOaLVEo2GcFqSMpBL/YY\nd7Fq\r\n=bD1v\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"046f80118629481ec1af7c937a84ce6e0fd1f635","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.c97779ca6.0","@material/base":"12.0.0-canary.c97779ca6.0","@material/shape":"12.0.0-canary.c97779ca6.0","@material/theme":"12.0.0-canary.c97779ca6.0","@material/ripple":"12.0.0-canary.c97779ca6.0","@material/animation":"12.0.0-canary.c97779ca6.0","@material/elevation":"12.0.0-canary.c97779ca6.0","@material/typography":"12.0.0-canary.c97779ca6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.c97779ca6.0_1620337460670_0.4137387339309875","host":"s3://npm-registry-packages"}},"12.0.0-canary.869d890d4.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.869d890d4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.869d890d4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"962f3568c858f4141dd4d294cbb16c6468cb5bad","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.869d890d4.0.tgz","fileCount":45,"integrity":"sha512-G6GGbwSOJ371Ln9Kg91QqCzC3uroDqRSAJ9phWshTubMJk+PIkhHWhgErTFwW5OFZRQ/Ztu04DcwQ6s0kB4HgQ==","signatures":[{"sig":"MEUCIQDWHeBjpcIyRwDz2t007OPB5xP4gN0MH11Bdk1xOIxngwIgLJa4EZE8ZBKGJX8uCg70j9lY24zTiMBzwXtf0gYvnAM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1114586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJglVqWCRA9TVsSAnZWagAA23kP/2FvuA3vaOgRomZv43Pg\nzZCCn4+LXUIg3KjtKLIBObojCJglLDzaQ886Dfbqe+EIDtHQ46+Ya3ioGWD3\ntD/oA0d6vGooOHZg9Qdv+9ZNv2/2XQWOcS2yxiLnQ5GJSypTsY2u1qGg1f9Y\nv0qTQx/+Jg9GbqNjkh/930gTFggsd9IiyBNcT1zBnA1Vdhxl5ifoUEPHRZYH\nvGkyvN7xbXQbJO63T91xb+MfN5PQE1PafAQu7mFjgMQc6qwYCmvFF2sNqIUY\nRY+K0LSBzui5kVOGI3bGhXt7NKM/SJO3uzup2hVliB89g5IP+Gmh1Lq/WPwq\nV9TfElkv+t0mwZxoNcIQ8Dqi51ARrZufJN5LeGSfw3qB/wL/X9gItBHYuXbt\niFsWbwfvkD5K+quj/5RTPUiIE7Hw4xGQN6Caj5Mi2blztxOc6bsMMj2Ty7Eq\nUKks7ri0Otpv0T0TNx9Bwx20/SztjFICD4cv83QOSFhtKhT9VZINEg8ckawx\n0Frwy9MAUSF75TZEHv7o+a6TB2Px/kWb700whrmx1wSsJp3JuWM6Yj5x0pX0\n2gqZU1+iM9fricqQfYmILfOaluVhP8c4Rp2h2vMfIQYuemcQnYwbjJctDzAZ\nyuJA8WBuiLew+0dZ35FFZ/2Uz43uOJcKIVTpG5nGjek5LDzAyWZ/dH2kHzcd\nVsVR\r\n=bZZB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cd73688a61b81573744ba9a03cd2952798eb68f4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.869d890d4.0","@material/base":"12.0.0-canary.869d890d4.0","@material/shape":"12.0.0-canary.869d890d4.0","@material/theme":"12.0.0-canary.869d890d4.0","@material/ripple":"12.0.0-canary.869d890d4.0","@material/animation":"12.0.0-canary.869d890d4.0","@material/elevation":"12.0.0-canary.869d890d4.0","@material/typography":"12.0.0-canary.869d890d4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.869d890d4.0_1620400790133_0.269425544286102","host":"s3://npm-registry-packages"}},"12.0.0-canary.ec22e1da9.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.ec22e1da9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.ec22e1da9.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"25f3258c3d9b7ec05006293bdbfa405ce77be815","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.ec22e1da9.0.tgz","fileCount":45,"integrity":"sha512-9cjFm1gJ67a6rcPIXNzZFdzo6bFVaHnk3XwUS+4Cu1t914eCbaxYDfIOimtHT+bN4tD6SNoIhxqTE23qqxerPQ==","signatures":[{"sig":"MEYCIQCY5iRFfrCfT1bK9LrKpdABaH4qt/iRTgExJLhRipLYZAIhANMwYdMjW45Qsgo51WhhrVSclkJwannryWqHyobX9kwj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1114586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmXpkCRA9TVsSAnZWagAA84wP/3QYBApY5eWuv54y7Xji\niTlPeNSovehPEeQtVZlUmNH4YdXrPvquWfOwBUEkycUJI+Ozvov2E0A+7p6Q\nSg6nfWIoPowC6Pkxu+K4B40fsMgRT0JD6tj6BPFajk8TymeAPvBwe0/Vk10W\nvilGmacWk+tu2gvTOnVvZn9FWLPBgkjNZWzEE4GdX/l6Ljpj/a5hUMvjqV9V\nrLJhLG6RN9lFGK/INcRotVBZ3FNimOehxYEfwDp49h56BWNosYx3rAdOjJXb\nNFpD7pRQwqlonUrVEeIG1rJg1BW6eAX0qyA0RvtMNqWwNfb62IOtI9Ir1WD5\nqoUvYYHSjDSzrIXU5HkRrC755N/P4zHc8+/RP2IlKOQLBX9KG9NDJC1/YcF+\ntyYJDcUQd0Ka6PwdtsSZ+UQCLvEIAWsIopwxJ5LR10C8+TdVuMdu4lZuR2wk\nXFYRJ2q5RsKw/7QnzXT8y61fx+0upB323XijLCqtBHqN4R7ajwsWV+qpgM7Y\nyAF29MUOmS94OvAYJkB2l6NweD9Ym70PEmrZBfI2j9GVBzLzndM9oT8784bC\nIhrcHGZqCjo/FbxdrECF/o0CywvcJhZWMqBvJnd3BZaaIWzc0tNILKI6uC+/\nG84zcB6s/s2nJTHXRHiVmKyEuiciMewp98icVyFYrvItURmar7xUXPuBQ7tk\n/yqa\r\n=1z8H\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"273a15f546b8d5df597771686f431c3726397778","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.ec22e1da9.0","@material/base":"12.0.0-canary.ec22e1da9.0","@material/shape":"12.0.0-canary.ec22e1da9.0","@material/theme":"12.0.0-canary.ec22e1da9.0","@material/ripple":"12.0.0-canary.ec22e1da9.0","@material/animation":"12.0.0-canary.ec22e1da9.0","@material/elevation":"12.0.0-canary.ec22e1da9.0","@material/typography":"12.0.0-canary.ec22e1da9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.ec22e1da9.0_1620671075518_0.8117880815405796","host":"s3://npm-registry-packages"}},"12.0.0-nightly.7427449f0.0":{"name":"@material/top-app-bar","version":"12.0.0-nightly.7427449f0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-nightly.7427449f0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cd0ec1da033ea67d9cb3e06e8502f03f0c54dba2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-nightly.7427449f0.0.tgz","fileCount":45,"integrity":"sha512-vR2VrgTOywyivtrBRGZfWzpYEova8A/MslqGMMj3INHr2qUlmLSRWvXViy+DzjOwqg6JY0/R144rH21iQDyNpQ==","signatures":[{"sig":"MEQCICMqt/JS141s3q9c6+aofY+EUcBXCr2VojMqE7EooYzJAiAfuNB9au2U7OiZV4WWMQK+7ZNAmDlkKFbWuyz3kvTwDg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1114597,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmX86CRA9TVsSAnZWagAAhtoP/jPMJS3JVxb7ZfgQC3Sq\nRjCKGeWqtTcPQlSPN0m7f2Y7AvH/JJoKoqPFOfdS9diauMrl0t10j8DwfRC0\nmG3oIoyotEyhzuaT41p6qfu9U+VIsDAdNPGCSCZPpc3bsF0peBgTso/Wmi/+\nIDON/E7ChVA6rCtxZXzptxmRobp31BcRgSY/IrVgCbmn9TA4kw28ov6vgWSs\nXujEOO3iJF4d7im+DSWePdHbPNxBDXEmUcBltfWTOZyq5ZpxU3LqMUxczxa6\neNIDEPeMWAcsFC1GLvppsGdsuZW+tqIEufu+51IZybk0EOj1M6RLOPhHQ1Cs\nZxQnL0kCRLunAG8jHjwaPRAcAKXGnCsqyh8M1XaEPeFpE80ZEvFoA2CPASdf\nkX8rtfc8XEJt3GcMp00m0i4S345IZ5PBJ0rMjFZB7RA/zat/83klqlw4KHwN\n5DLJkJw4DBCcmlujHHH6RrYhh5xH+S9YkN1GbKYBvMGrFDpWlRvjEkXsqVgN\nMSqvwu5dopYZHVHhbeOZbmuiar+PombyaOpjxdHlImUKJxwqWCJpB7NQyj+B\nQ6tzdVMtcyUnNRZf0s+XwAy2AZTJYc2x70pNW10Aw60lioZW80D5Fpmac/xm\nnms2Ibmb2Atbss/hsaLPyc/8yu7buBEZ/D8KAe+2hBy9Qum/G/pHiuUzg07a\n4y2k\r\n=/quG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7427449f09e9521a6deba6ba7da71038c2fc1f05","_npmUser":{"name":"asyncliz","email":"asyncliz@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.17.0+x64 (darwin)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.17.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-nightly.7427449f0.0","@material/base":"12.0.0-nightly.7427449f0.0","@material/shape":"12.0.0-nightly.7427449f0.0","@material/theme":"12.0.0-nightly.7427449f0.0","@material/ripple":"12.0.0-nightly.7427449f0.0","@material/animation":"12.0.0-nightly.7427449f0.0","@material/elevation":"12.0.0-nightly.7427449f0.0","@material/typography":"12.0.0-nightly.7427449f0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-nightly.7427449f0.0_1620672314420_0.37213603586295196","host":"s3://npm-registry-packages"}},"12.0.0-canary.957cc3bf5.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.957cc3bf5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.957cc3bf5.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"af274ed91418a2533e8fd20f744342156345d45d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.957cc3bf5.0.tgz","fileCount":45,"integrity":"sha512-OPOGyBNqGWPsX9WElna/cQHVp7yV4YgV/q5cB9NvGsEIQH5dzHYEmFx9mxojj7/i3esCkYRPjrwOxm7O9kAteA==","signatures":[{"sig":"MEUCIQDh3Vtsyu3vdyt6JNA0Fi1qPRrUls67v+zpm0QYw7nv4wIgNTfDlXWtX6BfEA7U6Btv5envSyRmyQGzpK4v561eesw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1114586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmaxhCRA9TVsSAnZWagAAUGEQAIum/HmwtMeGa7VfKBXG\nk9V/H+rIqDhfHHowv/1/0naMom7w0xdv2M8aqNhXXvZpGfIZJlv9ZkaKJyRm\n/IViUe21qNuGJSaLibSkcQBasqAwCop/a/tqIZrC9DohwUqOCJiCpV3ddgAr\nw29g+dAR/zmN79s9lQ1rBTWl7wr0ja2CrXrpxiinJfIFnOlW9F1bl+vujHAK\nqj7ito8LxHAf2D2Uoju4fw3tFkJZb/N0P7WdPyWJXcqa8y7oRjEFpSj+ZWa/\nn5MYOPdgH1ABS/QUlVhlyld/MjU+XMzviS64aYL1LIDoNZkoXF8Q0peuJPfQ\nZtGl/IvUyKCDh0ct2uS1ClUZrQfnBTNxPAwQxB4TNnagYupNARSB3TKXnY+7\nmBuweehgU96Dp7RZv0wmFB48kLd0tGgyC0xeRVVe6IjURazqo8XgzpYzFmBc\nfd4g/D0Do9EDQFQxqGrmJ9CTI7XtXAnArAbY+1F6/WkHLI1DDcPqwAK3VRGm\n928Cc/NQ8OCJ17sAQ9jsdaXaMR8wTfnThHCi9UW6YJA1lTSyJpgAW897bjNY\ntgjhtERJoxv6kkv5h5S6ob+KpLz3H9JCcuFBbPg/dbKILpqwcvwFOcBjhfNf\ntPdIQs93pPnKbTJknTwHBcwv4ymnXDwJLS326yPws5s9SowpZ1Bu9PKdAdv+\nH7s4\r\n=Nirk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3c29cfc65a597598e2a8e1841ef1af72450500dc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.957cc3bf5.0","@material/base":"12.0.0-canary.957cc3bf5.0","@material/shape":"12.0.0-canary.957cc3bf5.0","@material/theme":"12.0.0-canary.957cc3bf5.0","@material/ripple":"12.0.0-canary.957cc3bf5.0","@material/animation":"12.0.0-canary.957cc3bf5.0","@material/elevation":"12.0.0-canary.957cc3bf5.0","@material/typography":"12.0.0-canary.957cc3bf5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.957cc3bf5.0_1620683873298_0.8124576588283126","host":"s3://npm-registry-packages"}},"12.0.0-canary.88a33cd70.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.88a33cd70.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.88a33cd70.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ee3a4c2254c06c7dec3b9dfe3ecf46b4147eaade","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.88a33cd70.0.tgz","fileCount":45,"integrity":"sha512-F1WegeqNmNgHIsRQehyGE4/BtqHRtGv5tY0Rjoz5rS0z3vn2UvbwfVRIusurHGi0YYH8xdOmCGjGcfq1lDBOfw==","signatures":[{"sig":"MEUCIBbmosxpEkJ7U2eouHAsFR/JmANUYMP9ALyJoejyL6mnAiEA6+6OPc4ImTSeP6nQTXPzVqtztGp+agHOn90W+DOgVSM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1114586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmctWCRA9TVsSAnZWagAAOW8P/j8C+Xti6HM2C1KOHagM\nZL238oBWxh281hUmCDGOSA7w2l956Qhgf6oTsThKbfs3Rvo5hPXIwEhwDC9i\nxSfoctL3Yg48jNwNYTZsp3uNeXocNJTk7nxh4DvjZn81o65O/gGCDKKIoluS\nEyyKimttv5+LRjQymE2lnBDQC9RAs94Moa5mc3tZY1i0mURa52QN/jzv0a46\nP20WSPjAiv/A3WpjukfbaJE18+j9etPThuQvBpihpAgtdHm1gzY5YmxHuFL9\nxT7BnNAzCOOKMlnyR5/NY8VnYZQG3ZpvjY7HxsLSXS5coMYbVUH3kGN65uXU\nAesFIdIHtm7A9XeJOsYMO6msvyuARkaea/mBfZtSqQfqwdAESY2eFmgz3Wk8\n2IrcdmPHzx2vevJJVARADOhLh7+nGbF3fApONGfr10eoVyj0WxeAmFsDgi0T\nFu3Rc7KUneFSwPSHq38u8Mw8VpSDpL4QermIsM9xZVOu+Yrkiz4HWiA5sdH6\n5r5RGvvtCIBWIQJ2BvsWRhSW2rAgjXa8E10VYQo6F9C3p6gNejeqtfJq+Nu7\n7MrJqDnYTFeVwA9LLMjrLSuNb1JVfQNRZUAwYyib0D1ybS5IlY9V/cXEXVgk\nuPIAFmof3GASse+WKy9Zvjcg9c3vbdKI5p1TQEhRiP7qeJTrjv40MCUZIOW5\na0YF\r\n=6yT9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f1d341efc173e89bd2770326eaeb1fbc581c9648","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.88a33cd70.0","@material/base":"12.0.0-canary.88a33cd70.0","@material/shape":"12.0.0-canary.88a33cd70.0","@material/theme":"12.0.0-canary.88a33cd70.0","@material/ripple":"12.0.0-canary.88a33cd70.0","@material/animation":"12.0.0-canary.88a33cd70.0","@material/elevation":"12.0.0-canary.88a33cd70.0","@material/typography":"12.0.0-canary.88a33cd70.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.88a33cd70.0_1620691797957_0.1254633962424454","host":"s3://npm-registry-packages"}},"12.0.0-canary.d20dc6dba.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.d20dc6dba.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.d20dc6dba.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fb019f279cc25d2d7af4d422984eb191b5951ba8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.d20dc6dba.0.tgz","fileCount":45,"integrity":"sha512-5tjXultJPglwJJv/qlpcX0CrwLBjuYYWhcHlRUua24oGZIXdnar5N14o9GWt7OEYvhTuglMnebfuqE31CIHQ+w==","signatures":[{"sig":"MEUCIQCHak0K1dPoOKniZ/aOaJMaeSpDtwBevQSKNMmO9bWq2AIgXrOeGXrRMCS/a6B96wc0avsbHAaxEOCNWysAlHt+mJI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1114586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmc8NCRA9TVsSAnZWagAANHIP/ReSFjj979tn2ceIylK2\n8JKRU+HLh+hX82q2rXDfDMBfwWUqQvAJhmH/jomaBKF5j8VWqvyUZRNhcq1D\nAnj3AP70J7PGbynWQuhGa/M5xbHIfKEHxmJn8Dd9Vf0HHbt3ZjiydhrMW40n\n5hXXmtiYNWemth5+khnGkKCg0K/641BGpbpPhPAQ6woBIMw+jvv+osmhqw5a\np8uQNxJCo3ZgsF1IfyR0KA12p5682cE9cDwDSyBvtyHrBykYsbfgII6tQdc8\nvcR8rg0yrEoI7L5jB2TjAGUL817XrOpGkFM9rIgjVHjQQhV3kSJNfcbg4P9o\n8UHR00LSjNhV/Wa79uiIW5BvCoNpXjHBN1z0njIhy0jSb/LknMuCk7CSICgW\nf859C+KOdUZe8SpoEiT/ddnyy4+pFTli/6YbKUI1DwBoOPoJnHfPBPlXh885\n2Fik8fOmKsbr501b8a/o7UMAbgiOvsEuEnnO8XfobUQwkuBUisiteqUqeqyi\n0bVmCg2WeyWAVJ4dQFsuWhcGMU40qV+Kgz3GwPhOnuTatWefiCAXT1go0f4I\nbArMgDxaI2bK5WErj9YXHYgzOkEl+lsk2gguGM88m4oKUk7vdFFnKOaCLylr\nWNrL0oikoGdzXxEa+Cz+pMbsz3ZR32ncHy1+SJGzYwoaHdzzjDqAHAoASqQZ\nWaLq\r\n=2I0V\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f2980d3f7fbbd8d2e3b824a765f7fb03096bf11a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.d20dc6dba.0","@material/base":"12.0.0-canary.d20dc6dba.0","@material/shape":"12.0.0-canary.d20dc6dba.0","@material/theme":"12.0.0-canary.d20dc6dba.0","@material/ripple":"12.0.0-canary.d20dc6dba.0","@material/animation":"12.0.0-canary.d20dc6dba.0","@material/elevation":"12.0.0-canary.d20dc6dba.0","@material/typography":"12.0.0-canary.d20dc6dba.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.d20dc6dba.0_1620692749422_0.3354596457313399","host":"s3://npm-registry-packages"}},"12.0.0-canary.0ce2fdb02.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.0ce2fdb02.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.0ce2fdb02.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"365dfe8b2b26f14d57d2b86a17983a7f638d3f46","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.0ce2fdb02.0.tgz","fileCount":45,"integrity":"sha512-zCVrvcNAhBy+Unwy8xfttesSF+aIY8/uTaLI75UFrAkUhpGkAOm4gW44Go+XCjUayXrKdIekYmz0/yaYPoHysQ==","signatures":[{"sig":"MEYCIQD3EtKOVV3FJC6c9iOqIj0jyer5kZPDZTMOhO5WFtpxywIhANKfEF2DODuU/HzEO2+XWpAXPH3e09vDdxte4OIR9h7V","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1114586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmdcBCRA9TVsSAnZWagAA0qEP/0xKCT87ycRAQRMWdWe4\nF5ZO/8qSobUSQ79Qm6bUnpItBhtSJCNcV8Or+bqjY7Rba0hZSvu9aK4V/LLc\n0lqzHU3uzgIVDU5vdjQaR7N7CwWdDx1xezIfUPcDJCMWNDphGs3ZNEkVOGze\n735l4zr9pzlg9SfoFO+wYl8g0O2klWVgAqoDFeBPBqJvQJIyksrQUDKQnAQP\nG0TED+Y2p3Fs/J+R01MvTAfl9dtKC2JhIh3GLNZ3u5OB24vQoLR4D3nEgbkO\nh6yeyRVpJtTgEdLXsg4p+g7XxQWtEaHKQ8bEWL5ZIByjMjOf62VhaHvhy9DH\n2PxUg0JIPCNf3eHl06+uPl1WZ+nDH59hIMrSv1eom9lFOBpi8mb5aOA8MsCS\npQJPdCk9PbeCBwCbs2hw+RPBhxEJwZ/+K6hR9d9ZuOeamIL4RaZZeDHx8dDr\ntilqwYbAF+O3nLAH1SKYxGVkoiyL2z0YhUvKjOscAmCqlEhtDuIKKcX2yANP\n3Q/0QmLmFYLQTyUxVD1fe+wxfBJHglOU397reLDluD4WdxHNwfJsF6qxzrcI\nn9ZT5MDI/CJaUWKkHdfkpfZmeFu8bn7bzUHEn+dhbxovxYnTS46coEBq3D1k\nDhJW5pwfG904oF7bI3LQ2oM4nk5cQUQMDOEEbSb5lZGUqXpZCcShk5+kEvVC\nW5qc\r\n=Y//3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ee2139d87a1d755a50dc6bf0a6dd53a2f39548f4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.0ce2fdb02.0","@material/base":"12.0.0-canary.0ce2fdb02.0","@material/shape":"12.0.0-canary.0ce2fdb02.0","@material/theme":"12.0.0-canary.0ce2fdb02.0","@material/ripple":"12.0.0-canary.0ce2fdb02.0","@material/animation":"12.0.0-canary.0ce2fdb02.0","@material/elevation":"12.0.0-canary.0ce2fdb02.0","@material/typography":"12.0.0-canary.0ce2fdb02.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.0ce2fdb02.0_1620694785203_0.9379574210936381","host":"s3://npm-registry-packages"}},"12.0.0-canary.cb162da37.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.cb162da37.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.cb162da37.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"201a0a120af5a7d01e69614d1d4001da5a050ba4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.cb162da37.0.tgz","fileCount":45,"integrity":"sha512-q5Fg/6pfUtrqd52i5uXporyVJaQTtCMKlnuO4BFtcBtJxpBWsrFn42+vDeDSKv6jDHoyOvpuLOVXexTkM1o9Dg==","signatures":[{"sig":"MEUCIQC9CSugzyvuQMT/7R0tXRlQJ3qLAssplpIrkeF0bEQ04AIgEem6xsxK+jOxFSlL+jKclFYM+4a+uBQDAXJGTxO3S6o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1114586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmeUTCRA9TVsSAnZWagAAf9UP/0eD9tbI4qKAflfCjYN6\nHXynJPI65qVq15okfVttTLd/1MClvnlYudXoFnqWiFk/Ni9JefABZ9ZLWLFC\nx8pBEbYQvauHnLCUaH11VQiyIM5zGggGJdY5iVf3uPSJ5+1SQQ7dj5sQikbE\n8cpAglea6Lh4E49gG+rNJNCnIVci6AnGeqBL+9bp/l2UQoV39rD7VGfq5VOr\nUiLzGv4PREekgaQkBisG1pcKxZ4V/YjCVxOei+0giVvMWD/2XDDCH8JnDKYx\nhvfVokssA8fZrgMJBz20EMya32BtnrrfwCMFFDZjKcpZ3Nmz8epW//A8ggsO\n7Wn5izeVi4J/wi/KDR8EltTatGdRVpK5tMDkdBTmUBiROOKoL6nkFC3+ZC8G\nItsKqqQqUGZvnGkHBStLv8Nuz0FQhKECdkcQ3GppvtQuWo47l7MQsyAW6zrV\nm0QEWQUziRhfNBan0vlf7qlKX/6LvT+SbtXDZCbAb1JlNMkz1I9oXPs0ixLF\nci1WsAq9gd14VzNgudkeGiyuFTAUeAG0I0tow4nuCxIoAME29GlaUwxsMj3N\naEr03ELSkoeupDXr8v+GFxhx5uzf8hpBl14fb0zS+rIjjaZxgjlG5jeRNzc6\nsijm3/xuBHDPUVx2e2sHeme/2+cnx0g0jdJK2azAHGH6SzymX23nzv8XuhlD\nDN3g\r\n=gX8U\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9858adcc9ed7b1111dde19951ba96847bad0beac","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.cb162da37.0","@material/base":"12.0.0-canary.cb162da37.0","@material/shape":"12.0.0-canary.cb162da37.0","@material/theme":"12.0.0-canary.cb162da37.0","@material/ripple":"12.0.0-canary.cb162da37.0","@material/animation":"12.0.0-canary.cb162da37.0","@material/elevation":"12.0.0-canary.cb162da37.0","@material/typography":"12.0.0-canary.cb162da37.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.cb162da37.0_1620698387019_0.4589638198363437","host":"s3://npm-registry-packages"}},"12.0.0-canary.573dc7ffd.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.573dc7ffd.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.573dc7ffd.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a69d284d885af63adb218a2a4d162d38f6fc6b8b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.573dc7ffd.0.tgz","fileCount":45,"integrity":"sha512-0GJLaoc540GVZKWnmaZskx4OHQf5MmDEJnB2yWMH8sCK65ovaj/EgXOV4IxdM310i6xuM/66Qc71UfU5HJaeCw==","signatures":[{"sig":"MEUCIQD7tP9C3aSOamkzypZ5kx3mzcUYQ2f6imnHC8d7slU7VgIgHFyPpI/r5gvCeQGFX4GiT00wBhXZJR7t3gqE9PSzKjE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1114586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmel4CRA9TVsSAnZWagAAsHkQAJOndUhCr2KY3DdX7Bn/\nDXz0xPJSLHZUpIB4ZuAZJnuRfoTzJCE/ZWY0/P6fEMgVAU9021J4TLlW3Ux0\nYiudjlZnHZ2eGqp74PS15PNsryDlgzSuhOkYxVxdAbbxooFHhYv321bIpuKC\nLGo57EfOnmL+5/fQ/j0p1y7qjHpjomRfXGLG/HxWzpcBusoeq9xyPZrZagPK\nE/7CUq1pmO0Ey53G0P07qNcJI4iH7lQr459dth5VKso88nkuzlSVzn7VkCoW\nxhOZn+WUXTsoNXIiPKKsDBkdrOEDUhNrkh4MHzyVY2P86B48Os+lhchOSmkQ\njfIToMhTkGUwfDB/sRZFsYme0c9ZhfAsv3vPPp5/KqOnyiYaI0BJbxy14yY/\n8qjQGCk7EyXxZmd80y03UE2khzF+j4SElwFsGtL8M6e1rr6VEez0EZpqdUpr\niXVXYCYCRAnxFjV8WwL0vSXSBlyxw/EKeOQ/Z7TDoTfocpSgfqRrfUlSIcv7\n4nAmy2ZApbV5In2Zz9X2bX6DzV7oe8RV5jYTQrH6rGxqx0mxpbPdkByvk6PQ\nBeD+XfkK1cKWcgHnmHaNJh4mwspz67QSQmENCEtSPJRrhUwMvqMFvGgD6KgW\nOYtmPv04iL037nL7i8tKtRnA8NKW8VBK4v7graJgx6DxLpvKS8AJTGkIbHQV\nzvKE\r\n=bcP/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"67aa299a5066425730ea2e8558f89c111a5ab156","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.573dc7ffd.0","@material/base":"12.0.0-canary.573dc7ffd.0","@material/shape":"12.0.0-canary.573dc7ffd.0","@material/theme":"12.0.0-canary.573dc7ffd.0","@material/ripple":"12.0.0-canary.573dc7ffd.0","@material/animation":"12.0.0-canary.573dc7ffd.0","@material/elevation":"12.0.0-canary.573dc7ffd.0","@material/typography":"12.0.0-canary.573dc7ffd.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.573dc7ffd.0_1620699512014_0.42984762764234685","host":"s3://npm-registry-packages"}},"12.0.0-canary.d5f6ad3fe.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.d5f6ad3fe.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.d5f6ad3fe.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6098c0ccb9d066e5e2841bffa3954858f5a698a8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.d5f6ad3fe.0.tgz","fileCount":45,"integrity":"sha512-XErXWKk1h7wgG/a5WSY03UE89YLqZAH655l/PcdHyF2CXJz0bPNlTkflqqzPlBIiqJ6ASF1NQRv3z7K3TIv0qw==","signatures":[{"sig":"MEQCIBfbgqM8OOdpEmovH/4e4WJoG3GRbLq8pMt5mHtdYHZUAiBwdSrUHtBd1TkExy6W4/3H1bV/ZL9nDObKSDOGEHSsHQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1114586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmxH5CRA9TVsSAnZWagAAMI8P/19XD9c3uIZEu+5FUIcU\nEYucYI7MLy4I6y9OCrUr8/p22zxtyNcMBBa8kyczMGpNPSnEmBmA+MjJCdm2\nAK17O4mBcE8Vh7EV0YVO6qsUm3fcm2ptqyJvS0pDJU6sJ00fshqtOsexDBbx\nr5yZm18Xl0j374H9eUdV6oheDH1uischQTY2YkHEtvGNqJFJKMLQr7WYiWj7\nCDtbPz2DWWdZ7xzQUAYrZ6iMlPHv2tQkO6mYDP8O+/USjYOUV/ZejWZWOIB3\nR+c3z7LeUUUTEudDkpCiqknw4Xa1Fk+fbvDr72L7aQbOQTRn5RDoUbv5NsaU\nkfgfUPbwwchlDYXHGeKe7asdoAvUGd28zKAsFGJCX5ljTMOs1WbmkRtgTjeE\nyVmIocYUKVKncEAeUBcmy+4FT9IeraMC0P6rhxduYUXZ4UmKLKP4MvYhQuQL\nD8a7VzZAgcXVhrk+HGdlhyhRuYgqFEXFMIM0JZLnwzDn8DneLuviBDelb+7I\nLahsW7vnFvRjugPx9pOofCz8I0JSvnxs189dJlRwqZdZuA6DyVgue7HF9Vx7\nXckwqbc3Ltw4zOOBWffbIXLLIGY/6E7w83z7jSlGYOO1pHsw7O7NtAD5QQ6h\nOXEGWMOJp6nyS45LD5XkKZ6zNxg89S69Yg+J1kE+CzPqgh+08myjAq2dcIe7\n7kiL\r\n=fGPN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c0bf85201107dc8a95576c2392f5b1771bb2c969","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.d5f6ad3fe.0","@material/base":"12.0.0-canary.d5f6ad3fe.0","@material/shape":"12.0.0-canary.d5f6ad3fe.0","@material/theme":"12.0.0-canary.d5f6ad3fe.0","@material/ripple":"12.0.0-canary.d5f6ad3fe.0","@material/animation":"12.0.0-canary.d5f6ad3fe.0","@material/elevation":"12.0.0-canary.d5f6ad3fe.0","@material/typography":"12.0.0-canary.d5f6ad3fe.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.d5f6ad3fe.0_1620775417324_0.8607996405276297","host":"s3://npm-registry-packages"}},"12.0.0-canary.25751d2ed.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.25751d2ed.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.25751d2ed.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"eb91f46e79ba302f914b71658797e93fbf789560","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.25751d2ed.0.tgz","fileCount":45,"integrity":"sha512-vbA0bQlb3MUkoxyGtQpWL8POppqOgq5a+Ibtx+nXg92W0wNdLgm5c9sx2O5tE0HgtpIjOAYU5MThDXxmeMg7mQ==","signatures":[{"sig":"MEYCIQDhpWeFGkF1l8CRRgv4Wt5xEH1aPHCbDZiUvGt0Jj9WeQIhAP3cCK0+o0guvsh9d53bJcaEuS3R1p0ptGBiEXLvVVrc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1114586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnABsCRA9TVsSAnZWagAACdMP/20DUgmOgxxqeiF/Payy\nuGrZigLYIug9j9iwi/UZ6ILqL93XG4cDsqdlG4rj5wZGV9ijOBly5BCBtvY1\nF3x9myzPVeJ6wjgIQsLAATjvb9smHK92mvdiq597R+oEmRIUhbnQRJ5rnRqV\nJvsKVK0XLX05XC4sPm51WMYdTPjQqqK2siITX0iN0MxLqI4cc0+cL4xfT4RK\nx4Muurd5m9fhB1zojrXa1zJxvBe5QnGoheg9tomy+aD9ExjWsvFsBZMaeN6p\nLtg2j7SSbfo8VK17EgwkK7dJYKN2oXdrbXg4hIaCVp3wrbhEGNxEW/Z+cxxd\nW7VqWymnY726i340ueqyhS3F/EGESXaQoqoxg7d3Kxmg0ZAWY8DIR0zeMEWh\nZ8uq0jvNzsahFdrstU2HwRpwqvCL05nw/nBEH+FGGEk1a5vVe5VUhBybGQn9\ndoJf3ErIdosZVzVF2yiu4bShSXTQo4mS+VnsJad8egtIFczL/4w54sGUZqcd\n5xpMVoqqrrXeMzIltfA7VjebPbJn5ljhlXMkNzTrbfMJF5jnE882go6aLDAr\nvw8S7YzxB1AIwBEMmsgJXjmCwi1+/dhLOO/jYPhjasmZGnVDygRNm7e+hVZi\nWrHB7uS6TRRSfH7m98sJEY4F3vJUjb0RbDtWngIR0t8JS2lYRqQelWybGV0p\n34yU\r\n=Hfmg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c38dadd226475a1dd91a992667019eefec273bbb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.25751d2ed.0","@material/base":"12.0.0-canary.25751d2ed.0","@material/shape":"12.0.0-canary.25751d2ed.0","@material/theme":"12.0.0-canary.25751d2ed.0","@material/ripple":"12.0.0-canary.25751d2ed.0","@material/animation":"12.0.0-canary.25751d2ed.0","@material/elevation":"12.0.0-canary.25751d2ed.0","@material/typography":"12.0.0-canary.25751d2ed.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.25751d2ed.0_1620836460389_0.4962756976026177","host":"s3://npm-registry-packages"}},"12.0.0-canary.a23ecb682.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.a23ecb682.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.a23ecb682.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"aa295281eaa126c452b5c0294551f209faaeb7fc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.a23ecb682.0.tgz","fileCount":45,"integrity":"sha512-4Z7DpTy7MdFXb1Tp45OEtXn7mxHkD8rfx1eueuhWCKWhTZMwP4vEgBFLXOeAhxX7qGJR6s5AXeHm2x+jPD2IWA==","signatures":[{"sig":"MEQCIAWQe70c4lR9Q55uypAJbh3xJjLPGqvpXC3z5WqzIeWxAiBDs5PpruGwvREKQoZq2Z+63DcAv0iz3rE0+mMkw04HQQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1114586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnB1UCRA9TVsSAnZWagAAzhsP/346+9syljAOyh/r+8Ra\n6gA3/eJ5XXoCqS5ju+ZD87lVEUG58ZgReGReLOLhZQzikiJe7qdSWcLbCoDi\nBtueMxHlkMDtU+SSEBaax56tZGlsYdxJnhgnXrBSclK4dopUHBC0LZN2l/gp\nGgzOO4lGJ2TDdVd5eR64oRXq4hJ1fg1DoSvSWO1bc0VT++4i87ro5C0sB5lm\nrIotaWalWkITEwlZDRs56QFGec7wARFHqdnB0vxbBKO6lozx7XwAvnNc3s7z\n2dTMOd7II4OOJQJg3pdupYKoWi4CGQ1t0iG9x9XRWyeBsKGYSEr2masIlB4x\nSwh3enI8/pgY+KT9djNotAl84E5MMARYVcFOKWMBVZ0VuQv/Smnf35Dqc94a\nom12cEuLbB+yEa6shsm/IzdAezDXub5Z4yoiY1wws5YJfTdK7bWGs4ftXltH\nlV4fe6aNe5I4PHiOvqgT8j9xCHM+SklxUkP7IzGGth4wfYRz0x0Xi9ecqiIR\n06OJ58zte5jS4yF/U9CxUmM686gd7gOu1FBvScUGyN84oPBeJsAbfnccn56A\nx/sXGmX28sTW/JruiD5P88woL/CmN2xbg0nwJai5eCH5pBDpTjOQePygBYqG\nvkokYLNfPDepY2sJs0+iy7z5i4gVBKvbS+wGTj5eVGi1msROgbHuNL6tPauC\nMeHN\r\n=0omk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"da78c3f024a21d0e0df18a30c887082b202d7269","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.a23ecb682.0","@material/base":"12.0.0-canary.a23ecb682.0","@material/shape":"12.0.0-canary.a23ecb682.0","@material/theme":"12.0.0-canary.a23ecb682.0","@material/ripple":"12.0.0-canary.a23ecb682.0","@material/animation":"12.0.0-canary.a23ecb682.0","@material/elevation":"12.0.0-canary.a23ecb682.0","@material/typography":"12.0.0-canary.a23ecb682.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.a23ecb682.0_1620843860219_0.5566194245826233","host":"s3://npm-registry-packages"}},"12.0.0-canary.33a954852.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.33a954852.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.33a954852.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"77979a4967990f35cf66c7b09452c2557efafab5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.33a954852.0.tgz","fileCount":45,"integrity":"sha512-+H3WfY8OvaojDVzMZuo6gLzikX6SqhnIH0sMdjZ6zgtrOb2z2pKhxW6PCv9jJ1BsVHchDWf3odaUUPkDIaUhCw==","signatures":[{"sig":"MEUCIQDqHI2PlC3Gdgb0y97IbtABD8ELFffCLzRjN/TaOtRmTgIgPHZmVpFo7FlvnCZoJ5CST0M9koqMb9qKE4nBAUDX45w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1114586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnUECCRA9TVsSAnZWagAAOD8P/26VquhxkSJPcOlpPXoZ\nCXai/70lwogISiyFAYPSIAfEoXgLqx6NFpLAq3M4UZ80VGEoiKGFuVSdR8F1\nI4kUuy+6VpgL+Z9F6I4cmbApkDVY9U/Y0L5l+7EPheR5M57WioRnlGeaABR7\nmC22dHgm83pbCChlGUYZeK6oQHLydgAwOwjQAQM/IR/a+NC+0J5ue9XnUAkC\nH4ahYQPyiqgsl2NmCZJ/+CcGewY08gePdJYRRs1C5kdk8ZC2Puix++qYAm/i\ngcR08DqnFpkHUDsQPE9WtqWD+QbWweah3YQQnBfvWZ0ASvP+kL8oGEkvtYJi\n8sd2QewrOR1ztSQE7HOFslIElaiWb62EZLIn3eKpG6r0NuAXDzruKgfC91eQ\n07VjADLZBYcNjRssssMdgobLPRq8R3uAclVpv0InB5PDmnIoc8jHRYCCJznw\nTEjC2KpqVR7N7HfcaNvr+XEMnRHNvoRHTwrfeeUMJN4sd4s504AP0pFJDanN\n8DviQIs75bRN1zZ0PEAoctikrRz/ZC4GvsZkvAg2ktZunyXZvGiac6c1Qv0Q\nOWyJRauX3SF6OUBtu7lvTHQmaszXEF5gCP4dmkoJ/1WBFPCz51lOHB1gtqsz\npBQAWrPldUenR/0XD6qFa2wwx0mbfjyUiBTPWtTX2GxQWGMaFaeqsOvZktMK\n2nzO\r\n=4vwA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"703dd5ba6a1225efec74655d3393690dca1922eb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.33a954852.0","@material/base":"12.0.0-canary.33a954852.0","@material/shape":"12.0.0-canary.33a954852.0","@material/theme":"12.0.0-canary.33a954852.0","@material/ripple":"12.0.0-canary.33a954852.0","@material/animation":"12.0.0-canary.33a954852.0","@material/elevation":"12.0.0-canary.33a954852.0","@material/typography":"12.0.0-canary.33a954852.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.33a954852.0_1620918529611_0.21386396158773113","host":"s3://npm-registry-packages"}},"12.0.0-canary.a4484849b.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.a4484849b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.a4484849b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e3964dbeb1fea580b1851e532205b1218930643f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.a4484849b.0.tgz","fileCount":45,"integrity":"sha512-DoBBirg0+8R6k9x9hKVkd4P3kdREhrWQc88grv58UrqCZv3EJ8KbfRdBMGs68UCDrMhS3RXZC4sAmWQa9j54QA==","signatures":[{"sig":"MEQCIDW+WWpUPwZD/X7WxWq1fsN0D92lfpJ3unVEsAEHW+ZBAiAM4ifBqi9oXFcMdUxK/vJSUicTfyb4sDmtTRSUq34PIA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1114586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnUZ6CRA9TVsSAnZWagAAgBwQAIQ+yHGar7WFV1CPWrfk\n61XDidOoMRVXcMBPtlwe0ZrsOxliSfpT027J1XB7uXO+cbZLLTW2+wStv2+V\nOH5W0dFyZj5X7J5N5UFlK8nIAV9Z227nj8wbIfbRC3PoqJJ7dFzvDwMHjuO9\n0xQPFYLrRuXUlpRmnDIiPnX+flZWIPgqm8HYQLMJJ1qtZBW0WyxG2U/JWW0G\nFyH0PRvYb/ITbcqjZKPe5HvkLmyvMFMMY+nbNw+9QnB2/d3Z7+2ygzDNhPC/\ngTDmJWgZ73kvigmjGWfHuBb/QD3pzOg/O/u8IIr9GvYZyuu4QH7/3subPoaw\nGIpAm+yhrGa3/hHHvokZ5JiFXQIUOfdeNS3QzigxfZKdci7xkIhtXrBHEMYo\nDShb3C2UaK8SrULi8Vf5rk1hfY0yh1TSkI/HqkLVw22bBXU1bNWqKDFE522I\npVG4i9Ye2hi8SKk09mfDUwv7jRWdjocfpUT/nvLqk3Hc6DBn4YP4u+lUwahR\ny84sf7LfvG78sK91dm0ynSIClZvykvvzq+iJUaV7hM2KXYfbnhGnoE94pj5d\nVa9cwHmj0m3HJLRWTMCltvRLAJ+r3C6kKsP/s19v2NHT2hqnbPRGBMIG9eIU\n3F6zoRGg7RBj3TBanxnHKQjTHV6C9rpQ9+EPqUlIHCC3Gx889/Ut+gEpdHsI\nhl9g\r\n=LheD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7908229b1205198ad87858e49ed29ee3836cebfc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.a4484849b.0","@material/base":"12.0.0-canary.a4484849b.0","@material/shape":"12.0.0-canary.a4484849b.0","@material/theme":"12.0.0-canary.a4484849b.0","@material/ripple":"12.0.0-canary.a4484849b.0","@material/animation":"12.0.0-canary.a4484849b.0","@material/elevation":"12.0.0-canary.a4484849b.0","@material/typography":"12.0.0-canary.a4484849b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.a4484849b.0_1620919929565_0.9572238083189224","host":"s3://npm-registry-packages"}},"12.0.0-canary.b4c3f513e.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.b4c3f513e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.b4c3f513e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"58108e875f7af5424538382f7ac3e5c0f3c79944","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.b4c3f513e.0.tgz","fileCount":45,"integrity":"sha512-yhDjwW/+4uJWgc8XhgQ3A2IKgAUNV45XQbW/EB67vfv76UCzdzBpAF2rZ1FnYVfS0ciQx2YroilitGQkF+0EUQ==","signatures":[{"sig":"MEQCIC8evZnKrT/0UMJANXaKH7ljRTrBIdXE8WuRKJklZoflAiAhqUccp+j0uBVaMQsEylZk8vuQpkKIMgKB615kE1JJJQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1114586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnU8gCRA9TVsSAnZWagAAwKkP/jBZHnZZbDissGFrET7t\n/zxBHpLo4qx4iF3F3S3ZwrByjXhsaAQhoUjyb0/zBAtbJq49EBHk4xlLlUg4\nIy2dPjhsebEhuuiDFiSE59xx86ndK/i/FRz6hI+1mVwK+92DyB2ov8cMzLGm\nraNH1Mccbu3sD4SiFlhyxcrf2NmGtdmun/a0wsOqPq+Tkj8kXBt0x6vmVXId\n/99m4vIU7jrNkf3nCxNJEAzf8FPXsdCFUT3pi8BR8qyqnCz/I7p8+woaJTRr\neGy4JfXdwtpNetlLWzUZKmppF34vd62JOTGa7xt9YL6nxZHfakAbN1Zbe81M\nqP0k24HB8s1qSxaJmHLjVSic9dGkqL4Nco9DYr2/JuYR9v4NbfzQxm8j8EpU\nNFFV+ifBevNIOFMJGLu8p6mkOIEMb4npyfeIbkjL43E2VD+k7HWCnLCJ8PJr\nRGbm15Iw6LXuAM+U0v22rzC+SMNrz2Gu3LavubpQU6A9xKlYX93RM5F1hOaY\nWw12lidMvEKNLepLHhUXpBQEDdBWyZGrb0RNWHWlX2+pFHGBXsejpr2Q00tU\nPbRhuSxeaT4z4jmBfHNb0atilm33RAROg5ofB+yqPt2gJCOfMRWZLaZZ8inJ\ngipdRK6xDw9SnXprJ3a9Qe6Rnpf6q080qX1tzMCxi6qKPTtfHc6Jb4murA3Z\nrQ9Z\r\n=ISYS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c2183e7caf6f0437e64e41b632f75d33156547ab","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.b4c3f513e.0","@material/base":"12.0.0-canary.b4c3f513e.0","@material/shape":"12.0.0-canary.b4c3f513e.0","@material/theme":"12.0.0-canary.b4c3f513e.0","@material/ripple":"12.0.0-canary.b4c3f513e.0","@material/animation":"12.0.0-canary.b4c3f513e.0","@material/elevation":"12.0.0-canary.b4c3f513e.0","@material/typography":"12.0.0-canary.b4c3f513e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.b4c3f513e.0_1620922143856_0.2079473347709524","host":"s3://npm-registry-packages"}},"12.0.0-canary.1a8d06483.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.1a8d06483.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.1a8d06483.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7164e244ee41b804660847f1387230b158cd46e1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.1a8d06483.0.tgz","fileCount":45,"integrity":"sha512-+vDujMPtrCSKMs+6q3TxnpG0sAm/snAL14zrReTLTVwr0QEPh5V/gJ51vRZ/Fubr0ssDxc+g3Jw6MtGkN9hrng==","signatures":[{"sig":"MEUCIAUOcF+5TjfKRA16DrXWWq30LqvDNE1uUKUEtXJmH118AiEA6oN7PJnT3xpdGL6aknYlVmzLK4M0koJppFI/eFyVBZs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1114586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnVB7CRA9TVsSAnZWagAAVY4P/jP3a8d2Q7l1SWRYMcRS\nWVUkxD3HEGuMqg5/4Pn2ODeKBrlIV3QuALlyYGDw4eUskx5GkY+Orpud54+4\nvT1Ahnr1qB/f2O0+7k1XasxmJdfD5TIHbq11OrT5aUyKnH9aLotRTeRwXaTA\nPlHB34gX4/d87gaBoY1zjlQeLmn/+rtIcoUgjiTOXyQ7FDG7bm1Q67/0DfXS\nmUINNAsoTnNuG1YTOvgYaIuAbNDhLLxFsi2D1U89mpLb6+FJPZxYC0cPfVFq\ne49XV9cJvYFhiOMCVbD8n+b26YDjRcxXCwZjefNC3v1K8D5X7EzI4sUY7YoY\nHbd+eHq4E91qcUFTHNl8PrBIESkCxPN9Xa2sKYOax1qaSKnuxrs70Ewbwgoj\nuSZnwAO9Ztj42GhmA8LWDJ9TuHFuzrJPhSHZ3+A0spweGHBRRbyB7s371lvl\nQNDMoDUOKLPYu3SMej5LtlyGip5hTIhXCDEmY0gPFu2Hori9GBTnO1/cFr5D\nYL/ik/KINOhWfjuxwEYpLCOI3/sHfP7q64dwgXVx2XvOVX7qkfQJg0zhGHTI\ndwyBEkR8Qv14iXWfdICi2Tk4Ov/C1wY1YJDt6ln9/1ouoNYBVPNH7uHiyBBR\nnepntHN3HIiN+58AKPhVsbvb70Dt/hw+bgjkgrfkotKTupLxyFiPTQNdX3fm\neE8e\r\n=OtJ5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4fd7ff5259e7910dd76488a7faab45af839a13b2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.1a8d06483.0","@material/base":"12.0.0-canary.1a8d06483.0","@material/shape":"12.0.0-canary.1a8d06483.0","@material/theme":"12.0.0-canary.1a8d06483.0","@material/ripple":"12.0.0-canary.1a8d06483.0","@material/animation":"12.0.0-canary.1a8d06483.0","@material/elevation":"12.0.0-canary.1a8d06483.0","@material/typography":"12.0.0-canary.1a8d06483.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.1a8d06483.0_1620922491317_0.13165337569570168","host":"s3://npm-registry-packages"}},"12.0.0-canary.8e6081836.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.8e6081836.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.8e6081836.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"701d2d76c5f375aff13c8710be0ceb4affafce94","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.8e6081836.0.tgz","fileCount":45,"integrity":"sha512-eIi/Lx4MxOOOm6EYSW3NjFvH60P+RXX3WHqCr3+GeUNnyEq+5OmHFb6525H+XIvhZ8ZBP64mNawR4biBWXZIow==","signatures":[{"sig":"MEYCIQCw57e/84dIhWlh7W8KGE+P9DmmjmVvo1Vth3qTGO7pMQIhALb0I3OAp7JvCrNuN4YpNXRDB49tHHaiOjAqv7GrII/4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1114586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnu6ZCRA9TVsSAnZWagAAmUoQAJNrOcu6xaehXEpVvhoI\nKs0THGtC7kLJhsVCWfayVQZQrXkgDyFV7X6ysXrO+3cdxFUBZyaQxuSQslkG\nYaQEVNKaPO+OYTD+ftUydR4CWXqG3DUfPuelbiYGo/rP/z2nOXsEJy3X5ZpV\n20q8q9dtx3NeR1u+jeMlsK6dd+14peJ3OezIu+590gyUbwCZpGcNvN91CtT1\nkeMM3lPiUTxLHtrgxxKQgKYu7ZNN3ZMxMW8PU4Az/XtG+t9pO35h/Ho9q8Et\n08eppG3Szbmluyo6RpBjCN0+Zr5j1bBSTYHjhPY3xOgYziiqTPdF9TaGv4qQ\ndaGM0P24Na9oC58FNwDxehQO35OcdoNHcqqImvr6WN5mus/ibV6fqhMtoOqL\nt8LXda23nQOmS4cY8LvGIXDDkKU2JS4arc12/OXtXFPLXtM/C9rcXt6vvnBR\nZTwOY+zBipfKJNvfmJh1YvvjeqzPoWMaMnHvBGtq98MIp0CfOOPPUdUMyVJL\nMAZ+FgmmNjBrDllz2DCwdz1KOTxtH31WSMgnqu9C1ZHIZIAtTWnNHHbRRU5m\neQvC1lJ7+dntJveo8XT7uS+/BGBgTybLjaD2n7P7J3CRNfGr3i7ijMNvBHsW\ncrtgsnAQyfVozbJf0g5H+cX4nWnHD5H4DQcB4jatsl/Q68blYCBlX97lDI9g\niUzw\r\n=2ikr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e648805eb34c990054d503fd3f70ed25e40d6d9d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.8e6081836.0","@material/base":"12.0.0-canary.8e6081836.0","@material/shape":"12.0.0-canary.8e6081836.0","@material/theme":"12.0.0-canary.8e6081836.0","@material/ripple":"12.0.0-canary.8e6081836.0","@material/animation":"12.0.0-canary.8e6081836.0","@material/elevation":"12.0.0-canary.8e6081836.0","@material/typography":"12.0.0-canary.8e6081836.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.8e6081836.0_1621028505070_0.4151748665644308","host":"s3://npm-registry-packages"}},"12.0.0-canary.a2b0f4cee.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.a2b0f4cee.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.a2b0f4cee.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"41d1909f4064383d33761750b2ae0161f2ac63d2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.a2b0f4cee.0.tgz","fileCount":45,"integrity":"sha512-hUi2i7eY/R7dBFor3UwAEvhRQ9cLg7kLYPZ1fjtUNqVhwA5u/Y0tx4s9G9eLbc8q3eAdwkgEV8jg9MmuPj7I4Q==","signatures":[{"sig":"MEYCIQDNQaKmocvCBT37bj5TcRSl4SKZa4WIAP6APkY4awdoCQIhAMcUk1hzEXXFxN9JkjLUtm/Umm8Ujp0NU9JSKhdtznHk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1116819,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnvG0CRA9TVsSAnZWagAAeWgP/3t/1CiPxDOeh02m5xX/\nYeVFhXxsxbeLSCOZ/IisGqWhzAVS9oHGiw2U8VjCJoOyM5fgJpVAWRRgvPMy\nujuA/2ySUX8So/wGsL0N7+7G3duUk1wNPunQVI6/Q4mqxL7edmQ9zGtomfqR\nskBlIzMsTmTgNNQHumRVLNm/V8LlrUypeQytwajrBTtAAYQirlU9ZjhJY2rb\ndq25qSE7LPuAbTZJ49YYr6VO5o9FLnnIXB3hF7m0W5VJNcGNKMlmZhxqEQUs\nYyKx/BbLwcpheXMk5/nFD2LFlGOF3UElEtCOXyFmLuYyykpeQeWlqeUoVAp9\nI4SZ9V5B/qlboYV1A4n2hEhjhAR9VO6j8Utr20PN5K/oWOkXHNyDbEOLEffi\n4x916a++xVgB+BpSJpZLCEol6Di+NytvZ9QV82oy8TA1Sjq22vJVzdjp2yGR\nDIprnHBKAp8f2J6C47oa/aqHLRaHh8qhnGBxa1rzNbFvTbE24lcm6DF3R3AF\nmgKwq0p3llxRVRzSaDTdUTW/MGqxFM7sTbedRULZ8Inl2YlViglVLbDD4qvo\nlHVR3TeOACacnbkvUmApH4k0tD6588ywmiJjE0zMd/YS9onEEqs3dRIwPYeD\n2E9uiSBghREiMRtBALtXk6Wmj/qHL4bp8w9AnfG44hkmmqRd/fGfvpn49pLQ\nXaan\r\n=Sj3P\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"67c2d3cef073a380a13ddb6bbbfc90886c7af364","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.a2b0f4cee.0","@material/base":"12.0.0-canary.a2b0f4cee.0","@material/shape":"12.0.0-canary.a2b0f4cee.0","@material/theme":"12.0.0-canary.a2b0f4cee.0","@material/ripple":"12.0.0-canary.a2b0f4cee.0","@material/animation":"12.0.0-canary.a2b0f4cee.0","@material/elevation":"12.0.0-canary.a2b0f4cee.0","@material/typography":"12.0.0-canary.a2b0f4cee.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.a2b0f4cee.0_1621029300213_0.6021428105540547","host":"s3://npm-registry-packages"}},"12.0.0-canary.e8e39ad19.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.e8e39ad19.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.e8e39ad19.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c96eec6577ae04f67ce463a528f8f6bd52aa1b95","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.e8e39ad19.0.tgz","fileCount":45,"integrity":"sha512-5pIPByv0aS+a7zj+MkVWChCbdaKTkCMuGkya4685Y0FlOKD8lquv+Pbll59NXaQBg6gKKwwR+QwyP08H5EVrzA==","signatures":[{"sig":"MEYCIQCNPjylMusmynQF1+1SyBvS7K4YVysCL8/6dh2KosSNFQIhAMPwNznXmaviAJx7xSKcbfQ/6RzQSef39VFT6pL7L8oO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1116819,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpCAWCRA9TVsSAnZWagAAhMUP/iTbZf8ekz6Jh7lLwpX/\nZ03d0r9RlMlGcQ4NXWGO+e/GJfNm/T+1b7sjh/XQnWEbICvyz1LN+uOPKJqW\nHVcbuCaBvvg2s0em69hU9mOini+L538zqilUvSrKDTaGyXgfpa0EGSl9PYj8\nfdhDLiPqsQenQ4blxJbiF0sIV4JgGk10z9/z55jpgfsEdIJjxbzQVrToNuXw\n4r83/+V+6VF6BxwOEgnqE8LaBRCV1Jbo16yMG3e4EQsf7B5sLQi/fmW48FIk\n3NFY5o/W1QNCdHFFDFbJjht9mhpSPt6kdDn3SJw8O1R+7IZr66nPXHed6EOT\nvngvO+20eMFvL/bHR/r3Z1v9TuscZEzTgLQ9QS4CocpTuGPh6t4kz4ASLvxz\nybIJ3GOwAnxPtPPkTSyU+9+ixmQizsNooozuMwnW5AaM7dsfG3BnSL6Xw/8/\ncLA30b/olji/+3RjIH3C+qEXKgf3+4WXHXOiyE3rCCwxsUNe1LDe5yCElrRb\nsUiiR/WLqD3t6A3AWz4MPxhGYhLac1pNPI/DzDR7bopojQGNLR9T+d+DvMfu\npu5AIfYXpOmgRuOrP6gCn4J9JObNncVZQBjiE0zeqYYyODcUxQ7BrK/a97xc\nJAAHqekYo0OhBk15cosHMl88tVnafHY1hF78WF3xugoNSsWsBX4PiNgeJYKr\nk3om\r\n=8O9P\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2bde63cf3be6363eb1508c4d7e1747acfc51a761","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.e8e39ad19.0","@material/base":"12.0.0-canary.e8e39ad19.0","@material/shape":"12.0.0-canary.e8e39ad19.0","@material/theme":"12.0.0-canary.e8e39ad19.0","@material/ripple":"12.0.0-canary.e8e39ad19.0","@material/animation":"12.0.0-canary.e8e39ad19.0","@material/elevation":"12.0.0-canary.e8e39ad19.0","@material/typography":"12.0.0-canary.e8e39ad19.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.e8e39ad19.0_1621368854268_0.6613137417824544","host":"s3://npm-registry-packages"}},"12.0.0-canary.4bb5eea2b.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.4bb5eea2b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.4bb5eea2b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a48176aded2aee7230a26b54405fb2be9b6a214b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.4bb5eea2b.0.tgz","fileCount":45,"integrity":"sha512-qHBFs/yFqkdLak67PfXZ87RfibE69fXombksXrkgD3etPC1sx4ujc9IFfwhnon8KDmWjuLjGxQm6NbimwCrw3Q==","signatures":[{"sig":"MEUCIQCeERXB6lkwk8hitPoB0tlzVcQAw4e1k4+LR6XEqRuFcgIgFfR+k047FXm1hV2RqDcd9YP+xMPiC7jg7gkQIDMqg88=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1116819,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpS7ZCRA9TVsSAnZWagAAhiEQAJcx9agZw6V4B7wm3eDt\nCbMGEGcXfiHOPz8R0qCx0uGN1yvDP+sMsKXZUKrudx5p5KRbXao0iGc7f0SI\nQOXtHCUHvt1bcbJXMVeUJ0Q+h+0yn6lToFgJ0fq+dzXDDjZnY/sUrh/E4khO\nClORkU9VTmOVriV+FdK/e3wluEARRGuGN20nuFstjWaRAxBKmC6AhaNwcqmx\nJKqWym79uvEOsCpZhPjR/1IdRTyhPkDioA2hmh9A2kxKB5mh9jx4gJ9no5As\nun+Fsf7QPY/ZwCf1Ul7Kk8AVVbIXhtVNWJbtCl7TjopRuc3oBO490FjHCzzZ\nsfStko9p4nIXw5xrkZD8UIf73DRnue0o9/jG96UzP+MVvp7poyggu2KaeLrK\nI7255/s3JhxWojuWqtwpm8cxCv91hwIIOtgVhf4qMgQAcmfk0BjOAB9fEDKG\nsAIqd71NvSC9oJIa5GEJYjz/JSSDdIBqUNDs0Jun9W0PWas8Cpk/RgvXfWBh\nwx82DJjykfVhczKZhrhk2DVHIflxl4Y8N/nCRYhArjWXJ/YSl8SCpaqd3tGU\nkEUTNBRtdu4+SP0D1O7MxCOpvFD6JXa5CV/PbGnQisWgjBnD0j8PWps2usoI\n9JqhZYseRNi/03KLhL8g5iYW0g5zl5VtUUfIbygfONMJQXx4ZcT58GDhmZyO\nV5//\r\n=XpUP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9abe3ad555ba3e9ca70f37ff3419acc2edb56676","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.4bb5eea2b.0","@material/base":"12.0.0-canary.4bb5eea2b.0","@material/shape":"12.0.0-canary.4bb5eea2b.0","@material/theme":"12.0.0-canary.4bb5eea2b.0","@material/ripple":"12.0.0-canary.4bb5eea2b.0","@material/animation":"12.0.0-canary.4bb5eea2b.0","@material/elevation":"12.0.0-canary.4bb5eea2b.0","@material/typography":"12.0.0-canary.4bb5eea2b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.4bb5eea2b.0_1621438168830_0.6878335435875573","host":"s3://npm-registry-packages"}},"12.0.0-canary.ccce99cd6.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.ccce99cd6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.ccce99cd6.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8bbe754d790c7c9dc4fecccd8bf3f6d99ba5cc36","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.ccce99cd6.0.tgz","fileCount":45,"integrity":"sha512-SMpVywjiY/cDfuJhlMsd5XNCTsNpMgXkdMGtxC6iQEK/Hz0VdznClizx7AVrwtqJh44LJYoinzflUCI6AAYaew==","signatures":[{"sig":"MEUCIQD/vpnnoKgA2dSQcq88VakQq4dmiJK7M7lOG96kcPllfgIgcMT0lxW5HYvmWfb6Z2qSC/hSR6itjExEPWg8TTVE5Ok=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1116819,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpbQTCRA9TVsSAnZWagAAP58P+gJXDOePWWjRA2LOzDLE\nU4arPul5RwsJSD3mIPVSfzIlhc2WgxbMYgGDVK6pSHLzI6EUPOmXTt4/ETXd\n1RiYIGnQ34rgh5LE+iYHqAJV0kueuADs/CA++3QVX25/WP378MSDEWWh/JRi\nQgfohTna9e5/FuBalCpjQp3/c9d5A6kZE54u9WKkrMPM+CDmutoQecVYk7Ob\nRlpo1qWUouHgPq0JWK1xmanewz1vOSH34Dick+Rk0XfykCr5ECEmeHdl7dyN\nkBLDYYKJEGpulAFd7uDv1B/S5ISQzdqOG9rwtUJwbQmktNUjHpT23XYWBb1o\nKauKiFjn7Y9cAUc70S63yilV5g5D1IHxO1UL/hf4rNXnDSgVlCeIy06wSjl7\nNfkTSK/Sir4FenzfmMHvnWjmiyblbGKGUhu+DjUMyZzeRW4pV+w+omr7VTyp\n7cbLhK37+CHiexJFoE2gred0dHhiRs5+VV0n7UpsZiId+tTE0Bo/FnbzDuyF\nD1bO6K/l4I0ZEfbZ67BJO4nDo2cjYjAGRdGrZyX6RoWlsbT201dwVaU3jXHe\nlqNVpqT+rEgAPPNzVpoeIHQTV0M0czd7CkL3LqP61M7vcrKBSKW3b6VRokmW\nWkV2dvntSCYR+cmLDsi1xqWKz41pn3/h5y2leN899bLdPzRzUurmGGnXOk1N\nzNrR\r\n=wbFX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5d475a1522350d9dadb5fe3597683fa7f4851b83","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.ccce99cd6.0","@material/base":"12.0.0-canary.ccce99cd6.0","@material/shape":"12.0.0-canary.ccce99cd6.0","@material/theme":"12.0.0-canary.ccce99cd6.0","@material/ripple":"12.0.0-canary.ccce99cd6.0","@material/animation":"12.0.0-canary.ccce99cd6.0","@material/elevation":"12.0.0-canary.ccce99cd6.0","@material/typography":"12.0.0-canary.ccce99cd6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.ccce99cd6.0_1621472274522_0.8814342655896903","host":"s3://npm-registry-packages"}},"12.0.0-canary.14767a8db.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.14767a8db.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.14767a8db.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8979702650d149dd09eb35a2d094384042f75d2a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.14767a8db.0.tgz","fileCount":45,"integrity":"sha512-PJCySS5CiwW1N/c2mlDLnCI5LIFmDn6JeW1qDvVd7pmvvEkQ63vjvsddFujTjiymQFefujp3izPxxFbDfRqong==","signatures":[{"sig":"MEYCIQCGVquEPNn33MUd1yj4npw1DwakUl0kkB+XbUvwC/y4QwIhANXOgYcfVuMffmNm/9P4z2yFZxd0d+wPGpnPaGZeuQdI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106806,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpsv2CRA9TVsSAnZWagAAG3QP/iZu2RgIwaG94GUzcatY\nBhGmZMjA59+PzWF1fhkF1gv2bz59COlavf9nWT9OSrAHPEAsurQMruocLpAD\nqW6MQZQ53OqFTFJjYMQobxjgHQRYcIHdStJQ8urK2hszlQHN/zaYXhtihfwy\nk9XZWAvhCcxm0cSQJzOY0O7DKWF060Koo4QIaBZLsOlawS8TqS8xbG1dX92u\nUFRZNIsIaIyfF36WaUqQZn99APO44GkS1V/O2JSDtBKb1wjPO6MTS/tlTZIP\nEGy8gsvV+Iw+sMwVbX2ibEi4T1Hr4P9Ma4wT6pw9q6Tv11+0lJJoHJhq2PVu\nsGMGJFfluVuAtf0tTmorcipQIbV8RMNi9TJLqkp92643vD7LKAbnax7fowYf\n92dMQpofnLPyYAZKkoQJcJW1s1wvKM/irerROghBa+9Bfdy8kjOlQHF++c5N\nspllVK5LyTQjclryaG6li8LdBtJXQcsv3qWHMdQNKdvLLzeivjaJXAxYdR9K\n4Uh2efdaRsBuE7y/x1IECo4L8KmjK52+DuhBLN6l7vUP8EyVnFdcPU2JI7Sd\ndFHJv6wE/zD3iwIhwMIyX7wf9f1vwhJdxWfmg6DX+euCSemFzt0FVyQmB5xY\n8HVc9qhqNJ/FPC74iWW+RUpjUR50sh51WQutXFXpVzOkYFMAFaFss+ewmldY\nZa/v\r\n=aTdI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a324b91ce28769039998a00879c6f441cb1159b6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.14767a8db.0","@material/base":"12.0.0-canary.14767a8db.0","@material/shape":"12.0.0-canary.14767a8db.0","@material/theme":"12.0.0-canary.14767a8db.0","@material/ripple":"12.0.0-canary.14767a8db.0","@material/animation":"12.0.0-canary.14767a8db.0","@material/elevation":"12.0.0-canary.14767a8db.0","@material/typography":"12.0.0-canary.14767a8db.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.14767a8db.0_1621543925713_0.7641560382367976","host":"s3://npm-registry-packages"}},"12.0.0-canary.22c6dcff9.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.22c6dcff9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.22c6dcff9.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"52bbaceb7c3e263af1653891c94c5bc3275415cc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.22c6dcff9.0.tgz","fileCount":45,"integrity":"sha512-2SOxsRN7FVV7+u/MjMoEI00zIvMXHQPDD+zUP/BNaDAEV+D6gkrv9ROXqkdA9zwiT4Ip5mXs/nbRwoijkIwxPA==","signatures":[{"sig":"MEYCIQDsK6LuASCu7UMSqsMvD7rURJJqVmytO36XArgg5wJxkAIhAKsOqXLvq/lYXz2KQQAQMalHLv5GjEipSW9K/d9vqzKz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1106806,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgq8QSCRA9TVsSAnZWagAABiQP/j+CmrNs6+bM12SbVaEQ\nxYCoMUKcP7YzO0ZfRq2/n4emqydyvBCWwfr44ISFzGd7JzhUwnFmMo6CcLtW\nFDUXEm0smgSzGLgQIrzPgcnSu7zx1W1bD4frpNdN6eufnyF9u3LhQ5dMLh8i\nFihlril+n2+dWxehFxbS1IEotJedQs+d05+E0zMlaSuBCApd0Ww7/2H2VDxW\nMVbNnLjAGi9pp/HTQK2tilXpXc+TkBvSk1wmLzR8iJNmHkQkdlcyf6MDyPWA\nDP7xrRp8adq92sBp7LJVU2/JWYwUPKMmH8pZjehO9V+ZPgKIWaqgCaSEl1Bd\nJa7t1gC/cSW/pQhlcL8DYbDRKtnxzbcLA8QZTNvDS23FymKku8di5Gmn8gUM\naagmUAvs+qRIEDNy0De5sC7sZTevWYnHyfubnVMhKCq+i6XahQQvMRArp0SB\nZwLDexo2r++cUzdMZh7863tYhwWZuWvixximGDcnu8kR+m1KBpWGhwFmxjCb\nukVHC79FOUQ0jGuyMWITArdpDKJnn8jwRaVnpxcig1AWO0TjVP3DmYIpagBc\nKpazOLwGfNS+RSNrvFsR4NIY8IdLRTuCHHcQ5zEjzelZiQBW2QC6Sl2PPits\n7J8ulgTUYhKpFqqAGTtb6RCfrUnXrponHQxYVZvVcTWLz2wb0tS38nC2daEZ\nze9h\r\n=4JGr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"74541e300384d800b9cdf492ff70ba20ffc583dc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.22c6dcff9.0","@material/base":"12.0.0-canary.22c6dcff9.0","@material/shape":"12.0.0-canary.22c6dcff9.0","@material/theme":"12.0.0-canary.22c6dcff9.0","@material/ripple":"12.0.0-canary.22c6dcff9.0","@material/animation":"12.0.0-canary.22c6dcff9.0","@material/elevation":"12.0.0-canary.22c6dcff9.0","@material/typography":"12.0.0-canary.22c6dcff9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.22c6dcff9.0_1621869586266_0.01236676214477006","host":"s3://npm-registry-packages"}},"12.0.0-canary.fadab3372.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.fadab3372.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.fadab3372.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"dc0e2955c089552df2d1babd598aa985888a4f9f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.fadab3372.0.tgz","fileCount":45,"integrity":"sha512-7vuEMZUfukPUM4WWI+WVdlantXgxCnVWuPRAEVujrKBn47gA8Vyrzw0xHfeKFO4tkH9BjWJQqkXSFC7q6xA0nQ==","signatures":[{"sig":"MEYCIQDUtKscLcpRLRAlTM8pBpAu6L/xk0ftHqXXFND4tKBZWwIhAMimYjW24c9OY4vrDjSc6agZ+lkjrL931GDlGSLrZNlM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107148,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgq88hCRA9TVsSAnZWagAACaMP/1BrwTvvP0SagjzLAHZt\nGDz8JJ6l+cUaJ3/yoWrDuQWQCF8BNxT4HUXWvpy9DGYis6NO/QdzrihxqFA5\nhI1t5I/AXI2q0uPvA8ZnMKnLAxqjnC2p5oos1Wj5ilxDbuiNOuegz7keXDHh\nMQMyt552k/nWP4bdzZPK8fC3IOIpQYvOxXPyOVnAsGnSwwFovfu3bdgCOQmV\nf45RvIgxtMrB875MrCwiV2rVWusRhsjpQmLk0nlgjxXbRreHehTW32cAv4u6\nk6rJ1uWbskgVDrLoLwAa2l3ZeCv4uXy8FeBv73tyPNlLksL/eihdEU7YLP59\n3ArRJ/lyjg0OyI3KelnkUSLcvQPi6BA7GaoO1iTEDLjS9LUcIwPGcKjpotT5\n/UHAymPiPGSuCEfig2nVSbNsTpbaaelHh4re7bqut5r3PZqd7Y7mFSUabWRf\nZWrs3aC5zW3E5UZfG3xO1jQ1Q6vjYEhrKe5r4TbJLH0bEtoPmAvIyavC7UXu\n8/Lpuw8pVgoGxI64gH/Gnav/ZorjPw4irtrmax+FLMAhjOOtDBDCYQlASo+X\nhOk2UGpQM8HPcNsI/nRdgprA0Y6kwlLdikoU+Npxo3OavhVB/x49dIyCM9U0\ntGmK6OyAMOp64QzKsvQqc/4jWzDN2plKJ/h0Rfqkb8NKlpiFvs7ssQLZWTyW\nQZwe\r\n=uMNI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d76e611194693a7270b5e10fd87906ada48c7af7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.fadab3372.0","@material/base":"12.0.0-canary.fadab3372.0","@material/shape":"12.0.0-canary.fadab3372.0","@material/theme":"12.0.0-canary.fadab3372.0","@material/ripple":"12.0.0-canary.fadab3372.0","@material/animation":"12.0.0-canary.fadab3372.0","@material/elevation":"12.0.0-canary.fadab3372.0","@material/typography":"12.0.0-canary.fadab3372.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.fadab3372.0_1621872417431_0.8765064068421429","host":"s3://npm-registry-packages"}},"12.0.0-canary.caa73aeee.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.caa73aeee.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.caa73aeee.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"20216a6dedd2b719bf69f9eab5ee023aba482e2b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.caa73aeee.0.tgz","fileCount":45,"integrity":"sha512-Wj+RlMtcxtiApQi+gLi+xgiySZMTewLonLQKuSRjlme2uSCm659oujXqUn97VFwzFKuS0dnJ+vcNCZtyxvwndQ==","signatures":[{"sig":"MEUCIQC8p/zy4Xv6BguBLqJCUWLANtbp3snJVGE+tCVPVhpATwIgQq7mPS8pEmOx31yiuhldnKI/CFNZurF3jEZLNFODv7k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107718,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrQaDCRA9TVsSAnZWagAA2bkP/RF4NStxIY9Qy65QTBjI\nZyIkWFoxLPMef56sXiCuC6m58y+f+ejuCrWdongL0LeBOp9CFhwm3GtO+TUv\nopUq8yKguBVaYCn5BTjdc2sr8sbRGmNDifXMXZlA65c1okeKbNnmujHJXSfb\nIsCjlS32T0SakYFis+m+b3ndgCPSnaJtgHFkWYX6ZM1CnhH7IDtHfTXYbQPw\nq3HVkdLITuabyOYZL56jPZuHVgsYoSOX7W7dpPBq4aDngT/lX9iX7vriCa+P\nu77vj20eAsxtoKD5Dza5trpeG9kzzQ80oOZGiwt33Kxg8cKLyz3TlvgbwxZH\nfYcijJckPHRK7PoCbR+yQM81T1uKY6apqCX7SxqM2gM+VaDgHPsQAHDbxhjf\nBNCoXe6Xky9MvpGjUcolyH2ka8Kzzyig+iPxUCLu9sjdxizjYXm8copPWrii\nPA0SrB3EBD8Y+3xT8gZMwY7EkVQfrZOLc+fupbm5P6KVfi9FmJ8bjDNtrBTr\nM6m3Wftv7FyvCHgV0OX8FEmFFgC8WNi2tNEv/TH3BLqOGrLCNdbbX36XCd2/\npoumgmtT1qko/QDCaC6zGnbtjwhyZQ8E8X3pZHGwLVdFtQflF+tqjlCq8GuK\n4Vm6c1ESENI+LlvCm7DMFwQpZKr4xOqZhmV8cI+JHsPgTeBEQTH8Sm+N0w3G\nq2Ex\r\n=6bLz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dca5692fda23e55426458f6b0c56c2b6dc9e2dd8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.caa73aeee.0","@material/base":"12.0.0-canary.caa73aeee.0","@material/shape":"12.0.0-canary.caa73aeee.0","@material/theme":"12.0.0-canary.caa73aeee.0","@material/ripple":"12.0.0-canary.caa73aeee.0","@material/animation":"12.0.0-canary.caa73aeee.0","@material/elevation":"12.0.0-canary.caa73aeee.0","@material/typography":"12.0.0-canary.caa73aeee.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.caa73aeee.0_1621952131465_0.8088952190994734","host":"s3://npm-registry-packages"}},"12.0.0-canary.ec31ae1ed.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.ec31ae1ed.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.ec31ae1ed.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b153a4e374c6792df056890165ce334ddf06f6ac","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.ec31ae1ed.0.tgz","fileCount":45,"integrity":"sha512-ErUH9cnx4wckUuyqk7KIkXzgTFgBsKcAyH4uTahXByL92bb100uPzZ9tXOlG+Ndv72fGU/duH3mDMC/F3twmaA==","signatures":[{"sig":"MEUCIQDWwL7/9JuZVkGARlmpEp58Xt6hqeuVZ+IMGmxb05ek7wIgQfxIs6oAbLIJYzO0Kt9uBndGMipf8vYuPmtsVqXumhU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1107718,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrV/SCRA9TVsSAnZWagAAruoP/0LjgzkdC2bUfqMVZtEG\nJwrZ0yTxYQutT0uqhFIDrMJemohwFVV256iH0qWrEjIIw+RRavDiltdyHdgD\nDoZQCNU0TvFrdWkYUGixn5cmZgstqnfaLLgyQBSASP3YEb4rWI3a0vx6nZ0i\nDXusjEbG84oqI6i086LCYoGrOuZBUaRBtEhIlu0oMf8dPSw5g3EQNo543iI7\nKNtVaQz7525lMSfYLvbWvMO8j9X1V1W+5CbgpUaL1AHgnowf3aN9ZakLIXZI\nuuqiMm+O62O0lDFsm8GoyU90yrzQH9n48xEBrzZDyNWeYTTLPpSf+ctNCFSk\nChzOzS2KDRH5V3ZSbbZr0OH+h86KLjlWWtkhx1MpgtD9WcbsEEroUOvnLJyu\n8uTYgNrM9SG/ugQVx5p6b4OFs24rq+cdPSIG3bMYKb0dKVi3pmnxQfqxORAw\nagZAe74jQ/RGK7EZlpyy1H06L1HsnUCBXrU1kMlVQjENp6ivsmQlmo8YiGu1\nUAtDcvm91P/VwJ2P8ZkbPqeiyax+U3VsOxyXCZTKuwywcfU8QQXK34ECI9xN\nlv6M7JBt3/WIFiHjZ45QjjvZT5iW24I5l1bP837Mfy4jbGZadpsJaMgek8pA\ne3pATRxEryQS+mFhJm88c7Qn+XSe2k2FkCjDnqqZWQhCNlLbZEU+Ei6XEqm/\nHYfH\r\n=e8U7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f9db084a3aed73c844554c3b223d5185727b6d07","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.ec31ae1ed.0","@material/base":"12.0.0-canary.ec31ae1ed.0","@material/shape":"12.0.0-canary.ec31ae1ed.0","@material/theme":"12.0.0-canary.ec31ae1ed.0","@material/ripple":"12.0.0-canary.ec31ae1ed.0","@material/animation":"12.0.0-canary.ec31ae1ed.0","@material/elevation":"12.0.0-canary.ec31ae1ed.0","@material/typography":"12.0.0-canary.ec31ae1ed.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.ec31ae1ed.0_1621974993903_0.2948677198066343","host":"s3://npm-registry-packages"}},"12.0.0-canary.8530d3514.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.8530d3514.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.8530d3514.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"923faf7d7c6c25979e40bee22ddf33a7bc2bbc25","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.8530d3514.0.tgz","fileCount":45,"integrity":"sha512-ypb7UcaRn6n339axlrwfKqtm0AP7HpyzWyzfPETXa2lsaK5hS84vS6qB00nH8D8s207hoRQ4vZ2LuvtCYiFN7A==","signatures":[{"sig":"MEQCIDOcZhT3QhlhvRDU9SFgcuNEaLPTanjoI/XNp3AFpMTeAiAfJvQz4EthIxEtHzRIiH7gfZqC+/Bcih6VqPFrMUAScQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119005,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgr8NmCRA9TVsSAnZWagAATkgP+gI5xGbipgkyvsh2e7r/\naBuGv3e/LvMaE68cVh7wTS3Y7TJfaxl5Sexc4WxBVAv5iGOjituyc9KRUA9j\n/alUrfwMPRZhAOKlR6cTH74f6K58HbPqbPyBHRwobYriDpqmB15EZAkDJhV7\n8L0tosT7nL2pVYluhdn7MwAhBTX5qhF/+YMGl3fSC9DNnWKYM8qf+EEmJfdd\nSPrOHDHVWUHeI1hnYyea25rqBYFdmmkQflJqx2GsiUxByi0UW27tB7DQ8rPK\nf0hO9T3xweLsr/xL+XtQBHLO0lM4sP1hYZyr48QAXK6G35lHtNGyt1eLadwK\nh/nSdqx6sSyC//IQliJCHBDxD+OuPZTnkxuO09N9MbM6UQ9tiAwKEBgwomM1\nflPUXyPaHXgEGFe0y13CLgFTfq/ErwkYj/+rrWwIYDMuuQmPKrLFxvfxaC9P\nmyjz3ieoDF3V+Xm021Gz74bSWgaksIoAmSMvWQrAyJzhjOROLdV9rak2TGfV\nqzv422tZBJ3lOKWrC3nQVip2FLv/VWuV+7HwkQ245pkjMUITxImYvid0DHXd\nY3KM45lbeQ/50TxlBjkQFqy7y53XUEkgy5hCtewuDqzRNODHy5p7prY6NJNn\nh7ixv0zjwSu+D3o0M492yyZ9WWko2trXedMcmmTcC9G7sXYca5MWM70Ftqwt\nhBLJ\r\n=6grG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e32508a69db8bd9ce4383a14f2c576d35950566c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.8530d3514.0","@material/base":"12.0.0-canary.8530d3514.0","@material/shape":"12.0.0-canary.8530d3514.0","@material/theme":"12.0.0-canary.8530d3514.0","@material/ripple":"12.0.0-canary.8530d3514.0","@material/animation":"12.0.0-canary.8530d3514.0","@material/elevation":"12.0.0-canary.8530d3514.0","@material/typography":"12.0.0-canary.8530d3514.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.8530d3514.0_1622131557802_0.6903089150981332","host":"s3://npm-registry-packages"}},"12.0.0-canary.00b5899dc.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.00b5899dc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.00b5899dc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"359df109b720f92803aa74c67c6a5ff67c53a1f1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.00b5899dc.0.tgz","fileCount":45,"integrity":"sha512-n6n1I9FSGccDBS0e+LaV4irsvDKK5sBO02KshzXA4DXQcXLjIQ9BYxafw04KHLW+nEgfaOO8XaEewWUhohDSyA==","signatures":[{"sig":"MEUCIBEdKD110ujm2AmClYUNuXjoyo1ycmCIQ635lTF8BG+KAiEA2X8KQPp6JfBfURe2CSOz4fsVsl0OE0mZyaEx0SCaEZE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119005,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgtrjSCRA9TVsSAnZWagAA6cgQAJzPAvKGNIPgMx0FdCVp\ni7kYGl2A8H+yJ2cC51INXW3zRK7C92QD2FKYtlUnaN/EUhS2TFrJF+qonVmg\nNUq45dadexW6uTu+36oP9pZE7xdr2D6mOEug46tM0ihu7zoHL7PbTV50axCD\niVrllJRWymamTy6pEEu0yk+tL7d6+U9kpGYU3CePGaLTeHo+ZO3KuCqEKPu0\nQROvpw+JwdFlq3Lx53Dwu7q/6QMxnKldjFS7gDGObfynxuixEBagPBlDF5pm\nMOieP/uTpA0kh30aBB4vZGzSooyC+D3tnoEfqeeQ5jIwB82kVRN84LxSvvLj\nY+zS6M093tUcd4V7w9hD6Epqw+hmSp5519Dbq5s8b066Y/84/Zg44vmEL5C9\nDB5B2yJrRbh5oWqKJWFqnRW+TSSJ7q2EhAWc8BrqkMIPtePoXg5lvTPxdxLj\nqmXjfA08+uYQ+0vsm0xJP1qW0PVZ1Vzf6CoHucmUNEnKeUmGIKV1IU1d7V/L\neB8jEJKbXG/kKGY0YYqa2ra3alCqGb4Kpx9CEcIwMEeLABdOIa3vWjGaN7f8\na42re7zgE7aOqxivXSsoi6oDPDrgzzY0xDFqKhKTfOYXSaXh5Kn5qNv9qfiV\nAbzIxpD2tesQJElJc86YvjDDjlyKkXnsydCeyLsuyfaNvxEutz3DoimEo9QZ\n9aWC\r\n=MKAR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"19ffd4cf15764c62ec7b1dfd76483a2919f6501d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.00b5899dc.0","@material/base":"12.0.0-canary.00b5899dc.0","@material/shape":"12.0.0-canary.00b5899dc.0","@material/theme":"12.0.0-canary.00b5899dc.0","@material/ripple":"12.0.0-canary.00b5899dc.0","@material/animation":"12.0.0-canary.00b5899dc.0","@material/elevation":"12.0.0-canary.00b5899dc.0","@material/typography":"12.0.0-canary.00b5899dc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.00b5899dc.0_1622587601942_0.1838506009981158","host":"s3://npm-registry-packages"}},"12.0.0-canary.f1525ea3e.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.f1525ea3e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.f1525ea3e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7fad0c8549cd5de13930ac25f378cd9edc7f66ef","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.f1525ea3e.0.tgz","fileCount":45,"integrity":"sha512-G2FTa52qtL5Zn1eKyMMlXeIdvvyT16Gs7nUfvrz1qF7UfHuOYhpCZRsLrSzwlGlpt8G4yqlzq9c0JZqo0lpjSw==","signatures":[{"sig":"MEYCIQChoyLxZRoBLT/+v0DH3poLuuXgOLwEcj0k2680tcUUegIhAPoN7pWMMjzrtNcVO7LYZkmkIaX9djDwTYyHyYiPVMZM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119005,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguN9UCRA9TVsSAnZWagAAstIP/RDZ2ap5uneQbidvgAQZ\nvhaAMAxE8rf06SLwqQLShHVypg0I99rlJ+mpLl7ERMCRB7glD0pGkJZHZ2lT\nG4KTNCuwhyjhnFyrsYpTpaYxnle7T+gw8Lxt6YygsOgobHKAC+H6vUlDXmO2\ndZDN6nB8YkSVThkx8FjAGVCi7ElQkwX/1B+Ll+ADpd70p1WzSk6lDgLNvRRu\nxjSQof610ZoOffCsIY0YE4rd6lYYcGaerGufWWtB2vExZ0GyzqypAOSmGUjy\nL5K0HPXXp3rTQMoqlTKWrO2t3lFYVveYCgMbMq8Iohbzu8x0VFFuM9c6oWJs\nDF3YaQNtDhKWDlRCZ7q9NO43VHnPadkpHNNHBk5bIvhP15ONmXBMtRUyiXA+\n0jYArnQP7VfsKzPpwIx2X9qe8TIz5kPhnLfJZQnjHnzqBRVWqknvgydXUh7a\naSaqArFnqMdPBXVbZAgVL5m7wHezftOx2Amz1pcN3qIvFnL6Tal0RVENCFBp\n5x0ViA7VWDU/ngPO70W2od8LOR6DQz50/OBV3Y6UMmTiktmTU9UM7HfGjzPS\nFkDFih7PVDWAjTEvSly20gtqAqZU52DxPQpMrhhfJcbWOnqMmg93TMmJsm8m\nyGUkzR24yT6uYIEP2dDVbA5C1i2WWDnA3ayYNOpICSjDaunCeY2CKqtlp7xx\n2Kxa\r\n=7clR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"97ff3c2e33330849b0ca447ac6983126a385d845","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.f1525ea3e.0","@material/base":"12.0.0-canary.f1525ea3e.0","@material/shape":"12.0.0-canary.f1525ea3e.0","@material/theme":"12.0.0-canary.f1525ea3e.0","@material/ripple":"12.0.0-canary.f1525ea3e.0","@material/animation":"12.0.0-canary.f1525ea3e.0","@material/elevation":"12.0.0-canary.f1525ea3e.0","@material/typography":"12.0.0-canary.f1525ea3e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.f1525ea3e.0_1622728532382_0.9146333095846166","host":"s3://npm-registry-packages"}},"12.0.0-canary.464a00286.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.464a00286.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.464a00286.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"19bf8c15617bc7a150f173893c9c6e2c7ec5915b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.464a00286.0.tgz","fileCount":45,"integrity":"sha512-MQL825SbMsqRWipLkU5PU95DyNQty/hxlDII9/xQlt9KGgS8uR/9h7qy1fa35rZQG3o/OEK1yW/iI5yddGIGOw==","signatures":[{"sig":"MEUCIQDr4rbjyquVNTA4WlCc5uJFkAFP4EmXN2ZILgcKqjbiDwIgGIpK2MBD6qVgQR02s/8nJd0RmL6JlN+7ezDaQtQ2q/A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119141,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguOt3CRA9TVsSAnZWagAArB8P/3RGj4oveIUYwFz47lkz\nfhy2l+LRX/vjZg9NM6UDgDu0J0z4mq7spK2cJ+MqkPH5uItwTxSkxQMiW7tC\npVK41vN24yAjsMFa+r43Mo7cDSmgR/q2NbkiHLQi+qYzcWEtZpJK34KH3WH+\nfrpfTXzBnfRHCe3OwYiihoVLjFY4FnPmB9g9sQRcKjMlWFDZwGkKtrsTUcZa\nFLWlKgancWnPlW3MCfDCxbdbWkg+HcCnBHev9Hql/6p/92BUZlNfcaW5RTM8\nTdCuPcWXFE/KY7yGJH/xuT6L/EbvY0sEkQSTejllrCC0qFcDC9RuD9Uwzf18\nI1Izais+PlcjXoU3si3gX4lBWnJ70xpSjZW5wAIcMz8A0Q6nzHaHYXL1p3G4\nP9x507N97X+iT+9heotYJfrRfCQJ6V9O6NUduaF0YCVbDnlWYXv3doxTfykr\n7QnF8WEDPuT78gsEVK9za+mgYsNDwzPXo0xVvpwr9o1lGkWMftJMX9x7lbap\nOzGYFuKM3kOS24sqRTLF6k9eeHyJgNnP5e4SpWwU0XxgRdGHjitFLQ7Pdh+H\n4Pn1E5GrPjtiJgcK0s0A7+5Y2ltbalsNlafL/Fo/9NOonsWCjQdVXqz52BMF\nclO35h84Jq2xreq7g0lXXQZReECftwbk7xxNvKOu4NALKaYM6SeKpzcTRAyj\n3MXD\r\n=wvN7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ceb43f7f74f7db77edbe7a13d3b92e853d599d6b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.464a00286.0","@material/base":"12.0.0-canary.464a00286.0","@material/shape":"12.0.0-canary.464a00286.0","@material/theme":"12.0.0-canary.464a00286.0","@material/ripple":"12.0.0-canary.464a00286.0","@material/animation":"12.0.0-canary.464a00286.0","@material/elevation":"12.0.0-canary.464a00286.0","@material/typography":"12.0.0-canary.464a00286.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.464a00286.0_1622731638843_0.06158705299563505","host":"s3://npm-registry-packages"}},"12.0.0-canary.474de7878.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.474de7878.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.474de7878.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"11ecaaf619acfd32f1ea170c2dd6a0b9cb6e9951","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.474de7878.0.tgz","fileCount":45,"integrity":"sha512-4XxSrZ6Mw6HPdL3dobtZLCha+iKwCbbGhsTVfqzFPwJb+5VCWJBz+QoSrIAO6hk5uWBVeusaUiV10qPQK81LhQ==","signatures":[{"sig":"MEQCIBjZE167sOaHQIcYahA6NB8s7W+WT2QQH6h/KptKPFTIAiBd6sqeeB2VoyL4bNVr60RaUXYnWifq4i3MFiffoDOmqg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119141,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguPIHCRA9TVsSAnZWagAAhUIP/3baDJmkuO5cYcZGKfq9\n3vzn9EahCkLwsW0VUDtAynZIxnOJxSHRoplChAwhJoGtSquN8NuVdcIPRMqQ\nMBn6oCniivWyI1ZdNCxLc3pp99QPbhr7J6mCXGcz/6eeKRhgZCdEDCBC/lN0\nHegQfwfYAHYJ1NK+YomGieOyS8WeTlAZSm7CrpAcjJW8RLvFk7fEvW9uoDRs\nIUNUARlm+lHw2zY7YsXwQO/F+XnwM4ngpXmekWTKgSdwyh8fQSqSidv+IV04\nqxgGSQI7toIO38JRyEeG5o5/GzWaO6/IIrycekVprGdDyjSHFPpwZl6aFBhv\n9CJ1mKWf9A62cRMIzVOORdvs5AebIKYZU3vi7HE+7ObDqpwzdooQ9Hslqww4\nQj6YgISMoJYDLi6Xp5ZVm/d9U8AwvHERNiqqvlze4Vyi1ZHdxi3fAT3NzJXV\nb/QH2km3ZRGkv+/81Y56BCLHUcypmAzEkXwuj3Y05ywDkP8eKVS88I3JFPPm\nXlFq3QZ0nYJMIgtW2fASbtR0ndfhAZrG7W+AYZtgJ/ImAKujWNT11Az+YKPB\nteClaZQs7TRjE4lgyOdMtkmfrBE/JaXgYO1mgaC5x9/kVACtPMD82mcfBJbC\nvsbaQXezwM6QSlDCNxkTzQ4cbc65ULqCMxK8xjoL9NtkVvJkeXa4JILvUFZc\nEQ82\r\n=pEOP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"67d604ec9cbaa0dc385eb36be35e0adfe641b244","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.474de7878.0","@material/base":"12.0.0-canary.474de7878.0","@material/shape":"12.0.0-canary.474de7878.0","@material/theme":"12.0.0-canary.474de7878.0","@material/ripple":"12.0.0-canary.474de7878.0","@material/animation":"12.0.0-canary.474de7878.0","@material/elevation":"12.0.0-canary.474de7878.0","@material/typography":"12.0.0-canary.474de7878.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.474de7878.0_1622733319043_0.8444842450649439","host":"s3://npm-registry-packages"}},"12.0.0-canary.b87ebf74d.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.b87ebf74d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.b87ebf74d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0cdbd2b112d328d63dd37cc525a5e1b48c8659eb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.b87ebf74d.0.tgz","fileCount":45,"integrity":"sha512-8DmsCmeOfNvaj5O2HsmD2sW7m7Vfcouwk1pAwUz6ZWTKiDBIdSyQXlgir4nYsWypkIS03kWNdwh+27Xh1afODg==","signatures":[{"sig":"MEYCIQDRwJ7Wz6Hwsh3p4OBQvaqfVNgHWohBZTSenTzFPJe1qgIhAI2aB/yLW2Djub5+lG/C7OYmZNTVmA/OZScL+3jfJ2Ts","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119141,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguRWrCRA9TVsSAnZWagAAtREQAIgkWqlH1l2YGNaUpaxS\nSPAbnE+6hGfbH8m1zOD37mQEC88mXqAiHizBA7HoNdnrkIx//ZwFzjK+qXBE\n4rNWnPRWzF0bj3ULjv6Hx6U4KBBDuGP/cSAeR/iskSJKZWyd7czeFuhHV/V/\nkmyAZFfDvA3RooIMZqom/Iw8vhmrCDP6x0fRdYKQAa681gz84CB1z4qp/0xz\n0nPLo9waGBdUKZErGauS6bZuxHQDXMj8ojoeeSnH5ZxbwpGX2z4g9txfPmb3\nZau2dGhpMUrXE9S9e6vdtgu249wnqysVIg3eskNZLTKcL7JDiDb3aGb/YGTo\ni28V3VFp7oh5zo+1tvl3gJjjxpMX1hxkqcNhOSe3h6lUqVLjSzOnwBsgxSS3\njvpSZzacHYuZswfcu6YTiESDBK0EbkjkyVBAh8BMOFezj+090xlXsn7sioYu\nYUvdIQxpFSI5Y9V55XUMM3WkRjpjiWSbSeKCJrxRRrqk5Zox1G8++RaQWt3U\nS7dl08CUCCxP/bgQz/lEWMR5ra67LsRVnV0XkyWvtib59zgx+OaBNYqwCWLS\nLHZx4ewOJctppAyFqdR6mlkyM1oREkodLAqR53aippdgBg6+qbCRj885hy5g\nNng68okzs36UiNgpwJzb6RCm8kQ8s76ZUTrkW6w3kaKlml9RTuNg1ztBi+n5\nqoIt\r\n=NOWn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d3567c6dfa0fd347d2141fb92460c63fac28b46a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.b87ebf74d.0","@material/base":"12.0.0-canary.b87ebf74d.0","@material/shape":"12.0.0-canary.b87ebf74d.0","@material/theme":"12.0.0-canary.b87ebf74d.0","@material/ripple":"12.0.0-canary.b87ebf74d.0","@material/animation":"12.0.0-canary.b87ebf74d.0","@material/elevation":"12.0.0-canary.b87ebf74d.0","@material/typography":"12.0.0-canary.b87ebf74d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.b87ebf74d.0_1622742442804_0.8357545536131445","host":"s3://npm-registry-packages"}},"12.0.0-canary.2daa49b35.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.2daa49b35.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.2daa49b35.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0096aebeac7406a46e709f7388369cd35f9ebcce","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.2daa49b35.0.tgz","fileCount":45,"integrity":"sha512-2mK3KwFUT9v78PkPObmnyKkpcIhY4qudKJS0LWBB9GAzLhuuZIdtUB25/cbdh2qzi77+AG1bU2wtqRToQKPkxw==","signatures":[{"sig":"MEYCIQCTEMBPL0vkoN2bop5zPzpHasW/peEnGsu9R1GyuL61aQIhAOOcDBpCSJMeK9TU+/roY03tlpw3DD5BtatOsClr8lM1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgulGVCRA9TVsSAnZWagAA3SgP/2wGvNad2vE9QYxATBM0\nljguHvlXHwEdabB7ctYZBp2gcps66sTJEJtjQa96KarSX1PILX+heU2fcZMj\nLwraqscsys63Y6uvpqfdL1f5AkWu/+qnUlgJFZUltezRvFGB9EbBGpz9xtsl\n0ua3M3QqeOqNHLgsNEogNwUuKe9Kx5Frqu7CJa/D5GyIbcH064BKfj1B1qGG\nOOXTmzLfyvQnOTUeDiBjFRFliF5cP5VrtoH7dY1UjFVtJN0QR7S0LHQS4vGm\nKfNesPfcoYPe2xBOYGyRWMaYi6QLaU1z4TF3ccQCBJ3oxAvGSFbnoYevTyIJ\nXd2NiDK1qwP5egVvjNGTwajYq3Od/m7dVXDqTe6toTHmJP4hR6eyGPN8LuI6\n5oJgXetmuifUejCtBjQb/jlIa+MFxcshSAUSMSP0KAeB7/slfCMPXGkt69E5\nBAXCMvEZdJ4IeDtbPFsBHxREYWQDMaIkjwU8Nl6bQ+d7O5MXDzmEP3oK2gYm\n9rca8JaYiREc+mwDnsdRtgF6pH+5RJvr66NQiLgaFrDzRQ/2yW9TTrivBXUP\nmAN3zgysNXw7n4BlZw38Hj5f9Pm5ELdZ4vQsi1i94a/031giGFEMv4xSBqHL\n+eKgAq9ibVmU/NZ7T+P24t9b60KIpwMkXyWQTbP7gmVQ99zpgd9sfyImwNij\n7Gtf\r\n=rB3P\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3e759afe4116e5fb3941df918249b1b1348fe684","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.2daa49b35.0","@material/base":"12.0.0-canary.2daa49b35.0","@material/shape":"12.0.0-canary.2daa49b35.0","@material/theme":"12.0.0-canary.2daa49b35.0","@material/ripple":"12.0.0-canary.2daa49b35.0","@material/animation":"12.0.0-canary.2daa49b35.0","@material/elevation":"12.0.0-canary.2daa49b35.0","@material/typography":"12.0.0-canary.2daa49b35.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.2daa49b35.0_1622823316862_0.9718956176527529","host":"s3://npm-registry-packages"}},"12.0.0-canary.08db3d737.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.08db3d737.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.08db3d737.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8ba47c110ca7191fa91ef20bd743e62ac8f9e232","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.08db3d737.0.tgz","fileCount":45,"integrity":"sha512-4sd9lde1vEa4ckpmtASZkNzmGhGgzT9r/g76We+RIiAuF/uTvta59UluG8sU+WBKu4BVjS+ClRpfH8Oojvp28w==","signatures":[{"sig":"MEUCIQDT5pVJ+FUORc5I7nEGrdHQDs1xwwvM9M3OxBe5IpFNAAIgMGaa29SrsUgt1k8lra9T/SX4ljaqRxS9AOcQxZ9bOjI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguoIwCRA9TVsSAnZWagAAF5MP/3e/iGGaTchB8Jppc6Cs\n4bW09iVHrn8/D8P9rXNNdyS7Or/eXf7lN7dvtnD7UR49ZX1K7cy6MvQrnxib\nLvb3PMA8JhAREIh/sVhJQbVMhtWAkyYeO3IjD6ckJA1dOHaHvHtimL4pVaVC\n37ITdLQol0RBWZewGZ+k/z78VF0Xl3AVUcUezIPphnk5u9IBhZAqxRkFOH1z\nW3VyFZ4erpf2Nq1wG9/ITExEbaghRaU+WB00YJTXZDM0hU48++ht7PzRZXYc\noehzJ3OSUO6xSJtIGUzKJEi2apnkgX5BVy70MPfltp4IjuLiPzUVu9iybOg0\nkKfhlI3y8eEjTUkDrSi8afeCZA735gfpAEw+8642uNAjLclv5MLs97i8W79d\niM4BIld1MZQBRPOQys5r3i/Dfe1zX7+5/XlAfGYvgg5HXeFauUvnZVHLIGus\nUsnOQBYrGO6/Hy879A5G3lbUMKgRk4Z4w7fdm5NBN2BDsRM+DneQTxarX76o\nWQw8YBtnZ/a2w+vx53DW4XZOJ0Tnqeqea+9ReDOEa3h30rrG3D8l86PHD20n\nOZIJU5+AeZCAIeyI/xdKNf0ApeN9tH/fEkNVA2yOPO0Dag3Q71jUw63xaV9n\nFkCrVi63xjLUSYVC2gGSdE/238y6rOP6Xrkq3VR2plcTrwfkNmmTfWNpFozO\nEEil\r\n=xe27\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0175b9a3635a8e6c8c6690948618b55f39ca1ffb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.08db3d737.0","@material/base":"12.0.0-canary.08db3d737.0","@material/shape":"12.0.0-canary.08db3d737.0","@material/theme":"12.0.0-canary.08db3d737.0","@material/ripple":"12.0.0-canary.08db3d737.0","@material/animation":"12.0.0-canary.08db3d737.0","@material/elevation":"12.0.0-canary.08db3d737.0","@material/typography":"12.0.0-canary.08db3d737.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.08db3d737.0_1622835760333_0.7777195631728158","host":"s3://npm-registry-packages"}},"12.0.0-canary.5823407a7.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.5823407a7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.5823407a7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"03edb4d2fc8a076a3c7b80dffda3a1539abb4d68","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.5823407a7.0.tgz","fileCount":45,"integrity":"sha512-ROcR01g7M+28FV3Gyyr55rTwcGd1cljUZ7zjI4/pOp5T1EqSUomdN4TLmnTXEZbZp5zfwcbJp31yKiu+SgVb6w==","signatures":[{"sig":"MEYCIQDMCtVgR8eaEEAEpdFaHtZ/ldk904G6jsl6PMLfEjTr7wIhAP4F2owEZaUoOr16BP9YilKUyO2HGFG9p0hgchxA8i2r","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvr6aCRA9TVsSAnZWagAAQ+wQAIVTkjBACFx9/hMx40dA\nnAqAYaiXsU7ZZAKkDTMQxOzfajnxGIA+63eM4ErMHQQm6u0QDSx/crkcSXxG\nvi1+h0QsdnbTMdCUPXkx6dmYlFHK9HKPm8RqG0g01Bk4a17c4y7iu+/fUy42\n5D1m903CpEBnVSR3ZRXuLl9I98jJKQbEcsmtcLaTGccqaNPp3EA8nq2Zbd8Y\nsdQdphIovKQ2rnapeo9peSzMSFbE/CzwfYkZb0wpHNKRPIRnBQLTuGfaUi+4\nQgkTMae3416yhdnyOO2TtjOr6J8VbZdO9dKYnPFXbVIgArgqCNxEGZhAckbD\noxzMUxlmkc0BD6KEswSnIN/ZLbVpVZ9WOmbPILZo7BF1+JPHe1UtAnYs7Ku8\nDudqyvUSLoB3iAvXN5MYBqnwhGDvMUFHeNhqGG0YDTtS/VdK4ahyCaA0AVfZ\nI8L7zhpYUIzjUSjMDb0LVEgCRWGOkDMPRas196xS+KD8eZuh0zrk1TEnSerd\nRD1oyprCL41XxrI8vkTzIP4pN6y5YwiLf1v0R6ouAGTz5fTpTGDWMq5uddQV\nU3c6lJVX3DHz0p0Go1K6Hrs5DuIx5g10kGVpVXETP/NRusC1VIStBd63z9RV\n5WFbevRI1rJbozM9iv4PFSke0i6OE+HqBMOpPmBY4dHx7LJa5AE/32QZRGQB\n1S9c\r\n=uviB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dd3ce4590e0d881d04e885d116e10e680b6c01f9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.5823407a7.0","@material/base":"12.0.0-canary.5823407a7.0","@material/shape":"12.0.0-canary.5823407a7.0","@material/theme":"12.0.0-canary.5823407a7.0","@material/ripple":"12.0.0-canary.5823407a7.0","@material/animation":"12.0.0-canary.5823407a7.0","@material/elevation":"12.0.0-canary.5823407a7.0","@material/typography":"12.0.0-canary.5823407a7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.5823407a7.0_1623113370701_0.47415011649833816","host":"s3://npm-registry-packages"}},"12.0.0-canary.23b0c5e22.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.23b0c5e22.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.23b0c5e22.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"24c5fd94bb539754ae0e18b9dbd91b1baee44e33","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.23b0c5e22.0.tgz","fileCount":45,"integrity":"sha512-BWaSYXDgvYCOVR++pGFio2D7Di1W8jrZVhpvvfe2uzp2iI5QrUbStRD85ol0lOzjRniQ2kFOkDD3CIL5+Heh4Q==","signatures":[{"sig":"MEUCICUZ9v/601ZGyc0n4m8mm2hv/C6gpUKpJ3/2fr52j7pgAiEAtpTZ1LgvQDet7+2AcjIE3rSDuD7hSgTwVqj1DoGKv5I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgv5l3CRA9TVsSAnZWagAAoRsP/jS+oYN8va+mL1NYGA5B\nUNQNq7k1c6M8AQ579FZTkyCZX+frVwqOXqHpMNmdoZgWZZBJl2pkoryx8VEC\nqvqw0kR3/rvyF1sH83oiaqP6xSWffCXOsgpLl76kFRt9KBqRYBk4QEU/QOpn\nTUpZ2+RMp5vEdfJ9rUb/i4A/weT0RGQq1z96YsxsCqm7SkqIbq5qGBbDrMbw\ndv+S2NhNQub8gZNo+2/o1j45uqCmX+wklBqe37MMx30QwicB3mzIo6lr5eoi\nCYvDBpsrKzFKTcVByKGzDIJNes+L7IdOqqh7PCgqLoAMeoGdTl8Fkw+I0DCl\nG/no4qE9y9aHkO6PxYx6Y60W9H02OzE9faCX69BVQ7PYki0axzxdVe4LU8yH\n9QzZmGFraQFaH88S+L5Ml0tbcM+vFLaltn5WeuI4bmb81G8ECiK52+Wc05Nv\n/fwOPCt8mqDFeoQNhn3f5kFQ0oWmivuqkhBHYdJAcfcfesGyjo3N7awn09MC\n/Wx+SgIa0x6KH2Dyi7MwDgZyCykhW1N6/m7qVKOCPR81/zDVD4Vh+SyCTMcI\nJGgx29moUOpjalh4JpCek3VknmKeKqGZyJkOqcqqkVNUNPKlM0f4T2puw798\nceW1Ogag6X5+8P8xbEVThkFvn20vxbXDiyYAER4zlsysXxIQXeUGexrVgAh5\n4fSv\r\n=B+68\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fc55a497a3b0d48a691942de987d781555ef9d82","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.23b0c5e22.0","@material/base":"12.0.0-canary.23b0c5e22.0","@material/shape":"12.0.0-canary.23b0c5e22.0","@material/theme":"12.0.0-canary.23b0c5e22.0","@material/ripple":"12.0.0-canary.23b0c5e22.0","@material/animation":"12.0.0-canary.23b0c5e22.0","@material/elevation":"12.0.0-canary.23b0c5e22.0","@material/typography":"12.0.0-canary.23b0c5e22.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.23b0c5e22.0_1623169399001_0.7987137979864063","host":"s3://npm-registry-packages"}},"12.0.0-canary.2952c6a76.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.2952c6a76.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.2952c6a76.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"143e8a759b75bf8acd328afd03e4488559c830f7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.2952c6a76.0.tgz","fileCount":45,"integrity":"sha512-HZ8TIYV3Nff8OWzqmQz5k9U4HnLQ8Ut1EpXtIQTO8LRjRj0hll5bELKL3hKFvXqLyF6LZWV/R+lw8pODjyiiRw==","signatures":[{"sig":"MEUCIGwWj7C2nbc18c1UVYFq5OHAzlc+JIst/iDeZYbW/f7UAiEA6+Vfm4t4pdNKIVK+qoJmmy/yXbZBZnLCR6/ZqueCJc4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgv6vkCRA9TVsSAnZWagAA5Z8P/0stnaMuqlJhnPXq/vKn\n3WvUqu6gK5nz4Z/AngL2gHSVv8E+wiZDh6wlDkPlKwBYHZyEwYgvMDgiXkb1\nhfGUGp5ALIcNqWdpcyeNCxXTlfOLoKZfmgETC8wZhYpHjlP3UwLk6AQntzgS\n2zsxnf5u3HEU5FdMR4S91LGeBqnheTnHpGRqIVvERmE0hpoK20JdR0dk7vtY\n1YmcvxgmiS2kVGHhKfID9qEys5EXk2NX/6DFOnQkFzAk1tL9bfZ9uSZ8hgmf\nrEWDXWxlLrRCSnu+DIqwMbHy2crQR/JNr5GHAGyss6CTGH/DQDQDVQ9SPZ0u\ni4rl0Go3Un1cXiOKnEo40ZjasRQ/+hcQoHFF0F2nbMkP5Z5PqHTAAK2d9bV4\nA+ABtWmQTHWmhe3Q2pfyuyzKtDUE9n//7BSid6FPYUx0mvXPgb0XnebkVA3t\n54XoSmCDz7OQZs90jKSWLA9nBDqM7KcvJ7yz//bIbJHjWCvadOUvjI/thwFw\nPmg4WtDNySo7OD7cd/VmPkpwyjM9uvGbA5RHlmZvPbT4OtcA6ucEY2UjUbL5\nI1lWTMvPYsWagDSISlsX9eKRVchk5T24KMseWqiWis7d+FK4TNU3dAlIQlZE\nfwvm0XqFquXTzCzoQ2Nz4mluNddi8xZSRZzbMrnf76sA+f1kv8WRkqe8UiEw\nUbMr\r\n=pqUV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c1b0afec5d55ef54d74fa1cea1899368fe5c7180","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.2952c6a76.0","@material/base":"12.0.0-canary.2952c6a76.0","@material/shape":"12.0.0-canary.2952c6a76.0","@material/theme":"12.0.0-canary.2952c6a76.0","@material/ripple":"12.0.0-canary.2952c6a76.0","@material/animation":"12.0.0-canary.2952c6a76.0","@material/elevation":"12.0.0-canary.2952c6a76.0","@material/typography":"12.0.0-canary.2952c6a76.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.2952c6a76.0_1623174116444_0.7630887370686881","host":"s3://npm-registry-packages"}},"12.0.0-canary.f12425f88.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.f12425f88.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.f12425f88.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2abe17aa7e47500833ef7acc703c5c2d8773ee08","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.f12425f88.0.tgz","fileCount":45,"integrity":"sha512-mrGxsO6GfSD0VUCr4ObFuKzFYhGqVIKQlpmejfGs92B+VmWMT59y23BYi5Hii9a8RXLYk71KDSO+BOjP4/9a4A==","signatures":[{"sig":"MEUCIH57i85pGMe0BOQU8PEb69Jg0QzxSIpamsEex2NtPzQpAiEAxWz0KR0vkMPBhsO/FBjzGxWuftIeaP7TMmkyG+w/RiQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwWXPCRA9TVsSAnZWagAAjCgP/1m0DFU6QG9LN2obnByZ\nvZP1B+q9hsxsTZge6JDlq3GDUZk0NLrPP+JscvULKhb/BpH3VF/qTL0L8ZWh\nWOiXQ2Ez1FI/gwJjtvsSBdoY1JvrmwFrVwDy3k+ir9hDJ1sXrFp0si9/5Sck\nFlb+Qmq8VmCzliAOVXmltux8MiXAh7HHLXnV4USsI1V58yCzOXHV0VSHE9GM\nAFIpzQHhwlct9D8tLUsnwxk9J4W7q6OXu+YtX5sE6ocfSnqIoII9jTs9iicu\nbtlun/kFTH1DoaAUtRmCeDdU3iuOoujlHQjulTookoMpiEUV+syi1SHeMOtl\nvw6HanTYH8yLBBXFRYouIOMFZQwMXEscbF4LwfAyZ9lRxg9r8ztcz9WjNv5O\nXYz1rqKNRxQXaBpC1fSH8FTgjCdMAhqiyzVQD7ZmcPjB229pqs5gDrjdr4EC\nM2BrA376jqHdDJO7CoUoJ2rfgSi67iA4nYELO1EBZleaVnAMySKd5exNo2Fx\nDyuXcxUMx/5CGzoakwiZOdIwWcRmDEcNsPbZd7IQF9mKvQWjtWkNY2ypai8Q\nAE1DXElIN3/T2dttT0j/jfSP4VGSz54mkWWsUXagg3y+9Z2VBJyJn9xK64EG\nhgRSxNNOwDXa+tAkoR1aPrlOWO9rA1tPaw7HDnmm9q9D3aJ3BLIZYUoTlllt\nBs0J\r\n=MFsf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c8fa3a7d372e06e42b474eed4ef3e4105dc43301","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.f12425f88.0","@material/base":"12.0.0-canary.f12425f88.0","@material/shape":"12.0.0-canary.f12425f88.0","@material/theme":"12.0.0-canary.f12425f88.0","@material/ripple":"12.0.0-canary.f12425f88.0","@material/animation":"12.0.0-canary.f12425f88.0","@material/elevation":"12.0.0-canary.f12425f88.0","@material/typography":"12.0.0-canary.f12425f88.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.f12425f88.0_1623287247295_0.2903275691515266","host":"s3://npm-registry-packages"}},"12.0.0-canary.e543628c3.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.e543628c3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.e543628c3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3c5d7ea75503eb688a91ffd41f289e4d8250b252","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.e543628c3.0.tgz","fileCount":45,"integrity":"sha512-HS+5PnKA9wSWgcwNiEDv/vAFRvZhXIqWP52rqsxzY9OZV+++ntUNVqzfiZsTZOCWn+2XgVflpCPSt19AxyrBlw==","signatures":[{"sig":"MEQCIBSgZ+7p5O+1R/jFht9oaBT82oVvG/MlZJZv/F7GrF/pAiBEzv1mwtC0gJUGyCkEpfSYsp4YFXnCQXqbxxznUvRnCQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwWYJCRA9TVsSAnZWagAAAEMP+wXDAvfNihiiS/eS1KHv\nwD5+A82YsbACqkPLI2uAwCy96nynXavFzuX+RT43d4wIEkhrgH9Drv3pMEPD\n8v88qjm8vI7oBn9UMGtN+bG4Eh+YH43/DXbxHaq06je/lVm8mVGc2tMuZzBX\nxhrucKy68k2Ga8Ec/VNghxjTWgfqPaRB8BaH/0+wW9fD3J7cLAD9ih93Hea7\nkv3PF3uiOL135prKcqwclKId80orILpOXgSDsQJndk253LHkCVHs5rlIuTuM\niEEFXU+i+LIzUmISTgLhW7rIZtdC5/0nGhad9oAr5kH09A29tuzkuhJlmLah\njo7j8O9UKilRJS0k5uVu5D9zAMgugX5CCsVNw2xFX/g9itW6O5mRGGvbsQ9D\n3UR83skhr3UvGflRPdriMWlSZRZ6588bJdBuYQno3cASMPX1hqf1EKUfKHt+\nxpdEI8eoQt6fJJVHJQ8FiudlMY2KK1XCC1O5+bu7KUNpBCWZ8U76JqrrWOjP\nloai3OfbH1SDmApoEynuCr9ldbVOfwX8qH8WnWRQaeUgwyBRe9abE3UxZETj\n239XCV8Ux4d+agqNAGHvUOBKG8mqRDdQKLJiA66Bc+J4+azjw9VqTKNFP1oc\nC4RTkjQgEgDEq/qesVbzpCc8rR/uY6NXwFvfyoeKKeGRrnUzZcbgYNkzeZra\nWKiW\r\n=bikn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6e28195a46e3b2108c76ee1a6a9ea9416276ce52","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.e543628c3.0","@material/base":"12.0.0-canary.e543628c3.0","@material/shape":"12.0.0-canary.e543628c3.0","@material/theme":"12.0.0-canary.e543628c3.0","@material/ripple":"12.0.0-canary.e543628c3.0","@material/animation":"12.0.0-canary.e543628c3.0","@material/elevation":"12.0.0-canary.e543628c3.0","@material/typography":"12.0.0-canary.e543628c3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.e543628c3.0_1623287305500_0.1919689944042915","host":"s3://npm-registry-packages"}},"12.0.0-canary.e0c346286.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.e0c346286.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.e0c346286.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"325a82d0cf9d061daea03a7383abcdf26e19f7d2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.e0c346286.0.tgz","fileCount":45,"integrity":"sha512-lMQpnny8XdD64Oi+0VB+k6PwgZ2BYWLxsYpEnPAiZOogHYVeA9kDApkun+BbKAAyDFiHYjikJHUTwoTKFnY32A==","signatures":[{"sig":"MEUCIB85NTXc5Xn1ieNZzOVxKE+Kv8XH8fYvwNAXQGKUAGQAAiEAgdjVSmCxvA8lha0LRCfBH0qmdY+kkYJ4GhRVijLGKtg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwj+kCRA9TVsSAnZWagAASCoP/3V+7bx1zTYY57tg1EqI\nWbna5wrdQZBrSBvmyeH4M0kUM61paq3xpXMSxyCEeR8ZlecT0U3sPbYtVtEP\nnr2w95UDLfPgUE4SD5YWwWbbSZOtEmlgmXLouQ4a2V9xZQurCoDPyGfaXcpf\nVkoDAF6WQz7tdFCx/h8E9NQOYmMs/M7z3/s7Bh8Wfl0+xe+v8Vo9UMtfDJlv\n4w/IM2YjBgAbGTU9vk+Paw6A9ebpW0OZgMpk+6uAWPzM4aljR6yv+GP3ITrw\nkDYm1o9hR4cW7S7AJpxRRA0cZMzZBBrR+5XtWdmNBT1Clr6Gawhzi5FK5kIX\nUWFWKl2EbE0gWsR/Ke2RFh6Jwd/WC+kX2d0QcXEKTzP+vo6qTgqEoPhOYo8B\nRc5eyn2Wsxfiug1HTvB1EXbspebsP2+2KSsbxZq1OJ+VJr0CPHDFLH8B/Qzt\nQYSSxSndT03AiKSriIVTDrK4wMWUUp3s5MfG6Q7S/EclWSTgoDyTVRhiQqbF\n/6i16fs1BFdZUcbK9qVm8sx+HyE3P3kCW6gGYvN0WSv/fyx4i5b7HgGi2mEW\nFdjZQ4HGMrUzxcNyO/S87rwW3iY+hDcEj3YnURy2WZShdoM4ZE0jftMzxtUe\nKh5SSK+3tf5iuAptSggDvXyhBIh444OmDqvvOB1XBs+1OKwXGL0uvl9RDGWt\n7Dg6\r\n=5009\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"405607237a611d804caa0b022897b683aed90ccc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.e0c346286.0","@material/base":"12.0.0-canary.e0c346286.0","@material/shape":"12.0.0-canary.e0c346286.0","@material/theme":"12.0.0-canary.e0c346286.0","@material/ripple":"12.0.0-canary.e0c346286.0","@material/animation":"12.0.0-canary.e0c346286.0","@material/elevation":"12.0.0-canary.e0c346286.0","@material/typography":"12.0.0-canary.e0c346286.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.e0c346286.0_1623343011878_0.029959243256993506","host":"s3://npm-registry-packages"}},"12.0.0-canary.f43af5633.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.f43af5633.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.f43af5633.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c91a2a2aa9ebd1a45436ea391c6a8d8419bcefda","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.f43af5633.0.tgz","fileCount":45,"integrity":"sha512-h20dURXi3lt+eTHgSjUi8G1ysVU8Tny6iEK0n6JrQRGkgFi5FR3aZiA/3Nnf5pR6wwXx6om3GWvQIfAJXguKmQ==","signatures":[{"sig":"MEUCIQCoUqov8pCj+IUd/q351lQf9eNHOpgOFu5B3m2qEAMGvQIgOWeCkdrQcL5i358uGw1sAIqPfcB8I9maR9Za2nsz4BE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwnfgCRA9TVsSAnZWagAAUHcP/Rxzn68I0pMYeC6ahgrh\n8FA+5GVPUq5JpIVT8R29TngkzJkSPrpihA8FT5wPHKML6DGL13XGbS2qvAMX\nt5+tYx3jbrZfY0sdnDjOuqKVcDxanlPJab4N8hj0J+LOc2MI/MnWNna6usot\nBBMs8upoUmJmM8LueVyLi43NFVIW8gglPmTXZhkNbEweO+DE1+vvwiNFBOAV\nM/Z20nIfuuulkokbh2wjxpEhkSQuqH3jvt6cb4fWazx1oxyHfjTk4h2a+Gp0\nZDInt4tv1kZEuTAjoMLbqLAWuEk9TMkcuubRtGMUzLvYrJd91VeVVm6ZAmLC\nDEwKguSK7JMds7zfa0D2/KwbnyKVXd/nlOID0UB0H99gcovmDfx5q7059bPA\n2oBrOdRZAYi694OWuJrGMcEMmebrzz3EQTXo4W+vwR1PKn6esj0Ez2zHkzRq\n7m4INbzNJ7+fnKS5/7vg7h1rsoVQyraOh5TUrMefDYEh94aBPEyF6Ydf3ra4\n/vldfCRuLpmeWNhooZeqAnJpAdR5VSASQhZWSoxVuLIIrB2wppvzc6gOc8MA\nPn9NO2S+cZYKpsdADif+W4aheeoDXT5iOG/FtXb+pq6dT9nfDh6eYjHlQC/s\nZJVm9mQRgkTnBANcXZ85r9r/tbwyA/kbbZEdxND81GcjGf0zVQAIg5MnNbzL\nhj20\r\n=gG2C\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6889f0098642c4b4f3987ba353e17a9a22de856b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.f43af5633.0","@material/base":"12.0.0-canary.f43af5633.0","@material/shape":"12.0.0-canary.f43af5633.0","@material/theme":"12.0.0-canary.f43af5633.0","@material/ripple":"12.0.0-canary.f43af5633.0","@material/animation":"12.0.0-canary.f43af5633.0","@material/elevation":"12.0.0-canary.f43af5633.0","@material/typography":"12.0.0-canary.f43af5633.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.f43af5633.0_1623357408575_0.23266825276573222","host":"s3://npm-registry-packages"}},"12.0.0-canary.8415ae585.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.8415ae585.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.8415ae585.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d61893d01db521bea2d95137d6d47f9122f34361","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.8415ae585.0.tgz","fileCount":45,"integrity":"sha512-csyAhkR+kTSwn5ss+a9h2v7vq1xFLV2cgZbn1/kND7f8I6WNQEl6E3nNjm3pffYwY+FudMASH+dROa1ekIwZag==","signatures":[{"sig":"MEYCIQD9HOfvD3w5qO2Xrlx7EItnI5t5TRawoTzYTx6SEysBpQIhANUOkw7tQ+X/KX/Ss1+akMeeydFN5K1gbVYix1nj6d+B","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgw4oeCRA9TVsSAnZWagAAfOwQAJ4gD0gi+bvnYgPhfFti\nnfXkOiGXyvg4zUbB+vq5tbyQtitXZ/gqTTV21ET8XjHMOOhWgx8SytQ3Z1N9\n7OfvYpDPMDh/KBfca8b3U7y1uTmd2R3Vq0uSYNVwy4jNX49RzR73QMnbe0QF\nk1V0GfhTetF5AHEDzG59grpejNULTdKs/lHbU3NCeyKqCn+wb4qGQoSgTaYZ\n7AshDL0AD1nKwMJVVa9DQvnNj2dgPYNAIlQqxo0XtNa8g/WxiUBAzScLV/zU\nB59XTeReQM0dp0hGC0CJ0EwJ1bBkhYCZxX9ar+zNHiHl6AZn6BNwtSbSGw1m\nlwAu7a5CnP/3KlsBFh854EkpClvI2go+sod//8eW2yLr0E7O0oDoUfScRs2i\n3HarUownJbtLjzv4qhdlMydlIE3BK8GFmXnqLW3p4PNJCpEMm8TdQARUWkXn\nBcN/UazEKF8vt5aGGR1dbw+/AwmOhMcCS5kwPEeSnsYQpSJA+jCAH2kU6nrG\na9/wow1Uh4DdQRghWc5LzAdCJ+kbfl7yt3HTmvrT+QPAFAkJ40GPd6HGzumQ\nTSBNaoKBtvWJaz1Q4GVoSJSJsDUMVf3YFsUHpr8IeG7cT1tNgwuzsdJE5j6B\n/hAshTIVqy1EAKnSzSLdVywf33VVtZxZCRTZxWQMZQdTDIctlFqrtP3qBFZN\nbMfg\r\n=wymQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d00f19e41330e3956e7355a23ea132e5ff37403e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.8415ae585.0","@material/base":"12.0.0-canary.8415ae585.0","@material/shape":"12.0.0-canary.8415ae585.0","@material/theme":"12.0.0-canary.8415ae585.0","@material/ripple":"12.0.0-canary.8415ae585.0","@material/animation":"12.0.0-canary.8415ae585.0","@material/elevation":"12.0.0-canary.8415ae585.0","@material/typography":"12.0.0-canary.8415ae585.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.8415ae585.0_1623427614373_0.7813843668209792","host":"s3://npm-registry-packages"}},"12.0.0-canary.598fcccc8.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.598fcccc8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.598fcccc8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6118a16b7fb826c2cc1d7dc3a60b483cca5e767b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.598fcccc8.0.tgz","fileCount":45,"integrity":"sha512-k8xqMUElyQKEIJ8s3yhvplO45sv0NBxo0Fct2Wg4dNi+u93GsR3C3oWWjjNWxXqiP9MFDxwgy36AoXHnKOeXaw==","signatures":[{"sig":"MEUCIAtErOvPj+zZbk4AXUu87tuiOzqpHv6krNhRNVDgKIfLAiEAkYK0MmMhF/lHd8edIS7IOhIP/Z9LYeTX3H6vaO8kf10=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgw9noCRA9TVsSAnZWagAANFIQAIw9M4PKASSBwkLV58jk\nurLD9VDdGJCaPdf2qY/9Me8tCv+5snzCw7/p9SQ8Z06d0lVrK5eBfaFPY5Wf\nffWlDBtqxu+eiQqlV/TAo/7fO9dDKLSz9PuZyMVHwDWQoxy9N7xEAVuK+FS7\nUMwORIFVcydPQRqj1mlLTe11QIf1uoYDjkSHObz4ooAsDKVVDWM0Exz8HuK7\nbkUKy+kFNXN0Bpr2BEamg82bs697U91NvKsfFcvVak9XtTgGAqK4mXSZqRZp\nN6Mzj6whU5Mqj6wD96y0zQ3kvbURwiihGlDhPimsqErmetgKhVl7Myqel1Bv\nz4ZM/tPwIiAvOetGMw/+z+t6iT+TbxBr9oT+BXWa4nQh/NNB6XGqRQ51yOtA\nQhIKbF/VoyiZNX9GHDh4jd2mTUcHt5JbgmEGST3/j5EKanjQyqqIltY9snFi\nlbIdWA1pGm1qQLCpgYhp+WtBJXV8TXBljcPs1Sm/kaLNcayP9HIwwW8ijnln\nzuOBK7Zv5ybq4gz8i5ZB3iGzzHAa3fKxh3PKehtF8X1KPEb6r0MXQ2jhTXeS\n+w1DNTP8R+5cGQaumVuLsZSlgaC7klldQDtH8ULu7jRAl/GaGlgL9kHcudVH\nOf9NB+P/RggGOe97A1VJSxIPjaHnYft6uAN1zttHUJRfekpjxMWjIEqpSsX3\n85b5\r\n=Trl4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ccbc9ce9b0bfd89a7b5d57d3e0d6bc2ae297f66c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.598fcccc8.0","@material/base":"12.0.0-canary.598fcccc8.0","@material/shape":"12.0.0-canary.598fcccc8.0","@material/theme":"12.0.0-canary.598fcccc8.0","@material/ripple":"12.0.0-canary.598fcccc8.0","@material/animation":"12.0.0-canary.598fcccc8.0","@material/elevation":"12.0.0-canary.598fcccc8.0","@material/typography":"12.0.0-canary.598fcccc8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.598fcccc8.0_1623448040132_0.10100749423074751","host":"s3://npm-registry-packages"}},"12.0.0-canary.5d0605188.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.5d0605188.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.5d0605188.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9548534f8f7f71e0a648eabd602832349e2307ca","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.5d0605188.0.tgz","fileCount":45,"integrity":"sha512-SVZ8UHYzNF1Tf302Z3+kVrpgMrVRGZSOiBTTgdXcUMeAPsWpnmk009BFumBS8Hd2xd40slSUcD63XqcaD5CwVg==","signatures":[{"sig":"MEUCIQC6dKgazoCnJeQlB22uwqsSItjmrtCUtEZvdPGnZi8Z9gIgerZPggkQUMSYTGkzGXDRYSd4+bmSb948mu8EyhF8hbQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgx5SDCRA9TVsSAnZWagAAjckQAJUBVEDETYkHCsOo9JRm\nFovkUGrQ2LBjxFORlDfTiHBUbGuxSE1VpmEjugz06M/zKOnwWN4LSxjBtH7s\nusLi0XcMFqaXQ+HBFYKveC376kTN/P3EBf4ANB/IWkVdHaGNarIA1RIsi9in\noZvakuZSCip0uv8+B0mxygWhh8v1jAHvI2oCCwUS4f7PsnCDvL5CX3/5Qi5S\njOpjLbHnrdLQI1MqocKNhY+7tNVlfQHqXb17t2EjPatcPe4BgVckUEJh+fIk\noNuRKoOy+0LHYXaNJbIPdCg2d4Fs5QxhZCdGraaXmeNukkZYZkLncmQUVxuJ\nplfN0mIIxMEIoQTJz6p3YBBSkeq9M7hf7hghR44GZ88Hd9VF9Eqtga3oDwZ3\nz1nKsCCeVDG6E3G0RFuAgXlU3TkQgamLA8E3V6IR/fp3+QJuJnm1c93en44k\nTGtveta0Qlbmr+TQy9vtleS2jNouNB+sxCvCkjsIS6+JvsXwsQKF6iKZJgAL\nHD0mhx5b3pZZYSK99QHtVvOR4SdGCjMfeIXFiX9tfmhZ/ScCiLkSBRT3kytr\n6+kR55LI6HLFX7rC5hCCpaRbiEdOx89wcewcRO2pcZ4CLmSYGKtYukaiOtci\nuY6HiCLIVk7Q+Syo27w7X5VLfT6hNhQW4OVslsEzKU1OaCRpdEh/GeZnsFuy\nWK+d\r\n=bEfW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0ecd220c6043621c1d471242f32f317475b671f4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.5d0605188.0","@material/base":"12.0.0-canary.5d0605188.0","@material/shape":"12.0.0-canary.5d0605188.0","@material/theme":"12.0.0-canary.5d0605188.0","@material/ripple":"12.0.0-canary.5d0605188.0","@material/animation":"12.0.0-canary.5d0605188.0","@material/elevation":"12.0.0-canary.5d0605188.0","@material/typography":"12.0.0-canary.5d0605188.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.5d0605188.0_1623692419288_0.17478185784068034","host":"s3://npm-registry-packages"}},"12.0.0-canary.f147a2271.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.f147a2271.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.f147a2271.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"210a3eef6d0cde3257206eaa4d66e81dd8c97912","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.f147a2271.0.tgz","fileCount":45,"integrity":"sha512-R8x9SIubeSIlpAhRucWaBxjGHvyh3qHxLpAEQTOzfqnvgTgTlL7SxKt2kV9bXSPdUftq8C/yDbeiG17lc6ZZPg==","signatures":[{"sig":"MEUCIQCHoJg0D3KcnwBd3oT8Bd79r903IjiUf1rymiBr8v7L9QIgAjAHCe21OETbqA3WXqY5PhGPXDxTIHc7idR5fIg567Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgx6uwCRA9TVsSAnZWagAAN74P/iayXtnmvOSWo8LeD3+j\nN9K/WnLoJE7+PUgQmhU355Ldmff2C52mKuAC1wvYEc8PSyk2XK2F9KSWKAUq\nvIefuIlfn79Q5rCggKnJsF994Ln+eIV8XEvLPg8/aVtB28UdO1Wjxr3ZKgyl\nGKNQZpRqxQbwOBhgRyNbzMDt2mIl5LUZWjVhfpaT6Y/Vknl1ZUpnal95sJou\n65OLxp7L/8ni2Fwig260oWtOsfFhsGAD59cKcLeNEOynWvhjq90joGy76MSW\n4AW4ppczcHt/LHOtWgPFjm2njJ8OdUe+F3qrM2QeC0woWvaVrPHwXaLxUjw1\nVCm2vZO0d0CAsu8Ry1uAulT/htXKJ4gq1MO307BNz1hRvMOVwfEa0QTNDj25\nzOeaiiLBXblnhnoQPhfiVfXJ9osz1PW67eQrf72aV0uRWoGcXmwXUOvO/Rwz\na3HKWt7jobxnU2JfmBnIN2wz26YhlDM22j/ae6X9SXVxQ3xSYdDMLIJsiVDE\nRHTwOac4dTGNQ/1QhKeXPd2lx3hDPQc2UUv/BYRVfiw+3en686Xc6yeOaZVC\nZhH1vzx1bEdFithUyyUOGpmC3ma6dx6eYGFweYEY9Q9oDUGXCUMJZN5gIiGS\n7wB9q+PBDbE7t62081jDmKozJLSUkGIETMtfIiCli33Q97/AP91EEXm/1yQP\nFDg8\r\n=8ipC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"70b871f06c34302277b9eb3064110dd70afb181b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.f147a2271.0","@material/base":"12.0.0-canary.f147a2271.0","@material/shape":"12.0.0-canary.f147a2271.0","@material/theme":"12.0.0-canary.f147a2271.0","@material/ripple":"12.0.0-canary.f147a2271.0","@material/animation":"12.0.0-canary.f147a2271.0","@material/elevation":"12.0.0-canary.f147a2271.0","@material/typography":"12.0.0-canary.f147a2271.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.f147a2271.0_1623698352211_0.2837187182795766","host":"s3://npm-registry-packages"}},"12.0.0-canary.33579e00b.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.33579e00b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.33579e00b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7fec1104d365cd2ce1287fdebd858ccc5164f3ba","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.33579e00b.0.tgz","fileCount":45,"integrity":"sha512-VrNRDp/D9OSowFAMQelj+Eib7X3XLZ4sBUjEfpCEqDPoH036Bwf5KYW4NvQgHCxVBZ8N7dNZJ6QY7BB47SVISg==","signatures":[{"sig":"MEUCIQCaInB1fwY6EvzmkZfJpfX5iaHrU46LipyTbTj+cUJBcQIgdZKvQoRbqWgUWFCDxoAkf6a7Y36LhvmmYu1Mf3FZlSE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgx/LrCRA9TVsSAnZWagAAgG0P/1YZawQIQCYw3jHn9h3P\nbzr1iH8Ef7dQyYarduxe9hB/3QHQ1NpVF067wfwvT7yxOEoAivg1cqbLCDKX\nE34M1nCYkmSFD0AGR5mBBCuDewgBao4TNXu11x6vsvkRmbu7kAEqvgTeSkSp\ng7o4GYDJ1tNEDtAMAQRCZqDNNeCt2VGiY4XVxIA7ybpbiUFBUVOqeZoS60rl\nwuYr9uhw64Z7L07U7ATLUy/jNv4T+8WP2x9FTPjb9QrI6YMALb7VoYpH991i\nHJLveHw27wTdMpBjZ46FlFE61BzCQa5J4bJHAGNdE97u+OBSbnaHEBMcNNMb\n9GqW3bRbxnh3E5MKGK/3rOlnne/SDiJ8G2eQqU8hT4/yw7WGFBwJns1g1pTa\n/+L4xdsE/HK+Z24ZpOnAH+Zwho+eh3uVZSoJM4QEli+eT+f7xpp6AUQA97s4\n2Fihd/yhz9jJlg+5+KW8s/REFy2RLWzb9eL7FcE1J1302DydR0qvMrqET4zK\nypQDxmqtQ+AG1mz+lnJjcqxXcryRFLmPp+kzBZJZTgz8INHGx+ek9VTgEP9p\nidFQk3sugsch1AUdKePjz/nmvR+9rJViNqrW016nX+tZDM47T642vz1ccyl5\nm3R9LyWAdUqGUz638nC3k2vCwTjFFDKV0xjim3Z4fvcoXsj8BQDEJ7Y6vFj5\npYHz\r\n=H4mo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"13a815cd8b945d23ba7ba2ebd6730088fa195237","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.33579e00b.0","@material/base":"12.0.0-canary.33579e00b.0","@material/shape":"12.0.0-canary.33579e00b.0","@material/theme":"12.0.0-canary.33579e00b.0","@material/ripple":"12.0.0-canary.33579e00b.0","@material/animation":"12.0.0-canary.33579e00b.0","@material/elevation":"12.0.0-canary.33579e00b.0","@material/typography":"12.0.0-canary.33579e00b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.33579e00b.0_1623716587382_0.9151575220208583","host":"s3://npm-registry-packages"}},"12.0.0-canary.a6909c0e6.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.a6909c0e6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.a6909c0e6.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f8531507a3ff92f486755992aa80fed5fd20c518","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.a6909c0e6.0.tgz","fileCount":45,"integrity":"sha512-rNgqHn0QPa6Oq2tnou19Gxoz5L8p6GKyEPusEANYaH6kkxUmTNUb52V5JjpNnRYSsBuaYRu3smzYhg3PFHvlbQ==","signatures":[{"sig":"MEQCICENXQuTcBkihTUAo0FQU38wJNipEty2aiTTz82/S1kCAiBAkF4sNeJtAth4eCmImbCxbyZBM94cTWYW+oVSiYNWag==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1119211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyPHrCRA9TVsSAnZWagAAATIP+wS+Uzbu+h0ciQxIEXRi\n4e0CrGM1l/zcdXny/s9Kpx9ShyaXzbOGxVljpijk7aZ1jEd+ODceE4S2Qcgt\nyaZiDcpZjHHvGyWCeHm1pFZtQ/01ts58G61D/2VhGOKr3T5pa4/EDmvIPZjG\nDTKammuuXvbRBSzNHwn2/+fDX5akh3jGBEY2ehIsODAIny0kYz+3qdkYHojX\nazpqZ0gDyGYrTRW0ejfCR4Jb9QQj/2zddA9gh6mpYvs3rLGAb7E9+dFIE7pD\n/yeBveKLxy4g0ro9hcVXVHIGMn4JiGQevgOjlWkVihrsFtp3hu+YmHk/INh4\ngPNyD+wO77HkDhvg3/9HyyDDJHwSZgOgm/28tXgykVNQYysPuQ+M6TpJWOqe\n1VdkXDqia/Z7Mn9NioG21WqerA8WlAoUMIOK2TOxmVyr1+w3f+F/N0NzyV6Z\nu6ue2xp871QXY3gwaZfzrPEPBAfyqsr0WFAoiPTgO8yqKeEqFwVSJx4cNGuK\nkuxLrEGdUT3Ot4V29QCLbOLi2+/qbrfuYhV4UZtYIbGHCUAr7aj5TVa8EpHU\nvpXoysZGlfsPongWB0aGUL/ng8WZbqmFzmFb853+m54DSuvdFbQFezz6P+mp\nA7qu2cpJcADZUB6eX/L+lDbWSseJFt4psK0OwMkmWf+dN/6TYdKLHfMU10o6\ndBIr\r\n=EpJM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f4852598d008bc1750e5e9d2a0e828aa8804f87f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.a6909c0e6.0","@material/base":"12.0.0-canary.a6909c0e6.0","@material/shape":"12.0.0-canary.a6909c0e6.0","@material/theme":"12.0.0-canary.a6909c0e6.0","@material/ripple":"12.0.0-canary.a6909c0e6.0","@material/animation":"12.0.0-canary.a6909c0e6.0","@material/elevation":"12.0.0-canary.a6909c0e6.0","@material/typography":"12.0.0-canary.a6909c0e6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.a6909c0e6.0_1623781866867_0.5423820458023578","host":"s3://npm-registry-packages"}},"12.0.0-canary.c18b5925b.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.c18b5925b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.c18b5925b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"eddbe2dbc6616ce974d26cd5a6709ee6cf7550f7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.c18b5925b.0.tgz","fileCount":45,"integrity":"sha512-sRERE7j9CDtqYzZ+hjprjZtrcpx0kJx6I4FbYI/cFMz6MH6IKeX1J0ck0wA5rR9++rJGNkvxrjfP5pdkiPVM0w==","signatures":[{"sig":"MEUCIEWpEgRHvJmBTAeaxb8r0z3lkFJ11kOyIbugAhESkUJ6AiEAsI/rFduFsKsxv0uERiPJZDMa5B82y4zqfL+iuQ6CWJ8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1124625,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyRXoCRA9TVsSAnZWagAAFV8P/2nQStvBmzgxFWUfLvIr\neyfCXO+WBIYWAtQUUNuzVbhOutehF4aMfDx4meL9YQO3fVySOswLhd88HRc/\np/ZDyfeH8Y9D6TH/4miXSetlAHsGiDP+cB8aroefPXM16d6oAJnHb+YYYnZ4\nA18BqWzMKqSbmtR/FBNshC7NAx3gm0tosmCK6LajX0FdVcL8WwHjnhofQYSE\nokaEpt6aIoUKktJbYngw/JEXXYf/sjXFiQdSYB6LUXIQYdQGZjZg76tcXXIm\nDBTho30K5HZnSwxg/Vj1FsE1CwET9zKA+lc+QmSq+LCzuXta/I8F7A2cAkys\nC/bNYR5QTiDEEDO8/HUx2frjz/9ZKsMk0AM7UQ7o7iHY1esqfVGhBpuJuqSl\ngm3O/ngQfjupi1fVOWkgyBlFhlTO03Ggo5ShQcgt6QzWPOMgDrQvZgoQNFuJ\nxNEg1eomFuv8oMihZhIQtQhlhKmRDOTYbLSl6wL2X+3ZyHT4yfFwZTs91dL0\ng61SKLD36FQikFhClh9eomq1eCl2JYcxUuhwvdybGRD04IyRqMXj5DMhR36D\nGRYyv32X3AvxtUO2tBellbhtmwCw1z47kEMzByTX2nFRs35RI8c60kI2s8FU\nDt3By47bwWELnQq2oGx1o+Y3hiJDT+kCytc2Dhui6Zm/3iHuoanNWDZFBBtG\n+jwE\r\n=Dh6z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bc767c077b93ce415f2505e54f329042c80b0d3c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.c18b5925b.0","@material/base":"12.0.0-canary.c18b5925b.0","@material/shape":"12.0.0-canary.c18b5925b.0","@material/theme":"12.0.0-canary.c18b5925b.0","@material/ripple":"12.0.0-canary.c18b5925b.0","@material/animation":"12.0.0-canary.c18b5925b.0","@material/elevation":"12.0.0-canary.c18b5925b.0","@material/typography":"12.0.0-canary.c18b5925b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.c18b5925b.0_1623791080231_0.591439039513254","host":"s3://npm-registry-packages"}},"12.0.0-canary.271fff902.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.271fff902.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.271fff902.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fd586c6bffe074c84c84688b1aa7b9a5ca0c2fb2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.271fff902.0.tgz","fileCount":45,"integrity":"sha512-LYTJjej39Ako4iufncpArnVHBa79tCd0wUHAM/NRUlukw3VvHjKLeUXl3i24gCtQLw+TKDf6KJKhP2VHZvEi7A==","signatures":[{"sig":"MEQCICkjbzqkdcPWMlTLgeBi20lHLprTa4/7Q9gfloRq13ZGAiBrDVLr8DSxupRZ1azHzCEYLD7FN6B0TJtXj4ly6T4JKg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyS8WCRA9TVsSAnZWagAAG4EP/Rx+Yfcj2fdUTwdx1hj4\nH5lued/YKxYM/FnFUktcj6oxewDICYIBIJlwCLPC/EskzOJNMFf14vU8q1Cy\nCxT5DtC7KJozCTCD+qJ3KrSeousi3qQdSfdo7su5OqEs1SsfMtVn4xzwCQgD\nJq5uV5Y6H52TbTRoCflb2s4r/NWi8kOSotMDpksqJ95p9162ZGi8atU4d5pF\n08HRCpfK+jMb1YEYmYwH+bmyOuddHl6aSzrDDZRCA3bGGOupUgOpcKBTqLag\ngv/TiERlIfKgM7XUZXubk3eg0CeK7yxbcAx+RtYePb8DbNukGYSH4+TMnoi2\nwkOw61U9Pb+yuLBpnO7jv5WCoq6LYgPxTZywD23Q9bFFww6hB76+O27bgz84\nEDGI+IbGcVXow8jE9OqWSP2mePwRqncLXuLVP/pFg5Iz3DI/9oX1752CiNFh\n/C96s8CQgDhZaYf8t3tJhwKDmcS5AvyhkSOGXJL0ovfRsP9qVk7e5+6vspgF\nc9/BB59MoygX512Qmxn44ou3AM3+QeiB1VBSKTgk+2y3qLaiKSpkoeaIiNNv\nsVc19muX00rT1dTnZ18hOG7n7wSNt8/jyXdYRT5euiSr6qAIfANxn9rqDG/a\n/SfBn1nYO793WPEtotxCv8T4suLbUMCIY1pAeiazbx3b5SGmUoFiTQYraoJo\nFiEV\r\n=ht6Q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4306227bc7e5f014c5e961178b436b394f0dee6b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.271fff902.0","@material/base":"12.0.0-canary.271fff902.0","@material/shape":"12.0.0-canary.271fff902.0","@material/theme":"12.0.0-canary.271fff902.0","@material/ripple":"12.0.0-canary.271fff902.0","@material/animation":"12.0.0-canary.271fff902.0","@material/elevation":"12.0.0-canary.271fff902.0","@material/typography":"12.0.0-canary.271fff902.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.271fff902.0_1623797526719_0.18741117308322242","host":"s3://npm-registry-packages"}},"12.0.0-canary.7ea2e830d.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.7ea2e830d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.7ea2e830d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"450c1e3c8c559d753b511d6f5b628c7297bdc748","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.7ea2e830d.0.tgz","fileCount":45,"integrity":"sha512-uv3FlVQGYTyr/o/+xk/NFOpzrJ89CmneUeAoAqZ1583mot7mGKMyj2cVJENI/Zz/THqGOOuHTIrTPBgo5O1fsw==","signatures":[{"sig":"MEUCIQCoTeaf+KeBMi5bOfLF+viAjFPOu2rS0N1AAow7fRkkBwIgPjuanurKcR8gcMxUzRP1a/79oDu9Em4dsAd2Mwu09NQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyS9UCRA9TVsSAnZWagAA92kQAIDmJjrqCG6EOR0V+uDB\nxakL5ew1qF5VBd5hNdhdNVtf31Wq5IRubQ6JUzA1h+ZKuckQxCqngN3CaAHp\n5OT8Inx3s7A7ui9WbxMov1lXUNYmrjBZRsloyDowf0PYzJS32G6ksH/NR9UJ\nKsHefg4eiVW6ccC7PYIkVrKTaX9GcRKyiA592fr90JidDJ4BCjmdhtu+YEIq\npMsHLM7ygB9voCxLLOL+JjFu7s5YT7cGFT9UdDaDq4kYM2uLrclxy/B2E/Q9\nbkzJBuhQ3HVz+0aN02fTNmJB9JTNCp1qp5ytH+eP9DHbLHNu07IjMWUQzzg3\nZDEQgmqi5Hc6ud0oU+K8hlp3UrLIkp9eA9LvOP3PPWsXBoHBNe0tHLj9CQq7\ncHDg0lmyHE7I6UVvGYanMvuDZyLKiszbi0DGdZzSLNbkqMDlMKYqJ6n1KzyV\nZeHTG8KlkLDEwn7mR7hDX4DjSczWYakD8r3Gp66Is+PAlk7GDWVXqlwsbxr5\naJekNh7nxnS/7uLlVWijdBpyjNYgD+54H0/KzHtyKS1BMBBtM95WnPeHQqVx\nopOKr1ObGihWlQZvgjFRSki05NSyxwfkhKtaygfusSxWOyOJv9zDe26V6R5a\nxrYt/T/rfOKJP6Mf9KWkvAuc+A44dxNLiE2QTbc4NHvWhms0H3DpecAYlqdA\n4pDh\r\n=3Jte\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e1f3cd5692e7f4572664681a049ec1ea1548eb15","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.7ea2e830d.0","@material/base":"12.0.0-canary.7ea2e830d.0","@material/shape":"12.0.0-canary.7ea2e830d.0","@material/theme":"12.0.0-canary.7ea2e830d.0","@material/ripple":"12.0.0-canary.7ea2e830d.0","@material/animation":"12.0.0-canary.7ea2e830d.0","@material/elevation":"12.0.0-canary.7ea2e830d.0","@material/typography":"12.0.0-canary.7ea2e830d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.7ea2e830d.0_1623797587830_0.8750325783825064","host":"s3://npm-registry-packages"}},"12.0.0-canary.d96f0a1e0.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.d96f0a1e0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.d96f0a1e0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"34a59e4cc0a293d0a91184da3e98c24003be3347","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.d96f0a1e0.0.tgz","fileCount":45,"integrity":"sha512-VnwHyoo5JkTUGBHXeSrXO+NgX088lU45M8KCC3SA5+Q2yqNfa6aaXsn2Gj41xHZTm+16dyhqai+RoeF8Ww/0oA==","signatures":[{"sig":"MEYCIQDN4Ou0u72sk9ue+BV3x0YgGJDj2sXfK7a8CjL3k2U0igIhAIguko17l9+FBaEoWkjMw/2+ChI98pqu0joHqe1SD6Sf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgymgQCRA9TVsSAnZWagAAyqAQAJ13iy3oZmZvnXyA2wEl\nB858QqWE3TYvWmEd0RSAdYLDZGNDhVSRDbOlmEvAHRciEOH029fS+JVhOeYM\ngNHzBT5u0/u45SzkuD39wSFAQNMhkc5EJeCN6D5Uk0TIM4RQ0KoTnlaE8vhr\na4iH5OkecKs3AG3jtg4gtdWxiZESCUvh/7QsogFJ/lZR7W0LMmv4456aOpaE\nxnTNDBaUBcmKn+Xvr2g2zHDdfHS85UDxwHvIPDv8+5HuIezoHGrpkXBv1aSy\nL9fe62C6kAY9Ka0zNiTDyKKim5XrgBnybLPEZi+vPBKetrYV3GbcIiXDtlia\ntFKM9euaTMcHvnjKF8AVg0AcWmaVbDov53n9Ohc+tCNelZx2OTx87Phkchau\n+BRnTnZAzscvrrEEfaPbNh+9Uy4N9GBN4VZp1jMBxDRMechFjFHCpw7a5oYd\nF2ZBota4NgnOdya7i5I1/H8fW08WYyblFgCdGU0TxwZuDBSckSRb4cfaB7pj\nX+XmnHSZniDDXVrisTLoAV88MLFziQS6gvOhYF17uJeTP0PuEmy4M4aqKKPG\nadlwWOY48qU8l4Xqaynn06p3B9ddGo/HSdew5zwMiyVyZ0pYzmjFiSmFVpth\nR2KCFYAqnCfrdu2ayTYY1J6v6CYIB1bT8xzKQ9n7NuK0NvgE4xi22tSiz2in\nAJFY\r\n=0RdX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"32470ff9121448fb2599b2985e276f51563ed4f5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.d96f0a1e0.0","@material/base":"12.0.0-canary.d96f0a1e0.0","@material/shape":"12.0.0-canary.d96f0a1e0.0","@material/theme":"12.0.0-canary.d96f0a1e0.0","@material/ripple":"12.0.0-canary.d96f0a1e0.0","@material/animation":"12.0.0-canary.d96f0a1e0.0","@material/elevation":"12.0.0-canary.d96f0a1e0.0","@material/typography":"12.0.0-canary.d96f0a1e0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.d96f0a1e0.0_1623877647755_0.8789895074257215","host":"s3://npm-registry-packages"}},"12.0.0-canary.a6183801a.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.a6183801a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.a6183801a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"321c617ab5ded1a4d9d35621d7f93c97a7160562","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.a6183801a.0.tgz","fileCount":45,"integrity":"sha512-dNzojdeQcNhH0VpDwXI3+6OKUhn4b8lqf9wCZi5GwR7TIg8asEmPZEQhT+u44NhreUKt6scptalXC817Umhkmg==","signatures":[{"sig":"MEQCIFgF1IQlrYfnta1zzadB4ZJvV/8ZYG2qdBmjLJyKDMQ9AiB3JAnjC4T6D0ofbGOrY1uW0mUUA78ffWKAO2tcaX9kDw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgynXpCRA9TVsSAnZWagAAsAEP/3LPkVgnsbp7QbeXC+Q/\nrz0yB3HIeUoc9n5bKDMhqbFHBjT7skwkKfQzyBNtp/EtLUQFLB0KqnFXROjg\nGCCAVlbe903IrtkwQNXwfgzQFtorOn6TKLJlTIj6Bmf7xxWPGus/bXY+ZjoX\n+56YN3osuyIPxeOA96YGFXZ3RODjoDdt7BYndFzpZPMFlEZleFLScQ6F1K/3\n+Am6lF/Zd1DHSyMk2SMTNYV4hs7410A2mjI4R5T6aEWUhiLY2apw370QPjOE\nG4EUokoBSnnnuZH8XlHrGXlHrr67ChvVpv69WWT9vUQtO61+tzRqdLKOrFgd\nG7IfNxURMf9pPejbdCmQdXv/X9juV9qw/YCZtiZRq2IJxCKgL3ZK7GKpVmeq\nD5V6OEYF4o9HPTWqBJbcaMO1r/w8usGBfFV84gftHm0oN8r45BPC9EF4vwR2\nhI8l9ER1mIFBxr8tOjQVZmmrTKk8PKbVhMYZj1ivkuFD9ZAXsySOxplZwUdE\n8tzuTOEaQETweT5Z7tvqj2sV2M+ius3PjiF47ILZQKoAW5qmSIvcx2iRG2UZ\nbzq8IbyXL/PIwVUc0Fi0H+9lHYUHS+kgZvxcvlv0E09D9vgtBOF8GpjuqqmY\nNQNErizOVAYv6oX6WJrD/4V0kP+H1hZ046n3IlLSyDdEb0TQodWEZr065YYA\nD0gg\r\n=nnSy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b5eb42f66e2a670e1f9573b4feb1a600a95b49b7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.a6183801a.0","@material/base":"12.0.0-canary.a6183801a.0","@material/shape":"12.0.0-canary.a6183801a.0","@material/theme":"12.0.0-canary.a6183801a.0","@material/ripple":"12.0.0-canary.a6183801a.0","@material/animation":"12.0.0-canary.a6183801a.0","@material/elevation":"12.0.0-canary.a6183801a.0","@material/typography":"12.0.0-canary.a6183801a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.a6183801a.0_1623881192744_0.7912745124142895","host":"s3://npm-registry-packages"}},"12.0.0-canary.940550232.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.940550232.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.940550232.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"58d826ef587f85829e3f7bc2d9b957f2a3b0015c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.940550232.0.tgz","fileCount":45,"integrity":"sha512-glvBrJL0ULgWq9fWdQ/iEQ8Nivhjs7wJDOef6yWkSBwWGCupNS0zT373oZDd+04/TJUmLyLfVbxiR+ATfCSsmA==","signatures":[{"sig":"MEUCIFHE7TWwFOVUPbb5YaK/ghFWOZJZNNB2LOBSwWVBc3DTAiEAt0hOcSqJNqIXY/a3Notcpt4kuzgYPqkGZ1NbYgyPMl8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgy6VgCRA9TVsSAnZWagAA2FoP/0XSUEIUchSTOFLpEqQE\nMwpOgbZg/46C/hD2m6iD/vjV2EATtnXOD6rzi2oIOaBySNVVnp+Pymh87lOc\nZw9259RGn7gr061pdDNKbM8dgb52f590wKTGaosbVbK9IoBZV6wzXGc1hxy4\nvl5Qq70IyXs/acy8I8IDpggmlreh5UK7yDExwHYUpULD+Vh1vkSHWxs9i6HO\nY9JoAIEeolAf9Ltldf3Yc1/lp3O7ZCjA67Uiyu0X4yfZhYu2+GiQQEeun1NI\nK0LquGoM6FsoYEykTkQYC4QclLAqTJe51Qndtnjz8Vq5RxuNxbjLwbjstJTN\nFoSkNgl2bJEcSci2aFambi41M+CgNXFG5EPxNqWctQ1aDzaxAI0WbigOP7JE\nT4ndJnisn3908CWjIL+J3j9ej6F3Shnn4/kv88e+Xl2CBqbVRnoYwtiwE4cF\nkytm+wgw7mz7Pz238m1Qc9qD8kUJ+G5ke/lu1IJVI3VaKeq+v2j++xWT4vPZ\nJnCq2L5iN/Gp0SfvnfmrBRQd847+nS0ZkHdKTe6K+yHdQ48RqX7zVDrZy4dr\nARRY8BOM6/9uJiogAYhTaP/t38PITZ9IuDCtIhn8c2KeXGduB39HotpSi4hO\nmNie/G3LiJenmntmMgR9W33xTEwyPSoARxocBMP7WJS7LP2ChzLz3yn6y/BF\n5546\r\n=KYh0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1d6560428828a2c7ac90d050a744265e63c8563e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.940550232.0","@material/base":"12.0.0-canary.940550232.0","@material/shape":"12.0.0-canary.940550232.0","@material/theme":"12.0.0-canary.940550232.0","@material/ripple":"12.0.0-canary.940550232.0","@material/animation":"12.0.0-canary.940550232.0","@material/elevation":"12.0.0-canary.940550232.0","@material/typography":"12.0.0-canary.940550232.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.940550232.0_1623958880075_0.011685262870925861","host":"s3://npm-registry-packages"}},"12.0.0-canary.f705e8048.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.f705e8048.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.f705e8048.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e4edbb4706fbba47bbe590f5e303a343fcd0ce67","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.f705e8048.0.tgz","fileCount":45,"integrity":"sha512-VTmPAix5ucwtEjB4OOZi+uHDb465DhpiWdHgvV+fEw2UVJvLL3Ok0fKUI8+iP7O2cfpJL9MdnsCvOXH4ZGxnXA==","signatures":[{"sig":"MEYCIQCU0ZwoJV8M9wHiIThDY1IRlufZIDKy5ilNaPEqiMbRhAIhAIoHdpuKeaRVFVmDOa7NotTMNHSE6+VJ2lbvKxs6BItt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgzLrxCRA9TVsSAnZWagAAJ3kP/2GGP3CrgVy///86KyvR\nDzqh1gtSIktA2eTWjaZ99hS6jKl2Ilfasu5Yr1cqt75C1jV4h2kzRKQ4pktK\nFWRXizumcpYTf/ZIzqzmi2RDAoo4KQXy3i7D6L1cAmrGOG7mXZ5lRjNKDuLt\nJEq9j2qSzhepE8I7mOEo2JjwPTR+cFGeleSO0oPfExLP8vWIxt45djhYp0ky\nfml8n376DI753xYjbLnAxbSL9w7NqsjoHr5ovTmgXkPH8oxwJeoTmKCNpa84\nCaWDwEx1Bd79KpERsKGLW3pPhehh7Yacobfmo/7d1ptGL7B6V4bEL+QyFwDi\n3Fhf3+jynABRickzrdF3TqY7UAd/kj3BQi2XTsloU9UCVjU+OZdb5do7cHxd\npWeFmFjrp60sMq7TY+T0qrHroPZT7KDgJjPI+DGfH2ixnzxIZ8UkFFbfVlH0\nIu7BSUCk9njAfYsVE3PU/CSrSiU7kgiWljFF8wCBuktqJxocXgwnS1P0/DEG\nzjl72BwIjbjD9Sszchk69J+zgjAMAyXylU1z7h89A1/JpYPg9Z/ZlU1rA+5K\nR6PJcQOhlcmT9HDSGa+bsVyiSEz+vPrb15HCr0N7QF/ZXIq3sFyt/KPcLG0J\nr6HlJZm+YBiMnqdfn7h42fj2hTJCQgwWIxhpbFhDoRMWJEzGexBWNTRxbgGU\nyTsY\r\n=GM1L\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"65fc1ee152f3abef35713b70962e3d5b848a5e78","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.f705e8048.0","@material/base":"12.0.0-canary.f705e8048.0","@material/shape":"12.0.0-canary.f705e8048.0","@material/theme":"12.0.0-canary.f705e8048.0","@material/ripple":"12.0.0-canary.f705e8048.0","@material/animation":"12.0.0-canary.f705e8048.0","@material/elevation":"12.0.0-canary.f705e8048.0","@material/typography":"12.0.0-canary.f705e8048.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.f705e8048.0_1624029936448_0.7193595038199505","host":"s3://npm-registry-packages"}},"12.0.0-canary.08d791f37.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.08d791f37.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.08d791f37.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a566ca50a33cc04b8a7c6fca1f74b1f4b8572af6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.08d791f37.0.tgz","fileCount":45,"integrity":"sha512-9rogI9jFqd8dsR0Wt13xnhCsFgKqm/5X81GdkJedE73aA/wW+lry6w149jlTYlomu6VJJdKpX7XHCfbqDYju6Q==","signatures":[{"sig":"MEUCIDcGwu91Dh7Ycwfo6fYN7mAb4NBNjDhxxSfF66wxNodCAiEA7ppyae24+EJB3WRwG2xN2X/b1YkQTBD0EH+6/hOH7Eo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgzQxQCRA9TVsSAnZWagAACBwP/i6bOTxWh8ueUfcHnj5J\nr+Xu5f7hbivHypQuxHid3nZvmpZtrsQZhdQm1zqLKo3IQZyDkGfgxRnheL66\nwGEE7TyQUN8FElTwhcvQw5Jgou+MYK0LqUjgL67E1J6xdFalcDThTgx4l1Lk\nY9LbENGVSgDKib/GSBUFtjx/ZA6NH3WQCmRPVw2vcd55932tR2GztTE3grub\n0Zy2DKxIcinFj1TVSRfJokM1Q5/OktPh8gQGxAylPNr6YoNdLeF6jyvdi8qx\nkIrN64o0OOeM/xkX1ngEFMcpnUKMt9HzaEvcUGN8GXPeunhXwRo2wDDm539c\ni0VL62JSHpVJt/FfzMqBsMBY8VS4fVA+ODZ6UIjkN9XQREdus3UjM7FSZQ9k\nS7jSeV3V+e+caapYc8NqVjRdVuQAOVc+i6wbN3fr6ybwGjKhfjnoXDVLtgyJ\nePRMmEj+9vmBY2+dytFdLwqSOq4NTyCN4979RbvntT5urc59t+wQVEFBPctW\nYL+kQS+xcomMdFJcb90yyeRLD3dgMF7x0PeIYx0jYrgZybGiKKLxtyMS4CjT\nDFuuDbWVneFc/WZqt6TKZ1mLBKo2l8BMzOzAU8ClADSzYDdiY6lprQZT2mxR\n5kQzkmmOaUq+7Arkpu1FZifk1li+VMPu1Ed/FvVmwfq26dgmC9tzKPQKlS2U\n5HkG\r\n=huJe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"854f301ec7183c3cbd2e62f9ab541f21aa6a459f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.08d791f37.0","@material/base":"12.0.0-canary.08d791f37.0","@material/shape":"12.0.0-canary.08d791f37.0","@material/theme":"12.0.0-canary.08d791f37.0","@material/ripple":"12.0.0-canary.08d791f37.0","@material/animation":"12.0.0-canary.08d791f37.0","@material/elevation":"12.0.0-canary.08d791f37.0","@material/typography":"12.0.0-canary.08d791f37.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.08d791f37.0_1624050767776_0.2264627907688026","host":"s3://npm-registry-packages"}},"12.0.0-canary.e38d7440f.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.e38d7440f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.e38d7440f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"341e2362286daaf2120f79d578eb5ce8d8d07ab0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.e38d7440f.0.tgz","fileCount":45,"integrity":"sha512-VF993c7OX6zBrpDA+nHczwn4uHgU4szWFPChgFvolCkxY9JXZu/+iA0fo0ut6J9WZvRAKhKTGnvTQtUG+g1l/A==","signatures":[{"sig":"MEYCIQD2jIHowtuKXYzBcdur9GHU7vE63ax/XxQjMnPl3vxW4gIhAKU3SgNboMFdHSymJa0ixmH5MwzIyEKVmy3AsosvrOey","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0M9TCRA9TVsSAnZWagAAAhkP/j/LsapH1sG/PuVvFnQo\nFFJzcsFZG8QVzcsv8GaT82G0WfJei+bnVt5N6fPJ6SySzY4ugScUwdd7nyqJ\nwbAShGFVVwSI0GdXQciNnrjBBDl+tYqEhgzmybbftpiOybB8LrzqbpnTpEt/\nD7YM4P8HDpPp6SJg3do7JL7uz/a7fGN+01Ddq9rV8Lt1PsER1AeWL2xWSq9J\n3CBbUT6BGqgDhuQ6nMPWWuiWh0ZTjh+IuKmRF1Ob8Wn1Ks2Qe7ULTeba9DNN\nZIdLLeW4sRV6I745NOgbzMhX0l55kyRgIWiLDOpl+i+7V7PNzJ6eFcXs8KKJ\nOWoY98yt3qFosfHRHeu9ATDGSucO51DfPjxldG9dylb9+Hg/6+QCDW9aLMER\nMCrX9MbXa3OBJkv1j6/z4mWAePL2+ZRxMbOBDG9cD3X/tLXNxqTlo6DTW51m\n52zGPiSgPxOMiQYhpkStpZWwyxDk+1vEpe9ufaZVE3wQRun2/qwCZzM9NGZd\n9+e6pXymXCmyWliD3uv63ylID2Xdfh/YkSKtp7SUlO49mmbs67BcP7jizDmE\nyTJehVfT1D3XBfHrndFvfehpCLfuVQZLGhjxPIJeB5R0oyFQW+w2iAr0lBx5\nCurbRX9MZXPzGYrmwunJx9b0ZUEB9Xb6R4ofdBHDy98MnSk5ElIDJ3yb+oSy\ntAWf\r\n=cXhE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1d46835e968c827eb3b359624ebb85f8e3ccf528","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.e38d7440f.0","@material/base":"12.0.0-canary.e38d7440f.0","@material/shape":"12.0.0-canary.e38d7440f.0","@material/theme":"12.0.0-canary.e38d7440f.0","@material/ripple":"12.0.0-canary.e38d7440f.0","@material/animation":"12.0.0-canary.e38d7440f.0","@material/elevation":"12.0.0-canary.e38d7440f.0","@material/typography":"12.0.0-canary.e38d7440f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.e38d7440f.0_1624297298570_0.2690362768557195","host":"s3://npm-registry-packages"}},"12.0.0-canary.75900a5a9.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.75900a5a9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.75900a5a9.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7b526cff049389fd41ae5c40f6a2ba3b6b6309d4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.75900a5a9.0.tgz","fileCount":45,"integrity":"sha512-camDxfHwy7mZsU+FWzyxI2IVqrPVUoIn1d+/F78b+ydMEBu9mSZx5qqBp4eC6a5XC4i86dx5mubaG7QB2FZ7uA==","signatures":[{"sig":"MEYCIQCXx1TuxcHOaLR1ipf8avOnVG2sQhPxY7B6bgR5AkAU7QIhAKmnFtlcK/xylMF0jUGD/27N03+atWZb3CO8YnnPRxjb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0NySCRA9TVsSAnZWagAA/DkP/3eUg9f08KarfHkejJMt\nd4qpMg4GqOi6DNT+TcLyChlOsGghrTvEYVreJA02D8+TojZZAVDVf4fYcAvz\n+IvNRVqm/GwDK/yhw7J351zFamAAYJ/0qSwoppQVC/7ehZfxhESIfpTsIFun\n1nkvtdDVjscTU4UukZhFRBnaSoyP4WXvNdwj/g87YZ7I+8i/8/WjUhXFcDsV\nL5eJyv3rnmvz+OFYF1dzcLTbePXBi6b7mFyv046e0ncw1HmuS4DQQywRvDPb\n5wiE5FqcVqEo+KUZniwxPP8vt15NToPQEoqqH9bEwY1G74MjQOFMTkJEOgDV\n7eWM7BEyn4E7pjzuryGT+idFKwDG5j0Gl7r3mOuT2/osBegidTRbGROCKrpJ\niU/dTsQoZ1zOuo0ElJjAlxWvedgaSTnZjz8t0X6i3yNYZiUrZEdvnrYtI4cw\nldKWglMY5kYpNxc8a0QjujbpOCvqLDdppHfS9Jd7IwSRZ6kK+LfgbdL9bdys\njKxbZutLKDHDT2Sc8X+nSKSEXbUecO8agoDACgRJ3ay5nsV61zkC4Mq/3nIB\np/z9Qp2AfOWVJTcQjgSO9RqUCf87P7GogvPgCLSVwfre1kmQjkHIt7PZoP4/\n/8Gtu/R5sX+noLWbTI09uho6YDfdc/ldq5uTw4hGFEC0Rfdhs4aJJRDT8vlW\nJdYm\r\n=anRV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f08daf05a41f44cbb5e5c07039e1e165d123c405","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.75900a5a9.0","@material/base":"12.0.0-canary.75900a5a9.0","@material/shape":"12.0.0-canary.75900a5a9.0","@material/theme":"12.0.0-canary.75900a5a9.0","@material/ripple":"12.0.0-canary.75900a5a9.0","@material/animation":"12.0.0-canary.75900a5a9.0","@material/elevation":"12.0.0-canary.75900a5a9.0","@material/typography":"12.0.0-canary.75900a5a9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.75900a5a9.0_1624300690368_0.19120241612844446","host":"s3://npm-registry-packages"}},"12.0.0-canary.33e6f50e9.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.33e6f50e9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.33e6f50e9.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5b2808be45e0d03649b1eb4ba8cee5799ef9cb73","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.33e6f50e9.0.tgz","fileCount":45,"integrity":"sha512-JwQjfOlFvGd3oLSS6V118NyweLkKZ7N9exk6lt+GhdHFZNeolQ2CJGaVwIuHYjEnvjbfa98RiQ5BcmdnHprEBw==","signatures":[{"sig":"MEQCIHs0znPy9Ar2bh/iVJc7tGbVLX6bLm3K7Z9CmAFfKn4gAiA3fZJAMkdtL7HdItdtaVVsh7zZc3i8Iwa3GR8TThkzag==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0nyVCRA9TVsSAnZWagAA19cP+wRDmyI62XB+iXoIia3w\nmxafTp2WHxiQ83cUFjcdDm15/YrwidthJdTL7HcsZJ33/JyTVp7qdQV/slAb\nMkV1Q1qsTnzSos9ZjVLEm1GDAi7hhK1+w1AeHXSRK2lpiA6GlIOHZAcjS8UM\n1YFo0iA7e8wxZNIKbXu33vrLxpcdi6UrEdAW4tdbEFSIzIqGS0GHpmKIwVdf\n1WecI3VumVd5yLFt+PX/MzeRlSJhOwuCe8QDS7LNqhIpRcEnz5AfV9SO6Xmd\nhM3ZKhTC6fTiAWQib5+ME5eOrxhXpgKxv+75wfpAJCMPixPld41UqlaUcfCU\nW9MZr8BkPCuPde9ngSTJnF0HsGuSdD7AxGY1t55lN8P0ozxXiEOSk4/RpMIr\njzFpagAcNiTgOBclOiiCvYkx5a1EH8gn3f/TWWD1IFlTckwdglhBnhCmlgyp\ntO7THaudUJwB6R8/7eHqfLVAxCw3+MkTDjmOCTw44JOJo5cXzhHPdmmBopml\nN4UIKuEYH+c2cWvJn2rI40TiU0EfdBgv4/ZXpDs3UCY/dTVKVYbFcME/ovgx\nhnJUAvMiKeHdu7Aenpf0mH77W7Dl7zQFqEiScFz/ggEwWSgzoah9crNufva9\nc+L7JCkFbd8SA1n+/GnoTi614FGreaVfkWPWCAfxj2DCYXb7czXVIaHPRbCu\nhNS+\r\n=Mil/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fb208c22fe558f863d851b5bda74038d5a3b09d6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.33e6f50e9.0","@material/base":"12.0.0-canary.33e6f50e9.0","@material/shape":"12.0.0-canary.33e6f50e9.0","@material/theme":"12.0.0-canary.33e6f50e9.0","@material/ripple":"12.0.0-canary.33e6f50e9.0","@material/animation":"12.0.0-canary.33e6f50e9.0","@material/elevation":"12.0.0-canary.33e6f50e9.0","@material/typography":"12.0.0-canary.33e6f50e9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.33e6f50e9.0_1624407188693_0.6781311927993261","host":"s3://npm-registry-packages"}},"12.0.0-canary.8c685301d.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.8c685301d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.8c685301d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a1f1c4f1dcd789f66fd58b83022541f08f882552","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.8c685301d.0.tgz","fileCount":45,"integrity":"sha512-RfeGerst70JA4RRaI0VqLXwYNea/Xh5vP+SzfgkWoT3xPm9KBXJy5VaAMJAfBD7sCJo+vdXFgYaVEaUNxIvslA==","signatures":[{"sig":"MEUCICvnncmPpSjzPSqdI4VZHsFkqNOSzahVTashAdzvJf1HAiEA6aWQJ3poCYLuQeVxeTmMD78zzJvk5hj1JU2M0OOcxWs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg03ylCRA9TVsSAnZWagAA3fsQAIzW3Exo92sbZt3kiGn7\nUjUT87NUPQLmhL7RCoRLdwApaHPhg637o0dpKUnLsq+varW14LN9KSBzVNNI\nnB/TSZtPDzX2NdVgMj//aDJdZ6c88TpNon9/V1YtC7inXJSFAgWTu1zZ0yzC\nKAH+MxtfYvDl1yA7GshpU0cxGe4+ddHYA02JX/icb9Dw1dqdIcSVcQgY5eeM\ndX59IEYc8fA2QFqI7ykTIEgZcI4x1BJHbhn2XgQysfBmhBrtFaDO5uiS4nHc\ngJ1SKUnuWabnC8fLfbLN5YiUL90uG46hZ/zsWBne1Jn4H91C6gkJThcEsDwv\nfagiPY1PhANcjAbTnDrmXAR8Tp1F5HjYLp72A4FsratEH8NWB6KlIM+IQxAG\n1kVUmTnA1ioUsbwp+muGaoak/ZmodCF1SuWGytIIyVcCpYxv91N/dRVL2+YS\nvRhEylPb4u+6J+XOzFCxw3iZV8seHdSdbZjbY69NHyXDN2tUyMfxcB2e74GV\nYmnU0aofPbLUlxbaRPltHtMSDseYbqYVVaIZSKQiYGtqWm+MVk/RkdxAesml\nT/7TnjQ6I9I6E3ku6b3oaJcYc9Qat50e8omOCBNiik6erW2aD77L8hLGyMMn\nR9KRis2IIl6W/BxmvnC+E5TnkXQwzF0aLJEWqIIfFHHpG1CHZaTIqU4JQOhJ\n4tud\r\n=hVxj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"43d0ab810254e565375b55ae118522d89b7e9254","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.8c685301d.0","@material/base":"12.0.0-canary.8c685301d.0","@material/shape":"12.0.0-canary.8c685301d.0","@material/theme":"12.0.0-canary.8c685301d.0","@material/ripple":"12.0.0-canary.8c685301d.0","@material/animation":"12.0.0-canary.8c685301d.0","@material/elevation":"12.0.0-canary.8c685301d.0","@material/typography":"12.0.0-canary.8c685301d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.8c685301d.0_1624472741292_0.2171703393444051","host":"s3://npm-registry-packages"}},"12.0.0-canary.8c7d994ae.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.8c7d994ae.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.8c7d994ae.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e824c8711ac1fc0f881387b45aeea1ff031fefce","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.8c7d994ae.0.tgz","fileCount":45,"integrity":"sha512-d8J3rI9VH65MfegquzzMqNj07pAd0Eoi4dlNjn+95xlzCQBueEsz9ztqFvVGUUf0EvLc4z2iLnw2IGdKougqjQ==","signatures":[{"sig":"MEQCICeMxcvF9OS2zTtAq/lN6bU9IDz5vZzqKsBT7WZAuVihAiAHafnQtmCiP+v5LgXC75Ac7FOJFrH+qY6JPImOQD3cFQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg04tfCRA9TVsSAnZWagAAzQwP/3plH9jgonng0AGpokvY\nyFrblXc2HWj4DmY1qOsiZgeNaI1ZAqcP7HOkzcwpnXwnX+8X8BeGrc1aP/2i\ni0nUSaJ72KyB+mStsTjbLym7cJhRxwh06q0M4+zWYSHIYUpY3vm+glalE6Ze\nAekW0RJG9/LFpX9tZXZkVAUlfMVjzueNDRpeL8L/a2C+YeAoXZjbQ+xLLeOG\nn40I3Gu7D+h7h6cIqQOmVYb4Zqr4+0h4KJFYAOZX74wOtWofm7LiO8hHVlGa\nO2w7FiMXuCIcVUW+gh95LGeWRQcYnWMJJ7DwExTS+ATtnZJF426trNBdgnuI\njIaKphcsrSDwyrZIjBkWaG6rVcme9+yTyQAbvkMb27ds9PA1ck/JmzR5DBWu\nqh5MJU3MMUxC+7jgZWKuG51oN0e+pk6EVcVagXY5PLZnfCBtRprRWjs7ErhV\nGkhqDGVpANs1Hdld0WbY1HsrnbN6V1C/dWVnv/ruajrr4OYejo94q1HubEhH\nSaRP4tBh1qwCrq3iSWxOgra8+lkf8EEO+kDnlbkSG515Tds2qRQef6qi8eJK\ngIK5QYoYKykM5df9WwLn/wH3YNi0aqTOs9f+VxYet8Ed2C9dm5WfwRnnfWtD\nEWAuFx4chMlCYH5i1ET/Y9NcaWj5pD7LsIPB9akIvindnuELJix8EXSD11ZR\nhOZf\r\n=djYp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"85693f86d68563f451e95113f3d03a29fedcf142","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.8c7d994ae.0","@material/base":"12.0.0-canary.8c7d994ae.0","@material/shape":"12.0.0-canary.8c7d994ae.0","@material/theme":"12.0.0-canary.8c7d994ae.0","@material/ripple":"12.0.0-canary.8c7d994ae.0","@material/animation":"12.0.0-canary.8c7d994ae.0","@material/elevation":"12.0.0-canary.8c7d994ae.0","@material/typography":"12.0.0-canary.8c7d994ae.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.8c7d994ae.0_1624476510853_0.07887375001701713","host":"s3://npm-registry-packages"}},"12.0.0-canary.4ccd39bdd.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.4ccd39bdd.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.4ccd39bdd.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"96012ed188736f76b1fb2fbb4e5e976437918acb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.4ccd39bdd.0.tgz","fileCount":45,"integrity":"sha512-ylO9kCjq0uRwz8clCc4DyT62HH9IvUOBRRhlI163EGN7ZcabPXbX1xSAFge5tr4CpwdJ3DAS66awf0SluDctjA==","signatures":[{"sig":"MEYCIQDHBckJKO12Zff2Nr1dIoWBadB+yMelcyYEvHiFkv6V6QIhAJntkG+Bl+gd6CCeLzEYaYBMU5E+sq90KxwR6im6ghfJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1K/CCRA9TVsSAnZWagAAcWAP/0rg5dm58cmJZ1MRze4D\nyu87wWjROSguGb9vElG+4gwtZlkugeVJopXTEy3x4c2MZYTgC5p6v1HttMA0\ntJw1bRIZPamm2ZpFJOLwGByV74XbdcYhlQdRceLQG6UZNIWxdgHUZOaPvgBw\nQNxJ1MWu+rOMo8xtg7mtom2us2FfP1oEDQdnehHZr2aQ5B5RoTUFI2+uuZ0H\nJA5lUZF+T5nLX0urYjyVTTTdn27ujbz1G1eoWPD6owNaUi5h9bZ6zVEv4K6H\nuivrLWjhLHxarEMCoxbYW+lt4QA2yjKQte8oXFFq0GtmW2xCPU9KaBfcbEKN\ni5wqfXBnD9e6wPJPCE+Ams+DE1lF31K+wJ7JpiXEjUUz3Es/B8ing7E0ikEX\nHC8gpfEtbWSlpKsgGRqiBDZ2F/zee918+o7vVIbXG7D0IAIQNU3YVUHeqNh8\nlRGX54+umWgg4rCG7oo5hT3ic473kjmFdGdmyMh2zNRzaMM+ZlSwOHRVYTgi\nB1X1q/9zOIxwA/iRMtwxTrHu8PTxqq2DAd+dXjM7zELh7LdVA/eyaUOocrXB\nfzLQJcDydGerrcQecSe3ywF+aftu32oGxSflv+rcC64UvcZDIvR9SiMltYxl\nQPhWqvimYRVajnYFIlGsSWEvFPbvepRZ5hRv1a3vQZi++0VCKmBLKjR3UMni\n+Aib\r\n=lHRX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0954a36f2cbd31614158e8425662a4969ce9c299","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.4ccd39bdd.0","@material/base":"12.0.0-canary.4ccd39bdd.0","@material/shape":"12.0.0-canary.4ccd39bdd.0","@material/theme":"12.0.0-canary.4ccd39bdd.0","@material/ripple":"12.0.0-canary.4ccd39bdd.0","@material/animation":"12.0.0-canary.4ccd39bdd.0","@material/elevation":"12.0.0-canary.4ccd39bdd.0","@material/typography":"12.0.0-canary.4ccd39bdd.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.4ccd39bdd.0_1624551362048_0.06016618886708258","host":"s3://npm-registry-packages"}},"12.0.0-canary.17553e9f8.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.17553e9f8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.17553e9f8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"33c45c6ebb8f2141a1240777b5d1550409a52e20","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.17553e9f8.0.tgz","fileCount":45,"integrity":"sha512-87YxLxljOATuz3NOuW+8zPPFSOqJUFZGpZp7RCBF2DoMXp9zFLho2iXziIen+A645cuYAPn+oeMzEQO7WGEOdA==","signatures":[{"sig":"MEUCIQDyp6xy99ClKOLOSodbkG67AWPp4pNQqir5MuCp1rrfVQIgCzH6fnjlfooLjdbOG3spVSA0xZzbLSL6m9tM6DBxO80=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2lLyCRA9TVsSAnZWagAAA4IP/1idfsgzdc8ae/F2Cm35\n9qUtSRnQ6l4GbMm2XlyhkzpNM6dCXmfnpG0E47oMxSDRWtt7QKUt4vR4QqVv\nUcFg80hRo/86xwJktqXavtKqg9Tl09fRgRboiLqKP9ViRQt8d78uBu2vJUaL\n0MuQV/C/+hxkNIdz+rc4gYPmtyTC9vVC/iCuSW9OUAq+G6a/6p9N0kJAc/AD\n5JBVD6DuiyIiaVYxf77/tpeB2C/dCMy5s5MgZn/VxOHgA4O1WLaSe7aNNcwB\nyW003gT4spxfx2BNqjDLTcCqPFxcnteVNFCHK+/G6aIHvlsuVAN+RRQkLcDQ\nJwnRS9SydPzUtlrq5RKx+fm0ioq7y7kDxNfC7EljFpLIMX+F/MWvSDPat1ay\ny3HlnFEcDn/pnbYVjtGwIYFpreUtWLKM1ncMBHq5TUavHwpLFLtceVdy2w3/\ngoBzrRC5VhFDn+q4oIkRTZOpMYgSRa7PgRNVShHn5CtO7/cYi9EEWMIdCkDo\nRtuPeLS+5JFS7iJmUTvItyJYyBKmW+eNesTvjjJPCHrPKKZxAWAQzvR3AfIB\n1Cbp3GeBSnDc4Xh3pg5otJ+w1lAOez7UnceFpinn1RMIV76B2egGLxa7xN4p\nqVMaLzzjcQRhzd7OiTdzlNgUKkeFXzgqBiHHSaYs1pK+C/QyTUswbKlQIx6A\n8K1Y\r\n=f3Bb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bbd7dc5fbee09c82081517ffc14264d4834209ba","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.17553e9f8.0","@material/base":"12.0.0-canary.17553e9f8.0","@material/shape":"12.0.0-canary.17553e9f8.0","@material/theme":"12.0.0-canary.17553e9f8.0","@material/ripple":"12.0.0-canary.17553e9f8.0","@material/animation":"12.0.0-canary.17553e9f8.0","@material/elevation":"12.0.0-canary.17553e9f8.0","@material/typography":"12.0.0-canary.17553e9f8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.17553e9f8.0_1624920817842_0.4061333334624537","host":"s3://npm-registry-packages"}},"12.0.0-canary.4c80072fd.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.4c80072fd.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.4c80072fd.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4fcc9b0d8ebec7199e3f74dfd1ccd3622dd3ef26","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.4c80072fd.0.tgz","fileCount":45,"integrity":"sha512-SolLsDPg/4OWw59yljP1cNEDCasZIdSdlNwrypx12LXLuXsJOvVI1L7Yukox29mgPF10Ko+1spBj4ZEkwpsHkA==","signatures":[{"sig":"MEUCIGEFa4NsdIb310QJdzkt75CDMr/cckidsH6ZIo5KqqmPAiEAhxn+98bOvN6gzaVC1q85Hry455F5sca0G/P09Nv7HMQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg22l5CRA9TVsSAnZWagAAyi8P/1VCknZ8THIQ8ZD3WZZ+\nPdCC1CWNuL9OMEs4T2sSfecqNUi/Er3osTZQ0xjViSN3Ywm4pFk8jdXco5QD\nFd2K+Alo4xwsbmcgLRf4Vu1Op3s+cWlt1Gmx3it4o7+zE17FX6KunSRRHzTE\nSN3jz1Lc2IC/qUgb/ByO2qGzGy3y44nxuc68Rw0mapqvBWVbvyjqOdFrHCip\nCc+Lg5SVTvzieRB/9YH5jSvKrlE/qgQFi63pS7lx+ZSXZZgk8yxUK8CMqs+t\nQLTbanfT+lcdTG693jPPdtGg1g1Hj6VSaXUR+jnpTgoOywLGZwp3lRoL8APq\npGBVPvtnWUSCRyuqYAG7qSn+dcw28Xv7tzR1lvnoP0WQzNkEG1UVfC69DD+y\n4LLRUb8zKcqaWjiOCWaQH2rWvveSrjA/3whiWG5TsvGL2aUng4+ztnmQnk0K\nB5/DQvHu5gfDno/WTpcrw84oDVmczU+aUXs2ReWGN/q4hwbQ9hjN/4gp9O7A\n09QZvMzmitVH6Zt8iH0YUNz4b9r1+dq9tXwwv5dqfMbqHsQhVWI2NMqGEn3c\nwxWJX3t5WqZUk0YR70PCPekzPAFxGwXm54cfmmneZagIwXp5/suKzMHQMrBo\nhfQlj45xac02rjMd9y21rk212LehR2Z7wArHS/+/+R5Dd/OGjAMrTbblDY+K\nx7xd\r\n=8ubT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9f6d10da43c6e0fbb1366c1e37fbca58ce00dc12","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.4c80072fd.0","@material/base":"12.0.0-canary.4c80072fd.0","@material/shape":"12.0.0-canary.4c80072fd.0","@material/theme":"12.0.0-canary.4c80072fd.0","@material/ripple":"12.0.0-canary.4c80072fd.0","@material/animation":"12.0.0-canary.4c80072fd.0","@material/elevation":"12.0.0-canary.4c80072fd.0","@material/typography":"12.0.0-canary.4c80072fd.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.4c80072fd.0_1624992120537_0.024599099099161137","host":"s3://npm-registry-packages"}},"12.0.0-canary.796811db7.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.796811db7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.796811db7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c372d19f1aa509375f01503e097f3ee00880f62b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.796811db7.0.tgz","fileCount":45,"integrity":"sha512-YP6d8Jkr0jIYLP+WEovZ718e0QmCp1mBVWGRFgkcvhXQtwNZz7psdVfQV88WXfJfOnu18hD9rGTzQ4+IoTsC8A==","signatures":[{"sig":"MEUCIFF3tIM5dw83UrxU366YVio2rX1k6GtJLhgoApX0/hfaAiEAkhPfKUfI8mmYcF+vDSIiewteeqtJuB8k7K6CCvqapk4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3QaICRA9TVsSAnZWagAAB/0P/A53mkSrPxaE+/dYp4oU\nl1gyz9erOuz66oOGwyjHoPSi5KvPJz23KuSUdy4xZCZASYRI3jUCJux7sXYx\nOWtzCso+8mJPWg7sRAbDlx9mWTp7SjIZ3LbSGiPKMRdr0+pAPbxrIOYhP+R9\n8JiPq/5C0ravUd6yMwisZuWOnUAdGuhC9BmNwW6MKTORczRemQSjGrbhRcG4\naWRts9E8gsQY7tIGq4g5KdyI8hXempvXs22tyuOyJId70clvdjc8KrJ/6NwF\nrVaYW7RX7z8d+KGr/ymdf6Gzhv3zACq556WKr14bjRPwG+R3Qoixav9fAEHJ\nACEQTjjFCmw2qvXUQLo7H3BFL+4KzQvBa5oD089bNj+9HRlCfHTgOhh+4j4Q\nhHKU6PnoTH3EguWFOP+piq8HLsAPSJ498fCNpNms7IR6TBNnBgOhvIze1rHp\nqurn//t5mnBYpXKWdirLrGgqz33fFC0pbpwajLpq24YMxnpyA8Ti5j/iW1Dv\n8rAMq88KmhXi5U6iwyg4HkLDASGjxfBs/OcrWrKzyr+Xa4lf7l+ks8rhNgq+\n+h+BBLpbt0QKEYLNHRtz0JXOIwrkDKd1sqHqnwopsnjz/E9S3Eg5hs7jyOpA\ng0eN6/R5tdoOtScXz12XXgUkSiXfQj0larunDLGUkSPIbSigMSapGIyH4HWD\nCzUc\r\n=Skpq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b02de77dcf32bdce7d23406dd395390b35e386e0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.796811db7.0","@material/base":"12.0.0-canary.796811db7.0","@material/shape":"12.0.0-canary.796811db7.0","@material/theme":"12.0.0-canary.796811db7.0","@material/ripple":"12.0.0-canary.796811db7.0","@material/animation":"12.0.0-canary.796811db7.0","@material/elevation":"12.0.0-canary.796811db7.0","@material/typography":"12.0.0-canary.796811db7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.796811db7.0_1625097864026_0.5493866867606512","host":"s3://npm-registry-packages"}},"12.0.0-canary.70e1efdca.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.70e1efdca.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.70e1efdca.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"097e6117b0443943a1c589f6be31368d4597c473","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.70e1efdca.0.tgz","fileCount":45,"integrity":"sha512-vaqQKW6ikNb8Zg2HQpL+z1nvGohjfJUaDqIVrJV83GlhzRrNCUQM5Mz6oyyuC30niENmSN1iYQuRjHkDIdLOdQ==","signatures":[{"sig":"MEUCIDEGkISvs23awl8qseDzDKxWWxDsS9ahbXJ5qSjRcgJKAiEAoySNjFdTWa1tOC8g9wnXujIISJm4pi6mDHghNNPFfmY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3fZeCRA9TVsSAnZWagAAxR4P/iv4176Ra74jelweKt/A\nuHRn8kVcD1iATkesgWi8lib+dykdMWA173ywDtwSQwwDL8i+Me0tZNzzCKw3\nuDvSBSHG7GYMxU6+icgdKsMY+UD4xuNXhW/O+lj9yY1NTm4EfBpp6fSh80eM\nhvEePMLvceZ5fbLh7q5uJVq6sUUw3uu5jDDghja97O1AcQgD8+89QeDLMW/B\nnEoEJbSrgNezGJS4tIECNrg0mj7GMIhW8Ia5fjgAffiWDKVtObTwmCb9t41E\nDj3lXhyd1V5iGY6a9uyD6q7JyqRTMKYlIEfz6EFCZFWQ4XsVKRfHMqawtJ82\nRrs8qOQSDO5uWZdsVjS8q4/u/96/ie+I2yfBl8h7hUgbEvGrg6OFIfpf2qqA\ndaEU7gUKlQGxW23wFV85zVjcFMHpVUZjgD5gsl4YWYEDcglLlk8WkQAjGkra\nlhaxGcBa7LD5hfFjm3khri9wgIdu6SQZKadbOgBQULXv5jeCvvxldUGnD60p\n6/LZ6Jd/o2IfGGclKtgx98V+3xH7MrFjVh1Q8dm9GRzLZ3YNAT0tuhQd/xUS\nzM9qyqsCrO4MgAkiRXtPwQyrmD1N4ZrsdCdYoQ3lohNSdEVLhq6r5ah+9tbS\n6hU0Co/ulM5v4iC/+zhRKAG4DCzT9RVMRBkwL1LjLimatkM/W0HeEBDHLBhH\nzi8t\r\n=pon5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ab5924ae38bb3ce40d3b1c303e1ae6d175b844ce","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.70e1efdca.0","@material/base":"12.0.0-canary.70e1efdca.0","@material/shape":"12.0.0-canary.70e1efdca.0","@material/theme":"12.0.0-canary.70e1efdca.0","@material/ripple":"12.0.0-canary.70e1efdca.0","@material/animation":"12.0.0-canary.70e1efdca.0","@material/elevation":"12.0.0-canary.70e1efdca.0","@material/typography":"12.0.0-canary.70e1efdca.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.70e1efdca.0_1625159261808_0.3831225449775377","host":"s3://npm-registry-packages"}},"12.0.0-canary.435866d32.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.435866d32.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.435866d32.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"758b091019aac79a5bcadc6cb6e5a09698fb9951","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.435866d32.0.tgz","fileCount":45,"integrity":"sha512-YQlOR/5bw4+fxIZyHuCagaRXgvCLg9CsrR+gMCWV4/OoIk3IPj5etcCUIqmazjWI0wYqVmj+iRPHMfo9sokqVQ==","signatures":[{"sig":"MEUCIQCqthkjG4C65bUIywg1V/LmOnU2WSI1nksNPzQmF2cS3AIgUeUSNBfzpeF/mhmCGLqGgWjV9FwvAvsrA0gP1jgdsM4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg31lZCRA9TVsSAnZWagAAxzkQAIRVS5a543WsfzP6Qley\neLLzZx4c/8zXANZxodhh4fdFugmFzSwzrnwUClh3a8rcHWp3Q1/WgVM1cP8U\nWhUYzRyT1OBI3sy4T8SCbyDVC0yulx/hqb54v44notyUKnkHgid6RM1ALTce\nQVusPPKTycqiXIsWpFdOUAEiBgvwuqu22SbVrtLqY6mRp0/vzRKdkbsRGZUv\nQvdvXDKKsqpCSj0tYtpczSO+RUrDR88Tqah6waywqWTxDmDNohZylmMnojir\nINHMyeZOITTgdUEc7P+LguZBxmWF10gTyqUxeoqplZcZ73eZLnwhHdtH+Uu0\n2ZbWfQiCxv4W9TqwC0UkrfQrw5N9Y5Gyrq+DBoIBhSR5xsal2PxSCCyaOH8q\nlLUp944ffdbdE9EtpAn7ebtEYGnTxNlBVzRcOjA2o8lgQBeOojAbdlea8kEU\nfA9LhrmWuBfXy4/gR8jgsGOVzSWoNXdobWoQA6RXpgrHnj0p4eLUH6o0T7Gp\ntugklouTkV006wYNOkSur1mRaN7YzaSjf7/qD4fo+tkRlPISOtsh/R1JclTR\nEMfrrKUB3ksWq30lJanz9N+RyZJIMfEg7wMbwH63yPtStszzAd71rLJqhatO\nHKq7T+Xap7YQutcV3eDO+b6Xt7NkPwUcNk2rraP6rKwzEuGoqbo/0l4sWmh6\nWE1A\r\n=BkjQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ecf68c368bd1ea5571aa4da569d6fe6c4b8b8caf","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.435866d32.0","@material/base":"12.0.0-canary.435866d32.0","@material/shape":"12.0.0-canary.435866d32.0","@material/theme":"12.0.0-canary.435866d32.0","@material/ripple":"12.0.0-canary.435866d32.0","@material/animation":"12.0.0-canary.435866d32.0","@material/elevation":"12.0.0-canary.435866d32.0","@material/typography":"12.0.0-canary.435866d32.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.435866d32.0_1625250136742_0.5006831685492823","host":"s3://npm-registry-packages"}},"12.0.0-canary.d0f9f3f2e.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.d0f9f3f2e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.d0f9f3f2e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3865716ccb1f15521af4232a4298ee60f399bfd1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.d0f9f3f2e.0.tgz","fileCount":45,"integrity":"sha512-fgOw61D0kMl4IkwkLPEhF599ZDNm+hi0x/np/NbPbkXxQ/8iryq8EjMWFczQ99tUhYJ4Xm+BVCy2ppvxqCXDng==","signatures":[{"sig":"MEQCIHUWmgWGh6xWg05tmZQ++6JsTcRxCyEnR2o+k8UEnwZNAiB4zdtGhYDWwruqz/FkqAgWhaG5/Zu/QraMqYtx5VKdUw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg36jGCRA9TVsSAnZWagAABmsP+wZrjW/Lkgld8gOmqCZY\n4n9NR171dzN//k27ZV1Hm88vY+6On0e22bTJrZrR8IaTKGS0AAq2VCbV49yk\n2bX3dLYfxZW4kUjLaoYyW+Y4yc8KJLSkb89SgoVXX9Eu+d4W41+/3qtLKU+o\nmIhd78M8O9o9Bj17B5kUjbtscMRphJ7/ChQ7uyM0HIDQ9ufVQYSR/K129u5B\nQV7h38WAFjScEht6pxnEZpkUuUP72Mq4YDTul3hdvTOC+gT1iOBLhbnkUXJE\nrlcjBWbZ4oIzI5f1FaO/ymqQD0eQla7rocmFOFS2WipcUkoZBCJKCF7RsOHs\nSGLlqavaEcBR2L8VKQAhip/2MksuJcxX6KicUK8WoEcvhLTj2p6CV7fWtPs+\np7hE5uc72tI5aZayINHrw3jU+hVpGNxCK1ncz6sL249bCVv3g37r5dkm6vtl\ndKhy9/EVJZdRyDc4OYLBcI5/nS0qUEQ6TOQRxEplIoN+Hwz/Nri32Swa6i7z\n3j+iqmdo9WJmIm8aTHPwaNfYR9ilbz8/blaNZYpwHT2l8rU/hil4NwLm1y0Z\nznJ7xC3sw4XLE5oNhfgq8f2N41wWDCkPvjQUJI6tuaf0Senr0y80/JErmKH0\nn46101xMviG/U7IrygMEqoJc+2hzq+ozeSThy0ZK3niKj1KUITaZetwzRP4R\nPGev\r\n=pUPJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ed31c78c6a84cb24353ffd1d406693496f090e29","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.d0f9f3f2e.0","@material/base":"12.0.0-canary.d0f9f3f2e.0","@material/shape":"12.0.0-canary.d0f9f3f2e.0","@material/theme":"12.0.0-canary.d0f9f3f2e.0","@material/ripple":"12.0.0-canary.d0f9f3f2e.0","@material/animation":"12.0.0-canary.d0f9f3f2e.0","@material/elevation":"12.0.0-canary.d0f9f3f2e.0","@material/typography":"12.0.0-canary.d0f9f3f2e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.d0f9f3f2e.0_1625270469844_0.131435189342477","host":"s3://npm-registry-packages"}},"12.0.0-canary.adeac0549.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.adeac0549.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.adeac0549.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c778180662397e8f5da1068207f2522861c90c37","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.adeac0549.0.tgz","fileCount":45,"integrity":"sha512-Zsh8WAlJhH3ed+13bzsR6kdPM74Er9rbpZiCki8lTa6B+UZogMQ25zSWL5PSpJq/JS/rxk3uGnpYMt/8oVqnIQ==","signatures":[{"sig":"MEQCIHBmJQMrvfEWDyH3bXdpGEvPv1ukqt4H0Sip1BHrdj33AiAuqYA366DPx9LpLNCMP83Z5kW2/g4BrOecgBsOMPLnqQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5xVyCRA9TVsSAnZWagAAa7UQAIT6Tu9MRK9o5Zbr/q+L\nUOTP7R0A1GzecBiQS9ymeEkssRGTCtTiqSt36bofqVPv6bUH6WaonidbxcTJ\neynJRmJHSZ73T8xycXYwgTs82u6pMJdxxTzauS29NtQUQsVNAiN2rA/SdUaA\ntYyekNSQoR5KeyuQNlcpI85g64uGFRkKFzvwEZWxLxTnCJOW1zoNLwcULBbB\n416A388tTS8MuuS2PEYoFQeTWJDRPH2ubazpMBh6UCK/m9tfsUYHYs7c2gBc\n/OX5mGIt6VtX3ivFjaGKIeyYGwMxMQ7i70UIAE8ZiNQhq9QPMtVTEhvuKJOW\nlHLdVaAqkHDItUe8e/v92DU+SDF7EBT7vzSvmeGnVc6vpqITcaEOAl8kner0\nqE544lB5olEdiq9onjnTahwaSy9lLaPonDZ/Tf7Bw/IWJJiy39SgiRn2vMH6\n789gOExLHirDfLz3K4q/YYZlU3wxk8FJizVjDuVqPi8VD6hMQzKBTU0Lst49\nmZdHKaNyQTeaeLXlGcHiRptZxMrQGwi5/cr2+71mrs4IxjB5cgB6NZkYakju\nLrGDjQLY4lLKEVim1p+qegFNl5iHtKgv0ehNPJTCqirPdQaZW9vzj7QuvWKY\n7A486cLYS9xyBR7PdRwI2zZFg15IwC6Vgr1N6JqfQ/AtFHwfBuiaFzFdZW5f\n2Zo1\r\n=EkXn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a189bfd7e13b17660ad97870e074af0ee245e36d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.adeac0549.0","@material/base":"12.0.0-canary.adeac0549.0","@material/shape":"12.0.0-canary.adeac0549.0","@material/theme":"12.0.0-canary.adeac0549.0","@material/ripple":"12.0.0-canary.adeac0549.0","@material/animation":"12.0.0-canary.adeac0549.0","@material/elevation":"12.0.0-canary.adeac0549.0","@material/typography":"12.0.0-canary.adeac0549.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.adeac0549.0_1625757041619_0.3258471107362566","host":"s3://npm-registry-packages"}},"12.0.0-canary.068fd5028.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.068fd5028.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.068fd5028.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5401f2f88534b25e5dde1d97a4d484a8bfffe04c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.068fd5028.0.tgz","fileCount":45,"integrity":"sha512-vHV5Ec7m5sPRfVo/Olb7RDztCS5J50MzYkQlQFxTSKLnbzNa3UHCjc7LPaG9LaNkVBJH0OC2m+Pqugw+Ab0aEg==","signatures":[{"sig":"MEYCIQDk/ZRAHym7/9w7eFd6nTe5JDKA04Tpdwc/PeXNtOgDZwIhAN85EsWrLBape2JUfMEO+I3jSE50LghYOnNr9b269WhZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1134249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg50xVCRA9TVsSAnZWagAAuq8QAJj2P175YHW7zPXlsjR2\nGcwV1jgUzEeI2lglo1zA//IibYNuS7RgWkS23auHFvvBWb0apKEafVfo0/Ha\nTl2oIWhkk+eLYBb+sw7IfTDVfQgnOIu2vTvwzwsr79fQvdBbtOxAKdms+14x\n4ks7NtXru1jXhKr1mbxb4iQIIGEu45ZrABDgxhTWNtamYVglODc/sgjWhLJa\nqINSsWx3XtU/EriSDh3V8UTi5Y5Pd/IoKogmqaKYRyWgFuIilyW2LyHEA1X3\nCEgtjaFv/0T2yAac7QpRfal2RCvP45l2uo2h73sgqeeQce7Co6VGldlWekHX\nDG34kPxWj4ruGEFctm2QhHqFO4PccFDh25YzcnWbqDNAB1ri2MPGtiP6owLA\nDUocQn3M98UBUgduvLKEQZ1OwPm5o33bAMeD7mnhi9PT64aq+oYqkfh3T+Ox\ngDHXqH9aH7Afwq/qiWgshAQwnviGjGnAW/iIQsZ0rL2ukai5MM9fHGyaVVLr\nQLKle6+XPpTgPDCHl+wD6M3Od9J9q8epZJRcdXe4eVEr97b6FwlKMTqgubJb\nZIJlX2bWlU6gJztPc1wgUg2AoI05JFMNtg0GmIsCoJkZRuW+dBsY3+7/6+Zy\nUMig3Luazoio5cJnVH+fI63II7liyiWqToCSiqpb0T41zxypmMQK0o1mH0pv\nl5If\r\n=4dO9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"daf6a798ec3c54ddba492f33c939c41a8d88655f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.068fd5028.0","@material/base":"12.0.0-canary.068fd5028.0","@material/shape":"12.0.0-canary.068fd5028.0","@material/theme":"12.0.0-canary.068fd5028.0","@material/ripple":"12.0.0-canary.068fd5028.0","@material/animation":"12.0.0-canary.068fd5028.0","@material/elevation":"12.0.0-canary.068fd5028.0","@material/typography":"12.0.0-canary.068fd5028.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.068fd5028.0_1625771093225_0.4288859300229615","host":"s3://npm-registry-packages"}},"12.0.0-canary.5dfec7a14.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.5dfec7a14.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.5dfec7a14.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"edf6be97674b3d3f21ba2abe6c24a7609ed0f5f5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.5dfec7a14.0.tgz","fileCount":45,"integrity":"sha512-hIPSL6ACba4qfW8VoIbIFGiESNebtEFokg+DeaHN3Xpop8nf0S2/H9GTAQ6pGXM8BzZVsbN62Tck5TQx/961Hw==","signatures":[{"sig":"MEQCICb3Cq6vTYaPUfN17LF+UGmt4Dh4cYb6FEM8wM8wuBSmAiBjuhlE2AIPOcH0h5bFP+RUIe+U6rUbjKJuOtgf0f9I4A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1136293,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7KB3CRA9TVsSAnZWagAAMqYP/3pDtJO0tXPwguRwlNOP\nsdfYIUCl7xjsD+PjVnIUhrSq0En21pKdSS/+hY/xBHMicVxbRFROavpWyZBM\nIEBRtMGb0LHxo9we8oW+E+TKc+fP4Kl3S2jZq1J5HYifZ+ZRIk4fHJmgc+DH\nnnSiu8vTHLZ2SqRbWJFo7pBKllhS3EX1sklZsyyqw+BfNIyTVhhkiOhBuPHG\nA5EcZ4oNHAlmw9odXGd1ULj1f5xl87zF7ibHwED2NtO3bUrzwd9PvR6jqTZq\n+HV7DW2DUPOyGNEdSj8awK7nzxPj/D9tMNVC4uHmwyceRx6w/22vHfHU/NZC\nyZaUnurV8VMxYdyJoVtAhai4KY645lGRAylxbk6EO7X2c07swMQe3NhJB1uM\nxKNFPbm2emcHl6JPrwfozwVGiGcNDVDeZPAZGXXtHYLB7YEtwwwY7kzQHb2A\n1bK7unt4FxXLcHRkFwLoiRQRLDwIvL/O0wFz2eH/oy1OxxSJhuZMzBAl7dRv\nOH3AgaWEo41E2+0fitrZjQA3OzgrFIPKRQHS3MiO0W/BjKedlXvE4FcPGfqj\nSQ9GgAVSIh0SXP+Q4DnqeZaJ35RIrc4C6/t338xji/g0g6TNO9Uhw9HBPS4L\nhg20nRp1D3jujPRiRzRlSdV3tLWj7ettpt0UYHEz6fS/tllSALiYAp2yltq8\nICB5\r\n=CRsd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7295656b25be2c03cf7ca7ca800e7dbec4d9b531","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.5dfec7a14.0","@material/base":"12.0.0-canary.5dfec7a14.0","@material/shape":"12.0.0-canary.5dfec7a14.0","@material/theme":"12.0.0-canary.5dfec7a14.0","@material/ripple":"12.0.0-canary.5dfec7a14.0","@material/animation":"12.0.0-canary.5dfec7a14.0","@material/elevation":"12.0.0-canary.5dfec7a14.0","@material/typography":"12.0.0-canary.5dfec7a14.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.5dfec7a14.0_1626120311163_0.25530623788901163","host":"s3://npm-registry-packages"}},"12.0.0-canary.07a73750c.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.07a73750c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.07a73750c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3baaf7be293b0abbb630f7e52cc7fc99a4ddd4a5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.07a73750c.0.tgz","fileCount":45,"integrity":"sha512-uY5MpVB47Uv4RCHtGsCaAbWTT1++NYk4MDFdrFFOuxFg44ywIfp8bF3IcENcasC8uqhiVi4GUIt9vFAPlHJR3Q==","signatures":[{"sig":"MEYCIQCNplIk1bL5j0/+HVetoNkwPl6EUTauzVk7fg6coj2GGAIhAPERTmGY1RTmL8Bjile1WHOsWhF99+8uTD/RKRmtjKVg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1137065,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7KV7CRA9TVsSAnZWagAAprMP/RGgAjQjGkroKoEFuPfC\nvP3DEROhJKZfHFQ+ndVuLmZTH++skpPbSyWqsFGItjxRru8wfwUIinGpDG9l\n3tqPAddflCHiQKQjf99vJ+VdVhPDA8tWvPwoJLj80IMeTBrnEzS8gwfcNojr\nu14Ujz/Ytnum4Yg0GycO9Yao/H57ax2zFWH+sfZqLQw5kQlCVLcJhvZ7h4A1\ngsN2/SzAZUIbNptt0HXBQY96fzpHcaJHSl23xXtDbuE7quiBpJw8to5qdWnZ\nDLRbGmH7e4caFE4tmtqfAeaZVBx21ErzgDaDIn4dMqPqk169Mn4giMBxhOtt\n0MLMbAiQPwc9p4bzLB6vg492M2+MoncOjeJVhVmGlDPR2spRHjqBKKi7tt9N\nlwfRJ8AoN7J4HLaHpa7VYEC78g6IApbQtBh9Rg9sTiU/r1yRy1pZWi5TpORi\nwCEDGn6JY30godPL9QtKTs3osRmyXfYk0FiXsl2qWXGhyXp/TPK/tl+2WC5n\nOyk+Xc3hI7wZ6691g3IyV5erwC0KBS2HVqyaglR54nx6mxyS0z3yofyqytR9\nqLvlNnR9/fVFygy49/OIos0ONB/A+kPUf0m5ruixG2MQiB8WTS97GmV1gVBX\n55O1X+tisfsuXaFbzaWMKQQlg3TzTY8AA9wshhFJNDdQRAJdhb0pJWjYfJiF\ndMAW\r\n=QUzu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3534c8199752b92a52696d2065e73b8e4a997195","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.07a73750c.0","@material/base":"12.0.0-canary.07a73750c.0","@material/shape":"12.0.0-canary.07a73750c.0","@material/theme":"12.0.0-canary.07a73750c.0","@material/ripple":"12.0.0-canary.07a73750c.0","@material/animation":"12.0.0-canary.07a73750c.0","@material/elevation":"12.0.0-canary.07a73750c.0","@material/typography":"12.0.0-canary.07a73750c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.07a73750c.0_1626121595278_0.018826511088736453","host":"s3://npm-registry-packages"}},"12.0.0-canary.3e4c6dca1.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.3e4c6dca1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.3e4c6dca1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c1f5c9704fc4d43a3ff49e8ec4f996fdc7d9afc4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.3e4c6dca1.0.tgz","fileCount":45,"integrity":"sha512-2JHg9DsW2igrRcC2irULHsDi5QxmLF2esmqgiLSUc/eZRDC0/5YxZZ36uf/CYE/nsJjARFW3se0D5ZDoJL6Jmg==","signatures":[{"sig":"MEQCIHPdWwiBWiUhvMeMjXNOh/5pNgzHU5ZfMAvecCkmmGNvAiBv/eXcw2b87YT/DQh+5+xhHblMMCJRHx8cwujUDIyMKg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1137065,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7PHhCRA9TVsSAnZWagAAuc0P/RaDDKBeOPKteHmo+Ujv\nvJki4KI4MkubQndujeFnP5X5XoZ5CA3bwO22eOOmE0h6lwNxUhXJjiu39fmS\nePXuWKD/tNXHX2kKAOSCUwUaLf9L14xT53zL3RWYrtVrkFny/bYvBzBjbLwb\nwKxU0dwLR1DPkzwzT6atQkJBOPl+PPiP8EP6cPYxwDOyS9jpz3/v6QJ3mVwy\ncjHJTb3L56uzZ1ZOIqwgC706tjvlTY0hV1ROL88fZRl0O3MhVg0pVnl1rHx5\n1sltO14MD9qudJbwgndYmAhF6KG7ApPpTT45nHP8R6favkipWSSAxhFVtAHi\njr5qnIJMHpcpBgNzKYbWewniS3x/S4tU7a8EOPEmS9At2VH7nb/1MBQYnOKV\ncAVZnPxeul3cqd6G80vmEWXj3NFJGPx21BogC3mC9G1TKV6A4gkrDvfgHBX1\naF5gagz7+4h4t59ZhNd8y2d2uMcLVfJFky4AYDiyp01H28Zgenn+W/MuDD3P\nNIJSOEOR/B9RIMV3JcVQ/psPI4l4H2u64O6BS5eA997l7xhzRVGtrbt12g72\nX9BgTdxO6YrPmE1hoUneYCaR0zZ8lnLQ8QnqiPBTcTI9jYrkfAWUfQP1IORD\nZp9o46uw6HKlWvW1p4h4oUS/ni4KUI62AgnoxJDW6ulKb5AthTCtsk2bK7gT\nxmKb\r\n=iW8Y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1a6a8bc529062b0303c0df830b36d3110a389f4d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.3e4c6dca1.0","@material/base":"12.0.0-canary.3e4c6dca1.0","@material/shape":"12.0.0-canary.3e4c6dca1.0","@material/theme":"12.0.0-canary.3e4c6dca1.0","@material/ripple":"12.0.0-canary.3e4c6dca1.0","@material/animation":"12.0.0-canary.3e4c6dca1.0","@material/elevation":"12.0.0-canary.3e4c6dca1.0","@material/typography":"12.0.0-canary.3e4c6dca1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.3e4c6dca1.0_1626141152581_0.7712280091741148","host":"s3://npm-registry-packages"}},"12.0.0-canary.ea77795b1.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.ea77795b1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.ea77795b1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"14de4e1db9ee761c5052cbae014b433a9f5ae661","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.ea77795b1.0.tgz","fileCount":45,"integrity":"sha512-IFxugkArJ3zJ9j6FVfS6bCdy0FZ7zm6UkuSgt1VU330Se7vkBDO+fqmOtZpElGZ7c904PCttXh+3eYSBs1JYqw==","signatures":[{"sig":"MEQCIF5JRqM6qIuM3RPXGGjxKnTbGLr/Ahz5DeXZIvQsMPBXAiBXMDW04nrSKaw9Zch9ZhQtakn3nQx/Lz+lM5R6GPMvOQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1137065,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7bZICRA9TVsSAnZWagAA63wP/11kkhW/Y5gBvPKUkym5\ndox8sNnxwG0MZ6nJLmH/heRokEl8vJ3oNwcJ0Q0zo6FDv+f4igCFU4/eqi0h\n9Q/aBoQRuyNQ5BJ4UgF5S4FjIxUVpcO0Lwfyh3MR/rKMLWGYxpM9QDqajVGH\nxTVVIATID4BSsCYC4tesxRTLcJvA+6OKdVW/Mqc43RP6bcDhDR814Sgtdhs1\n+JO+/G491GJHdHzWBnqDDxjM3PhMf1rU9dZYpaQyDSVSWFg5fouBQOB7Mnvk\n0Fd6FDxoVGpyopxRWDG1gbVEjusfewM4XdfYmreHFu6UZsOFtyEZCqDPxj6n\nzwVqiNbLv8CHd0uibWHAoEZ1+r1h0PL8FACeQ+VTK8/OjNUGyWlpjdQck4vx\nafrr3B7Uw6P8KUk/A9UZcxS+jYnteyvrLvajboEycI+hFsFMfOGj5Jt3DWtt\nsTn1lB35NkxsM/yAZEn2iZoIyEe9j4Cxe/ARv18BJn6KO14FIxUjgSU6uWqW\nUo6j5rzKH6WoL/HZDMou963pEZSK0XyXL023Ml/Tri/r00RQMTjPdxkntqN+\nb0fHaOhNugjcOwE2lqHbGZwblNiT/S0AOsmIrf/XZvtd/6TbFzgD9LKSYrPv\nGxvzJmm2FKsaoW1CBiLTDQB1dOqpyWM8blwBX8x4EOVgzLgg9i+nw04nBLut\n8TYS\r\n=4Wcf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"830444e6567decdb85bd9b22a92d5f85b103f107","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.ea77795b1.0","@material/base":"12.0.0-canary.ea77795b1.0","@material/shape":"12.0.0-canary.ea77795b1.0","@material/theme":"12.0.0-canary.ea77795b1.0","@material/ripple":"12.0.0-canary.ea77795b1.0","@material/animation":"12.0.0-canary.ea77795b1.0","@material/elevation":"12.0.0-canary.ea77795b1.0","@material/typography":"12.0.0-canary.ea77795b1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.ea77795b1.0_1626191431758_0.8072856512756559","host":"s3://npm-registry-packages"}},"12.0.0-canary.15a179fad.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.15a179fad.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.15a179fad.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ac0563967abd8a25947e4abb96e6bd3d0ddc389e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.15a179fad.0.tgz","fileCount":45,"integrity":"sha512-fNKF+5zoGKu7DpXOcmSS+1SaQPv5uCaE/ly5yCdCgEVOGHyPkGHWYnqHlhq+q3qjOHt2h1gYGkxo25Bpx4Uc1w==","signatures":[{"sig":"MEQCIGYCnBSC3U8ZqPAg5BL2m5ntvMWKAcrpmeBbRPktkTYTAiBBqYjjJAHcZ4XrIWysPp1J+9qz0XQPiKhFwy0kZYEpoQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1137065,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7dcdCRA9TVsSAnZWagAAZcYP/RmuM5PnZ1sB8NP3ZUOm\ne6FZCUCFOs/6yjK45O6OWFmJH/nsZ6oJZHlqSPCEfMFWchmks0hCxfEcD4ow\nq02L9mYwCnkp/S8KqoWcf52GmWHPCukdqyJOxsjVR9Ut1GFFQ8aX4eH//Tz3\nKZp+U5Tim4C30b2gunUCpNyJnUwXDuKRbCY+AG4+NW4CiLjIccAaDWW2+pAh\nd8lUbDEZRZjtcWBqhDXEQeGzR8N+QzxVbNO9gpNsMK/epdghvxDYVFfpxi2X\nlb+4sa3e3BbnIDzClONvCmFiIG9DpX5Ho+BxxARBaZ5388lOhUtWHb353zPl\nOVOhqTaSIdHOZ4peFFLca4hdKqEl2EcK7AXpt5812Gf/EEi4GUeF4emEgMnO\nP4NZ/unVel/fJgQtEhmxlNJvCCwwsGLsYRZ+J3JRtXL2Rn//sohtIXao6oku\n/0Hfd09220lVIZfPxHs6cSrakbN/ZeXAtQFbVK3TxpZ66lviRk5pf2pD2Llt\nMSYlnkQ+6OF8Q7ERAElSZ9yVtZV9OFb0avliP9rRwLy2EMQ0OKPscpl1WI3A\nkUy5yA3NQZoFaR4RdxncBP0IctQi5XOzkC5Vlh2BNMQlS0GzuSFCCXMRBJwD\nJZ5nz9GLovqZsJq1RiRdc8972JgpDEa/8MCucy4EDGKO3rkpAbs0w1JHGWLj\n13Dj\r\n=mdTq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"eb659691c3a77be825ea082c434c0b24c53cd610","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.15a179fad.0","@material/base":"12.0.0-canary.15a179fad.0","@material/shape":"12.0.0-canary.15a179fad.0","@material/theme":"12.0.0-canary.15a179fad.0","@material/ripple":"12.0.0-canary.15a179fad.0","@material/animation":"12.0.0-canary.15a179fad.0","@material/elevation":"12.0.0-canary.15a179fad.0","@material/typography":"12.0.0-canary.15a179fad.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.15a179fad.0_1626199836940_0.6906316549204377","host":"s3://npm-registry-packages"}},"12.0.0-canary.c73142a1b.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.c73142a1b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.c73142a1b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1b25a6a585063c3ebaea43e95c396b012215e7fb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.c73142a1b.0.tgz","fileCount":45,"integrity":"sha512-wPe0jjv1cdxMhy+YMns+fTIz+670h+uj59jIUmzPVaL9kAaFrsn8RvJEsCEuArBVl7IyjuKAO76R206KiXdbmQ==","signatures":[{"sig":"MEYCIQCPbI8OuUMZNVfE6eq5ECa05bv54enMDn+bIfDShJ9nCAIhAMW4orKKok75+86q/efHjlsrF/d2dPft3xN/fCy5TgEc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1136955,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7d9ICRA9TVsSAnZWagAAjMMP/RWiBAMCjNz18PfVbnt+\njVIpQJP+teWNjJ+bZlmeJZSAXX6LYCpbxtTsO75SqgXn/9aw6YlSFBtyugzJ\nOi+Wjrp8RWFLYFmhnfSBr6js/y3mYwqKnSB/zYMv89juC23QtRNEcDz+NsbT\nQshM5GQFSUFEKMdtMUZRtSOc2KYoeY/DeARHFnfbx09J5Y+Q16Y433QjCOj3\nr8jIEhTILYixr7ErUQOue7I0oAMzOWiOJxzGiDzHC5/S7gw5DkzweBSY6xGA\nnpdb9bO7yMux+zY0FtMx5iZwHa4V89DPFOz0b6gT37Ac76akwCMZpV8CSWuX\nfxKmqKumaTjUALeYS+a7VRIVT4WRzJww357BqBM6aIu1RaL888jNvfr32ww+\noT/WNBYxyrwgQx0TK1+2Esnf7j5JX30vhUSC9/qEx2ptLphQqKC7IXXV5A8Z\ndvUI/HwFvc52I92Sis0tN6bPmTk4eV6BKzsPYql48cPygM11EPVggolgorzd\nDtPmkP4v02axvfycYgDw55+u0VVHWhPFjObElmMBaUIE1JcK8+s5hfbdPIlE\nyuR0836xJSrh746INCwyZBGY4muoQC176ZURBS3SEcLhJh7gGWmGsX26brf6\npwcVYkwuZNBSABzFFl7m5bLhU64c5jYKdi5do8eSQa77v1jjHJVsssQZ09Ld\nXvJH\r\n=lgA4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"037ccc3828bb7b7c6f3375754059c10c231a6b60","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.c73142a1b.0","@material/base":"12.0.0-canary.c73142a1b.0","@material/shape":"12.0.0-canary.c73142a1b.0","@material/theme":"12.0.0-canary.c73142a1b.0","@material/ripple":"12.0.0-canary.c73142a1b.0","@material/animation":"12.0.0-canary.c73142a1b.0","@material/elevation":"12.0.0-canary.c73142a1b.0","@material/typography":"12.0.0-canary.c73142a1b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.c73142a1b.0_1626201928443_0.6877438118353061","host":"s3://npm-registry-packages"}},"12.0.0-canary.d923db73a.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.d923db73a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.d923db73a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f059247c4e14d61dc46f0391d546a0d5b931561e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.d923db73a.0.tgz","fileCount":45,"integrity":"sha512-UW3iViqFmRs4UXY0LyG76fy/waJZk8ERZrWL79K91/hdrWKncbdb86PKhxR6Iky/USBfOmB7MrRqseiqzAGJtg==","signatures":[{"sig":"MEYCIQDhEUwIRW+dWrUdC7MW+UNL2/TxVgwkkLlLHaIA57PRvwIhAOC2nuIUz8jGbW+87qtupe5SAYuU6XXl2TB8M2cx20gc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1136955,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7f2lCRA9TVsSAnZWagAADjgP/2l67p/8M85ZSngeqi5v\nZWoB05lzI5iRFcUicjswu7qFKJREF9hH4HulrxM09lCUqksUBMxFG2EQ83Jv\n0duN9wrrujPB3fYZ5kcZI6uqIZZUM0xrhebiHP3QmRPvxa37BlaWWTlwiSyv\ndDosUi3jqlfTsK6/LJmVH2wYO710W9eMfpAxTrypEbxOXPGOHG+W1TG4XY98\nrI/Do3TfvNG+q3wsVQO/fTmcmI5IUNjKW3hlO3FXCTSgBm+ATPHVT+3RXujV\nnKxFNGo+j6CYe6ZfTXN3h6but3acSgj7Hh4962HvUHvdfnn/UmhQMl9wjj09\nKz3TQk51cGofAIcATM+0yW9yFaaFGWujmC0+E3qm/ssekrXSFSKeIyNUhh2c\nZKG5I8QG38NP7JBMVtKpjqOONc35bHLzyHGbryeOyWTLLVDhr9Mfo9K09bI/\nfFeTfOzwkq0F5suOqrU4xYth6N+7FE9dUZNVS1ViSqCKhU4NhuoXhEH9imKT\nSUfam9a7lfbkOcYQdpQbhY/KCEt9YIOX8HZrgS4VW28LTPCTLHjlAsDbWmFN\nd/f/2EUREYUDT0vsR04AHO50QOEXFZBY6iGHFo2+LA5UbdKnrzqZf7muNc6P\nMD5HUPAdzwemRzl1XM+DmIX4d7hUEVcrELN5mv8vyL+DJNshn9SfqNaRr6n7\n8YWh\r\n=ISiZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ae010eec116ad324d7e442d7ffac5c8ddcb9edf6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.d923db73a.0","@material/base":"12.0.0-canary.d923db73a.0","@material/shape":"12.0.0-canary.d923db73a.0","@material/theme":"12.0.0-canary.d923db73a.0","@material/ripple":"12.0.0-canary.d923db73a.0","@material/animation":"12.0.0-canary.d923db73a.0","@material/elevation":"12.0.0-canary.d923db73a.0","@material/typography":"12.0.0-canary.d923db73a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.d923db73a.0_1626209701427_0.5203852585391224","host":"s3://npm-registry-packages"}},"12.0.0-canary.22d29cbb4.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.22d29cbb4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.22d29cbb4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7aa2fa79ec9a701501cbad87c685f082ed3dc759","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.22d29cbb4.0.tgz","fileCount":45,"integrity":"sha512-fTS0kOHyUAKBhtz8olDvsCtZ6VxJEJ5QNUAZdHbJsTjig87poLLUP2CKJ18t5DjzW/KFMFjNYMSbah6NOREvqg==","signatures":[{"sig":"MEYCIQCw5CdabNBb98aLOiLCsg3BlTRXjF5tolu8lEB5E3QCpwIhAJQAhj7AEj6oy7zw7fbTKmy4mTZxjKOXMw9kTbWKC60A","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1136955,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7hkHCRA9TVsSAnZWagAA5XAQAISRebzPwV9eL9M3SFB9\nukXd323OeCAHLOjMfBwQy0CRTWsDYJ2ENF0CqqxzaTKU/0z8Hj7I/L2bSrJE\n3QrlxnFmuisrJYUkjEFUg/9jgmTmnyXX4aGKmGrHzh//CDSvkV/0NVpRD7HH\nG6cVzuAdE7+WUO/VStcShdDkp6ORiZGAzc5W4bV/l4XvPt6z1IQ+aBZHQ5VG\noKwJAnIaZ/ZfWfMSW2wwwtVxLdVbIWAA0sl5rdYeq3yko09t9gVuBFLVu5hg\nWtEex0gNBxlfboWHgX26uugYo4eSGdOrZSxJcZwSR9WtlSQ2oo0jZTXMEohf\nU+zTvJ67JLHYn9/lKewtXxgDrhKZzTPo5IH+tFkz2XjJkz3aqpBLmvYTVz3n\nbb82CpevnF9XgxCv5nu76NCqNqRbZmUht2fOM/eFGW+S4G+tgJoTWxPR0BLn\nE9ftkOzR3ST7EHXlON+RMGAQjgvoLwKRuSETkoE6v1t0GESQCdQW8zhSBNnY\n+FPa/0VOAy7T5x95Q/ro3GCgOQPIQZICq8ogJJUL6BK+M5QS2zeGJXvZFtzz\nJMtPx8/HmPVh3QzJuISvfiEenwEYQEFOqUWU4Rm/p36NTtsJ9rUHpMj+cjj6\n/p0R2kDWCLGxqftTfDA6IuXic6mbf7KvKiYspNqioKGdjVCjldRX/r6d+YbA\nW+gU\r\n=uIin\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b37054450964af349924b81bae43ec6b3beb2808","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.22d29cbb4.0","@material/base":"12.0.0-canary.22d29cbb4.0","@material/shape":"12.0.0-canary.22d29cbb4.0","@material/theme":"12.0.0-canary.22d29cbb4.0","@material/ripple":"12.0.0-canary.22d29cbb4.0","@material/animation":"12.0.0-canary.22d29cbb4.0","@material/elevation":"12.0.0-canary.22d29cbb4.0","@material/typography":"12.0.0-canary.22d29cbb4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.22d29cbb4.0_1626216710646_0.32362343163521956","host":"s3://npm-registry-packages"}},"12.0.0-canary.2749604bc.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.2749604bc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.2749604bc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7103859346af3b1c86d731bab45f35a31c169c19","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.2749604bc.0.tgz","fileCount":45,"integrity":"sha512-TRPqcQd+CkCDXymjlQDtoZBaRcwbeI9wBxPsjO7xcbws48kRKRrxjBpLqqEeLLL/vncPeyVieCT7IG2ID05B1Q==","signatures":[{"sig":"MEUCIFq12b/X0/abwjCq5XIbiM+fWhRxwCwQQh4Wd05GZ8MjAiEA58FWwOFER1mdfZBpN9jupiIhmSEmO/pXqog7EhDuaZ0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1137017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7w+KCRA9TVsSAnZWagAA0uYP/0PTthVRFdwnvW8uH+Aa\njLI9jdQ3QqGCty+SoXC3LU6NWJ4sqNOTW82bB6y609fwR3sqKQjRF17Mfd7W\n4NjDG6Viuu1lVb6gL2efs1/ZwlIYmLcxeQiAQnetmVtt+cLKU0ylisdqeJPM\nnzRKWVvSwc12Tnq1yI4xvnjOREjimzXsDLH2B3DTp7HCc3vlWeDveqG6PJQS\nEPdECfDBdhQQDVoQY1avsmkPx9Y57MWFLboSoEQJVCg0h/IVMeJLxg7jQGW3\n7h1MzIt8lTXhAYUws6m5a53vO97ile8PCDWNlvcTt6I01umHmjANQVL+PwwS\nhYXOM3JHwyw3pdWLavNtaEwVy0+/+HoMCGscf9XfCbeNqbWTmbS8SukNIypo\nkEcq4nyaTF3PsrT1Zog4qBLWl5J0VUXw8dxmYTYVp2uHTKsJnDWKujCPYoik\nvAvW3gvR7fD9vLnOM30RNY6mBe9n3w9+B/GINuMF5H1flnyzWuLceXa6IVB+\n1kmkkv4VoIGKQU6xbbxAkp+W6yyKnIzP50ji0DOHPrVQPW0t0gCXJH6F5hdm\nybOit0aQ+Fy1E2KwzJofPnlYR5W6+BnWPljyQbVaFohZUtdt7BowA6bcrPvB\n/EjisraGVlp/QSWrBPQxIKqthi0nxB9VfKvLqCpgGyn2MJRLnasArqVBdqxh\ntCuZ\r\n=axv1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"58ae4287239fcccbe4c5dd9259164a0660c76f85","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.2749604bc.0","@material/base":"12.0.0-canary.2749604bc.0","@material/shape":"12.0.0-canary.2749604bc.0","@material/theme":"12.0.0-canary.2749604bc.0","@material/ripple":"12.0.0-canary.2749604bc.0","@material/animation":"12.0.0-canary.2749604bc.0","@material/elevation":"12.0.0-canary.2749604bc.0","@material/typography":"12.0.0-canary.2749604bc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.2749604bc.0_1626279817864_0.9341918551784789","host":"s3://npm-registry-packages"}},"12.0.0-canary.e1703bed9.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.e1703bed9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.e1703bed9.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a2b3bc29a2fecad0a3001d320f3b1b3036fe838e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.e1703bed9.0.tgz","fileCount":45,"integrity":"sha512-ov8tsX3fQlPV3ogMKTj/HSsKxRrdRFul3rRSbxepDn0R/ZvrXRzenV4cJiPKIlr6+trbapb8Wz3p4DjxXnRaOQ==","signatures":[{"sig":"MEQCICdNmOykCHNjb7ux8IpMV2By7Nj0FJHc/m5tow/7v5yeAiAWjSOzTUZAZHYotlGu8uPDVeB/CI25DR57RBEULZRFWQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1139497,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg71vdCRA9TVsSAnZWagAAC0YQAIc3kehedtIzoJnlcLqb\nXReyxgxtolw5kXSEcYHT5Vt8qBQdH+TzyS//INzicvXt0ZLtXANhbmdH28p2\ns5G9TqaQnkBvUddXAZyHaW98Hl0c1ICKQCMww2cNRDDyQ51LKlpwWwfxoK/a\nqSLBXZZ5JtH0anC5dLII76uCwxmKTeRC+gSrW1p25bi+QMwE+uJ95DSOrybs\n9+QzjGltj/VrllF4O1WzptDWg5sataKXhX7HzI6fv1Ss6FXatuaD5iAWJ5jZ\n9J8yiOATDZeyTuF3d2Fi+9v5bxEkpKJkWROIxF00PPR3Pp8NFWh+kSPMF0Of\n3di0BCDJC11VO2wyuq7yZSvzYKKqdoy8FdPpPcsv9sE/IZSvIrWFfNGiOZfM\n3ScM9uXMse7zuDlh7aZXu2L742xTJ43NY7eAccvQ61NjlcYxjrEA7YeCcAa8\nQAO5Qrb0BtFVPGyZx+Sf6dlCamlUxDOfgMmJrmQUhZTUIUGgOqXjimgWgSQ2\nLcodnMcgvjBKrqd2t+i/26YsCz1jkBiySc61Hyat2BgZn/vPho95YvqKZg6W\nWRO2umwo9e8Fo2V+UijqS+6xblXuTTJxAG1o5+Miu5FVoJp5JRiPb3/KlEnk\n1Dv3ohhZMw9esDJwNS6f4gKpTyXnWLhwl5txf4KnXOl7713BHfVApZyQbAQE\nPgqn\r\n=x5Q7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ca9075f939dcacc82290fe2b01214639958bde93","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.e1703bed9.0","@material/base":"12.0.0-canary.e1703bed9.0","@material/shape":"12.0.0-canary.e1703bed9.0","@material/theme":"12.0.0-canary.e1703bed9.0","@material/ripple":"12.0.0-canary.e1703bed9.0","@material/animation":"12.0.0-canary.e1703bed9.0","@material/elevation":"12.0.0-canary.e1703bed9.0","@material/typography":"12.0.0-canary.e1703bed9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.e1703bed9.0_1626299357197_0.12148237969170017","host":"s3://npm-registry-packages"}},"12.0.0-canary.de48eff0d.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.de48eff0d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.de48eff0d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"94f8148ac4b519f5e8d823a86c9d9e8db5fe4ddd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.de48eff0d.0.tgz","fileCount":45,"integrity":"sha512-UXYzqJ2saE/kaiSldFloOHNp/9rRiLdQSdl5RP7mAZavOhhOmDDBiZwWYvdu/BUy8mfsq0Gd3K94a9AmYjpEjg==","signatures":[{"sig":"MEYCIQCLi2VBvCwTEifqvVtETlKwPI/qU5ilfLntlNsnrGj5JgIhAJb+JgtvmFaXt/Rzg8dyA2AZoNjFQCyF4KHPk2gB0UiD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1137863,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8Gu8CRA9TVsSAnZWagAA66MP/2yGb7cHveLNvz0wpdm7\n2ZaGG3+qZGQOYXK6f64AbGbecUryAZjtYvTil6Gjfzsv0PdcQSXVdGTqrAnL\nntXAxi5nJAc+wdnP4zz7O5C7DQWg6YvKOyh8cj/sPVfACEzxsguX9oD8eHSF\n9ihT+JbSwJqMpdfgSxy23n91YnQ2nF+YxdeTdfSfKXXdPJoil+owXy8r9ijN\nKkLjdB+Stl43yhLNOf7EJTTRk4dF67B+od+wYAUX6mm9k4qy6vZ6tA+aMEnZ\nqNT3Zuw7yf8S5vbhk0lyr88ITlxyGnvzVJUZw2lXnyJMMLEdxqFzaFPmZvnv\nS1w1wT1rVvHq60A8tBd7kocAMjbpEl31H3ExVZcotJ0wrOT2I3VLKhq/rkWw\n/eb+yJL1XySZFFEf/Cyf3tZ7iLy/Bcx5g9iG7oUqm21oE4NmEgDiAZ3GiuDT\nLuEiok/Nexu3nmdpRIXRcx16qxT6rVV4OuG2czGhakn89NqJZv521otwakDx\nlVrkktj0Tr4+glK/8zv+halX/QuDZw2Ylp331NjnVX2s6I3Le5ph51Z5tk7N\nhdMJbK50DzUbRhpTOE2F0lfE1YdTJgEEHYd0Md+xNce66nni3C6EQc+t8Vmr\nl3qkfs5BH9bE3pVyX7o+tKKzpnDNHsyGcghoFHEfxjQ8ryYP1L0r6tWXKvZx\nqOXI\r\n=XqQ3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"121530dfc073c7b24dc1cb75732a0d4c0e6a3f28","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.de48eff0d.0","@material/base":"12.0.0-canary.de48eff0d.0","@material/shape":"12.0.0-canary.de48eff0d.0","@material/theme":"12.0.0-canary.de48eff0d.0","@material/ripple":"12.0.0-canary.de48eff0d.0","@material/animation":"12.0.0-canary.de48eff0d.0","@material/elevation":"12.0.0-canary.de48eff0d.0","@material/typography":"12.0.0-canary.de48eff0d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.de48eff0d.0_1626368956415_0.1842080392244123","host":"s3://npm-registry-packages"}},"12.0.0-canary.4f060adc5.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.4f060adc5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.4f060adc5.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"155c6a30c74ddaea8685cf9d3670805c5715c9d6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.4f060adc5.0.tgz","fileCount":45,"integrity":"sha512-NYxM6i70X24pK+oVhzLOtDBPcDcXygtl3zDkoj1ycjZDCAV9pcdyfG4+etgzgZnTpmOzPR05SXJd0fmwtB3Kog==","signatures":[{"sig":"MEUCIQDC7tC2DYTtgD0FWlL2RelPeTkB9BO6idlk/FMU3Wc+hQIgMrm4vPLnoCLpmT1eFFg6CHSK4y1ZNLbJKlOkT10Bado=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1137879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8IsXCRA9TVsSAnZWagAAKzIP/1rZHJ5h7URZ+uZOE2d/\nTkTDWu1pQbheOYW0QC2tpEyfzb5BIfYB3OG4DZ56WCcDlmw9YI6UaPSa6X1E\n+Hvf58hDw0IXUDW1RrirSoFPtRnZA7bnLisMDGBXFuHyCG/FB7KI95s27K1E\n3JC3jl9oimpYIGcDk7u6/FZUd8p/AZDhexmeQokcr5zg2SbQLQ30BgMT6u27\nvdANfQxjHnfRfVbIG/7cz03gZrYLP0mvkv/98daQXPyNqi5x85lSEjjf+sl0\nsgeFz6qTIy913hnON4Peezy3hKIR+ZjHQamoP58VtgG4xWPLAY6/NmQa6v78\nt+rlyF1ZZxZRqoJBbyDvMjdG4dKg8eN3KJGFejMz2a1mbwW53JhiPAggDB6M\nAurBPpbD6Io5Svfa5ukuh9NZY0+0udXqZfPJoljh6gqMZUHWs42P2RKgxvWz\nuRf2BYfw1FHDVCM8CdxeRMwsQUrljNiobGkvFI6gPXlYrRZLb3Pf8OtJDQY7\n/UptjlqdYFF3yrQ5fQ+xw4DWJQEmwOfZx15DFEplf/BoKREi5xMVO95uCEev\nLBUmh+IFu4Vqq2IRqyeejO/4aUw+nFNNdX1wME8QWJNBQ7ZmBxqteyTQurQO\njLUKy8vMZlsw9VLK1cOl69Uz2LgSCEiBA5L+m5F5fmtwLIjv1f8pr2X8WceI\naA+o\r\n=N1on\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2e70b8cd653f195a01f93c3e9928feabf39fa87e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.4f060adc5.0","@material/base":"12.0.0-canary.4f060adc5.0","@material/shape":"12.0.0-canary.4f060adc5.0","@material/theme":"12.0.0-canary.4f060adc5.0","@material/ripple":"12.0.0-canary.4f060adc5.0","@material/animation":"12.0.0-canary.4f060adc5.0","@material/elevation":"12.0.0-canary.4f060adc5.0","@material/typography":"12.0.0-canary.4f060adc5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.4f060adc5.0_1626376983262_0.10612405763966337","host":"s3://npm-registry-packages"}},"12.0.0-canary.bd25779b2.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.bd25779b2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.bd25779b2.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5628c0f3ddbf61b737cbdcfeeeace20d440bc2f9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.bd25779b2.0.tgz","fileCount":45,"integrity":"sha512-nHOoLf9O8wFkDwcmLIZUA4uARq7/3O7HdhMwL7KqXf0RtY5992UWFgtnqVqaZ4A6ugn8H89y+9ece8zsMJQbRw==","signatures":[{"sig":"MEUCIBBS6nUNEgAO2yTSQMpQ724444j+0bVBWhOuEz3bMqqGAiEAokLkn+dMCzQaq0oTpZw4dlKBxgYwVO1JtQE0HLCi+sw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1137879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8J3uCRA9TVsSAnZWagAA3MwP/i98FTZuqY3b2IRGVQbN\nQcuthYakDLdsgHEoq4B0efW47SF8M6N6vW/eBVIfvDtUOr8Pf1lkjrMTola8\nbAA5fgi+2mTaKWm8SChLBh8ggP9fHOocGdxfc96qvWsfJHIul2VEtEeMXe5S\nTDEXE8qWQOoh+cpxcgepoDUHkoy75JlKNbTODpr4jp458V5AbGJACEkQgZ8N\nEifuQCmLRcOGrS3GRNQSoRubgdF3qYjN3ewlIA//QQ8qOc/4pDadcg/n+lef\nrK1V/NI3xwnJltxs+pqqJZYt2U4z3aSqGD1WYzDxY9kOnVRbeVIcNKdPICu9\nigFy3kmGblNS/t0jZUpzHbRxde7SA+hXQFfnO5xJG8BkpTlyQI1aIyYhpFiB\nwXik9gDVr8cWSRdh14JTHHoW7ENlXJwHY49xbR9EsxnL8XNpIH6S8mfg+tPg\nJM4zXep7CAbckktEnY8Fc/2B+cqpGc2mEqzyZvpQdG4FtBaIW9gkbrJ4+rsY\nkzcswmIlL9xkb9WfPqCDI8akLQJMoX+d4gAlPsONElcnK6poG3bJltgPGVXQ\njZA0AJj5V275Q8dEiUdE8ASIevkvNhOSCR9nKOpN4wcTl7yNtA13eaVS0VQG\nM7Fo6vpW5exbunWGWPIyYPoWFUOLLLQfNVwUSuqY85u3FOGjtUKlP4GbPmyq\nPI8N\r\n=9/p7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3ea8422325f9bc5f9a356842191da47e282aa4dd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.bd25779b2.0","@material/base":"12.0.0-canary.bd25779b2.0","@material/shape":"12.0.0-canary.bd25779b2.0","@material/theme":"12.0.0-canary.bd25779b2.0","@material/ripple":"12.0.0-canary.bd25779b2.0","@material/animation":"12.0.0-canary.bd25779b2.0","@material/elevation":"12.0.0-canary.bd25779b2.0","@material/typography":"12.0.0-canary.bd25779b2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.bd25779b2.0_1626381806256_0.5423208799552806","host":"s3://npm-registry-packages"}},"12.0.0-canary.9f68a932e.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.9f68a932e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.9f68a932e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"56d6e23fc84ba02a55e5f9e096ef4b8b7c24a9fa","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.9f68a932e.0.tgz","fileCount":45,"integrity":"sha512-GNJ9gY6upXRULpg2ZIt0okdEfQI6Y9+gVIV45fqrm6NVYJTn9GmmCz6GL6k1oNoztCn2e3DqmIrEQPD6WC+ZGw==","signatures":[{"sig":"MEUCIQC0GPvql9retKiBW0CC+LhpW+uHUsa63pe1w9g30pW5KQIgTTxQkgpI2KjKba/T/1X6OvomriVUe0v2nKbBm64kB/A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1137879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8LHMCRA9TVsSAnZWagAAiywP/0Qft/w5++I+1wljsNk/\nhQXtalwRLTpV21z8MuVp3cWDTR8RKXMpVmQh/IumJAoCNnQi9E8B1Bnvnmgm\nFTR77dO7YJCb2hENOFH6Mt5Ff+TlyMYFHBADMPkN8Oz3XTTS78BsOLSnQA7c\nqYuTcnOykC3jGIIq2clXM8yAfNpwZgYTYDbxjQsyO91Y8Z7UAJltPd3ET2D4\nuX26Gwbc6tKRpHHlPIeoKoATwZY/q0Lvzmg8O9NGbDKE6t0blnLCYIAQ3yvz\nngGMasjHZ6t9wNhtV4vLP1avOqPp/a7ch1xCb15cW43d8wwNdJFR2OM29hTD\nyOIHqQI0FqhVFFIDXn7aSP/l862zXhI+RiSHngH2OMMPKPzVywkQ7gZ/InFm\nDf4oqMfghtY0v/i9sqsk9sYlWJzyjYn+TAmzOeXG93TV/6M7qanorutwIDIY\nt4CCbsHoFZs/D0sC806MfTbo/+viEiDmBKGoRQbjJlRviY2uOrXVKRLmzrB5\nQebmt2delQmC1IHR3VlViyCPMaY2Z6KLO/PPftPMzDHFqrRykG1PxNBFPBQt\nJPT+sTBvhNe42PQdA77CZ/iaxPDSs+cGnUxyOnQphCIreluYyGv/MTHRWZ4V\nA9KwCK2Uvyop3M0oyLChB4dwC6XgbswdQyZZ41qBlY0o4mLrpfNMsxy4snkk\nC8fr\r\n=xGXP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"34b4e5801eaff79707e9f2c769df2c1a34bbdb11","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.9f68a932e.0","@material/base":"12.0.0-canary.9f68a932e.0","@material/shape":"12.0.0-canary.9f68a932e.0","@material/theme":"12.0.0-canary.9f68a932e.0","@material/ripple":"12.0.0-canary.9f68a932e.0","@material/animation":"12.0.0-canary.9f68a932e.0","@material/elevation":"12.0.0-canary.9f68a932e.0","@material/typography":"12.0.0-canary.9f68a932e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.9f68a932e.0_1626386891932_0.8290977172391454","host":"s3://npm-registry-packages"}},"12.0.0-canary.4eecdeaf0.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.4eecdeaf0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.4eecdeaf0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"35640331b4aaeb7ebf9bf3fbd5f46353ea5ebcc5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.4eecdeaf0.0.tgz","fileCount":45,"integrity":"sha512-GoJPjRd/+k/qJHaPjW7+03spuAy3HTCVxi+8GSEshLTakpBDY5+TsWhldPhLxmV1a0xawCyUPz2qHG6Yofy8UA==","signatures":[{"sig":"MEQCIE3pAvDahBJ0DkfL7v5zQnluEw+eMxF19A1XxtUrBb73AiAH15KHDuj1idhT4+9DJVgEdS3JyRk4tsoenPZ8G3AXEw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1137879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8Z69CRA9TVsSAnZWagAAdlIP/0gSpix/ObaoNmM7nsAj\nsONOGnUVnoAi+W21NDCunLsCD42o2rDzYxbSj6FQPjRhSFXX6IDKXnpGSSRL\nQtz2hjxh35dzo56Mgzv0MevF7V1pH91cISokj6IRjMX7uw2Ltv3vW68Ro6Dn\neKA8T4DVlgXxGIVnn9spQtnF6aw0X0oHLUIm7e2WJK5dO91GG8Kj116WfIKh\ncBNIRd4F3CMrhL/5XBFOvVqVYCD/JBrgPx5m3cBaljEQLD2LePW3ey7SnS0f\nNqfF+GaUr8uuhORiXCQgh7l3LNEzw1W/tXy7Z9XEtyz/ZPNdwilnRNz74e2z\n4msrcC+uZ2d29bXY9c+Bttjr44UhEoIV2aE2767sjRdxv372mFx2H5AbL4vC\nYjXhC6AF467aMgygwVZE++wMJY1llmHxz7Bt2GCGlewkRNiue4N7/JuAcTjx\n7sq9+XOeXi7L9IiPVWjceJP7Xwn3jM/DTGCh0/PWWRVGQxWJ+R8JkeLK8SbH\nFjRD/ceam3RxyDRULnnjBFC9psdnNb7w/G/AdCY75Y0EWtS6P5R73M0293hk\nYTGP/1BNcuU723vmoez30piIKwZQKVOVPlzfBh3JoSgksLqSV3GjDVAXMGuk\n7blb/Oog1cjNeQ9VRa7GVDnPw9RUGCbVXQYctTrHfwWGC51mdZ72uie7UnK/\nyR7X\r\n=T+JR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"89a3faf78d32cadbed38135c9ae10ab1f3c8e9a6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.4eecdeaf0.0","@material/base":"12.0.0-canary.4eecdeaf0.0","@material/shape":"12.0.0-canary.4eecdeaf0.0","@material/theme":"12.0.0-canary.4eecdeaf0.0","@material/ripple":"12.0.0-canary.4eecdeaf0.0","@material/animation":"12.0.0-canary.4eecdeaf0.0","@material/elevation":"12.0.0-canary.4eecdeaf0.0","@material/typography":"12.0.0-canary.4eecdeaf0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.4eecdeaf0.0_1626447548884_0.6262789306570813","host":"s3://npm-registry-packages"}},"12.0.0-canary.7239684d4.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.7239684d4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.7239684d4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ea9ae90a69ea1c55e9d9654865fbb1c8118a81f0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.7239684d4.0.tgz","fileCount":45,"integrity":"sha512-5jwPTxU7oGTaYcbh7bbHau9l1v+KR2pqibuuqMflfoks2Th6a/KvSkEFUlN6qJZ2ETke9yiXTY6mvqLkBHuxKA==","signatures":[{"sig":"MEQCIFrPIg41kOSfrg+ifIFX3udesq90bydCt99McO31eAaQAiB0K/gVLPHEIByqdp86JFvG5gbAavSt2+VNMuYIMOPhJA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1137879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8a0NCRA9TVsSAnZWagAAJB8P+wa3cS8UV8n6Jj8jBoBW\nQkFAeKf3yDSKlnHWe6XeJCowtPtC2UYeAu562OVaotz6psl6F8prbuLCpl2K\nufjuXB/MW3gPKAwEe7Ex/TdTCNlL5IMMlT487cXGJgYosFvpbVuKeeJJ/Etk\nKk/yl73P5H0UTBrNmciWKGfx+yNorlN5Dqg6fo++V1+xi1m2bvVs7Z9nmQW2\nSRmtpYSRzShfOP5uX700SAh+R5+rpiU3aAo6ilndBcWRudRMSeETuYfgdfDg\nL4PiS1EvxahqGzYor91UqikBtG0VfB7dW/LUuOgUaNpAUjSa0Q06HXWt1yWl\noZJEKXYLDcgrgArMh/1pqi9nV9XMw+Tb/OJxE5FaHzeyJufq7xHHO0hJPohw\ncPvfX2yBn4H8573ewoBiAMRWtQNJItNScCigtzOKiCL860138HjQnzD5Skfz\nnt5VRXVH1q+VknOUK/dVKYF3kVkHGUbFCue5MIMPmqOc+XPFmuy/U4C5PoQW\nGAI+CdNLGQOn0d417jxFnXkyCzSGqFAb1YBlU9nLUVyiYKzxbUCFyuQitk5u\nFH4Cd3xvUoQoSZ8prTy7vFQRJ9/2VuEr2dSJGogD5oD4vqIOPq2TEgYtrbch\nJgzSOvSWHuAxGgGClD++ugN6yVgYVpNwPVLlHDkuKGy5NJMMQ55/gYkh9jDr\nrDk0\r\n=9cPE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4b35543a488bb22a0855f6f0d00b047fa76bd623","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.7239684d4.0","@material/base":"12.0.0-canary.7239684d4.0","@material/shape":"12.0.0-canary.7239684d4.0","@material/theme":"12.0.0-canary.7239684d4.0","@material/ripple":"12.0.0-canary.7239684d4.0","@material/animation":"12.0.0-canary.7239684d4.0","@material/elevation":"12.0.0-canary.7239684d4.0","@material/typography":"12.0.0-canary.7239684d4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.7239684d4.0_1626451213403_0.21484489662131478","host":"s3://npm-registry-packages"}},"12.0.0-canary.d5f1f7c72.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.d5f1f7c72.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.d5f1f7c72.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2baa14fd58b785ca44393cdbd4dec8b726db7535","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.d5f1f7c72.0.tgz","fileCount":45,"integrity":"sha512-QMdbaZDk0v3MNSUkqVhlVeQSvtNtKRgG+0e87fohRmnS5I4mWp7y/FY35n8LHiJ+D2xhtP7gWShtuL/KCqfu3A==","signatures":[{"sig":"MEQCIFmhuGWcO6xEsk/axsOZu0F5XNWIUTX9UcS/IlBis+wAAiA33y6pCsULqhzQNLBSPl6ARKRmsiiq3Nh7Lb4Wns/DTQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1137879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8bCGCRA9TVsSAnZWagAA8wkP/jJP8sihtmRJ8PZyMbBG\nDrVgUfY6CqK9HO87liwdK7opaiMV8AQOzy9j8xqoTeCQdFXVT84IaFe1O2tp\nqCFdySKhSJNHdV/9kCVj68Bj/UtPIK/2WZVFt5hr0Udnxe/eOZsqGGP36zmb\nIDK4hGWSLonvVU0/3onqKOWXH5B5QPujgxBPvbnkY8JYIdi01sn4RnRc7xXd\nB0TLpkEu6aBS161BKRG5BYxVJv3uB3+SZjf4VdFVm9JTI6bt5RXWHkpxBXcV\nv+oOYy3L1T9mZfheXm/diZUJdTnFL0ngMsYuMfDM84cLPAlqh8uvp5T5E9V5\nXg7HZ+mbl0URtvVV3dQciIqm1umZpJBX0kWo8TzQy3ojuKIwIdKanGuTrqgb\n9rzbumHxorXP2fpS4Kw2Z5QQs8zMMrB4SXU/D6QRYj26ZXVT2U92eik9YFR/\nWQymJXoZpaAuqdMJLXwFQ5SplHEhmfgDRhITaYgPSSvWjJAQVl8wQIrWHlnQ\nv04MHQ6wPRamGKhVbk8SrvNVy7wCVJQTazDVcun00W4npA1iG26IR1l/juFA\n1ME4ojVuTmYI4veqTHzsUTPX4CbB2WJ+wokT5FNR8rNwrxX2E9F5g7Sg1Kj5\nh99o9/HI1L+vqfC46doZKHfDmZPZ6qDzQ8+ALsLIfPZ5+aQrce9XFpHeUaks\nnN5Z\r\n=52lD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ef327d93f5a591e88ce5af94a2bb181d97b58472","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.d5f1f7c72.0","@material/base":"12.0.0-canary.d5f1f7c72.0","@material/shape":"12.0.0-canary.d5f1f7c72.0","@material/theme":"12.0.0-canary.d5f1f7c72.0","@material/ripple":"12.0.0-canary.d5f1f7c72.0","@material/animation":"12.0.0-canary.d5f1f7c72.0","@material/elevation":"12.0.0-canary.d5f1f7c72.0","@material/typography":"12.0.0-canary.d5f1f7c72.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.d5f1f7c72.0_1626452101890_0.8298317628532048","host":"s3://npm-registry-packages"}},"12.0.0-canary.4d95812f9.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.4d95812f9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.4d95812f9.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a91511de8f044036202ae2b044ab6985b0ff4994","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.4d95812f9.0.tgz","fileCount":45,"integrity":"sha512-hS8BTOmWiX0doQShpWPjVvvQqyKlAgE4sFRA3Z/wpT/k/IWOqWfpZqIhNv8Wo8Gv1S/l9KFhyehbyzEj8HIENQ==","signatures":[{"sig":"MEYCIQCRtAJvYoNnQJLuh4NGVjUJhwaBgMI3pr2l/mmq3qozOQIhAND9uCelHgTW66f4gpH298z+mAOIWxZw0Mlwo0Mjh2Ag","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1137879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8eGLCRA9TVsSAnZWagAA5y0QAIKbip/HMZIAgztfxd8O\nIJ1FWr82lhcFxrI+8q7++hCeYhaTh9B1pR6ZjG7RBS3CvpSh6D8+TcsykRRA\nqb9RCRBaAZCAiAvbAqc5dnPCzPnyyT/6btfzl1b5QiutmpkmL11Y8lCUOg+u\ngncL/i3gXBVnsFj2plSLzBHXI5kpUUvXCt/D4W4u3UAmaofgCKHkRVto9eps\nB8yiYezZ0TG8oXRV+0kLfV0fPvkqtPXsahDOiKVPgcvSHSXmjaDyoTCyhYo7\nyM+EhJd+emzkBswsaNnAR1n3nQdv/cJhNdk3n63oG5aKfg3hrFtXWxs3qL8V\nFqwrjAD2uEVBjj8LtIGEUk015wBnb8/PwaVQqbKlGPc3JoFcJnQ0hhwfGcai\nN0nJETVpAwVKN+WH4YmvHML7f8NtamUEuNHJ6FGmhV7hnrOlsdDE6oViw/7u\nCsACqrzX0evhWUWCXCf0LMBeHaNIVtFim1TRMw5N6vb0eTUuhbbQKL0QKgQr\nedSJntj1iq66hmUzwr0Q/Z7BhB+wr4jECULIyI35y8rlA7c2ck5nFfj//UwV\nlDhtupS1qAMPAMaprCpbCj+1zPVCQO2sW3gX4m2MX6KaX8EoZU9kQ5DSoDBx\nZllRTOCLoZmu0mnx0SV6TrK4zyiL2HKu6GYUU5dShAZ0EpAmE5SYZguJ/Jyr\nv1yd\r\n=ptYV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"34bd44726ccda77331fa29afdc1d5ab7ff0879af","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.4d95812f9.0","@material/base":"12.0.0-canary.4d95812f9.0","@material/shape":"12.0.0-canary.4d95812f9.0","@material/theme":"12.0.0-canary.4d95812f9.0","@material/ripple":"12.0.0-canary.4d95812f9.0","@material/animation":"12.0.0-canary.4d95812f9.0","@material/elevation":"12.0.0-canary.4d95812f9.0","@material/typography":"12.0.0-canary.4d95812f9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.4d95812f9.0_1626464651479_0.08961517572670763","host":"s3://npm-registry-packages"}},"12.0.0-canary.38d1846cc.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.38d1846cc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.38d1846cc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4340017bcd3f64bdc119f0e97f01f39f4ab3ad40","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.38d1846cc.0.tgz","fileCount":45,"integrity":"sha512-34/SNB7w/SF1B9OH8UMcJLo4VG0DgIMmyO5xzWm5Bas1bXjjG2z2nDABsWMN2SES/CdLYgMRYtDoAvzXPdYc7A==","signatures":[{"sig":"MEUCIQCD/t6S9DZxmiNgImtIzdeuxWr8WFgdimUhTqPaXAX5owIgS8o16zJ0YO2IrBWsIAqDUA2Xob2zFQnYd6LPMCLMY68=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1137879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9ce7CRA9TVsSAnZWagAARgsP/REbbuJv1f78Me0ImJkE\nN3G/PfbAgAqwJ3WrzQsdP0hWV5v7i2TBB8KdJc8LO4gfp4/LMM4gUy1TYffE\nY+mzkDr/jvzn5BTUCPBfoF1b1ByWbzQ/936oi6X2GvAL/aDT7qOLmB0FAOUL\nisxOz714HjPHZkk99QXclgBgOTCX7O9LWVwP6AG+kzsmG4yWwxeL+YUEqIvn\n8pDrmNaqaiO5cvp/oM0X4S86dyG99sEUJ/yjUYi2d92pyvyHDx9Ret80pzUf\nZTs/5hVXiMzlW0ZF5+htVQ08+Y2Mwo1XPEL6iiTy9xp65JWFhtGogMjpxMdl\nlkXTwTFuplz0h0sFNdGJG5S4TXZIucGM3Z4fDrLUaaPhsIREPq6aQH6qQIQG\n4I33pggXdmWZPtGiQdrGtXe9PYBbpUMj9M05A3+OQpZWceIGorHZlkktQBTZ\n+lQVbiCbhg25soG56qB7/Pup0rn7GA5+hUt6GyJM+BqXK89HFncwH6IS1ptR\nCzc4lb5vQM1tSQcoBlVCfYfondf2AFTnZ3wy88gpmWOjVUe0vq+fXlBbMe6B\neZMFeoaqI9piMPnaWIn64EMJTjtJcXCq8PO4hV/Sq5IjuYveruZV2T1Fmwkg\n6ztkJM4/ud8ID/Hx9y4h9eDiSqhHq/OWMYlF8VBK3+wK3Rc5hEz2LxvHL90U\n1YHp\r\n=ELCu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"77a8b2af56ebd184dae02df9198e75b16f4db385","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.38d1846cc.0","@material/base":"12.0.0-canary.38d1846cc.0","@material/shape":"12.0.0-canary.38d1846cc.0","@material/theme":"12.0.0-canary.38d1846cc.0","@material/ripple":"12.0.0-canary.38d1846cc.0","@material/animation":"12.0.0-canary.38d1846cc.0","@material/elevation":"12.0.0-canary.38d1846cc.0","@material/typography":"12.0.0-canary.38d1846cc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.38d1846cc.0_1626720187802_0.6815467826248427","host":"s3://npm-registry-packages"}},"12.0.0-canary.3f691eccf.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.3f691eccf.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.3f691eccf.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"07af301ab25cac8c2fafaba5431eced7dbd74058","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.3f691eccf.0.tgz","fileCount":45,"integrity":"sha512-rYk/K2M3sDTuBMGnxnq1Xp60WS704RKK4IgSkrWWrOgAKDYo7BQR02szSNKv2AyLEJbyjUVjyM4o64UGc2nDIQ==","signatures":[{"sig":"MEUCIDrErkT7n/A2IFgcebIfInzRYPaj9v6lP7YnHoNC3c3GAiEA512osTUUr/La5y2/h2bbyXYT0hywlAmE1/KP4z5gh1k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1137879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9vVlCRA9TVsSAnZWagAA3IwP/0x+vnapB9gTbgdf4YrQ\nbL6+s/lqY+drRB/BsZtQkUoxFeQY8T9RyafLZhvHiJ9IFA47Xh6J3ESdGqvW\npap4RsXH9G9YOUpvQgR5kRRA42/x9yuFXe+aS1o0fhiCgSR6+PhHp8nTJzE0\ny4SolE8k7MZ8KugM4jYFfKOaiIZCMdNzswxGNE/lZRSh8vTggUUg9VnBvf+u\nqETFNg7amX+0W7Btsf7iUfd69tLcul335bnra1XUAi+zA8BOb53UhAS+MDj/\n5845Xx7KIJrQTj+gNmcDa/I3sxUVR+ao5w83XxScWqtWzC/Ml23rJsoM3gr/\naVCj146TBCLpQDOjQY3r6SnfT+CL6hjAoj7SavzdCnH7JfKbtWcpo68d+6VC\nZb+OxUlDYl62a22bzyllhznWvHaP0/gXLtcizz2QWBJO8G0FaXQjbYh53mER\nim2dj9fL8gKpTFsKOx6tVI8Q6BeNZYDq+TS4wa3YWKsQM6qoqbH52fPRbgBL\nU7z3LZHOfXVgjP/KDIA9/HztExonpYhIvST6bWqDNtB6Qp85s/nAfslXcdgU\nh3HtW6Or6Bnmx/JrPlgd3YnK1679C2TsrvlWx4Yp6qa8k2tiJ8DZjydtB0nl\n5RJY1lqIevCeWXBEv2/xNEd3wE1kRgxNyC8m7kkY1dlnBDdWFvbt6BELCHuy\ni1Pn\r\n=EI74\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"58271219b83ef8db16c68153037e69345831b4cf","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.3f691eccf.0","@material/base":"12.0.0-canary.3f691eccf.0","@material/shape":"12.0.0-canary.3f691eccf.0","@material/theme":"12.0.0-canary.3f691eccf.0","@material/ripple":"12.0.0-canary.3f691eccf.0","@material/animation":"12.0.0-canary.3f691eccf.0","@material/elevation":"12.0.0-canary.3f691eccf.0","@material/typography":"12.0.0-canary.3f691eccf.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.3f691eccf.0_1626797413480_0.4293451478395005","host":"s3://npm-registry-packages"}},"12.0.0-canary.ebb5c73bb.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.ebb5c73bb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.ebb5c73bb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"269a55eeccdbfe4d11cbb2b8c3312f0779bc1be5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.ebb5c73bb.0.tgz","fileCount":45,"integrity":"sha512-tJurY4loCMXc4azGJzF8+kcTspvXcn1uX2cI0J/J6eGmD5I7U474M+diHxkt/TtDe5zM8PUdh0s5Di2XUWt9eg==","signatures":[{"sig":"MEQCIFsKxiSrpgrOXZy3GqwHuNa1mK3QZ3pbl49JpBuxKW/xAiBWGcggmMhQxKS9M3BeLsIqr/RsSY436NYAPIY827BZAw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1137993,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9wCWCRA9TVsSAnZWagAAEcIP/0XURbVscjrU81jTAZ1x\nkwA5dLF20Mnd899asNlmY1l+H9xHHqK38dqvAgxkGNxk/Ac50TV7ypnwtHUg\nMLAjYKPL6W9Zbxny60Qo6AmpVS7p5Muwqj9JKaUFOOCli7A4hML6agjRQmyv\nZfLvTQX/Bq2S6MHw9tfVtIxHJELVp7xVwJPtE6tuW7Hc1YkedehTIun1HFPI\ntmbeULqIgOkEwnUsKxnv3bacZAEc53OyQceIKqV/zvvNVIrx6abvyMpC77+2\npDDwD25L4KaNz6AzxddQwo4XGKtmVFzxu7XYvUhfXirzBssTTP0bz0zxlOrw\n9TauvD/5hT3qtRItwevWaA29xIxab65HyuZb5068pt+/zKR5p0QYhhF9rkf5\ngU1jb5HIgOTOKqmjfRXLNfLv7PbkMXwn18UjKEh6ARvi1gyiq+UIJv9bXEJA\nDLTl28v7SqvcPotDeoNYZjx03ReTOnIfBR+HmBLl34QvnbLSf5++oBhuj6+Z\nyWhLnXSN/mOQV0SQtrmgHdMAVi2ru+gWHd+DaFETo7mc4b2UuDqs9vZKRxqE\n8vLmRREw7r+3eREVIEtog5a1+3RMqbid5kQrh0gk8Qu7UofkhP1dYhjBgmmA\n/Xe8qCnzpk+yfSqtiWsHCMQog/yf0mONEBUJqQXA1zIPMRV/XlZkECuiDkl8\n68S3\r\n=XNtv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b37a38f7ce62c0d87ebbb4bafa0f1fb02aedb050","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.ebb5c73bb.0","@material/base":"12.0.0-canary.ebb5c73bb.0","@material/shape":"12.0.0-canary.ebb5c73bb.0","@material/theme":"12.0.0-canary.ebb5c73bb.0","@material/ripple":"12.0.0-canary.ebb5c73bb.0","@material/animation":"12.0.0-canary.ebb5c73bb.0","@material/elevation":"12.0.0-canary.ebb5c73bb.0","@material/typography":"12.0.0-canary.ebb5c73bb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.ebb5c73bb.0_1626800278124_0.633266440832601","host":"s3://npm-registry-packages"}},"12.0.0-nightly.778a0e8a.0":{"name":"@material/top-app-bar","version":"12.0.0-nightly.778a0e8a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-nightly.778a0e8a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d3959c501476789d4beb44e4869d2e2fca1d0f54","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-nightly.778a0e8a.0.tgz","fileCount":45,"integrity":"sha512-rCw4GfFRmr48LMD5WxzVPOUyMO5OZD89FVa9SrJta5nGf8+75Xn9Wt5bmRO3LwjJwTCtBQ7JVFaQYo1bLwVBIw==","signatures":[{"sig":"MEQCIC80Bx9iFDxC2PP7Wo17nOcMSxos0LDa6zFSRNjj/V1kAiB0IKf9kte1vQKxUIWOO2Hx0LEhB2/z6LmmtD4RF+a//w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1137882,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9zrdCRA9TVsSAnZWagAAXCQP/jpBFiPRTKjz/5yZLADp\nkR7R6t596U05ld1wV8cCmPEgDxyoAROWj/fkFu+ZM/6pe7mP/TQspqJGIx4B\nCIzxrm9AwdhJIDPG8wvduf2I9nmi0ENK67CQARhaV+9M+QynijTnnGfVlOtv\nKpa0ED8LOAYT2hjl7/Q6PBdlVpyd1pN9mWtdxujRgIsXd76gudOyRhA+VZlv\nG31+c+VhXhRtK35Q09i7mCro+X9VXzjEMZHt94vOUVJ/DY0pBtn2Oz/r9hUo\ncOENSA/PZQ1IizDpSNIQhjGexIiqvTWIbDocRadJ/VozaR+X6czvhZAFbhWJ\n34L2E/FR5szPQ/qQW1xvs5Fm6wH4pk9pTgKPJOYYXySpl+eWmO3CC8fep4Ta\nsbAQ97sQ+2QKgHeFo5HskHU5l72nY6r4Oqsh9UjMzBk2EdioSciwACRw0P9+\nl1sJovaYRCx5pqJxXqgFIyoOoF408kQv/AeG0SsGESzk+li9kig5a9E09uSo\nOvsKjX7ZOSLJWoBrYzzBlu+enzuduFDNqIfxBKLNLa9/4oDQFu71N1toLer2\nenVn4e2pRDrSYcmPGvdK683h6V1NTk0OD6ZmJm7lzcwtxz++y7gJ6bqkI4X7\nUTqY1U5tyV9cA0kRvhRfF5ilt9c9UNf6tM+IOdTSHmeaSbEqgzpYswGcuoLJ\ndynh\r\n=39OF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d86234d661f09ad766ffa2f82c69582e585a8fdd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-nightly.778a0e8a.0","@material/base":"12.0.0-nightly.778a0e8a.0","@material/shape":"12.0.0-nightly.778a0e8a.0","@material/theme":"12.0.0-nightly.778a0e8a.0","@material/ripple":"12.0.0-nightly.778a0e8a.0","@material/animation":"12.0.0-nightly.778a0e8a.0","@material/elevation":"12.0.0-nightly.778a0e8a.0","@material/typography":"12.0.0-nightly.778a0e8a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-nightly.778a0e8a.0_1626815197788_0.5768597349212359","host":"s3://npm-registry-packages"}},"12.0.0-canary.791311bba.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.791311bba.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.791311bba.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2cba9e3f608bc68c8bb0100a3a688a6f94c08ab7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.791311bba.0.tgz","fileCount":45,"integrity":"sha512-qmCMQyLObxpAqJ4ti/n8BwhXo8xMR3mh8CHzRWyTHzrZPuGvn2mKHsbpAPF9M4NbRoxW5HXzMW21mbp2oxB9zQ==","signatures":[{"sig":"MEUCIQDZg8rnvgF+ueqy0c5iV0BrHghiwDfO0tqWC+QXdtf8wgIgI6z/dltv1HWiZNTFzyjjysu5Ib0bV4TsKDYEleL+J2I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1137993,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg90lpCRA9TVsSAnZWagAA1DUP/Rtd0LWfkC+Zj1rfAUho\nNo4RFhM20+8/T5lzoPxMShBkM8i6lnstthNGQRlL5C8bwR9viD/Ru6CgRODW\nb2FDnlggTI15UWM5PYs/Dj3CbAZKse4rAjJeENnRH12eaFR7b8A/yBHDwH2/\nkkTWrylvgh5ZP7kCIPm+6cfLGFpbP++Xb5VMALXQNTRmaSe91JBUh69XSNtb\njin30FbhGexXsdh+BCKInSEjZD7WWGWgDD+c3YqwUxPWUWyAQpz0RUtez5T/\nPSb6QItk8DRysSaVhaI2e/D6n2xGw7x59ql5PwlJgvv8hSY8qdFthhAWhDuS\nqydYlCfKLVNA79X6b6MvOOP7PoIZNs1iykznZNB//DdGUtX2beyUWySGCkH7\nxO+TF+jG8DkGgt5aQ6tX3D3xPXzE57HmGEYIJPCr5zqutD0jZvUtC8sTFyxS\n5xzBrBC5L6cTFPfHnftSp6ofIxO8gM2VXH+ncKHERrH9idIadXzBjtd/Spnq\nwfoODGVB0d0Y9hNhCwWOt3PfDvsBRIRrLfB7iurwNTqEYwXkZaG2G5q3Lp3n\nSNUbt9womG6v1qXZMqoeu/YSvuEPmCA4sPhtNKCY81/Gv+ZZSPS9avwLipur\nlFW42yNOSHpW36PxYX3uvP8HW32/21kDbjNU5XgnneB3WxRVhqKuEyZ+wHda\n97zB\r\n=4+QF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b915b82632a30b60ae4dca5d12fc23d5a5df4d4a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.791311bba.0","@material/base":"12.0.0-canary.791311bba.0","@material/shape":"12.0.0-canary.791311bba.0","@material/theme":"12.0.0-canary.791311bba.0","@material/ripple":"12.0.0-canary.791311bba.0","@material/animation":"12.0.0-canary.791311bba.0","@material/elevation":"12.0.0-canary.791311bba.0","@material/typography":"12.0.0-canary.791311bba.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.791311bba.0_1626818921073_0.9342994360113293","host":"s3://npm-registry-packages"}},"12.0.0-canary.85e9a6ac3.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.85e9a6ac3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.85e9a6ac3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"798cbe295239c8b08de5b52f9aaa64c7b99ba005","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.85e9a6ac3.0.tgz","fileCount":45,"integrity":"sha512-utrWP6ZOmJfmDtM5XRzlS4pETBumkF92QX5rYpPyQuYY0Z3XWBrvoNNYUB9AHGuhPtL6+XVTm2kLQGeW9aO+Fg==","signatures":[{"sig":"MEUCIGKHYUBSUWpWK/RSGe3AMpB/ThAXVAh77yfvxHITAA2hAiEAsCSqDvxIzFVFwrfjzkpK3Bop3Ua3f0w8dOY9jLGzPws=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1137993,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+D8kCRA9TVsSAnZWagAA1PgP/iXMqXdOhexXB8RKvH36\n3UBdbEXiIhJa9J4CoJhiCrNzcGmZSndqncITpVv7MDqBB6ChOsc4nISOFjt5\np8y2zVXWj82nM77KlhcKNF29GXVZcESKwnr5CtBcC0DX+0ChgBSbs4IHcl9A\nG5MqKWP3sMC3Q0WqvBRsMKT+OZk4HdS1DnUExwk4i4O8SKrPc1G/dAAj4Wk2\njJ3bWm8hUWL+Q5EKVjucDJrsA08ZWZFtDQ9ZSnSit4Achj/rH79UkkZ+JKnW\n1KjIZEYHsIC5qs0MaKK3gTHBqTSN5rYlHDyokMwhZsS1HPuG6Db6Mhlha+Qi\neSknhZ9fpsuf75xs+q8HQARO8mt1wmIDdqVtgcK4rQgyoTKom3yQ5kZC28Uf\nNz8peBN9k75O6W9+ZjKHKIFFtFYLJjp9rF0W3cgFJlCfSCEQV6mnow0HQ2EE\nfSbmsV+RhDSTp/LkWPV/okWL6YGGllfpkwTKTr/wwLxgMrk5JMBrS9Cdikww\nw9p/M8teau6yl9zFtkZmhIX3TIGHgo7DhoF5JQOJXICb5GEqKC7hCy8hUVh9\nb93THKDL4XOYraENp3FYO3liGhsfg56h9TBpflIDRlOoAaNTpcj1FH1l2w8D\n/k+KM888Wc2SPr1iBPxW9vkckKW8hWXd1sHL3CqCQOQFr+w5EA2lx7Y7uyLy\nhXpM\r\n=G5X9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"651354325ad21ac082f791ec2abb0aa32b3ba936","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.85e9a6ac3.0","@material/base":"12.0.0-canary.85e9a6ac3.0","@material/shape":"12.0.0-canary.85e9a6ac3.0","@material/theme":"12.0.0-canary.85e9a6ac3.0","@material/ripple":"12.0.0-canary.85e9a6ac3.0","@material/animation":"12.0.0-canary.85e9a6ac3.0","@material/elevation":"12.0.0-canary.85e9a6ac3.0","@material/typography":"12.0.0-canary.85e9a6ac3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.85e9a6ac3.0_1626881828124_0.4786983805827425","host":"s3://npm-registry-packages"}},"12.0.0-canary.6b0442278.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.6b0442278.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.6b0442278.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"11f4abaa00dbd546e98829c9b38327f2770e177a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.6b0442278.0.tgz","fileCount":45,"integrity":"sha512-ulFX1ZwAuWogPM/xRHXoH+zmb9j1Qt7j7Pue1MYX633W6jC23SH8Yd9zUxPuZDVWTWohRaxJolHoU/UGvwzu8A==","signatures":[{"sig":"MEYCIQCLE2pHyOCQm5Kk92RCwyOl6y/NEN6EogJ79nTn0TgHLwIhAJR6XQfbYrUyBT2402zvyWYLTZyxV2KgV5G9B4/FTi2Y","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1138157,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+GyVCRA9TVsSAnZWagAAlfkP/AxWgF7+IjHmB91RS39W\nQRLtVB9ZVZGSXewV9Yo8ZNhgD9c3gdXM+YMwEPa9YQQx8H2RKgmAL3S9GcJk\nwIDXNYPL8Pd/gnT0oe4aysg0k6FWy2uvfXYyxnjq8kEP+MF/VRxzcYiCS54P\nGs50MeIEej4gzRIuTZdi/I3W6WdHlBHxj2Zdk5J1126LzgkdG8zmZGHsQNtZ\n+fSVVVBR58YkDHeGZ8zXZ4vVeQAKJT13jmEiyFDanoZeSyau4bKbIv97u3l7\nLINamJ9LbuoF+SzLbxV4ylkcTRnuZ1sZP8uzQTz79q+V1X8BBnLnkRsI6uAq\n/bDt38jteIl9WvZk0Q8pykN04Fnh0zm95S7a7BuBmMzzh2d7PZvQ2XQHY0gW\nxir6KPs2qLvVSHBn6eNJQFTh1eyjl212rxqIHN02qD/6g1Mg2xoHTrfLYWHC\n4qUMKfuk8TXosWRjQ4T6tDvOFZ4+IEv7aBvuq95OMbVzNcsIAFDEQcBCDYSL\n6MWcQ5ySrWu8ciYHGHy7Vm3cp0oUd44ytLCJfV2VYGxPHwN1d9mX/1zWE3o9\nik4GDRkDzUnFsCmeJz+PRb6v/Ol0E+zUvcckTsVwY3r2YKJmjxTw07+Wx1+q\nEmxRy586jdUELT2hPB36sAvMQkzovYDdLqQP1ZUhDcejUjtA5gEACm7DViwP\nXhNs\r\n=4ijS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fefa69e22f9083ed30aa4ea05114191682b45a14","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.6b0442278.0","@material/base":"12.0.0-canary.6b0442278.0","@material/shape":"12.0.0-canary.6b0442278.0","@material/theme":"12.0.0-canary.6b0442278.0","@material/ripple":"12.0.0-canary.6b0442278.0","@material/animation":"12.0.0-canary.6b0442278.0","@material/elevation":"12.0.0-canary.6b0442278.0","@material/typography":"12.0.0-canary.6b0442278.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.6b0442278.0_1626893460914_0.2514040669193707","host":"s3://npm-registry-packages"}},"12.0.0-canary.5f00e454a.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.5f00e454a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.5f00e454a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2e87fda127ab1f518ec229e34bcfb761aa7fc57b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.5f00e454a.0.tgz","fileCount":45,"integrity":"sha512-7d4kpBj/yzk0X+fm4iprrR/Z8ity3UW+LbG3ZtzUpFAKiwt5vJWqpexO1YVngJZY+U4CvoRdzzcTC+ySeVqdCQ==","signatures":[{"sig":"MEUCIFmILoW2IGj2BItWQvVWdHKfJo7EnFFux4m03n0bRv/JAiEA6thWAw7oB7uIy5qGCn/E/xw4Q0k8nBYP+PurzFf2a+M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1138251,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+aXSCRA9TVsSAnZWagAA6fAP/Aq/7cCOJPXcGI6vRC2/\n5Buh8Dj7+rhDhe9+3ZKHR0TK0Rwi4mSqIhXiTWC/a+5M9SIIR2y5JQoK3Zi3\nENQsmY+VNyoUaJKCuaTFvRvweEXF+l/4WV67WvcKFVToSJh6iK46nR+cAQ2f\nsIiNbiRfkK4M8RQ0BFGIyY0zcyDT4MRQPaooxZOsK7+5ALrQyBQzJEjTB2bq\nPZ/CpDIAQ/gkcqWGm264DsIc4ON2uCjUcAGqbJYXBnObsgVWHqMbxn9MVkph\nW8Ub2vkNk12dqxk8EQ39whCqXItQG7BHeS0cyKKKbS+3JHMky+C6xqDG6SEC\nQDa4Odg665rgneoT3AekIQV7AXiZgvhuG43chiVZHWXLM6AsV+C3vZIxJ47e\nTgbc7FX7oTX+vid2Vjz/k+4DlnBJjIeiK5i2GUrqQiQRlULdvAiefTOSGQmv\nbbyJZUQ2V4wunSQpmyy+Sa9WQOumJObfN6IIf+q5S5f8doMk9fDypYSgwS6d\n0xIl/S29klsVw2IvHyzq4fNA1B9QDupr3H7BZgbsq5GNMlts4t2DLIUm03CN\nuWiRoEZKRp9bZHR/yeC/Ray4ucin3kUbyVsNo7q4Ll5ysfDt25f+booyDUS/\nMQasfz/3vydneUpjvh843qNfZ0Db0fbO4FanJm6DTW5GyELxlRa53Ytl0g7b\nRxgw\r\n=ti0H\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b9c8a5899d6bb5475fc5fb2c76a300d4a28f0ffe","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.5f00e454a.0","@material/base":"12.0.0-canary.5f00e454a.0","@material/shape":"12.0.0-canary.5f00e454a.0","@material/theme":"12.0.0-canary.5f00e454a.0","@material/ripple":"12.0.0-canary.5f00e454a.0","@material/animation":"12.0.0-canary.5f00e454a.0","@material/elevation":"12.0.0-canary.5f00e454a.0","@material/typography":"12.0.0-canary.5f00e454a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.5f00e454a.0_1626973649986_0.14580180926592323","host":"s3://npm-registry-packages"}},"12.0.0-canary.90e08fc6b.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.90e08fc6b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.90e08fc6b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0becb3872be38c929da52ff2829d2078f38affe5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.90e08fc6b.0.tgz","fileCount":45,"integrity":"sha512-HxkRu51gnjcFcnvyniRhDjoSikvN8j4htvSJXYQZqPfqE3itx5QlefgN9u44cmM3SP63aej4kD9zR2ipPwKVsQ==","signatures":[{"sig":"MEQCIBQpikXPKvRGg2gzl4MdlW4AJ4M2r08SIn5JRmDNf/PiAiBFpMepVwhdD9OXiZWJjIB0v/nFirMXZGofg5rbPWNI/g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1138251,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+gGoCRA9TVsSAnZWagAAimEP/391HjUwD3qxkNpdvIbv\nB04N/GpnMW/V+Dsf5vd4KtRWDUTHFQZmlVbYccWEg5JmKFU+CdKd6ChgLKDm\nrQMTF3cKkgBsb3tgC0dapI+hcVDsTbTGCasNnu9G24iXZ8pWBy7x4EN1jsNS\n+3xKCcNe9wZ8u1Dm4PGKOFgNg2o0GzZK0vIz4PohQHKQi+hG99Iec1iHYGTT\nI51cTC2idVWKvZx4lDHvpMuadz1et0WX+4nfr/za3lPkLNtgEH6HgT7Ccjc5\nqQ/D8iu8kt6wxMnxhawohs9rhEec0KGhO9H84zR0fZi1Fxjdn9FWeQ4QYmY6\nLwUcWhZK4uM35ZEWttSM1pj2riIwT0W2DdNvoEgI3ABSTqI8ufbmajlaSQWo\n4gRvOIt6wMdfMnXhvjol4AAnFDWK1I1P1NhAqyYhGQmCygbvCJ3np0IBWl3f\nVaJsHes6TSepeYqQLkzf1NOe/j+3MYHn/Bxk25lIsOll4NBOhNiP7VnQek6K\nMbxVwUgRFDBD/yHkzvsQqEjSq3ZwKMq63CRmKEd7m/oS2ph/r3QyhEhO3luX\n9v9FungXAYv5lE2j/Y9JcQGYRC+6IaeGfLBmK2E5vWe3/7QSg7RGJU4xifPM\nHblCNeQT/lPbJvE3gx0mCFppTgaaZeVqtsOaqZttBuFuR1g4QsdrgOPZVM8t\nMtfe\r\n=9+ZO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"267e307e557cdce4bda13e55c34cb0d1aa0d0b8f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.90e08fc6b.0","@material/base":"12.0.0-canary.90e08fc6b.0","@material/shape":"12.0.0-canary.90e08fc6b.0","@material/theme":"12.0.0-canary.90e08fc6b.0","@material/ripple":"12.0.0-canary.90e08fc6b.0","@material/animation":"12.0.0-canary.90e08fc6b.0","@material/elevation":"12.0.0-canary.90e08fc6b.0","@material/typography":"12.0.0-canary.90e08fc6b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.90e08fc6b.0_1626997160243_0.22271754362222662","host":"s3://npm-registry-packages"}},"12.0.0-canary.cf5b9eb86.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.cf5b9eb86.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.cf5b9eb86.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cc84f01d4ef6ba5a1744c4a96cbe92a4a0d96240","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.cf5b9eb86.0.tgz","fileCount":45,"integrity":"sha512-qIA+YCTpk0Zf3WPwkNXi7FYurer9OzDr6gXMiziM54rdILtEdvUmAUZplNajkYrFCge0prkVEjYovhI/3GZO7g==","signatures":[{"sig":"MEUCIB5/7FKPGn6TnjnhutQRJ8Sl+CA92KgRx+oUt25zv+tJAiEAt0zMx46jptMYJ7Q4ZS4qbOnO1UwrYwqJ00VbcW6U/4E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1138251,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+wa8CRA9TVsSAnZWagAAsOUQAJExwOjV0aArc+2BnLtA\n1F1te17pE69SfqlWzZP4fQgrGOctlLAfTEdlu9WgJt7ttN6KzdJJgvdh1LV4\nkOQqYe6myk2C8iauHWtlaf25vqHsHOBJmEbpHvapddH5QrjtnKtk9e1+BdBz\n4lTMNjRpH/2VcICwYrFn9q+3ZnqAy+1Ie3+D11TXDu85hs8qugWluODKCTUh\n1e2lqvF8nbSi7dZsdYkZ8WIcsWHzSL/dZJiUVUL9TAECVHHam891OWcem9zB\nfd/LzgVCjqo3BqjVNfOnpyVVxUc5g9xw3eDJYStVuHq7Hf8NR49on2cDOs7p\n5wAHRbJYFXWf/h7fOyRVdIxNfM43FApvFgVNoyrhAFyxipodabunCVi5qpHx\nzpYvdtgc8yZlJcITTXH7b1QRJYziy2jqQ7EwXbOTnJUS+drq1Djq314ZdHef\n3i10qCAqhj+5UqkREEtY0QLyMXwVHetLMvNZAMi4tNW719rw1U0smaK3ZDNv\nOwkndN0+7qMwHbtcEyN8YNCZb/WVqJ2tBLyxCpvsHpmqdAC7dNVsO84GgYX/\n+cUp6kKwGrIPOudT/3HaqDG6X5lLOAP57JQHs28jIoLNTyQRH2T6rGx4017t\n7cSPJwOY5nzZq7P9IvE6lxd51bLyPICD3V7vWi1b/42oitv9kBAciBQ1bq3t\ns0hh\r\n=2CWf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8447b42cdc88335a4d5a37bb048f5babc1c5bc82","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.cf5b9eb86.0","@material/base":"12.0.0-canary.cf5b9eb86.0","@material/shape":"12.0.0-canary.cf5b9eb86.0","@material/theme":"12.0.0-canary.cf5b9eb86.0","@material/ripple":"12.0.0-canary.cf5b9eb86.0","@material/animation":"12.0.0-canary.cf5b9eb86.0","@material/elevation":"12.0.0-canary.cf5b9eb86.0","@material/typography":"12.0.0-canary.cf5b9eb86.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.cf5b9eb86.0_1627063996171_0.09080479789061235","host":"s3://npm-registry-packages"}},"12.0.0-canary.3f36ac75c.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.3f36ac75c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.3f36ac75c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5631e9e28dcf640f167327edf700cb32ef171a1b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.3f36ac75c.0.tgz","fileCount":45,"integrity":"sha512-dpI5pWE2J/nXDEAi62eDHp3HiKXoSDCVPXSl0JAaDJZ6GAnF5JgE4Oa1P8vEiLSl9p7cDWd+d/VI0xiQ5H6Z7g==","signatures":[{"sig":"MEQCICxAtMlLQzI8+IW+kDwv5bQcJaaRSidueU/Wl2ZqtsLkAiASLBs9GOPXFZyONUWb1cRgZOCepZAtQyA74zxl8HbNeA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1138251,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+wttCRA9TVsSAnZWagAAwxIP/2J9pM/8J3IhwsihjOrO\nvg97Sa89hsSI+SIk4cxFtKXDqxyjCnEt3YfDNz8++/cNGUGaI5TXSmteihb/\n2HV6M9MCL1b0UEbTCqaOoOu6ClUXqAMJj2G2o4SlSL5fA63nrfTkdGlkZuuj\nNsZKviSWOHulpxv7f/VUlZ8zT3AVzmKGjmBRxGGKGTo3y3d0ULYboZ712EUh\nSt3XmYvREoem4Jif2YxzyJclbJUvKTg1VnUa/3NLqGGpDnep5AAHBsVcfFkQ\noC10YwjbZsQ9nEOOHI3/4ha1bCDdipT6Me/25lPijnK3BrQVTknMUsaUhzsn\nxcs/XBcvFlQMuEt9ZPEadhVc63S0qjoVXRZ7PHv6BFTsjzIP1J0GQYnQRJxR\n8vMFv1PkZp44BZlfXCfrXgS6nGOCwxLj9CZ0kwQ0+ZkYkSsBU+UjEHlvsc0l\nQSbIXUisAtjvAmQ5N/wlS0XDA3QY4Ka8AcNnfxf1HwSdpyQK2By6y5z+h9o7\nYuztwkX3VzUofGBnT5muiqwRpk9Y1CONhG3S32cF8vGsJOPV4RqDiuBHsHE/\ntm4VOkb1z7qOBe5WXzgSXoEO7eBgC1yjXlPS90OVfo9yIga8KcElUKiKot0W\nnYEshvyO80jJUW2foUYCZCdfGVPKw19VVXiI8hNROYyy7TpKcqTu4aT24PZZ\nb1B8\r\n=6b/z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b0f70c5fff2a6f188b24beae7ecdf708b5bbdcb4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.3f36ac75c.0","@material/base":"12.0.0-canary.3f36ac75c.0","@material/shape":"12.0.0-canary.3f36ac75c.0","@material/theme":"12.0.0-canary.3f36ac75c.0","@material/ripple":"12.0.0-canary.3f36ac75c.0","@material/animation":"12.0.0-canary.3f36ac75c.0","@material/elevation":"12.0.0-canary.3f36ac75c.0","@material/typography":"12.0.0-canary.3f36ac75c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.3f36ac75c.0_1627065197109_0.11465373986503846","host":"s3://npm-registry-packages"}},"12.0.0-canary.ea1e1b850.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.ea1e1b850.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.ea1e1b850.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a66e246e2e043db69f1463c3eacf238d3216b28c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.ea1e1b850.0.tgz","fileCount":45,"integrity":"sha512-I+5Ti2vgmcF04hLd7KgiVzw8pZkp5mp2AyxyqsBIMUKYNcEPOKX1DUYDH39FOGwwGBK/Wrjxix0ZVZZp/ApXnA==","signatures":[{"sig":"MEUCIGaXDQ8WG5XhhlielmAEKDB7X4sCip8a7OqgGtNljydxAiEA/8d78JmiIoAgVAbyFiIF0c2U+kDuUxFha1uwQB6d5/0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1138251,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg/H6VCRA9TVsSAnZWagAArBgQAJJQ0eU8jU5w600VnPy3\nPOptPynVSa05J2oLQoiKyK609meZYfklvbx9U9xRald8xR8xlSGng3kYy+yO\nlYl5gP6z2QwGcRg1JBPeyDDT5J0WdD1UdRm6RfzzgtnF3VlmxJq1Hbwh0tnc\nLaaDb62ks4yysKJWyvABcFSVTi/I1pLqbV4dFnqFTkkDCnlZX/kvLqo9A3Wc\nQ6cUV/JG0LVZah+jQoP9oIy/uIfCWsgpB51qrjK0Pvi0ZlSRs5RvJk+IBu2R\n99ckrj4E4okeays8LTszmB5yJbIyOBd33nM2stm80wshC06S/f7OlN+3OV8P\ncf/BqY5P12codb26jFJgESCGfG1zguSPe2mYi68CwBvGIGSRlt8xlBTWRHwy\nAs1N/qhCAs0PaMArWfDc4iVJRwxtSNrgsnqgPmQ6GkPYxDZRy1tDQ1Keq6tB\nAWgNRAug4dK1UbJonqFRTrEtRc5/BLNELH2OWxYOsLHMqgGgB2bs5AwTDTFZ\nyTcZfUJakKhqPe+Nbl+uHof6zXUeqy5fxreiaLvCXmfA0uGMkoNvYFQxk154\nG34jL6ycWyLKowp4t/cFgSoECAy3oIblk9tbT9uZ7mB4z9GpfwM9IBedYDuR\ntyLAoEVT2BeVNOly2e1PbiJijfGiogldK0koorIXKcBC2iSkhWLJSe9CQMIN\nYbYu\r\n=71V0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7c296c6f9b2c20eb32b0501c98b6415bd193dc46","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.ea1e1b850.0","@material/base":"12.0.0-canary.ea1e1b850.0","@material/shape":"12.0.0-canary.ea1e1b850.0","@material/theme":"12.0.0-canary.ea1e1b850.0","@material/ripple":"12.0.0-canary.ea1e1b850.0","@material/animation":"12.0.0-canary.ea1e1b850.0","@material/elevation":"12.0.0-canary.ea1e1b850.0","@material/typography":"12.0.0-canary.ea1e1b850.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.ea1e1b850.0_1627160213243_0.05483869007731279","host":"s3://npm-registry-packages"}},"12.0.0-canary.22f390c43.0":{"name":"@material/top-app-bar","version":"12.0.0-canary.22f390c43.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0-canary.22f390c43.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5e333a4e7076f7debad4edb4c862ee20c52124ec","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0-canary.22f390c43.0.tgz","fileCount":45,"integrity":"sha512-yE0oRsrzv/tLJcW5hLSEFEUcyrIyaL+Mn2XmwXRTH41+NUMUV+sY1IZyyYCv0i1X88ujsjxV+3D2jo3AixIA+Q==","signatures":[{"sig":"MEUCIBwLo7s2zaLzLJlpmmT7MOOrTdOCmLcaqsu+jI8y2h7oAiEA0yThLr0aw4plIzcEPYKbBRkcQS6SoFNU6Ajb01qpPLM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1138251,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAFftCRA9TVsSAnZWagAAOJMP/jALu6PL4hbjjSMv98m/\ndOToQ+QYWqFGYw8NKNraknOrKnjhmNBbCW8CnmASRAsTsp/qLc27gUY8HQGp\nmxK5wR9OoK4r4QJlcozFG8iVW0gSzJATo+tWnY+ZTx4Cgy619gHrLnmdVYQ6\nu/iwLrLLhgH6zDME8hlGC/6FbjwrQERYITwAnEeFjMfz7LDBmWVknsr75i6x\nyJjatBz2ggd9hhvp/khoDC3mfcbNVo2l7wkkksslELAelmOo7QkngqsZ+sn3\nS/Ss/TggmOribTJgIVV7agaP+k7RXLIeMsbbdWEPhhFcwB+bzHqQweTdlXll\nno0fNK9xQjVB2iy7+TGQNusuqst5bv1CQ+55CnltT1BRHTn/tUZ0HaNJQWvO\nNmJ3qVvoX84PkQZ2F1zxTthd6dS++b3pQA+bGn+HP5OZ1fbX1fkax0uXqX9W\nikcuHlbtjk7ymJLLXJiMYfz11t23AfREPcW0xaQBBeHXEd7wsEK1G+OpDMn6\nvjb4nHPHPs+808z1jBP6CqH+5UzzaP8vv4yX9vGNK+IYZl7KZDAuZ7cb/uGr\n2wWUS17wnsqCt8yp8bA7RHmq1MI6ie0pAGEB3MsWF0zE7pNqgiPwReS//3N8\novhDbYtkfUJjyL8CPZbMyqTSsw94nEII73L7ANM7FpK7w9Tg455XP0Zrhv5A\nLXRb\r\n=r5d0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2eba31ea1c3ae3c0e3497f3dae6cde368675a496","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"12.0.0-canary.22f390c43.0","@material/base":"12.0.0-canary.22f390c43.0","@material/shape":"12.0.0-canary.22f390c43.0","@material/theme":"12.0.0-canary.22f390c43.0","@material/ripple":"12.0.0-canary.22f390c43.0","@material/animation":"12.0.0-canary.22f390c43.0","@material/elevation":"12.0.0-canary.22f390c43.0","@material/typography":"12.0.0-canary.22f390c43.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0-canary.22f390c43.0_1627412460832_0.09662323556834473","host":"s3://npm-registry-packages"}},"12.0.0":{"name":"@material/top-app-bar","version":"12.0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@12.0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"37e8a3107fb681dcee39c79f26f836d8cfc4a1fa","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-12.0.0.tgz","fileCount":44,"integrity":"sha512-myk8hnpKgvtns42v03syyFKRKo5L3T69bg19QvJWkju1S5M1T8fppUFWkckubI4wZ6wh+ccRigyGxwWbp0hdfw==","signatures":[{"sig":"MEUCIQCYMaJjPwrGneQlVAUuh2y4LcAEZ0PYpR2gw2Kadr5HRAIgaX1Xc95oLHI9+CXKITSBZGtP/S7Un7DZ3VFUouOtAoM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1137706,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAGOsCRA9TVsSAnZWagAAGV4QAJYvmF4nKf7iQTOSrxhP\n2+AxP+alPrON9Y/JYER0yc3pPAbh0vcmai+pfHYzYnU3N0AMJCA/4/zKGk0h\nvMd6EEvoBtxXh+mkBz6ZoCd2PbkzXNSZOlM5ejaumpywpO+TlqsEdR2q1aE3\nIUDbSngdwpXsndoANFwJvQAfToMe+wz/dJHG5Flq/pSfaXBCV+O98efyk5KW\nD0lJSFqoxp6s3DCjCL5rD0P27O8Hqho2WAoUfDyimBzgp0jUbBm3vqjTvmdd\nEMraKtboJwvT7qzYBFcrmdeLFLRhdwXHTRPSEqsNM3wDW+rk4872iOe3XyJh\nG8ON2WT6OLgpDPfqc0sYC3MfSB8p8qXqvkLbfb9bW6fae6uU7AMR5VfBVDSC\nxKKvjnIhxsbxzL2oAxNaKqXa+TQipoYZoB30HwjnsNS+7c79UIYoA/nAqB4Q\nA2amd7d858lyVOtraNjowzrixbCgwlwRbcXyGey+sQF3oxa5sfGfGsu1sK4F\nD8yOOw4frqB3krrNa1rToz6JOJHSpEaXeFVxkinfijKtcsz/SwxgBeXdwzXD\n9sgp4yTOmZWrAfU2gS4IJas1dh376KBK1Nj8ychJgtxDMRwbdCx1Cd4TZxyi\nj5qMGVJ8BzFF27h7iFTeOb3AcbQHOZZw8lwkmCdZucB3cZlQp0zNrETfQJfp\nJQtu\r\n=Jmi1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","gitHead":"ae85f7eba0d72f4fa5f3e8669cd316336b3e6828","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"^12.0.0","@material/base":"^12.0.0","@material/shape":"^12.0.0","@material/theme":"^12.0.0","@material/ripple":"^12.0.0","@material/animation":"^12.0.0","@material/elevation":"^12.0.0","@material/typography":"^12.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_12.0.0_1627415468733_0.40033077873722656","host":"s3://npm-registry-packages"}},"13.0.0-canary.ae85f7eba.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.ae85f7eba.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.ae85f7eba.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"66f83048e342d688d63d40548bff7e49edf4d331","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.ae85f7eba.0.tgz","fileCount":45,"integrity":"sha512-p6l10LIBhJBrYCMmkEwNqlwC7ePohNLPJFqM/HNn4/qYLpRo2l6g8xMLhaBn31pTQB5gu9uQHKsvUoQMsusb+Q==","signatures":[{"sig":"MEUCIA8Zvfld+Ofen50WglZnWjznkmjtI10Myr5qWWFOhNHPAiEAlpEOA6sttwxe0+zD0FdJQH9s9PULlu6tl3dVvU7qUnM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1138251,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAGQICRA9TVsSAnZWagAAEs8P/iPykobtAiBmNpjq5PWK\nIDXYGqLeaeSU4Kvft2s54V80Q7pItBjAKCKElTdSZ0q019Jrk8edDBQPlpQI\naS6X5gsLgch4haamte4A1i+WVxrvt33/M3FVK12daZ6rw1EuhYy3zy9KeZtY\n+hcwq+TbknbGvhfNwbZ4WnVbJ7DhpkeyxFGHP9D8dfFE2uOrglQftf/gdph0\n3qgJtAM5rBl4BB/GBq/0w398/0K4Th7tHhTdS4Lx8OZxr7Yb/Q0/hZuN7IVy\n7qTVdxh80D8ooPD4xbhpBo+Od5Y42durQmTE5G6+dBpeB8R+EJ9izCGnlLrT\nho2Sn28YkNkTNcAajpuRMYii2gHDgteXbXlSn22QWbBbLFVr/kUV4u5xlr9F\nc3i4EmlHwFyr5ohyCZS98DW3DQ9c9BeHJEavNKBU7UfaFs5GAdexXCVvfwv8\nHUui/4Vya+9Va5TBTk6O+v494BCleN32a+qsDzvlff5yz5frT3CjueqJ+RlH\nK1kJn+EJl/c9YtbY/w6TGRBU7zfAVXs65al0bTLlE8+jw6FB+ubCqvfsLV99\ncACiKvM04A+j6DY9RYYQWVSqusZxzYqSOfIm5mQ79DurCz5Da50YZQ3Q86H9\nC7SCzkiKoLjGoBeJDYQTksO65goUnMyQagE3qIELoEa1cCSSIrLvDHZyvwuj\n4FQf\r\n=oTry\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"087c731cd84ebd8c578510bd4c8dfb5d11e8c574","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.ae85f7eba.0","@material/base":"13.0.0-canary.ae85f7eba.0","@material/shape":"13.0.0-canary.ae85f7eba.0","@material/theme":"13.0.0-canary.ae85f7eba.0","@material/ripple":"13.0.0-canary.ae85f7eba.0","@material/animation":"13.0.0-canary.ae85f7eba.0","@material/elevation":"13.0.0-canary.ae85f7eba.0","@material/typography":"13.0.0-canary.ae85f7eba.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.ae85f7eba.0_1627415560634_0.3486278494467112","host":"s3://npm-registry-packages"}},"13.0.0-canary.5981207f7.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.5981207f7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.5981207f7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e53d1f992f525ee4f8e9c0fd4ced40dcf08ba506","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.5981207f7.0.tgz","fileCount":45,"integrity":"sha512-HIssUCaMBH1C3KpZQ6cmHbBzW79idtrRwbgU0iGa3A+j0ooDHdhcLV2EDvp/p6iTxvyyDarEvPTicbWd03Xg9w==","signatures":[{"sig":"MEUCIG0fnF9RqJDjYHmXOGIRcIJYYslXgnB3uofsDMgOOTsHAiEAwKty2776Xb4OE1ewx8kvvuQ0LRpgo6AgAEquPAZwKno=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1138251,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAJR5CRA9TVsSAnZWagAAbQwP/3lnAAlnyHb5MkkWEwES\nSlxzV3rAFF56TOHGFZSTKALBZaY/o9iobiisdmmURyt+BlFz0TGChs/EqlSm\nzNC8howpIyTGGm0OafuwcaoNO3kCKhgXFhFs+07kMdKweFqdVWj0Ir9aBFZF\nG5nl/D8y8ZH14bgmTkeBENIkTY7ra2sIxcXdX2nonJdA/cXEDXHJ9xTDQtBP\nAF5Ovgg/nfEU7yXGjPcBxsuFtMHvXVvvKr2RlgBE9ubogKlnEvGzToT9aXC5\n3XPAHRppVUYTC6JsqSMIIu7uflp8Av9bn68lGloSbxULnF8RzaYJnLgLXrbW\nCxZd0Mc99F2ZrvOtlqjYxg3q8QIzc3uVLoFIZ7D9hnCfkF3hkQPimO+tSYv2\nGYXS38/DzV/H4pnPTvpVENl8/xofGUtn/azKj8I5Z5pMboyica32Z0QzBMZ9\nWarxzWVNUpYmYZZKlvkdAaPy6zIgSyDbz+XKE4DrBpBse8g+3cRzUen/gu3A\nAwITs3ZwD6yNpQxG4sFvfBnVpX9mGai6TeHYG6j0iy5oZa4GSiaYidf9g2Qj\nyhUfvnc+eml8D2Rc6xurG2L49vhzJjT6wo/QHK43PKJYiDnsELADCLxy0KNo\nsaTD4u4ZTIGiaNDQrclHOJhj03haJ+6qiTEmgT82uq5vf063oJzdItzgiUb0\nSQMB\r\n=HOyD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8a8b67c19b2a9f80923dd162098b373bbf34b58e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.5981207f7.0","@material/base":"13.0.0-canary.5981207f7.0","@material/shape":"13.0.0-canary.5981207f7.0","@material/theme":"13.0.0-canary.5981207f7.0","@material/ripple":"13.0.0-canary.5981207f7.0","@material/animation":"13.0.0-canary.5981207f7.0","@material/elevation":"13.0.0-canary.5981207f7.0","@material/typography":"13.0.0-canary.5981207f7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.5981207f7.0_1627427961695_0.46881969439240656","host":"s3://npm-registry-packages"}},"13.0.0-canary.83bdd0222.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.83bdd0222.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.83bdd0222.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5bdbb19d92acad6ea82f8a9c945412eb2d31f829","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.83bdd0222.0.tgz","fileCount":45,"integrity":"sha512-fg5bd21l+Nh8zMXBITF39JZ+oOB4M45RzT2u1kVPH7AsXvMc36jlqYOV3Q9CW0ma/nUnPLuYNoPZhg1VsZPSBg==","signatures":[{"sig":"MEUCIQC2Oj7Xkw3jbfkp42ykQqQaTeyLkVYeHo9m2EljwadfigIgFbANwIfHKUWVtGCkrVzikY4N7uMZVfitL254RkAw51Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1138251,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAZNmCRA9TVsSAnZWagAAyEcP/3Hqe9EB3inzAF0cmSYD\nzG6qrmH/awQRnmx6DmuJ5FfVdokKFTW78/nemhXkX9DY576VvWFuFsF86GWB\nQ8CmFOvOskhfjAxolDzZzP6/dsPKIEJrmKkWd6Yvey2ivEAS4KOWfR6YHo+p\njr7MFohkKdHVYkCKTM+iB6oVG6C4RMEb7Ci72MrsDIQwJQs9MNL2Wvf5ve6R\nKKVwDlejut39M1LZkPDJL4audYBhiPpVqvNPwMJBg7mMlffc9OyqVyMeZl0m\nIapoC1kBWGcvjqU7ZNoMFoSqo/oDKCkLxdGV7awQ5BjwIhGtw7BzCy4xGuNg\nruv5qk9kW9YYZS32HWHA1W0qCzI3SS3YNfRf6s6Bg05nMnjOZvbwGqlF3tdF\n67dteDF0qsRjVwZwvHPCkxQ3TJjj0Nk71Zt1+qaMv8kp07M7HHLsWyT35dvJ\nAnG93TQPoW3KHlVaz9DHO0z2girpUhr1uP6vTNZcfH4v4gxxhBY2drHLF8fL\nj591QgyKTsm9ws+EA5v2zE0rrw/Cwsk7kCkJKi1ngVqLpNRwa9RCAt+7W1nj\nltZcGCs17Xm6MnyN0HLk9fykoZHpNTn8kcsjFiTH083+RWNrFI4+ygwHQkeS\nWPIa+tmZ4dZuNB96lZ82z6L+ubLsjzouDcEGyfSTSv6Hdng4vyvYsEO2dAgR\nZQ26\r\n=YjJZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1f2b23ad4bf20ade58cc1b10490e9ca3f9469405","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.83bdd0222.0","@material/base":"13.0.0-canary.83bdd0222.0","@material/shape":"13.0.0-canary.83bdd0222.0","@material/theme":"13.0.0-canary.83bdd0222.0","@material/ripple":"13.0.0-canary.83bdd0222.0","@material/animation":"13.0.0-canary.83bdd0222.0","@material/elevation":"13.0.0-canary.83bdd0222.0","@material/typography":"13.0.0-canary.83bdd0222.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.83bdd0222.0_1627493222098_0.27330242132674387","host":"s3://npm-registry-packages"}},"13.0.0-canary.28656298a.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.28656298a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.28656298a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f494e26f1496f6ea70dcb3224e48cfb1816d410d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.28656298a.0.tgz","fileCount":45,"integrity":"sha512-WbweoY9aKCSQy9O5ziJxkBDfrTwhAYVQ1/jG9ZXhUoO5DVqG3KljUyUSzJSrI9N4DqBCLtj8CH4VgaPFiEWzpg==","signatures":[{"sig":"MEYCIQCzhZ4kmYaxXGboaPoqVust3hY5esSC48/X5BvlTeoCmgIhAK0gLioihD+TPm44AypLe0ESjZPi/IRWso9sSnfJVXs5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1138251,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAu/uCRA9TVsSAnZWagAAwBsP/15doLgmC2BU6IfVL61f\n6d9PZWtZl0wOhaSP1fD87bvj52v5eZnsuA5kvnRmN+KTUtqoZ3vbL9qDHdEX\nP0qrGGWFV9KcAZhocA6VHkPRD3SjvxisMJN9RZ1AQqXUgskFW79QyHFojG4N\n/Tv7riQ6kVAO5mDvW+3lzP89sPfbsonyr/m4JAyenFybxroT4C/NStmNO3eH\nFKKv4RYF4MU9N9Beyvwoeq9kmfPH1aVPuB7NNJgjyNDg5B5rXZOwcK8PL7wL\nQoIcISqxkcUTN0eAa31bJotmEVsELptwO2REzpx+HWopbnk2pMavGnnwzLgG\nQt6to/AnHWHG4cGk7PcGMnmJCE+ByiPKsuUmeUjmzVJWfWnTujAtnaBwd1yM\nk6mJmLEmQ1FTZmUFpA76my+JHDFISFVqaBlRfDbCQy402FOukoLaBHRu02cN\nM7WCkcOcBS6rXwzqQa8vA35MksJDJcVLQQvTFfyl06uk7gGotOazc9l8gfCE\n1QiUc9rsE4feLntgXqm9QcTdJtxx9BlNBaeML3dU5CAF6elDZJGv+KCssx3s\ncqe4c1n53jgtHcG+/lSRnAz7maGW33j8fIQ66LeR04AiYFN2o4Pobv6fuMgj\nlzrN4TwdndEZk5MuSqrcpp8g6BTRU8ilI/ErvBxwCn/TZNQKW8lWJcLwubyy\nX38C\r\n=eFSp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5fe3e7fec89669c56504c13aadf80a71a543df78","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.28656298a.0","@material/base":"13.0.0-canary.28656298a.0","@material/shape":"13.0.0-canary.28656298a.0","@material/theme":"13.0.0-canary.28656298a.0","@material/ripple":"13.0.0-canary.28656298a.0","@material/animation":"13.0.0-canary.28656298a.0","@material/elevation":"13.0.0-canary.28656298a.0","@material/typography":"13.0.0-canary.28656298a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.28656298a.0_1627582446607_0.37059958072490584","host":"s3://npm-registry-packages"}},"13.0.0-canary.9e797daaf.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.9e797daaf.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.9e797daaf.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"982d390cfadd4f0fb5ce8d588fa7916e6cee6797","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.9e797daaf.0.tgz","fileCount":45,"integrity":"sha512-M42LKouQLC4oldx6z81HfA4tvl98Z72u5Y9GWzQsojHYb9NCJohucAYG7RyXQQfhi1bdL8XXpnczZqHu4GOi7Q==","signatures":[{"sig":"MEUCIQDj58nuGCTx+hKbq/bBZ1Gr71IHPybsqDA2NGoJuMw//AIgZpIW7L9rSfCXw+8l6ImVnosA2RL/uZjtWzUWYY+D/Hk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1138251,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAvUnCRA9TVsSAnZWagAAMJ8QAJ19HWIAEz4+mn6wXbjy\nNVJPytajeQePgliXEJHUa68xmWyFQk/M4VguKPtEJAnq65hToYiQZ9TWEPPG\nH3ToiOCfxulksV4m244Sq8Ifj2fgacerev7xSxZnKbciMKGBrFzaxYWZTyw3\ncC6+mhq9NmD2gonw1ckMRBo0WZ7PNHnVXNyciH+fSRcItxuyafTrAj7cbJpI\naQvvtsCaDp5abJC3n+5RDsNIlB+oXLUjtQbDSx+uNOwrR6B3lcFX9cdYvIV7\nrWdb9y4ND/ibnvalmF/oJOyqW8m18lzWkMavqOhlxL9q3Y0NQLsweIFStlvC\nvXJFBi26uWmFAUK+7tSr1C9B5QzfXnLL3ojlIi8joGxtpgec0hXlRLsas7Ci\n57RnSmDtF/HdkUM8aA1XpcMqXCWnp6yM8qZTxG/XEstmdIglpb7tDgBidGdn\naqHhaM5NH0jecsbofS3zYSKJ2rCOWGx/fCIf3f0X++2t63lffTPEjrcpVaPu\ncLH4wvMPPq7kLTzGiuVUrLUfkgY8XdmB4k0YR6zGBD4TSbnr1aviENFhbTds\ng0Edr4/rzk2KJ70QAcjcXGIrIZqjJUBsOWBKIVoHcpKmnPyPa16pfL+FJ710\ntFPygwTLifdNDkfUCOot4IrCnvCzHEoc2kLGbITHLTjn0nR7IOXvBzeHCURN\nyR+P\r\n=ZCWx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cad664597e3cc10ce42dff721f26f40b986db48a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.9e797daaf.0","@material/base":"13.0.0-canary.9e797daaf.0","@material/shape":"13.0.0-canary.9e797daaf.0","@material/theme":"13.0.0-canary.9e797daaf.0","@material/ripple":"13.0.0-canary.9e797daaf.0","@material/animation":"13.0.0-canary.9e797daaf.0","@material/elevation":"13.0.0-canary.9e797daaf.0","@material/typography":"13.0.0-canary.9e797daaf.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.9e797daaf.0_1627583783087_0.8819197132189627","host":"s3://npm-registry-packages"}},"13.0.0-canary.adb9f1ad8.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.adb9f1ad8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.adb9f1ad8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d099ec7e5b7331524ae67a268b8fc4cbf38e751c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.adb9f1ad8.0.tgz","fileCount":45,"integrity":"sha512-+fCdkz++2/+iitKlcxWgtr+0fItUUseG6wVs7IdKpQ/iCEUz3uDLA2TEI6XBQIpgUcgYePVlNKjEg7eYHSnmWA==","signatures":[{"sig":"MEYCIQDYL5l1MWdTEqbsNPQLLweQh4S64rsmqmU4WXslUebd3wIhANnpa2iZ/G9LdqA5hYDbrkKhkKKiKuQbf1nMFbDfv4Uw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1138879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBE2gCRA9TVsSAnZWagAAYMoP/1Lo06dFolwm2I0zDl5e\npcVdpn6yI4UQOtoff+AxLL4KQhilz6U1KBaFFW58FZ0BmsANEaMVLwTrpJXU\nxwhH/XvENy5Gtkd6AAZXgkyurnED4G716ql0kZFFlE3OjTC09b8gLiQOjEAb\nRCC4YxfG5xv4mpdNpRv6tRZQVfspEZGlfvHX1HHEFaNYAU0/zHdsgBy4BJCs\nZoePsLscVySerauQsRPIlgcTUf1mqHQkKNpTH6P6QkviHKcolWjUOFb9+iip\n++J973a+a83ANhH2dgFfgQbtrtqE3D2A9SkhfJmSlsFczLbdtRXlrNSivGSk\n9GPlzVCUAlMKyOT/AtFr4K1/YvTE0Hm7P9LQBx6AGZBC6kM8QPrO+3PtkNzf\n6KBHqNatUYzuIb4LcxI+WxdE4kbM8Z/W1uNWmVELLlpurbXZUTK9MyB0N3t9\nywrL2+VlJBqzo53tBnSY/hcliNjQ0jxoXoxmPBGebYb+9xHVTGBdAFWjrHp/\n5zNKskxdh4E98H4thujGLgYf6Q8PZQac6nxmIW71+eaGWu4AaCgpTge/0V9G\nkL9HZ/rZCcqkXP86z3JzztNmNE8lGRXBEOgJAGygdR+pXZmFO1NI1zWoWPcu\nRdfOAeicBuaB2okCe3V8hR4L4yHflneuF8+Z/RvsNrIbMX7vQ44k6sP39DmV\nSb5Q\r\n=KtON\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"db010696805aae457c8d8c9da8b394efff28ee35","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.adb9f1ad8.0","@material/base":"13.0.0-canary.adb9f1ad8.0","@material/shape":"13.0.0-canary.adb9f1ad8.0","@material/theme":"13.0.0-canary.adb9f1ad8.0","@material/ripple":"13.0.0-canary.adb9f1ad8.0","@material/animation":"13.0.0-canary.adb9f1ad8.0","@material/elevation":"13.0.0-canary.adb9f1ad8.0","@material/typography":"13.0.0-canary.adb9f1ad8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.adb9f1ad8.0_1627671968306_0.6306472318021006","host":"s3://npm-registry-packages"}},"13.0.0-canary.cc5377458.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.cc5377458.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.cc5377458.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0614920fb9161814552af922d4bb0a6b66378233","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.cc5377458.0.tgz","fileCount":45,"integrity":"sha512-aYaEuXsdcK2hQ1kXIiCWA0B04d0KWL4jVp8k7spfFGREQG4fHVRkpBYsSS/YrakXI53D+ldxSwO3dECAOgOfNQ==","signatures":[{"sig":"MEQCIH+Btnk/Vqbn61bFN6HpQMjt767TOLAQsoERYfPpxZTLAiA81FvEkv4yqeTm/3nagM2bx/DVnfETIgupqVlFAa8Mlg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1138879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBHBlCRA9TVsSAnZWagAAbAMP/jkAS4fR2k0owxISbMAY\np+a12PkpDwX7Egpy6r9RFPMW0thaaNd+fgwdMLLlo9NV4Xu5kZNzr5SZO8XT\nwt4KhZ7g4vGPPKNsHaO5Jv92QpLMU3cZoxHtrRko3UZBjbXbo9KiNs0NZtSc\n93hJZDsgyaY061WD5GVslvLGxX/FqFy2uks15ZkV6dlGzb0UEKEh4z/6ymUZ\njcD4jlm0vcXMOoXxGuv7fLMPmQ2eez55J3s0+fRt5Vhof/H/ET0RZgZfgdwO\nKAMy8dV5tDYnT1zGpLlVbpNi6QbeFM7mXi3JvmuG0Sed+rre8pSdzSeJdaqo\nFzY+M34SpWUz52GsPvBnMSSB0iWg+Onu5IhSu2Nqe9WyQrxY2dtF+DRuCbL2\njNnsscWQQhPq4mB+XkKtdjp3SlebtAwh8gRGWatT9HDsBoI4AbclJrByvEcD\n8LY+NDJuyYtrMtMwICjgBVhlWvNivrAqd5ngO1Aud5YEYk5OAD7eD+E50twO\nodi225LawNWlRHGOkgrIFRvB4BLwyTjthEArI1bhHcq4RVOawF5q6x3dOCEw\niHuEvsrnFgoN01CCDxV+syL8RplNaGjwOKzatQ5SlPgKXTWyuIL+IllmZkZW\nBYKoumZECTm0aDkHfPTfX++oOtR0N2qTrL66JHRJfu9fk+IsKsCJjFMyyO48\n95Gi\r\n=a2Rg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f4f5852cfac85d68dbd83665da839943c29dd866","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.cc5377458.0","@material/base":"13.0.0-canary.cc5377458.0","@material/shape":"13.0.0-canary.cc5377458.0","@material/theme":"13.0.0-canary.cc5377458.0","@material/ripple":"13.0.0-canary.cc5377458.0","@material/animation":"13.0.0-canary.cc5377458.0","@material/elevation":"13.0.0-canary.cc5377458.0","@material/typography":"13.0.0-canary.cc5377458.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.cc5377458.0_1627680868809_0.8150307113080617","host":"s3://npm-registry-packages"}},"13.0.0-canary.a395972cf.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.a395972cf.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.a395972cf.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e184f94b334a3004532a12f64742e14d05bb37e2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.a395972cf.0.tgz","fileCount":45,"integrity":"sha512-Hrj8hMjMzHCemfzqjxa/CBL/GghGY2yVfyq1cKrk681mdKQbigewh2r4kqkCWzPAO7RJ53B12kJTzO+iPPPxPw==","signatures":[{"sig":"MEQCIHe9njxb95Is/zBPZOA4kwkCHBTm6pBCfxEbGQXLAkpfAiB3gSLpSWtRrOjtnCqvDcZIgtIQRo9191ZQ9Zom2PjwMw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1138879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCbQOCRA9TVsSAnZWagAAgyQP+wQd31SDSJ4FJ4NMTtmi\n0GEcKSNs6ktpAVzwWjZTbWW28Mw4HEFyRifroBSJB4M+bLB4LOf+ipT+GfLe\nBq5SgCVicBhyuzKvDepB3nKxvbcJoUB0rOKzAklPe1gaf9m9l4eqrKHlcM6S\nV+Bsx9JX7JO2ksoYBmLSqe0+wYaUZYYxTvZ+0Oh/N3ZvHyivXwBBcs9z+bzj\nShKJej9orSUUmwJtsI8Ac5F1jlB/asabeCVkJ6F5kCPBqclYkDgIKA0iJSll\nUVfGRAFOvUSyLQOBneJF0r9OkhI1VqeRDEY5WQagSSkoE5s3jmK6MgHUDjaY\nQYvIgWWuYI7a33uvkkmGGnKeeWmdPt7ZbUM2b7GYejVNTlENKk+3JjcsLlKq\ncn+ZEDdY0F3t7qqUewzphnjAsU7X6TaTFFhtdaKo9VBZWtxh6XL5a64hCQPF\neP+KDz72gaHwUNag+NTALf7D25eBtqHeRMPlYtWQjObEkgtWKZwY4unBnxc4\nmoTO2rAk5SkUkIj2sQWAAJQvpZHsIZi9OZupoSu5Q2XpXOwQRpTPJxoFkZfr\nDtgI6+VOdnpbDPCfmBhY1+vj94d0KvMOt4id/cI7CbPCa0PIChHP7ZWXgh7w\n4QiVkcbWIQUlFpYU337ibwDY8ijSFVrGhYcXDB8gfGYgODy/Qu34Jd3OVEbq\nFuIz\r\n=0PwX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"00a6b6110465620df99cf5f775d52a1054c91cef","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.a395972cf.0","@material/base":"13.0.0-canary.a395972cf.0","@material/shape":"13.0.0-canary.a395972cf.0","@material/theme":"13.0.0-canary.a395972cf.0","@material/ripple":"13.0.0-canary.a395972cf.0","@material/animation":"13.0.0-canary.a395972cf.0","@material/elevation":"13.0.0-canary.a395972cf.0","@material/typography":"13.0.0-canary.a395972cf.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.a395972cf.0_1628025870457_0.8858926658394783","host":"s3://npm-registry-packages"}},"13.0.0-canary.7c96e6b98.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.7c96e6b98.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.7c96e6b98.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c0114e04434fcd6e60c7d53a7e3ffd244f7405c5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.7c96e6b98.0.tgz","fileCount":45,"integrity":"sha512-hDVxhT6VVrg3KKbcWb5hM2gpAkGowZX7+4EZnUpYrtp5zF2KTz/LrQElqwA5/NlvIA767C/MTjE6hdZPa03zzA==","signatures":[{"sig":"MEQCIGSqRi8X1OcL4LMjIS/szQJiaDftttAUDNucoPM8RyhEAiBVG0KPs4PimwXjbGfJtLom+jJh9vdA3Edq78gVmWTHtA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1138879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCb/iCRA9TVsSAnZWagAAiYgP/AqdOjlfzLWleW9RKajk\nigFkGno9DXMLmMDLmo7dbyBvQaqEMeW7Xn22jnaEAqD6tHKcLpvS2mWFj2pl\n7lx2v647DNSfVrzLcncFenJw48PG2xiMHj/6TDbdkRmDtvAprAFxmf0pjc5o\nm1YUR0l3Pk7KijGJuQJVoQj8HbuknjVTdReLTHK/4xVQEk/BmjiVlLT3LN1K\nUrzpZyz4IM88uVcj6TLTyoHA43h5FnmecsNGuizk3+hH7K/1Z7oTtszjyF76\npVfxdBpdOJLfzFx+f0U8V2871928+lYVcQ3v3tNjUOTK74dwjR5lHxaVUFsG\nYixqoi/3UvmaO9Yp1tCGIEMFxd7nCqf5ekCLOZgMFOaJtPwysraaQNrv0baW\nITXNRV+zIl34E6ssbd4nrWV5OmUVmmuWR1rW46aSMpZqrNRddzKWvldp/YZj\nRR7X9P1iD1dYTdK4sQf2TehyZEFEIdtR+s1Iyi1twt5Dy4ToPY2OilQYAi60\nFQbwkGnSPkAi1NV9namNS0ycanp71GKuuze7NJlZVY/x3xZ81G78XZzayo2W\nvK/TAA28e+hHSfZi/UV9sZclFCui8cP04A8jE0aEa7BFdyML98PkVMK8r56c\nWsA6eas5nxHlZMdX7vaT21C3coB4BNfivZzmFtii27rd2BFkQbuBdqRnd1yA\nyfNS\r\n=QbMv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"38c48bd580ff0facb66c28bf9caeebbd2a6a4033","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.7c96e6b98.0","@material/base":"13.0.0-canary.7c96e6b98.0","@material/shape":"13.0.0-canary.7c96e6b98.0","@material/theme":"13.0.0-canary.7c96e6b98.0","@material/ripple":"13.0.0-canary.7c96e6b98.0","@material/animation":"13.0.0-canary.7c96e6b98.0","@material/elevation":"13.0.0-canary.7c96e6b98.0","@material/typography":"13.0.0-canary.7c96e6b98.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.7c96e6b98.0_1628028898242_0.8156576130805289","host":"s3://npm-registry-packages"}},"13.0.0-canary.a80c8b2c2.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.a80c8b2c2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.a80c8b2c2.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9c7e898537d34c4c8c9acfcce5946cdfa1facf4c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.a80c8b2c2.0.tgz","fileCount":45,"integrity":"sha512-vFbaICJX35hHtsa4boSQy+gT1LH1aRvwHNx4189t76qfO2SLyBHzIQ5JaiT/sQUY6SPn7A3+6NLYfZsP0Di0Bw==","signatures":[{"sig":"MEYCIQDwcYpbp0KSRGMF2d4167f7REVS3loSmynJj0iaLMwmdgIhAJlpHIOKCA3BQIie0rCQbB6tJsjmerE2Il23e2hu87m8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1139347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCyo3CRA9TVsSAnZWagAAJyMP+wQDG4tRGlhICt77/6bN\ny3GdrQhuScMur4bz5mI0FlUeGT7I/J5smPZIE1xw3Jc81ph3DTvY4GwLqwEG\nhmBJEXwPn4d24fEMAJTnkf/pDGKrbx1fZeWAQfiY5bBZ76qQzP1HR00r66rZ\nASK52n8xsyW96KcMKc9u496AY4OqryiszAI1ftjApRHvNVYfAw2JZ6zg/RJn\nyE9AqONaZGPsXrMGs/Sp3Te2uyaSOYjVoQu+2hw4DHIe8uPXVSIVpI7fipJJ\n6gVu8Kp55YsTxYL4twFZUBNTfwY6hjcX3YjIOKb3mWgW+TUh1FZ5xl7b+xKm\nSIBMEImKIGKvz8e1pKx8IqMtos+0excZkhwp5dITGrhxkteT+Y5Tu7S4Pu3N\nZ6rOfS4PtnHfTiMVOEuzMJGoIANfcGQDby2VtUpUtHxhfL/Pxyzy2E36Buk9\nlQeEW3ViWrZNdRIzw9Ix/RUrik2sds2QlkOIwmuY87qdwEIaXBPWFqfxFS/d\nmIabpEjPGku7sGQgUVBmiqUYtBOMaV2PrqlW3zpwconsUoIqplpBx4EKZx+t\nXtf8gjcPG/kQYSrbNwm4aajySHp8h9wzGk8mTO00hBHbCgUmTqoNymdjTliY\nst2mvkaiYRMnnsLVHx7oAouIIIk2cJmtOLM0LsKI82sRKqywDWJ3vq24alr9\nh6hS\r\n=vfv1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cb4d3f1d1d37c50939ed5269748eebb96f798601","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.a80c8b2c2.0","@material/base":"13.0.0-canary.a80c8b2c2.0","@material/shape":"13.0.0-canary.a80c8b2c2.0","@material/theme":"13.0.0-canary.a80c8b2c2.0","@material/ripple":"13.0.0-canary.a80c8b2c2.0","@material/animation":"13.0.0-canary.a80c8b2c2.0","@material/elevation":"13.0.0-canary.a80c8b2c2.0","@material/typography":"13.0.0-canary.a80c8b2c2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.a80c8b2c2.0_1628121655224_0.7453790952852017","host":"s3://npm-registry-packages"}},"13.0.0-canary.3dd611091.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.3dd611091.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.3dd611091.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"38ce45bc653b69b9c398b029547494a945455d79","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.3dd611091.0.tgz","fileCount":45,"integrity":"sha512-JCfEqz7IHs01UsLaUamNCQpR42xtozOj7QCiwTr54SUkB4E5Dud7/i/vNQPS8XrYz9/XYbuz2Cf+iWBv6EC6fg==","signatures":[{"sig":"MEYCIQDy21a9owLYV0lezrRdBAE1ozQhqKIdSVnuYlA65ZGalgIhAONQRp8KOEnayVtbPim1yViZRkrL/YQNp/nVMR9O44ma","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1139347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhC2G0CRA9TVsSAnZWagAANP4P/RfszBJL3NMynkaIC+Tg\ni4bnemUpL7OKBroyN5EQ/X12+3KN6FxZWpMJ99068HztJ0srcSP2yQJ4Ucio\n3GOYRy14nZHmwGLONqfZmlwoQo9Rw42co7Gai6LUA37uBz/PWROPjkiQELXP\nNTTIkrm8IPb9mBZprsiYnZLl2Rr2J1+05OvOx3xi+EWRNeFJKrw6WG9TVNeB\nYv1vTrpjlkwzDgwnHIMGd84cGPmnBOnDg1AlOFfQJ49BqHdlA6CBYoEoG4va\ne1DV50DWqQlle1SQtOY4EyX2vauedcFwu/qIufdd/GXzfDSBRSk3Ko+UYKp2\ng2YPspu6jdDc/v9CL0gitS5rkrrtTrOy9phZdl1FWqcNyPQzfOv8O5XGxXKd\n0twCilMbjBkEOLGatu3QVBOKg9YDkNRf7kaomtIZjzYbSPrNbR8a2+vxC4aJ\nFObDrRqDA4yNm1Ac37M0RjfrMFWuesGN7MAfm/IGhOwNIeRwnjzbhIM+TsUL\nL7jPkTu83OeEFLuIixN/aaBrLM72f3HOSeJ1XKM0hcraN/y/NxTkAzyVBNEn\nIX0pZhSHg259evMYBW/Qi4ibfgfi9QL9sb1W2S6hnH81SfJpsdzkbSDdJILD\nuGYu28gn7oEQOJZP2Rdkt3oKWNFHp8I+zutpVjj2dSlwi0g4k9t9Bgvrs0zY\nzDVd\r\n=3/CF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fc6a6a59d9c86ac1f85efd94a4aa6a8e4c27c379","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.3dd611091.0","@material/base":"13.0.0-canary.3dd611091.0","@material/shape":"13.0.0-canary.3dd611091.0","@material/theme":"13.0.0-canary.3dd611091.0","@material/ripple":"13.0.0-canary.3dd611091.0","@material/animation":"13.0.0-canary.3dd611091.0","@material/elevation":"13.0.0-canary.3dd611091.0","@material/typography":"13.0.0-canary.3dd611091.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.3dd611091.0_1628135860217_0.8639185316620717","host":"s3://npm-registry-packages"}},"13.0.0-canary.5dee37ff6.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.5dee37ff6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.5dee37ff6.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8d004fa3dfff3773259579b1ca95e20be2ad4465","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.5dee37ff6.0.tgz","fileCount":45,"integrity":"sha512-PuOXQ19LYoZI51ytOi8hBtIFIPzBZY+W3Esv2F9nKFBICVJmBX/JZXOgHqEGUesuLnVFOyLppTMIF7j/zONONg==","signatures":[{"sig":"MEQCID1xLBVGeOnPRLHTR/Jq2razo9RDqAeT7JTiY3QSfrzLAiAxVCVVqLGimwPlajNpEd+BRQ+1d/fpiJT3HMlgrNMzsw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1139347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDCNBCRA9TVsSAnZWagAAKVYQAJ0++ejOPQ9fH3jB3YKR\ntI6LukMEFva0ugXhmCdGFVOjZDpsCkrAiw3nh3fsxv34ufZG/4PtM0Dxbrfb\nPPbpM48XB2mY4/YqQZE1AgC1hdNhBoD7yeedUl5yKolfhkT+D9o7TirCajoY\nqor77hgiarSu99Z7rrEJ+yfcIu1r0YZ76VYvq2xkyUM0aaL8gLJw2nB8ocj7\n4nMA+vGVlCmMjV3mf87c00FKBOlxdzUsBUXdLcEKCwD3XB4HPZUJDMDqnDIt\nGvHbW8uGJYZYSiH+B0SjRUQJiCOwUlk8QsTOHyL8xsvyVDz16pzXDKEr+9gU\n9yz8KkrFGPqEgSvJBTcCMrvIchZbKnv8BFk3svAQ7S7eSePhUzebB27iPrrP\nJOXTPk/TYKKFL2V3lX+EgA0kRVgwS7bLDEVbPVz9elanKhoS6lMJ0LDWq8vB\nv6YLcSTFiFZ9e9L8EaDfaJrmfpuojm546i3DqQLx5U/x+yNcQ3mnebCQcY7z\nMVZ9pIFx9vqXXeWTysonhixQLhZcBArH5oXuzUFSWv/OTHqc9+Xd8hwqw6j9\nKYQEAWe28STFUfG1XE+k9I/0xl9V3ZbTRDy2fqS2mK6IG8665B+dFDv+zhWX\nrZz5YEzAm1sB/fC+2TAI02EVFI6zJKQ3FmRDg+QkgzkIKqz7rsTqIG7aZlvb\nMKkj\r\n=IB8C\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a7b521f6e807878ddba15c813505134621ef85d5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.5dee37ff6.0","@material/base":"13.0.0-canary.5dee37ff6.0","@material/shape":"13.0.0-canary.5dee37ff6.0","@material/theme":"13.0.0-canary.5dee37ff6.0","@material/ripple":"13.0.0-canary.5dee37ff6.0","@material/animation":"13.0.0-canary.5dee37ff6.0","@material/elevation":"13.0.0-canary.5dee37ff6.0","@material/typography":"13.0.0-canary.5dee37ff6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.5dee37ff6.0_1628185409247_0.5352276381428263","host":"s3://npm-registry-packages"}},"13.0.0-canary.bf405d22a.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.bf405d22a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.bf405d22a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cfa37323ca5599b337816090d91f45e313a384f2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.bf405d22a.0.tgz","fileCount":45,"integrity":"sha512-h91bUgJFrqADUiBbMcZVIYWQm3L60J17SQt23LZ+2ej6BveJXIFDXnkoyF6pDmq7U/xVO1zhRDbJCEK3umAQoQ==","signatures":[{"sig":"MEYCIQDdH8x9fbVu6TrEAJfgKreLTGbGdEWLZeXkmCd8RXSJYAIhAMWs7IyVQ6kbGB08EL010zNps2G/YVe1iaKWBUF7TH5R","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1139347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDEfDCRA9TVsSAnZWagAAMh8P/j5DOv29waLqI0KHDEaF\nHb16ELFrXhtDN/GCbPSJRNY6Ihm42krn4trNLSmdUa4NwDJC+a2bmoZT1JnX\n8i4Mq1nYUxTOryEZuEqbmW10Fh9CAn6tlWTD5HC2KP5p4xAVqgjQPcDKkuwX\niUFgGAVS+X3+33uZYKnvaTmtBKUGHh1wkhVeeVIbCDBw1N3nmIG9wVJQ9Ian\nvtr8GcBynqiebt2HVXQWpvkVK0HnZiIJoBgtmBynr2/tfGMsRLhN8K8d+zCB\n2IwblYgK+uYnSCcSRV3FzuUJqkYSRg8xUobjqxWq5Z82aPf0MYJeXP0V0jS2\nHnsgLHPSZkVX3nimfHh8AnpHGTQLX9NUNDexIVG3SyQwRPr6H87WFWVKHHHJ\nrntkrchInC2oLow3dhwnLpUThSt+RpihP4reqvY9o2itLVjDOMdMYTpydx+9\nIazf5pVN5lxWE7SazeGDCbKXXc5v14a9YE89WLsH2m+jdH3DTkBKSPJRmeRP\nTxQcMxDyuz680yxuPCb7NYL+iHK2JNObcRAklJ/fSJ3FaDZ6wHq26dEPjMu8\nTLJm5TXd72fEDzvLsqsd96EBHwCDTdxLbMxXOC6zqqI/9Xav+O5UzKewVbrb\nLoB2li/xSmRTwQjofsZi/7A4l8bQIOIb/d9B7PoiVHvascepaZOyyK6rjuxZ\nnSNd\r\n=jENh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","types":"dist/mdc.topAppBar.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"00ae15a245c6a46fa0a13aa61a02e5958c0eddbb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.bf405d22a.0","@material/base":"13.0.0-canary.bf405d22a.0","@material/shape":"13.0.0-canary.bf405d22a.0","@material/theme":"13.0.0-canary.bf405d22a.0","@material/ripple":"13.0.0-canary.bf405d22a.0","@material/animation":"13.0.0-canary.bf405d22a.0","@material/elevation":"13.0.0-canary.bf405d22a.0","@material/typography":"13.0.0-canary.bf405d22a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.bf405d22a.0_1628194755578_0.12791041272951986","host":"s3://npm-registry-packages"}},"13.0.0-canary.b47dd37a6.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.b47dd37a6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.b47dd37a6.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d8dde0a8299335d302c4bbbad2dfc99bc6cff635","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.b47dd37a6.0.tgz","fileCount":44,"integrity":"sha512-u9GwhyAzwXKymCobai30YDFRGa3IaNJxa9AwiHXtqtPcNpzz0Cx/NvUtptG8eeAFhsEWe/HHrTTX07oYqMw4+Q==","signatures":[{"sig":"MEUCIBL4BoJ7KDe0ek4BzAj1P49YjKDwkB2HqmvjmibFYWLlAiEA0CE61sPcH0jfDwFxrZ2PkZprh2QcdSRtL90fCvmocqc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123113,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDE84CRA9TVsSAnZWagAAy0QP/0+zCm/KvaPkzWSPrYoE\nrmJwqPm/Omdu7abBx2jSXtkkviOLVDNfiqX5tIJQz87mx2Q1670cGjuyBlh7\n3WIzjOSSdv93jT0YKpfPgd+yFanqqiBFOzO7ZI5xhqEcXSl/i03Ec/wSr9yQ\nSYRHc2nq1MTR44iWiCoRCIE/FkkNWdiCwDykHsukjTp/QNOFRIbnwoYiu9Ao\nqAmuP+uN6D5GM+IbU4+80/AcUAQdHKal3ER0+seV0akAEiZ0KgKfrjvlIs8p\npkBno3BM5eYgb6ChwCi5qYOONMXnxBoDUU66gdyOK2YjBPuJbqQWt3coYXtE\npT4+me4LFxj2kRNASdCfeyGOyXFWPxxCC/5lUVzhd2KTnAUBJBh6dllIy8bS\n5d7UEuQIK+eN5eZiQvUtx+FzFo/Wqoq9rEEp84HI4E48AgGr22NvUGAQEcC+\nwT4ZDQpLZdsZVKUNus/37B+j5/W4RoTsGLRrqGr7/IME2AzVJTkIKHfw2h2w\nKgv0yl+wdlH36urbXBbBCcXY6MSdfx3rTlW0Ty43SB7xi/mwgQxXXLq5oSHa\nDZpPyZflCABLLT0FStYWadoaxFJnCXvOvav9Z/wD/QpthrIOQBq5mEBJZ242\n92s3S6Osp0gB/Z4MGdje7oi3SMSQrUn244/fh2566aIwrmo0EeGxTCRXbJrY\nOPWT\r\n=XvJu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"47f67e5fb310c13dac39b9beefbd6b53fa54d1b2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.b47dd37a6.0","@material/base":"13.0.0-canary.b47dd37a6.0","@material/shape":"13.0.0-canary.b47dd37a6.0","@material/theme":"13.0.0-canary.b47dd37a6.0","@material/ripple":"13.0.0-canary.b47dd37a6.0","@material/animation":"13.0.0-canary.b47dd37a6.0","@material/elevation":"13.0.0-canary.b47dd37a6.0","@material/typography":"13.0.0-canary.b47dd37a6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.b47dd37a6.0_1628196663923_0.4490253936893791","host":"s3://npm-registry-packages"}},"13.0.0-canary.6c82b965b.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.6c82b965b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.6c82b965b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"24cd875ba978c203dab9aa67e3da9e47850035aa","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.6c82b965b.0.tgz","fileCount":44,"integrity":"sha512-Gk1Z4eLppDUC+f+h5uavv22KrDZoIoJOAknKqt2CXm47uDlY1vzkqALQNRAHq0rwdA0rR0iqUxFEQmtplR7LTw==","signatures":[{"sig":"MEQCIGF4NMfufOE41PNNs03q2eBZ8+VE++8mWurWqLtELPvkAiByA1GEMYshOFg1HyXrwKV+bB4P+C0EU2b6VnxBVT9xMg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123113,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDWBBCRA9TVsSAnZWagAAEmMP/3gDKd2qm9VIiIuDSiPD\nwt1W98M3yV0XRTimzTzOOwrlhYIo2QklPT+fbCyjWPdxKqDRse9hpbd2oPKR\ntLumqLGREA3AohGGbNmljppVhKQKqgvjVEhAFl5xVm13lY5V1De4akeL62Em\nGIRytoDOZXOSkKRYSs1lghY1lmZt8qpYQRYCfbmv/HpErKzIZfrOROqSy4LA\nvl/rqvype2LgNhcWdHonzaJKsascNgdKeAPZsgB8mHbrM6ws8qy29Oczqc1H\nxoph0+KiDN7h7XF6DMignx4slAu8VyJ3iP8tOy6zXhHwKQGQOUKRnk/Xf4mX\nDI9ZNA4WoR6hsh/0K6VkjkHfe3sFMyfibZGuG8kvlVoh/T1BdEfwQ79nIIOr\n6fmNfJ/ZZuwjaZFv4ngAkgYZg4cYdMyjWo58tVWQ9GDaGhUUEcQIbM03NUuB\nhBtqbcag2GQaaWSUsyeD+sKnO7F/XQtvHhX6zLoQWYloy0a6z8/37s5sJaUQ\nzaDHf4S/JCd1BMC3kDXutvugPFxCvBwlgPZ96Wrnh/aGRFOEB2XBqAilhO91\naVuvdAKjLcoNanBtKZR/qOQi8QUuZ0P8C8Cz4n+mCMxXrIuPa/IJMV/hR1T6\nOzSf5IvnI/qE7zYhxFxwcfft+TPI3BcZy1QoAvABxEuIBSgg/+8GymWv3Cm4\nxmYc\r\n=tZX9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"434420b9fc9470dc77940d2240234a564be58d02","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.6c82b965b.0","@material/base":"13.0.0-canary.6c82b965b.0","@material/shape":"13.0.0-canary.6c82b965b.0","@material/theme":"13.0.0-canary.6c82b965b.0","@material/ripple":"13.0.0-canary.6c82b965b.0","@material/animation":"13.0.0-canary.6c82b965b.0","@material/elevation":"13.0.0-canary.6c82b965b.0","@material/typography":"13.0.0-canary.6c82b965b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.6c82b965b.0_1628266560905_0.5371365676052202","host":"s3://npm-registry-packages"}},"13.0.0-canary.4ca11fe76.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.4ca11fe76.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.4ca11fe76.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"07b779e131f4f164683bd5335e5ace7ab6e48843","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.4ca11fe76.0.tgz","fileCount":44,"integrity":"sha512-w8d2c5kPm9LEa8Fl7k0USQH1VHYrIRAMk7PphOJr9v5Stv1QfjiDA487euRK/vVL5xg04ml5ISeWZN7smo8EpQ==","signatures":[{"sig":"MEUCIQDWBp7BMOU4tJThRzZPpnp5PIKvGw9n3vHuxH9/m68aogIgAYohYkkEXVHOOgZkIPH2JlZsiD2WVSKy+3BjtkiDTXQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123113,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDWyPCRA9TVsSAnZWagAAfCUP/RQkIs9INoikoN1/j14u\nQkJVmuBuZDoWrRNZlXh/WxHOe/lz8FTvv0h1h6kjPz8v9eycbVNjYbmCbrVJ\nF4VKZKUQC5EsImaxjhLsOXd6xBiOCmmtxoSCBI8wY1iTk7YrgNH/9TgT4Ldz\nOqORup6vE/XvDPJavnbtmMzs0O616d0Kh8Vc3M1erMCE8ySLw55rExLe4zF0\nUiv9Xf/I2n8WV+HqT45PI7fvtby7eSx3B3XfpwKWY8ji/uJzkvthGrS2ZXWV\nWEw1z5jPyvzIEX8tfOxpT37qiiTJtwuVnmxS7hmeQuXbaAwtHnOAaU6a1VTr\nSieVG+LZShYvj6u9QdlyxV/qEpWILccW9JxmBieCQr0h2rRFNQzLwb/WGhU8\nR/CYxjimL+/c79rc0O+ZoXE3SVwNWxvxgVEemxeny0Msds5eQCwS3qbIvLl4\nVXaZdqejGe4K8RDIlZJ5eslaHOm37gLU3WClolKTfNKRqvlM8oGhiKQ/3Xv1\nhJZVsZ0YR6VeGMM0/XtR3mKh0c5/95fHzkecSqlJQWbjdTU7cBozVIKuxeGw\n1pMQviyHpGjRn8JybAs1DxZ/d3PjyC29cwt4zonUf9VGFqNKN7tVxZaABIbI\ni69AV1qqMzhwITe6EQ4siHdA11dSHFqCG1OgFLio4YrdhrZmq+ie1DCuQMJ5\nmBwL\r\n=q1N3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f012412147804a7e8c4bbcb205a7a48a045cd694","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.4ca11fe76.0","@material/base":"13.0.0-canary.4ca11fe76.0","@material/shape":"13.0.0-canary.4ca11fe76.0","@material/theme":"13.0.0-canary.4ca11fe76.0","@material/ripple":"13.0.0-canary.4ca11fe76.0","@material/animation":"13.0.0-canary.4ca11fe76.0","@material/elevation":"13.0.0-canary.4ca11fe76.0","@material/typography":"13.0.0-canary.4ca11fe76.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.4ca11fe76.0_1628269711136_0.8937184312514042","host":"s3://npm-registry-packages"}},"13.0.0-canary.510cf90f2.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.510cf90f2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.510cf90f2.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"81dd6b7512ca0039a782c2168b931a177140714b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.510cf90f2.0.tgz","fileCount":44,"integrity":"sha512-rJnKkOQ61XHjkC1x3K8dUsyv/1SIR6TDGPUX4YrkAx/Wz0KJvMR2D6ZLclurrf6vun2JAbaiywZ0pF7rYDUoXQ==","signatures":[{"sig":"MEUCIQCmiEBcL3Wp6J/E2QZmNdEFMrDqIzZxCLxkRnN/Ph9B+AIgBSIl2u3hbnMtRbGWQZin+9xFde4JA2s8l6zEjolJaSI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123113,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEWNmCRA9TVsSAnZWagAAz2YP/3KxlenOJ6Ft8/0CLiVK\nK77Q581tD8siJ1DAXi6lgJDU8g0JoNDciDhdsGjNh7iLu2yfYmxWs7BLE6gt\nQfX4eLPd1KLKFDiRcRgie7qrq39SvxCbY6b3AoVGJMqWOdD6uZRjJ3/JAicl\nuvg2FYjEL+He0jdXhN+GlzfiyuDF6/nF0NJx1uUNigU1ZwavsHkoiHrqDyRN\n4jy+PFe0DqFfE5fBMc7IOt8mgu2/vdWbe7Eu61KjuOJG9t+SJYbLgpxGvk3S\n2kSjlFY+IzQt+tMo6VHRKP0WWwb2VYvS0eUYbDxBk/wjmqRXglC28NpGqbWJ\nPmf5b7P/esZ38RlOzq1TEz+ryD0nZCwSUu9lpFjWEJn4elqj3Gt8DlPdCexF\nkJO+O7JAIjsM1Y3zGNydfOCqnQk83UloWIZcmIVLa4yesPqmCK2eKPCsNd7P\n3Thd5WzdtYDWfyICQBolpenk3nCtINcZkHukzQcOyE485HFKh/5xLKb+fkOf\nuL5XkQ18sIC8poZWPDr/M+tOXZBoKk9vBS0HXUwCz2I7y2+v5CswBFPTt2ek\nPdEG2hJbFnUtcn0K4NnKS36BL1RlgaRk2hNUvViwYWRiysgw8R/t1PGgDwbj\nidJXn94f8ysnRQ5GvmRhJVdsdkshK7ahUlTnAQZW6fpguXpDvwp79cJt6kWG\nv0p3\r\n=3d5N\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1e11d1f2c4c830419dc862b62700d4484604a3fd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.510cf90f2.0","@material/base":"13.0.0-canary.510cf90f2.0","@material/shape":"13.0.0-canary.510cf90f2.0","@material/theme":"13.0.0-canary.510cf90f2.0","@material/ripple":"13.0.0-canary.510cf90f2.0","@material/animation":"13.0.0-canary.510cf90f2.0","@material/elevation":"13.0.0-canary.510cf90f2.0","@material/typography":"13.0.0-canary.510cf90f2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.510cf90f2.0_1628529510103_0.6678964373533265","host":"s3://npm-registry-packages"}},"13.0.0-canary.17580ebf7.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.17580ebf7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.17580ebf7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6969e7372a43cc7d9c9a734c9f6e3f68d4078216","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.17580ebf7.0.tgz","fileCount":44,"integrity":"sha512-qJFfJe3nnaCe9MLEPQtbK63drnQculON2ZU1Ms4ZrbnCB29Ei4zBP3aJjYtBVaQLnrttBeCYVYvhSaQATm4Daw==","signatures":[{"sig":"MEUCIGuihWNgwPCmOxRn/h6GRtycku7IBAqoyIFiU6DvM95uAiEApkvSKv6I9nBe8vHIhLNGYJkAdttWZrt4xj+4oS4XurU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123113,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEXGJCRA9TVsSAnZWagAAzyMP/RZ1EJjwtpjgRXag3o5E\nBCUgZ1Zjed57wZNqwFel63DhVy6cPX9K0221c+GvE61RhbIqOOO8vy4QE84u\n4Dblq4eM9JDKBJGXJnfXuuyQxxjcnkOHNNmEwTOHIOaww+aswMEOwqO9HSPZ\nc/8+I8G+mbdnyMTKAcnKlIeFRmp2/kpJggoQ5S5d7Af3XHtFijU+2XM0h1Tc\n1RHWiDlTFdMz5Wej9IQX1g75nd0ucBst/6TsxqhTvVPd8gUbEFv++dwgkBl5\nfZwEMWveWDNJk8yW5cJXDfPrti3BKgaEW+hJL83a+17PaE+MLqv+Ex+wNGgB\nofT6qqZ/w2SCYTLQ+Kvt7WoOzD2pv6UPrTal1FIVvmJfwx/9oDP2EJh05gcB\nk+LGyonG8MjG5W591aJFXexOh2BxSHNLW1JtEix8zVLIBBsk2n49EONQ1h/j\ncvAIc53xWghyc1u6wpv/u7c4DBhNM5I8fa6ELFxTYsrH5kYn+S5+KbooCksp\nJ4kr4bmS8ff5JUQAj69HHpMYaDzLY2IYEh34gptvGCxO/kDeY8UWTuMjWZFt\nADlWH7Jba1aVKdYnGnqIIvzFa1P7Z/f4lp4ENlyzu7Ca8MQJUf2ochX0Y5ER\nbD8fD1gkwfnI1ZQ+twJU9BVWmW3Hc+szkF13jeN4yJGg2wiU+jIV7FtP/HuW\ntH8d\r\n=ChLx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5bde42052101fa1fdd48d89c3dde8b9e99bdd1b2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.17580ebf7.0","@material/base":"13.0.0-canary.17580ebf7.0","@material/shape":"13.0.0-canary.17580ebf7.0","@material/theme":"13.0.0-canary.17580ebf7.0","@material/ripple":"13.0.0-canary.17580ebf7.0","@material/animation":"13.0.0-canary.17580ebf7.0","@material/elevation":"13.0.0-canary.17580ebf7.0","@material/typography":"13.0.0-canary.17580ebf7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.17580ebf7.0_1628533128972_0.6298054924169616","host":"s3://npm-registry-packages"}},"13.0.0-canary.7249a3060.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.7249a3060.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.7249a3060.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c7955084b47ec74e4f09faf17f491b70b49d19ee","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.7249a3060.0.tgz","fileCount":44,"integrity":"sha512-yolqVs79NWxBNHxjjBBYTB7/5Ctkq+ZN1/bpLodjoVyxle1tpM3+lbq5ezMD2fej/zwuq10wkyvOegwsoFApDg==","signatures":[{"sig":"MEUCIQCOXZgg5ASCUQNkSYfkWBE934saLqHW56eWftbvUFvVFgIgN7gGpCJ3VQdwEovLWf+cvAN+6LqdRZhRB4vXK/KpYEU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123113,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEXJuCRA9TVsSAnZWagAAjxkP/RDUhauKGSmVLFlMNujL\nXJEsoOL9L+AitsimwPifERDZWcqUwLrjmMOa6sEp8GH83RijJcWv0rE6fIUT\nWFjGEwZrhuF4vGJiz+52okK/8RKPPvejvidYgyaMtl5qFSWBHdmM/+kZ89aU\nsvjHjpL6fdV2Ky6awLJMXVT+1d/IM5nGEmeiq3cjFiq04jiHJWUZcIZ221hg\nkU7gpG4R7i2znJ3giy0aB5RynnC2QPceTNWZX1H/1BKv6x7rttxFXyWUuwkP\nYR9upipqseJN4r66MHe6ihTMVLgWSpAhd4xzIyNdB3guC0TcubKxZ9mVc5Fd\nxjNk42+JgvTgMyqSuieeihsBjPHzxNoUA6ASU8uH6Hin4KEWuUbqMlfnUY2T\ntnvlLE301+TLyAfriUtQM3SZFj/5kJVUSBbP9Eg/4ZASJogZxEq91H6+tA14\ngL3iWVpKoHAyLlA55IAQ3y6i1j1QVUCgLYJbCI6WVyISPumQSpagHAba5VUi\nKH/MFq++kJ7kodSrs07ZUjkZoS2BTi3CcoC/vBZnTV6ScfnQrF6kmahNzpOX\nOAzVkWAyfhF8ykUQUz4zDX6y4Xaxr/ClJogvx5tX8N5wYw2jUWVFdZxsI4dy\nMNJPvl7rsXlgI3MpfR/RZB9+5QxvVGGtiqolPq5Y7Vr4+PpDfm65yvW7MYDq\nzixE\r\n=jOdd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3412ad644836acdf464e70d019c36080ab377321","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.7249a3060.0","@material/base":"13.0.0-canary.7249a3060.0","@material/shape":"13.0.0-canary.7249a3060.0","@material/theme":"13.0.0-canary.7249a3060.0","@material/ripple":"13.0.0-canary.7249a3060.0","@material/animation":"13.0.0-canary.7249a3060.0","@material/elevation":"13.0.0-canary.7249a3060.0","@material/typography":"13.0.0-canary.7249a3060.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.7249a3060.0_1628533358570_0.28086163174620316","host":"s3://npm-registry-packages"}},"13.0.0-canary.4c405863b.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.4c405863b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.4c405863b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f7c69cb5e95fc63d619961847a41cc14e0138382","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.4c405863b.0.tgz","fileCount":44,"integrity":"sha512-ha8PNagot/jxzG/iNBOsZeFNTbVx5HG45kwa10RGKIza7QeV++lNBx1HAduL7OdUa9BkW96Nu4jQkolfygt29A==","signatures":[{"sig":"MEQCIBkeCHvktLy5FHRGyOzBOEb2RsLcfSoe7exUZ6JwW11hAiAjc0GfZGre083/haP5hy13lpuDFuRkF/KBwFRslLGZ/Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123113,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhErppCRA9TVsSAnZWagAAIXUP/j6EdfLyU3pX2lnXUIlT\ne0YV4vglN60N7O3InopNgle3ptVmtajj6549941BnNMx8G45BU4VosCDr0+O\nxmZOv8YprAS/35IJRZqqn8oocCJRGKlBVGDJa46F79R/3uqZaDLJRcxwubdn\n0imFRUClidnshgXDcZYzT5+sUAsTg/zVeMOVaarzIFDa6JviXoqfgRWfp6i5\n5A6Qw8zvkNVY1vUvK8rGvRVZh0Qa37l5zN4nj1wdTrib+43PLGuUfbCnvTGF\nD+km/6GjVUS+J1LhmPQ69iCiZNip978iGHjQUbrYHCA7dnxlZaUR4Ydz19q1\noMFiwTDCT77gHYVSeJbGXZuR/y0dtzeaWdDIs439hsj/vxwRzcZSe3VNYipH\nhnyu+tBy/Ov1TFHYyYmae6E6su15iLNO/MiiNCCV+pbsrZ1k1CqAG8BkS1Qn\n4eQRqP5Kuyq5ryjmA4SIE3M8TaJnUzhFOfy0qZ+zqU90Sayi/Y5D2n0npSZo\nEqca4Vn2obbNa6qktZHgMSUJYTlYY+MI/o2xT2ZHIwSItFFD5gbPo8C4xPU+\nzVfu6s/b7Mn/wLt/Vly8A0QHdEk80i6otcqNZ8yPILn1BVsNEk+oNpVNmI1C\nwsLm5DCz6Es7AK5swvEyl2+ty+bWPKB49enKSZV9jfWXiqs8WzWwtT/iC+fJ\nlJKq\r\n=yGkN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b3861554313a19a861a5f6850f9df33ae5bc42b6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.4c405863b.0","@material/base":"13.0.0-canary.4c405863b.0","@material/shape":"13.0.0-canary.4c405863b.0","@material/theme":"13.0.0-canary.4c405863b.0","@material/ripple":"13.0.0-canary.4c405863b.0","@material/animation":"13.0.0-canary.4c405863b.0","@material/elevation":"13.0.0-canary.4c405863b.0","@material/typography":"13.0.0-canary.4c405863b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.4c405863b.0_1628617321048_0.42760451823023815","host":"s3://npm-registry-packages"}},"13.0.0-canary.f4241a42a.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.f4241a42a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.f4241a42a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b3e8cc33b8c3293761ff78d2e6c16c312f7fe6be","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.f4241a42a.0.tgz","fileCount":44,"integrity":"sha512-Lg6uad1KMMHq9yJ4T1edTOFxV/MfWUi+Onlqdpm6A+8xDqcZhuwEOyOF07TKCRTk4WMAJsgOg1lXqrgm0aBCpQ==","signatures":[{"sig":"MEUCIGa2maYJCm03Cdf5shNIW/DL8iaTyh+oFHMhYHq67U/hAiEA4usjqvrulNU4RNUVxlX+nsG7L8x97Epv3uDsSzYyOKk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123113,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFAI5CRA9TVsSAnZWagAACbYQAJj7SldrmPSK78Hgr8tU\nEZEsRCidIevwEbiX/Jm/0z3nMoLoBIIn0J7xBsMZCdmEG0v0VwLvJsuhOU9z\n78jQOmXhQrjVfNUNsa9Ve+2kQrnzr8+wanCur9xWan2eLrMFnDo1bd0Zun5y\nVnR+Cacjzoz7YmfMfRpxQOxTp3tO1yYu81PqWDaz7Jr+c3XVv5ZekDFGR15f\n29UZ8gkgQBDQLjljBtXp4gUtNQqUKbFwbr858EfSaQbGuxuAYnYUR75K9agm\nUJX8xBLLbjT6eExh4vcaSLCg3NKoNsIECYjZULSTXrKzzyV+KUeSc99eZwxV\nQA7oeWdE3gY0E9GU/SlBMX+vWUs+/a6NptwmSIVloirvknK9vFMK24Azla+t\nV/jzT6Gk95tODCU9FZ/S2zVLmfU+VP2CPdNNifvUKIXBMlb/t5glU69aoGPQ\nxvSVsHQYB3UjSjCPHeRROHRt1zURHC72k6YpUKjMtAfQvm/UPmPPaDovZk31\nRBjwO3chiQeTcqlOQQYj83w9otXzw8d225mb3y6GabBOwxaVJ74ChsLtuYyK\nZWy4g814GgxBxSOlfs03kl5i9QbHXsm6ZbpHwyyC6/14jX9wKDT/XvPHdlkH\nsTGZ4w1XAK3ybTGNSXUu1cosG6+oTO7oeccTCMhaDHsKK9GrD7GPsCMyZ9+z\nCYzJ\r\n=pLnv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bd97e42dc6a97fb74d92a9cb04e919c5c8af4da6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.f4241a42a.0","@material/base":"13.0.0-canary.f4241a42a.0","@material/shape":"13.0.0-canary.f4241a42a.0","@material/theme":"13.0.0-canary.f4241a42a.0","@material/ripple":"13.0.0-canary.f4241a42a.0","@material/animation":"13.0.0-canary.f4241a42a.0","@material/elevation":"13.0.0-canary.f4241a42a.0","@material/typography":"13.0.0-canary.f4241a42a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.f4241a42a.0_1628701241339_0.9593745909557325","host":"s3://npm-registry-packages"}},"13.0.0-canary.0ad12ed3c.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.0ad12ed3c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.0ad12ed3c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d02ddb76e98cb44132189ca0659338ed1d2856de","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.0ad12ed3c.0.tgz","fileCount":44,"integrity":"sha512-lqmGhvRn1TCFh4Mu7xjmZeKxQnefRZSiDsrj3PPvTKCpe1Nayd177TfiFN6c1DLBOPFeonyCq934CyWULAG3zw==","signatures":[{"sig":"MEUCIQDqAVGu+k8Dvj9DteIgcBhrC3JXKSP2r1dzMrlkj9I0cgIgIbvv04qeC/esYf0rP77PpxQoiDa4NqSey4DKbup0zRo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123113,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFEFUCRA9TVsSAnZWagAA0TMP/Rs7IPR5wsJsY7HRAjan\nWIKbOlhlbgPcX3b2eB5uhF4QvLv5Tbhl/Eu/nUn0dIxViA7pcKcnDvKDo4c8\n6WWzc+ppidN0rsRyqA6EKc69AFghH8Qvta7jSq1kVQEvOcdsBUhW2BwIEoiM\nX3v7hwCzUtHuHGK20dhSaBF4yOGM52GjK90/TfuWyicOkiXj8NRPlcB6rF5R\nfwIa1OOkGh5CdpcdBAjUvQroCFiFBHc3aisGBm36x+4ZOH2ZRmQVT+CPoUel\n49wSJQVKaBVIouu7WsLzBxaw/p6UqHiNJqqmts9JKgD/f73eYqrButgMYO3n\nVlLIQuPy8D2t45UZOd2d99mO/ORKexDQKTwcu2QHCO48LuW/1381DHJZIvjl\nOa0lor4oZger3UK55WiX2Msljc5X/+kOxSYr0LDrDFg7+fPra2pUvC42aTCf\ndbDeQsxj4SDzl+dsaMfGm8lU6cjzzGr8aUtDw5DqUgQYZjUs243Q+d7N8GFC\no5cEg5P4nEXo65zYG+93xFV4JCfShX3XiDfl9KypXjEFyiXGr8GqJiu9fnRx\nrilWvMxS/qn9mwsG+Az5mMc3/SP9/BP8MMWygsne0labJk/y9EEpHroxvZPq\nqXavYfgeSTlQfpE2pQxOT/S/P9lqp2vCR0Eflmp66hXVv1uXqsLB2X+QD5Ux\n2TKu\r\n=Tm9r\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"db28e7f3596365b1d41f14b53d656a743eb28bf3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.0ad12ed3c.0","@material/base":"13.0.0-canary.0ad12ed3c.0","@material/shape":"13.0.0-canary.0ad12ed3c.0","@material/theme":"13.0.0-canary.0ad12ed3c.0","@material/ripple":"13.0.0-canary.0ad12ed3c.0","@material/animation":"13.0.0-canary.0ad12ed3c.0","@material/elevation":"13.0.0-canary.0ad12ed3c.0","@material/typography":"13.0.0-canary.0ad12ed3c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.0ad12ed3c.0_1628717396324_0.3872366357611541","host":"s3://npm-registry-packages"}},"13.0.0-canary.077dcfcfe.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.077dcfcfe.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.077dcfcfe.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d3d13b3b39243a779d7f8bc16232c61318ce9633","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.077dcfcfe.0.tgz","fileCount":44,"integrity":"sha512-uNygm2lGcrk71TvI8J7YBubURzpygnkTjo9YxKGwzoXRalBlsLKxNbviJ3oOxuCMoH7l19hSgDa2qZUzq0YwSQ==","signatures":[{"sig":"MEYCIQCH8yLqj60uq97kgcygOg24ImzSJ8qALOlxtVj47iTfaQIhAJ0jzH9574BzO6cer1Lhb2O5uMDQok7Z5N2eDyQASiaB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123113,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFWDICRA9TVsSAnZWagAAPxEP/j9FMbgYzg2qOVvVWQnZ\norPUm23RmsFPmBr4CXuzgUNsbkhhqhLwhtY9384H/MrJrsjvU8FFf8p30wxx\nlAtZZkIqot3eHVA+aYDLO3+bLPdZaCuh/5gKUtHXSSKmluyJHGOQzFEm8W62\nk4qvq4dqypFi2wH3iLYf4EWrest18nEDadGuVWsOmM7GjKmpwUmMHU/LGx0D\ng6VMBW+T8+LRw9AeLrbifDJL2/+Hlhhuj8i7rH1roEGR1OQaMr+nhi6svseK\nDfaupz8T8o6J5swelGC+Xef+L5GADrymiLCiI1LUlA642HKttIv3i2chCYFX\nfhxMyWVx624zEI6IwjR8ObIRLUCPxX4Necl8XIg0TcaUnHE4N5biXHBZuE2d\nltKFPsA3RPapsJAkKjIKlc1rNf1kZFSXzuBlLop3DIp+I5J9ux70whmU2Ry4\nsUIgAFZCOGme1tNwVdRb/6ebjHa1PZLv8Pl+Q/WH5cT8tLKvZ7SmtuvWoVmv\nxsjp1tk6u65WxM4Sr2iqhdmQnIb5ONJuh5WVpPmVWKozSs+OAJoX8bxs6I08\n2vY7mP4xm30kCeoIsEMM7CgM1nBKjVEAdnAdB6e1JDcgrILxyPjjtCQIf9L2\ns2WKFzfrhXo0nbV+olwEs9fC7VV9sOPx//M1brRs0cc6iy1n474TvjXLC/Cg\nHPr4\r\n=FI+V\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0ce840a62c702182bebe1a5f2ed037bc002472dc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.077dcfcfe.0","@material/base":"13.0.0-canary.077dcfcfe.0","@material/shape":"13.0.0-canary.077dcfcfe.0","@material/theme":"13.0.0-canary.077dcfcfe.0","@material/ripple":"13.0.0-canary.077dcfcfe.0","@material/animation":"13.0.0-canary.077dcfcfe.0","@material/elevation":"13.0.0-canary.077dcfcfe.0","@material/typography":"13.0.0-canary.077dcfcfe.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.077dcfcfe.0_1628790984699_0.45057993519013806","host":"s3://npm-registry-packages"}},"13.0.0-canary.e3346766f.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.e3346766f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.e3346766f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6e532c9f1f2c842976600e9752e0c08cb53609ab","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.e3346766f.0.tgz","fileCount":44,"integrity":"sha512-aNr7a+efofukP+0U44O01GxxekyR+q5XuQmaTlRbz5CD4dkrKjkHr79Kl/xzd0SEmbkg9uqCD/t1/VS2psimtw==","signatures":[{"sig":"MEUCIQCOLlKTahhDX6IT1msuFdI0khF2HS5bb+Du9yVnkiEbLAIgNoOqlrsI1rk/GVGjDzEfaNhDScn68yWmE0W/3PnNsx8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123113,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFswQCRA9TVsSAnZWagAAVFYP/1ycIY9/cJxL4PmPhjuT\ngE3SxB3apXY2maxW5v33YWXyZj1MHj0G519nDvZjwLv2AsMHT/zh+oCJp65o\nZiKSU4/H2i4bhWnOUa4lvJi1eS7IpnWap0V7RKGJyBvbJGwLMAr25gi3S3hp\n7jlYC2QzQfLpaoFvgEgDewXuteiNTxyljHiuiWrfy7IiWt7stgy4/ig4aAS1\ndr007kGmzp7RUYDnVlPtWRQ0PT+faLS0Y0q1xbl12uaQ6JCqt/c11kd3x1cz\nqd2JTdBu09wOiqlK0BHsZW31Ix16jhevss0H0YXdo/qtp3eTD8FuAAGY1PGx\nKr6nsssdWyMNfgqjn565SYWFbFz1sLO8sHEh6k/hY+QtT7wswp1cSQ50iSx9\n9wZKwV8nu03UN5TPVrGFrqszHmqLK8GjdeUErYqPcARh0Dz/pqAa/yzxjmFn\ntM52X5T2clRoz8Bvad5/SGWee5X+6DmVWeqOW25d98mh6DCHGk0ELjz5XAbh\navDhatu+LL5KgQci6+1sCm2vrPvxyLYMFVDrXlMKX2JvpZ+NRnDUdW9WHHSG\ndHQfBATp4veb8Oy9274xmCOeEpcXUsIo+d/3IivlrzSGKE+PG2dgX9eJbrMg\nKmBg09zLo64iK/YVfD0T+yDoimu3bP+pQhLlWKiXza97Ceq3Jj7DBB85EDOa\n/Uf7\r\n=4Dty\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"03da616c76c8b7fab07a24f82209f171a2fec41c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.e3346766f.0","@material/base":"13.0.0-canary.e3346766f.0","@material/shape":"13.0.0-canary.e3346766f.0","@material/theme":"13.0.0-canary.e3346766f.0","@material/ripple":"13.0.0-canary.e3346766f.0","@material/animation":"13.0.0-canary.e3346766f.0","@material/elevation":"13.0.0-canary.e3346766f.0","@material/typography":"13.0.0-canary.e3346766f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.e3346766f.0_1628883984534_0.7070939970492398","host":"s3://npm-registry-packages"}},"13.0.0-canary.2fb068fb0.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.2fb068fb0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.2fb068fb0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4335245bdb74f82a5a06f9efb8f003d661877a55","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.2fb068fb0.0.tgz","fileCount":44,"integrity":"sha512-CseLvDI6z8VNncyNSIz3tJQ2ISiLQg9cc5jcVUN/Ww0CMoBPAMBckz2Akka8GwtpDdQPtMPyk/hqsAA2TzmC4Q==","signatures":[{"sig":"MEUCIQDQI3zK4rx0SIJT1ePuEPszq2Z/cyZEHgCtmHrxolsgRwIgcsnx036J1Oo1Gf17NCeMTP1vIg3DHVbKhiaLdLwOf80=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFszTCRA9TVsSAnZWagAA6dAP/jEiOSMn7DxReEWJ+pXs\nPKPjKoeXZDrKvg/2uDZE9XaYfYAvBSCY1EFCLiMfYNmI5pWEftRBOq9Z1/TU\nxXIbkciXWH1rREcDgMqJmTW79FiNnaBbYMGk7FqAdvOynWjFo+aLvmB0IiFI\nOmIzGgHI7Q0oIn6ylYBhgr8n3G8kqE8bsAfWVdl+AnGMYh6btMLnWBixICYD\nCPhoEe/K3mh+GY7ixfzig/0m/xMywqgv4Kow3VtA7WDLTiXiWO/hJOZSAj01\n69xE6Keg9SLS/vzJMr6837zyMxIQhMIkz1txQvPTWHct5/DXQInlJauv6UUX\nZ5Nce+XORDoNpnmfMJLGbSmhOBGVMMlP0AceJ6TQButgdZKQjiXMRC+c7IQy\nuqI1DpYAKngYUfwlaraelIAvqcpa2+LODyzvVg1uOkP9r4mr3rXDvBLgRFfi\n74083B99LQg6mdaz9G+iTdy6ue6Rn1XFA3JIEbu/dxnq8GZDx72iNFvE8+Yc\nqVuGG4dc2xAqR5Ncn15Ky7tDIMTAKv76n6yJIBKhEequeXPcQ0lzwvdyNm5N\n0OW0RbXID6vFzD4LnCU8prgrWJK5VyfHrnPDsycg97fBhzmdMUwFjCnW+hfW\nObwAVU9XG6oS50sFIkJx8UM0KxZApsBhxho06ZCTzWyYtHIGKX+VihcLJAFW\nU8S3\r\n=ifb5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cd1967c0a3a80639eef1dd76a8e579a4456fee90","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.2fb068fb0.0","@material/base":"13.0.0-canary.2fb068fb0.0","@material/shape":"13.0.0-canary.2fb068fb0.0","@material/theme":"13.0.0-canary.2fb068fb0.0","@material/ripple":"13.0.0-canary.2fb068fb0.0","@material/animation":"13.0.0-canary.2fb068fb0.0","@material/elevation":"13.0.0-canary.2fb068fb0.0","@material/typography":"13.0.0-canary.2fb068fb0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.2fb068fb0.0_1628884179266_0.5831437111484481","host":"s3://npm-registry-packages"}},"13.0.0-canary.fb76c5069.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.fb76c5069.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.fb76c5069.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"80d4f6992d91014072daad020827c3cab796445c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.fb76c5069.0.tgz","fileCount":44,"integrity":"sha512-m6O4lZgCS2fQVMJb4D/gQJR/H13WL52rNtHSzc5DrZWpQLRjrD0mtU9yk5wCwh95seLV0WMi2xAAnJwNkG4LEA==","signatures":[{"sig":"MEUCIQDvIkrJWVhai4U8LlAaihHFLgJW7B1H96WohUmCEwaXiAIgIAvCmJEcn8s4ecUK7hCf6PKIRBYRBpraJBx8554Yb9s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhGsXtCRA9TVsSAnZWagAA1aEP/jLI394n9OUZAS5H9WjV\nkF4b5m7WaOvZ0AyGZb2ikW+rc1XelW3ccxwzKgV6gqAT5wADePUQuRAvxRYq\n8qdS6mEX9Fjm42NyaB2SBugvxaOIeoeXSNv8VhXH+Mrmw8PInye8UKa5ozzK\nByMUSV85GP7SxBI6jfVlc4kkr0M0WgJFKdB0ADe5q7j+7LlFdxcmQzy35xnY\nRDf/g0XZxCWVoL2YVpBOM7LcwBGvs0Fd+/qKrDX+J57Hwwq//4mYbkeIbv6M\n0cBIlT/Xv0UqT2MzXCBMe00Bp+q2ABTPICLGAhQch442pIzsvQYX4G2ORURo\n6nOPW+gx96dAafTyHSZwLZtYVd3B6/pN7BVuPitP/+ulXXdx2r4ucKmKIwct\ncpkrWsGgZxyn1bhr8Up0qIjRRm2QpK0iW+YMmy8q59VvNKerdCbXALZfYtpc\nLYNC+ADQwyblAGvUZV+jdrFt6/f/g8uoqAmSq+tS6D5X9RKaIewWicliWHrh\ng6kkMbIL63HaOMGZRtg/cLfNowWuvIQSGt+gXFDQR8ulvCTZlHV9tmSxPX4Y\nXH90oBVL00Ip52AOI9QFmww20TAcE1pCDG7i7EGYUcRshAiiX+iWu21L0wp+\nj8P5nerPy0BfN5b3nL1ZpRVBAefe8uO11UWU3kvaiyfgDX8CmnqVRWnBzDbI\nfg1C\r\n=c+Xy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8a969624431e3c1b8d80c2e2a37e5ea5af6bea4f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.fb76c5069.0","@material/base":"13.0.0-canary.fb76c5069.0","@material/shape":"13.0.0-canary.fb76c5069.0","@material/theme":"13.0.0-canary.fb76c5069.0","@material/ripple":"13.0.0-canary.fb76c5069.0","@material/animation":"13.0.0-canary.fb76c5069.0","@material/elevation":"13.0.0-canary.fb76c5069.0","@material/typography":"13.0.0-canary.fb76c5069.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.fb76c5069.0_1629144557722_0.5075695959509723","host":"s3://npm-registry-packages"}},"13.0.0-canary.457d89aad.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.457d89aad.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.457d89aad.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"86b707314e691003e9706374d2f1e6f8ab55a696","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.457d89aad.0.tgz","fileCount":44,"integrity":"sha512-elHyKsH4UHdvJvrOg7E8njqSjo8x72x8Djhtr3j5XQ7+EiQOqpu4BJ56Rek3pvK5mxhYCrCHkd6npbRXQp7gjg==","signatures":[{"sig":"MEUCIQDMI3f2zdB0rUsNB3h8a4OM8+qOhWflpKmS3H0zuZzHGgIgdTodpk7qRFWz7WX6sHSThRyN+l6jO2hsUzeBsQieSYI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhG9RVCRA9TVsSAnZWagAAi1wQAJJkWzcus+7B6o4p+b4Z\nobTVzadI1e8/Ho8PFt+5vKSv7Kc8dlNgNMHw5hipU8hSVYGdFi6i7JoU23n6\npYkVI9OqWQs1HfBh2K0EhkAXwIMEugRmiGvcgHbRZpi+nkVEWXY6GQcykZI8\nG7TCFzo1ohasCwIRBIuyrH1r/hUHuiCRZ8K7m7WXPBi1CAlCr4WqLC/j7vaw\nKKMJqrnqOrLhdynfNS6uVpBlIKnPFBJ+YlU20YurM5YLbWrvwYK6t5Le5w5E\n5KV29CkVmDS0ZiuvG7HwGNEiHjSueLxSSTQhbEL1LZfDOhU72h7H7x8I5tbP\n0l68JrUi1UAtde4rOB8Nk8MrizTMMzU4c2ECi4mxGWWX3WDqTsEqV7ljRyfL\nsCSmMgTo8IS26/qC8VLrySO4VSOzOUDC/P6toqVKoHNVLn+EL9uBf9UWj+lx\n6heWP99HITDs8CEhJpXy+bAIzsLhTRjwfKuWIYgdcOpU9cCIEDv0Dz8mM65b\nuuO5/By2ZIwaWRIz89tnIr/D8yFmi+/lW7oQwap8NiYutQIIS045KzxLvvv8\nR9dvU3ykizKnuYOnxg7ihLe7B2kCzhPSy7AuqSIFMXl1IVB9wX4FKqnDs2vl\nG8dTK9ZEQmbvngxDEr/EoL7JRoM/MTSk0gZj+mR5TI7QXY2frHX4sKNbbYc8\n+YqU\r\n=HoEL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e1aeb9efe0d3f4d8670a6ce174d17d7528b34438","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.457d89aad.0","@material/base":"13.0.0-canary.457d89aad.0","@material/shape":"13.0.0-canary.457d89aad.0","@material/theme":"13.0.0-canary.457d89aad.0","@material/ripple":"13.0.0-canary.457d89aad.0","@material/animation":"13.0.0-canary.457d89aad.0","@material/elevation":"13.0.0-canary.457d89aad.0","@material/typography":"13.0.0-canary.457d89aad.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.457d89aad.0_1629213781351_0.11708784326814792","host":"s3://npm-registry-packages"}},"13.0.0-canary.0de2f2edc.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.0de2f2edc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.0de2f2edc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c86bea21250cf38691d5682388610b7fbda85b05","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.0de2f2edc.0.tgz","fileCount":44,"integrity":"sha512-nB/rqaiJzb74lIddZ7G0HNgALeTWOhM5sSBCgFddvF3623m0OH8zVFF3/Va3ziKya8i2Zx6DodCWquojheHDRA==","signatures":[{"sig":"MEQCIAmPxfpwCYIxMFIGL6Rw/ZP/vHC5HelDvxA4lQj6bkkdAiBxDRpDglC9fzquKeuMBFJb3nYSb8ps2fSf37mKqBZPSg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHCI1CRA9TVsSAnZWagAAJREQAIweUWhtQD4ztXXmUlCA\nRb0reKZbt45GhMAG8CW11JTPPDIRj5H/Zmkn2o09hOwuZQaD7H/fJ29WV//U\n/Ceh/o3Lfr7GGJGeR+HAA5NEDlWI6Fs1X+jpowaidl/ySfxELBLRt2UvlvCo\nQz4+N3CGiSRKifvM6JTUzk10xZpTkcxJ92rAWCmZVX/UjHFSdCQp/B9A+zGu\ncbKszRfcGEhm7miMHiSRIan+iQWnXEkvMDKIgXCFdxuj2Af/yNUGtAuKOpC7\n5Hox98F0Mlqx9od4mKiSajgSN3aCW8xl5VPZVgNVYYlBVwpKFh1VLqrXFPtV\nXFP/EX6g62xff0A38V0enRx334D9dfnStFRNJkUMJ+J0q2ws5RzQkgphbosU\nl1c8/pVKIpvjTKaP4GT5JX7hD/BtFKlMcJ6DSje3FVrzVWvPdBpwBy7PFf0n\nuP9Ab0tryDxpzJVdevcNwhPKOlCT3cLUBd2V2ESi7534ZaFJPfCVTHhjL9d3\n9JVB/orkwDRftx2NHEiPdQ62hqCjdzEcVPc9b8bQWBYX+gl23BSDnlu8GAn7\nIJkEmzpvxRs1MukzRdo/aalqGXC5DwmSq7wT2WU7b1v27rKCauJahIBKGh+w\nOydeJ/tBp7bxpkMX8B45vilhh1+02pG+hdB5SXVHJ0VMjdiV2NtPFrn/uulY\nEM2C\r\n=/DMH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ecc5e8dc0157f612d4cbc7b03507e3779919d5d3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.0de2f2edc.0","@material/base":"13.0.0-canary.0de2f2edc.0","@material/shape":"13.0.0-canary.0de2f2edc.0","@material/theme":"13.0.0-canary.0de2f2edc.0","@material/ripple":"13.0.0-canary.0de2f2edc.0","@material/animation":"13.0.0-canary.0de2f2edc.0","@material/elevation":"13.0.0-canary.0de2f2edc.0","@material/typography":"13.0.0-canary.0de2f2edc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.0de2f2edc.0_1629233717346_0.08574514463199479","host":"s3://npm-registry-packages"}},"13.0.0-canary.1f9259b9d.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.1f9259b9d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.1f9259b9d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8ee85258d22b55f3fa4699de5b64ddc0d6df954d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.1f9259b9d.0.tgz","fileCount":44,"integrity":"sha512-UHH7cad7myv1VIgqT0LDDhdzzrckjPLHbkZc9pQ4qXsifGncKxt7JlF3rLB9qRrOZzI+xIvIibrc7icltChSaA==","signatures":[{"sig":"MEUCIGiRs1/KBKctcMeT0FiyRLLV1QEsU4FWMlN7Xfh/og3PAiEA2hoTSfBkMJ6Cvs2PDz+tMMG9ouKYptSEQNt3ocoriVo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHDT4CRA9TVsSAnZWagAAa3AP/A/n0j3WaLhzetrMSFcC\nJ0RNXX5bjrqZGmzAn+j8oLWL7UN35SX4z43kUchfChid40yi2YIxMiRAsGX2\nqto719o6mRWEbWZN1IWaVkUNwCrqv/P1O2Vcy52enK64qGmFaLKX1nsJ+m2q\nfsbNWQ87WS73Qnas34gz6yXQP4tpSCOnwxD9MCKRhNXbmQHIICqPeTiWgRto\neGtoq/UhScZlEFhcHZiwK5o91dJ3049MsuzC6ZZnDfcQu1akqva5y2BhIa+m\nKcl1NG9x88PBu0T/U4bp4ogbyBH3WvoA6pJdrwEHpcSeqP1LlzcNofV09XGc\n6nu6dVmg+hn0110qpZ7yxzIodAw8z8MD0LKhlH2ko5DWul7XIeI0mXQYduS/\njZpXnx7e9dZUcyVDLEeENFgsh/qHUcFvU4FPOdn0WyAzuOyB9W/JP0V0tvTp\nIVaGz2QiZ4e/peuMzkyjkS7kpzLNg3+JaYlQJi/zNUnDvZeAC83p8p7Q78XI\nVtELi/DjQbef60zodMr1Pqpnj/sGv6WEHCU4DusTem/N/sj4PtbVws29DEtZ\nP31o8DdYTUOR7fEp71Aj5VFNARGnBl4DjV1Ehezo8VppDT5eeCvD0uT2wGFx\nJbILwWJoVHsT/FRxqItOwnXXx8iLr+IIdc59/RFqEifP87GOYHqvsktxxgT7\nIq1a\r\n=HIqj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4c2c9aa7510a4854abb7f568046a44631dfe3e7e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.1f9259b9d.0","@material/base":"13.0.0-canary.1f9259b9d.0","@material/shape":"13.0.0-canary.1f9259b9d.0","@material/theme":"13.0.0-canary.1f9259b9d.0","@material/ripple":"13.0.0-canary.1f9259b9d.0","@material/animation":"13.0.0-canary.1f9259b9d.0","@material/elevation":"13.0.0-canary.1f9259b9d.0","@material/typography":"13.0.0-canary.1f9259b9d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.1f9259b9d.0_1629238520594_0.8020682674600605","host":"s3://npm-registry-packages"}},"13.0.0-canary.3b9290351.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.3b9290351.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.3b9290351.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4e703895fa47fb509aa4371c2c60d5e69d318f36","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.3b9290351.0.tgz","fileCount":44,"integrity":"sha512-J/VEgKyJHYefBGfhCklLnZYvB2UZlkiCqE0N9uAKlN2yh2mKtz02qece092idVGtIDuL3UpWarhg3ZGS4Hielw==","signatures":[{"sig":"MEYCIQD9Su02QYEHX6vfkgMEelWjWLam20Id3K0P2K2cAGV9KwIhAJuei2Kbqu/buvC5aqmPCaYOExVfH66rflv7lHc/KMz4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHJm2CRA9TVsSAnZWagAA//8P/0bgonKCDZpL2ctCmuZq\nDj8/NF5elp+AeszTwSO8NZgcqtdxP6FVDtNZLieAodBCJR4aqXzyHK3/k2pP\nnf9b3WY9DiCKE/eAkabpGnIQH/gxaKGaz4nKmqM0R7LMsUKh2AU4S6tPbpyH\n/vyLcXHYW5a7jsI62Bpg0fszG+ASbSQ90auf4XxSkheukW1FOafwRvO2krcF\nhRJEkn7EAahXqeX7bxC7LtYZ9iY94fPepMFzR8wbMXGSTA1bd7omGLWoasc+\nLBUgiLLQ6BpG9KzU/knRwGvlWHOaGIPhjRTsBK7A7frGLE1vcrEf4TmKHLj4\nCtqu0YA+DoqpnTZRFWjO5Ter16PMWaJ3KCOCrAHquh/llWcE0Q8qHXBgByIN\nx0OVSvEwIt9FpsFtr6yJAyhPPgzHgs+yv9frENot04Sf1BLv1ydhheHmXQiZ\n5Cc35xkkwW2Ss9pCZMN/EKSqQ+RZOTC9hNzqUsB04RWdik4tDdmRf05PYisR\nZJSjT2IndS/Uyz/Yzwwz/+bp+rIrzCZqyHwjHCboQ+EJuYHWUE3tJHD2IOcx\nx3KkNJb6uPV0lw+2tabbwKpebSkSEaCGuoyaexU/iOVEkKmhet6FXMKFAYeo\ndc41ab2He9HY1USRqw48SRDgaJbobbgTb1rX0gxjukT2I5nwjL25dG/Suchi\nGrco\r\n=hYMc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"15fe006947f65208dd0e450f8cad53d361b2930b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.3b9290351.0","@material/base":"13.0.0-canary.3b9290351.0","@material/shape":"13.0.0-canary.3b9290351.0","@material/theme":"13.0.0-canary.3b9290351.0","@material/ripple":"13.0.0-canary.3b9290351.0","@material/animation":"13.0.0-canary.3b9290351.0","@material/elevation":"13.0.0-canary.3b9290351.0","@material/typography":"13.0.0-canary.3b9290351.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.3b9290351.0_1629264310657_0.5300428467836056","host":"s3://npm-registry-packages"}},"13.0.0-canary.43d2eed2a.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.43d2eed2a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.43d2eed2a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2816a7541825e497b9eeabbd80a3caae89c54d96","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.43d2eed2a.0.tgz","fileCount":44,"integrity":"sha512-QeVnoPvjLeXnlkKo81Gc/tQCSBbgzc5WNr8wHjdZ1mL0THBAyj/ts1A+jC4GVssOFW1RwHW9OkFMPSsBiwkGhw==","signatures":[{"sig":"MEUCIQDYIQ3uyma7Dedp6hGfEvXzqprcFN4+MZU2GEsKnBewPgIgZqZuBdiUNNarCeO+BQOvgpDDLkC5IvPz46XHFagddrg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHS9MCRA9TVsSAnZWagAAG6IP/2daavd3VX1uOkJhmP+Q\nyMaIZ/Jn+5Mb263UjcbEi7vLjKpelixxqqRErau9RDotEHyYmZhibwzWqtlZ\nEmE23knRjGCggr1qB7nurJgf1iVANiMsMbkYWenbnLRQCu+zcgA5FRDrCogX\n6vWhWf+ej10usVpMsBTsFMOyoWHX/RivytMTN2bhzF6I4aqvrPrvT3D4JRts\nZzJJl1bSDrijy6G29s0Ncs6+kWG8f3Y+7QhWiwRIBEyiURujRLDCS3iEWExn\n16YJ3riIgSwEeMHfZMOhfepsuOvNg6J6K2UowEx0TPUx7yh4+L9DNssHUsV/\n4f5uiCZJgc7WMXIbhvh0wL4Cn7bnOYOWrszadX5Nz9N5a5Qq16/Q4CgyNBPl\n0BFet3u4ciG7q4iqJQEpjtj4pFA9/26BC4ero7NBF4wcCXl24ABc5gMU1Y0C\n4WXGU9zapAplQiJxrcYbDcI+8+IBHmEbfZpUcUr57y1+POpX95mEccbAWqT5\nlA7Yx3ryPAOedzLyYevvpp4XUvAurdTc8NdGjYimgoFAAB9nBaupqrB/rtH2\nLY0vOLMZX2MfTkUXdRcfMDMaCaiX+KSUqo+qIuHzog+7orguK3mkgbp9eL+a\nnDvY6wxqLT5jeVXFnHerIFEoqvTiT0bydVir1kPJITBFBQBKYFSl8VQobC/w\nhA67\r\n=tnr8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"687e2389ae76da9a31b26968c0cdd837208d3359","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.43d2eed2a.0","@material/base":"13.0.0-canary.43d2eed2a.0","@material/shape":"13.0.0-canary.43d2eed2a.0","@material/theme":"13.0.0-canary.43d2eed2a.0","@material/ripple":"13.0.0-canary.43d2eed2a.0","@material/animation":"13.0.0-canary.43d2eed2a.0","@material/elevation":"13.0.0-canary.43d2eed2a.0","@material/typography":"13.0.0-canary.43d2eed2a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.43d2eed2a.0_1629302604422_0.0790175162437805","host":"s3://npm-registry-packages"}},"13.0.0-canary.0a9069300.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.0a9069300.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.0a9069300.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d058b4a2a929b486786e654af81de2d20aba4a24","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.0a9069300.0.tgz","fileCount":44,"integrity":"sha512-UefgQEAWOy/8jeZ0DUDdQN7XmilX0bW7DA6S8JhBGc/d6uYL4IfQ69CxelVd4So4VQTu+P+B1wtiE91Gd/ds5Q==","signatures":[{"sig":"MEUCIGr4gO3vjGUIhX3HmTto9eBxmpaP2oR0U1hc+jy5T56uAiEAm5nhjEvBKN2Qxo4nPm3dfy6i4gOY+hM3DHr65hk2vDw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHoRqCRA9TVsSAnZWagAA22cP/2WqTtnuciHfrkMwZrON\nuDMFox/HWvxHTap0E+jERf+jkrv4W6+DCjKtNZ3FyseVwpdue63G51v8mbqK\ns3O1JcZPGxHVGJ16wz27RjjE+OcHRoMjpZ//KLXGDJ+QBosEcALM62i+vHmU\nlxIu04JIxg6qA1k8GErCYl9IKHJz3FPluquXLYMRb/rgnoh8KCqPtT2cTF35\nc7/tiBPvIaZ4Kzl1yqEI7fO5W4bz68qZkDmabX8uXZx5Y565cUWyRzi1jrsw\n7pwQctYqFp15UgopCoWb8AYMNTJcGTFWDyRYuQsFemCQ2KRyFbmfPTTSCwaX\nuZRrhlyyVcY2ZPHocA8UPWGG0OeiMwDXXF/GPJBoMb/3UdVn0qmU/kS9HlQK\n3nG5OcRw17t01xKQJgIIy8bwZRu4qvzn7h5feT9Zb4jwIiA6Gq8H0LxV18HR\nMYO2h00Xw09/ej5Ib7smDUz+xmdj5oY+l4AdfPtL4CNQMgJjF4UnjIoUNRlB\n7fspYehhaQrCto8k+pKrHLn7w+0qLOPAaGcGSi9SmvnGelF8fDwBTmLZmtUf\nFjF4VlVt+v9txnFdkzhaS6RMROerR+hvzH2NpqxcUXQ2+XNBYCLq8gu5VrMo\ntE+v9E+p16Pct0ROka2GMg02h8L/csRHyWtRZOERHrCZRFTnUzm+wVZ6JrZD\nqzpE\r\n=ZB1h\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a7249c6c2dd2d786b2134e129bbe3b4ca596fee1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.0a9069300.0","@material/base":"13.0.0-canary.0a9069300.0","@material/shape":"13.0.0-canary.0a9069300.0","@material/theme":"13.0.0-canary.0a9069300.0","@material/ripple":"13.0.0-canary.0a9069300.0","@material/animation":"13.0.0-canary.0a9069300.0","@material/elevation":"13.0.0-canary.0a9069300.0","@material/typography":"13.0.0-canary.0a9069300.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.0a9069300.0_1629389930694_0.5447022058280191","host":"s3://npm-registry-packages"}},"13.0.0-canary.7da413ed8.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.7da413ed8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.7da413ed8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d72c98db6a588168bc7bfefc0ff958e74f06800b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.7da413ed8.0.tgz","fileCount":44,"integrity":"sha512-JEMClEnWCnNcaQGjYYJfzR/pIgXu9SQ5tpzpiolQAZSaGMGFbStEXihck6YSx6/Mh/ENBJpoUYSmGqUEhnMD0Q==","signatures":[{"sig":"MEUCIQCq7EeZRKdVhJ5uwRTiaRc2iq3r6CbSWM6+owS7pxeAigIgXqRJjAg6B/qjy4T7D8IEM+4sW3GWbw5hUxvTUtHtPy8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhH88pCRA9TVsSAnZWagAAvKwP/1bvr5Q7Q3XFgo6lretS\n4z7PypiaL6jiV4U81y26866vKpQcYat2T+geewCPEDMYL6Nf49KErixKSbZv\nwQixAkpGoG/u8OdEZ0Yhq3dpbu14/F7jBNwkVObMXk4dNcyh5t3gdf7ZJ6AE\nwG8FmlPqxaV2vs4L3xnE9ElercQ/kvuLrB/kIf0kKXvvmU1palTnBBYhDVMX\nO2SU6TjraU0kLGw0sAqtPJIizjSefEtQk8Jt84kWoTenaNZOz1WB+ZyXBqf5\nfXMgWx7JhJ2Gqmh+Bz9b8gM6ih8Y2yRXd3qXZuqXzz+NJOObbYRsXV+7Sm1t\niJ3huq4uDRIQma+HzIrxvFwQ3KHqbNU05ntGrulD94P0Awm0eq0I1RSU7ed6\na/BT/E1apMLKjDymeXjcLLfcknlSYWCUfzC+8BDrvfOhggnUKLoBJ2Eoc4NJ\nr6P5NUzCn7DRpbmMmN4VfXjsInlEKQpWimAOd0/s0mnIEPOsPwJLUawJApha\nnhLQhHf7xAsHiqHQQYfrqdJVPzFaBQldKa0m1bf2Fy38VWVt4VeDOhZLA8Gd\nIjCFQDaNFqrorlnpqNJxM22geYq2SNbLpJwSFfXxh96ADd04njBB4Ezzb+4j\nT117y5nE60rGrYLmGoRWzTMtvsRBVagh7G39xCBvLJeAIBAzMzJGJZ3sbeGm\n9xq8\r\n=sq0M\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"66fc8a91fb533a43e898483e7c4e1fac92aa0b7c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.7da413ed8.0","@material/base":"13.0.0-canary.7da413ed8.0","@material/shape":"13.0.0-canary.7da413ed8.0","@material/theme":"13.0.0-canary.7da413ed8.0","@material/ripple":"13.0.0-canary.7da413ed8.0","@material/animation":"13.0.0-canary.7da413ed8.0","@material/elevation":"13.0.0-canary.7da413ed8.0","@material/typography":"13.0.0-canary.7da413ed8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.7da413ed8.0_1629474601282_0.09176261752460757","host":"s3://npm-registry-packages"}},"13.0.0-canary.e1e69fd8e.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.e1e69fd8e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.e1e69fd8e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"56bcb441292051622914784eaf70c58853262213","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.e1e69fd8e.0.tgz","fileCount":44,"integrity":"sha512-Ie2ieTzB1O/+a9Rk3GDEnqRzNfacFRTEfSuCZ63h1mgmyPGSd6Pv8FP/tm75rbn5sdqzYMV3tkeFeM4gSWQm3A==","signatures":[{"sig":"MEUCIQDTMkMF1FHg8bwyCzVu6aivkWo8Dip5MUz6UYR1r9/C9gIgV/t3bkdo7adUQ20FiWq+as+KEDeSX9IbZokGXl971sg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhIAOECRA9TVsSAnZWagAA0Y4QAJ7fTi+5vGBJw9J/PSbA\nvNEVT5ZRXHHwSStl/R3n+8df4Ua0mnPkNiq+JuiEpmg/G0eZuAiEYXbvQ39l\nWCBufRQkYCHXFiOHzaqwr3weBGFU+Z94hA3rZTCAdUb+NQaF/S/5LBaLT9zO\nZ3aZBUS1xm3RG8xhaZ7FD0RqNkFLqsZy6JbGuXKLFczr6x4H2KMZ/88sfVdp\nsi4wKlkEVGbpmL5CfsU3GTRfbUNEuK+TL8qGCKW6/hf8jHyMTCSsDISktoaP\nOoXdWsUJrn7gnM+feDkN9ZWcBy2FH/CG6r+RlEZyAtYOGkIXxdFMaHn9vahf\nIej0gi06yX2WAnQZXyexFaU702mjfVD2bSsuZhkbTbKPAGwROP07VoL5bQsb\nAoBDbNRO2MmeYk44k7aS4k0DhlKBGWeAhL94q48OkVGpjH9FAEGJaTvFV41F\nCMy/fimA2tFsj0fNh8ED+p2UrecHPv/CXokQrQROz+RBaRScX59ASVQjc8JP\nbPv///mmXZz0Jmg10lU3iGQDagIJonyRO9Q0pPNc8dheyCEEiad398nFKQbf\nW26zozRlxWcVW/JSG8x3zM+e05tnLD7tcbjXVnD6+7S9RZ+lDlUUTmxoCJky\nRhoHcOSOBTG/mLJYMpCwOQjiDCaSDGTPtlHgWniLJda5cPs8KhBc8UALXPqU\nzW7V\r\n=Tiqs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e400b9052366c6e1d6e27533a72ad00199b6313e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.e1e69fd8e.0","@material/base":"13.0.0-canary.e1e69fd8e.0","@material/shape":"13.0.0-canary.e1e69fd8e.0","@material/theme":"13.0.0-canary.e1e69fd8e.0","@material/ripple":"13.0.0-canary.e1e69fd8e.0","@material/animation":"13.0.0-canary.e1e69fd8e.0","@material/elevation":"13.0.0-canary.e1e69fd8e.0","@material/typography":"13.0.0-canary.e1e69fd8e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.e1e69fd8e.0_1629488004687_0.1240735179416812","host":"s3://npm-registry-packages"}},"13.0.0-canary.f5afc16df.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.f5afc16df.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.f5afc16df.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5955c077bdd03a59ceb0687a127b5e2b9e7c64a6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.f5afc16df.0.tgz","fileCount":44,"integrity":"sha512-7ZyAGQ5+pFtmhzK+wRJNYBlyShADOTVnYAt8REQ9MNySqEW2cDM5JHwqCOTqmt/kDDELuoE+I/19/zvsYjgVww==","signatures":[{"sig":"MEUCIBJbvEIxisWV9PCyJmNV9KBx4gr9XZcIH3TjYdMtCTatAiEAzIawpnJXxFcg9fF98UL6wNdq93vSeCvw4WtH1385TQs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhIBBACRA9TVsSAnZWagAA7XkP/jLc4cCGTGk8JEMne0HB\n4qeQbV6j2nKTpG31ueScYghEUYCfpoINXY0ACKJxqAIapzIR4YOMLjzgl0jY\nUV4ljUbZhszIvXbR2kposwdkRKOqBwMNqGt6aSN1SFZq52zPkHYPQngUglb0\nyxU15qrePB+wVas8Hla7tDAqXnjz5ZcjXBsmb6e7JIMLxxSwEmcVkGPR7wpx\nJ6lKEMUGkSI8oE+F21NolriFBAK44SYuKa6SOV1o2dlnjiJM27NzbNYv/g/q\nNp+cgwT3s3Xj6nLLViytArt2wIiUOu/IQj5ht9bFyzlhYbKlbDP4seLdjc5G\nDXLH0tExMHrTnzHSQpOFYy8maNaCW5YsjGvdeUeGzX2j5sLh13ifU+6fVB2U\nP5KR0nLv4dekR2cxmfmJy5w2VCspmG090XDiYUwAPqpHtxlml3ebVZlQRvlN\nLTGfvxoN6MctT3zQHkgkHKmUjCx/Ro1OgEUEdzUtqJJr/HYZg45FEOdeKcpo\nn3JyNuCH2dw8HS8P8K7qOWtBlhfXpZFNnRluOXN3aFlCO1H17jgxCyIeEJtp\nNF9lBlJ0aj+97Jsez70iLIXBe5vXetU9Kt7/hWTXdWAxyxq1daskkytLI0Rx\nHJ0Jr0eTaivX6tekd/z1e6fHwPfeg1nqvG9bK2MrdXBBC93od9G6XHS/LQrA\nHsHX\r\n=Zrnu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9a5934ef5d223f46f61452bee68b0b45a21e20d6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.f5afc16df.0","@material/base":"13.0.0-canary.f5afc16df.0","@material/shape":"13.0.0-canary.f5afc16df.0","@material/theme":"13.0.0-canary.f5afc16df.0","@material/ripple":"13.0.0-canary.f5afc16df.0","@material/animation":"13.0.0-canary.f5afc16df.0","@material/elevation":"13.0.0-canary.f5afc16df.0","@material/typography":"13.0.0-canary.f5afc16df.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.f5afc16df.0_1629491263896_0.371845038250336","host":"s3://npm-registry-packages"}},"13.0.0-canary.28d0d75bb.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.28d0d75bb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.28d0d75bb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"70562cdcb7bb9751426dca08fe79f2f6707289b6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.28d0d75bb.0.tgz","fileCount":44,"integrity":"sha512-AviOu6yQEiYwo59qxAjADekx8n1B8KJG9H/Mt4vUHfg/nUPiCB58tJlM8pfRqZVSbjVhnXW5uW8T7weOZH1TVg==","signatures":[{"sig":"MEUCIDGLGew1WSrSsuYiSXTC0MxWtVVaVOxWankft47nYOagAiEAoq8iAN1GtS9O4Me5IxHPuAlFN/Z0oydOD818dU+VWIw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhICrjCRA9TVsSAnZWagAAotkQAKGxYIUEOODWtZYCrKTJ\n2g/hi0A+v+VGjZNNOaEY+u2/DTgvVBkrgwCyrRXkrD5n+dycahdoFOjaIrQx\n/to4oL5eDAXAqZ/gYC+59scmCTSbH70lXzmSCxSLNCwbCjcYakYrZHBUb1zN\nqq6SdGwOe/TcnnmqRaVxICfvI+JUPwLa2A7ffR9yb+dXGTE4fGOYRsTAyMju\nPxqIDpRJm9rlhwoppWml/UKHXPTXhloIrYznAuaulyj7zlodVKJ/fSa3Byy4\nPJXWv49QKK9IrCvrW6d90a0ABOjSr1idiCw7Or/uqoZx0pVDV7UIaqvpTzbx\nFTYIwXHBJQaZjv8lgcStjB6ngXIu345IsCb6GJLun2KK92yfCESzir5dtc1v\nTCQl+Kzg7QOtRBj7xsBfcMBm50Jnbmy//VhwyBZzqVmTR/BDlzF4qBW9SGRX\nVNXRicEIaL8pY0U2sIdyH6JEwfveZE5y7B9ZpzEcGEG3IBntnuL+62Tfp4jF\nfJJOujKrRF12yipBWA8V+vhlR3hg/O3ay33YsnjxtJsBzbpwSefSowj4DhML\noxuSnS3xHAAda9AhmmDdke8WcSI1IcpKDeQrVn3y8SHPq+uqfAxdTj+vTbXw\n2XBrWMKhUugSoNZxiycHMGIFo0qbGluQ4PQdaSW9NkjtX38KZ6KwGPtPD3HE\nI92g\r\n=MGiY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4becb1aca9e878d432cf8308ec0f14cc50e9699b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.28d0d75bb.0","@material/base":"13.0.0-canary.28d0d75bb.0","@material/shape":"13.0.0-canary.28d0d75bb.0","@material/theme":"13.0.0-canary.28d0d75bb.0","@material/ripple":"13.0.0-canary.28d0d75bb.0","@material/animation":"13.0.0-canary.28d0d75bb.0","@material/elevation":"13.0.0-canary.28d0d75bb.0","@material/typography":"13.0.0-canary.28d0d75bb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.28d0d75bb.0_1629498083020_0.5437066040537453","host":"s3://npm-registry-packages"}},"13.0.0-canary.21ece5360.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.21ece5360.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.21ece5360.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"da38ea16031fdb88ec74782c88ef5648fb164a35","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.21ece5360.0.tgz","fileCount":44,"integrity":"sha512-lMzFSKTUSWa79PRWEjz3T99XZuv5UcO81ycO6zWJiq/ww954eIj2OG6JScrXfOUvhQOMUDMMJ2zIn1Sw/qFJrw==","signatures":[{"sig":"MEUCIQCOrd0E5rExdOhzN03z5j1GQbt9gqES23kSqEDQdcmRaAIgMCNBbL+mdCWnBZICZRMV94URDHCgZSetafggDFQp/Sw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhID6WCRA9TVsSAnZWagAAoB0P/RuqFsbCr48W07T3PyPE\nyopFUTiCYiMsRzwE5FhOApfup1MHtc48Ha6iGlerG+QFI8Li2n4CSj1wiFyC\nRys+LV4qfyV/DlybNLysAC2BSHVl9pcIoXtg74opGHZ282SaBdzSBI9xqLJ7\n29w3v3z7PmteIEYpCt7l1/W18RajpDl2SEt/OrYqBoh+Evmu0YunT8MghQ5G\nFG5s8NGqlhpShJNiOyRsh+45E9TudaZaH24zDuf0c2GTzGu8IMG1izG5Vcn+\n3Fo7foS1wKBx5si6nyyp4uYJBaxl0FTpUyJ3Ab/jspMVYRvbRU8qrIuk9Xqz\nHckmTyuQgkt3z6kpn3M5TkVQYZ0JR8ra+SJLSnoteuJglfaCtnVPuPuB6UPf\nwbyvn6DfXq+pomKiKGO7dzMnH4lbWUsRUiR9SHbu85XbAw+QRPDw5wdabzdT\nghJC5iX9VlRSO3bR5VvUPiQDZd79fB7u6HiDJNJxxbKq9+iwEHEbPNCNhwKn\nHZgIUwNyv1Vx7ofP4xv06wRkDa415zMQxiDjPS0ObV7vrSKwkZwnFoSh2527\npnhGZvWRULnqjwrZ3AM3GtQ8ZcW/mc3GxFCWp/iUUS4Tg7VvBlLPMvoEelRR\nQdPhxnBmJOgxd6+V/ChDdVVHHFm4Kvv0w78NaIx7wplrrIhMR3EuzzRI2kIn\nf3zf\r\n=LdxJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9625caffe59fe4a84aea358993c2811ffcf33e74","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.21ece5360.0","@material/base":"13.0.0-canary.21ece5360.0","@material/shape":"13.0.0-canary.21ece5360.0","@material/theme":"13.0.0-canary.21ece5360.0","@material/ripple":"13.0.0-canary.21ece5360.0","@material/animation":"13.0.0-canary.21ece5360.0","@material/elevation":"13.0.0-canary.21ece5360.0","@material/typography":"13.0.0-canary.21ece5360.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.21ece5360.0_1629503126054_0.25769901625084835","host":"s3://npm-registry-packages"}},"13.0.0-canary.8de07c02a.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.8de07c02a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.8de07c02a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"725810041ffb34ca4f7c36e68af0e81760bc3b52","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.8de07c02a.0.tgz","fileCount":44,"integrity":"sha512-/owDzbILeT7Y5UwCCML6hze99RzuViEZ1XFJ4cCjBseaNSm4xuFtQjzquTK9ze5YWX5Fu5hTDW1UXjComMCv9Q==","signatures":[{"sig":"MEUCIQDpivCKIVGDp27hxPzJhtwLI/3pjWpPaEYwtKw8y3ShoAIgfMlZKkBrL2PSPVGt09cnxoOOJAfVap9VscBKIMQ0yq4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhI75yCRA9TVsSAnZWagAANQUQAI3HKd6cke4yUG8HcdK9\nsG3pezVvDyG0y54yvZljULQpmVlmdujmfpxIqqdWDQKRM9qUilrlv8sd/iJj\nu8GciTYXiyJdkZAHx5UIURvxcoR8ZLE7EZZ1OWlZNPgg/nH0awqCk8qv3niw\nCvTBxdyVvLn7tvEt//z8qba5N9wydwIE/nZUWmJeeOjl12Zo+nBHNIxrHPXN\nNAHO++sPkbFitMqOfgibFOXpdU1L2PE714Dxep5+lOl6x+lU4DwQ3MS+Rojq\n+zjiezNg0eVvt73GvD3QuR/oskbHergEb1GaEw3/YtRBM0pBf7PynF1VhxyS\nxs/ctDwV41neKb46AKGWtchbuuH6kiqvx/tKAIy+e8vbqvkbd+4LYnge5bsG\nNzOAVC0BjLgLYarp3XOLUfRIDU6oL0AtnaB95gd1a/LmWs+TSqd+VVfm1Uv8\nFYYrll3v6wM2O81qJAIWauHB5GBfFw2iMMdc94qnicMwZgu3/s4QUbfJpcTE\n5vtOvhULO0QwQ9WKgno1i7Qv7AyEoSTLVSb4nnKC4M9O3f3J+pX9gbqAYHXY\nKe//qssAmhp5QopVuU7xxTevmxTTY0k2PdZDHzyQO2DO2CWjos+T6GuflLF+\ne76kkIIDYDW24j60VGoDg8sic9E07m56bnccmj2lfMnkVJ0R6Anu/Dwnzu7s\njklj\r\n=clRW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e55081eb44f85de06afceb7c0d189f0d358ad60c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.8de07c02a.0","@material/base":"13.0.0-canary.8de07c02a.0","@material/shape":"13.0.0-canary.8de07c02a.0","@material/theme":"13.0.0-canary.8de07c02a.0","@material/ripple":"13.0.0-canary.8de07c02a.0","@material/animation":"13.0.0-canary.8de07c02a.0","@material/elevation":"13.0.0-canary.8de07c02a.0","@material/typography":"13.0.0-canary.8de07c02a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.8de07c02a.0_1629732465816_0.4997249256213949","host":"s3://npm-registry-packages"}},"13.0.0-canary.65aa63b0c.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.65aa63b0c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.65aa63b0c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1f347c9822bed141569977c7c3d0aff45d5770f6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.65aa63b0c.0.tgz","fileCount":44,"integrity":"sha512-uIfZC7dKQvR8y9AEr4XybZTYgepTt+1vbc3Vu3sexZ7FTU6EUMNwPmi7/CJZIIqVXzJnXnvhAsobMZbMLfBt1w==","signatures":[{"sig":"MEQCID95YU/FC/cQfdygR5J0jQU17U0yCvKtcNThPkdcd4XKAiAJKA6bAHFJL0mdzB+sWf9E0bw8Od3D6tR+BFyATpohpw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJRByCRA9TVsSAnZWagAAnXEP/iU9T5DHk2y6HWEtkio/\nQDGZAa5BlimUIoItzWKICMX2hi5DeB/GW60v/2knT2l436sQx/2YBctCcH6D\nnB3ZV5tDiqypv2aSANTvIGtW8tksZnWvIql7ZPsh0gFUGFzYuk9RBKmjBvON\nz203ihu9T70YZ8OMHFNuOFf36I8Fl5YG8lvGXNE/3AxYxFvgFkT2F+3bYM4A\n7xTD2pClal6P181038zND6T9Mdavobl8WXpP25ToS/HPZmmV2gIpjrN+NKzw\nyUxG2AFC2VZ4UEKa13635XE742BTFz8SdTZ2qSQJVCP2bM09aaOwtSpLQOti\n1zpjy8keutN3UVuA2Wsqn+ieXbcSIZcTKtoIEaRlXIHNwOI+xKKIHIMcU/V8\nH0HmRHwh9Ds+AjLw8Z7R1iCNdLblzaLUz+XC6eeAFnqKkCBTNEofzS9Rf05O\nCqd1FhcGua2A0lbAEqHCEtSk/gYJ3MxLL1e5MbRromN7sLwEi1EMuf3iblKC\nwB2GlWp0sU1WR8Gf6ZMnw0c9Ed3EPAALNV6pUOCH+fi/pgTi2Cbl0gjO8aj3\nen5aT3vP+cC+jeRH7oI4P0FptvTEu+/3oyDmEo5BvERU8e+5aaHw6TwNxsyy\nOumaZFiznnBEALzsDiDhhORu5546Dqlny0Xuxl1jQ2621y+YgC6lwe3EklxE\ntukV\r\n=BNOC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0ac2dcf03064da43ca7eb352045fd4da0af02200","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.65aa63b0c.0","@material/base":"13.0.0-canary.65aa63b0c.0","@material/shape":"13.0.0-canary.65aa63b0c.0","@material/theme":"13.0.0-canary.65aa63b0c.0","@material/ripple":"13.0.0-canary.65aa63b0c.0","@material/animation":"13.0.0-canary.65aa63b0c.0","@material/elevation":"13.0.0-canary.65aa63b0c.0","@material/typography":"13.0.0-canary.65aa63b0c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.65aa63b0c.0_1629818994441_0.9092973118200167","host":"s3://npm-registry-packages"}},"13.0.0-canary.15981e9d9.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.15981e9d9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.15981e9d9.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"491003aa9447dcdb2e872f9a2c7b031090eef7e7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.15981e9d9.0.tgz","fileCount":44,"integrity":"sha512-S3s55Lh9P/KAfZ7ZeXrB9HmQyq/iSmorvu9roY+6eib2yO4vlDbvhx/W7M/HJLQk0Tmp9/qkASpFTwk2XuJElw==","signatures":[{"sig":"MEYCIQDJHTxfFt/KezYcNPlss9Op7lo8n7uZbXgMD6YwNj+0mgIhAOIa+IVM2xJeUmdB2mTxWty6daVLrtXt2e5UhM73J9BW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJRvGCRA9TVsSAnZWagAAep0P/R/7Y4bfMv8PtmNXOM8u\nGyNntbEK6Dcxr3XQUA6Od/R+KrSwktRznFcmY6nWZTtZdGuPkvNNTazSD4B/\nHv36+MHu6qo50YtwrUHZpOrTVv3CjQqRE+03Euq/UWNk2Gx1ycAHRByDNeJG\nXKprKZL+SdAUGUR6HxONBpB7gfNNfLRMIbB8UFhG37IH0l4yncZrVIXAl8Tw\nyK95dmhXTrZyN5QlojFEmRsxZxDY92AgzUxJA3RucD7Am1AKPeERZICwHBYX\nZKP3U7gu4awy2xvzubsYBBoedn00NW7k27FNWG7eOJUo3/rbOpOqXE0onTb6\nIXXHidVqZhzJfkaQyqnLnIOB6Pw3r50+dJpOko9tdfFtBgAveZ5SIXThNmuw\nYP+4UsZnfzk+qUTREb06To3vZV8yMATAitk3SQgbPQp+eIWYpWXelXHlxbx2\nO9QQkO5vQiUpl1D711iimKaPrVp/PRyr3P/4TFQPISSUwOUqB/LRQVUKssF5\n/XZ2nEe5W0Iie46mbPcCVWipaqkInCpep62PkDjDMBJKrilNHMQm1kGyR/Z6\nGxoWUOO1dzTEC3XNDGHbRN3qN4uWfJDJ1ux0LG4WqIOoY+AUJjlVqL0hgdWS\nrC/haYQ/Byn7+J0TALCfmmzM/aqkQ/lA2UbSCp32R/86dT0+sApjyeigW/JK\nbGnz\r\n=Iqgz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"93acc5a9963b30cedb03f35eefb49cd35c93656b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.15981e9d9.0","@material/base":"13.0.0-canary.15981e9d9.0","@material/shape":"13.0.0-canary.15981e9d9.0","@material/theme":"13.0.0-canary.15981e9d9.0","@material/ripple":"13.0.0-canary.15981e9d9.0","@material/animation":"13.0.0-canary.15981e9d9.0","@material/elevation":"13.0.0-canary.15981e9d9.0","@material/typography":"13.0.0-canary.15981e9d9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.15981e9d9.0_1629821894197_0.8597263210793","host":"s3://npm-registry-packages"}},"13.0.0-canary.fa7520f62.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.fa7520f62.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.fa7520f62.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5f913fd88d77f69896bceea67770cf58d28940a7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.fa7520f62.0.tgz","fileCount":44,"integrity":"sha512-ewJqOcocOtUhQRzpAwvVUR6tfKEBHngLqS/lxb5qeDjuUIl4c/BaZ6J26OjM7ALAMXKGheHnbAZQwVZIYhHA3Q==","signatures":[{"sig":"MEUCIQDCI/fwOKoCTsa+Gt75ZtV1vcvUP1xsMoNw8ynZtQuZpgIgFgfIeyonoLFuUU+WuUx2UqS87fY19eh8BREZKXGt+HI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJXKtCRA9TVsSAnZWagAAny8QAKUEYJOkR0INoMj4HQuJ\naEjJPEXvv8ZB/gtDX09k9jpMhfnYf7iUAwdxY5H0FyQxpweZNLU85EIxGTUh\n8a5crN6Oc6u6K1usyuF+eKJFu/Exo+9P835pH42uFn2+70LyAn/gzVdqyZN4\n0e+TyLzwqIKHXga5jQ3PbTh4TZ2R9+odBy9ZgXC3NfAzI2nyz7rEISe+xtdh\nB6BoDX/ntgVODfw2MUK9bgkBo64cyZ+oG3jwsruCu1QFPKqcI1rjcsTnzD9y\njO+ehCiD9jC4HRx3Sm3dhPnTaIW3qSkfPR9VeGIleX8rzRptN99FsbDWT5gD\nRdNYws7dCJjeVmDH8hjQaSYt1npRQdab2oMRbZDgma/Eb+dj+n7mNHsCrlLm\nSE7S/1CI5DfKHf0ao21HShwEKzIpvmZA2PwRlIZJCtvcOpqQQ/Ty0nc6oX1J\n5ZEnLSrkSEQu7PwQgxoSb/T9gntD4fK4jW9rwTgKoSGcjhwwc1W7r/ErdK9X\nG4Sh+obCWeP3/6O+SuG3fNrukpsZoIZZCD7UcW+xyFdaxH6znWUaoPDaREE+\nJ/iF1RIbZ71zzH5eHjLG29OEs1EJeCfKnEYTXYr0WU2iveKmRBoNYOHBi1uJ\n5G34JXsa9wq0KP5LZI1wSy9PletPHmT3RajxuUgrxEF5+99/MN6vNV5t7sDe\nqmw9\r\n=AyHM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ded8a7ce355618969092a7bffde0da813aeec162","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.fa7520f62.0","@material/base":"13.0.0-canary.fa7520f62.0","@material/shape":"13.0.0-canary.fa7520f62.0","@material/theme":"13.0.0-canary.fa7520f62.0","@material/ripple":"13.0.0-canary.fa7520f62.0","@material/animation":"13.0.0-canary.fa7520f62.0","@material/elevation":"13.0.0-canary.fa7520f62.0","@material/typography":"13.0.0-canary.fa7520f62.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.fa7520f62.0_1629844141496_0.30478824476402555","host":"s3://npm-registry-packages"}},"13.0.0-canary.ce25bc3ec.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.ce25bc3ec.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.ce25bc3ec.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"82456cd418dcc5c794259180a4f98491dc02ddec","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.ce25bc3ec.0.tgz","fileCount":44,"integrity":"sha512-0Hln67MlOIjElY25sCwjhrVUEq8fENArZE+FUK4O3zkiH3tiR06TA6AnyOMifYmA+J3bHHytOcxVTTpGAgO9sw==","signatures":[{"sig":"MEYCIQC8G9BNAGQXMZ3VjX9rKjV785qB7+uQ6RZ64hr1QAyt2gIhAJNRs3jnm6RtXwZVyLsi21FyaL9FRAUl3a6kMLppnbZ2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJXeACRA9TVsSAnZWagAA6J4P/15YzO7egQNRe8unMGfK\nfZ9W4Y8zEIOmevhfG35m7uR4DdrmznD+3ljmHD46nWeE5G8XsryaAReMmj5R\nSf5V/0WKyXBJCRuu2dE1q0ReYNQPYQ2thlzNiFy5YQc5g4rp3nrBYO2ww56I\nY5lyKwlz2z83jIgitJGzP5AEyX8n+QEvxK2VcAfZYMwSLIEVTtb3Ts4Dd143\nDtFFGKfvXMj/0DpAsJLueu4jN/5EtCRCfSonSiocHkY4NggFNfaoJnpjAFOx\nF/MLF5eriRgkPSG+7xlKpV3OIS3PD6m8kfRuzzlBAlaq0UsP5wKptqBUXxBy\nxQ+YXxvZ1KnEavy/d+whgfIOsc2kHm7xU38qsZXwdT3C933XBa6Wei4t+g1Q\nMU1t0SEymvZWPVzY0VK5Zu/em98u3CnC1KAKuTxEJkkluOOpK+8bf6KinVlS\n83VSa5BAGPXxFO6mIwFEFrmYB1We3Erc0VywidLcPhgpo7REj2vZ/owTZvKZ\nnBSp2hsrTWdvDFYJ8vn38PIwf75qlIVGmyc7ui9Oms2k+jm4/MaZ1X4ye8im\nQMXpFKPnRRtKRkTwtCzp4vpCYjwvCpxv63gW3BQ1B+LFa2zBC2JIT/qBEq3y\nyb5aDW6TyHrjV5AGvQgnBAqRHrWlT9dHLqD0rggR1KIgRX2Sa+Vth8ONsWX/\n9Er+\r\n=3Dfw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5296a1abf91023fbe0806f06b5b5fce528c40509","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.ce25bc3ec.0","@material/base":"13.0.0-canary.ce25bc3ec.0","@material/shape":"13.0.0-canary.ce25bc3ec.0","@material/theme":"13.0.0-canary.ce25bc3ec.0","@material/ripple":"13.0.0-canary.ce25bc3ec.0","@material/animation":"13.0.0-canary.ce25bc3ec.0","@material/elevation":"13.0.0-canary.ce25bc3ec.0","@material/typography":"13.0.0-canary.ce25bc3ec.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.ce25bc3ec.0_1629845376269_0.40108175373884647","host":"s3://npm-registry-packages"}},"13.0.0-canary.12f5622e1.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.12f5622e1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.12f5622e1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2826c422a27d8e508828661af6b8b9fb04c83809","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.12f5622e1.0.tgz","fileCount":44,"integrity":"sha512-8Fzbf5t6RaXkFVS8h6rtSK7t9hqHAKKi3++hOE8GgBnUHqADTEaXcd5Gnx7D5WIiENt1OHnQxknAjHlUKr7jAg==","signatures":[{"sig":"MEUCIGpywvMen/vum+tb10dCd+BhFUPIgTypx89b4pAWlT2rAiEArNwChG41re/GaIBXxFPdOBQg1GUQgpPuZmCsiGrSFW4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJX53CRA9TVsSAnZWagAAh+YP/3A4GSGaVQXQ25gfya+E\nBPSjyQlZ+8mhjprCUzurw4WIPfZu7WIGy0ujChmIdyVD/pY7fGzkh45aKqIy\n4BIbPixcCmNDipBO657Q9mB8KW6vjj8Tw7+Yz/1uXrqPOUNdZtLOEpsB5JY0\nZhAvo2bkg9uf9Hdgv8rWNcIOzJJGsFNT4eWCWEB1AAsS0iR/dbIXSdY6dQfn\ndcXatBdTYitxceF9U1/igjF4J4TY/WoGMw3apQ2r38/tvJNWt9HdzwgA9V3M\nvWlSAhnAbuRdWXj9TWQPdeHH7FE5qotR14e5++Ym6IO6cpyhJ7cI+FTGeLF1\n275LrEf8XPis0W+50NO5IlCwZ3PDRml0Bk/B8aDcQtstaaiQxZFBdEe9M6i1\n5egv/i9pFVf9axotUwdGZFJLGEI42HBeR4bZ+03I1iDrMHX9ULgFEgAoUmes\noF56MKOGcLYwyupDGF5pTNXh8tueoB1HW7BnwBY8YAt7k747XTnD7ExOLGn9\nC6Escj8YDyUwdfSvBj86dnuFzxkU78HQ2VAdvrx3VIe7BcjcOhnxWIk3Ca2m\n/RGZ74ZEclgkcGcdR0GsdY8I2pcpeLwmA9l+nfsHBc28dra0pP5pzAZj/QLp\nN9ll4g8LbM+pXg2XvkhgWavymyHUX7kb9KWyXAlGODlZW3WDWrpgoKuamkjf\nUGM8\r\n=NI9H\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2cfeb72e6002a5f3cf296794da5216b3114fbbc8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.12f5622e1.0","@material/base":"13.0.0-canary.12f5622e1.0","@material/shape":"13.0.0-canary.12f5622e1.0","@material/theme":"13.0.0-canary.12f5622e1.0","@material/ripple":"13.0.0-canary.12f5622e1.0","@material/animation":"13.0.0-canary.12f5622e1.0","@material/elevation":"13.0.0-canary.12f5622e1.0","@material/typography":"13.0.0-canary.12f5622e1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.12f5622e1.0_1629847159401_0.6255841438616425","host":"s3://npm-registry-packages"}},"13.0.0-canary.d97f8f133.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.d97f8f133.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.d97f8f133.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"108faeb8f9c1a25ca50f9b9d2a8b6065f02afa29","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.d97f8f133.0.tgz","fileCount":44,"integrity":"sha512-CIf7GKBZaRg4F2CxGL/Y6OlcALTfI5YJyb47+PtNLn8PDEEjbruuGiXE+nN17NkjByQgsdcsA3AhNgdS6ISGbg==","signatures":[{"sig":"MEQCIHFlAOngQNd8GsQjStsrfrRcOP2XdGlQ7bfgX7KkS0sgAiAlMwDzFJqyw3jMjxTk66pJwQCKoAKs09ktPY0Mexl1tQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJo0tCRA9TVsSAnZWagAAwVAP/iO6L8/t1B5K2NA8ZxVr\nqwmMcX112xhDBAvn1oPzI3GQpcJwiTg/rB0M7HiJhovLDNTOleBGBz071UAi\n9exJ86nAtzWGM7EL3WZ7m4DzcJP9iCiX9tqE9ZW5NovcdOUbt9o0i7I+M6dz\nDn7KO9U06ZLjcDsS5JkryNqIxlFnCpP9CF/bqbtTAIX21hb0IWce32sZ1IK1\nGPvcjPV2sxyKTexOSkH+mVamROcPpT+tUWRQgGIKRZ26WYM1CnKhqdY4fwkC\nayXq4YHSccWbTPdD6+C6mvCkqEa2bkkLtWUORI73yZLsE+YBIuslx4+Dv9/V\n2w2S/8h1nptMz0/op6RwGWZJRUoMSVSEsHO6/viMV3oWBS1NWhjFkwbkC/8f\nqY0LcK5kR0VYfUmK6j8cy7nxqQDGO+7z/HDnMJMmegahwopveZhe1/xRduTu\nWGcNJwDQSAn4bqrw3WyWYGCLgQ8Mc3hW3fqNhmUQtaFgtl9knN9PpC21d/Zv\nQnXZVG2/ia2uY4knq1KEeWJMgyA2islwu+CrHEVvZY9NXu6ekzX+bD1Q/R4r\nBM3YEoYgiNstgXwzWeieqPs2ZMWBgKLC7rOE5QHqQklpC5wLbRbNibasoYuY\n8b1LHn+txNfwX4lgwihwa/gXlOPHjSLWLwllmMaXTGgbprSg6Q/JKocEauvb\nfxHk\r\n=inPO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e7295f4786bb26bbc05939b4d6e3e42f011cc033","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.d97f8f133.0","@material/base":"13.0.0-canary.d97f8f133.0","@material/shape":"13.0.0-canary.d97f8f133.0","@material/theme":"13.0.0-canary.d97f8f133.0","@material/ripple":"13.0.0-canary.d97f8f133.0","@material/animation":"13.0.0-canary.d97f8f133.0","@material/elevation":"13.0.0-canary.d97f8f133.0","@material/typography":"13.0.0-canary.d97f8f133.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.d97f8f133.0_1629916460784_0.4372828665694075","host":"s3://npm-registry-packages"}},"13.0.0-canary.d86fb6fac.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.d86fb6fac.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.d86fb6fac.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"aa88dc8603a4b643f4984ff5c494d20e9afe103d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.d86fb6fac.0.tgz","fileCount":44,"integrity":"sha512-PQlPRKKjYkf4da7hEuGZ2OsOhhy6WCNBrS3T0sWPUjaOLP9fibWbZcznNfWE8vxloJh6ZTMYwMLsLe8F8p6v4A==","signatures":[{"sig":"MEUCIDoBqyrB5NBSbPWN6a50Wb3YcLpqmOyHZs/BqJqqNNF6AiEAuc0n0S67bhjwqZxcMXNlDJzfoApjWhUjkSeAwtTl1lE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJpIBCRA9TVsSAnZWagAAgOsP/2bzej8iIuNgfmSS0PpB\nN8XteKT3VCz6ywyN4fjMHoFfCFY851EE+K/DkcJvDyoiRQQ0q9hijUm85oKa\ncTlR5jn4DldZLzLnxF2vHtRh+FjgztUNB+kW+KLeZ15tZiqpghOV0qwDT+Oq\n1JFS0u813PB3QoZoDgxNgVK8D7CT4CnrETvG2c+0W/KbdxyVPOpundQgkai6\nkSqV6sn458FZCn4OX6SJzOJRUkm1Etk+lmJ3NyJ4tFDF/0xxlhjtQ1JHBYQA\nRZwPOuu7NYcFpwh29s0E1MP+/V4HoXjVTWbq1fRD5trx7fCOCB7UTIdqrgxj\najB2dP2oh3DyZdLNNZE+HgOqgFSi/ba9TF+DHDGjyp/pBTfGeeqfUvtVp6/S\nGjrJZld5A/ay09EOEVA7LveYdgH1DeAPOetb9u3lKE61exQNRNDTOtpQC4KM\nh+YbrSm6Hp9aoqyRsXP/8lxwDtbgOK5V2gNIDt4xm2Qu6uMufb7hw9EUMnGd\nVhvrgScsNPHBMV+zmEb2HItVAYTlC6g0YT0q/29K/sg+mi9jvB/ERyRZ2sE0\nh9Rku7hw/XGWamC3StbBK9NWIpixnc2NhAdqPTufCK0+qhT0Vtb9CxVLoRVY\nPHmQiDJbvzdUdmOPUDzF3PRe4LK/DszM6ADFqucm0TNOazhSdUG2y9IRmOJv\nMEhL\r\n=y15G\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"35d13d1a20fe14c295e8589fe5960bc9b4da1925","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.d86fb6fac.0","@material/base":"13.0.0-canary.d86fb6fac.0","@material/shape":"13.0.0-canary.d86fb6fac.0","@material/theme":"13.0.0-canary.d86fb6fac.0","@material/ripple":"13.0.0-canary.d86fb6fac.0","@material/animation":"13.0.0-canary.d86fb6fac.0","@material/elevation":"13.0.0-canary.d86fb6fac.0","@material/typography":"13.0.0-canary.d86fb6fac.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.d86fb6fac.0_1629917697021_0.34372304222861016","host":"s3://npm-registry-packages"}},"13.0.0-canary.e8554dbbf.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.e8554dbbf.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.e8554dbbf.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"df6b22c5c9b36fb7d81406760d5679420f9c7c32","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.e8554dbbf.0.tgz","fileCount":44,"integrity":"sha512-u68Eeb2j/pPe1vFPcT/AP1MWzzrPMXdsLShvn0+80N1Sc358eQQa3dX+1TfEN1/pQwTa7FNa9ExjLGg3XlqsWw==","signatures":[{"sig":"MEUCIQCo4tNYh2mBOt6ZW1yYLiqsc5tJ30c6tQMosl8J2HT96QIgNYh1+fer1ll+X7MkyiVjq5bhctrprUn52h2eGAeYcBY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJr1/CRA9TVsSAnZWagAAEyEQAJtklUkILq6DzyBpCbFC\nlzimIoXYOyFvfuq9k1+jOAdocqnXwcYlWQzu0qz+BxIvhsHydAhyTuDvwYmh\nSNBpVg19uGqJPLl/WhgKJuciEUdc9+LjgaxE5XC+Ha1mT8KNSfbUK9R8CuVh\nA2HE2PiVx2hhpw3PVZgWtCDn0Q+MIDDzNZw+rO2QVAdlZLDcL9Fkf5Ezc6Bp\nsiMt0ApkXZ13f2Au9mFYkXBtq726IcEtnMIiNe3WDCBNWKOLY7MXeVA6IOCn\nEegNNLDaHqOICvBKl52pvTdqLS1VbB3GEH/p35BiD2DL1XhBv9vsmlHuc2XQ\nlAxrFGfOynoKDioZ99xzKEfRCy93oEGTzLiLd8ABqVC5VU8cbhcFQrRl3DaZ\nIGgN3575JBeZq3TaZnjCJ61dquQKQSl/seJBa7cgKkuvI71T/92sAyJy7DXC\npxvUq+hwxRd/6PR9O5UV08zIzSi9bRFdGu2ete6y4ygYQBfeiHbmGjGJsfpS\nldDiUnlBWUa554hK2l6q2HHcni0WVnAWmNvhpzgZ0fZ0XlpVMdjqYiO+PH/6\neC7KYFaIljwkPNfvgCqZY5FNczLSeRwC5ZUIkwwQXrN5QmnkMxVZ5xpncr3E\nPdjna9RdmIItR2Ae3HkMz8Yx0LpzdwBaVRopGq1FwkYtNlRNkyntbJCPMyfc\nNHm7\r\n=bOMC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"da636a8d32198c6289df3bcef39340bf76cf8265","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.e8554dbbf.0","@material/base":"13.0.0-canary.e8554dbbf.0","@material/shape":"13.0.0-canary.e8554dbbf.0","@material/theme":"13.0.0-canary.e8554dbbf.0","@material/ripple":"13.0.0-canary.e8554dbbf.0","@material/animation":"13.0.0-canary.e8554dbbf.0","@material/elevation":"13.0.0-canary.e8554dbbf.0","@material/typography":"13.0.0-canary.e8554dbbf.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.e8554dbbf.0_1629928831283_0.5606159360684293","host":"s3://npm-registry-packages"}},"13.0.0-canary.877e3fb0d.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.877e3fb0d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.877e3fb0d.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e9af20392e6ce69d2adf2cab2858e800da609a4b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.877e3fb0d.0.tgz","fileCount":44,"integrity":"sha512-stYptcVBaYHonNq10HNz8TSsF1udtiQS94aTBgk81nxSrYF+ji+fUiNp3vgWsxyFjn1PsyZlWdR1Fqx757Cj5g==","signatures":[{"sig":"MEUCIQDJOvB8/MAGZ/Cw4w/3Y+LN0z2SrHIoJ59tCtk2lRFWMwIgdHYImZvlC7xNDR8Wm5WUiXibpZvXBlSvbr/E4Z9aZ10=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJ7WvCRA9TVsSAnZWagAANeQQAIRxxTYP+c5g5nb8dZ+P\nNgSrMw5LcQ62dhnuZZicCPf2SRD30Z4hWo5xcLjUd3qTjg59ehGRz0+b3gRI\n/bOb44RTWez1oaN+ZNNNpd+bZeDD67L0HNdKl7GnbLYA4RC4jGVnWSGeE2Xc\nzcbAbM8LwjA1IU3vzVBGgS1HZWKIz7Qp+tdajRcK9U5ePqYbKHQ7Sd/U6QFS\nzzskytKJji3DOJvSbh45OonUlzlRMRJZPdfkTAUEwCAIDgE9z3TK4/gPizUS\nFd3yp07WMQ8NVzSbK2ER8GbRcfjyvVis68Fd2Kx7hPSige5NccNTfe+Mg8wR\nNASg5pgj9wk7n9B0hbTzcCpQDphgkxNi51zDV3fgh+HNNj0D3wgVr0kHE/1/\njQaFeFMTUEhj77GyE3aHyHockboi6ZnzUf6NiUEqx/6snGavRpJ08sBHiq1+\n/te5D3NfgAuceSIrC1pOl4LsudJHPrNJf63ZgpkXiCRNuzzW9XHw17vTeRvJ\ncZil7b32txvLcxKDEPo0icgMEAU4YKR47Yo3JpwVOsc+hD4WbzxGMMXnbdmU\nVeZByOPpvtFVBj5nhVi9mhMgtj3d1ld6KuHUfi38gLdcGottKppGxkRhbuX9\nfmHa7+y9Ix4X2yJCezFSTerqzQGhebVHy67xhzMSPT+EJQo2VIaXxRKcsfgR\n2Ok+\r\n=58Mt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"849a956f7ad3e0da0840469b917eb66537c875ff","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.877e3fb0d.0","@material/base":"13.0.0-canary.877e3fb0d.0","@material/shape":"13.0.0-canary.877e3fb0d.0","@material/theme":"13.0.0-canary.877e3fb0d.0","@material/ripple":"13.0.0-canary.877e3fb0d.0","@material/animation":"13.0.0-canary.877e3fb0d.0","@material/elevation":"13.0.0-canary.877e3fb0d.0","@material/typography":"13.0.0-canary.877e3fb0d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.877e3fb0d.0_1629992366787_0.13959102150335445","host":"s3://npm-registry-packages"}},"13.0.0-canary.6236f3576.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.6236f3576.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.6236f3576.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3c79e9221ed3a965eeba004d6329a8504c6e05da","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.6236f3576.0.tgz","fileCount":44,"integrity":"sha512-yL4nvYJt5LeMg2FqMmf6jKblFayON8y7wOKGtQgYzx3mIReBUVwf7qOziK0yHgFgm4KMNU5FnHFckPNOaW7tRw==","signatures":[{"sig":"MEQCIEzITebjP+U7FJDikcXkYg3Cnulr89o2Ul/48/vf38IKAiBhVsdgrUqVptJXck6p4nDAU919sh7l+APlMvRz+t+sog==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJ7wnCRA9TVsSAnZWagAAproQAIazhBAoA6Ggd9aY4iBJ\nWspKFr3FfHdBn37U0KVc4i8FOCDvAf9xBLmrF+B7r3iUwd2FEHUh1qUG1NTC\n+LenUcUFZWekqTsf6lKk6g0vxb47yiY26tZGZpHqR6Edalr5zp0+MJxr0H/a\nFN4DlpdIotkbhT0D+ye8aWpxEtUacdMVnfdh0GTWFnpaP5NGffuYCMRv2+0T\nMWz6GHxS4m691UNaQpG6GXVjl+Vsk/vy77FRf18KdOrdDKV6/InWRLszf0jP\nK5zDd2e8AL5cw/t8q8ii0HlCsQ6t4N+pxa5alYdpFH6E1ZVuuFo3Zs8sMooN\nP4xuudZfkoTIIhWBt2vt+MXbNUNr+y19agMPa1DXlTFToOLwrIm3qMkzS2Wq\nJ9uUEUI88pZ8T12cV6ksUo4+s8PIMrYjpazLXR7lp6qEXDHne4PJm43EDN75\neIju9lhejJ1R/PSlwnau1u11U/8UmdrKrhu79rqmR3ymURp//OAG+Gvg5+e7\n8tUAtTES9fYqMgpK03COZ2OoCUauVxn1BQzXQg9eJu8ps5ou+QqMW+x2Et8p\ng3OiixSkgWaW0dxRrfd6nuSgdiQo3G1nFGQ691OnviMNhZxbi55COTsqiMrL\nXK18l2wta6vYgPTFvw8MxZZYiWhXJSg0/NK/v7X1gdXbUY3H/6ekewW6DgZE\ndjfu\r\n=DFms\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"27220fe16ebbbdcba193340cb99388e30976a2d7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.6236f3576.0","@material/base":"13.0.0-canary.6236f3576.0","@material/shape":"13.0.0-canary.6236f3576.0","@material/theme":"13.0.0-canary.6236f3576.0","@material/ripple":"13.0.0-canary.6236f3576.0","@material/animation":"13.0.0-canary.6236f3576.0","@material/elevation":"13.0.0-canary.6236f3576.0","@material/typography":"13.0.0-canary.6236f3576.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.6236f3576.0_1629994023576_0.2070643801308747","host":"s3://npm-registry-packages"}},"13.0.0-canary.1d19158a1.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.1d19158a1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.1d19158a1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7c462daf940a8130b4acf47c1391c1e3d6f14485","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.1d19158a1.0.tgz","fileCount":44,"integrity":"sha512-7kez+U6jRQLrxq8fcB0hc1fEbMA4GZaKHsC2IXNZd4YvuzOjpMPF7mZ8gHSyGaz/AZN7Fj1/Lf+A8+ripK/Y7A==","signatures":[{"sig":"MEUCIQDnzane4NwjmI7GmuJ2zOkXQuaKl7LVcQhtcv1uJfPHrQIgMnYt4BMuZkCwJa/q3sxK03rO2YxwOdn32aRL/ar+YtU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJ8sBCRA9TVsSAnZWagAAar4QAIRszMre7/b57VILKSgv\n10mOGKJzVUR6XXxpyxg03k60UoHJoXJib5x8HazI4CePxyPJY03xlXaxnSYq\nlPdAXHsCs224Ae6HyDdNKKj/NRlaBk2XnZU/nza/79ElJz/XK7JQia05QIjy\ntxw+UvtTYUnPSMNtHrY0hVVRcHtn4OsSCARvJZzpgKxQk27Gn9bUtqEHnPKN\naTKG/dT6yHf6oe2DpmjD8XlQxAgWBUaY/RPL9yj16jMGkvEIlAtWvcASCYu6\nFbovHKWZSY66EvCdcQxxHVv8NWHmFqilE8ssGpGiSMpotg5ct5bQo/KVESYl\nmIAXzRL9xppVb7OaF/Xz6iJbdH9HZ1GUpBsOvIGb9lWh9l4LYu9IA6ictAaw\nBgYDfMMMtiC2zftDP0vge8A6f1D2tI07PAIrLyqvk+72rmV1RGFNmmmHYP4c\nGT+KxHFjaiaW/POfc3Xvp2j6LhxMTRsWecxBZCpcnZl3E9luO4vaAxYsnt4k\nE9KopLngvIj/NEoW6V+QIbng25Y4oIC/x5gW/0CfTk7rJ0u1fqsNs9PCgNLy\ng77RuOslk0KSxr8yLS0JFV93hDLLn1q3+D+/kqAsmipukfDkNUyU1OlSTNDi\nxyAwESPjz0YAbTxZTMEF1R1ZpiRsul3uWu6eon0MSjxkorroc2xNHk6evq5C\n35JN\r\n=Qaf2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"451d11fe02e89db73e3ac79cab01741c3da63ab6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.1d19158a1.0","@material/base":"13.0.0-canary.1d19158a1.0","@material/shape":"13.0.0-canary.1d19158a1.0","@material/theme":"13.0.0-canary.1d19158a1.0","@material/ripple":"13.0.0-canary.1d19158a1.0","@material/animation":"13.0.0-canary.1d19158a1.0","@material/elevation":"13.0.0-canary.1d19158a1.0","@material/typography":"13.0.0-canary.1d19158a1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.1d19158a1.0_1629997825114_0.07507809426692713","host":"s3://npm-registry-packages"}},"13.0.0-canary.6adc9e83f.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.6adc9e83f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.6adc9e83f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"efa0817b4d7d8aa4a47519581bfa9c550646de7c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.6adc9e83f.0.tgz","fileCount":44,"integrity":"sha512-RDyBlVvlNYkLGvkHJVf2lwjf3G0sR+KIBxQ77xV/czLHObmZyNRVhfmKZ0ccZpvQr7/HNY3mXoT4XYzKntKouw==","signatures":[{"sig":"MEQCICRwwGUMwmUgoSiCYsVUfPhJuzPeNY1O9Sn5AZiarSoAAiBuTA0oTYz7FDkLYeyG8UyAv66wFWuZbYHb2LbfMQ9W+w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLV+KCRA9TVsSAnZWagAAQqMP/jhnNeHeOdX43O4bec9w\ndCl8KSMTB8Se2FqzkvLgsVK0ZNVyUYFR6oW2dzMRpTnWmanaSEuxHvbvlbGV\nt3y1GUdzzyyGP0fbf/BwDPe4gGy3JSYnnRYOnljJvgAB5UhMA5ExCWSZNM4r\nYovHhU/SpDovfNQsZMl2miHsuz3mvE0fZdaLxCaPKngVGO7F4/Sf4CII1+9K\n2p4/bJfq7zT8ette/ZVgKt3VtVrhlIeJGdhIBBIyh9zNfuiJM3Wgllrm4UgW\nqWTIwE7A5rhv+wEAsdjaP+iNOQ1uxVSDpvmlHV2srUS6z6z2zhVLeO/dRAo9\ny9h93jffL9Jb1ShsKYWpTDXWItEJEU4MFjDH+UbBhD6p26KIp1lbtOZZDyrd\nExd/urEiIcCzQMrBld+PiLPNvlezwaSAvmEcmPmzJyxSsP8gqYqh/a9yCjK6\nmDXYdG9C5C+5RPg5wGj5YTpAQX5YeVLCKcmHQmr6keTszkFBNJP6nklF9VKF\n59QJpDmg4YRPf2f9hXyHQJpC73zBpNhReulEf3AblohoivQ7DESLeOYx8ZLe\ncIMSnKWaiYY1osZXVhDjBMCOTg0FOIAQ+pXI5K1gaj+I7kpw1r31uUSUtQPq\n84IVrCiL8fyNWJNm66v85F5A7P8HpA2eQFbnxF171I8gQppBoo0yKWUKndHd\nQQVy\r\n=tes0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d3d9f017c96584c46d77544b9f0dcb6e22eeeede","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.6adc9e83f.0","@material/base":"13.0.0-canary.6adc9e83f.0","@material/shape":"13.0.0-canary.6adc9e83f.0","@material/theme":"13.0.0-canary.6adc9e83f.0","@material/ripple":"13.0.0-canary.6adc9e83f.0","@material/animation":"13.0.0-canary.6adc9e83f.0","@material/elevation":"13.0.0-canary.6adc9e83f.0","@material/typography":"13.0.0-canary.6adc9e83f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.6adc9e83f.0_1630363530177_0.0696257925703625","host":"s3://npm-registry-packages"}},"13.0.0-canary.d082790f0.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.d082790f0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.d082790f0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"346c844991507100e974868b64ce7333577b029b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.d082790f0.0.tgz","fileCount":44,"integrity":"sha512-LTQuywcbPS5ItiHcbexSdm8g058WHr1ZFMLBRW0StmY39esylvpjAwI7Ro1cNKMC3DTzS5S2NxDCTSZCp4g1EQ==","signatures":[{"sig":"MEQCIGLPMEQvBeDQ0pzCKlzdLZfERCuuWf1ofBpanMHIDMfTAiAxE60zUWOSPS1+330fjSELyg78uokU0e71FkUEJ20x9g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhL/bOCRA9TVsSAnZWagAAcMkQAJE/8CmvAdiZdIYXC2tN\nzWfxEbA2kYWr+s2e+g4cAaMVANwVrx5PRo22r0rruAFRXELjJvoI86l2i1fW\nTUV1JitKl7bZ0gvZwbV/d43YshXziXRS7XSDHhedQGQ5gujHNcNk29hfFXgo\nLlrsi0JjhlAR05yxLEuMHs0jnPXpudQuE7HS0p7aly/Wyjz82SvveqonuXf3\nAe0VDw1W068Gx7U0EPPgIL+T0QrdjspvkeAPLvAzxztHIl3QIrJ8SpDZUdRR\nUMFjD5xeR3gTri3mczUZWPsaZ1/kWCX2E+4JxtU9uIMvR2V/PfUzdA8jBYCU\n+wOKXYQCxKmeMmDV7JWYgW2QQZLr1jQdTCjT7gvM7Ib4qGT7KYLZ+C/k0HJl\nPZNkMN7qF/1zw/aPn20gBRMBNRnjUE1QElQgKFxCbL/AbzDNLgxlaytvXMG0\n0gRH+7zhMfEvqTT74i1/+V0Egyqdq0E7qLwIYUZu+V1Aaho+V8bfD6HtH+Nw\nS3g0fhcmX4tqZ2UT8k/9c9pu0lvvqq5eIfR2KGpeDGsaVxU3M6Hqjv4yAqds\nrNAs+73cAvfMe+cKKfHOciWdktjxiSStefub0q9HOgMuOM55e4gPFQ9k45Ss\nd3P0uuLrvV+SdCasfdgPgJLu8f9RK8ZBG3UGu8ubP7HF0KTQPBHAzSZ89a6i\nKdqN\r\n=mDFz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"77212852cf39af4379f15c0daae076eb8b562c15","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.d082790f0.0","@material/base":"13.0.0-canary.d082790f0.0","@material/shape":"13.0.0-canary.d082790f0.0","@material/theme":"13.0.0-canary.d082790f0.0","@material/ripple":"13.0.0-canary.d082790f0.0","@material/animation":"13.0.0-canary.d082790f0.0","@material/elevation":"13.0.0-canary.d082790f0.0","@material/typography":"13.0.0-canary.d082790f0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.d082790f0.0_1630533326085_0.40951937562106244","host":"s3://npm-registry-packages"}},"13.0.0-canary.e2c4f0196.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.e2c4f0196.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.e2c4f0196.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"313713ba9518536c9f84336a053caa8830ba1e3e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.e2c4f0196.0.tgz","fileCount":44,"integrity":"sha512-bBRKMm5oM5frLHVL78qcICaDd97Sgd6aOCjdj4AQW5uUb8l1fA/E7poNTVnDCLCZHVmVcEuWHvmxvKMpG548IA==","signatures":[{"sig":"MEQCIBdDEOKtVr/2iDw0Gs+b2ZbI408e5xh5EMhux0wyVTBqAiBWBuWR3Ddk66Uoz6gvCELWx+LSJMQmENFmDB63a22+fw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMDMQCRA9TVsSAnZWagAABj4P+QBnMe9JkjBiSO0XB2mM\ndwQ7W+UEoOx0uOL6vaPz6yTPT1sqje/jGWXMqdqFSO2N9WoUzKkHlQClKZaY\nnW1ENr7beQ8RBRf8znFeacrlwQgfnMOxTJdBILw5a2opuVN/H2QvTDnXu4c+\nTfH5+u3X7KtNomKR8i4HsSkerRjfzCD+Sf+nzM3GIOf5gI3vBRkhBX2cU1AS\n9GUFhEqZwpW07tLY64Ucw4Ow/eBTmPvsVERVcxmmPp4jES+HLLPSEMT2rT+V\nluvUD+fUafceVy2zyWdr/Zr4xzo8EjMrz+r9hXtfGUj8wIPptDzeIUsYhH3k\nPTloW7Tu1F3Os9VlOJPp0LkumxzckGtBwIzXvDhFfh8MWNqkaEdjXE3vUX8l\n3AMJl5L9DYlLqvBVB1queEbUwZ08Ol6u1pVYkJWv2Zkm7c7ym3vu5QEWNg6F\nDtIb2WCF/dt/JllKvtFGmdB0mblmpfov0FcVWBn4lQGA/0EuICPEoQGgo3xs\n59dmKwu692NV7r24iu7fU3hNuflaRUxRdUU4GJflsAnXooD8/cfZa5476nts\ng1uUEpxGuQfiUIXIxohSgwUb0EK/SvdfGtby/ecclsfJgeiewzNnvyvckGTA\ncFR1F7o08OYgAyNPjw94DeyX0/kuGFaRyiRDMf+NzQcXiEw/IuSjDQjB0MRY\nn7+E\r\n=hoXL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2100e21debb7fbebda0966c953fb24e1964c19fa","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.e2c4f0196.0","@material/base":"13.0.0-canary.e2c4f0196.0","@material/shape":"13.0.0-canary.e2c4f0196.0","@material/theme":"13.0.0-canary.e2c4f0196.0","@material/ripple":"13.0.0-canary.e2c4f0196.0","@material/animation":"13.0.0-canary.e2c4f0196.0","@material/elevation":"13.0.0-canary.e2c4f0196.0","@material/typography":"13.0.0-canary.e2c4f0196.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.e2c4f0196.0_1630548752005_0.22216083064109138","host":"s3://npm-registry-packages"}},"13.0.0-canary.611db508e.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.611db508e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.611db508e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b2d88a58d1abbb5a04c2da274e440257b184820d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.611db508e.0.tgz","fileCount":44,"integrity":"sha512-xvZ01th0/bW9LQ2uOVBnSkzax08v6DJQ1sFGCkU1B5de4P81rNsAQQ7u4uv4F827+21OhEMQCylRtEVnun807Q==","signatures":[{"sig":"MEYCIQD6lX2kneCD8sQ89K65MFXyvPP7erQhcivIEas3qXN3bwIhAMVl84Mh+876IaDsSWQ2t1hQs7Z1DDhrCPaEhKbbkOB1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMEIKCRA9TVsSAnZWagAAT2cP+wcMsDFT9LrkGxy1IVvS\nOIqkUr3sK1jROyiPa0QYk++NuqvTdCeAAJ0WMLA6RLfhcm2sPAFTNbhbvNbJ\nf8C8YoDMEaIbLh5VCfCngJ6Fppf+DkuvrloWkKETf+7vjIpk4KwPhWdC7dEW\nmaGJBJLerHAz1CM+c++GEwdxuKlb3Kg2d2cQmgoVamoddwdQjLLj9SKJj9rR\nVIjcoz5yqObHSYX+CQqrgWQSIb+KGJyF9ImSa5imjNjT2NEWOcboGHy/6GmZ\natSpD6p3VjDWi0m01wTsmgONtMIKSCdPpaV0Ao7ZlJMwzdxqDGlKQkCtReml\nOwrUl4uWvrI/WgMYoqqVfquwWswsxnEjxzpJ4ffWNX+SnDBdRTTpaA4OCwWY\nKTdKBTWiyZRQprhYclUYKgKBlxnE1dg3EWQXfpvDgk+I3gHd85Wf+7S1BPC5\nCKxLsFPyPbmqg4x8/HYBJP5PnYE/ZfZrihIh5XEKfdn3sQVovI322FgtADhL\n5CDLKOFem7eWk3331dcdzYd6lDd5pfGibdR6cU53OL7vx4vNL0gc7zfZ9yvo\njjZvLM9oSNxD2d8QGHAUkzbO/TU1KeEMz5LJzLXioTZT4srmsbMk+0/YJ6Kn\nctd05OzojR2o7BC108FGvffFsGyApaNIfFhk250xEJOlavzwJQ7MJKXIgwxb\n+bnE\r\n=8Qwj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5d75be4b0e067fa5d6477869a053c630a67cd643","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.611db508e.0","@material/base":"13.0.0-canary.611db508e.0","@material/shape":"13.0.0-canary.611db508e.0","@material/theme":"13.0.0-canary.611db508e.0","@material/ripple":"13.0.0-canary.611db508e.0","@material/animation":"13.0.0-canary.611db508e.0","@material/elevation":"13.0.0-canary.611db508e.0","@material/typography":"13.0.0-canary.611db508e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.611db508e.0_1630552586716_0.37540886108143967","host":"s3://npm-registry-packages"}},"13.0.0-canary.d4706933f.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.d4706933f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.d4706933f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8fc883c8b21e5b8ce88336f98108684bc47b5109","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.d4706933f.0.tgz","fileCount":44,"integrity":"sha512-a8cvVYIgFZkFllHrxHCHYNzHTFs3DhOwN+QMvxK0oFWeMvahYLNWbq4ZddgbTanannDilsxA/XfVD/gMAc7JdQ==","signatures":[{"sig":"MEYCIQCSXk2CsVTuMWcFFJGyfbEGTtUSQTM5aujvcEV+NbsiAwIhAMOmGY6HQIOXIgZdzbOJ9z45aIUhpKgjTcunHnRSOiDW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMPAQCRA9TVsSAnZWagAAc94P/3LONjSEi/xbTyAbQYvH\n+23yjb1OjJp+nyU7YUDYSwtTgoqBCb/u7T9jOA9pYfa++7XB4ti03AmIyQfQ\n3fiZSxtcUteQKcRCqLlzio0zvF5O2+FNRYKqJUIe4AIAwKre0fA7m4EQIg8N\n3NHxOT5RRaPY++CFX7OcOHKXFfk4KjIepvk3A+UuTDg/DRl6GNCoDzqz51r1\njVbAgDDfGa6LTcQ4O70IJs7TQNh3U9cKWkzwgwy3k62hnlxXTNQbe1jBNNcy\nx78LmfDAVphzNxWpQ8R4QwxANmZMKybVj/K7XC0EWPBFORMTVfGs2pjBmM1l\njMPHqQx884VX3OClodIAgbAuPoS3PKrf8hDQ/JBxcyFj9aHTCSdkYkKvEGzC\nTYcHc8M0IVGP/iUx/ieWFBK2Y7DNqJm8YW6OpkY//TOmwJB8nPaxUbkKL/US\nLg3nsgBFnxDBGaBp6L/fJdqpc8vsbEl9bhcj5yx1hCBn98e2awFqYID1sf6S\npo9kC1L/A59iqoX/PTAKlZsijtRI/58Ki5aIjL22VP8s5CKTNXKMh/j3WjTS\nBIUz8AIIS5tE4f8Irh8OtqmsYb3i2CXGk3Dj21mKEL84F3eqdW64s5d53o2O\njCHo2gdEK7rH0n6mEBnjRWrZ9ypz/xaSi/FBy/QZOTsAKmjjYDOP13OhGZ2P\no+t+\r\n=s7TN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9e7edb1e0621060d55bf2765cadc8f2ffcfa0f30","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.d4706933f.0","@material/base":"13.0.0-canary.d4706933f.0","@material/shape":"13.0.0-canary.d4706933f.0","@material/theme":"13.0.0-canary.d4706933f.0","@material/ripple":"13.0.0-canary.d4706933f.0","@material/animation":"13.0.0-canary.d4706933f.0","@material/elevation":"13.0.0-canary.d4706933f.0","@material/typography":"13.0.0-canary.d4706933f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.d4706933f.0_1630597136238_0.366149380268771","host":"s3://npm-registry-packages"}},"13.0.0-canary.c16fe03ce.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.c16fe03ce.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.c16fe03ce.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"681120c2ddb284432bb40fb5a10e874361937f05","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.c16fe03ce.0.tgz","fileCount":44,"integrity":"sha512-Uv/0t2quDlBeOs8lHLgS0gkEME09PaVSg0LMG8vEprlxhMXEyFPLJ/cFIpnbwusF4rSmihum2onTPypVFxgffg==","signatures":[{"sig":"MEUCIQCaacgthCJO1C+2CGYvX3Ed2UwtD/9b9sDgoffjuKUkRQIgVVbzTK4gZxdLUjgD5LTWY4Qmz3+6X0YTee6/L/lCDWM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMQ3SCRA9TVsSAnZWagAAcw8P/izoXIV01ndEC9TCVUGr\n93HwpmH7X1QRGTup6vR7x6wg1ucTEu2v1uyj0kE0fxzl7D+3CQv7jcB+icJA\nuuyssSfRTtbdQckj+6rYlPoIyj4tV/r4LqMDl0blIxXGAMx7q6TAYfQP1Vwo\nUP0I6NAutwzrEoZwBZrLcuJDm0fup5Iy2iXy3pTvU/7GkL9GjFAaYBCOODlp\nDjt3oWyTf9/wdID3I9Yoh+gjFhVDKk7o6pbcC0/j+X4nxcmZJf/IVRMpllWY\nTWuh9XKfaIJwryOJSV9509OGHeuAqHdJ5SjrQlP47D/3hsmSpdNhytdNiuHU\n7BYmTD2rcUhhc0gYIkzftypB2VNdhp8q3FOLGErb51Mf+k6PIDdyHpp0m8kD\nVS4lIGRsMDkGcSi5ot/6AbKQwrGRefMtqj9M5allomfiQkbEPFvXrwnbnGjF\n58xa2QyiUIi5/QqABI6c1HmbJxGo2BrNv72/yaVxrQ8xuEs7PankH0uqSmjX\nYlh0sXXASYxGPAddQsqyhS1De35ZB2lfANsDhjuqpIS9lR32/4c/Ymj2nBw2\nTZnKcIBpJuzhCCRKHNRiKKUfjUZytQta0gcZk2zh34XEy+DXv2HmPYClIoX/\nQZP7qXtPnRvAzLjHX6U2Y0X+7gLwn3zIqjBhqQIRx5EHiCdIhY/DumRFKjpc\nBHKV\r\n=JnyK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"28281c91b41ff8002401a21d1210e0fc629d55ae","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.c16fe03ce.0","@material/base":"13.0.0-canary.c16fe03ce.0","@material/shape":"13.0.0-canary.c16fe03ce.0","@material/theme":"13.0.0-canary.c16fe03ce.0","@material/ripple":"13.0.0-canary.c16fe03ce.0","@material/animation":"13.0.0-canary.c16fe03ce.0","@material/elevation":"13.0.0-canary.c16fe03ce.0","@material/typography":"13.0.0-canary.c16fe03ce.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.c16fe03ce.0_1630604754260_0.6928256505199011","host":"s3://npm-registry-packages"}},"13.0.0-canary.9203a958a.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.9203a958a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.9203a958a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"61dd8fdb0ea62ac0e7bb0749279a7836ace37679","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.9203a958a.0.tgz","fileCount":44,"integrity":"sha512-i21s1ZhC2zBaWyFixETsQPpLQKxgQTRD++++fiJG6XH6FkoC461zc2X+YesPsgx8/gEze7/OMl/ruO9r8LiKfA==","signatures":[{"sig":"MEQCIEsYzi8N4vR1w1gYCewXaDXWfIW6n1uuHKIRLyjtSR7HAiBUaVUleQbkp8zs7p90g0Wg8DyQ2f2HL3KPgSy0jZLf7A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123927,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMWJ6CRA9TVsSAnZWagAAOwgQAJAZDoMhAJsuJZs8vf3J\nb7s1MvSI9b6HqY33l0Eyb/HNGXqLy2Y8YSyNkHLX274dkr4SZ+yRTHjNACyb\nAUd28R26rRNPo2jzw+fdMruKe5IvPELQ4U7WdIu47/0t5RGguauRIYUqLcJg\nHOyyW+3HDHpoDFdonfdbeTalUbqRFTwzaK+/9UHwFmnOVP37MvfaNZ0UtDIE\nL0rhLqJXqtGrhWiNSp34VaiIXB2zmdvfVXj16MobKmNvo2KAuaUX5Vk3i84Y\niiPs0sD0aKNbH98UG7TpWZb4GUMNPcsrFIrjlO1EvDTmz40Z5CQ6Zb+VI5DL\nDF+BXYwhbZ3OlyMv61O80RtPd0e/NamT2lNgAoGjHve5f/uBXncqAjXGeRpK\n1zP9qEmsuG4ynqW0uuMi1JbChZmuodR2F5SGA6dKcmGuhdrum9mmKeDJAs3n\nyud/ZjM8WrSRkdI2kbKLDnr/XV3qQ1WXLnfI2ZfHrIFZVDIvW8mG5qtkJ6Un\ndlfgAVDVpMdjQFZtFktv/jPerixr0wiFaZH/TOqzC6QxLHNzi1q0RofW9Y29\nzg79/jS/43hTWe+Fy8QRtrVVsuJUTvDg6w9n08IuFISM15U0fIzX7qS0wpVw\nOcSZlSFHhxRyLIcnFuTND9bJKLxrfh5eB/m9N8TT+khKxZW+3oYy78UmzBDr\nhW7j\r\n=bG5F\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2e0f9de34d700b0d1eabd5186c5b5cf8080eaf74","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.9203a958a.0","@material/base":"13.0.0-canary.9203a958a.0","@material/shape":"13.0.0-canary.9203a958a.0","@material/theme":"13.0.0-canary.9203a958a.0","@material/ripple":"13.0.0-canary.9203a958a.0","@material/animation":"13.0.0-canary.9203a958a.0","@material/elevation":"13.0.0-canary.9203a958a.0","@material/typography":"13.0.0-canary.9203a958a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.9203a958a.0_1630626426376_0.7948506926938552","host":"s3://npm-registry-packages"}},"13.0.0-canary.fddd5ae93.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.fddd5ae93.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.fddd5ae93.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7ef227f127fc959530a60d88e22b96f7ba4f75f9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.fddd5ae93.0.tgz","fileCount":44,"integrity":"sha512-8NUiTBN54jKVm77jDbD7Qq/xbyG4FYvGuluVgPup06rx+1oGMeovOxex+CbUz6WH/GjIcH+7nOk2P3yyy53IwA==","signatures":[{"sig":"MEUCIC7IEMHPv5FS0PD8ParzbKvRPc1ckSQylM1FERUWnFosAiEArK/4F2gW2+u4U32fYOHsH1iquhKxmP1c/z6xaNhFKR0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123927,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMc8kCRA9TVsSAnZWagAAt/oP/2NgbfRxjmbRdlBHMwkF\n5NFx/bH6EizOH+lDJ9LUB4htjODPRCPDDtGpkzlwa5/Eyyfu4+8ghtrCGUjd\nJ0hreN1yNQFHrjrT0+75d7IRVCwcrU//mmPofGpbUQiJFda43prr+h/9ESmb\nuhvrj39gdIhw+kMzni5WDfSiwEHOnL/51plGDPpicY3xcSuV15gj9453jk+9\nH4EtviyCLqmlezXLgTkFiF/AsPy6Qq+3QzZI6e+U8Eg0zAqsF9aTQ8pAZ19d\nn8vkSm2R1RJNPiVkHYPn6y0v+//qZp8KCrZT+XE+F4qHTZ9oaVjpxYv/SCox\nYBhHO4frG+NuGrrKgskZ9+ofX/VbJQoKZgl1OXqG/wkWB5FA3mZcYPdpV5kG\nMFy3Pe+MbJMj0WGx8XPsu2YuTBiOb4sUrEVMFME235oaRy8rAlq9GL4YJokY\nxbfCJEgsJ+zcGz9rS1EWznrLlxk11M/w4S5FqIzAotOL8yhjHAUnDNBznKhQ\nNUVwS8ltkByqWz62qUeSZCvIYdZWepOGE1+AKauyYm+bVec6rHkcepRsT2lw\nR74ku8CmkSslQL6AK/1SovTxQkiwHYe84w/qYspQ0cs+Ut3vAPf7Rd5fqJ2z\nyFe1U7yKj7hA35RKfEX5ONKernZQAt2HSBVzI+3PhgwgPA52KNbkRvE+WKUY\nRdFS\r\n=xMP3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b5407901afd7b18f851e64db0350e0c38797ae29","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.fddd5ae93.0","@material/base":"13.0.0-canary.fddd5ae93.0","@material/shape":"13.0.0-canary.fddd5ae93.0","@material/theme":"13.0.0-canary.fddd5ae93.0","@material/ripple":"13.0.0-canary.fddd5ae93.0","@material/animation":"13.0.0-canary.fddd5ae93.0","@material/elevation":"13.0.0-canary.fddd5ae93.0","@material/typography":"13.0.0-canary.fddd5ae93.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.fddd5ae93.0_1630654244554_0.0017080045548640843","host":"s3://npm-registry-packages"}},"13.0.0-canary.117599a8b.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.117599a8b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.117599a8b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"408b99334e65b1445430a992b0aa9fc5f7ebc7f7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.117599a8b.0.tgz","fileCount":44,"integrity":"sha512-TLi+ryUWgsvgnGNdATpzs063QdFe7UmRTHITT7DgstvWMkmAMr9jjy+5kVR31YssDWX9RCOnXp7kLNbr6eZXUg==","signatures":[{"sig":"MEYCIQDcLdHmIosgWyrILxIatr9dIvhwJmGtlX+rvDpC/Mdk7gIhALpSonO5NvXNh462nkbMxu7xx6mzCryl5fQa+d9EtzuB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1124032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMc+DCRA9TVsSAnZWagAAcU4P/RmyfjcjtTPNUQbyWcTF\nJ3IF8VHxbeO8DCXTxU13CkeRjLxyLxtbaNjRXRXJpfYkidg2bKln2vRE54hX\nlyEw0xGJvlJ4PL7JWYVUBLYV8wVIt+QqQkDI+x5HgV24ez4Z4YE50i8Ap+z4\n/CEZUs4O7ewgY2onpQZMxzu4klhaidY5TFC2Qh/t+4VS5gDNjINx59Ozu+yJ\n8XwkChzmqKyMKR2uMISKIVuzsiVll2paZgE2tqQsWXc/Kfq6Oco2isjmbHsS\nF2d55BIVoBhIwFNXq65nnXe3hK0AgGI29n57j3PkJpzKW1bPfvzv3Nb5q1bQ\nZxKvxuI1yThSUe0JGCvxKA8rBTJuMlOsTlAzUEKRoRHPcQ/igHuBcrB0aQbs\nTuysUfEtQ7ar7ukD6+r2jrOw0daCjBzuufsChC4lBZoQlum8FhG7zTQpXCEh\nLQvh8te9qYFq6aq3TLjU+8tihP7/V+8GCsqMDuk+//9jGoZto9qfLzKkWUXZ\nweh4tzelgSFuau3mTba9cRPqcpgxay6PbB604ZFUOQq9llL1nJ5GFeNFwUsA\njmyvqwAPvUGJ8IaNP0Q0EKwGanb70YQx+Eq/QANfduW5jF7Cp+ps2pd7Ose8\nUzkb9oROtUB8wwyp9o6QuuFXxm8xTKVFOw2y1GhG9UhK5w+AYBglxvR9ER6z\nDALi\r\n=tTCf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3dd17eaeb796b36aeda593de120f16c60ff06a0f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.117599a8b.0","@material/base":"13.0.0-canary.117599a8b.0","@material/shape":"13.0.0-canary.117599a8b.0","@material/theme":"13.0.0-canary.117599a8b.0","@material/ripple":"13.0.0-canary.117599a8b.0","@material/animation":"13.0.0-canary.117599a8b.0","@material/elevation":"13.0.0-canary.117599a8b.0","@material/typography":"13.0.0-canary.117599a8b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.117599a8b.0_1630654339448_0.7400312277168299","host":"s3://npm-registry-packages"}},"13.0.0-canary.e4180d07b.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.e4180d07b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.e4180d07b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"20c0a59a6d772f073ea09447cd4ce72a272adcf5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.e4180d07b.0.tgz","fileCount":44,"integrity":"sha512-xVXN9HWWWCPFzmTPuZbKPRmeCF0nCLZsPmhwacE3f0m1PyObicqj2WB0n1/Vd58oibJz3lHTQnY13kuzzIyyVw==","signatures":[{"sig":"MEYCIQC5pMSeCDZscLraSJhheWnmxWk075XCAXQiG7eqt8Z8dQIhANVjHDxqFA5FoSVoTECfvdybzkH0TTuOs5ucsPKWh9E7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1124158,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMc+gCRA9TVsSAnZWagAA7aUP/jui+sZVTfrqTaDv/LC9\nEd8r+eACb8OF5SptT72S2/oYVcF8GyEeVvm+neaOHYKnd5V+WteC3mIPVqcf\nImsRIFjbAlFl4o7k6/FJ0xcN0CpwzgTRyhIiHi6UxBDV3lL3uUh0cIK9b54w\n+F32PRO+nA3DVm9U60HoQk2SLEGZij3DyGWUjJAkTs9vpwDnBBcIGf0cdtj4\n8aql5vlOZDJgb/C/+zIS47P6MaJRK+WmHgb17ALUGlifcvaJ/NYV8BzTS3mv\nq+e75zt5f+llQpHmIau4BfDlhhh2mlmDtjxPTjmntpMjv3+KiZ6wxfw8m70I\nUBuWa8Cb1ezE/XE5+RPZQdVhqWtQ/Xiy47TF0TL+MeWHIlkGH6uTO8eDo56v\nGe0MvHMbIrvB0cGI4O1V0WyOJGCy9cNBLAe7agtdG3mt4WfLscCqE7e1i+Ds\npHEo8jyHsNf6ECLmvZF8uKsVytNe6C5YjoTRmr+aHosYenEQg8jUGfw9hRvJ\ns3OopM7RwIDivU/RlzjPm4PNGJMZX6E4e2B8ypzsm1XWr62ToM7KPKER13Us\n1VYN+ffZAS4JPa+i3Gs4Id6+ypSfVUkLaGDe+bxJFX4A1kJ+9avdZPyJzUye\n78j6w+yzH2w/Y2vxpA7CNXmkzKM/SpQgP+RdH96zSx0yau5LvTExqZgJysW3\nG5vY\r\n=/LQo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3b94d02f75df256cd0543dbdf5062823ee527d4f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.e4180d07b.0","@material/base":"13.0.0-canary.e4180d07b.0","@material/shape":"13.0.0-canary.e4180d07b.0","@material/theme":"13.0.0-canary.e4180d07b.0","@material/ripple":"13.0.0-canary.e4180d07b.0","@material/animation":"13.0.0-canary.e4180d07b.0","@material/elevation":"13.0.0-canary.e4180d07b.0","@material/typography":"13.0.0-canary.e4180d07b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.e4180d07b.0_1630654368570_0.2503121042719798","host":"s3://npm-registry-packages"}},"13.0.0-canary.42d175efc.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.42d175efc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.42d175efc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c505e2d600227de9d6b2c22dc3102d1d313098de","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.42d175efc.0.tgz","fileCount":44,"integrity":"sha512-I/tr8qTT3rxASIFZP9fLV0pHopx4Whu3JFj80DOkF8U0O4pCxn3w4EzNM7zK8ywbEcc0aK4ZEbY3LilyLj/otA==","signatures":[{"sig":"MEYCIQC6fwgV8hrPYzus8e21Rt45cTn94DbMTnHFJ2bBs3GwQwIhAMIRzw7twDnf2+TRHYCtsExy88biRafIiuOPCj8DQEUK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1124214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMkKlCRA9TVsSAnZWagAABroQAJtfhYb5Frhprp61JEcv\ne/99mhZnd2XgPhjCjjgHfEy4m21lX0hNMXDmniaF9PHRbLwYIX2C0Uce4hyE\nv7WYgzq8O6wAv49+NKiOFtXrNPfhUOizwE6k3UgLnZBKpFY/AbqCXQnwXzPM\nMNnf7hoGqQDFo2UsMXgQtLwyW3OWjfzZ/OOFY0kunSrOd0IvTUJ7M3/4dvIw\nX1K/7gyQk2m0s7BX+j0xC/MMcWOYHBdotRj98kX1xerZxM/3WoJ/JNJF5uyn\nqaP5M98X/mBnH6rGOPdOb4IyaEHSGjdLyhb5hQ8hx+PcP3wQU0IhG7lkS9pa\nbq5YAA9tv9nBQ+cR7zws40s7ibf39EVe5FJ6MRzW9+bnME4DT3zQyMtcHL+K\naRtKh/5XKoNh8pV4I71BrT03hGB31F65JZ3ddJKRg0tDD/Bo2+QLcqoczeP6\n7CxZxSfys1be5cnk2GYDmuRGh1lKHs4StuUe9Tc7WrT5N/e37KXNaQeXAqJS\na6turPQfNq8OzBPeEAzg4wDghKcIUmte675BN2TltVH/pHmmFYgTDAPS4HzB\nhf5ZxCaVAkpnEIGPqCOsenbUqUtm2MoPxf/bpzgtU9UcpHxfj7iM18WCrp04\nuciOs06SaD8w4zUGJKm/ib6CGfq7uy1R53/buCVAYycloR5bRI8bO3Joc9q/\n/lgj\r\n=2P01\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"64e749d9e76a60e5559d8b19e4b57da1f44ebf0d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.42d175efc.0","@material/base":"13.0.0-canary.42d175efc.0","@material/shape":"13.0.0-canary.42d175efc.0","@material/theme":"13.0.0-canary.42d175efc.0","@material/ripple":"13.0.0-canary.42d175efc.0","@material/animation":"13.0.0-canary.42d175efc.0","@material/elevation":"13.0.0-canary.42d175efc.0","@material/typography":"13.0.0-canary.42d175efc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.42d175efc.0_1630683813292_0.03516867873510421","host":"s3://npm-registry-packages"}},"13.0.0-canary.72464476c.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.72464476c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.72464476c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4e0b24edd96fba1176b24a3adbce8bc7cfd9276a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.72464476c.0.tgz","fileCount":44,"integrity":"sha512-nyC6NKMLooQuxV0isMpKgfdWmIq98JqDkQS02yqbcmiywtuD+nbKHzmGsZIYWr0yfWVvVTmDwUnIblQxTXVTdQ==","signatures":[{"sig":"MEQCIBFCWPd6cxPl0hNC3a6eFHFmvf8q0JVMQc3BxbLD62BxAiAoC4GhWgwtmMtVQ8qVb4rWnYxQTHYcA7SK+WHmVZB5nQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1124233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhN4agCRA9TVsSAnZWagAAxKUQAIUr9ejvRlx7ob+mjoA0\ns94J7de6QLAXYfpJAU3VsKjdeA2wq6Uuan9xqcCqtX/zwkInd8ZSjTVStHXY\nyHXp2Wup6/gaA8oTgU2WemZkJ8BYtCXULNT7/r0+9XOJCKB0FcoXEm3xSjss\nYz203nqNDyGgr9MrSqqdg20Xw9KQ35KadIPyn/DqgenCvTr5QDu13+MnltcC\nnZU/LNiEJuzpf6/+li4zDZCVRZI5P28AfMRXK63kRMaYd9pgi5BOt/BdAE/B\nllhY8hKBVswEx3sa1zwdAKLkyPJ9W1A0lVPbvfPYn1NILT1LLhkftIAc+jYY\n8Fb+o09zSPtopSG4yk7pjYZPflkKtWkURvIDDsHO9BhJKUFPPf6Fj3cBRN87\nN1SlnJf10+1fpniJ7vI5ITQ2x0gCu7Y/PBvGAHYWbzopHJCv03eZY0hrDfFj\nftuigSKfy2ao2s51ZOvSoBVatTYf9q2FZtFpAIL9x/MlhrnYxc7cH4MA2Qov\nz2tzpxMLkcGhWsKf4EMHCHuCytDDRQhR7DPvHcIyudIzV/MNN0tP7s3UejMM\n4w00xKscyEoarBrMwbSbQ5yF1OvdN2LkeHjzVeTsKxj0xB2D/reCEXr8eMc3\niTT5JY4lEebOVgakDRSvlWCF+BtSF6lZPAbjscKno3pIYTGgPIT6XWWQamt/\nBefe\r\n=V1H0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4c409a18f3ef0a7ee6f9b223a514471c0515b639","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.72464476c.0","@material/base":"13.0.0-canary.72464476c.0","@material/shape":"13.0.0-canary.72464476c.0","@material/theme":"13.0.0-canary.72464476c.0","@material/ripple":"13.0.0-canary.72464476c.0","@material/animation":"13.0.0-canary.72464476c.0","@material/elevation":"13.0.0-canary.72464476c.0","@material/typography":"13.0.0-canary.72464476c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.72464476c.0_1631028896563_0.30925318852400707","host":"s3://npm-registry-packages"}},"13.0.0-canary.37d4db866.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.37d4db866.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.37d4db866.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8eae765bfefc2611c4309692300f70beeb83ab2e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.37d4db866.0.tgz","fileCount":44,"integrity":"sha512-kzop0n5oHadWsg1VsSHEkXtUWlEfl/XYxqk0e8pAsPNIhsnMe0ikl9ee2NwwTgN+pN85x6iFRzl0UBCxKvpy3w==","signatures":[{"sig":"MEUCIG08l8ajj65cwBV80mqYwyIDXf7B+bsb8rTPCRCKrWjlAiEA9BYlwKNtFHlauoUnObmh+Wy96G0imluvm4XLFZzjd/w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1124233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOhtjCRA9TVsSAnZWagAAYfkP/iICX56WvYIQbhW1KFEH\niBeg9RA43mYzbFNPwYLGuvvJE9Y5iZ6g//YPPwMNN+wXFz/5JQXqwppnIV56\nji+m+y7WLopmztknZERmEcVTCFXq8g99WROvwXQY+d4ThBx5Wrr3qFKC2a3d\nN2PLXdhTf3/Jc2Od8x+T7C5SDXsJgfPl/LJaIUxb+HP/sK9xx85RJnyeeQQa\nK+mE36xBBqAsAcSR0/ygC920VQJSscoE7S6QYLXwRpNAtbYLJTryZDGk2o/S\nOc9iQtN20o08YkRkipzt1beAHBM1ooOn5cbXR0sCCBTh7sP7mVKy199W3XsZ\nJU9qi8eGxsQpr3TExeF/mmuE8K7UwiL5ovKlOxhtP0B3N2ZSmmEHEYUmHAJz\nXut9sYEtfujKUBx05Dzo+kqJlQP7pb6CsrWdS+AdVxoiNMF/lLUj68F6wPSX\nMGvWtWoZ1YgNoyPUzJA1deRklry8UgSeaBSs2FCIR0pJgOcqHwAp2DghPAdi\nmY6WGC4N51hq/zPDQo/joQjaahcpKDTe6o2FL5fJJOotFEW/UDbnYmjcaMVJ\nZu0GAsz6Z6UnXTTcJW05RoaI+7lyYZG8JVLrQCF2wk8RlqYxA6qghaa4h6ir\nBeniS+RpfoOcAIQ+m7wLYF6gnVGJMtXXHfx6xiJ+QVw4vSHUC6yp435H9wBC\ndBvD\r\n=M1DQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"25270b452713f831fa1adf302fa3f2c357ba759a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.37d4db866.0","@material/base":"13.0.0-canary.37d4db866.0","@material/shape":"13.0.0-canary.37d4db866.0","@material/theme":"13.0.0-canary.37d4db866.0","@material/ripple":"13.0.0-canary.37d4db866.0","@material/animation":"13.0.0-canary.37d4db866.0","@material/elevation":"13.0.0-canary.37d4db866.0","@material/typography":"13.0.0-canary.37d4db866.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.37d4db866.0_1631198051139_0.3752581195495155","host":"s3://npm-registry-packages"}},"13.0.0-canary.6df682e74.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.6df682e74.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.6df682e74.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"133f4a54187f8a80a073c2e0328bdc2cb9fbed89","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.6df682e74.0.tgz","fileCount":44,"integrity":"sha512-qHdW7e/UToaz2rR1+fyn8FRQIjY53hEaiKVKji4jMDvrCjjg2BQ+KsnhWzNkA9nfNAII+VwvMKNkQ4BIlIrpRQ==","signatures":[{"sig":"MEUCIQDeDgF1XnJvOfV297D+3DUegmZzfcVwQ9cJEny92+saqwIgcTjmqce26M9ONSZNBybWuiIOIZmbdYBFw/luxVXaxh0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1124233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOiu6CRA9TVsSAnZWagAAnrgQAIQaKZZHcQpcHH6JxoWb\n0e7pRRXEaVeivXizGlurgL8C08kkAn/kSa7ijvTogkmzN2AOxM/JAjEE6Sz/\n5mU5tPD/105F6poYMgPOQ9LNxh950/OLGhN7QUbB0IemSnMaZVZiY8dhJ/qx\nYYAvBOLU/R0GojH714dMj2NBZtoRPpHMHI6cQ2cDa7K+trjyy0inga2kmMVp\nKvFS5ScXs3bmrRDa5tFaRilyTOYXyziqC4Qcf2ZSJhd0Zm6ghiNGdZ+vHfQW\n2Z/CamG+4JAZgeaoLpTJNtHTiia/xTRfXsCzIp/tFqKkk81jQInqJ51/D6R8\nQX1LeksZ7MshoTlPfWh05FMWGpIreeHeTVvq+dzu0Wk4L81E5ICI/laJY9Ml\nG3Zc0n3VYIzfmzjJxX3EvAVEOFNSnVPo6xKg7Mj6ZRcbr5g0MR19q4qtKzFg\nvqItQ3A/4lnz1gy9hlvf2Z0AyjRKOQLI4Oge/jfhhQoV2GgZKZGmhLaX+k2P\ntea06ZSvaZ8qcZmSEDea9s5R+7qVOPYOAyb0n0itxbEloMjTWK3s6nk1THFZ\nwWJBMq39uPjn3DtyXVVvydsJHgqAIW+L/ciHC0zEahV26mnKbqaE1w84zzmF\nqyMY7NrelrZ5ttVgvBh7QwmaH9P9IqXHiGtdBSEZGa0UidCmllCsy6VW4GU7\nDVVT\r\n=7bUb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f8640926b088e6e6fd8688e2bf177fbb60e83f2f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.6df682e74.0","@material/base":"13.0.0-canary.6df682e74.0","@material/shape":"13.0.0-canary.6df682e74.0","@material/theme":"13.0.0-canary.6df682e74.0","@material/ripple":"13.0.0-canary.6df682e74.0","@material/animation":"13.0.0-canary.6df682e74.0","@material/elevation":"13.0.0-canary.6df682e74.0","@material/typography":"13.0.0-canary.6df682e74.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.6df682e74.0_1631202234357_0.817677437470828","host":"s3://npm-registry-packages"}},"13.0.0-canary.b49359c35.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.b49359c35.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.b49359c35.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"58f1640553066476b427874703e2a8c446298261","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.b49359c35.0.tgz","fileCount":44,"integrity":"sha512-+oyv3nfUIrX04O/Yebwz3wvC5vFhW6niZLffoRPaSHfmELChDc3ADOJXLq01pGOA04zEchTA/sLEy6u4ZXPWHg==","signatures":[{"sig":"MEUCIDykNERx5HMxShIOEUeYSc76xZPNBfoD9ZZlaGnNo+EaAiEA356lcw5XKfvcwbXPQ3tyDQ/Lf4f+fAX9KTta2vL5PqY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1124233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOkYMCRA9TVsSAnZWagAAI1YQAJGLy4vPIFN8bWnCKTym\nWeOmsz+WxZmLOvwPb4UzGzlo0V69hYFYPkHmmy3W6K3cn+au9ZIvmu/qmXkp\nAiFmstQsyHb288h88yoMMa0iRk6LIoRYPwttxllc8BCzXaF/2RqOBqmfN3NA\n0YGpbcMJPX2KhOUHMu3CL8Ql+DF/fOj9TqzEJ1x6veiY7Y1vsdIp6dzioGQg\nQP9c5f9CRLb/A/oEYaOdB04hZI4zSwZnpoJzRmFQmNaEHmSQXhb7u7/6WVTp\nJ2YARBWMcfNmi5kC5Tu2HaMSlcJKY43R202EJgT8QA8SNuhT1J5TyO3WJRyk\nbY1132JoQ1lBZaPtVMKX2kdrC8p9J0bEUgn9749Dp/MIri1JLMYKUXEKa1Tj\nX7aD2zjTfmlgTJ6y+ZRAXflo+0/uSRfhFMsUwEvwjsa2V9YbRU1CGU9iJ/9E\nROtKNvn8vKrPdx+Wr+neu61tHVox3ZINO6SYEvMop2VE7m7rKrg94BhvWpSb\nC2PlPcDQxTfpyLQ6qh3UWy2EKq9lbtD/8nG5KUCk5dahiyWEiFKHU4Sngi8J\nqJdYkl0Zyly/7KMqsXyAV+Bj8suVul+Btc961ivsYN2vwegIAyP9Kq98UfRd\nH7Q325bcNy6LC44FkMLM5+//UD3mp4UiiU6APbjpz29rEZjYIHLGvaBLSL39\nFbIV\r\n=kH4u\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"817b18da85c93007b9b038927a1ae036f98f686e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.b49359c35.0","@material/base":"13.0.0-canary.b49359c35.0","@material/shape":"13.0.0-canary.b49359c35.0","@material/theme":"13.0.0-canary.b49359c35.0","@material/ripple":"13.0.0-canary.b49359c35.0","@material/animation":"13.0.0-canary.b49359c35.0","@material/elevation":"13.0.0-canary.b49359c35.0","@material/typography":"13.0.0-canary.b49359c35.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.b49359c35.0_1631208972577_0.9747174231752631","host":"s3://npm-registry-packages"}},"13.0.0-canary.470bd34e8.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.470bd34e8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.470bd34e8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2d82cd007b03c8ee5d981b22a999a6fc65b0c712","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.470bd34e8.0.tgz","fileCount":44,"integrity":"sha512-t7ZSqv8RHc3bXLxAYp7ufOG6TGZ8mmEcL+fF1dL+x/PuanSF3rBximVeMp3CpxMvWxm2KohGhogHGNKU+u8DmQ==","signatures":[{"sig":"MEUCIQDUH6sXfFvJEQtccsUgulLnqkgAGa/F206WvPcV9xFIcgIgQcKiEw7rcZ54TAXigjBG94e0VH23NDs3qjsCSZuyqic=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1124233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOkwRCRA9TVsSAnZWagAAORIP/0V+uTjKHRxexjkKRXRi\n7+mVabQbBbE4NrJlktzN1w8kK56L72Mu6MPFxD/m6M8cDo9AAlPeVfXAjnSY\n3PwFRcdQvCzpvTFFLS0RHMDrgI3yd+kyRLTd9NdIsX90WSArafQ659d+9tx8\nKEHyxzXmrOopIq195V91IuQMeJgIoStKddTpEiLBgbHQlkzPyJEmR2mv2yNx\nlj2l/dE5bKxzNxH5Awq5DpPX+5jmJ2da04YYBlISUkFJ4J0qpwjmq93Hujw/\n1afgUe7lDxusi1sEOe2VY4q2yl1bZkNwWBvhXEIBgo5l8Fl9snRAH8++sOS9\nq+stJab1NvS1CVuvNtJlOhNj0odOCFOSDO0b+HHBs3vpQYnC4LZ0oEnkM4Sk\nMJfo/i9Pojhf0YeB7BN5AAFKgNvYWuwqRRacE+G8ucCkMOmx+eDAffsrlEIn\nvNrHB8gMOXr3qjucfnSfz1Vx3t1LcFgrlhZCbDNhob3agISFAgRjRtKUGEXt\nY5skQXqWvZA4Nz6eJQb61MQTOyHGwG1EUYvwlHSJVzCQDgIIFgf8AwfszqQD\nQ2S2j65VvpPWOK6+Cpp+ZuO5HKEdDBAh54H6wofQHGBzC+oYW7q4qAa6+gC+\njS1d2t2QxOMiZ79vbR6KC0u8KKaNLFBPxSi7enUNADK3yPckmV4FHcVjQ7Kh\n6cAg\r\n=gjZu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f249b00e3cc067fbfdf722d71dd85392d031ca0c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.470bd34e8.0","@material/base":"13.0.0-canary.470bd34e8.0","@material/shape":"13.0.0-canary.470bd34e8.0","@material/theme":"13.0.0-canary.470bd34e8.0","@material/ripple":"13.0.0-canary.470bd34e8.0","@material/animation":"13.0.0-canary.470bd34e8.0","@material/elevation":"13.0.0-canary.470bd34e8.0","@material/typography":"13.0.0-canary.470bd34e8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.470bd34e8.0_1631210513287_0.4691666646368611","host":"s3://npm-registry-packages"}},"13.0.0-canary.d48a01771.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.d48a01771.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.d48a01771.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4f95db65516110918862935646c525d9cbe2d668","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.d48a01771.0.tgz","fileCount":44,"integrity":"sha512-GvbXC1X+exi7G6sTw14I6FfR+zwsyFQ4AGSynoWsSbX5vtRncmWui8FrpDWq/bfR843T+3LL3A2J5YpG61RyLw==","signatures":[{"sig":"MEUCIA+pLmLcfDBDoI18/d1LELJA3AZXINbyw6CIkqgObPWlAiEAoTXwnM9A8YnQ3B16YbXC/+IpQe8d3IyshMXHJ2s/zl0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1124233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOk44CRA9TVsSAnZWagAAfIcP/Rua3akaYRaY8Pntl/tw\nyHf3XWc6QRpesGAqW2LUcSGosPFf0ssnwBGJnlCSMQAqZyfPTNMFw72t+ei4\n5gipUV3vXvxzTbGT0KkQTrE5ENZq4lZNSxVQq2vCE4Jc8jJ5nq4jM/Lq+OpK\nLAjOgcLKJF/+NoSR51wVO+xnZn3P2dXF4U0QoeOM1uSMIgWojgj+gjFD2ANm\nDtBXopuj87quTEXZK0Afv1+TPAA9J1zpJKMNWvVQHvlV8+OrWA0lD6RVg6nm\n+PakIdDbVeGUDp+8DJRlGnEp8wv6a8u8wjelo+2iExstJw9eFBqN1uU0mUdA\ntSBmUaTaYuA9etPdWhqTqoVxgQJCE1POag233zTSY5J0YhSnMapdtoaLSZPG\n3xoaRYQi4SR081wGF6xHv3U9dFqQqQ0YtmP5jbOVtw2YEfND61UNK3jY1AA3\nzazoPWQFwZLvBPa+4KTTTZSetpkxJijqX8EyEiAYzrLH1OICipTFgJh2NmAg\n4T8Ne4JY8zRrlA3bunXKSUQCgHU0bzcY65Its2KokssytwfjhXJ4l/LVZbm+\nq0OI6MZFTdUcqqsvjIx9QG4K1If+k8dZINlZGVTgEbtV5qnVgZCiCkysWXtg\nC9avhRJ9J8T30Nnr4EZZ5Du/CcEJ/Rzy0dcmAupjlOvehzxx1VCr35yBqEi+\nFEIR\r\n=Lp22\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6796441e86b583e99919b207640bd02efef6fdeb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.d48a01771.0","@material/base":"13.0.0-canary.d48a01771.0","@material/shape":"13.0.0-canary.d48a01771.0","@material/theme":"13.0.0-canary.d48a01771.0","@material/ripple":"13.0.0-canary.d48a01771.0","@material/animation":"13.0.0-canary.d48a01771.0","@material/elevation":"13.0.0-canary.d48a01771.0","@material/typography":"13.0.0-canary.d48a01771.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.d48a01771.0_1631211063816_0.7419847484228106","host":"s3://npm-registry-packages"}},"13.0.0-canary.13db34b34.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.13db34b34.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.13db34b34.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"deb0f865ebeca1649904558abd6504ffef603af4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.13db34b34.0.tgz","fileCount":44,"integrity":"sha512-rGZUHI60CpyY2OYKCEcaL513/WtI/U2S7jowWVbDo8Yx2OzHAc0qd/3pHFkBZw+VyFzEkx7VJV91vQRzi9IxJg==","signatures":[{"sig":"MEUCIQD3FMC1Vrc4gmqbH3wzq/BIPjZnN1HubUsNic1Phs6bnQIgEsiIQiaRoSSobPJ/4PPHeLIhGIENbrrg4HT0Hs/V0k4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1124233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOlG9CRA9TVsSAnZWagAAf2UP/1T7Zb02ys06jB/OKprM\nZI6sGqC3of5ScU6jaIe4M93TRiYvwhMpr57jJb3TerzvC/c6cPBV63DU6egJ\n9YOLe6f9JYw96lwhUhK/+TrmrY4zdPPQbn7JjvtWoqyM3VxPvv8VH7IqxkXF\nFtyQaIF0K3H3ttEJhEMo6xGIJ681Cpa9uKUsygEqT61AQRqtp2+fTOkBM9Mc\nnfiemGIPQqHOlag9fG8q8ymJS5onGU6Ckrj6DZvWrzJbAb42df/6d7gdhJPH\nJNgsKbSRYHhykpPAux7btLs+QJ8Y9xy5KFtGT6H4Ar1Q9bOnyQ6t9gKh+nYn\nq1sRmugnqCYI7W6vHTbur3QKQIbs27pJpfAi+N6gfTyesmOMlXy4jz31w7Cd\nywdyT/k0CkooouA0GLdQwtRb6Hq9j+KgFsBuiUmYaOZnCP7O17x6GAXr/Iqo\nOJCUvY3hGobD0kz7ACR4N7flOQat9LBcaUBZi9xSqcawDKBeakReVsiJAWkA\nCnqBaeYiCB/z/B3Xbmch0rVmE4mv1sUbiwFJ1gZKFKiBJ9goPo8ZC+9e6DvR\nlNwR5yoaI8hrF9m9suS5ULBz8mLg9iVZMUx2NERMC2Bldf0Gr49xt812a0xn\n+UriE4LQqEdz2JhY6AINfFbx/V2vWoZgKBidKwujFj3QdCxtjYFP+5nQaTVJ\nk7Ed\r\n=1Gx+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7883b32c9c6a3280e801925b874df667e1055809","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.13db34b34.0","@material/base":"13.0.0-canary.13db34b34.0","@material/shape":"13.0.0-canary.13db34b34.0","@material/theme":"13.0.0-canary.13db34b34.0","@material/ripple":"13.0.0-canary.13db34b34.0","@material/animation":"13.0.0-canary.13db34b34.0","@material/elevation":"13.0.0-canary.13db34b34.0","@material/typography":"13.0.0-canary.13db34b34.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.13db34b34.0_1631211965544_0.2888661146451763","host":"s3://npm-registry-packages"}},"13.0.0-canary.864798678.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.864798678.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.864798678.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"428ced304ed1938fb9c77235da730b0485817866","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.864798678.0.tgz","fileCount":44,"integrity":"sha512-yH0O8tJXBXnKkB8NMNYzxKsaPUO7zFIc3Y1SeFjItCS5ma4fT09d0srRyKcLckj56jOYq7gq9uloVzYmdNV67w==","signatures":[{"sig":"MEUCIDy3vVGqg32EOaSz8iPa6gM9vqlJ2HDtni6gzD+Xc68zAiEAoIW8YbZyyTLmN+ROsmHLCPRtsYeReN3zUwvGnSRMfzQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1124233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOlRrCRA9TVsSAnZWagAALGsP/R+ud5ly4Y6ZlW/KoPwA\nXGpfo702YHsaURpuyLQkIFoQCl5MINU8QLWiCQ18buWv87pMpwoGEbfCdGEW\nfIqCaitno1pXlPNM1wYAXXH0A7bAV4dfqr8+KXBEu0VEOZkUY+LY7nt99rb/\n3wjQ0A3DFjIdfeYUeWjBAamjTlwwh2LTCRyqnoXydU8gcgP1QHSuPNqZTOkq\nqy11sY1GPcIq/V43emzYX/CunmRMViEzwB/9ddX979ctt9YNw0912RMFIYvV\nw+ol40xqamW/LiTMz7dYWLz9jD/vEaOz1unGBhqQRQHDzs5QsIuF4DKnJeM9\nkHF54/ey7KWylQgxIUjl+5G/aToRAYvS+IypqC0W+kLHB4cnzcAmQx5DovQz\njdgm879I7KtZQGxkitWfDjrDkoZVGYloGsLMKUWnJjtFdyh/2Q/XF00vRyVH\n3FEdc7q8u93ChbWTGXKuqOOcSDETHTmTTQT8rmlgoMLjh0cow1EOyNyuiVHg\ndXOdXDCb5eS8nX7EaZ+vscbv0jp7nLx4cVLv0zIbkqbP0mLTnQGBij9RTBme\nIo0gTh00M0kT2XvyDyBZXUQGmj9ZJs7oTiERSxioxi6tl2UTAJGilYUOREAl\nZRjZwwKZJFMIMY4YvIZlQ58d4C+sfUc3SBJT9bHiR91Bs3f80LEo1XO8GQq4\nakqS\r\n=g3bx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"08d2ae683a56b5e86f7a54eaf5a2090fd4288df1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.864798678.0","@material/base":"13.0.0-canary.864798678.0","@material/shape":"13.0.0-canary.864798678.0","@material/theme":"13.0.0-canary.864798678.0","@material/ripple":"13.0.0-canary.864798678.0","@material/animation":"13.0.0-canary.864798678.0","@material/elevation":"13.0.0-canary.864798678.0","@material/typography":"13.0.0-canary.864798678.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.864798678.0_1631212651353_0.770484603513097","host":"s3://npm-registry-packages"}},"13.0.0-canary.d04bda3fb.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.d04bda3fb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.d04bda3fb.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a281054dc4b4bbdac17845f5fc5c3ddbb1291864","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.d04bda3fb.0.tgz","fileCount":44,"integrity":"sha512-2b8tkBHdAen0E9io2cqTN0CxhuCpy5zFGxIspGbEeWW5j0O7eVvdkGzxpcaf4dWzzOcrFyPTeXH0ymQp90tGsA==","signatures":[{"sig":"MEQCIECdvXAdEVk891mr8bqiCGk4gGgm/4Bu0t8DlmfEpL1BAiBLNHHI7ei6xRZx1otEvDmDTVPVaZJUE4upPmGeLhfhJA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1124233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhO3gtCRA9TVsSAnZWagAAn0QP/3cCQ8qO3iYGLmWeUDMk\nvczeaqdqU3x4unF9emo6+BHMnJnQF7WxunpZkYkVE9qdYBPQgu+pMvR/WMkR\nZ654wX/uyOADcN/i7FGqEawU6uTc1aI1w6Zc2B2SnI55x67oWvRmGw51AH3/\nPprE/Kktng1nCxG7zdqKAausmxu93rOb0p5fYCSoVp77rPmJVv35L4p6ziSy\npUVBjo2xye7FgO3PmTARrTGxypihsoIUwt+LjTkFkFyNpks4v9wVv0H2v/xJ\nqow0dBPpU2cMqDr2RCySrOW2ZjebI9++JeACw5y4LJv4VNbmEGEUM5Fd4l5K\ndrlvGpOA0aKKQPU2zcSnVhDBUf+blRZaST+2hU7vv2hcK6wLolHilLGEVtC8\nHCgEXp2YCCtsHo5D0BQ6lf6t9w6reYWQNs0xvUdr0ambioy6RNqGEqTZOgo6\nQ7yjysZzBFpGSaokU2BOLmOHH0qSY62DP9TAnZC3yeph2+rDneOSaxxv488g\n3pFi88qbd9EsGa4o4pwenqn649Ba9hOks9ox4sPqyIzTTpLHaoJEK7jiJlc+\nzkeAqka+w8bn22MEhnPPxew6ORhKeP4yneNXPDDsA/my3GM3hjuGwY6ZaNxc\nPqqLrLPup36uVJAp+sIM4s5VN6Ek5pvPNsntowJ+9N0aDXk+jq1ScchbbY6D\n57vl\r\n=dIAA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7dcba6a47b77f0011a1f0e22b3540e2a70b285cd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.d04bda3fb.0","@material/base":"13.0.0-canary.d04bda3fb.0","@material/shape":"13.0.0-canary.d04bda3fb.0","@material/theme":"13.0.0-canary.d04bda3fb.0","@material/ripple":"13.0.0-canary.d04bda3fb.0","@material/animation":"13.0.0-canary.d04bda3fb.0","@material/elevation":"13.0.0-canary.d04bda3fb.0","@material/typography":"13.0.0-canary.d04bda3fb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.d04bda3fb.0_1631287341766_0.34939325728384296","host":"s3://npm-registry-packages"}},"13.0.0-canary.5533f73d3.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.5533f73d3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.5533f73d3.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f364ddf6f7a4f15b62f5291a39e8176cdc3eb4ba","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.5533f73d3.0.tgz","fileCount":44,"integrity":"sha512-PAqE9hcAI6L9yNjrNNiiy6kf3uf/FtZb74O/iMZr8HZWD49UkEaFxLC/cijhJplHIN8c3QTwgn/07266jwQ2ww==","signatures":[{"sig":"MEUCIQDuPDcsp7a/FCKWsdhNCPtQMLRiZYJ7SbE5KLOjV2V7ugIgG6uO/VJ9CRvATM4m1I0o9cbRqXh3vdF9Y7o+70cNt60=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1126385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhP9j0CRA9TVsSAnZWagAABqMP/jcH4MZYxlKVQSjfU8yF\nVfyjksSRbfNWfsQvoUr/xcFtVGyp3w8lMyIhYRcdP3JaZRFsbX7syv8rvWN2\n43kJwcMD4ft8m6Q2XulPudNLqQMCa+nnt0i3fStTFYLB9HwDhQw+yaGmNz1K\nWYARZHlEenlFbUdup1fvV/NHo1sjoFoBmrKwO/BNpYFehiW+/taaNwWpt3hW\nZMwLcmn6zoQzmn7pRZ0EqBEsRt3b621YO0HpXdUj8Mp8RvarN0QbwHmZ8QIh\ntWBsFJ8Aho64qFraJ+y/6DNIzAE9bk5tgthhkepxBMvNAjr5uWV/whA/bjSY\nwm/p5X2f9NfYt5KJB2urswN9Snvbt7PCiO+4k35Ipr0U+7tsrpAhB70I7Lj1\nReGUhNmoW1nHJmTirAGyIrMNX9x3i9WuN+1v127ACpolc3KUA0wbVesIDqnW\nEq/oOgkfIT6HvIlxYl31ZCViM+7zXdX06lFTTHAvq65FJh0a5uNNrGpW1Iwq\ntZGm1xGa3lHeihqMztMY3hsDTPok/y73GOa6lpA2Lau3zikUsTk0c1c9MQuV\nOOXacpnIhgerL05W+Ikg7D3/GkeyvVUyO8TY2hV0oS8KMehrMx2iJcTeR6i/\nODuScO8Vp7bhML5eFLkHBjRqyTloxNthCcjsu3OZSCkMrVIQ03V82WEmJ5Xq\ngR/g\r\n=i1mx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"20bf1d151f241eb77dfa3233eb61f4e35d5b2838","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.5533f73d3.0","@material/base":"13.0.0-canary.5533f73d3.0","@material/shape":"13.0.0-canary.5533f73d3.0","@material/theme":"13.0.0-canary.5533f73d3.0","@material/ripple":"13.0.0-canary.5533f73d3.0","@material/animation":"13.0.0-canary.5533f73d3.0","@material/elevation":"13.0.0-canary.5533f73d3.0","@material/typography":"13.0.0-canary.5533f73d3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.5533f73d3.0_1631574260355_0.2222818270068294","host":"s3://npm-registry-packages"}},"13.0.0-canary.08398f880.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.08398f880.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.08398f880.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"30eeb3389246d918988a28294166d4602c41b649","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.08398f880.0.tgz","fileCount":44,"integrity":"sha512-ojLaljW3ANpkayDGA8i9EoeTr229e0lq3GQ6d26V+4k1Fg13ib83jg/bwIbvzMVKVMb44cCs2FquhyyXsKmBKQ==","signatures":[{"sig":"MEUCIQCp/0kZNrafEws2JdMcrYGxbKVZ9tUEP+uYKbmy1G/pGAIgZwDzDitIOZpdjH6fFTPQqoHHJSMKL0ODwLf1OSebtkQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1126385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhP+AkCRA9TVsSAnZWagAADcYP/iuqpyRAyWW1zmRDsrjA\npeXqZMvpWd48hMxPR3t4ORF+rKULIDpXOfyZx6CXlD9nZJg+SVHeBvcth7jI\n8dXXlZLiDssIY6Wmp2Om70ZODeloJE/hRm1jGn4wvT7nDBn0AhphB+ZXYpfl\n12C+vaL/L6bvcD4JWCmtrtS9/Nq6n5W19Zt/PlZV5Nc4TAwu3iHm4jLlfZmC\nSAmaaRobU8CK6Y+s3nO1QlCompO0PysvXHIiivBxaf39Yl+bK8YnI//SEEN1\nX7qauSrp5/niQ9JLQCgQTg2t5gKo6Q+KFAyX9FQhDOXXbs24jtlySlflPSJm\npqghh+QrnFJ0lLhwCx6xGS4jW9cPNeKf4J/RMqHwW+0CzNpf699GV3IUPRcf\nvhkLdVrgvEG1VVAPlWdZi8iyRChaZvAq0ut4NJKvr6FaIWDPl9b+R8r5b2/C\n+X7AndqFE2cCMYhVIDJ8FzMYffq5uHpPTIvHVgo0CY+CtxjojUQhg9zzjz0V\nrqtMP9XQzTaO3gjcoCz3oBVoHxngAYW2Xb7yMFnMthecchf4emk06rlwCgqx\npGr+josWkoLI38ODzEuuaX4XrWw8Hqb/WIc7EYCHkVrEZJP7Ev9hO2ty9QYn\nqdq7XYJOq02QqdjiBI3wSS9I0chvVeDjN5A18caXlUFBZcGkz1TdhGeX7u2G\n0ay7\r\n=inUk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1a993a7d6bd4a018cc4ae230bf1cc3fecfc16d1b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.08398f880.0","@material/base":"13.0.0-canary.08398f880.0","@material/shape":"13.0.0-canary.08398f880.0","@material/theme":"13.0.0-canary.08398f880.0","@material/ripple":"13.0.0-canary.08398f880.0","@material/animation":"13.0.0-canary.08398f880.0","@material/elevation":"13.0.0-canary.08398f880.0","@material/typography":"13.0.0-canary.08398f880.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.08398f880.0_1631576100342_0.3006287804940726","host":"s3://npm-registry-packages"}},"13.0.0-canary.818f4ee93.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.818f4ee93.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.818f4ee93.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"494ed33668d4126fdbbe49cab1e8e1bc86abd4a4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.818f4ee93.0.tgz","fileCount":44,"integrity":"sha512-EJPRtCMYy+r/vTzGsN79gPkICDwPUwYPVumd/lZGdYdX6zpEITUbT+iXsXiQTEd9TmFGsSyLAwkWKm2AFyOfrQ==","signatures":[{"sig":"MEUCIQDosYL1WI4JdISoqaCtYBOKothdawjCNzunzCJhEIAo0QIgcbB4a44qmOC759yMJG95A5STnrwS6Rr4598K4AH8LTs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1126385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQjKECRA9TVsSAnZWagAAlgMP/2q5/GzP2cvZHTz7nJL8\nfANE42YKRO4jutsVTU3/MTVszUvYU9kSgcmK8vKTcxgbXSM5x8I16qRkUCPK\nu/1xUErzSqEHtg1JMGe7T+G0CR529RrN11cCxSzTnjinDP0TkPKJy6Ue3pmO\nQZ1+h7Eh7a9F03+6gaAqru/WZkgldyO3hmI35GNw8GP+4tW3JivpqhQzeL2F\n7CdK4H7bstWWu3lcgFXZiQHkz7TZcvqShsOr+2k4cvUotklDCQhzwcMqD+q2\nUfMjzgp6du0AJ7NMcWcXw8Z2ymJcFvH1lYIUNrDXD+Q+Evm4/hRr6eKHzaZ9\nnC7k+Qhf+sU5o75VP4f/v/EjJMe2/TrkBssj+++d0gHa4wLS+p9OIDRRnyPW\nhtjgqX4OBBdHWBB7mxnj1lDNdpNgQBa4NWsT5r9eXWjML+fF3FNNYUQwy6Rt\nAAbpn9tCMvhNLazpp6T4SoOz0231GNItOX4V7KoEDmJQka/tlg/BkZ2Q3/bg\nbU7tW2Ggj0Xp/zh+Poyl8BCGFa8m2lIMGiAkTLANwc80YqD+C/BZsh8bktha\n2o7+X+z1usFYNB9M5C8kz/8ti5IS6VrvPZPKRHYjuCUibb4IB+H7gJqwFUI3\nZdFwOJaCECkGn9evOettzErFmYbIDoF9V/Fn50+0PghYOlWXkyMfdFANSJfU\nE8fB\r\n=Zh4H\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1d88a726d331a878c9a8721e3237e8cf6df49f1a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.818f4ee93.0","@material/base":"13.0.0-canary.818f4ee93.0","@material/shape":"13.0.0-canary.818f4ee93.0","@material/theme":"13.0.0-canary.818f4ee93.0","@material/ripple":"13.0.0-canary.818f4ee93.0","@material/animation":"13.0.0-canary.818f4ee93.0","@material/elevation":"13.0.0-canary.818f4ee93.0","@material/typography":"13.0.0-canary.818f4ee93.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.818f4ee93.0_1631728260526_0.40188229724707414","host":"s3://npm-registry-packages"}},"13.0.0-canary.8355e14dc.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.8355e14dc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.8355e14dc.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a3dfe9233b518530e898d18c2c09629f310cfcfb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.8355e14dc.0.tgz","fileCount":44,"integrity":"sha512-hftD8ERqkWoo9XgQL5YEK/XaeVQbnm+xBgP8CZwQ+d/T0MJzc70qI07ts4Nb89jUzuhl0S+wORGZbVfst0pI3Q==","signatures":[{"sig":"MEYCIQDQ4gILZOGKfa5jn8tp5veibteCQTkQ6FTvGzEC2DDIlQIhAMXLMPaBEMLXKNr40gigpp/NsEOwbfd1PmbENsuR+aiT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1126385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQkW8CRA9TVsSAnZWagAAdPsP/AyGrE6iayzthnM94dJ2\nBx1za6d/ZH/0OvnGCfJWGOmGzvu+/eHAc1oouvkfPhIO+YYqdTQiP0DdXnMK\nNn3d2MmlD1fI+qk9Moa6R9cC4mdSuCNootd+s4vbZUSLG4/37+ndWtux9DHI\n8qSfI7gSNBXZ2DNuYHasP1wxqQo6qzSuZSxsqwbfLk9xLv7ibl+gSzy5Toks\nDQHnRR3sdYptGIqLHmNnGg4kbA8NhW8wnXy/5jai09JvjysQ59Hx69TOzYbI\n5ypIgKcAJyubQnifwX+htRgF6+rGyb9ssz3hDRxPps41pMceO114qLybx8NT\nWDD1MxNTi0fV0WIyB25IyQAeiXelZNmUaSnGc4aD0Xv3XlNNSHNmiMO35Hn/\n2aEhXqSF4UBqHvfj+ZG1141DhX8gloO33jyStek/cgvnZiCgbi7WrjYNcrNJ\nyyQ9XyZNSpWOJ/GrP5m4GQdoAdY4VFXfLl/Qm4oockOixDxBBkRHyTJS4zFw\n8EJo0jUom7CI3C8YXpX9qtr6jA+5kq2JvRJ+Amj8H1HIHxHWfTKwJq3j9EOc\nzcs/RFY2RC7THpaofjOrAzdOSLm+3FJ5+cfi/mu3+9BLihttVzMi+N7tsfNm\nept5YAaND65qgiL2EdWcEx+LNm5MGodYtOU9moR8YE6JAaNADtQlUK7h6Elm\nKUO2\r\n=vmx7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"065f64e5cbd54d86f092d8d1406bbd0852b2a6a7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.8355e14dc.0","@material/base":"13.0.0-canary.8355e14dc.0","@material/shape":"13.0.0-canary.8355e14dc.0","@material/theme":"13.0.0-canary.8355e14dc.0","@material/ripple":"13.0.0-canary.8355e14dc.0","@material/animation":"13.0.0-canary.8355e14dc.0","@material/elevation":"13.0.0-canary.8355e14dc.0","@material/typography":"13.0.0-canary.8355e14dc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.8355e14dc.0_1631733179930_0.6839984635392691","host":"s3://npm-registry-packages"}},"13.0.0-canary.d4e16a6c4.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.d4e16a6c4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.d4e16a6c4.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"83faed4a172b6b1d377fb41b5cefd0fe9c5244a1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.d4e16a6c4.0.tgz","fileCount":44,"integrity":"sha512-iZM3NQoT52v9/yQ9Lfch9DsJ6+50TcTA3GxXzvx59uHhYj9dEkntrdRMwYLWyoVfQOHFYTF1u4aJnbZqcwIRDg==","signatures":[{"sig":"MEYCIQD5SWtc5vIezlbNkh2YqricoCWgHRx4YBO0YlSb5ejy+AIhAI0WN3j8MNuZxi0zwQ+r97/18mKSNWkflHYh1UMVJfIZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128581,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQmzQCRA9TVsSAnZWagAAS5MP/0ZtTGck/MnZYAhps5aW\nCKqnWQ3KkGmWU/cp3AgQn7fsLRFT2P23mbh57S1Zj0jhp0ftOl4qIYc+RuTR\nAKgvsz2DFkCfKw+Hr5J4XxcRgUMHmpDkETAjW7D9NHezMf9V7lS8QFcLDnBO\nWlsVGOMuDfGyWTt9p14TaNXI4d15IH6vjb5x8Spg6ve4UmtBFJSvc4eJhrtT\nskDoHJHjJdaNCharjD0hCB7VhMSnDrHy40rl0SXSifYVxrodj1k1EusmiwZn\njbR9pxjPUPCMHHNuVuLs6XGVSg/gsvYmF+eeaQ8JrrtRAW8+DhBMBikB/HjS\na6fr3sKVy9prZGTeyQZkMe6GcntAzk8tb3KCNLCOphtZS022B1YJgyeFVjqr\nA/oDJXX8wXl2n0w84VovhAI2U4Y8sleq7jm0XRamSNH9f+Ow78w6udEgb5D9\nYZQqRxFLNZrLDnwKqLPSDhtKrWnh3cnaeV3NMPaFWXyWQNLP2H//xGfioJHy\nUn2gM7y2HYpJgyYl/fc4IkDkfO0BzLuNvt1X7F9JRxqX4MfbNZsUtCB8kWvr\nD2AUXPCVZADK1rLrgx47eKZmvXFbgxsPRiAMjSkl61K52MYNhZkXO+Q2sK/m\nk4OaEJ50A3+EK/nVJ6IseGeaEdf98/6YhgL2ZQlVfHfzJjuCW96oUtjjbZCA\n2l1e\r\n=9Bs6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2c2d0c3f7c18e3a2b581679df71df5e7a0e2fcb3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.d4e16a6c4.0","@material/base":"13.0.0-canary.d4e16a6c4.0","@material/shape":"13.0.0-canary.d4e16a6c4.0","@material/theme":"13.0.0-canary.d4e16a6c4.0","@material/ripple":"13.0.0-canary.d4e16a6c4.0","@material/animation":"13.0.0-canary.d4e16a6c4.0","@material/elevation":"13.0.0-canary.d4e16a6c4.0","@material/typography":"13.0.0-canary.d4e16a6c4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.d4e16a6c4.0_1631743183783_0.6018258818200264","host":"s3://npm-registry-packages"}},"13.0.0-canary.65125b3a6.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.65125b3a6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.65125b3a6.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bb38701db632da635ac64aae5850412498da6062","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.65125b3a6.0.tgz","fileCount":44,"integrity":"sha512-ilFQfyj0xYS353k5JmtotVLUKI3XyTMWHcxAWwiXaJzUVhBaUiBwAYznih/ZSxeGfzibwdk2MRNgTVXPbGtyZw==","signatures":[{"sig":"MEUCIQDmTT1uDufD85hD+qTHDYU7AK7k4vKx2IIpsU/RXQmUjAIgBj5BYzJQCKoyZdw7mybilRX7eVGoPeiWF/pLdUUYl9g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128581,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQ7SLCRA9TVsSAnZWagAAstAQAIfY238EM4/GqMjcJkbg\nzY45LXgqYOsuWW81j/jRD9jpBhexMEQuGn1Pvp3pHLAbtTCAoBezYDCyNyV2\nyp39060Tbd3XZywrQyVpJ0xKYlDl/hwGpnmMUuL+dLm5rimWbN3prPqJKIqn\nF/v3lQrGbZMikJhyx1qeoA7OC8ATw5eJ7Fcla7/cUL7e/l0+AfbvQJCx6XUY\n4IJC8WPqk6Sna/w/sFW1DjEHjiBMdwfwQTMmrwXBYmQTr/T0x4bggiZ0kjlO\nUeDUKv2qK/5lz+LBtpTWagsg5dT59Tc5oAhs9zg8hJ/7qiYLplzaj6nL9L6g\nRoNaWYx6qJxMs5SO1xPN/J1iW/hTD8dTcWfdK/75J5XbwD2fxJkgHOfR33md\nsipzoMHtBy/rywZ2vmS8a435i/T2mos8REiVrBlv7B2BrplPs4WhWxgDMHM3\nb+jw4pmuXeFNbj4iHgdJuIKcwahEN3zw6NFPtUY2Mzbi8WcLXfM88I81Y/20\nYYA7zCAViYXjmtEMKe9Kjk5UlL0CYZxPIGiy4bRHDbhz+F8h7r/1Me2b06m3\nglvugnyM1aevhMwXsaboU5ZlzM3aZX01gBqOdoCWzD/8efqoK+bBOuUFH4+X\n5WPcfZtyidNr15dZFRBdASp1s3oxYqep1nQLfbETSfIcxjSwSh/CGHNAs7gl\n3XcZ\r\n=Q1ea\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7f141fcd82e6061ac62fb457dad40c0ad70e52d5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v10.24.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.65125b3a6.0","@material/base":"13.0.0-canary.65125b3a6.0","@material/shape":"13.0.0-canary.65125b3a6.0","@material/theme":"13.0.0-canary.65125b3a6.0","@material/ripple":"13.0.0-canary.65125b3a6.0","@material/animation":"13.0.0-canary.65125b3a6.0","@material/elevation":"13.0.0-canary.65125b3a6.0","@material/typography":"13.0.0-canary.65125b3a6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.65125b3a6.0_1631827083106_0.29010154941658284","host":"s3://npm-registry-packages"}},"13.0.0-canary.80a583365.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.80a583365.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.80a583365.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"986d7721e85aef071f149ac5abc6c52021961059","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.80a583365.0.tgz","fileCount":44,"integrity":"sha512-rJf2yKS0f+IaMZVHYtpvyzXe5FruIrApdQnNrEHVI4K71OE5Y3m27wkvbW3aXU38rxFBwQ6RQEkEHrmVFy4H3A==","signatures":[{"sig":"MEQCIA6MfHrq/0KPTOvwWTGBOiORuldRpwPudDttALr3XlZSAiABKmDTctpU8xPYltShQK8UzsYbnFNFb3kTdw7CYxW+4A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128581},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c174baf193216601da7fe07831dd2152585c6beb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.17.6+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.17.6","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.80a583365.0","@material/base":"13.0.0-canary.80a583365.0","@material/shape":"13.0.0-canary.80a583365.0","@material/theme":"13.0.0-canary.80a583365.0","@material/ripple":"13.0.0-canary.80a583365.0","@material/animation":"13.0.0-canary.80a583365.0","@material/elevation":"13.0.0-canary.80a583365.0","@material/typography":"13.0.0-canary.80a583365.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.80a583365.0_1631910971901_0.20980102832881098","host":"s3://npm-registry-packages"}},"13.0.0-canary.83900936a.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.83900936a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.83900936a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cd40c0c722763d589da22099cf56a6a578fb6599","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.83900936a.0.tgz","fileCount":44,"integrity":"sha512-912+Tk1ahO73fr1PxtCpVpdFhA2rKkG+CLPnMGvL62IvO5I721Yn4dyWkJajUMAC8nISqBoB4zeIWOb8k0boDg==","signatures":[{"sig":"MEUCIDUJ4IH2GxlNUQbWnzcO3ucccjac4a1mDOCEsihxdQ/LAiEAycNgZccYSz9g9EgtGZlw4hUDR18UVfqTG88kekzz7ok=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128581},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ca6026fb6b378ac9a4f14997612369fe29f31093","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.17.6+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.17.6","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.83900936a.0","@material/base":"13.0.0-canary.83900936a.0","@material/shape":"13.0.0-canary.83900936a.0","@material/theme":"13.0.0-canary.83900936a.0","@material/ripple":"13.0.0-canary.83900936a.0","@material/animation":"13.0.0-canary.83900936a.0","@material/elevation":"13.0.0-canary.83900936a.0","@material/typography":"13.0.0-canary.83900936a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.83900936a.0_1631921081787_0.6051585611153201","host":"s3://npm-registry-packages"}},"13.0.0-canary.860ad06a1.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.860ad06a1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.860ad06a1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"535abc79f9debdc05b1635b0f56ab1a9f4cdf13c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.860ad06a1.0.tgz","fileCount":44,"integrity":"sha512-tPvoz12RIcoHuhs+a/3dljCh/T0Lms5iiwGJDGrBhCTRblPjLFMQBxafpPtsa80fpVO8QN9NmsTykvnbKmae1Q==","signatures":[{"sig":"MEQCIHnkd9E0TSseS2wsexbK/e/w1ae+LLr9pW1UC9DPdMtdAiBGh94Ex8E69Wh2JGtn1ixWMhObWtw0I2W2kgRyT2c96A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128581},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8f156ac018a526d53d5f5077762518483bfa7dc7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.17.6+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.17.6","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.860ad06a1.0","@material/base":"13.0.0-canary.860ad06a1.0","@material/shape":"13.0.0-canary.860ad06a1.0","@material/theme":"13.0.0-canary.860ad06a1.0","@material/ripple":"13.0.0-canary.860ad06a1.0","@material/animation":"13.0.0-canary.860ad06a1.0","@material/elevation":"13.0.0-canary.860ad06a1.0","@material/typography":"13.0.0-canary.860ad06a1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.860ad06a1.0_1631921781223_0.8759280245875272","host":"s3://npm-registry-packages"}},"13.0.0-canary.3b8d4429e.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.3b8d4429e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.3b8d4429e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ae998bde77c813d8a303e2d403579de6a97eb76e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.3b8d4429e.0.tgz","fileCount":44,"integrity":"sha512-3OHzdJPWky4qaxHk7uUI9dFXGvcAW+E0R9Z0IjdkwV4E6aasKJxPzxGNyCmdmHGcgWv4jFEID3P8sbeP3Eb09w==","signatures":[{"sig":"MEYCIQCUVEq/i+3/AwSd/u12AnchGJvvfGTXYpeo8ySD7kFccAIhAMnYLaja6lLrPp6YFDboWxoCeNi/1T1ffOuYfQDRn86T","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128581},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c548d2fdb2731631683bc92955d6701cd0c2bd14","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.17.6+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.17.6","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.3b8d4429e.0","@material/base":"13.0.0-canary.3b8d4429e.0","@material/shape":"13.0.0-canary.3b8d4429e.0","@material/theme":"13.0.0-canary.3b8d4429e.0","@material/ripple":"13.0.0-canary.3b8d4429e.0","@material/animation":"13.0.0-canary.3b8d4429e.0","@material/elevation":"13.0.0-canary.3b8d4429e.0","@material/typography":"13.0.0-canary.3b8d4429e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.3b8d4429e.0_1632160076627_0.1333864814869521","host":"s3://npm-registry-packages"}},"13.0.0-canary.2da3606b9.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.2da3606b9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.2da3606b9.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7df59b4eb514bef079fa245bf69eedd60485afce","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.2da3606b9.0.tgz","fileCount":44,"integrity":"sha512-2BjP0vFE5WU55g9jiygCA+dOMiLo64/drdN05ciybGveNdqgA62HjHAKQVzQzFCCQmpjBYSu6Np5/FyZFgO5YQ==","signatures":[{"sig":"MEQCIBfZLoX3rRrGfs3gF/FIGIeagIC7LdFqmDIYEjen9x3WAiB6GNXBTqtPGxqjPhTWj5ny5c84sWCHuSs/eLZw58iGEA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128671},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c452408cf52d900869313ad573c1b84c9d6a3105","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.17.6+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.17.6","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.2da3606b9.0","@material/base":"13.0.0-canary.2da3606b9.0","@material/shape":"13.0.0-canary.2da3606b9.0","@material/theme":"13.0.0-canary.2da3606b9.0","@material/ripple":"13.0.0-canary.2da3606b9.0","@material/animation":"13.0.0-canary.2da3606b9.0","@material/elevation":"13.0.0-canary.2da3606b9.0","@material/typography":"13.0.0-canary.2da3606b9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.2da3606b9.0_1632166683486_0.06404493843567471","host":"s3://npm-registry-packages"}},"13.0.0-canary.e8c598d1e.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.e8c598d1e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.e8c598d1e.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"46a15cd4b93726c2b2131e73ace5d024f264bf39","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.e8c598d1e.0.tgz","fileCount":44,"integrity":"sha512-+jKyhxgHPN49/WXL7PNsZI44nyO2gF+CMh4fqmvZJ6u37wyDUDPKI9K6bg0Z3/83voClM6UcUQhL8T6v7bC+nA==","signatures":[{"sig":"MEYCIQDgL8Cbi9j0GuOj5AcM3PftS9OC0CScUPoWPYFGJITLywIhAI6vRnAUExUQK6E1yN7czU0645/+DTpB5C1fxGnQJIhW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128671},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"11ab5557b275cc7f950ff2123684083e6245eafe","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.17.6+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.17.6","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.e8c598d1e.0","@material/base":"13.0.0-canary.e8c598d1e.0","@material/shape":"13.0.0-canary.e8c598d1e.0","@material/theme":"13.0.0-canary.e8c598d1e.0","@material/ripple":"13.0.0-canary.e8c598d1e.0","@material/animation":"13.0.0-canary.e8c598d1e.0","@material/elevation":"13.0.0-canary.e8c598d1e.0","@material/typography":"13.0.0-canary.e8c598d1e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.e8c598d1e.0_1632172334693_0.6225712466784972","host":"s3://npm-registry-packages"}},"13.0.0-canary.1340ee9f7.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.1340ee9f7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.1340ee9f7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"15742e3fd4deb972c1eff5cad26a67dc81aef777","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.1340ee9f7.0.tgz","fileCount":44,"integrity":"sha512-4SlhIlgB/28bdmxG3Cr0X4ijt3z7q3aQsR9njulAZWa1CEPKtF8FzpRN19WHBtcqHUUspDWPZ3d5Cqa3qKG2yg==","signatures":[{"sig":"MEUCIQC06/FlOv/5SbFxgYAr/n5k7IJrz4hZRfcm9pOEpAyP+wIgf21bqJ2P9vK+LfjwR1lU/R6xy+ftHqhbkqk4XGAN6p4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128703},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c9cbdc93fd9954f12cb74ebaf2cfa5806d078879","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.17.6+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.17.6","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.1340ee9f7.0","@material/base":"13.0.0-canary.1340ee9f7.0","@material/shape":"13.0.0-canary.1340ee9f7.0","@material/theme":"13.0.0-canary.1340ee9f7.0","@material/ripple":"13.0.0-canary.1340ee9f7.0","@material/animation":"13.0.0-canary.1340ee9f7.0","@material/elevation":"13.0.0-canary.1340ee9f7.0","@material/typography":"13.0.0-canary.1340ee9f7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.1340ee9f7.0_1632333496968_0.9710741799871774","host":"s3://npm-registry-packages"}},"13.0.0-canary.65084baff.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.65084baff.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.65084baff.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3d7eebdee5766b8a12ce4da529987b0b9acac6ed","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.65084baff.0.tgz","fileCount":44,"integrity":"sha512-BXVzSvEXc0EJW9R43+B73Quwkt7yPELUnceyfd6toomiMedvGD+yMVLeUq7M2hK6/+apIV39NX47aXzi4KXqIQ==","signatures":[{"sig":"MEUCIB69TowHAzaY/6B4tvjR4/2dYtvHLONXs+OKdKsF5+lqAiEA0ysdqv7e/z9mbuh7mCgRapvob29949BZClhhpiiTdBA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128703},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"afe4cce0d8c7e5038058ea8198ffd72e99e1c941","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.17.6+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.17.6","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.65084baff.0","@material/base":"13.0.0-canary.65084baff.0","@material/shape":"13.0.0-canary.65084baff.0","@material/theme":"13.0.0-canary.65084baff.0","@material/ripple":"13.0.0-canary.65084baff.0","@material/animation":"13.0.0-canary.65084baff.0","@material/elevation":"13.0.0-canary.65084baff.0","@material/typography":"13.0.0-canary.65084baff.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.65084baff.0_1632432351712_0.2394887512731083","host":"s3://npm-registry-packages"}},"13.0.0-canary.c79aa0cdd.0":{"name":"@material/top-app-bar","version":"13.0.0-canary.c79aa0cdd.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0-canary.c79aa0cdd.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4ff1d128ea73d13d484cfa404b3683110e6cfda9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0-canary.c79aa0cdd.0.tgz","fileCount":44,"integrity":"sha512-4SJWBJ0qdK6e1nW5C8+EWoivA8yqpnPijC+0Z58mgiFORqbyd1lVuTswxmCkDNgwYLDn1cI3CvM4lVk7qAUxYA==","signatures":[{"sig":"MEUCIQDH9Cc2HvmnFjp6aqC07vENIlZXN8t+5CJkhIbxoyH4/gIgSBIyvQHSj9c2qFB5jdmhtogvlamvltuDkT48yEtE4b8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128703},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2caa02d38f883966fd5f78948743dabdced9b689","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.17.6+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.17.6","dependencies":{"tslib":"^2.1.0","@material/rtl":"13.0.0-canary.c79aa0cdd.0","@material/base":"13.0.0-canary.c79aa0cdd.0","@material/shape":"13.0.0-canary.c79aa0cdd.0","@material/theme":"13.0.0-canary.c79aa0cdd.0","@material/ripple":"13.0.0-canary.c79aa0cdd.0","@material/animation":"13.0.0-canary.c79aa0cdd.0","@material/elevation":"13.0.0-canary.c79aa0cdd.0","@material/typography":"13.0.0-canary.c79aa0cdd.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0-canary.c79aa0cdd.0_1632490937944_0.7135652491913476","host":"s3://npm-registry-packages"}},"13.0.0":{"name":"@material/top-app-bar","version":"13.0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@13.0.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c4f8af665ed25b5db35083bf5253bb6bd161cae5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-13.0.0.tgz","fileCount":43,"integrity":"sha512-NTbIbBmoo4wfbBwW+9XMmjYQJ3e7NJ9P/ahTszYuzYDyWNcc3m8G/A0zM+1LBmoze3rP/QTxcaJUH/A5/3ufXA==","signatures":[{"sig":"MEQCIAyHbHP7Z6B6OrZHWGOsVcjE9/kRBQIM+XT48YC16FKEAiAmnvhQl5ke+WM4wh3/Iq4B8mk1t6tJ+1I1xfv8Hd7Ejw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128158},"main":"dist/mdc.topAppBar.js","module":"index.js","gitHead":"198431fcd8ff3028934d2cf3a5b292f8482a4570","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.17.6+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.17.6","dependencies":{"tslib":"^2.1.0","@material/rtl":"^13.0.0","@material/base":"^13.0.0","@material/shape":"^13.0.0","@material/theme":"^13.0.0","@material/ripple":"^13.0.0","@material/animation":"^13.0.0","@material/elevation":"^13.0.0","@material/typography":"^13.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_13.0.0_1632512773882_0.6525605092573792","host":"s3://npm-registry-packages"}},"14.0.0-canary.198431fcd.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.198431fcd.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.198431fcd.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"03d881e4e24eaa5dd9c31ecdce25f78fa323362a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.198431fcd.0.tgz","fileCount":44,"integrity":"sha512-8fdtG1l4AkN6OdyHDwVqmBCANwiMYm2jU0NbVfkpGjuw82LeAj4WZzuUr7i1W4gerJPCnBLFcbKCO+QHe3tVIg==","signatures":[{"sig":"MEUCIQDx3PM96X43PppA3qEbSXZXJMfxheYjvyLfQzYfZ1cIMwIgdqN2/1Tdes2y/XKQCBBLbXwsCnvAzfFiFoaCSjAV8qc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128703},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"34242e3354729334618dc12d6bc959e0a8f14dd4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.17.6+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.17.6","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.198431fcd.0","@material/base":"14.0.0-canary.198431fcd.0","@material/shape":"14.0.0-canary.198431fcd.0","@material/theme":"14.0.0-canary.198431fcd.0","@material/ripple":"14.0.0-canary.198431fcd.0","@material/animation":"14.0.0-canary.198431fcd.0","@material/elevation":"14.0.0-canary.198431fcd.0","@material/typography":"14.0.0-canary.198431fcd.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.198431fcd.0_1632512818112_0.571746952448871","host":"s3://npm-registry-packages"}},"14.0.0-canary.9a02b6ef8.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.9a02b6ef8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.9a02b6ef8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"46789433b25696cc95be57949a8cb897d2c8dd50","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.9a02b6ef8.0.tgz","fileCount":44,"integrity":"sha512-YyUt3ahVTFXsWCSEpBBa9EpfNdKDnz/uS6mcQu1/h76EdSpjrdMEKV9/ftpyy9AoMD6sGya4LyJVhUy2uu1K5w==","signatures":[{"sig":"MEUCID5OXRMMGV2H4sY7n0ZitsWsX+7XAgnWKQDF9CVyOY4WAiEA/JSV8eL7U5cG1e15bxF6VIH1scLnqYgMX9Zod/I7Lgo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129183},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"13e91b1150d6339b15d71c44c8743eb9e2026eaf","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.17.6+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.17.6","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.9a02b6ef8.0","@material/base":"14.0.0-canary.9a02b6ef8.0","@material/shape":"14.0.0-canary.9a02b6ef8.0","@material/theme":"14.0.0-canary.9a02b6ef8.0","@material/ripple":"14.0.0-canary.9a02b6ef8.0","@material/animation":"14.0.0-canary.9a02b6ef8.0","@material/elevation":"14.0.0-canary.9a02b6ef8.0","@material/typography":"14.0.0-canary.9a02b6ef8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.9a02b6ef8.0_1632575483432_0.5476196280838803","host":"s3://npm-registry-packages"}},"14.0.0-canary.758ce31d9.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.758ce31d9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.758ce31d9.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8060f8bd04e49b9e04124bbb12160253ac7f4422","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.758ce31d9.0.tgz","fileCount":44,"integrity":"sha512-jljBU2dHHCCPArwqqHX5ef6UaniT23XqNb9eGfUknCyqHYuDpa3cfh0GjXr120C4qLdatcK8cYzpqAN2BLBm6g==","signatures":[{"sig":"MEYCIQCYS/ELngF7TctxL5HJQO7WfKgdmzJvqnUU7bzop1GcDwIhALbl8sIF6OgxKnWogXm63RNi3nf8CVCBp7ziNyMN6QSI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129183},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"09083795b738aece76a37f8a1dcc8daf958204b1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.17.6+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.17.6","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.758ce31d9.0","@material/base":"14.0.0-canary.758ce31d9.0","@material/shape":"14.0.0-canary.758ce31d9.0","@material/theme":"14.0.0-canary.758ce31d9.0","@material/ripple":"14.0.0-canary.758ce31d9.0","@material/animation":"14.0.0-canary.758ce31d9.0","@material/elevation":"14.0.0-canary.758ce31d9.0","@material/typography":"14.0.0-canary.758ce31d9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.758ce31d9.0_1632763777069_0.1551321406649282","host":"s3://npm-registry-packages"}},"14.0.0-canary.86b50ef74.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.86b50ef74.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.86b50ef74.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"35e3ce214e798d0c7447953d9818ace21233634d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.86b50ef74.0.tgz","fileCount":44,"integrity":"sha512-nURZidzeygp4SgwNaGSn7D7K9Ul29mw+NNbyGEdqou8NOj5NhhiGBAh7qQtTLie7e+DdxA6PPZNDH5V1ea0XTA==","signatures":[{"sig":"MEUCIEeoYJh5LjmEs+x2ofnn8ZJkcUAE3dEBtIpjPF5XfmvZAiEA3Of6P1rap+qlswJOCP3bvu1He5EmQ5+VUpWPG+y56q4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129183},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5941ece7c1e494e720865be940d098a5556de149","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.17.6+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.17.6","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.86b50ef74.0","@material/base":"14.0.0-canary.86b50ef74.0","@material/shape":"14.0.0-canary.86b50ef74.0","@material/theme":"14.0.0-canary.86b50ef74.0","@material/ripple":"14.0.0-canary.86b50ef74.0","@material/animation":"14.0.0-canary.86b50ef74.0","@material/elevation":"14.0.0-canary.86b50ef74.0","@material/typography":"14.0.0-canary.86b50ef74.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.86b50ef74.0_1632851003671_0.2844462896965301","host":"s3://npm-registry-packages"}},"14.0.0-canary.b2fe3528b.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.b2fe3528b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.b2fe3528b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8054f4b9b1b3632f3a6ce51c21256a2e166e9772","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.b2fe3528b.0.tgz","fileCount":44,"integrity":"sha512-1GtzpPiK+xOrOp2RHLMBNQ+s6I+OPhe0TO4sjXr1Qa8ZGsHCey+y+KBBrgvZs7FWlL0fhVhfP+h0Ge+4VtFBqg==","signatures":[{"sig":"MEUCIEvQ97gXFHzsIt0DVBEX5Er2VujG2ooFJ3n0CR2biXIcAiEAgYMqLSOpD0Q8jenp25PbUQyflnedqgjB4nH791Pa960=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129183},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cce11b1c181ea84c0bfdbef26112377518afa98b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.17.6+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.17.6","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.b2fe3528b.0","@material/base":"14.0.0-canary.b2fe3528b.0","@material/shape":"14.0.0-canary.b2fe3528b.0","@material/theme":"14.0.0-canary.b2fe3528b.0","@material/ripple":"14.0.0-canary.b2fe3528b.0","@material/animation":"14.0.0-canary.b2fe3528b.0","@material/elevation":"14.0.0-canary.b2fe3528b.0","@material/typography":"14.0.0-canary.b2fe3528b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.b2fe3528b.0_1632956236505_0.2610565296729208","host":"s3://npm-registry-packages"}},"14.0.0-canary.586e740dd.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.586e740dd.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.586e740dd.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"02f11766405b78ea088714530bc85dbf6b85d3e9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.586e740dd.0.tgz","fileCount":44,"integrity":"sha512-4nzMor30YU8GQwdUQuRjc5WeGnDL8Sr6SFeePRiFqOnpxZuGEi1eL4igcLqjCIoQTnqIUzDsiSoOtEioq8JJRw==","signatures":[{"sig":"MEUCICEegHw/TwJJRA0IOG4sJIP8BBBi/5X9xCShyd13gSdyAiEA9ZOV+WnVt9kM54cJDc93Ub96GQMOFyiXVehaxXeSX54=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129183},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6c765889db11456de00c45d7bb289b6c7cf3ec27","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.586e740dd.0","@material/base":"14.0.0-canary.586e740dd.0","@material/shape":"14.0.0-canary.586e740dd.0","@material/theme":"14.0.0-canary.586e740dd.0","@material/ripple":"14.0.0-canary.586e740dd.0","@material/animation":"14.0.0-canary.586e740dd.0","@material/elevation":"14.0.0-canary.586e740dd.0","@material/typography":"14.0.0-canary.586e740dd.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.586e740dd.0_1633019500479_0.7356200967538433","host":"s3://npm-registry-packages"}},"14.0.0-canary.2ac92d766.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.2ac92d766.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.2ac92d766.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c6ca2e68ea90643e9eeaa2cb1353765866736256","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.2ac92d766.0.tgz","fileCount":44,"integrity":"sha512-JlMLxz311pws+oi0ITYLO6F58voKpHOWa0gMnAYrfZazSpLiyUuGYOMuptxN65Oq4aLyqQDjR9/lGuq3IrsWwQ==","signatures":[{"sig":"MEUCIQCtMnOjhPXITvMIAX3xZgqiPYv4vjA3rmQp1NLVfgC4cgIgWtOOIOlQDEO/Nh4897yLkBpZsyRnjn8WQgSZElUHHBM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129183},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3a797e3a01110aeaf8270a13c2cc32d0871a8bd2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.2ac92d766.0","@material/base":"14.0.0-canary.2ac92d766.0","@material/shape":"14.0.0-canary.2ac92d766.0","@material/theme":"14.0.0-canary.2ac92d766.0","@material/ripple":"14.0.0-canary.2ac92d766.0","@material/animation":"14.0.0-canary.2ac92d766.0","@material/elevation":"14.0.0-canary.2ac92d766.0","@material/typography":"14.0.0-canary.2ac92d766.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.2ac92d766.0_1633462133663_0.6647263049598189","host":"s3://npm-registry-packages"}},"14.0.0-canary.353ca7e9f.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.353ca7e9f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.353ca7e9f.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"efcd257e16eded844206e4f4c0025259f9316e46","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.353ca7e9f.0.tgz","fileCount":44,"integrity":"sha512-dS7Ic3ZTXSYPN3spoOAdM59LAc2mLJ3qQINi7CBKOOjWIviwz4E5Rsy2aVr3K7UnxamAdJitk7sU3D5/eoXHBg==","signatures":[{"sig":"MEQCIBJnCZvnz3hFS+1X22MlWEyC1yrz9GB/WXY2ucMhDotyAiBQksn0t7Id93BebMR063Uu2KCwGj1JuY4ToGZgvBgZrQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129183},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4f091efbfcb52d523712f9b99808d737b06a60af","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.353ca7e9f.0","@material/base":"14.0.0-canary.353ca7e9f.0","@material/shape":"14.0.0-canary.353ca7e9f.0","@material/theme":"14.0.0-canary.353ca7e9f.0","@material/ripple":"14.0.0-canary.353ca7e9f.0","@material/animation":"14.0.0-canary.353ca7e9f.0","@material/elevation":"14.0.0-canary.353ca7e9f.0","@material/typography":"14.0.0-canary.353ca7e9f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.353ca7e9f.0_1633718837691_0.12820677144114567","host":"s3://npm-registry-packages"}},"14.0.0-canary.c78ff0429.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.c78ff0429.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.c78ff0429.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c00335c4c364259be601440b5721d20b60746fb7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.c78ff0429.0.tgz","fileCount":44,"integrity":"sha512-pHEksbjDyltoqpyOuryb3k2quh3mDnzOjcys7MWqas5Le6IF4nVcdc/TAoH1VpNwYeTqmatOXO0/WZdOK43eIw==","signatures":[{"sig":"MEQCICviVLbD0CKOaho1OebnyeB0zbhuYQsN43w3ksTj8bvWAiBB46XCvzRpnkPE8JR2wSOSTYGKDfwbqePprL2tJBG3+w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129189},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"55d918ee5ce9842b93075fa0d0ffd2b64b5f3ed3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.c78ff0429.0","@material/base":"14.0.0-canary.c78ff0429.0","@material/shape":"14.0.0-canary.c78ff0429.0","@material/theme":"14.0.0-canary.c78ff0429.0","@material/ripple":"14.0.0-canary.c78ff0429.0","@material/animation":"14.0.0-canary.c78ff0429.0","@material/elevation":"14.0.0-canary.c78ff0429.0","@material/typography":"14.0.0-canary.c78ff0429.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.c78ff0429.0_1633972947191_0.9601982190154037","host":"s3://npm-registry-packages"}},"14.0.0-canary.261f2db59.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.261f2db59.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.261f2db59.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"71d69997862ebf32b86a84784a41a4c21db510dc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.261f2db59.0.tgz","fileCount":44,"integrity":"sha512-qizULSReG7wpxWzNk2JykLiqMuuhOuyXoOUx5bl4FZCuivT6HK2xYLJ49ZM15SFbpWqZopfjmSrLo2TPw3wuhg==","signatures":[{"sig":"MEQCIH6G2cQjRZbL4nEVj8aM2fAe8CVJYD1rJtCb1Lx+BXbVAiBek4O6hApHsCPT3O+Yaqki428842FFbGhnfW2k5Aoaqw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129189},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"22c1cb4091a589b9a53b844da4e8d98309c75acd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.261f2db59.0","@material/base":"14.0.0-canary.261f2db59.0","@material/shape":"14.0.0-canary.261f2db59.0","@material/theme":"14.0.0-canary.261f2db59.0","@material/ripple":"14.0.0-canary.261f2db59.0","@material/animation":"14.0.0-canary.261f2db59.0","@material/elevation":"14.0.0-canary.261f2db59.0","@material/typography":"14.0.0-canary.261f2db59.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.261f2db59.0_1634749201340_0.1183144476623994","host":"s3://npm-registry-packages"}},"14.0.0-canary.9803d2dc1.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.9803d2dc1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.9803d2dc1.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"80f8e20079c06f6442a0f8247afceb7602225aba","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.9803d2dc1.0.tgz","fileCount":44,"integrity":"sha512-QI8BLF/mvFpCgh95AZNui6RnS5lr9GmZfNSOJvhrDkjMY0y0K8jlvDDcazi8mCUJYp5RxJkHvhkvfIf7y+mq8g==","signatures":[{"sig":"MEUCIQCpCAu0psfjz5/Q8I5p7bZLf3K6rbgywRHZCwLrczDmIgIgKa/VPsneJznftW5Y7gCgO8X7nagjB2JkJYxt+NchpfE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129189},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4ef0574fd4b362b2609f5dc9bc002ef96f07fcc9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.9803d2dc1.0","@material/base":"14.0.0-canary.9803d2dc1.0","@material/shape":"14.0.0-canary.9803d2dc1.0","@material/theme":"14.0.0-canary.9803d2dc1.0","@material/ripple":"14.0.0-canary.9803d2dc1.0","@material/animation":"14.0.0-canary.9803d2dc1.0","@material/elevation":"14.0.0-canary.9803d2dc1.0","@material/typography":"14.0.0-canary.9803d2dc1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.9803d2dc1.0_1634757733411_0.7897084191036066","host":"s3://npm-registry-packages"}},"14.0.0-canary.348665978.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.348665978.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.348665978.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"aace9036afc42ab814063ce1ea6aec716117b93a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.348665978.0.tgz","fileCount":44,"integrity":"sha512-RC1Hir6auWN990kjmJDYFOp5fvyN+pD07k56l1vXBu84x78P9GzOZXFJAN/PsTuxnd+jEhKkmZEwkvCGDJCdJA==","signatures":[{"sig":"MEYCIQD3sdETMy4EO0VBx4UdfeKb6olPHARRPfAery6PHx0TlQIhALYU6Wkfun4d5z0B/HJhcgP7yDYmujawu+xV0mX6fXLz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129189},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bf16d95c07dcfc371fc864fe30028299a2d5d0d2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.348665978.0","@material/base":"14.0.0-canary.348665978.0","@material/shape":"14.0.0-canary.348665978.0","@material/theme":"14.0.0-canary.348665978.0","@material/ripple":"14.0.0-canary.348665978.0","@material/animation":"14.0.0-canary.348665978.0","@material/elevation":"14.0.0-canary.348665978.0","@material/typography":"14.0.0-canary.348665978.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.348665978.0_1634827868143_0.347287171934034","host":"s3://npm-registry-packages"}},"14.0.0-canary.b2b979a8a.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.b2b979a8a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.b2b979a8a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5700aa2bbcae47f02e1ce41b4f8a93965e5663b7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.b2b979a8a.0.tgz","fileCount":44,"integrity":"sha512-8ZI0mFQdJkru8YOJMOnQ4fqYrely1rixn+r2g1V2b2tQXZ7ZEec7K++inP0iusYlrNoaUX7ZHmMB4xsgeLdIdw==","signatures":[{"sig":"MEUCIQCNCr/1ajywBgi96ErxwIumutM7nRVbzL7nLbyuQkbxBAIgPIU8tO0vjhV7W5ODmZsoHtfc+LV87aY08kytVXnoS4U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129189},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"08377359fe2dfa41ac960f776df2ba00e50e9819","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.b2b979a8a.0","@material/base":"14.0.0-canary.b2b979a8a.0","@material/shape":"14.0.0-canary.b2b979a8a.0","@material/theme":"14.0.0-canary.b2b979a8a.0","@material/ripple":"14.0.0-canary.b2b979a8a.0","@material/animation":"14.0.0-canary.b2b979a8a.0","@material/elevation":"14.0.0-canary.b2b979a8a.0","@material/typography":"14.0.0-canary.b2b979a8a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.b2b979a8a.0_1635433964280_0.3831109501845462","host":"s3://npm-registry-packages"}},"14.0.0-canary.1af7c1c4a.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.1af7c1c4a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.1af7c1c4a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"95679ecb1428b0a80411a08dc34e6574f83c0f7d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.1af7c1c4a.0.tgz","fileCount":44,"integrity":"sha512-tbb0OC6BAYe0TJTm16Aa4XWaSc4FHxikN9YGXFZ8Jq1NV6p9ZPc6KWp4V8ywwWtXHuGaZCP9Hz3R2y3IAGdaQQ==","signatures":[{"sig":"MEQCIDCHjCpmEV1zEf1UZL606OFjwZa7gzz2WuhUf47ceAjEAiAvD3f/vDIX0Q5qbB8JyyuLTe39ecg8xHl78siiK9JEjA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129189},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3673ef3144cd47c5faba873a239454e11e3d72eb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.1af7c1c4a.0","@material/base":"14.0.0-canary.1af7c1c4a.0","@material/shape":"14.0.0-canary.1af7c1c4a.0","@material/theme":"14.0.0-canary.1af7c1c4a.0","@material/ripple":"14.0.0-canary.1af7c1c4a.0","@material/animation":"14.0.0-canary.1af7c1c4a.0","@material/elevation":"14.0.0-canary.1af7c1c4a.0","@material/typography":"14.0.0-canary.1af7c1c4a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.1af7c1c4a.0_1635443592703_0.09945735888884721","host":"s3://npm-registry-packages"}},"14.0.0-canary.4afd353cd.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.4afd353cd.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.4afd353cd.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f2c4dcd612860b9434e9748e3f3d5c351f9bcdba","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.4afd353cd.0.tgz","fileCount":44,"integrity":"sha512-OTXpsv8o8uCMIIFVs/HZNagBIT5HvgSha34Meh1wMDkvyTeQdYbUImkPoQ3q13eP/SWGX3AfSopWSir3oHgW8A==","signatures":[{"sig":"MEUCIF7MEp/f9MWZUdmwi0Q64W8wevcwSTAX27wBagBrNCG1AiEAsgl66xCkcPWSf8xZySR/Lzoi6pJ/iJ2DAYIRUPWm7gY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129189},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"491d940b4e97c65f274b1b4d42b3842e9bd3a4f9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.4afd353cd.0","@material/base":"14.0.0-canary.4afd353cd.0","@material/shape":"14.0.0-canary.4afd353cd.0","@material/theme":"14.0.0-canary.4afd353cd.0","@material/ripple":"14.0.0-canary.4afd353cd.0","@material/animation":"14.0.0-canary.4afd353cd.0","@material/elevation":"14.0.0-canary.4afd353cd.0","@material/typography":"14.0.0-canary.4afd353cd.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.4afd353cd.0_1635519716295_0.9194242810529478","host":"s3://npm-registry-packages"}},"14.0.0-canary.a986df922.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.a986df922.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.a986df922.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"894a1a589b89d0c0c011d90e7b253e4b08f903d2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.a986df922.0.tgz","fileCount":44,"integrity":"sha512-JQQ1TV6vTMT3iQjaxQoTIWZgqujFygE6i4eoDVywoRmhzfrq5P6hK+GW34ff4MQSQ2zNsz7XwtMhuL6jKZxE4g==","signatures":[{"sig":"MEUCIBein1OmIOOc+KvbsO8vpoH4JVQE48vI41o6AfQITs+tAiEAu6AM29x3mfBY8dFmsumx7wHkkLZCQt+YF0rXsFknyUs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129189},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6fd5c666012fea37f8a5a820b4979cc66e59fe9f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.a986df922.0","@material/base":"14.0.0-canary.a986df922.0","@material/shape":"14.0.0-canary.a986df922.0","@material/theme":"14.0.0-canary.a986df922.0","@material/ripple":"14.0.0-canary.a986df922.0","@material/animation":"14.0.0-canary.a986df922.0","@material/elevation":"14.0.0-canary.a986df922.0","@material/typography":"14.0.0-canary.a986df922.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.a986df922.0_1635543323935_0.6304648675621927","host":"s3://npm-registry-packages"}},"14.0.0-canary.c3cdff07b.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.c3cdff07b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.c3cdff07b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"886d1e86ac1367d54a4cedd1857a0ef985e76275","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.c3cdff07b.0.tgz","fileCount":44,"integrity":"sha512-StyUu7LQ9cafiH1OLyFZ44pyg5wkQNyICDBszH0B0zGmJfChhw1F1FLdXfzcsoQDyzK72m/6xWpKXAkfrtsTzw==","signatures":[{"sig":"MEUCIFwyJcFUGBnXjivrXVADKRveG3822wn/ipNMiwTREd+FAiEA7CqeM18XR0I90dGDFRat7FJ2WT2XzbZ5TLIVUyQG6+0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"078c19c333e3161ad6b51a3fdc993d883bdc19c8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.c3cdff07b.0","@material/base":"14.0.0-canary.c3cdff07b.0","@material/shape":"14.0.0-canary.c3cdff07b.0","@material/theme":"14.0.0-canary.c3cdff07b.0","@material/ripple":"14.0.0-canary.c3cdff07b.0","@material/animation":"14.0.0-canary.c3cdff07b.0","@material/elevation":"14.0.0-canary.c3cdff07b.0","@material/typography":"14.0.0-canary.c3cdff07b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.c3cdff07b.0_1636484776503_0.8961098580931213","host":"s3://npm-registry-packages"}},"14.0.0-canary.468392606.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.468392606.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.468392606.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4cd9acd353ed209cf1ff7f3d9826c3294e4b2b30","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.468392606.0.tgz","fileCount":44,"integrity":"sha512-0sO8osjOZvhKEWXjRuL/MaAM37Zawrmt6+np+3g+Ar28Ai3kuwLcjsqWSmhip/M/RDafczBGYVEQrmQwKx6+jw==","signatures":[{"sig":"MEUCIQCPYwNY0j4UJVJCh2vJ8ZN4D4hdukppAMWsDN0wy5SzzwIgS2BDAZf5yuYG1aKDr3O/hCUAXPl4bRJXNiPGCDwoAFo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ac451ce035a924184caaae0df5252896a7392e33","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.468392606.0","@material/base":"14.0.0-canary.468392606.0","@material/shape":"14.0.0-canary.468392606.0","@material/theme":"14.0.0-canary.468392606.0","@material/ripple":"14.0.0-canary.468392606.0","@material/animation":"14.0.0-canary.468392606.0","@material/elevation":"14.0.0-canary.468392606.0","@material/typography":"14.0.0-canary.468392606.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.468392606.0_1636659630066_0.6676734102291915","host":"s3://npm-registry-packages"}},"14.0.0-canary.828f9803b.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.828f9803b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.828f9803b.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1a1bdd8a196c112b746b0b939ffc4f5954f24af0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.828f9803b.0.tgz","fileCount":44,"integrity":"sha512-2sICePUMhMjdUL8oKIIyKXhLmky8oUjwmQwUxMjIH4eJ9AY3e6SGdib+I05EA7yyMnZWoqX50kR6lQltHpzY0w==","signatures":[{"sig":"MEUCIAhh6rGqPP9tCKzBqbNotGYoNZzevZ/oSB0oo9M2Ug3vAiEAiHY07UKpe8LKgMVwhgz4/ydMXopY80tA34RDkc1u2As=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129351},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c64e9f941d45dc823621c068481be90a0eaa0f39","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.828f9803b.0","@material/base":"14.0.0-canary.828f9803b.0","@material/shape":"14.0.0-canary.828f9803b.0","@material/theme":"14.0.0-canary.828f9803b.0","@material/ripple":"14.0.0-canary.828f9803b.0","@material/animation":"14.0.0-canary.828f9803b.0","@material/elevation":"14.0.0-canary.828f9803b.0","@material/typography":"14.0.0-canary.828f9803b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.828f9803b.0_1636660271912_0.7334177391556713","host":"s3://npm-registry-packages"}},"14.0.0-canary.8795cba87.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.8795cba87.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.8795cba87.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"00a442495e0c22c178cadb9e4a92872653e4b33c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.8795cba87.0.tgz","fileCount":44,"integrity":"sha512-Z27BpIGtojeyy0i4fG5Vn08tAEFxUkdjPmslNG3E3DtTHzGmV/TDx6CthJEyNi7uX8i3o+AH2s5itfcA649VUQ==","signatures":[{"sig":"MEUCIQD8C0hHmZn3VSZO+2zhgV46coDgcYRcERNCrCtS1Vk82AIgOC1qinKDqC3Ol3Wl6WveXTveA8nUVnK+XypmvhcN+WI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"12c2e8ee797434819828bade998610af66a528ac","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.8795cba87.0","@material/base":"14.0.0-canary.8795cba87.0","@material/shape":"14.0.0-canary.8795cba87.0","@material/theme":"14.0.0-canary.8795cba87.0","@material/ripple":"14.0.0-canary.8795cba87.0","@material/animation":"14.0.0-canary.8795cba87.0","@material/elevation":"14.0.0-canary.8795cba87.0","@material/typography":"14.0.0-canary.8795cba87.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.8795cba87.0_1636660628189_0.07984008009452759","host":"s3://npm-registry-packages"}},"14.0.0-canary.cd7f8cace.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.cd7f8cace.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.cd7f8cace.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d27c2821d6ecfb30735e90a0191819cb831754d4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.cd7f8cace.0.tgz","fileCount":44,"integrity":"sha512-39TeMubhwl0pDvgmZAuo+WVxxS+K0YTRAUo5oemUJFqAn77avySbpncDBS71QfVh/S0mfKV6XdVVKVzaouKWHQ==","signatures":[{"sig":"MEUCIQCQhYrsZppg0OYbB7T07MPeNTr5u15rxriSR0KwINq49QIgCugi4ww7zDHCYOtSUYz6lEgk7TM/4i1EGxMeTnbQkH8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6f1e9f39fe9a43e01e67b849cc2a96a5a31be67c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.cd7f8cace.0","@material/base":"14.0.0-canary.cd7f8cace.0","@material/shape":"14.0.0-canary.cd7f8cace.0","@material/theme":"14.0.0-canary.cd7f8cace.0","@material/ripple":"14.0.0-canary.cd7f8cace.0","@material/animation":"14.0.0-canary.cd7f8cace.0","@material/elevation":"14.0.0-canary.cd7f8cace.0","@material/typography":"14.0.0-canary.cd7f8cace.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.cd7f8cace.0_1636660733336_0.47749776403132915","host":"s3://npm-registry-packages"}},"14.0.0-canary.207230eb8.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.207230eb8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.207230eb8.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fbab0cbb296cc82b394ce614fee4f6aaa7ec73a6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.207230eb8.0.tgz","fileCount":44,"integrity":"sha512-OianaK+TP1X+XQM9DDur6xDZt7qrNOwBnZkiiuZRVQ1Nu5d1ZVjoKO8qqfqSWE7rwSyeWqKlkL3VmrX1Pdn62g==","signatures":[{"sig":"MEUCIQD3OeZLBpJZrZRdcWBpJmW45oDxhgeiWtLrCvDudKyGbQIgOhZacejJGiTZvPLa97s7W7KjrCiYnVFLHQ09NCvihYk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"de1b12d24234ecfbfbf5a665f46c26b71016be2e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.207230eb8.0","@material/base":"14.0.0-canary.207230eb8.0","@material/shape":"14.0.0-canary.207230eb8.0","@material/theme":"14.0.0-canary.207230eb8.0","@material/ripple":"14.0.0-canary.207230eb8.0","@material/animation":"14.0.0-canary.207230eb8.0","@material/elevation":"14.0.0-canary.207230eb8.0","@material/typography":"14.0.0-canary.207230eb8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.207230eb8.0_1636669493951_0.05465003958823522","host":"s3://npm-registry-packages"}},"14.0.0-canary.991fb99f7.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.991fb99f7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.991fb99f7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"639443e5231f84f488c9facffb7c1034a2e7117e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.991fb99f7.0.tgz","fileCount":44,"integrity":"sha512-47is9+3wgT4FfsUKg2VHUJoJHe4wOwXQ4po5HQCYZw4aaonIN4aD03DTpumJ3AQo5Dj5D/iNkyMQzGRYST24Zw==","signatures":[{"sig":"MEUCIEarSsu1LuaUq2YisJcOuvelBl5vctcG8O3pGY4dt8lSAiEA9lR2yavLoUg/sqYd7EC1KnZYzXQZh/UASm+AXcrghm4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d13dee60c11cfef5bdcac33da4fff6f13626c05b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.991fb99f7.0","@material/base":"14.0.0-canary.991fb99f7.0","@material/shape":"14.0.0-canary.991fb99f7.0","@material/theme":"14.0.0-canary.991fb99f7.0","@material/ripple":"14.0.0-canary.991fb99f7.0","@material/animation":"14.0.0-canary.991fb99f7.0","@material/elevation":"14.0.0-canary.991fb99f7.0","@material/typography":"14.0.0-canary.991fb99f7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.991fb99f7.0_1636670209044_0.5890368469686529","host":"s3://npm-registry-packages"}},"14.0.0-canary.15db4f164.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.15db4f164.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.15db4f164.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0b08c9be47b977d4e1cdbaf745d2a47479901b21","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.15db4f164.0.tgz","fileCount":44,"integrity":"sha512-urg4/n9gEVgwBW+T2xJ5HJfF5n+lNoxVrmY2r+XykPnzLpXQyGsr/Ywgw6N8PPkkTrzuspgxOqv0u+eEjNZJgw==","signatures":[{"sig":"MEQCICXnINfyEbQ1YBY+dWX0aZngDbsPLTxnyS75L3C+/Nl0AiAYcuyCeciMuiLfxp3zZaHafh+VYDokCixp9yLVj2FLdg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"562e11bb445a0e51783e848adc61b690a7a1ba3a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.15db4f164.0","@material/base":"14.0.0-canary.15db4f164.0","@material/shape":"14.0.0-canary.15db4f164.0","@material/theme":"14.0.0-canary.15db4f164.0","@material/ripple":"14.0.0-canary.15db4f164.0","@material/animation":"14.0.0-canary.15db4f164.0","@material/elevation":"14.0.0-canary.15db4f164.0","@material/typography":"14.0.0-canary.15db4f164.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.15db4f164.0_1636738209703_0.7333778722725439","host":"s3://npm-registry-packages"}},"14.0.0-canary.8fcad5a3c.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.8fcad5a3c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.8fcad5a3c.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"72eb11505ed941eceaca8c50a73c0e56709b85d2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.8fcad5a3c.0.tgz","fileCount":44,"integrity":"sha512-xQFx1lCJoYqSQlVH9QtRirN0hUI7gsxsPQcodnXhscgJwu4x6XSy25Bx3N/gj27xGPwOXZ0wQtMWTLXeI0ervQ==","signatures":[{"sig":"MEUCIQCXLxkPi+iO5juFj4OsOhV8C6snWr+BtFx0EE7u5kBNRQIgDU+OOBt2creb4eEqyvAgxgkCg2Vfe1vEmPdyRoT9Tgs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"14b654013dacdda833d34b73c1a94811202298d0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.8fcad5a3c.0","@material/base":"14.0.0-canary.8fcad5a3c.0","@material/shape":"14.0.0-canary.8fcad5a3c.0","@material/theme":"14.0.0-canary.8fcad5a3c.0","@material/ripple":"14.0.0-canary.8fcad5a3c.0","@material/animation":"14.0.0-canary.8fcad5a3c.0","@material/elevation":"14.0.0-canary.8fcad5a3c.0","@material/typography":"14.0.0-canary.8fcad5a3c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.8fcad5a3c.0_1636744452598_0.839096513358361","host":"s3://npm-registry-packages"}},"14.0.0-canary.f81fb1d23.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.f81fb1d23.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.f81fb1d23.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"10e9ab67c13a90f19a033aa0dffe8e7f71be4728","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.f81fb1d23.0.tgz","fileCount":44,"integrity":"sha512-Jpc/qpSBotTr8qD41/pyBDdLl8Pg9KNXgnlvgNjlb6MNf9TffnUoCTotfmRQ7n8LAAqsu0YpnINie67YHgZFWw==","signatures":[{"sig":"MEUCIQCEFffC8/h9iyBqk/q1wCxjdwIjVKeeu9WWvyA6DXUA9wIgMbfrpqUf26A1GCxi4PPUoKqGoa3DJ5Tqxt8JZ3Ih0J0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"60600a1b8cf651dddedd6881a54b20db7b75cdc6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.f81fb1d23.0","@material/base":"14.0.0-canary.f81fb1d23.0","@material/shape":"14.0.0-canary.f81fb1d23.0","@material/theme":"14.0.0-canary.f81fb1d23.0","@material/ripple":"14.0.0-canary.f81fb1d23.0","@material/animation":"14.0.0-canary.f81fb1d23.0","@material/elevation":"14.0.0-canary.f81fb1d23.0","@material/typography":"14.0.0-canary.f81fb1d23.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.f81fb1d23.0_1636756839929_0.8014092323351802","host":"s3://npm-registry-packages"}},"14.0.0-canary.783f6fd5a.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.783f6fd5a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.783f6fd5a.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b3d97f875a34d272f1853952a61313e826929749","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.783f6fd5a.0.tgz","fileCount":44,"integrity":"sha512-oC8DVBfWQzmqrgoqsD70+uqQCFzXu52ACk5VE7RC9rVoAow+j/B9BL/O8L/dM3reUjcyjbJxbAmCGPvVi90Mrg==","signatures":[{"sig":"MEYCIQDAjtDMJk7Un9azg9SjhhBh+RmhD0Pi4f/uZmjHe2Rd7wIhAOJmyTSX+gWh+Iti5KCcuE0FkjmR6/t2kdP+4zLYUKFE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhk0aqCRA9TVsSAnZWagAANvoP/j7R+vaOAg05n4sbQ5gl\nQuBrkKRqnf3b2+c/a+/08uQREKG/8rklKx6WENHVVZjB4T7ZLhnXAuquWajM\nWmm/x4t97JlNLS57xAxjZfwcwCFPyauH4fuwTYQ5Ta/x4ccQd67CZtPr3ow0\n7gUE0ZTry9pHd9ekZ43Tqxoa0GvvjzWuJ0PF+iclsflwcFLUf2xxwkYPbzdI\nnCEhIY+kSr8cIoCWtGm5PubNcDqrjies4KReg6RIRDAYIwhNedBNG9ohw2Cv\niI9C3Xj3loRmJqj5x+jJqePFcbnb5zOPWenTHhNPk0cvBX3uJZALp5F+OyiK\nBfZtQALadiYqIm75iQmnVDl2cHya1x5TdFgX/BBOUcw7A/N2B+XtIaEP+lBu\nE0v6G7AdqFtyyZlCffZSq4xCk7bSl0FUpsHxmTzwy086MuRAVdZ1jrtMfih8\nK6kMIF+1VZ5dXbV3Q7PrsAI/FJDnEqeYhi9PgF+j71y8JFdTM0VXzQoO8dQO\nd9+EOnjnvf90H6aAB5UwDo73JgZnTbapd2mitUZfe3m4FFePZRcOxGhR4Iyp\nTYB2JMUE+6eSL9OLG+Rgsu4YHyWKnswUKQTP/4H+01XGxxyRnePjvPQDv+2+\nPeUWX1inTr/KXbzuQxKL9Os7J/bRYs1/nOTRBYZaE+hQBUhAyBkbKXc444+4\naYvo\r\n=XtnE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"29ba9297d5424f35d235c8ff87e393874c1b0a25","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.783f6fd5a.0","@material/base":"14.0.0-canary.783f6fd5a.0","@material/shape":"14.0.0-canary.783f6fd5a.0","@material/theme":"14.0.0-canary.783f6fd5a.0","@material/ripple":"14.0.0-canary.783f6fd5a.0","@material/animation":"14.0.0-canary.783f6fd5a.0","@material/elevation":"14.0.0-canary.783f6fd5a.0","@material/typography":"14.0.0-canary.783f6fd5a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.783f6fd5a.0_1637041834302_0.7998248002989619","host":"s3://npm-registry-packages"}},"14.0.0-canary.d57ec74c7.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.d57ec74c7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.d57ec74c7.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"944cc815935874b3f05a402326bd1cc5580f9569","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.d57ec74c7.0.tgz","fileCount":44,"integrity":"sha512-cJfd6aayM5N0I1UFqTJhjdAiN/w61zg8x4fXjiyxa6MeMUs2mx4jRhcTz7o5vyBarajRhF2+iOvSuHvRY84sxg==","signatures":[{"sig":"MEQCICO6vp2hz7ZPU4GHWzwykwQWKwWqnfR1uIfpxQ/dxp5LAiAawFCtzw/cv+8w4G7M6XBrXiINbWUqUPSIT1OLlrdLMg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhk9mECRA9TVsSAnZWagAAryAP/0TrGR2Nk+Tsb0z7thMl\nw/cFuHiixSgfO3dFoys05IrdZI9R+796guZ1rETbRs21stkNIZBM89ncDowN\nlTy0K80ydLk2bewCVA1/UvjHK7bKNQ9+6DkIGVf4hCMyfjH6yHSc4hFAqFHq\n4lMbRR7PoZfcrw8RNm3ESF5p48Yi1js1HOtIOy7urO/A11uu65fRA7lDgv0k\n0soIRG6f7vstSN3LWChkK7+MeqMzVnMlz4K3lYH8cfj+viPH8uFrUQf11YUP\nVzV9lyDz47Zss4sflthM+1mEJYTjynQ9sGwGzxp84cpY+d8YCHruZQu5BHTe\nFTBDtzoY09gnnLSLBGVIa0/OiCYCjtk2o+2SSDo/Kqb0qNuGWaXkvVZ/ISbQ\nKmyBhMWqnX/cOh6oeWobGMpIrFdlkcJ8eUGXxq91he5Qnw0S/97CUiGcFve0\nCN8VMo0L5OHvuaaohs71BRmY5oOJ2FSTm2ipH21/lUnqHo8zqj3lLpvCA8oM\nWD2eZ252+ufUF7SX0u5iAgJ4gZK6oc87icI+qhul8ctYmmrlIQUevTlh/iLW\nKxCmmAbqbUvHuMyZ7poEabAbgXYxYKmP7OKUnq3l+NAc+6x57wNf+5KFVPBa\nfbNdUzF7zS4SK0dGwyRakFJk8UKkoUCbnSWo5Hl2q+LYcYdQzyiGl7kY3G+A\nz6fw\r\n=7LMJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dbbd8db21de66e88b3e713faa99419e6b2f53c68","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.d57ec74c7.0","@material/base":"14.0.0-canary.d57ec74c7.0","@material/shape":"14.0.0-canary.d57ec74c7.0","@material/theme":"14.0.0-canary.d57ec74c7.0","@material/ripple":"14.0.0-canary.d57ec74c7.0","@material/animation":"14.0.0-canary.d57ec74c7.0","@material/elevation":"14.0.0-canary.d57ec74c7.0","@material/typography":"14.0.0-canary.d57ec74c7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.d57ec74c7.0_1637079428782_0.39895828600719496","host":"s3://npm-registry-packages"}},"14.0.0-canary.554c71829.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.554c71829.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.554c71829.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"57babbfc8615395e1c0bb30b2d7806908dfcca8a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.554c71829.0.tgz","fileCount":44,"integrity":"sha512-p/MSTqja44okIZgtdhFeboz+WZv/6xIaN/XSiUEBcVVX+KHssZTKdAvKPKoaCH5zDh4K9/medPA6idcbZb5RQA==","signatures":[{"sig":"MEYCIQCjodzqxHRcf4t+Gntft9fNIdxlGfF9WS3GJSksZ4NRIQIhAOOHudHK3BtjTQBKT99pAhFqz9okaoV7nwIa7kvjm+pX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhk9otCRA9TVsSAnZWagAABx4QAJaNBEPDl0Iv/x5puW29\nMcBJwSihIfU+ff+S8oSQKHJXzV4PFWm8ybJIBc/wjsei7FG7v/Y++5PNNNvU\ngR0Tt8el1L+b7a5TXrHVlA05NTu131v/YXnLDYH97mVcc+tVKB1i3IbkvlAK\nVZSkQPbOUXcgt3oP5BF9k2hbwj0CVX9lHTy2FrSHxIfGQgnT0ReeVBdBhH4b\n8fIHdmz8SVud8GhMY6ATvix3R0T9G1B35cc/mxZH7C+v/m1f71xWMw6459n+\nIPqQ0oBVLexyzLvU6rBmg1sYPbGH9AZoWvTai/8ocBackD8e4zwwD6t/64ur\n9mPgjW1CcFiSEVVfEkmpW2BlXHDwhF69HHs6fxuyYXhC3SNxruzhEwtt+U7T\ncdyvVaMeigulgpL9J32cWe8L6ohHfKuL5MkIupFZw1HTacv4phAgQgTrncJv\nltmXibREYJoBC0Y+EgAYN6EIAL8jZ8NZ0GawDjy63zwI1534aWxHHCpLZ9hn\nKpvgc9489vIjBpXQOyCBnB/F53l4KQ1ClY+GjXzU8Y1vTA//j5r0lSi+E7h5\nSYytBwS1g/VDCp0of2PKmEmtPUMsBJeqbZpemuxKj3Wq9P3rlRRv8wXY4mFw\n98rYlmscqMAb3CaRQsA5AnYLV9oBPdFM6cjsJmk/yVJ7JIkW4AWjCKWd15RI\nLxHO\r\n=m94h\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"be0799ddf10fc34b46ab20d754f7ef73d9efbefa","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.554c71829.0","@material/base":"14.0.0-canary.554c71829.0","@material/shape":"14.0.0-canary.554c71829.0","@material/theme":"14.0.0-canary.554c71829.0","@material/ripple":"14.0.0-canary.554c71829.0","@material/animation":"14.0.0-canary.554c71829.0","@material/elevation":"14.0.0-canary.554c71829.0","@material/typography":"14.0.0-canary.554c71829.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.554c71829.0_1637079596888_0.5716106365758997","host":"s3://npm-registry-packages"}},"14.0.0-canary.3ef470efe.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.3ef470efe.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.3ef470efe.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7a832478ec8331837937f44fb04d633d6c028d3b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.3ef470efe.0.tgz","fileCount":44,"integrity":"sha512-YPcu2/qqknUXzu8IDIBllDuIVnK7G8FdYxaZaFUOC9yZfV3wTdmEzy0IJ/bBWMR3Y3rYKPmb6Al3wwW4bX/dwg==","signatures":[{"sig":"MEYCIQDGH/Syl9nX1PApIGUBtzTMowYMqf/nEVNpGXFatsq1KgIhAN4U85lcnymf0dpq5wOPtvYFKUUix2ltcyfpBpR6XNEu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhk9tOCRA9TVsSAnZWagAA6Y0P/1HOgtbI7OJl1hdFSaPg\nn+L0sb11/2u2+Aepy9Pk9ekC58qw4W2y/P3Tr/Ag8O9dy4W+SaxD+Py9Xknd\n9xzALEqe3+5eJfyTYhvX2v3xlcqyMpn9kQGuJu+DTqxlZ13MqIC9b9no7Rys\n8txqwJElaa3+wHNBOD569enjQIQvK67yDWKhNPFZFGKj8H1P0bwRPOeFd96Y\nFTB8uvhUDCT5MyjkTTtu33R21AS2mG9Sf0IWc+LPRSoxqjYrHl/vG/fiLRsN\nO4HpvbvUCFumghp5tvAFbQ7A+B8hlktl874Hmhskj03+k4dTJPouDcUf+O59\n7WjXtd76TzgCGKDmWzUox90aXgKtGYVzZjYOIOExgYhf8gHQdWOuTNCqZfRS\nxf4WazsFuIobYG6jueZV8smSsE1wttHJG7LCNlo+pKKKjTK85o9W7pDVPCyJ\nvjFYgKDcbAAguYcTroEi7fwJhcMkISRY+OygPw02dN6hkEXwJO9tLU7Ky0JP\nNlWyg3dqMYKWlVhkkCnmfhR9AnPmvTmN6jRvupopLaQo4qQtUnIJ/nwoVvsH\nd1TWGq4+C+eLrkbnLCad35hzSncKvFGhXEXWa2wH+uC7Dv7eFI0WPyUdOv3l\nILkWBouozBm6Wq6MbEq3/9WsqvAiIoMetzrljoq3OjY0r7dfZVxafB4OQrOg\nhb2Q\r\n=Gl9Z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"49429a109e0c13bb4f9d8fce0142cc5f142a6afd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.3ef470efe.0","@material/base":"14.0.0-canary.3ef470efe.0","@material/shape":"14.0.0-canary.3ef470efe.0","@material/theme":"14.0.0-canary.3ef470efe.0","@material/ripple":"14.0.0-canary.3ef470efe.0","@material/animation":"14.0.0-canary.3ef470efe.0","@material/elevation":"14.0.0-canary.3ef470efe.0","@material/typography":"14.0.0-canary.3ef470efe.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.3ef470efe.0_1637079886000_0.3379758149655101","host":"s3://npm-registry-packages"}},"14.0.0-canary.61a28b2b5.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.61a28b2b5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.61a28b2b5.0","maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"76dba8aebb64f75ed2498fbc3d25d717deaf55ad","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.61a28b2b5.0.tgz","fileCount":44,"integrity":"sha512-8Lo3Vqu5KHxGKQV86BODd9uWpw9MXS4GMQnJUCREDzhpdHkL7ptgWXzGNvZ+BPQtLtZ4eUGMaoJHHWsJdK2dfQ==","signatures":[{"sig":"MEYCIQDwyxr4g9qmCVrqtgoW2og9QkXVv2BhAwiPspiz3Yv7ewIhAPm/mN+x5Kt9w5bWaGNfdhaqnll1ykTvgzBDXzQtKVnY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlVEmCRA9TVsSAnZWagAAciwP/3UaQ3r77EfSf2u44BkH\nPn8PGe23VIdoo06nv11awtoGQlqtSXekXyMnx2P7lg15/8Qth8VFCGNO6z+k\n521P+23LLhMfOaoMHIz3iSHYXqG9+bSGBrwMjHn0xo4/EwgzGKne8pVNF3Re\nTUrHzkcIyTm/nxiVkEfOvX6f8v9720I3GxsXnhYeaRPYfAfB5tUmRv4gMZAC\nYKaitjtAgJfrEC2P7tCtxelVklXn0k2wq2Y1ROXVDujr3NetAqcb46tGhXmc\noda273hnVoW/FVhoC+U2utaVjdUErrfj+4GvupaadZtuGoyvar5VaIFB4+uo\n/qsLcRjTTDyDxm/3nQAfhhsJPTkvsAcC9wF/LHuzK8pe64NqK86NDMkpRNYG\nUIAfrHVf1pDo/SJo4/4/D5SxLjcgM8t4++874iutEAgZWZopOrJgNRxoJ9g2\nh9DbCBtLVYYfr0WcRYPfgLVZsTRyjBL2odFa0exzXPtD/qjBhU3vALAhCybi\nUFJmT9ezIeoRVPjhTSmPn7Y4TL9x3yYBQrQ/mTGRJna4EvnmymlvE6ZeeJfF\nsnuDO3m+7GDaMcvV5teoYAW25RcdtAiR+BOaSRy0p3xRFY1B7gRgGroGaCK9\nD6WTYtKTVu7v2sEUE6usZ+tL3UHXVxs0HvZx5WWuP6FC8aTjQMjvCJ2/D3N+\nvQqb\r\n=ACL1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"314b98aa8ec5a35ba8a45706765f4cd7496dd803","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.61a28b2b5.0","@material/base":"14.0.0-canary.61a28b2b5.0","@material/shape":"14.0.0-canary.61a28b2b5.0","@material/theme":"14.0.0-canary.61a28b2b5.0","@material/ripple":"14.0.0-canary.61a28b2b5.0","@material/animation":"14.0.0-canary.61a28b2b5.0","@material/elevation":"14.0.0-canary.61a28b2b5.0","@material/typography":"14.0.0-canary.61a28b2b5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.61a28b2b5.0_1637175590512_0.4597204833542552","host":"s3://npm-registry-packages"}},"14.0.0-canary.fae6c652d.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.fae6c652d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.fae6c652d.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bc5b9f3bfa750c1f606988c24fe40d7020ea9e2a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.fae6c652d.0.tgz","fileCount":44,"integrity":"sha512-Q8qBa6vT3+ek7aDt1hKwrtJpkvQXR6qRe6KfWtkaMeeYijOM9GWkFLnaZHv+LP6AoBAQDUUm3Up3hxaPwrOGIw==","signatures":[{"sig":"MEQCICcxYYAhBqS5ve+ZgsYbIso90xYTqojMaiQCZAVpI4HiAiBlJU6OrlRp8NgCpvlCZ2mWafBej9E2svkdi7FHFTC8+Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhln5+CRA9TVsSAnZWagAAnyQP/0X78j2wWUk+dKfG4TIs\nAtRgfm4dbqW/FXCeA66wg8DQcHViO6E6IDA83jnMKvJQLVBSCO57ko0TcOeg\nLe/7YS3/LP3HVOwb6Rroz2QajnThkKdsche8zVYqjaPal+PBB2C6YENIdppd\nKTYd3QdeJzmwVxZHzqievMJoC6CGHwtYbkApluQvt7dJJJ2rTRVynJHFeiRy\nF2+0V4mM1q15eg+RzOGUmAs+f2BllmUgBZBYY/wHdYEGRMAyl4sGPx3o675S\npq0/FOng/3+fvvt7IXKmOvBJSmGM8giVGlCMK4oSSuTjG1LM4x6COXajDDlP\nmokqzpxfNMEEf10tjyH9WfpWG/v7IxSk/3CGlcCBchS1I05GymwDR+pfq50Y\nLCKAQMY6RwSDajibkWTOQg4xC3RGvwrBtru1zt38u2KeuybQX0E69PRid9fW\naRyYisOzA3byv5E9u1C2EcEJ0q7L6Bwqc1ktl18NwmJI3ozMYGY+zX02LMQo\nQyYIS0Er3WnF44rLO4B8EF4oFANLpV3sFh+tdADgG9/+f7/rtIh+Jl3t8Xz/\n5x2kmHmTPFjevLyN6IB9BI7SD2bTc9G+lmtXd1DpJcfqoRB7/OtY7y7B6MR2\nTQwDNFnQRaakCSqWaxIko/hr7Do+tqSndw3yT0EibMZzeBUOMtl1s1uUzQTr\nUB4G\r\n=73Jc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d27c4bc9db002b9009b70cb7437b393ce59b9992","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.fae6c652d.0","@material/base":"14.0.0-canary.fae6c652d.0","@material/shape":"14.0.0-canary.fae6c652d.0","@material/theme":"14.0.0-canary.fae6c652d.0","@material/ripple":"14.0.0-canary.fae6c652d.0","@material/animation":"14.0.0-canary.fae6c652d.0","@material/elevation":"14.0.0-canary.fae6c652d.0","@material/typography":"14.0.0-canary.fae6c652d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.fae6c652d.0_1637252733871_0.3638012248167659","host":"s3://npm-registry-packages"}},"14.0.0-canary.978a3b5bb.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.978a3b5bb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.978a3b5bb.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8cf2b9f624eff22aeee545c500f45027da345b2a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.978a3b5bb.0.tgz","fileCount":44,"integrity":"sha512-0T2a+sj+XGVLOeHHjepPP62kn+LRFCYNpc7Znllo+5w9WwFh1NgZ+53/7d8pjitf+MFh+FGA3BLuRVN60axpPA==","signatures":[{"sig":"MEYCIQCHa55RgNcdWYRNfCsojSQiuV8LM3PmLCQ73OqpnHza5gIhAIHWB6b8nLvxMOWAayyib3H+9uB1NaWVH3MkO6hlN1Tu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhl/2KCRA9TVsSAnZWagAAJqYQAIKyrMb7AELurmqfpHQd\nUhFc8kAj/yFrmDFI7Iv2rysLIPPJy6U5jG25BOVI4dpEWSjX3bCCbndh2b/l\naa6+n8+Rnfz5q2DIOE4GvCv4/zAuWmwfMaleNUPHBDAvHlHyz0Yd02WUnY1J\n6aS4kypRfRLT+kHQqgJ5Ne26zvnhJ0ybs9a1wTKZQonqKaBPNaMP0LWWTNcK\nFrRweKoxMa6IOq/hTLYdagih9LunPM+N2gvUYIJaNLaE7YrA2TezMnm/EdTV\n+QdLnWTL/p87v6MZx3+d2gbGe2eUanag82yxN5mqi++MbHm1E78IRgV0ZNi4\n2AXm18S7EOvh2F6On02laL+58uFJMfQKeHYNlRB9fbM6kItrIQ2bh+rPOyfc\nHHKOYjqI4tVHhHv69nFgMHG8Ejs8MixIht86RN1tcGcgvt4+zIVDUoG1BDGy\nJ9/uaYMk35n1maIuHVX941gH16Zbfkvpz9/Bzxd7gnSsP5M5UfCJow6KD1QF\nNE2APL5ovQW9L3Ftgqgy2XL3ddc228pvrHjbb5OzWuPPRexPvtsFjfBOsE7o\nVV5AvafZ3+Ew4tzJHLkoVhBctcDVstL5XnjrezfRhRujV92kQ793iyuDYix2\nDKSBHvwKjKn1Q9b/m05vQAzUz3/i0PSuTAK/7EfuVDswRDrUW/DSrbG/SR6W\nUsXz\r\n=W9Cp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0d21a3472967f5ff791662e03961fb034a9227d5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.978a3b5bb.0","@material/base":"14.0.0-canary.978a3b5bb.0","@material/shape":"14.0.0-canary.978a3b5bb.0","@material/theme":"14.0.0-canary.978a3b5bb.0","@material/ripple":"14.0.0-canary.978a3b5bb.0","@material/animation":"14.0.0-canary.978a3b5bb.0","@material/elevation":"14.0.0-canary.978a3b5bb.0","@material/typography":"14.0.0-canary.978a3b5bb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.978a3b5bb.0_1637350794046_0.6216468410085927","host":"s3://npm-registry-packages"}},"14.0.0-canary.e6f43cf44.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.e6f43cf44.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.e6f43cf44.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"af756eab1db077cbcb52bc82a4fd2147dbedbe79","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.e6f43cf44.0.tgz","fileCount":44,"integrity":"sha512-+IEYZCWTsMj2icYCPsNu/U+J+Kf9adzcRqfVhbiy7cDAF0TNfHNnBxwxooV5VoCRoVYHWBa4K5evIiF76/go7g==","signatures":[{"sig":"MEYCIQC+ksCyafvDFFNsAqHKhRkzM/50CsUnvW3nuzQ6JQPR8AIhAKyD6e38TkgD2o8cpmvJMijOMB3vGCSbGfDbmoFi9HUk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhm9TvCRA9TVsSAnZWagAAVdcP/2R3QU+nDWJhXtp2d31X\noUznfcxm3hvB2Sq1x0e/yANKycY2tEgnOHddwYVCmbNMOgsUR/unNfHFQo7Q\njtlekKiTpXYF+2lnNH/WViQaOo4A7Oh+0U+EPwVQgjkreRwu4H1QNvREP0nH\njo53Pa9l4jd1N/HoJCGIQ35ksTKVtmurph/vCpLfcRDaefW9Xu67L4g4TPhY\n987xC+lHfzgVVe95h2ZFvFFvI9J32gD74XDhuFOeY08uS5flr0HQ6jfx6E9A\nmuautwqD5qL2u5tik68QuiPOl0FJaEaOlX1vTw/YT+yD3los1Sura5A1tG3y\nD1ayM+gCtUQhC0+QHu8ukC0YIaljRVHN/zGn5R+pbWG2cYQLrN6Pib28fYY6\nPiSvuZ6ynqiJ88ATsExiXYict40cbWS3wa6CPHcuKlihkqbmbV54P00fchRn\n8XgiYgmvS7IaCDMVcawZA8zQ4lzFeUhf+aXOW9Ec1nt7gkDS0B1HJp3wHu21\n9Nvs9nLxoiuAQDR+caYe8LMge3AFh3njCHKNfED4F8imKrltXKxiOI3sf2Rb\n5Ph91//MueZCKw4U03RmJ89jy2QMA5OkEU0+imYS7GN1YObRVNqA8T8SrUyb\n0y6dq47Xl3PDc9QArmAWJn4XiQgbcDQYIqGQI4gIoZQt+TdHT/JKxw2Pfsld\nb2Hs\r\n=8YKc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"36200e7acad50905888cd5fbe17075663a96ef91","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.e6f43cf44.0","@material/base":"14.0.0-canary.e6f43cf44.0","@material/shape":"14.0.0-canary.e6f43cf44.0","@material/theme":"14.0.0-canary.e6f43cf44.0","@material/ripple":"14.0.0-canary.e6f43cf44.0","@material/animation":"14.0.0-canary.e6f43cf44.0","@material/elevation":"14.0.0-canary.e6f43cf44.0","@material/typography":"14.0.0-canary.e6f43cf44.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.e6f43cf44.0_1637602542881_0.9972303510606271","host":"s3://npm-registry-packages"}},"14.0.0-canary.39cf14bc3.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.39cf14bc3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.39cf14bc3.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"80b4a2f5914f572e7c2505e3daf262cbec3fcd90","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.39cf14bc3.0.tgz","fileCount":44,"integrity":"sha512-vnZxXdNnIstxjyzLvjCvWf76T2iUxa4hoUrwd30Drg6ZSwNCGu+56oZ2rTHjmpoZ0sVm0UfeKZfE8+OTWfJXqQ==","signatures":[{"sig":"MEYCIQCYzRhfgiYhlXl1pGP0NV2ONvP2Zoy2NaqL8oimjf6v4QIhAN7bLnFLjvbECRQCLQRjYXmAyp3SF36xx0Bu0SPgTYFK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnCIiCRA9TVsSAnZWagAAVIwP/1UCW8XSCqe0iUtDVj4x\n8+PrlfsFudydOIMkzbp0H6aCMJX0XghB3fgelWVT7NSy0WW/Zxj8GmBHspe5\nk26CcPIcgxuKNSfqwypqdtOpYVJecpc84Je3z+lJmiNNJIrzIy+qaeSR8Q5S\nq7KzT+BfJQ9aDxhU7MDwd0FUBdZ+kO2z9pJ887BON5Jyajuyp6S49fxQLjLx\n8g7moLJkkLAcuY1Hh6h/Jgyi5dnrcdB9Dxdg2EpZHiNcrTVbXFeR3/dCuOKj\nMVWvmfPubrwnQhXdXyp0VXMLH8qEPXlWKocHCtR+mBTjRQxIXQayq3rEip/W\n6f/r64NPME8YsSowOmxIEacwx9owuFl3tIsRuV1/RPiXlnv5NKPcAuiijFE+\ncPdtExQLP+b+Uiz0adtZRKBrzemyYMYeHyGhJUEZu/9M3qL6fec93n51iTCO\n9VTHa/DzA399SkZVrn7m/W3coxYvXd6jh6zDPQP+ymZOULGweRtq8F211nrs\n8uuYBSdiQHQ6vvNiGFxRHruPWbnXBBM/YB99Gb9BjOTokiw4DQMboNoeI4qh\nBcS/4cM6aJk7ZLnm2gALgjn93fQQH8NVl4hEcB4ZukiN1GeiDICLKsPlwI1z\nDsYns9eGBgT3qD6hAZImXTsu3/cRkSzHkxiZe4c5DdO4yzZvWhGC9+G8U4/y\nVD9V\r\n=GlxR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7a4dadfef1095fc344517a394b0286ecb59751dc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.39cf14bc3.0","@material/base":"14.0.0-canary.39cf14bc3.0","@material/shape":"14.0.0-canary.39cf14bc3.0","@material/theme":"14.0.0-canary.39cf14bc3.0","@material/ripple":"14.0.0-canary.39cf14bc3.0","@material/animation":"14.0.0-canary.39cf14bc3.0","@material/elevation":"14.0.0-canary.39cf14bc3.0","@material/typography":"14.0.0-canary.39cf14bc3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.39cf14bc3.0_1637622306738_0.3442331948827284","host":"s3://npm-registry-packages"}},"14.0.0-canary.93134d453.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.93134d453.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.93134d453.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e6034f5b3af106ec11bfe25c0445db6ef5943bd1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.93134d453.0.tgz","fileCount":44,"integrity":"sha512-tJkndN45ZvASH7Rb5mk6mPRMFZeKpwxWaJHpTvxxb6Bk/gJNvAVe0/BnyK+7SQHrVi47p/FUe+qXR9cmxdvtEg==","signatures":[{"sig":"MEUCIBjQUpRTszK9UuzbHT6c455gB5YeY9/eH3MYxUaCkInyAiEAy7BWbE+utTrjiOC2caDNK6f/vPCb4p2FWtCX4bLfHvA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnQtFCRA9TVsSAnZWagAAPcQP/0QK65TEYpVdrNJykvhh\nZZgOx0Ls5Tl1r8OLyB+OMRpeMob1cgqAFQhTqyVVVyNwuQr+5/77s5MiE5rV\nMBYG0WCU3AKLtvmEk4o1qNM/XwxCN6h/3/Ris6NGrSabGh4uYvxeQ4unZA7k\nu0WGLJD6076Sao63vLgwLOIXtbHwz8WKXfrhUPKDeGa9fv5y2v/WyrPPyVYc\n+i9Qg4O5DA7j5cNdQSBwF1S6zmaqR90elqFx5EMruzL3V95bsvxSd8UMs6vG\nShGlveaVQUYzFNLF9tDeuYO/g4tgZ7I75GTuLEUV8kbFDo8W90uJ9GzDBs8l\nAbKHjBwk/N4o3cCaI+hG9sWOnrj6C2Rzfx85UuhEXhwEcNtE7mTMxRksaLzd\n/Ti0wpYm6GhFpn7+ee1Qcq2QXVoBUAfeS5M5HD0pVP3eMcVamOkKS0p2XMfc\nqLM3pl8Sj99z4R6VCMEQ4wSQecnicRztSn0OvJSZwoE4VYM39K7kBQQk6Q2t\nIUMJGFVtDZXmJLzoicqqcMUlNdUb8To57oXqjfYF7LwRRdlPIEwIV5C/yUyn\n1brq7TSiu0AMhlxTh7TLRAupFhH1AUOOW7HWtOwMrmsvwjFQZyhvfqwzBRp0\njLziDSrtUbJroeqmmOwHfVoyPYTWayXTUbR5zHMuHCoMQS5k+O8ItPQQ8+zw\nWkfK\r\n=uqdi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f37d4e46e027a3258621f6950e12796013661afc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.93134d453.0","@material/base":"14.0.0-canary.93134d453.0","@material/shape":"14.0.0-canary.93134d453.0","@material/theme":"14.0.0-canary.93134d453.0","@material/ripple":"14.0.0-canary.93134d453.0","@material/animation":"14.0.0-canary.93134d453.0","@material/elevation":"14.0.0-canary.93134d453.0","@material/typography":"14.0.0-canary.93134d453.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.93134d453.0_1637681989224_0.3149115121218744","host":"s3://npm-registry-packages"}},"14.0.0-canary.bbd11268f.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.bbd11268f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.bbd11268f.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3be28a4192d8c37eca63b1d218d217ba8084c29d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.bbd11268f.0.tgz","fileCount":44,"integrity":"sha512-Rvgr5Qd/Iq/vZZElrkmTDC+eUVXmydokGq46xUfCFtIjPA7iW+HE2PFzsVqaCRv1lzJ60z8f21FW5oYvXekAhw==","signatures":[{"sig":"MEYCIQDcerRO6rf3uLAJerEtTS4mEpz8C3Wf0Hr4ES68sfesmwIhAJC5wvHTuQ0XsQq/bFCW6K2r20AdcZ1r0pyl5veOu63K","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnWwVCRA9TVsSAnZWagAAYZ8QAIq7u3BFPpFw3e/9IWmw\nMzXjYwgh+MoUGFGv3Y/ktbp38NNvrIQfFxlqIyHwdKQqN2CaD1eilfjnuOVc\noaInjUbR5JJzHCAEySRaF/X3LRNzLseADHnlPfDl0uIXcudwkF+j9zoxbbB6\nT9pWv26QLPS/oN+BVM6t/tawDNgFH/QVCrWM85J6jz7bbebNdC2NnCVQJBqI\noqytFqsNKMdmJAPz77uTzjm0LjcAqyrDCFIjANYiIAmtKMwkeielfTS6H3XG\nDLKCU1yVOB1d5BDkklEuQ5TFtmjYJcPXMKyJTuKP39RzEbg54vzDXp92St2I\nYRCq7gCr+QKI7ufWPAYRMjHj5XMtW5tJnpg2IjTj9YIJxjGJ8pcgj8F0OcfB\nRGAVMvVKES2qOJTg1HLk5LZuIa+EkDc4HI+tpWcSHHVfaFlMppgrwFyp1UbD\n9wfnphAPhv/89B01MA1VErP17kTsdDV5bSbN0k/ScrAjWCxgQC5XludkRjf0\nCoMWynnQZJz0l5cIsZ0oNglPC30ApE/Qz/y1ps8q686S2juTS3rKIwzpekmv\nR62Gy6C6IqjQtQuaQEl/EZToxewOdrRRPYQubBWT8T6QvmddoFI0iZiL1MZS\nXc+ZmIvlf/xFII6jkTmNvM4aRKm3l+EY1yFqITUhlhybnHacd+SX0Vy0ATio\nLV39\r\n=gBmg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"46484a77ecd0c6d7b548301f4e92325ffc4f8010","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.bbd11268f.0","@material/base":"14.0.0-canary.bbd11268f.0","@material/shape":"14.0.0-canary.bbd11268f.0","@material/theme":"14.0.0-canary.bbd11268f.0","@material/ripple":"14.0.0-canary.bbd11268f.0","@material/animation":"14.0.0-canary.bbd11268f.0","@material/elevation":"14.0.0-canary.bbd11268f.0","@material/typography":"14.0.0-canary.bbd11268f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.bbd11268f.0_1637706773515_0.17460284548892724","host":"s3://npm-registry-packages"}},"14.0.0-canary.3db9c4d3d.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.3db9c4d3d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.3db9c4d3d.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"47e6efe8c501c71a13f445f4ec5540fc7ee9cbe9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.3db9c4d3d.0.tgz","fileCount":44,"integrity":"sha512-ToEsAwTUL+ltP1BwXPXnbR8gHedkwiEeMCK+QHrqep/SUWXEn3TQFWkSSvSw+VIKihX0iGlYaFLKQT2Of8BP3Q==","signatures":[{"sig":"MEUCIAtxbkuQNbwuuAAOK6sWt9BYHlTz5sI5AvvTpQmTyCXFAiEA0/LmliSI0MqdIa72TW1o3Btb3Q+L6WTPJZYujB7HEvQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnlxXCRA9TVsSAnZWagAAHbIP/0orCuB++lTyq2aT5cN6\nBTAilp2FmGkhg2Q4ErWknPWSgmbQ53feCsyAhyGdkLV8UX3IuWf5vIHgjUEu\n7fGEnGChKYSSFZfOV2A0QNe/7hBm9KtQ7oxZNZpstRv5ElQcgFSEfbEviUqc\n9uz+hzRx7qs9i68JAf9Lp1Xbm56Sj+5DLOM04C3lV7JWBAjyvf1+FQJP2f2A\nx5shRXPXVEHAryM1QdrXViHnd+XzKAiyd+LtkK6XHY4qaDhMxEt0LaAgcgyQ\n8DLq6ljuZfZYdZ6HA5JgS+Qg3pjeuE1AdGZK8yifWED2e6J4O8Zg4vkMMT+O\n4bmpH3ObwMiUG5jLRvgn0Rm7iWKtWgfPWtVUy8R2zKjcL/jIHaboOzdDaoEn\nN7sNNpe2bbqhSXNBHtz3AgQ7qR3oqLQG8WT0Ixipvky+RNvXESlSoDaXYjs4\nulQHJUPLlB5B/qHRZZlRDYlxpXL/fmbl12uSSHBH4fgMul7KLXDcktRe0bCn\n0i/FtzdFLZ63veG54e1cqAZLCLIETcVQAhROWOK4cVZCnSdiouY05b8Y4P+W\nRZvbkgRNPUOuJtRBXtgii5XVhvyIl7Sbb1hTobZcpPh9laPgOgMXjr71hwK+\nQiTwjmFk7RIz0Iko1LZHb/WEWIkyGhnlp1uM3337WeHJBDfU1r/rT2kKdXX5\nCEiv\r\n=YAAs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"61e9de8c9bd6ef83a5f0949cf53ce4a8b689f158","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.3db9c4d3d.0","@material/base":"14.0.0-canary.3db9c4d3d.0","@material/shape":"14.0.0-canary.3db9c4d3d.0","@material/theme":"14.0.0-canary.3db9c4d3d.0","@material/ripple":"14.0.0-canary.3db9c4d3d.0","@material/animation":"14.0.0-canary.3db9c4d3d.0","@material/elevation":"14.0.0-canary.3db9c4d3d.0","@material/typography":"14.0.0-canary.3db9c4d3d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.3db9c4d3d.0_1637768279484_0.5080510390159261","host":"s3://npm-registry-packages"}},"14.0.0-canary.78305b6d5.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.78305b6d5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.78305b6d5.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"14d364a495cb04d4345ee8a1628a4506179af1b8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.78305b6d5.0.tgz","fileCount":44,"integrity":"sha512-Keehbi+sh09X6URO9X0/PJedKwrKXv8SfRjy3HwcArQk13HnpdprgV1cWgjQX5doyD07bxKnuRXt0nHTeR2tZQ==","signatures":[{"sig":"MEQCIFzu0ZQ8KBOY/6QvjcKPA47XCVq8nnkSqYwnWiJpdGGqAiB5vNa2e5tnlq6baYthifX4eNFxxpCE2vd7a7YBti0pSg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnpe0CRA9TVsSAnZWagAA5VAP/RMvn/Ty6zAUnSPQ8GPG\n68AYHPgwTt/SBoVi480ijZhdT6jSB6MdZgs7b0JRJzKDnTRlVEFEqUe5bc3A\nnuITdgIoOJNh1I8aIHreryRUax0pOpPuBCvUc4U3as8b4BpXO58DUHPn0xA1\nciT9yo4WbMlFBXD9fTpaJ6t3SW/vGlQNRoOrX2hXrUJC00nqFF+6F0xNHGi3\nixS07dBn3txdA0mgIbx+OzS+gMhrOC6+xEvNMlbjIHp24iCkLIrnr1xoIyVc\nflNUOFV0E6/2Na0AMann6L1Dqhlo8eC+XwjwzuHGKJK669Uq3iXMAMVOzSKN\nU40SkzKBhRldXXcqA9CIeOW1QPbquvtUk5FVB97ifoMbu5lM5LEPDWYmtYBo\nmnkO+hUijjNA1qRpLNxXdRxr+eykxyIoWFx2AlyE80WB2sLwDJuKO3ALfK2z\nBn0DBdQDBnexMlo1tcd2XTY3u6GaCCl3OUTq04HFIXMBn8w9X2GOmULDVv7e\nTW4ArwpVgGIOzOKeSDpVLY0XEo/VKwXRkPwWkJOz0CWEra0zBp8Ce6dEK/H8\n10WXEf46OGETk9qCTYNSqJoNEp8UYGKKZAWhf/J39Vq6ZC1iPP+ucexvhZoR\nWoVXO7K61gMwHMgA/4HCQHdzv6dBaCkHrr36za8qieBqdq1alXZSP7wZrXmr\nrrzS\r\n=lx0B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2885de69eab36903fec52b85e7001eb561624eff","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.78305b6d5.0","@material/base":"14.0.0-canary.78305b6d5.0","@material/shape":"14.0.0-canary.78305b6d5.0","@material/theme":"14.0.0-canary.78305b6d5.0","@material/ripple":"14.0.0-canary.78305b6d5.0","@material/animation":"14.0.0-canary.78305b6d5.0","@material/elevation":"14.0.0-canary.78305b6d5.0","@material/typography":"14.0.0-canary.78305b6d5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.78305b6d5.0_1637783476025_0.07278116418973957","host":"s3://npm-registry-packages"}},"14.0.0-canary.43d08ba77.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.43d08ba77.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.43d08ba77.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f2ecc8889ee004eb34a45cf1b139771ad2f0e7d6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.43d08ba77.0.tgz","fileCount":44,"integrity":"sha512-Rd/wXQyeQZsg+XOOsUmEULezqiuaVYPL3jUo3s2ShqnuWu6qdGSJ7huwHk2dJJ6glNQ2fWCFCBQo0WuMqQ2Uug==","signatures":[{"sig":"MEUCIGdcy0byxt0x96IseED4yGNJIDzUDPoXNGL46XutORShAiEA6roPtnUWWHMrBzAWbUIgMhmM9jCtsL5V+vKklbuSIFo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpqwlCRA9TVsSAnZWagAAgJgP/3ZgXMsvJD5SMMjxIfQq\nQCF+BhM54cSt3fr76K7T9I7yyt9oxYuIn55Pq6oLcBGumYxY88OxqoA6kTjW\nvafXlu6zIpX/KBYnkwYLhf8JP6cO9LpOeNbm1Fwx6OgaqlKZqi8wr6Y6F6lg\nN7xKWIWADZldjpib9BykIGbQ6SNE0TwR+ri08muZbKtAgAgWxzFcvvDjlZK2\nda2U/U7GuC3aCnKKWdKD6XlPj/sFBQm0m3BRtL8AmSwUq3dVGc7vs6pQ0Tii\naR3NiwSg4rG34PwmUYqx9tex/Cdkq/QfA+bHtLfAOGEKPOx2G7aJcn8BGrxV\nNRTZWJW+7PFOGzs4V8/ClXrFSDWCpfS3Z0M3YGsfzGoY/MJkpZHoHjZP5M/h\n3zoGVkZXX1ZIRaoqNBlxyqY84vIEWkSKdgzr9RYxnzijNbcGyJ4i4Qu3th3s\nXqXBGORxcuVjAvdcTF40RQBkSKhXzP8Xhc1vN+fDn+W8aJWHQQpR/3Eb37NT\nwRj6v5D1LVVuQ5kqzGTrVtOPI6M4daI8ZiVpJeNLfkluBELJHQvWqcfkG2W5\nI1gVXJwz99ZUiP6QwPCQdIvJ0PBrtVr7RPVnEoVCR8+748YNw0FPnBnlWxvY\nRVsazgxjSnU2bEDfkr2R1QUyNPAIj1DFdYhwYgXSlfru+5CCsWQejUtBUPCj\nQQQe\r\n=GIS3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d1929fe60ad2c7ba249562f1c1702898df8f04d2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.43d08ba77.0","@material/base":"14.0.0-canary.43d08ba77.0","@material/shape":"14.0.0-canary.43d08ba77.0","@material/theme":"14.0.0-canary.43d08ba77.0","@material/ripple":"14.0.0-canary.43d08ba77.0","@material/animation":"14.0.0-canary.43d08ba77.0","@material/elevation":"14.0.0-canary.43d08ba77.0","@material/typography":"14.0.0-canary.43d08ba77.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.43d08ba77.0_1638312997692_0.028023151147322123","host":"s3://npm-registry-packages"}},"14.0.0-canary.17a072535.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.17a072535.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.17a072535.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"528d099c67c71caf335fe0f2a7335902728703d3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.17a072535.0.tgz","fileCount":44,"integrity":"sha512-LkPCE/4MBsJxuv8nevRSCi0BP4wGGjEMQ6E3MYOyhbN1oWSUBiZvDwAkBKgaL0mGgQBSThkge2riA0rX99apLg==","signatures":[{"sig":"MEYCIQDpcHZkdSUX53/Q5C0xLP5NG3Vi3mXNA8qBAlKFi3/64QIhAP4AJsIQaQFYbJfBKPhI2FWKjZGK7VEhzIvQq0st90sE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqQsACRA9TVsSAnZWagAAliUP/2iFqfFeSkmJKQZ5NebW\nQhpgC7zwxu2F7+CjXJEs/v9UEHK19T4txrRC5dIu5XmNIMdkCIoE/GXNYoVt\nWWQmKCQCL8qPDLAfogBy1o+ee1EyiIc6HlY2Ywn+ChyPhuo0f67Y3nSjuhoi\nQKQR+MtX32dqE+N9Z8Z5U2NHmOC6wYwIcqVKrRfSnGWs5GXl9xED/ttAXmyI\nZoFV+Zm00ecTMwj6nBgUxvqeI8Vi5lng9wpyyAaT8DPUBFhP53Q3fUwRcCwA\nRbKGk0QXJ+Q6ER35QDuXysatqe/vIFhudSMrBL/N3YvWuvq7uWra6EPjcfcp\nhsEHO0Ujei39jVOQgjwiddMeCMHFaa/U2tUegc4DOKDpoYKWZFkzETCuC03k\nedG07sD6hOORgMz42/70tPbflORNmDUh7+MdQX8Nr4eZHTmxk3Atbxv26L9X\n5N1CEdo6q+d7fbEqN8XXfKVkAXlTsKpiZ30A7TXkfQmPfhMnC/cHPiH7WHV3\nVc6yM44AtN6u045ZBugDjHnXMSucWfz0xKmWnPmYsMdnqZYkQg8qkTO1MzlY\nxCb9PSFvgashUDfYHRvndmRFvbNxbnwLRJiUvxZfhiFAHgTkUhCpR7pqoKaZ\nt+Zc0VYlaXxRg65dmubrsbw1cUKJnv0uS1RBQn7I94lvZTA2WhGLeSX34A7v\nrP19\r\n=Qn9M\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"317cda93b55159038a12575fec5c35e9ff5460a6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.17a072535.0","@material/base":"14.0.0-canary.17a072535.0","@material/shape":"14.0.0-canary.17a072535.0","@material/theme":"14.0.0-canary.17a072535.0","@material/ripple":"14.0.0-canary.17a072535.0","@material/animation":"14.0.0-canary.17a072535.0","@material/elevation":"14.0.0-canary.17a072535.0","@material/typography":"14.0.0-canary.17a072535.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.17a072535.0_1638468352726_0.1513730427638189","host":"s3://npm-registry-packages"}},"14.0.0-canary.5d809696c.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.5d809696c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.5d809696c.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3c39f0044149a61015ebfd5c537318224d3fb8c8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.5d809696c.0.tgz","fileCount":44,"integrity":"sha512-cKBZTVan0hJgPPjfUNg/p7654q1JQr7sSE0AeVki8qYNBHsQv2syQS300RrS3hYuBtMTe68idRDteZznfiwNKw==","signatures":[{"sig":"MEUCIFBf3z9hxzOQnF+hz44TwkTDLUFqV+co3dkOHI48AA6wAiEAzYnzo3oF8JJOwXvxbEPG8lWWG8NYUKTZZol6fV1mOSk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhsO8eCRA9TVsSAnZWagAAlQoP/RalHvIBo29lRvXbO85c\n006nEGZDLNZ20jxVa6FnhsJhrL1ZdtkmOFrC+vNQNrCUXaykuBLuY3fds4UU\n0GkONluMhNe6qbiIXyGrEcvovwdPu4hnbfdW+n8T8MCDULA4XFP1N6f17TDg\nh9BcfTPUylhvfj5zwHeV2nE+MIsqzp8eNp/IHY+J05dpCMWenpeEzZO7fkUU\n2F/dsyqOEODkaYvJngmQuSJ+0SQp7YISVdQ89CNr9IJNolx27Pbui8cJ2i1D\nmwunXCXsy5D5K8H5eU2oCnYrA3v+bdsRCygeg9ogGPoGqX2BkDcJp9kbXaTK\n0ifB1FQb9jvbPQP1M0NAOr/UVA9V2z3pDoZKB5BRo6nXXlUbkojvmr9N/Fen\ne3Xs81UjjEHaTuIkOMuupz3fqUjypW1x63NGohTlx2Lj/RiQ26Rd7Q1hbSrL\nz1FwV0dgn+XQyLU8kjz9DQeYjkk/QTIOFH9NXDG6wOwdzTrouRBYmmaEEZxK\nOlANQuESk7lrDB0DO2zmgBecsELnhi0y3xDy8SOHJHrBOulILleQx+hY+Z7Y\nPJYEUrrp0MPsBFCloGx8160nmb0kMpD3b5pXgGbXXZzmc7KleeNDffNzO/lh\nLnUyoT3UHD02MhMicNnXSzP1gP+dMhL70b0whd0zPQXnU/NbRXRWBEER8tQ6\nRQ5w\r\n=tSOO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"955aa3e4252f722f096ceef387b285a197760b82","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.5d809696c.0","@material/base":"14.0.0-canary.5d809696c.0","@material/shape":"14.0.0-canary.5d809696c.0","@material/theme":"14.0.0-canary.5d809696c.0","@material/ripple":"14.0.0-canary.5d809696c.0","@material/animation":"14.0.0-canary.5d809696c.0","@material/elevation":"14.0.0-canary.5d809696c.0","@material/typography":"14.0.0-canary.5d809696c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.5d809696c.0_1638985502036_0.32254043934821097","host":"s3://npm-registry-packages"}},"14.0.0-canary.b6510c8c1.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.b6510c8c1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.b6510c8c1.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"75eeabe046f80d09d7b9ffb861e5fc52962fdbb5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.b6510c8c1.0.tgz","fileCount":44,"integrity":"sha512-TQEAxw5ji14oel0mR7Po7QNY24Qt32ZLXnOA0DhEOGDBgV5l/VAo+M7zOVNNCM23XU5n/UZI++TA6nCewnqZyQ==","signatures":[{"sig":"MEUCIQD0/YOJR5gltDvMwYxBrGUGcle3kpMRDla1Xa6z3etzOgIgXREdGtUwhScClc8luA9yK9b36GEKKHX5J55Ifjhm0pE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhsPRTCRA9TVsSAnZWagAA3X4P/Rr0sWf019/1L43cTB5R\n1a6ccUCMEK847jan0O1+x84Bpqf4QrkzQKRojgWc+msxZonshS4RrT+ZPfJi\nvsZcXKO/nnVGpOsueIbNGPCVZCgbkzYRb8A5pnWLyJcdFrTzM8OIQkCsl1I1\njUO1dp8xb9X1iSDPYDMFtmJ6lw8xq7iHUmZ8EI/CHaiC/zGN57+9uxckUdBf\nHNAqNc1S1Vg95rB2xXAmcn8fqmEKY/T6jq/tSPgr4Z++pT/ERFeDZ4V8c/Q/\nfJz0kGIar6BK5LdxG0fC5IDMgRb0JAi5G3VfSABSMoPaSXfiIt6cyfJtMzB9\nFMO0PTiEBBD3zN+f2gvurHCichCYwwJzPu6u8Eib/GD9mBitI9OoKzebjtNk\nt7S7sJZEpJ0ICb0OGt7FEzCNptnRu82iwkTS/w8JgPIl0wuBaDZjtLHIVPPQ\nOpylMULMn0A8yORMiclVqqMe0CIFQV9M0NSXi73+sKNMI/WhITMNclLsq5ou\nDNj51wqc7DpuCYBScg25DNTzaGiqOejttHch2tAGpaQGDWrNCZgqJ2Kf+bfm\nS9qMCsaH7JciB/ekU3dJOhvCgss4Z0IcPfsFcYmgznk9sNUM5uwErvgLT97o\nNTtqBpVxDjPXlWp4q2EaD6eZsNLX6Z2gqqB01K4U18tj9kzhnuL5aQLL4OR2\naeRS\r\n=MFTP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7b9b6695d55be857206c67de94ea9741aa48bb38","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.b6510c8c1.0","@material/base":"14.0.0-canary.b6510c8c1.0","@material/shape":"14.0.0-canary.b6510c8c1.0","@material/theme":"14.0.0-canary.b6510c8c1.0","@material/ripple":"14.0.0-canary.b6510c8c1.0","@material/animation":"14.0.0-canary.b6510c8c1.0","@material/elevation":"14.0.0-canary.b6510c8c1.0","@material/typography":"14.0.0-canary.b6510c8c1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.b6510c8c1.0_1638986835251_0.9214914412319584","host":"s3://npm-registry-packages"}},"14.0.0-canary.f460e23da.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.f460e23da.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.f460e23da.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"70dce6f1633c207934e13ac4e48f4cd6d7b813a1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.f460e23da.0.tgz","fileCount":44,"integrity":"sha512-X7HV6LBD6R1iONNZALYANT5halnX1nqXGFB59dcvIvqYPV+V4gTJud4y8QYMm7IkKIITh0I3CAm+qYa/aZxsGA==","signatures":[{"sig":"MEUCIQCt0sNQt9nXhZr7mPLMUWTTNXr0XYVskmxrigi3NOiABAIgc2i96cqztP7VHcbLnN6mSiNox66+THi15SO13fspLhU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhs3GGCRA9TVsSAnZWagAAeo0P/jMALkJcfaFJl6M8Vu+0\nCafpfJ82cPvVLqjmHu2n4ZJjHTmGW2VEEmncOo0St0xtI7yRI/4qDLO8Pwf7\nZwebXPqm/ab7DXU0+UkzLinN/QRY2blPAF9z1IU3s7SOWU3LBrfOAy1I3JU4\nIoDewCtsjRuOC1KHO9ydse6kVoooPq2sCTVMu03BW0giI0gWXRsLGF9v37qg\njtoDxnq951kk74BSx26z8b8UgffcKisqgblQei4YVsD5ADmkkVR3ZyqNtyP7\nlLCCrlPEncQ6UMVtqa4igNlny7r16oUa+NWTNGGJvi6v3YhXZYfGUu9U6kED\n16E1CrtvYNzU/zVOBqjn+gL4fJRvszVc5sBtFKcg/PIyTpyXwK0xWP/YoCcN\n2fMlg+rEVMm4XXnFHuweywNWFiIhjdsNotS9eFb6Q21sM0oMnoAAEO7XvVnW\nuKkuXNTieU7G+OfOocP925zckhzHYlNw52AgJGSphFT0b6a0pvLcDziqIkPj\niHgzUwPpLFCDmnqsp/CVpa2tAu49/Jk1mUDyZJzyciLVRip0dd1aW6sAReFv\noTBq4Uji2JCL2/mpRY4E4kd7jZbmppNryBFt+XPzzvvZ2nQioyNfjzCBvjeJ\n4YAQzPT0AGJVIUAMdyKNYMFPL1ZUevWHsxM03vLhwA+RvvpTD8c+Y5amr4HZ\n91ys\r\n=dTO4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6d994090cf732fc4f1fb93f91d64e265cada1b1c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.f460e23da.0","@material/base":"14.0.0-canary.f460e23da.0","@material/shape":"14.0.0-canary.f460e23da.0","@material/theme":"14.0.0-canary.f460e23da.0","@material/ripple":"14.0.0-canary.f460e23da.0","@material/animation":"14.0.0-canary.f460e23da.0","@material/elevation":"14.0.0-canary.f460e23da.0","@material/typography":"14.0.0-canary.f460e23da.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.f460e23da.0_1639149958307_0.8554528956643157","host":"s3://npm-registry-packages"}},"14.0.0-canary.7d8ea4624.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.7d8ea4624.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.7d8ea4624.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8a06105d6d649105bd07bd6b0e42ee98e2a3dd7f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.7d8ea4624.0.tgz","fileCount":44,"integrity":"sha512-mSTcDEfFbzvbiiOGG9oFKFrkEGr+i/NFwL1CyJNy9rbNDp77e8wtPAABJG6Y5hcGjYyvRsKamduSjnSLHw/jZA==","signatures":[{"sig":"MEUCIFUwaWroHeg8r/cAUnYvGyn59LFmo47mgIM43yvPWmdGAiEAu3W2UquRiMuCiRUhwHWXPBRhrj+k4Tel2R8VYm5HQ7o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhs6qtCRA9TVsSAnZWagAAtJYQAJktLvoMBDL3jRwgKvAU\nYtI/fZw+bNjddi+xzOVsHqal9QPr64msG/5jNz2IT+GymiHwghiRp2kBF0Eb\naMXgCV3fh9VB/7yWdC0fMi0rX+0XFAU/Lex4dxrdMcVoq0CU03ZyZzkIwXZ+\nB2qw9UJB3J4gsdiLlG0K/SMcDbpRqi0Un3uecc7a1lwNF06qywfgSBTM3CLV\nioogsTTUBE3wqQOnOVTi3PXq/ObsR4oVcNPBOxX+X+g7i5Ob8WTgYuylmGOI\n5MZZl+RyRVHORry/JQmwk7aZudGl/jr5mj8TIwVUJCow8zlEelKJdKBriKJ6\nryRYM8jYkB1MzMSisTh0t6UEjKbCuAwAzruACL+GNs4yXav5Igz8KW1qquJq\nm1xfieNUpOPF8/tP2C2KIMQQeFwvs10TUAjKc2OZl2H+InnJjzWw+f/TLD/i\nI5npwu8Pt9ixDc8ed1ddpRBICCBqNqnvi12MnM7XE6jkiS8t5d5Z8WwwsIOZ\n+eLEAzpJAaW9Tcws1TpZ5PwtGJ5bVA7RxuwDRXTt/YSjwhsNlR8dv/g5PK2+\nJOZO7C+d6Kzq1N+v95hVoBIOsuHvQI4QnvKC99d/NkywE6Dg86hhd2SXLIfZ\nkIecruTC4Nfpitas3ve7K3s3U01tqL4FXQgGeMTdeAu6hZZD/vYUHAzCnbnB\n+uNa\r\n=60+V\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c5733baaefa11aaca3bd6f32fb2ac29c20894738","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.7d8ea4624.0","@material/base":"14.0.0-canary.7d8ea4624.0","@material/shape":"14.0.0-canary.7d8ea4624.0","@material/theme":"14.0.0-canary.7d8ea4624.0","@material/ripple":"14.0.0-canary.7d8ea4624.0","@material/animation":"14.0.0-canary.7d8ea4624.0","@material/elevation":"14.0.0-canary.7d8ea4624.0","@material/typography":"14.0.0-canary.7d8ea4624.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.7d8ea4624.0_1639164589099_0.7681588774464048","host":"s3://npm-registry-packages"}},"14.0.0-canary.8fffcb5dd.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.8fffcb5dd.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.8fffcb5dd.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"03fd467be4862339d05e19c9f6f05cfe453430b7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.8fffcb5dd.0.tgz","fileCount":44,"integrity":"sha512-6fp9X/ETv1aHqtFfqhAuka/8SDCUVTkVWx/Yh9d31LaPxAetGJhuv/Yd7eu/Igr0RxxJkdeWTMoUHtNu6P6DcQ==","signatures":[{"sig":"MEYCIQCJYcVF0U9YFl/YVRX0fBQJawfs473SVTRrMuI+tfk7twIhAKkEPgMoGFYElbyVzH6irR32v6ATR1+Sh/W9WJaoFHA1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhuFwQCRA9TVsSAnZWagAAXJgQAJyUHR8hB55Adj3Gaw3m\n6jUqmRuuo3PhJQI1smw4oTM5Ut5HlL99ZzRCWXoM17a8fHqXdE6L0uOsJADy\nlGToRtRhz+R4efAs1PZVPH88Ogj4895Sfx8QyztrS2abjxVjVH0be3q9gqMD\ndkBJTWKVgNpaGieKJILA6BFDEQvm+ygeXwf+hCeLcgZlncK7cUZTzuIekLnf\n+0az4zoBOj9bqhsxMjU6ZjlBGol0afdHaxZSnm8MxtDUGH8o6dAnKftLFq2v\njU947hiFg1ViAVInl1Xkn1Wp6ruYXUTis0mhNUrFbLH7RMmNK92+ts64dK4c\n9FIKTIJAacD/UNc0oy4zQ4qoXYYejr/fXw5WRAiHOIIMKkEpDkxWmqztcdXJ\nezllV1bWpnvbhESmLYWSAxHa7vd89EX3+XJpPZWRRiTQ+PPgSe8/zk0qZAW1\nVt9RRpNK7CzZM17HQMdx3xNaYyQs8Mw8t7DwjHtSa7FxdaGBBzb6zM7S03BK\nx/1n4rsQ8mHl+nTeSyZw1DrguKKdZTXc1oAj70HDafXJpPapCJc4u9DJgKIf\nAdbYqkSCedhcgG+Goe0fH25UKjI6dA4tl7aTRGO2+iJ8wnLpNATijuC0HI9+\ngxhKXjeSfsP/fHi778DxfE76c7MYG3+f7rYEyAh9rL6U0qa+Kfrg4TpcknGq\nldaL\r\n=YeHq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ed22e4daefd7bb5e95668ab484a3a4a65793437f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.8fffcb5dd.0","@material/base":"14.0.0-canary.8fffcb5dd.0","@material/shape":"14.0.0-canary.8fffcb5dd.0","@material/theme":"14.0.0-canary.8fffcb5dd.0","@material/ripple":"14.0.0-canary.8fffcb5dd.0","@material/animation":"14.0.0-canary.8fffcb5dd.0","@material/elevation":"14.0.0-canary.8fffcb5dd.0","@material/typography":"14.0.0-canary.8fffcb5dd.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.8fffcb5dd.0_1639472144252_0.034063882841571136","host":"s3://npm-registry-packages"}},"14.0.0-canary.21e1cb9be.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.21e1cb9be.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.21e1cb9be.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"364be4b518e4e3f392de04ebb90f37c1aa50f64d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.21e1cb9be.0.tgz","fileCount":44,"integrity":"sha512-OzGRheex8vSD+JcJk5OOwEg8gSWtJReeo0QO9PhsCN+FhGt+MzF7lwHzNCuKgFABVAjQ7rQ8uQiAKiunGElv1Q==","signatures":[{"sig":"MEQCICHQaSgcMvQz9UafJDPWx/uJcSFrXjzwCEJ9+ky+cPv5AiB8FMAVagEfgjlO5IC9t8E58cDHtyEbOkln7c0Vd7bJbQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhuPMqCRA9TVsSAnZWagAADB0QAJdgYyLlFKkFxjWmPbti\n+H+9Dabvc/3/xTFnDAd38v9g+kkWIjLgtIB5QTSFgll55rf1prMqzojnOYo6\n+Q3PaeFE/X68UR5ho7/H0BuSs+SXvf3CZMvhxgoXrbPctVdePfxgQV5Lr3St\nB5PUuv+/fFA8WgV63D39xXeNI4Q5wnWiXAHW11bEzvDKT3ptq/KQdECm97I4\nH4ataoBYn0ss7lKBDuv4plpntWlYhGmzJsUpml67egHjzPiwM7IMQ5QJoXBO\nweqcTG1LLmwRFHK6kwRGKuziybyL+HKkdMintbpic8m4vjAhNZuGDdPh69mc\nqQTIodSkm+dGWrNDFiEglXJ1MhkClpdhg5Nun/VBrChw2qw3YPA9a/0i3foZ\nlZdACYsNc1rYNsLaPAZA028ItEplF1Z4JxN3UMQxXPh0zae9RdEpCcRiRckj\nABiO/fo46C1X9IUXzKskWKAYgm8lPgAkYsbcTDviCCDeH88aX913lqse21sq\nfT8h6E022eClv01g3dO0EaFjV6xGUjdzPtyhXxJKIqRYgOgTXwrnNeSDo+yd\nXlsbZ4dgdsykPo0y9P4SRAf4kqf0fdPEOEeDeAYiOi5dph4bTDLd6rX8N19c\n6HyGAu2PNI3Lg5yuJuutmQxQ+99TpgudGxYv1Yg+4TMOXvZmMqx36r0PtAjq\nB7du\r\n=yLVx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"091bafb203d13305d394af0cb6817b1bf05c64af","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.21e1cb9be.0","@material/base":"14.0.0-canary.21e1cb9be.0","@material/shape":"14.0.0-canary.21e1cb9be.0","@material/theme":"14.0.0-canary.21e1cb9be.0","@material/ripple":"14.0.0-canary.21e1cb9be.0","@material/animation":"14.0.0-canary.21e1cb9be.0","@material/elevation":"14.0.0-canary.21e1cb9be.0","@material/typography":"14.0.0-canary.21e1cb9be.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.21e1cb9be.0_1639510826280_0.7532964214906663","host":"s3://npm-registry-packages"}},"14.0.0-canary.ba78e8724.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.ba78e8724.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.ba78e8724.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"27d90b251a79f3aa371a064007303c7fec90ce29","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.ba78e8724.0.tgz","fileCount":44,"integrity":"sha512-pa+5YtzqCWeELxjxQeDwBI0pvTm9nTIEktPwdDYTZ14hB0BwTquXj4CVGgB/EuJek+sGNSpWHPmAKY/YMokjeg==","signatures":[{"sig":"MEYCIQDhdgYPqiJF6abvudscnPT30718vmWpd23dJr3FJ7pmrQIhAOIQF9WMf2wb8igtyLORhEKka8pPLEJMi60q540vzP+k","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhumiQCRA9TVsSAnZWagAAjYgP/icSqF7wDgV3S1Ss1XpP\n0sqy5QtpTvgmHS/TMRUMsi1o9Jz6JMwC0fkpC3gKtV0sNxa9XpgCJ9To8G/w\nD6c7JQdQ9h1UjSlcb4bXCMOd5C+KwG3YzO+OgriGJ7+wwBiLMKxG+5riq2ec\n8p5JAR8p138mHtZa/G1qufvdQCaV4rVp+jzuXO6n5NpIRxNtxbFNOYErP82Q\nz2UpOwGW7f/WPv3eTyaYjPGdo5kxkxN6n921hLdff9kGjiw9riFq4O3V3ibc\n3IGxQd+lnMIC8d93O3Ox8w8ijHOsct+/zHE/b6CRnzotKY/+GbO+l+esBy6x\nS6mjZolHLlfpOX37yFAkFLVwzzDQ0+0QKjomvp4oepXIEAY8r84n3NeMMYYp\nrb/LTjygLm5aZlP6eJjkvwbeqlpt7Uy/2huwmkCSZqFVgj9voFzazrT24P7s\ndnuLMiYhpbNCS+rjZH6eSM9/KEBJfTZGIgEeZPzJU2PmjmfFHNCOT8exv3lD\nsLONrVduixck9ViX6UV9Pf6esV1yyxaSyp7irkd3ao3pHycfkPxFEef9FzCW\nLrQfk9ZjP/5LCHPEQnVLpB1UwaXDd2lyKCrOHqlhJZB0Tuqfx6DmLqb3ps5w\nbEipjEXEHAAfIis9IZ+gejaKQmGQkl5TUC5qCMkejavEkisLN0WPAp7+U6z3\nijOA\r\n=Kx3D\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"396b66ccff73478ac662f95bc36087e71ae8d980","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.ba78e8724.0","@material/base":"14.0.0-canary.ba78e8724.0","@material/shape":"14.0.0-canary.ba78e8724.0","@material/theme":"14.0.0-canary.ba78e8724.0","@material/ripple":"14.0.0-canary.ba78e8724.0","@material/animation":"14.0.0-canary.ba78e8724.0","@material/elevation":"14.0.0-canary.ba78e8724.0","@material/typography":"14.0.0-canary.ba78e8724.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.ba78e8724.0_1639606416138_0.5425349299207158","host":"s3://npm-registry-packages"}},"14.0.0-canary.e3e073c00.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.e3e073c00.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.e3e073c00.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"064f1419da388c1467ea9b91e56cecff57a88b89","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.e3e073c00.0.tgz","fileCount":44,"integrity":"sha512-d+Fnpkkgd9se5qmmlgT7bezLyXFyPTjFQcohMKww9JLk6V5g0nw6ern1BSfJcJycpm+3TpK06mPcSD0g3HZoOQ==","signatures":[{"sig":"MEUCIHYp7FINgfXs+H7wYTmSzDwCryn1CX9ZZxPSjiQCbwWLAiEAuiNmI89TRk3MpQazlCGCPz51QWDAi4dTwXAVHx+DfQ0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwPE7CRA9TVsSAnZWagAA8LYP/Rxv5GW5a8Rk1t4V4iGK\nQuB32ssI/biFwO7TpaKbuOB5RfvuAh6MTpKMT4wZmojyBzuT1H/fKt6qUKYk\nO/p0Gdbl7MSqHG7hNvJWhQvJL811hvIK9YlbwBh6aiKtT/j6TIVCqw4izEwk\nN/xh7+tZh9I0i88UlcUWeHTA2W8aOhxE04xVHMIEOz0uGLxn4WNWo26R69vP\nKge+Ws9peJClFZpDbSkIqLRB+0DRYgIaiRSesS8+YGb//q/14JyoSP/yASEr\nx7/NoEIrZSOnlKopT6jC51geS23E6/f3YcIs6fc3Kh5VNTXSnKFsuLOEJDt6\n6YHm1WFNnpbZwbrwcRgAChpi5/zW69XvCFTzzs1UHuwCV0OFijH95A6twFAZ\n2urD5DAHyvjadgenLRfJfUq3pKtzt4zeEm5mm99apu1mUyKjM51vwhbHfHBj\nsIaKfLiTSt8VAaWIZDKfh+cR14j5Q5whu5KqdEr2rTyt0c1P+eNchmvaaeCA\nll6ZY5fnZbahCgbP9S1DH5KWHmSMvhi6STAzi8FYDpOQXGP+Q7Q4IBLHQYJd\nDjaHpXfVLjDqfulm18kuGReG/8V2uVzlfo6whSC2qkmTne5DgL9y45+NNNbG\nXGg1NyEClDXbtnvSxKevPCJCVezOXbzt3l2JDFAeDmlwHtY667IhdCcu9vYs\nnNe0\r\n=1AeG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6ed0d4833cc10e9b5406989bcd66b072aaa259d3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.e3e073c00.0","@material/base":"14.0.0-canary.e3e073c00.0","@material/shape":"14.0.0-canary.e3e073c00.0","@material/theme":"14.0.0-canary.e3e073c00.0","@material/ripple":"14.0.0-canary.e3e073c00.0","@material/animation":"14.0.0-canary.e3e073c00.0","@material/elevation":"14.0.0-canary.e3e073c00.0","@material/typography":"14.0.0-canary.e3e073c00.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.e3e073c00.0_1640034619456_0.7312232253588473","host":"s3://npm-registry-packages"}},"14.0.0-canary.3366a71d7.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.3366a71d7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.3366a71d7.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"58d5ee59e1aea6f479963f553935ce2115cd8fee","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.3366a71d7.0.tgz","fileCount":44,"integrity":"sha512-BWK77KlFcq0G/8R7stxvLnLNzOlF9fCF1ZOrCUrnlmMCn5SQLVXY+yhpAwPo13qpDuQplV20i66FbEeHWWWG0w==","signatures":[{"sig":"MEYCIQDZexvz4NZskaUYQMezM0w506Y+HqOHzNOOq8TdyW6hxAIhAId8UUpSvPf6nhETArteOx3nlqeJbW9T3eXUtH+Ovv+G","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwxr9CRA9TVsSAnZWagAAJdYP/3tC1cc0RZL6Lx54NYSU\nhZ/MDML1nVFCv3QiINsGwWHtmC/IIB5ixe6lhy9jzlxSmAND1hWyUlGlVoch\naUCccDAUvHjDlUm4GGzu4tgeucwRFz3i7Bn7N1sEph6TrSipfycyckoV0/eO\nkQMmp65D8NyDemWBBzybb1oHuqOn1H9dqvqycvrIs5srWqbalJ6kvPIks8QY\nISncV/EsJ2C6ZXSzz61brREBk7Jw6CDHKL4GZRR0YIyDbVaisuEx8KsuI/C8\nQR1zqLgy8+pATc9yKZv76kKuYpJGZiRjfnl/uGVo7iaZMKk2C3saMje3bsoA\nqIwS/Wcocxh/iRqFxG0O86Tv2V4qTk0NB0VXR3+g5ts7lfid+mJ/dpwPzHDT\n9UCp1DSptxf/RRu8BvNfPIhbxiZWundqqVKjlZESqUkZwMKg8AhrqBtrmYvX\n/2Bdus2R3tYOTY+yeeojIaCbml+zlnD7UYz+fJsSbVpcYCodwDdVVUJ2/zK/\nyNECBTWVKGj3SaBbGUAWjYybr1RvcZpcANoJK3vA+r9LOsD+qjn+3D1iSbcA\n3R0QK8TbaG5gtPj3xcM4ErFAR4beBpFUwUtiV+10CW3EL/3RESJT30ENS/yK\nS7Fvqzgx1UtNOIGWIxRcsvem+9GNwvuz1okIw61kClSi6S0zpGJt1I4bUp+v\nxWXb\r\n=sU19\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"36f8040c2829cecee06f5c8f52e08e9cabc9004c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.3366a71d7.0","@material/base":"14.0.0-canary.3366a71d7.0","@material/shape":"14.0.0-canary.3366a71d7.0","@material/theme":"14.0.0-canary.3366a71d7.0","@material/ripple":"14.0.0-canary.3366a71d7.0","@material/animation":"14.0.0-canary.3366a71d7.0","@material/elevation":"14.0.0-canary.3366a71d7.0","@material/typography":"14.0.0-canary.3366a71d7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.3366a71d7.0_1640176381020_0.4928711713397098","host":"s3://npm-registry-packages"}},"14.0.0-canary.c047f7c19.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.c047f7c19.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.c047f7c19.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5eb91022f02f74c3d8fa43aef89188d0bcbc7c8b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.c047f7c19.0.tgz","fileCount":44,"integrity":"sha512-ZGmlpXXp2hmXrTdoRjzX7sZu29SaPRwoo9oHCqgZMQ/IaIpaXAuS42PHFP7oe+/4zmAr6UZv3q+uxMnBUJmpqQ==","signatures":[{"sig":"MEYCIQDc4gUJzHbTY3ToaCQzh8qRxq1DGuPWoa+HAsLYhYnxsgIhAPJbL8Re47pzN0+w9b4rsw62bXs0npDOHmVT1UhE9KHz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1ctmCRA9TVsSAnZWagAAkrYQAJI3RzPuXI0uMBOmuo7M\nzX9+GAS+k8n6CI1iT8cW5Wkg0Zuh1AB0CDIFU+MACGOs2k6uxTkltMcZ1Xpj\nGiNuCvPtF4d1KKEggj+F2nPmayxO+TWkOt0iST3NK3Cz0uEJK94hSt9Kwgdc\nxq0/gIm7SXy2iblUMlHKsdoaHuJscYRWND8R4eqqdbW7ydkXvipp6+95n9ro\n1/WKf3+DjkhR9YLhiGmzDUzrTF8oMMbTQXLkGZpi+rHxjHuBio6e4rQ0x46I\nRjHn594R/MzGp0Dftly5BtrQIie1OAycla44EwI2DlE3ma1kdvEujXa5NEnk\nb7MhZ9DLu8a30U4NsK99VzpwiZGjV0NGBTlF47Rkuhbhlnh6iP04MGLLW7kO\nc0Ud9N6I7rvFsceSajHuod8TOb/DI2NfUnYX2dZaC5/E3KE7Va9/iTliihT3\na1T2NdrMXXUonEjsXvAhyhthh0ipv57s7yeuT5ahyhcN5PUeLJGkXIkYjrsS\n8xLXVehkBYULVLSOymadpiFhBEaBwwbvMNVmexLPEKlz7zWyeF8YBwpmPQJV\nkPS3w99c9cH5mkHIr50stANnLLUF2jG65WN3tltn8fa7rxNawTg5/CZkpK8D\nnNFF3ZQZ02szUxvicRX4P+xD4UujGIRVDWH/IX9fm/ongiwjUgivl4LMuJs7\nyOfC\r\n=Cb/X\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f89c0e152ba1bb64d7b262b279d38cf5d93dd788","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.c047f7c19.0","@material/base":"14.0.0-canary.c047f7c19.0","@material/shape":"14.0.0-canary.c047f7c19.0","@material/theme":"14.0.0-canary.c047f7c19.0","@material/ripple":"14.0.0-canary.c047f7c19.0","@material/animation":"14.0.0-canary.c047f7c19.0","@material/elevation":"14.0.0-canary.c047f7c19.0","@material/typography":"14.0.0-canary.c047f7c19.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.c047f7c19.0_1641401190077_0.044049552378888635","host":"s3://npm-registry-packages"}},"14.0.0-canary.05db65ec0.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.05db65ec0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.05db65ec0.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4451515783f0c6b9aa2ecd6fd5bdbf0673c44334","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.05db65ec0.0.tgz","fileCount":44,"integrity":"sha512-hfhV2lybQMI3xgIcv8uo4toidTnWIEw+HCd5Au6a46wwCbDXwNjeLGwwvwPfmb1R6dgws28sGwb7tTsHAIJkzw==","signatures":[{"sig":"MEYCIQDRwAPzi6UwN3WPufGblekVDuIPIbPTI762IHiYIv5hPwIhAIJtekXH5OC1dD+G36lDMdg0GftqUGwzRummNsPnBQQW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1yOKCRA9TVsSAnZWagAA/y8P/A+NUhfGlutHROYrmJxE\nSA6A7oNwN1CAMJdshJzymUeKhVrpH1sB19/7rNmFjriQ9js8goV/l5ZuaP1Z\nPPM+4mtXSdN2TvaEZFTfS1HIA68My0QKww7i/ZK0x3IQONaTZZoE6TGU8us3\nSmL9QsUOoUwCLvyAliJQnCfI+l2hBMEjRE/LH1SeWtiWkCwaXbDpXjyosjd/\nT5DyK9OsZehMoze0PU1lCsY52UkIR5z6eVP/eVXy07NXDjNXPMBHf9bGmR9a\nbWARvLYZDAmd+oitGY1NxJ/fxMn6YUJFGsIjv5VS3SPPtabaF2qrR1P7LImO\nJqXokn6MLQkMT3DQzCQhxj1g9cQ2VbsSn01Ks6tCPOF/FZduGriQQV5ka0SA\nXo8qBpFaae+RYZvHxg8JKe39YH/L2rPJ2D24C3oHKnnQpYvSxeNrSVV+5wwH\n08r84zwFEVnSPgQE+/ZSWhhp9+FlNaxKdKVB5psWiMf9pGCd2fIKksDV6ITB\nW5WVM3QE18eH+LGJApXBIO/O2J5M1vohSAi8x20t3qiyzCWpGTGr8M+dQoxE\nTW0IwQNJNowXoqyv+cpkdLFWycVqj2kN92yl0Mk65DkKqGTrRAT/+1G8bnk0\n7u4l8VibY0L1p4wREhxTHoDN7BowkYemwBajNFXH3QC0al8B6D8IBMbh0i5G\nHjNX\r\n=rYcA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4ee3c4fadb795ccabc127e2a968744c5bed23d38","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.05db65ec0.0","@material/base":"14.0.0-canary.05db65ec0.0","@material/shape":"14.0.0-canary.05db65ec0.0","@material/theme":"14.0.0-canary.05db65ec0.0","@material/ripple":"14.0.0-canary.05db65ec0.0","@material/animation":"14.0.0-canary.05db65ec0.0","@material/elevation":"14.0.0-canary.05db65ec0.0","@material/typography":"14.0.0-canary.05db65ec0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.05db65ec0.0_1641489290416_0.31684335165353894","host":"s3://npm-registry-packages"}},"14.0.0-canary.6ca8b8f85.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.6ca8b8f85.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.6ca8b8f85.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6bf451daf53749b2c388fda9ec5f88390c26ff8b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.6ca8b8f85.0.tgz","fileCount":44,"integrity":"sha512-tKDip9ilOJ72ejaj9jzdPNJ8MzmL3jZcp7FdJ7NadMSrinrzd0t3VP6jBeNNIvEfeJCeMU+LUwx2blTzBL9X+w==","signatures":[{"sig":"MEQCICGtaMcW1LxJm3a8SNAsyd2z+ua/zwWIt7Dm/E6pP18UAiBm5coCsn2iyHWG2CC8bABwszpJ7vx2paf2y8zqKLIUmg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2GPsCRA9TVsSAnZWagAAXnMP/3VXOnH6JOK5eeXvXCvU\n/DiU4lBRqFEzM8lS5Jy7foOlRqTzaQLYGv1oG75lBjNXRmrlixpFDCnAO8nG\nyu279l9PfGuM4fs7d8xuGHCQ4nXahppaQyWDRUu6NeTt4cYxkZnCmFnhIbwn\n4SVv4YKD30PNFu71wTdiBDjcV20Bf9Vwa97IgxdSLPFAOz7M1lKwPQd00F52\nPeZRaJboeGXiDYSf3yGO8MBmyShcjVuQeJmEtfkRqsaBM995SuqqlZ03wkbS\ngEBFeJ63vWxKavMCw1r4huWtzPAJMDwUadVpDJlbm3nXmc9Xf4lFwvZ8w3c8\nc2zDQF5KpQoOSbVmoMHxOsA2VlfTWbzlwweAcr7ZSJwcY07k2c6WRisImlsA\nzH7dVt3OfGDL7qUrPCiDywYn4LXxabmkxGdky2JLD/EuWxzGJ/kA2oiJNpHy\nbLoy48jyY3/vn/jcO0Myhya8/gP9+pEAAtZp9qr9ogFHBxJdxskO7tiPxnhR\n4jgFz8QyZ6sYUlbCNVkg3WUcxGX+DYzq7ZvYgTh8uAc5bTchpAZZjZhu5ZSQ\nHx8LndDk21wHTTnWVjt+tNRIn8f/KfkHWRCKZuhVXKwz86Dy7M2JifZx7dpc\nq+2S47aSbjqo7CmVy/k88QUa0rpGiG3iMP1NoQ9i4CgauK/ucehMbJcmQBqj\nnzoK\r\n=+WMs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b3237bcea052016fff824f201904a358e2cbeeaa","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.6ca8b8f85.0","@material/base":"14.0.0-canary.6ca8b8f85.0","@material/shape":"14.0.0-canary.6ca8b8f85.0","@material/theme":"14.0.0-canary.6ca8b8f85.0","@material/ripple":"14.0.0-canary.6ca8b8f85.0","@material/animation":"14.0.0-canary.6ca8b8f85.0","@material/elevation":"14.0.0-canary.6ca8b8f85.0","@material/typography":"14.0.0-canary.6ca8b8f85.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.6ca8b8f85.0_1641571308575_0.7417020772519107","host":"s3://npm-registry-packages"}},"14.0.0-canary.173ee7a7a.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.173ee7a7a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.173ee7a7a.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2c229911a60c48e83e2c5c2fdf0082022d7bce24","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.173ee7a7a.0.tgz","fileCount":44,"integrity":"sha512-Gcse7xKC1LzRgJfLujSHg9nvO94sPHGJs/rHx+r5nttNLRubvUGMeW1Qz729SuKwSnVyySy1416Ko0LpnvYKLA==","signatures":[{"sig":"MEYCIQDY7t/6ZFpTlxdMC9ZCLtDeXoI0ME1yJw+yjT8wwg7bGgIhAJuLGDGsqDzcl6iC2cLbVDGRn26Meg/VLNMrMMOZ2ngT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3GTgCRA9TVsSAnZWagAA9DgQAKM4Kb1zvm5nHBvnZGNg\nnHJZKQJT0w5+oJ2Sk9SU+Qtz3lkR0yFGduhkHAefbw9o1NGo0hi3musexui9\nLyEu+Au74EY44CnyyjYEa+yUIoSdRwbyARsNnRztY+u4RMdFOTk687YnLO6J\nnXPcbs5FjwykFMe3037MCtWyp255f/PyMly9yJQZwvTeERKsykIBZe1gfD1U\nx3OGSKx0WN3AQyTFQnl7us4XU/tBaWhF9f/NyBLNd913lqpu8V+AYbj7ZqRt\nsSJQrZjuluYwoqt7wQYwBtHCaVuhLAuwYHuMH93LFYlwR6m3rGXHGnmXI9fV\nNdh7K4YUN8qVJ0nl9BRWJOrc9as8W0IPxKxvnDLsi18VWmHvc8Z1ZeoTNb4l\nq9qmuFmvtaFjt722NfNMjB21zI/m2yyvmSB3LvdOfm2HirHxWqVpZTlWEAw8\nAY3o39LPugFoIvbou3ZybOreNUohusSF5SDic9MsjcLYuTzdICkBcsENbsDw\nebn3Qj3DMpQAd5zuwQPRkAOWWZwkUTj/P+e4l2w4caMrol95IPlVRtRQP6vb\nVcgRijsJZSWSh+006p4jA3jSXt72aMMQbdgAjzTn1NgqX/OZm5BxMNUGbcoK\nroybIZ8pf9SzUKtl4RqfMui65KxgcOD7BzYLecE0u2oM1vT7pzvW2Wwtl6m9\n/t6/\r\n=v49i\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f034f9d63d29784b9608c7c25ea586070efbd27a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.173ee7a7a.0","@material/base":"14.0.0-canary.173ee7a7a.0","@material/shape":"14.0.0-canary.173ee7a7a.0","@material/theme":"14.0.0-canary.173ee7a7a.0","@material/ripple":"14.0.0-canary.173ee7a7a.0","@material/animation":"14.0.0-canary.173ee7a7a.0","@material/elevation":"14.0.0-canary.173ee7a7a.0","@material/typography":"14.0.0-canary.173ee7a7a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.173ee7a7a.0_1641833696047_0.708311867748082","host":"s3://npm-registry-packages"}},"14.0.0-canary.b704e4dfc.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.b704e4dfc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.b704e4dfc.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"51f8cf27a7e0a92d628706ca399b2f72664bc302","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.b704e4dfc.0.tgz","fileCount":44,"integrity":"sha512-cv/B3J0k7Ya/BufJnKRrc7L+MsFXWS+0wj9ZW5Y9d8Z8xbLNK8fmMFz4PWx/sxfbgYKjyauOzj9gMImhQU1Gig==","signatures":[{"sig":"MEUCIDuAVjql0ml9QrT9MLSTTIS3pkWh782L+0QfSYZJBCUOAiEAnhTQaTnuCR6cmjSbVrjloSYL3zONNGo7yGLWYZ6gDyk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1129075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3HwECRA9TVsSAnZWagAA4LgP/25moR4p/WCQvHSA6PEm\nIqOoljEyFoomtZ9XF110lnglnFxHrL9bodEjGcimWrsnI+kDmSQ3fmBQuDpK\noqrkH58P2YNPfQD05OgenzukABlHWYKIyw8+ir0ffEeKXff375BjAyl4EWxA\nUwzG7+5s+iM/b0OT6UVB1i3zZr4mQfQgpStC5foJJcjQqL9UUm4NEv/FCJ8p\nlIbY/j4whrEEzIbsyAQipC0H8/oP2kQMu+lu7vGYLxgiDw6ksspcHqsJ2+G3\nYGBygoUrC7rGidizS2OJIMZhdUf00I2bf2sdP5h4aYqDB+J29ouogadXNusX\nf10MojHnrK0p0yF8fzx6zUqabZk0rP8jz53KDnpuahW+wkQSO0B2oL+ZWjUT\nwmo5hTBiM2ObyV1Gn8Lrpiy50MbP+L3tJuiZlXEjzN2qfxlD6u6q7kfSuNNx\npGT+lQR0BI+Vf4D/5ROXNa/oeqfSsR1v+L+yLqGdpFiUyPrmNiB8XihABIZD\ns3dw5LJxXQsnJaxyjOgUhkzYcn4OMvx5izjn1G7wI9ZNCl+umaqHabVFEbX/\nPohThcMjBbwFWR7ugrsAy0zhvVF3cyeEtG/Yeu/2jfGpdWhpdfMflE4ZkuCC\nCNfwtrGyioLV2oWZ4+9kOeeceMFjTeR1ZdpQt7C2I149T+lL4BBcil23gvO5\nDhto\r\n=soM+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7aa8626c10b7e0fe9826c55e7f08c4ab0aa493bd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.b704e4dfc.0","@material/base":"14.0.0-canary.b704e4dfc.0","@material/shape":"14.0.0-canary.b704e4dfc.0","@material/theme":"14.0.0-canary.b704e4dfc.0","@material/ripple":"14.0.0-canary.b704e4dfc.0","@material/animation":"14.0.0-canary.b704e4dfc.0","@material/elevation":"14.0.0-canary.b704e4dfc.0","@material/typography":"14.0.0-canary.b704e4dfc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.b704e4dfc.0_1641839619940_0.9744625112752912","host":"s3://npm-registry-packages"}},"14.0.0-canary.c14e977ee.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.c14e977ee.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.c14e977ee.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2280c2453addb21b0ed37ffb9382c1705af43152","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.c14e977ee.0.tgz","fileCount":44,"integrity":"sha512-Py/aRxICBbcLl2YyJZ71skrnbf5CKy119wMbfEc6bwLEbreDnaByBjkIcV4+hW3I611GGMUPk8sfQjpbIM8MEQ==","signatures":[{"sig":"MEUCIDX74NvKQWEcktja0w/czzvnR6cYPTlo5UNxws7NCEvkAiEA5z+ZYVGrrwXAbeCU+Ei8lTywvZ51u5DJhJ6qjK2HJ8U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3ac6CRA9TVsSAnZWagAAkbEP/jDbZMZzpAWgA7PbIeLz\nNt1yFx6u1D9H6WtgGS96McOVNSeU1IRBm4UGy3PBALyrDrj34UguT4lzLydq\n2UsOa+IYwmtqQs+OKaxqXc4xzQB8XJNhsSGzhX2vlnY/4HeEXJQgKiA1w6AX\n8Igyyd6q3GCbtQ21EjTl2ps1GOSGGiaJGyt5OeHzuE6GzuwIw3j9gTg8N7A0\nSRqujvUNkW9uUGaHcoDpPLw0/XHUl6nUPk33PBOcGbY9J2iHE4kvnwUrGxIO\nx1YflFk6tdKEA2WPr6dIy6fj2I7eWyckoVwuVimpyzr+zBM92gopxQ9u0Ua4\n1oDJvUirxh+6mdxU6hlophtXtRxACjKQdlHz0/1HTzGH0CQxifMNy3SEtWSt\ninFaLFMoTJEsv/Ihq9so2lPBv5lqvEzOtUqRrSdNi94pSiH5EZaSlSqja4QU\n646CJHt/MIthNLrW4tyo3Bd188yMU4zvgq7Pt4M7n+D3bLpIa+W81TAvINM7\nGXzV4qLL1MSREFSbzJ/WVV/5aqIyzVQT9Ta/qyXKXUpSeHyi+iDkNKRyynjd\na07t+4Muit8X38QQxFso3TBg0tGbXsd93zE7i7A3EYZuN//CfWBpqRzkqhnf\nXgDG2n5awtlJQWJP9ihv/PmlTiI+udgxkwpD6rbKHqO8MOmnshCoFGl7ZJih\nJl6P\r\n=c/t1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9f7e1b7371c604a5d4692bdbe25aecc578fb16f5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.c14e977ee.0","@material/base":"14.0.0-canary.c14e977ee.0","@material/shape":"14.0.0-canary.c14e977ee.0","@material/theme":"14.0.0-canary.c14e977ee.0","@material/ripple":"14.0.0-canary.c14e977ee.0","@material/animation":"14.0.0-canary.c14e977ee.0","@material/elevation":"14.0.0-canary.c14e977ee.0","@material/typography":"14.0.0-canary.c14e977ee.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.c14e977ee.0_1641916217839_0.0006901833530983392","host":"s3://npm-registry-packages"}},"14.0.0-canary.b094eaa4e.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.b094eaa4e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.b094eaa4e.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"22da79ec8eadb63bb1beb1d34aaaaf8344bbc392","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.b094eaa4e.0.tgz","fileCount":44,"integrity":"sha512-7+LAEj7Uxzy/Q/jHHmCjbSurtahIf7/apUK6513BVozav38DMvAmKJ2leEue0ZqovTleDKp6gxlyZ+aDRJXABQ==","signatures":[{"sig":"MEUCIQDNhptQzWSoWu6YuulWkvJjZGmnZQrhao/mCnx7eslSwwIgUZCk4FiQsXBmjQS7NT9yEsneCeogh2GouW88a8KlBxY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4cQ0CRA9TVsSAnZWagAA13MP/1aJNgtvqHV5h2ojkMf4\niWmJ0sxP7aRkpZtULWCEXdFrTW/Wyeynq9mvgWdStQ+DlKJPX9qV3m3MoYbD\nmfniZ0+eogVIE5tlSe23o1D8/T/wmkVicqBSG0HaIi3uLIAQgNWFAPApw5AT\nvkBJIceSJTVMvtYyNZVV37TpRvOrGM+qUNgyoq8DRuO6oPyttezV2JfMVI9O\nAXPKicanRXvBSi/wigUOKNQem6OycPgOu81rgxRR7UdutV1k+dd8FNiY70S0\n4C+vgkN6Jc3eLoYOuzJFWvKx578J/APCoGgD/rvas2PdObfsnajZQAmP1F1p\ntDJA/Lpvx7GopI4HgkgAl4nTRZCzPDhFQl+VBQRhFkb5ID7xobM5NrmkmNd+\nxairY7lZAg6LXHyzQjMMt2CXcY6wlQv0FeIw8v9kMK/YOlsdNRXIMQNii3pD\nZVI3G4P9NPH5pQcu11S3YpsMcx727Kju+Fl+N2FJ7JfKd5LRBLSJTny3iPds\nygo03xt90JBULXlJqxePwrObHnq6ZKvfH3i4E5PK36mjOHpX/bd90Fo2b13R\naAYzD8s/Tbyec5hf8g5mjJe0djpTO+kEoqOLOgpBPcHwBdAdElYn59Yx6WNf\nzrzX0ICs1oELDlzv4KSd+TrbnyZxd7nSwSZXvC899/sOVv572EU/WhAnNc8C\nrJx7\r\n=sQik\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6b11b48b933746de14be90d79974d10e1fd48289","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.b094eaa4e.0","@material/base":"14.0.0-canary.b094eaa4e.0","@material/shape":"14.0.0-canary.b094eaa4e.0","@material/theme":"14.0.0-canary.b094eaa4e.0","@material/ripple":"14.0.0-canary.b094eaa4e.0","@material/animation":"14.0.0-canary.b094eaa4e.0","@material/elevation":"14.0.0-canary.b094eaa4e.0","@material/typography":"14.0.0-canary.b094eaa4e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.b094eaa4e.0_1642185779802_0.2569687197725776","host":"s3://npm-registry-packages"}},"14.0.0-canary.390220e42.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.390220e42.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.390220e42.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"747d808cbe197eb498c05f78d1db719485a53e58","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.390220e42.0.tgz","fileCount":44,"integrity":"sha512-jJ2qF+vhvMUeYmDunCr0Ic3SBJMhMb/Y9v4YbIPsFR9kcGnE8DdaJX/A8D0yw7WNZqM1Fr52LA4Z2M3L1H9Eog==","signatures":[{"sig":"MEYCIQD/O9gVt2K/6J8gY7l0B6I5swAGYDwtEBBGk3YuZY9kBAIhALiqv/N1wso+Owb5YRC8/ZRY7J6tp968bQpgDvl66OlF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5Z15CRA9TVsSAnZWagAAQNkP/jWyj/Z4q6xbNNhGoFJT\nfSCr6RE5YliM+ZDvUD+0eH3Vcy6ou/NczPzg8b0ZxQ8mL/HAIb9Ff0kGlv81\nkFKzABRPRcMZJeCFZDR98XpUyfynSMfVFfg4ysgQXvv/HoO42GmT/ldwuDDK\nq9yKJ32S72jNWn7ShqKgCz+TLU5VzdgxQU1VCG8pioUiZIUAcN32j5mr550G\n1oxVqCPeBli69xZv4QY3d2IlChOOi65b4etBccAdCjpuby8EGyGgREL9MmuP\nlFXBhJJQ4Vg+fb5Uk5J/15MLekIwetuEhW5F34C+Wwjm8VSglJaINPMI1Pxt\ncDrWyNL4pvDYIJUFfmmW9HiVubQYtViseUqGcuE71soH/R2zIiCg/oUQ8CyX\njJcrpJiddfxaURCZf/HmFT6+O8rV+OjGPOQQ2XrE0xJV9XDjLGReYvsThrPC\nmjtdhS9soinU9e/w+/RdrkZ+qqd0A4rKwwvafZ4y6gkAdw3IBtDjuBFcgoyi\nw2BUpgYt2UIzFa9M125+oMPFz2GfoP96DQoG/h9/AOiwlstArMwZdK1R6M7J\nfrnHEZvdFoeX8D2+OeaoGnwc4Xz0GxI0faUGsXoOMtXtae9dlLY2R35nzGxX\nT4WE8lyJgxHvZw20edPJdZL3AvQp7MzH/toPOL4QL8s9+O/ncBQCZzGMHgJD\nzVjL\r\n=Muki\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dd9f4e499bf257838f40df3957ee3c321500fe37","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.390220e42.0","@material/base":"14.0.0-canary.390220e42.0","@material/shape":"14.0.0-canary.390220e42.0","@material/theme":"14.0.0-canary.390220e42.0","@material/ripple":"14.0.0-canary.390220e42.0","@material/animation":"14.0.0-canary.390220e42.0","@material/elevation":"14.0.0-canary.390220e42.0","@material/typography":"14.0.0-canary.390220e42.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.390220e42.0_1642438009296_0.3700353655134052","host":"s3://npm-registry-packages"}},"14.0.0-canary.4b5391f8b.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.4b5391f8b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.4b5391f8b.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1fa0e86296bd3f7791b2d972a874cfd9145def2d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.4b5391f8b.0.tgz","fileCount":44,"integrity":"sha512-vEqFaKL+ToK0ZdEdJ/Evp9u81XUz+MIix3cKENCBQfNUsKv1cl5yOt97LIjQbLLjvC6SrzjCK8HCMK7qnnd5kw==","signatures":[{"sig":"MEYCIQDjxZGR/H5BgJVJSpCl273rolKmIGWJcB/y+Y3nkjulJQIhAM4uCKlh0ljLMIWmSDqTRcaw2hfJZXOl5mA9fEVWrmpT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6KRyCRA9TVsSAnZWagAA9n4QAJBqzq5zlhYLslgHBprq\nUeRLKR25NBM8bQuwZbQ8+43ag6wNedvPq+vWMmeOyQ+aMtF9YUpiozb8tnoV\nAsUnQ0Uir2hE7UWmxls0iI2SMfUVbu6xATBuyVw0aF+pa0TizT/ELEtMkh8J\nGvOw9qGCHb/d9vanLmH8b3Bh3fnZXDBb/K7sRRQpSbKW8K2dXsEbFtpTc3ne\n0C0I3OKJ8Wh0pdjzmwt27Iu/W3n+NWOtlfvNc6O4tac9H3E93uWyqTOJRZ78\nlfFVODXjuypuERRsGydoU1tGabbW2vtSmYPzoiN36kzQOGGAiMH3NfWd5BI2\nnFZ1YPyB3S/tC/fF5huPtjGNv0daUdfxBEYUgGTlNPcK/vOk86ruo0Lbfrw0\nsjhz7dcfzkBZB+Fh+ig0f+IVGf+igWWyzMt+PIY9rtVurzKWplPg5G65j/p7\najhSD9A0XX6cBjqebHdOEsuGtabaIxYEbTqTkxMwqbduyKVITR9VyQetCeJa\n/Q1VlO4ZT0uhL1eHGhnBFtxMdYHxXZzoYvg09Aa8oc2uw0dBP8xc1WTUtuwg\nlo0ar+sgDMboma2wIn30evdFEoNObhzz8lff5Nv5dspvpcxg/mImKUKZf4Md\nXoMzhKHHurzj0R1qAxpYaLs5F2TI9NLKfeHeCTyMXjphb745eG0hZ+AfQiXj\nrVqO\r\n=7vVI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"09410b4524a4005be30dd18c47d4214d6eeffca0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.4b5391f8b.0","@material/base":"14.0.0-canary.4b5391f8b.0","@material/shape":"14.0.0-canary.4b5391f8b.0","@material/theme":"14.0.0-canary.4b5391f8b.0","@material/ripple":"14.0.0-canary.4b5391f8b.0","@material/animation":"14.0.0-canary.4b5391f8b.0","@material/elevation":"14.0.0-canary.4b5391f8b.0","@material/typography":"14.0.0-canary.4b5391f8b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.4b5391f8b.0_1642636402021_0.10537655527234557","host":"s3://npm-registry-packages"}},"14.0.0-canary.cef6bc623.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.cef6bc623.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.cef6bc623.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"798164896b5c8c40f74ae9a79ee2363ba7e6e238","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.cef6bc623.0.tgz","fileCount":44,"integrity":"sha512-4Dz2EyVofBHnKAO7/judc2r70FqpuvAY3LQfwyLGLVq+Kdve5cjnWCNuwY7LgmZwl11+xU9tFh3Vb6X7PWexlw==","signatures":[{"sig":"MEQCIFyiov+IkSeHRiknaGpkx65Y4HVJRo2ODqO+hF+4o/y4AiAjGfR/NlfuaLzBv/n6EEWb/NbHXn5cq2w1J3evcngg7A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6KpACRA9TVsSAnZWagAADNYP/A3BbyRwsYgR6jKojdR2\nqVv8FduTenE10gbi7DYLSscSPb4DpLbOJuNbVPY4KQZFQ1rL/QOomZ8eiri+\nqpznkwBce3l+ciErLIDAHYs/Z6aC3hIwYvrL3zQHPuxphIF7UwC9obiOKlrY\nk6GkitmlUEUA9Zx0/RFB3fYS1wco9IgpDlEb0Yd0d5ZutGzzups1h2O5NEy3\npNEYi25iM6TmLrpSh201RI/S623p1Bt7Yr8MWokt/5psQTvjIRyiqb4u5b1M\nhmFKPo7alsY5cSNG2Xlp+zf9xiMG+VcBicegbTiGgDA/BrZwXFBG9FP5Meq0\nefpteQXiOXR5w3GWka5YB7qifK0/ajakhHzlVnSuNTV3bjqExN9XQe+TMv3S\nTE5PhpHadNnGCRcw5yw25Sk2W3WUO5RyInaW+OWO5mZM3jl021clSZ2Sx0Mk\nfGP/99R8/DWRwyHaCI3KdFgLSpDMMAzokgecRE30vPFg4zaIsQnnwFr73ofG\notN/Vcsy/IVftRDMqXon39YLagYcikJ4oPLcyAEgp/ICMyem2ddDCEgHeREu\ntkCHRjVliVV24auX3AyT5xZwHPVwGm4T0mSPo5RNt6b55Ev1xYCSGG8FsppV\nh8rEgbdOUy2EpfWgPldIe/Ra3OXy7b6TOS7tApI4APStuLA5E23Uhlhw9EcT\nXt3B\r\n=vwE7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6bfb214d1f6768cd968026313c7de32009b2da1c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.cef6bc623.0","@material/base":"14.0.0-canary.cef6bc623.0","@material/shape":"14.0.0-canary.cef6bc623.0","@material/theme":"14.0.0-canary.cef6bc623.0","@material/ripple":"14.0.0-canary.cef6bc623.0","@material/animation":"14.0.0-canary.cef6bc623.0","@material/elevation":"14.0.0-canary.cef6bc623.0","@material/typography":"14.0.0-canary.cef6bc623.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.cef6bc623.0_1642637888345_0.42536964181785275","host":"s3://npm-registry-packages"}},"14.0.0-canary.0379179c4.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.0379179c4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.0379179c4.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ea2ed861e66f55f10695a6e981f8c248bb07e786","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.0379179c4.0.tgz","fileCount":44,"integrity":"sha512-tV0VMuN4AEHZmFRH9kFqB9+MmTyCLyAi5Tj/V5LrBRt03ouQBtnxew3UIetiurv1F66xP0AvSUZIsQ16MldiJw==","signatures":[{"sig":"MEUCIQDQYn8lh8Pv8z8Xc8mZbit1+RbB2EiE+8gWQGS0rrUWYQIgcVp6/FE2Ytmvvt97F96wfSo7rzizreMQf4QTIPaXckE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6bAFCRA9TVsSAnZWagAASRcP/RypbWFl9cBLrRkPDMIj\n9b4WpoR72WIyKT0Abv/4gNpKi3tIFVdD5p0nrge1M/ReSbeCpuYhuSbBbf3S\n3iJIZh1OYDdoJW4rMVomKbF9M/OX83zatAryRGAKgGVW6zn9wH3qcMoE2aSX\ntejOJ5Swzb3DkLSRiOVVL0nDlIGPtZIR6B1Lf8xDlnezyBJwTXdn8RluYkDD\nCsrp1QOSZ8AYv1iANqtFGt+N5i7jrDyOwkAlpxOpJgV54wuUj71vYPcetoOl\nPt959+C7Y3UAnKjIUxikNe77oNp6jkCuER39KveNwp50VyfxmeZ6JiaN1/dJ\n80hAmZ3gd1giGAGIjtAZN7WR+VcrnkQr57W36JbXpwuQA2DT9bfeyXtOW/Bn\nQMEwwi1ZGYYmLWFSKh/Yo1kTVBHPyYrSY22Zt1vAz8h3qEcP0tPqPhoXyUg1\nYgnuPDWjavLY3F4WpTsxrIhNSADc22D31pppyutaVTSJun4KubRiaNkxyvy2\nHIEFYNclmoPsxEd5Wgb0/ZhWVJUXa43g8kKeuZY3w2drtRKW1HQaJ/O2nz2C\nFLkJsRzbk6C44XZUgTmug+iF/MCZD/n/rVEF/EKrEy9PHvffgml+ljhViBHk\nbWlZMtwNems8ThRuMRuff4MyVhRQUxL9TaQ8wk7SDY80m1TH2GcDcKZ6oU3/\nKJQx\r\n=qXgG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fd62b4e352900f807c8308b282906b51227baeac","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.0379179c4.0","@material/base":"14.0.0-canary.0379179c4.0","@material/shape":"14.0.0-canary.0379179c4.0","@material/theme":"14.0.0-canary.0379179c4.0","@material/ripple":"14.0.0-canary.0379179c4.0","@material/animation":"14.0.0-canary.0379179c4.0","@material/elevation":"14.0.0-canary.0379179c4.0","@material/typography":"14.0.0-canary.0379179c4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.0379179c4.0_1642704900888_0.2730902587030919","host":"s3://npm-registry-packages"}},"14.0.0-canary.e62f3dabf.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.e62f3dabf.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.e62f3dabf.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c2546ae72aa68419fd5d6d6075249ec830c57728","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.e62f3dabf.0.tgz","fileCount":44,"integrity":"sha512-FlRYxPomD4pccseoEFs6EYfWk5n0Mij8hq8AEHtL2JbTlpaF+P8Tw8V1Hw1V/eoZ371xbFBXtX5lS0kvmuLhnw==","signatures":[{"sig":"MEUCIFUL/3tq9famyvvPbl3Ek46J/l9ZOLotKRhrSVbZQn9LAiEAtiVWEYlfxixoxwkT65d6C/zN6DL6dzJoQ0NoRgYaqdU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6zvgCRA9TVsSAnZWagAAmoMP+gPQzQ4Kr+gv81ImmpfF\nTidHEtZ24VIQgDxK+x0nBiZC9DDGGgqbusJ7wunxASZL3IRn2gFynvALxn6X\noheSyk0GAwpnSFwZtYKCAmNRYdC2xhlrPPzgjWRW792BxjitfrQYTNFVW/mT\n061VllDvSenN1SuuX601OSm1eG1liCmM9FuZmQ74scGYwpOVSegBSfBqkPqf\nS6neR9CcM8y3pvPbgaHoeJ+Vxmjbt0FnJ2mr4zk9vhBcqrcYAGGBHwedISfh\niXKBxB6GqIEKd/eQ9B9lof1rHU/4/bImRAfzJO/SnvgcCHNeVTyuROryKrdn\nNeCKbWiOu698msx/k5nUhuHlfa8bg6iGY/lYR7AFxpCXMswP/BzCGjvtVpqB\nK2xq2D7ocRHX11sVzb/7evVgoAVhrpM7e+Tfo2mrORgeBOtuwszomb57JrvU\nGbeRe1R2T+FBiUVdBFL5Z6GBAaGbcq5JyOS248LXhb7GGJkqotTCIXJUxXuT\nVwIDL8VukwwD29G8zMvpddYcZl9Mzz1DdtNd1/kHWXwmzudkuUatLg1fp3JX\n1KighaYYAJ/e9lRiR+7vxkPyWqftRL+FdcIouyTIQPR2XCkfGpuHvDOPz25e\nKLs6mPI3ltfR5D/Hwhh6UnVdZ3dYfEC+dBkygifjOAsyzZFicRNxA2peESBH\nzqI0\r\n=JSKv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7f7d12458af5eaac6bd913db605b5afc3753906d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.e62f3dabf.0","@material/base":"14.0.0-canary.e62f3dabf.0","@material/shape":"14.0.0-canary.e62f3dabf.0","@material/theme":"14.0.0-canary.e62f3dabf.0","@material/ripple":"14.0.0-canary.e62f3dabf.0","@material/animation":"14.0.0-canary.e62f3dabf.0","@material/elevation":"14.0.0-canary.e62f3dabf.0","@material/typography":"14.0.0-canary.e62f3dabf.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.e62f3dabf.0_1642806240608_0.10444140983396055","host":"s3://npm-registry-packages"}},"14.0.0-canary.3e20c1de8.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.3e20c1de8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.3e20c1de8.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4b3c82efb8c48299d2edc6f5a8201cdc36e9949e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.3e20c1de8.0.tgz","fileCount":44,"integrity":"sha512-6CkTz63boeoJG2YI0Wv8Xp1rQ46e6IOvwUTzOcO5TmRk9PTZ6Eos6s+nyE3B0So+SdidImk5xhHDekflIaXJyA==","signatures":[{"sig":"MEUCIQDZl4jeMeqhXlLIRmU1gUA1KhaY/PuCoXxReC2n8/KP8QIgNlZG0SzcbFKBFciDG3EAciirOouq81jrYBtmSfq7PBk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8BgTCRA9TVsSAnZWagAATewP/2xwiH0JqLkKb9Ejg/h1\n8LVk3a1TLmarG7lABmiKzZvKeSoqQD169EprS1yDkY7hKQfpC1ESbKWvy7Vs\n0w+pkVpc7pIzRoyTksdxvWJdzv9pWa6Ao5I5GjZ4RoGQv6AxIhrm8w0+fQcN\nzqEC2V/dX1+/IdysCuTddKTWmrbxz4JqeYZx0JOuvxn4qKRm9njmPSdyUHSO\nO9ZehQMhg+nUwAVwCFJ+lybDUpcdylYmpWvHeDFtahTTYdiDsfaZfryqjXNs\neCP6sENZdQsGCxZkNILFrMFDiqiBbdvIZMWitL284jFEZkEtnv/e+14WPgbJ\ne/3eLgAvonsfd4ghwVgPCv2KnhoOz9iXcQaNR+j3LTFTbN0zE+zo/DZ2j/wz\n6NfzSMwUwndqwKpuF4uB2avNDHL8ZFFj00etSHWTNxNKfZqYfS1CBaGsSErb\naDJ0cpXYnBC+OY/fjc3G1LfU0aWtH0IzohrtDGG5Ij6y918EhAVnxfLtqqyA\noixhMJuJeP2RPQsHPKyZIo603YyEgY1AKKXD6LcHmJ3y4Srhn7eCilQhqB/o\n3PVuBR0+fZ24MK7a3EmAzVT7eAqTonUJIiSJV/QNYs5tqM7B59bFMKdVBCQ9\ngMTK3AseIa8LY5CUIQini85M5sWNiASmKNhLq4OtYIdyIj/coxW1xKtxHEKh\nN7mz\r\n=VJsU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"29fe61f3aef5a85c7a462638b6c2b809a3be57c3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.3e20c1de8.0","@material/base":"14.0.0-canary.3e20c1de8.0","@material/shape":"14.0.0-canary.3e20c1de8.0","@material/theme":"14.0.0-canary.3e20c1de8.0","@material/ripple":"14.0.0-canary.3e20c1de8.0","@material/animation":"14.0.0-canary.3e20c1de8.0","@material/elevation":"14.0.0-canary.3e20c1de8.0","@material/typography":"14.0.0-canary.3e20c1de8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.3e20c1de8.0_1643124755653_0.8267375070449603","host":"s3://npm-registry-packages"}},"14.0.0-canary.9f9d928b2.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.9f9d928b2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.9f9d928b2.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"91c3ff8924de9dd950f08191059e6d4a28d429ff","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.9f9d928b2.0.tgz","fileCount":44,"integrity":"sha512-71jtkwS70Z3NGaIDpynnnaqKnoxaj7dBgUJFtc6j0/KlfODKqONq9aUXrp7k39KfDyItMfNeSNHnCuBjf8Kw1Q==","signatures":[{"sig":"MEQCIB79TJVNb+edB/EV3fQAyuI6fs5kU5UdhSUIx4dh1VIvAiBjPrVH32NE8MStYswROL5WL87/NdE5JWZar6nFWBbhwA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8uDcCRA9TVsSAnZWagAAc1YQAIHbXuwHhbjFglxtSO80\numaWFE/cRtfKTh5jprr7cC5WtqKWcxIFXmGLGSfd3JFcH9b31I4u2b9gI29b\nCG9K1pnUJLKEdemsElunFNbx+bG99nUEWB1oXPMtNTnNoOjCR0RnpHDJPpd+\nZ/ePmeUhGIGfkwXH0lIaClue7NC3za0G92ci6TUczLcMtPzEwIrLlp8fEKSl\nyzAPr5tFvZ4gV+q8BbS3x7lBWzHaCpBYRRAq3/1lf1x/KdReisi42KXe/1B2\n5qMgvrUYFkW/bfFNPlzh6fJxhb0zPXTqJ8yYBAFzY7aeXw0+ynYOn6pygq1W\nV8GHf9w/bVBYi9887r3X347Vk5M886SdNpjwg6ZdzXHTpdHRBAwsJOrh+Hkw\ngHsNVSJKmNsxwZxPSI4hmnp3HMzxTxRh6uACHYDZhpNTDEu+KTzEr5Ta8SBR\nKshODyHbco3fgzYGjE5W5T1pGIMFQrhGiVd6XfPfo86NwNlVwBc6ydxnfv0N\nVr1RGwdxU5EYdkbp7U1d/ZCwbXEdaCraGwEwEhvcURVyZB0hSJjyVJl3fRmm\nvqfqWmzWq+sbfKelDTavYQm0nHJCB6hS5BivuJs9PteAungwPkuEMXffxykQ\nZzNw9SwsErWBkw/XHePAANBe8hhzNFXPwEFQdwW7FYyECb+pKGEDsBGGRnat\n8aiJ\r\n=cUTx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2983c7f2f01e1912809d6004e47ff0c7c27de38b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.9f9d928b2.0","@material/base":"14.0.0-canary.9f9d928b2.0","@material/shape":"14.0.0-canary.9f9d928b2.0","@material/theme":"14.0.0-canary.9f9d928b2.0","@material/ripple":"14.0.0-canary.9f9d928b2.0","@material/animation":"14.0.0-canary.9f9d928b2.0","@material/elevation":"14.0.0-canary.9f9d928b2.0","@material/typography":"14.0.0-canary.9f9d928b2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.9f9d928b2.0_1643307228422_0.9246778242110016","host":"s3://npm-registry-packages"}},"14.0.0-canary.a2bcb065c.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.a2bcb065c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.a2bcb065c.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bb0b64c2d367044fc579868be2ae4501439fee08","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.a2bcb065c.0.tgz","fileCount":44,"integrity":"sha512-QRkmK7UJjam/RX24DOxm6BM2BjeqKQfFsV4BJ9+TU/MJ3gZR4raktCnuzODsJM2S+3mqAEhGArswXTkdBnaKbw==","signatures":[{"sig":"MEUCIQCYB5q8DtyWqyxHqJXJ7NWrPtwGKu2mG/2N1OI43ejDcwIgDBiTwhY/fnsEY6cNBOqzqAxGy+ALNK8jfm95G8YL8ek=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh9EYECRA9TVsSAnZWagAA6vUP/j0PZBaJ4fgpUnQ/8I3t\nVTn/I+IqlkYKJFXdjV9yyo0Ls31Q9L9hO8yoLv0OwiM50wBg6jAKTxubJtaF\nYc2b2TgzkCQRbHqkqvmqWqqbAI6rmlfXDYnhPzy+uBWZyHAhbOy8iJABKGHg\ndk/FAUwLKFkhvHLUtp/HrjncrkdyebAeIiEUt1qYpQURx88JXT20UiCF2mun\nNftn2LnrcnK9dfDanTUZ1Idx4UkG67Qi8YPsnNY+CZF4SlH5UNzniVGcr4Y/\nUXf4Z2WKsHd95WaFutTdKX2o2e0JBTgKeCTu9M9cg+RsJnLN/ePIVl8qOVLF\nOnkbdxz1homr9lbN7SrJ1Fc6pZfUXge7yC1OyNyxUQQo9OP8Nspg83LWaAzT\nxfnjhHmGwUcIPHWtRP0uKgX0aoKgnysbqmO0kxAB9+iURtwLA1QbyboSrCYk\nOdwij+EW6mUrJOc9sXX7dXKoGAknfyBEACGoVQ07tgFeYZdXj5O3DGLB2a/0\nu9afn3ffsq3RjCouVN7vDyaiyXClds2+fM0Ji17hErs1tGM/IvFmfN7BGxdF\n8MhPxdVRbUnqkq4oLXEQNZ1/YZvWjNf6eLhC5OCY6JzDKQeWyCAwPtlYS7R4\nRi3KOIxEh/1azLrgq/h82EzccUnp0RwaSujpBVk+zCGIh1hhrj8jJDvPGTlQ\nsRlN\r\n=4cKb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7f175ca37545bf0bacc2b94f7a18a2a3fbd5eec5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.a2bcb065c.0","@material/base":"14.0.0-canary.a2bcb065c.0","@material/shape":"14.0.0-canary.a2bcb065c.0","@material/theme":"14.0.0-canary.a2bcb065c.0","@material/ripple":"14.0.0-canary.a2bcb065c.0","@material/animation":"14.0.0-canary.a2bcb065c.0","@material/elevation":"14.0.0-canary.a2bcb065c.0","@material/typography":"14.0.0-canary.a2bcb065c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.a2bcb065c.0_1643398660485_0.7892338528261655","host":"s3://npm-registry-packages"}},"14.0.0-canary.4e66fb2e1.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.4e66fb2e1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.4e66fb2e1.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"787fb981b604ffc2a671385d03c6e8cf76df346d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.4e66fb2e1.0.tgz","fileCount":44,"integrity":"sha512-MrmvsT98kfQk5hRbbh57VwRER4thmqVKtqcdH83o6igNyQe98TsLxWqr5gYcOVUOzxzhKXK3f7pNJ7gH6Vi20Q==","signatures":[{"sig":"MEYCIQDWd29Gxsum6vZzitQGmsAXLa2xUU0pcfLfd7wa76tm5QIhAIgxGtQ5QhNkfNSHyMPwZcPfeRl0mv3qTpgCUfjmM/cW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh9EcKCRA9TVsSAnZWagAAAgsP/0fUk//QsCgH4eBl5w+Z\nu2F4wqAi/HwAJy2YC+9kpDdxIIb+2Ckr1md1EBNlncpSQbFkPLZUaiYVQCrO\nekeZyhI99UEcOPoaw2TcNgRLXG0kO6magJmHba0Dy2HkCPJYQvdFT38WwD1P\n1APQzB2dj3OPbqKRyNx/r+YCmAB/Vdjg8Jffypcmne2Um1eGa8EEA60E8sCr\nRvNbvRviHgeywkRdaArnlKzJtDhDk1tDjr6GoHxGzY+Oi9+2jr7T3IMvp9+y\nsgNdwULdhAKohQEyL2VACOLWOEejFfhvpjnkEYRh3W89PdHnT6SxQsPG6eo1\nELjgkWI3ZQMGrpCsnqNJAQWLRa+0RPhL595gVj1hOfQZLepOMK8zFLUvKiEu\nrSjny84H53V6/CNC7UX2M2VusfDpvtZC5y8EtmkVyqBcH3xiEP9EwUuatuJT\ncoRBl58M41MuHpvaAau+bEpWYANGLlYp61tMkDIh+lwNwvRGXwZb7/0WXAmg\n0SpV/L65O/jQD8DuxyVhBpQJ3Il04ChmjfA/3Gu5I5kr3xj4uQM1qvPJutl2\niuVgazNR457aWpjpiyIDtXVe6a139mwuNH6nQEijhrFNa/s6uEg53VWCwQis\nTxGgDHjhRQJZzNFriOzU8bwm89FnQ+c+K9FtcblnGyFAUbFakuaEwkisNb71\nDF9j\r\n=vqjs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"edee6a64c210815507bd8460fea3df2591cf0d65","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.4e66fb2e1.0","@material/base":"14.0.0-canary.4e66fb2e1.0","@material/shape":"14.0.0-canary.4e66fb2e1.0","@material/theme":"14.0.0-canary.4e66fb2e1.0","@material/ripple":"14.0.0-canary.4e66fb2e1.0","@material/animation":"14.0.0-canary.4e66fb2e1.0","@material/elevation":"14.0.0-canary.4e66fb2e1.0","@material/typography":"14.0.0-canary.4e66fb2e1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.4e66fb2e1.0_1643398922378_0.7313373425816667","host":"s3://npm-registry-packages"}},"14.0.0-canary.9736ddce9.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.9736ddce9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.9736ddce9.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a80708d684b462d076db955179842648855e03cb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.9736ddce9.0.tgz","fileCount":44,"integrity":"sha512-LohYHHv80W+LWa7Lc4bKgLWOpOFRA7uscflrQZQyS/1LSgT2rmsPABWj6r+3UD5vCHCMNgYGcD/tNLzxMf7pvA==","signatures":[{"sig":"MEQCIA6I9CKmS7UweDafqXsVr80bhmfOD/MrdY+qaLRxOUn9AiBRFuZrXyJVvNPlXwC6UA0Plduuz8YYtzz6gWhGJ9l4cg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh9Q3kCRA9TVsSAnZWagAA8sgP+wf9jpDvEjdEdgUesdl1\nvCqXQWg67z/5yeMXh8QyU8yHD8WeNilB83MQ1YTenqkD2eScOl+4C9htpkah\nTSZa7I2Ti1jmnlDbdWhGxbaH/TQ4nkbcf4Ft+2vOkuenGwFF9ZwXSeFdXBLa\ntORv6GyjOpHFblp+opGNUGQgMx/yktRZbzHbYk5fT/dpZQvg7rqYHhvVGgYm\nh3+QH0TvEoZlvF1jIejHuk3QvKKSGEZQCALTL2mykZKmvkxzB7d2iXL6x74T\nOn5tABy15KEgxNRpXPdA+ZdvxtHudm3XwROTCMN+LDxa9lhltPBjIX3wcB1y\nkhna54GFne/rEW4UmDmKS7ovvENXqhj6DU5PM/xVN9X5dabhqIxHufoRgJ9a\n/DwTIcP/pv+EWvPstX8MKtKconPI7bsMcvAXaClWEI7PFC0zyo+uAgiI7JlV\nn6v1TwDSIIcHyxLS0rcgTYpoWaHmWcSnE+v8jptjtk1puPspX5Uv11TUdb5Q\n753WW0MX2zgTT7vlPPennmLjLdEdTjqhO4c9iZofd4Y8iGkGJREse+UXQSZC\nQwgUmDuUsWRJj9KtPhRcnh0c/EZG6QL7eUbIfE/2U0gMccmDq8Q1hMls82dr\n6ppVwTiMp8qtE/lp4/ZUbG7gi1oksETTnMDy9HfgNlIWQ9crsL9QBNUfpA1P\nfRic\r\n=qzWm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d76de36ce796a981bf5e48388104bdb581d17529","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.9736ddce9.0","@material/base":"14.0.0-canary.9736ddce9.0","@material/shape":"14.0.0-canary.9736ddce9.0","@material/theme":"14.0.0-canary.9736ddce9.0","@material/ripple":"14.0.0-canary.9736ddce9.0","@material/animation":"14.0.0-canary.9736ddce9.0","@material/elevation":"14.0.0-canary.9736ddce9.0","@material/typography":"14.0.0-canary.9736ddce9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.9736ddce9.0_1643449828777_0.061433855666431336","host":"s3://npm-registry-packages"}},"14.0.0-canary.cc4ed13cc.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.cc4ed13cc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.cc4ed13cc.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8cbcc010af068c3b477f7ed09511c7bbe2d3e0f2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.cc4ed13cc.0.tgz","fileCount":44,"integrity":"sha512-/M8CwOcq/LP44MXqQH3gG+be6TcsX50SC9oRopNLtgZYSlgCL1fAyj9cq4wC6ozDuemYLLA/4xVsK3uICzP31g==","signatures":[{"sig":"MEUCIGdsaqrlVLkGYycJdI0baatxE3Y9nTjC05uJTk1WMWCgAiEA+2z6er2Ov1hqnDLdwe5FXeu1cewl6K59K0qpaJuPz38=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/W8eCRA9TVsSAnZWagAA5XMP/3HmS0qhHrr8efjHOMlb\naAXH0qd/XusecwmGfXGHvdTbQZve8Qjp0aLWdlM1cWZd47NpjYOTWBrjxRDY\nzPpdEr2raZYfb9lfCNtkoZzT1XMGbjNyfO43tMzf/Y1IO8ZAX1LcmmOfUWoR\n+bWckaCjzXZM73FFVtCKH0NUthfxiiNK9h5k1b1amZAPsml43aOC4YGELphy\nndlznoAM5U3Jm+IgEGEx0+lINe8lNhAPJMuESwxYpZVgoNEGUNaIBQiXNAyu\nvieC2bLveM4G+iTrsAu0fKHlo7YxChuy0dkTPbJUuQbFbAN5k4dyjQbMarzt\nuk7XonZM6GERWpUjPngTtCvCqCO4Fcvz7VVnZSBB8SjQhSh6ozZZfNaTMBEc\npZ+E9ITzXwUsM9XdWe5SswZSrXuDWMB5FIe2CgEa/glTO29UpQrD8Dh+3vr5\n31MjEbbK3IJoW6l2DblavL/d0dgi+F1tj+0/vV2mM2Mk1UQZw1md42Eit0Sk\nanE5VoD63Manapiq2b+FpbNro5XZFHE7ahx6HnXS7UqTm/n/jY0UzFhLX9GX\n9wXILHQK2ygUz7dqDk+KFCS7t/EeWwQ2AkMh6h5uVGE+tZiWIuD6XM7czqn8\nQ+DVpR8Yzc8wCVVEt7S9qU1jE8pcEYb/Yvk9+9h0bGBnCB7bUAqhjOQzefQ0\n8C1F\r\n=1SmY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"15c769412cb0230363c372a7d45bc6bc10eff8e7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.cc4ed13cc.0","@material/base":"14.0.0-canary.cc4ed13cc.0","@material/shape":"14.0.0-canary.cc4ed13cc.0","@material/theme":"14.0.0-canary.cc4ed13cc.0","@material/ripple":"14.0.0-canary.cc4ed13cc.0","@material/animation":"14.0.0-canary.cc4ed13cc.0","@material/elevation":"14.0.0-canary.cc4ed13cc.0","@material/typography":"14.0.0-canary.cc4ed13cc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.cc4ed13cc.0_1643999005952_0.8710766928768481","host":"s3://npm-registry-packages"}},"14.0.0-canary.dcba26fe1.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.dcba26fe1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.dcba26fe1.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2a51e674725f596dc4434462b4d8305d77a652f0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.dcba26fe1.0.tgz","fileCount":44,"integrity":"sha512-hl4f2kwQ0w1T67+6j7C1hktgc0OkNstMq/Ze3+/yMXzakN/SYgxViOvEr0dzxMIcfx99YcBisZPL7aBq/ulq8w==","signatures":[{"sig":"MEUCIQCHwx79FXm5zhnffJSTTlbQAUQn/sOtIR6bcD+GLi2eBQIgYTcv/r8CjyoK/vFuJR8sF3wIs9GIfbKfLgmuMotmRnY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/aFeCRA9TVsSAnZWagAAo44P/0kPfClLaHsJe5bNqRoL\naagmRC6jtkp4jgYK+4gAzKadUPW05UIpfaGmHhLB6RivVq2BhBWp3DLwskzG\nqhprvv/41n+NkRzNqV80+n9Tyo0y4R4M5KbwHuQTlFH6YinviTIZYM6wkXLc\n08xiy7e8+tpmALB/rs/EWaGqnlN82KteRxpdQWxNEQCX48O0YS8FRkqNWhOT\nLlBhgLQ2qshUgoxO3Oct93CCbmNL+Rr90QcfKsYmWaDcRfmiMwcplnKEhAnT\n0lQZQclGKX0gWQGC/U2Qhin2cvUEfEcbkl/+qF6DF6DzI86Lwx4EAHx7Whe7\nfZp/jWCw2li7GFQFRUeQnwMDx+QshNybCU3JgHey0AQK5lJt2KSUCEXCaFsh\nJCByYaP4WQ8p2GME8MdWfCLZogxxWZv9OM6LH8HEiC4J3/ZsMOr/hfB7E9nK\nCOiD+oFELZj89Su9hfPwk0U/YIGBSymDkOCK7GrtLqaHFkMUgYChIOGRcNwE\nsbSazpTN7M+SOUk2A9+ZYUFgxFKRbjeHpNPvEV+9uXRPdZ4CtMsjmW2MuYYR\nOrxNY9XXm7ColQVwSRICfnax9vNkz8zVSGPatWdw+s+C+3gly15+TARtu5Zn\neJpkDdPsML748d9Jv2NPj0oblFB92+bBt2IA0PSeTkxs+HwuZxFxWNtfnC28\nyw8p\r\n=i5Gw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ced7dd56d5d3b017288f0575d6e773c03f01d0ef","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.dcba26fe1.0","@material/base":"14.0.0-canary.dcba26fe1.0","@material/shape":"14.0.0-canary.dcba26fe1.0","@material/theme":"14.0.0-canary.dcba26fe1.0","@material/ripple":"14.0.0-canary.dcba26fe1.0","@material/animation":"14.0.0-canary.dcba26fe1.0","@material/elevation":"14.0.0-canary.dcba26fe1.0","@material/typography":"14.0.0-canary.dcba26fe1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.dcba26fe1.0_1644011869854_0.26420584906290645","host":"s3://npm-registry-packages"}},"14.0.0-canary.ec54d9046.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.ec54d9046.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.ec54d9046.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"df19e10d98f2fdcf586838f17d0183554e2d0bf3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.ec54d9046.0.tgz","fileCount":44,"integrity":"sha512-gjQQOabZZlltnC1duthLvOfkUtHYmJaD5BFUPKgQSNrAdty9SbOXQQ68i6vkYB8u4qhfkLm/UJIzbnkxION7xA==","signatures":[{"sig":"MEUCIQCT9Bli/yWImCN7zuFMlRQzM5H/qMsdTmmDxu03kx079AIgZjl/ner+ZIMPkZSYtWQHPo6KYX//wQQRtyhZhqzBGS4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAT8JCRA9TVsSAnZWagAAz0oP/RSFhGlEYDep//aUjgO9\nD4OCiVTPyM6RJke4mKfGvgDNOxT+AS8enbBXZdKmJg8LcAn5oKEHM3/4sna7\nOzOat6zDovW9w7JvIxTIQdS+3OLFPi8Mfutf84kJIr2+m9L6Zp6cKqFbb16g\nwWg24+RCt+8zqGfo5SPyZwF1lo3+L2Mjg+Hc2VeVpwOWSxmWFmZwWEDnb+e/\nYmWxbJx5z7u40M7Ywwp6y5MKOOyNL6UqNjSiyypE+0Y5YGeQdYCBdOwQFrx2\njY8M/nAtUNa1IOd1Cgfjsn4GWzeHi4LVPws1z48nk+oXXZZZijfy4Aslu4fL\ns9Yr2IcL6hARC7n51FCL9yyRfd+CmAhquNdmVBAgnMK4jgO8KnoYPwsVGhW3\nyh5swgOcu3AFi5Ldo31ddTaqwwOwJiuRyRIq6sKOwneWNLgiB1HSlGlMthZ9\n5jhoh477XhWI5rhoLDfHT4cdtawmxEfcEWQGjueB4EiTX9G2vlpaWE6CfnrG\nF93vVklbw7POMVEXYaAopaVlUJnIt5IVOcZSwFBhes+FeKOhgnzX9m/z4Cz0\nqFwVDCcKJXCqkmORD2ayrK0sqzUJWhOPpAsJR9aY92CRq0V24rjjDeaolSOZ\nKeCTmv5NFHATrF2lBL7Mvko/rn+ZwY5sLGKsYxvz0U6EtgaQ5ucHWslGNUTk\nIme8\r\n=+bV6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"68f6bb151595e8790d7092842d6c137ef93ed770","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.ec54d9046.0","@material/base":"14.0.0-canary.ec54d9046.0","@material/shape":"14.0.0-canary.ec54d9046.0","@material/theme":"14.0.0-canary.ec54d9046.0","@material/ripple":"14.0.0-canary.ec54d9046.0","@material/animation":"14.0.0-canary.ec54d9046.0","@material/elevation":"14.0.0-canary.ec54d9046.0","@material/typography":"14.0.0-canary.ec54d9046.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.ec54d9046.0_1644248841693_0.9041432907733831","host":"s3://npm-registry-packages"}},"14.0.0-canary.ea9b5b463.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.ea9b5b463.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.ea9b5b463.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4f3281402f4701cfa776fd94e66a99c02e6529f0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.ea9b5b463.0.tgz","fileCount":44,"integrity":"sha512-zs4pR1CraYt8YTB8A/KkZPixs0rcGjy1fg2er4Ed/AF6wuNpE8QN4wzUJur/6keUFpNtApEPGA8yGXwjmYtROA==","signatures":[{"sig":"MEYCIQDlH9gisNUuqnJABXfTM5U9OTHhhnSMWwvNF9WZt8IKPAIhAP+Pd4AXaY3j2UJqlk27L8UX4GHwYeiNbyYoongz5JkJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiA//NCRA9TVsSAnZWagAAddQP/3TZVJLrMxB5yFoHEg/y\nDWQpRVYgBVk4Qfj6MvgKG5yENJu4+tGzgK2Qi2wWLEbO7TpvtIn1GY109ZQq\nfL5Ajx66szFQsGbOJuNZcQtv8D5BN6CnX3NzfeKjY5J7+HYfn7GvYTarkOvo\n/2QBT/q2/QX35NeIit4wDqckf3UlAWMXN3zzTGFzrkrfVrfrU5h36cz14K90\n8VRcMVB4LfOPmMpoyqMTGBsbTiO1WDbsSXBdhbJ6HyBHZrYFvpQedxMF/WRm\nSEvwTArvCgFjcIHYfuMecxaFWrfJn6tiTWBXYXsEQ5XKD/pKG6Ecu8vL+iQl\nEEBuEc2d8Csu+su1yK33D8zCPpWZXEIYSAv/5E8luGWcl/lgazNTvWtnyv9y\nNIwZvXWh1O/ClLj4mcAxVxIntYM5m8anSS9h1GrW7QxcR9TIytoX/uqDDM6h\nevL/qDaHrmjaZryZf1hHsC/Hr+MWxApMmPTjvnF1cjGzL9VBLBhgDL8HPCd0\n5JkYThRNcKXZTautmp034xf8piNkpcBNlH5FYmD1lNe3rl/x7Ctd3WWb7zVk\nbpli98rcYDgPIA0mPzALI+0+MvFLY4y/P5kCZDCTpTBXUR5zHCGSmxiCiJ+H\nnoBYQFVjnoCvEK50uPe0iPsBsLWzFiEH7zYWzapjMJ2Mh4wcoojTVeohwkMj\n1l6b\r\n=vjqs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ee827dceb9fd1c47516461b8ddc28b66702f2c04","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.ea9b5b463.0","@material/base":"14.0.0-canary.ea9b5b463.0","@material/shape":"14.0.0-canary.ea9b5b463.0","@material/theme":"14.0.0-canary.ea9b5b463.0","@material/ripple":"14.0.0-canary.ea9b5b463.0","@material/animation":"14.0.0-canary.ea9b5b463.0","@material/elevation":"14.0.0-canary.ea9b5b463.0","@material/typography":"14.0.0-canary.ea9b5b463.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.ea9b5b463.0_1644429261674_0.9607311828803669","host":"s3://npm-registry-packages"}},"14.0.0-canary.96ea061c1.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.96ea061c1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.96ea061c1.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9219e181fddd5e458cfa2355517bbe067d4784c3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.96ea061c1.0.tgz","fileCount":44,"integrity":"sha512-/L1wdKOwuL2D+/owEZ5jS32pu2dRXIEJoP8e3BI66E69xEvjYxZQXtNiqG9hendPhPOZaTJXRA9BxIIVVWTKGQ==","signatures":[{"sig":"MEUCIFf/PBA6NhANNMmvVTJplaiRIEBWVmwgE2kS+uw2FFMzAiEA0tsj/r+tYx0cXYIo/Am/gW3TCebxwwUIE8R5OY1E4BY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBA8lCRA9TVsSAnZWagAAJ0gP/AyRYZMPQ/aHnkJvQH6s\nHtofuacGZs6kX/Gw6GqzrIhBP2lye0stlyJ44Jxwku7DqzBjH0IylOWUUDQe\nyaGIWpXMzeHe0AjyYXLiy6HNl4RMhtRVdf7vAioEOvyUeWCggGS4gm4JMEqA\nLpH2ke93YgUfJIaPladMlFTzfAhPZXUxnhJCYPJ6Rbk65x0Kxis8be0EiEQ1\nazls/xKYTTGSaARN/v8ioHGSd6nwDsmR/0zmvhBGtiU6sxNTbiDQVf2Ad6AO\nY5Sly+3oQ9S6T8gnC3FPAnSJ25+WmINedASpcoWGR0WGjBW92nB7EpxdPeKC\nEB1z//SLiNvXaHsOaR+6Dmt0q/Hjlyjtpg0oQnTmz5hi7JUDgXoH7xCvUVg9\nPaUJvnxb5Br4Adbk8h9lyVXOKjwHEChy8MQfuTO1bEVu7IZS1ALs9qhYQexr\niqLS2brSHNL+bZEosqHTS/lO41vy1ZKM0W5qDEa47sM4jP+QR5LuNpSqOaR3\ngCIBEGVeMf+ZfE72JqLYk+9oEYtk7cmD2VnVASAuxkyFOXBrCjfzcAQid5PB\n5adrDpC4hwGQ3hZhloG25Ag0nnmduS88DfKfBJvGT9hmVtTHYxKYSHXx8aS0\nJIwQ2OY1t2ztLvlwyae9TsEBn/LonGQkrKqfr5ZAoMAcE5C9ecJE+F6qH5x6\nrIN1\r\n=zgYY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b1a410c21f8ac6405b364e437b5af7eec06a2020","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.18.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.18.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.96ea061c1.0","@material/base":"14.0.0-canary.96ea061c1.0","@material/shape":"14.0.0-canary.96ea061c1.0","@material/theme":"14.0.0-canary.96ea061c1.0","@material/ripple":"14.0.0-canary.96ea061c1.0","@material/animation":"14.0.0-canary.96ea061c1.0","@material/elevation":"14.0.0-canary.96ea061c1.0","@material/typography":"14.0.0-canary.96ea061c1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.96ea061c1.0_1644433189021_0.20901130786223665","host":"s3://npm-registry-packages"}},"14.0.0-canary.e00181e59.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.e00181e59.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.e00181e59.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9ee34d3f5d423b4b77d64a215e11f69348d8d3db","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.e00181e59.0.tgz","fileCount":44,"integrity":"sha512-zlxNN7U8Kal+TC1HFoaj4eJhsPcsmcqwPBLFvDA8od0f5NYT2zFzfQZ77nryMoJw2f90jpN4JgTQ76uS96s8WQ==","signatures":[{"sig":"MEYCIQCfOEdAdsjJVAT38NB9j9LVsMoZSb1kTkUOff7fRd02KAIhAIG8NHIt2vQ9IMlVUns8xpuR3px7ZUeP31Ek9uhgjj4Y","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBXBtCRA9TVsSAnZWagAAUGwP/15E3Aac2i0ol26hkcDE\nLnKGxKpIvTH5w51yMlVxAsOTmgRxPb7YFxD++AgJhT0kKsPl6Y56YA5dsZQ6\ng4Y5o+0A72FApeIauFgoD0z2Bd0YHc4Y06arcCIF6kZFi8do+L4BfSjr2ddv\nT2s9F+xJbHf8FwGisqKgjb2fRw8BNiJtcu4oM3gO8hyLWeTeZQTBrSTjrfRH\npXGGP5oifuvAasLp2ob2VIyvd6Y2GBtDkzgPd+WJwI969Svz0PfC5K8OQCzI\n4F2/TV96Lyf6rfiEeDjt7ozuTrLSgPym6GABZl4PYWEWwXB10BVF0we4baF+\nHl+sC9g2ny/R8J2u9B5OHXsnNdFIJtHoc9x6gxDj61CWFKVzJpFei2HBkMOf\nJMZJYA1TgEFet30jP4+jYvjvo0O6rOdxUgB3/mWRqPjrB8zQKz8T8h9ymL7K\n9Wwmz84nMXf2R6xDqemJhWm3webpTNg0Eh1cTYihzm8TPzz2MYVlLpawepGO\nnsDfHfkRkwRSBfv1a/wQLZXZjci6AfIrFST9f8Bi9LiA3d8tu3f1xaHjjdui\neYBbkagCvonfslVYGb2VGYHMGdat+o6VXnmmV4fUev1Pu63cKA3lzjB3QOff\n7q+8YHPZjOeO59rPmjbvCTBENU3kt4+eXbuGpgktdGTIGt/INhS3/YrAzvIt\nWn4x\r\n=VYiV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7e9ce072e9ec1ce5820d347b59d99209542a2bfa","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.e00181e59.0","@material/base":"14.0.0-canary.e00181e59.0","@material/shape":"14.0.0-canary.e00181e59.0","@material/theme":"14.0.0-canary.e00181e59.0","@material/ripple":"14.0.0-canary.e00181e59.0","@material/animation":"14.0.0-canary.e00181e59.0","@material/elevation":"14.0.0-canary.e00181e59.0","@material/typography":"14.0.0-canary.e00181e59.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.e00181e59.0_1644523629395_0.10671601915956197","host":"s3://npm-registry-packages"}},"14.0.0-canary.037285f9b.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.037285f9b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.037285f9b.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"adafad7eaceaac700cb7a85764b5e5b7cdc6444d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.037285f9b.0.tgz","fileCount":44,"integrity":"sha512-lgypJkn8oTsnEDryzKohywS3Un7igxnDdNsBRsBEB5l7KsvUH7CFnZEzyDDRlIxTUmf8XxtMoeGWqED6onJAwQ==","signatures":[{"sig":"MEYCIQD+2uf42GHZeF10IKcNWiON0RVUlQZNzcGUzn6aX2tyeAIhANWP7dkDX7G6JD0e4kOdZ7NOytzFWg7f+S85bX3vaCHZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBqsvCRA9TVsSAnZWagAAZBgP/3LVLsgzFfYp5IK5uyrG\ndm9djZUeOg6N+G74osMKm6ej7RHwB3BFTxTgYPxvzKtS80fdaJkTrNWHyJ6H\n7yZTCLMExXneAJ+2wBMxkTPVP6nwUfRJ9ApS22rL8SNGEt0Q6FwbDOMSP6jH\nS0QwHoaQU5X8w7bOphaS2LpUt6wLa1iwkKo1XWv7B7OVO1boW0V78mbnud6k\nQ+2yB9GHIeaLY0uUPOwysH4JMq4bWqOgRZ9g6mUqfCtcg6bRv98Maw7oeQGI\ncZY8XGK4FDGqLX6oSzCuarHK2bRH3KsC2gJpNaQv3b3esg67j8LlL1na8443\nhKXMQGKKcPglMESM+57ZU8pE47UcAwRXCRyTZDrdh/bQsAH4e2qu3UWvXUTM\nxoMnMw5mxmtzD+YSFFkejWXhGyu1Y0Ab0IqoEs/VDLG1c07POfFgMwr5ZeRl\nJkDixr0383MFEv5FUnEddXRoXYuDD4d4WucjwfK6ZHLlt0vW3a63KYNRLwE4\nTwje7NiX6D8GgfoXEP2QyaQtlYEW7TdKLTc31pnrEdYYhKnLWHLkzMm8iQjO\nW3ly0T0BRi3d9mravsYJNF8K/5iXKIunccaZz2nC2GpTj/36Er1wouOk49Np\ng1yu3B+3oL+jXNMM1jYlXahFiRfEXwz7nKI6ScF8a9nBcq8ePCCaKz4fQOQh\n9yH2\r\n=M7Vg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a9bca201560da3f96e435e6e070baee148bcabe2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.037285f9b.0","@material/base":"14.0.0-canary.037285f9b.0","@material/shape":"14.0.0-canary.037285f9b.0","@material/theme":"14.0.0-canary.037285f9b.0","@material/ripple":"14.0.0-canary.037285f9b.0","@material/animation":"14.0.0-canary.037285f9b.0","@material/elevation":"14.0.0-canary.037285f9b.0","@material/typography":"14.0.0-canary.037285f9b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.037285f9b.0_1644604207373_0.8500041658267004","host":"s3://npm-registry-packages"}},"14.0.0-canary.1aaa68dda.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.1aaa68dda.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.1aaa68dda.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"37872afa0290116c2d9bd4c5bcde5166a2457d22","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.1aaa68dda.0.tgz","fileCount":44,"integrity":"sha512-SSohVpOP6EnKYOZI7MFXkScT+BIAe9B0UYLtclS7gokWHoty2kOC8kvfGCUmOa4UOb7L/lBhbVi7yM1H9Atykw==","signatures":[{"sig":"MEQCIA358cw3zQCBX/CBYR3JDhaMZPTWXZMPoorQEJ/wh46LAiB8ZDH9wz8v0da8w0sn3J432xKhBhxnvsIHcohuks92kA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDVVRCRA9TVsSAnZWagAAWAoQAKRVS23ognZnx0Gen0jO\n9b0SNFQNRYcaFMmA1ZKVw3vo4eIzCCeZ+M7vHVTG7KbOv1N2cGlyr7cVjhhY\nKIWser0lPtxry+o5bvmdMQvESLub78YwIE9YWHM95qwXut5v0zwQqJMax3s+\nXgBy/fh6FtJ7ps2+Y8lBKhK8RPp56KTFmBzfaxUJg/oA5WOOSTjtjDiU3z8n\nHWB5ByU3f0s00aD4NeY47oGoIgrD9hz7v04WMdLIraeqs9qPWDJPwGFZw8jV\n3YF+O4vv6wQhX/BONNVMBpDtz2D21tVO6I6bm1Xc0Y1dLhrp29W3j2DGlNvt\nj7EbCvohIPGDwI3+Ovv3gAL9tmM5jDWANlVY4DlMLjmsU7eAcLhkFLmdwdbU\n/VkpvqpBCmLDr4bOASUzmtBdNmaF+FCuM47/T8uYjRPC2NA+iEmiuTEGl2z4\ny8aT2OQljkC/AY//mCIf0TpBdy52npImej2dzKpr8Xm8HVWPc+21kVCOFIpE\nU3WVXr//V+gfaLThqI9nUvaq0adjU2zye+UwSMa3eC6TFJlVY0uonozaQr7u\nCLDrrBm+5Jk3fFE7E9kn8kUkkN9A8AkBEHwr0PeqyRftFhukv3geTr/04Rzb\njmMV+om5KfgOa44szBQsYWUVu9GzKyUTOka5QIe2EVve0i7dRgfigAYhePfz\nz/Iu\r\n=PQ8y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"49eaedc3ce6f1f8db6a6929143c077e8f65694f4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.1aaa68dda.0","@material/base":"14.0.0-canary.1aaa68dda.0","@material/shape":"14.0.0-canary.1aaa68dda.0","@material/theme":"14.0.0-canary.1aaa68dda.0","@material/ripple":"14.0.0-canary.1aaa68dda.0","@material/animation":"14.0.0-canary.1aaa68dda.0","@material/elevation":"14.0.0-canary.1aaa68dda.0","@material/typography":"14.0.0-canary.1aaa68dda.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.1aaa68dda.0_1645040977453_0.39794915554931887","host":"s3://npm-registry-packages"}},"14.0.0-canary.ab4aba1af.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.ab4aba1af.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.ab4aba1af.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4028da6e45cbdb261f054fdc0bdcdfdec7de7396","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.ab4aba1af.0.tgz","fileCount":44,"integrity":"sha512-JV7iT7fRKr7eQmmuAvjPzHR+i04R5viNKnZvFJ7NMJYE53cvBjMTn254j09PU2BW2b+dYQ2lgEO/lqkWtusm4w==","signatures":[{"sig":"MEQCIA4gXQDnsxkPmh/X1wM4yOWEIT3+lSpuJslYe+BLtoSSAiB8QEiqAhH/dCwm0mRrzGbWvbl/XVSCE2ARdjLUydpXag==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiDpEUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoOjA/+JojKanAjua7PnDalrqpgUZKXhj0kmxfZmplb+K8JcnibdR2M\r\no5Y82k0M5n5joS32vvxf9NDXnOPQzXYKw5Tynt7ka1r/gN6w1Xx2E97Cr5it\r\nWS87LiZoWA2xo1nLy1hhEpubV5n00KVFL/jIyYvk8pRqXmdFq2qNe9TXAfxa\r\nr29+Fj3iNvDmwKoJgn6U8H/zilpQPxvw5EFVW9hVVx844Xz43Y0Slcmz3r4W\r\nwn4ImSWeTZOu6az/ZP/EQjndDOScvyCYoRo2zLlLd5xfuINFoLA8sHGMgUpW\r\n5rIyoKy8P49g8qZlQU+wg9NeYZEaajYh5KJzMCPTe3dLbH7EH7eoqMPBGm/O\r\nmZF7zDD/0byptN3i0DTrkbQll1jI4ZkkBx+wC+MFRRtDhg5ICgDWxgJqm4yj\r\nbc9ijxXsyoycj5hdpFyJqnHb/mw8w1MvGI1K8vI9kn+BSo9upjBQqsKEcE8l\r\na/bgyA+drCsOQ9ShHVw4HRqtKqJsg9hgbN58Xt5utg8zlNsB3zSSctHkMkkC\r\nfYAoa9iFIAfrb6tvWc/8d2IlMmEJNQze5oaWYRAI9CDmbtWPevVjADe/wjlC\r\njBkwTHtPWvEIWgl1wtNdQoeZXC/5Cbtut+Wf2QkvIlGeaDvfUV59jmNmFswY\r\nbGCVaNiNHWMTN6eeGywieT4Vkcj1nONfvok=\r\n=mFpV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"89aa095a35d4a006012f1de893cf181c5725f676","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.ab4aba1af.0","@material/base":"14.0.0-canary.ab4aba1af.0","@material/shape":"14.0.0-canary.ab4aba1af.0","@material/theme":"14.0.0-canary.ab4aba1af.0","@material/ripple":"14.0.0-canary.ab4aba1af.0","@material/animation":"14.0.0-canary.ab4aba1af.0","@material/elevation":"14.0.0-canary.ab4aba1af.0","@material/typography":"14.0.0-canary.ab4aba1af.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.ab4aba1af.0_1645121811960_0.3209460642671058","host":"s3://npm-registry-packages"}},"14.0.0-canary.e58552c6e.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.e58552c6e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.e58552c6e.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c4c63f3caabe0e94b8f66f69910e8430fa31e04e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.e58552c6e.0.tgz","fileCount":44,"integrity":"sha512-QgSF4roGfx7iffqSFt3JBvqV6w1tkRUeHzOFdgFmRaxcriSf5uSWXta/EmCs0MYYJqmi5xWtjhgi5yl95eO81Q==","signatures":[{"sig":"MEUCIQDU5LakfRh66xPwmKrTtGnI/aCvClylbIyK4PpUrgRqHwIgFrtrXdZAjckvOsEmgsZmebqWIy7C+zRiTDYy//RxahM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiD9+1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpJaA/5AP1QuvKFaxjaUs7afWw9Ph9u8XNozDo/FZ3X5/pyGPvGe4Zy\r\nB+aiKJfoSWR0QiK6k8XlGE59lbDfSnnnQ8DvsXcxp1cxJuljG3e1TZjWpl/l\r\nOkohgILENMd3gHtVZk7ZgcXxbmPlIYrY8moF/Zcu4S3DgXVm9JPObRnupxVm\r\nLIPd8Bw2RAZ+25hHMDmHcmswjIHSi30kLp6GYNymdV7P4ETRup8wkkEeY/QM\r\nmiex3LGZO8eBMn8FGdRcVT//hO/QjpL8A1fRTdFwcuSJt2f77yl0mdZmu7fx\r\ngU/jrG5B3a1e4zId6v3BC+b+V0BXF6rMu2xQmS1YedXvyy10hPBWtagaTIEi\r\n8XG354y/LScmd6Rf0sp2ihxhzyUEPiShrbOuB8bCvcMBtPDrZm0RZi4+dXII\r\nKCqHLTLzY7V2nXiPTM40UmE7OATpgvd4E3iGdTEeNpTRHX/VkdFIVA68zGMc\r\n+KoD/9jnaaTik9ArNz/d8rBtvc1bCqOdQcDQyhY6sxiv9ifbEDemxqJIuMOB\r\nzPUNZ8/h77udlLgK4m6tsBhRW7+NTN8atjHqtl2VJw7AL8jN0dwjm5tXGEsW\r\nLnPuzupdzE7vS8vIjgM6H6E14ogKPvj1oAFyio6s4S/XwHkUM2bQovBSI82T\r\nnXsJwVn2NkBWHuGG4GX2PXVsdW7gsjOAcKs=\r\n=VDIU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6d5c1a026de93c3896f05529594e5b025f79a060","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.e58552c6e.0","@material/base":"14.0.0-canary.e58552c6e.0","@material/shape":"14.0.0-canary.e58552c6e.0","@material/theme":"14.0.0-canary.e58552c6e.0","@material/ripple":"14.0.0-canary.e58552c6e.0","@material/animation":"14.0.0-canary.e58552c6e.0","@material/elevation":"14.0.0-canary.e58552c6e.0","@material/typography":"14.0.0-canary.e58552c6e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.e58552c6e.0_1645207477450_0.13508081337052524","host":"s3://npm-registry-packages"}},"14.0.0-canary.868793776.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.868793776.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.868793776.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f7c8c490e859293f54150d22686b6b765454a24c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.868793776.0.tgz","fileCount":44,"integrity":"sha512-vjOm4nmJpVoVdT7FM4ikjuaXSgKWikSJSAvaIT9QVlPPRKZm9lwTXPBIIpqnV6BlDaW9LXO7zXJZjf/N7vVTOw==","signatures":[{"sig":"MEYCIQC3v7EkKh0GPE9HDqxXf6bF5DxP5l1IFWZrO1OvL2Q6mwIhAJzkEtt0+lFcxhbrWNxD5xDNlf0On2mQqFB2w/T9wAxC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFTtAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmocPA//TR2imFHekSMmdu0aBRHK7jJDRViotaNjDQPYlCEF7OPb6Rud\r\nUbVHI5tkwUDr1VY+A7RgbSR0D4tbx9r0NhZoFQG1Cl6duHLZFvnyZL/xikvq\r\nAvxZfciwrARcnkyyqLK3ks1V+IES663ZmgU+HGv5iO1kVQ5nHWeyBGLrohCj\r\nmTG7swFDHj48VkkmNv29qMtOJ1EJyolnUVtDTTE/W76oTA4m9cip085LlR0F\r\nBz7eial7xVON7CPxRLtUX2ooCQ7KcGFkjwlDFeBQnk8IuDXf1v1CEbSZFmd9\r\n4kvqWECYQi1brM6ysj6+zORwxXrHxjItXa+54U7hGSls73Ozp31+Trn97eJl\r\n5j77UDCs3kQxwB5Pyq3a0HNThhf4EisopO6WGehszSQ3m9RIxPwA1El4G3WQ\r\nuZWxVwYimJsMq7Hz9vVfuSo6+2Q0W6xHfpSayoKO04h26cPp6YJsF2fwIpF3\r\nVp9/7qGMbDJ6LMEYoNsXwDZge/fvsFtBRlPT6dBU5VDHPlxG+aIbJm40Qks5\r\nz7MWzyVObD6l7z7D+JqIR/lFKOvYpxMULuvoUjLhEElO7cdQFhJHA7OEZJSp\r\npB2OwvFg1/4/u1C8/MuWNcX4CBNzRR3HM/elY18aaKykm4KWpiHgo5GohYNG\r\nATNom8DKA8TcEe1kY3sWFNabocnRyzBPcFQ=\r\n=5FOR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"78272b55e375cfc80b8f288ad4bcd4bba3d8493c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.868793776.0","@material/base":"14.0.0-canary.868793776.0","@material/shape":"14.0.0-canary.868793776.0","@material/theme":"14.0.0-canary.868793776.0","@material/ripple":"14.0.0-canary.868793776.0","@material/animation":"14.0.0-canary.868793776.0","@material/elevation":"14.0.0-canary.868793776.0","@material/typography":"14.0.0-canary.868793776.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.868793776.0_1645558592390_0.6217121525762166","host":"s3://npm-registry-packages"}},"14.0.0-canary.fdc37a445.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.fdc37a445.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.fdc37a445.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0282a05104846ff77114c10792fe5293b68975eb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.fdc37a445.0.tgz","fileCount":44,"integrity":"sha512-pXTLeJ67RRXJ0LC9O/zfbiTHFc1NTUYt8AOvztueZrVjakGw0VBThFsT6+l4GxgusTfKQvhkINZClj5soP0dmA==","signatures":[{"sig":"MEQCIFSw7ggslIxaUFMnPtFVrAfXccch2pL2CrzOxky3YJ0wAiA0l9jVhp0RiSrDkzpjHAzWXcwlb75x7CbqFUEad5Dy7A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHRiOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpOuw/+Mu5CdPl+mPHOs8N6J3Len12W/Yj+Rwn0G+PMxLu6DCFfPRBe\r\n7F86mdXcCSqOB5h1e0unMSmX1clr2nuJOlKLNEI7FbagMja7GJGZuDQY3LpT\r\nUz9EpfgJbwDLg0n2C1uG53zy6yTMUVk2LLzWWb7njzTylfXDPqSozXzrNC37\r\n7rZnHbo22H/6UOX/o5fJ+b3itzEH5XjpYb7FJNE79Aaf7HHn6NGhsZ5MOhna\r\nlA0TUBcrxJVWgAjmXIe0JETJhfqNrXD72csRUU0JMX+ivf9ma9UehInt6gc/\r\nf+0R6V50mkr5B7UqVeXRL42X+FH/gGltl1x9m6dH36BaxmkyxhT0/qpTcRYZ\r\nudg4KjHJa/Xu6/6GgffC3eZ2M6u+oI6Fs7lu6Jg5yGPUU3mo8xI5k6wkRi6H\r\nnI41bJXvcQBLs60yoFJWtMTzUNBP8LDNYP9+ULj3fSRA/Py8mXpC0tUpmctg\r\n3MBLZQIbBre+lCOYCrc36bZtMCMQMSiLU+52P0F1nUFYECRATaJKoDENSNw4\r\ngRK4X3O+FLj8eFZCPZc8QiSDmlnz9QZHfFE2A0/PAKALvRQTqb80ND7SdHQf\r\nx14egSfKwVkKpnZW2QkJA54QJyHz1fmif/dFI1/DmTLiqvpwXXsZfTM3YhGT\r\nr14rvHzaqK/9h4yVKk5mb7bSGWXJ/LQjjB8=\r\n=eNBC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5a8fd2fd927d036e44b0b22f48d858fb848e504d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.fdc37a445.0","@material/base":"14.0.0-canary.fdc37a445.0","@material/shape":"14.0.0-canary.fdc37a445.0","@material/theme":"14.0.0-canary.fdc37a445.0","@material/ripple":"14.0.0-canary.fdc37a445.0","@material/animation":"14.0.0-canary.fdc37a445.0","@material/elevation":"14.0.0-canary.fdc37a445.0","@material/typography":"14.0.0-canary.fdc37a445.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.fdc37a445.0_1646073998025_0.5658700461892083","host":"s3://npm-registry-packages"}},"14.0.0-canary.43c7d87dc.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.43c7d87dc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.43c7d87dc.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"abdaecb480d7ccd3f36aac2831a2456a14a0807b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.43c7d87dc.0.tgz","fileCount":44,"integrity":"sha512-wxNf90R8WwhfxuBd+oJR1mo3iPu35uKYNiA4k3VjNPnC91dBr2RciIseJ2qaN7vD6Hkqq3lsNWw66LFnjd0zVQ==","signatures":[{"sig":"MEUCIQC6UwoYnPJo219lspKSB8HuAXmrBQvZ3SVC4qnvpUpJfgIgQCZUND+lBM3Pzl9LZIGdG+1TbRmj4ESjZCsRDIQC9lE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHjzTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpUng//Q6KSR2f0X9w2Ln7+WiD4jkP3+4jDK2BwOqwYD2yi3M4tqPDx\r\nizg2Vrlhhq7Wo2SU5z9usYbIKB9s3JNRGNGJWhrIK1yhZJpnH7aiqSt2BkWX\r\nhBHTJuzZdGqI2O8/dp5qZpEqu8c2gB3YIyXMoE0xk60hDDU1km6Ddnr7KEqO\r\nm5VbXP+hIj2lv+iIUIbyzzuopY9/Aq2x6MKPKu4/PQTX/zAANNhhBBgjDMR/\r\n8HncYU6fTaB3LvmRGtNUOE2Be477xx54aNsD8tqeA7ADG64aPIy2lZA4+1ym\r\nj2l1kg0hhrPVz8IWVhT57VgQlE80ueUJLdnHMQ47PVkHgNRh9+9nqmqf0e+M\r\nNf+sQIFXkBqHzN7s4LjR72osApn2LMSzKsBOQ9A8/IiNrEFEy4y5Im5CcZ0O\r\nt87QJsi3kKhOw3WFaeGf8ryKlwXOi6UjhN3DQyWQ4q/d6xtlsqkF6JO3d0OL\r\nLPjx0uykj/9RAcv720zjFmvi5bOIM90QgFYa/0ixw9vA8h++Y12ied54KC2q\r\np5Wtm6ycepWL+G+y4v/ngdJewfWv0FgbYDc/tD+YG2xhXNUT/4oiykR9NnVM\r\nu/X5AUN0gtmFxATAKACpD6NXqnLrQn2H8anBMgftBG+JvQv9TqK36EwtTaPR\r\n0j7IX8xk9Hn/4o/kQKS8+4SdL1Dcxzx63Q0=\r\n=tCfY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c03dfa84e200bc6d570c73762d7ce507d0659e76","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.43c7d87dc.0","@material/base":"14.0.0-canary.43c7d87dc.0","@material/shape":"14.0.0-canary.43c7d87dc.0","@material/theme":"14.0.0-canary.43c7d87dc.0","@material/ripple":"14.0.0-canary.43c7d87dc.0","@material/animation":"14.0.0-canary.43c7d87dc.0","@material/elevation":"14.0.0-canary.43c7d87dc.0","@material/typography":"14.0.0-canary.43c7d87dc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.43c7d87dc.0_1646148818902_0.3268586165791143","host":"s3://npm-registry-packages"}},"14.0.0-canary.23043acd0.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.23043acd0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.23043acd0.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d32ee646ae7da58b2a3d40d13639efe1b1307560","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.23043acd0.0.tgz","fileCount":44,"integrity":"sha512-bmHZPJrcP6JFB1XI8OEV+qeWaV+3s0vkuOwrzVG4OyGbvHDMzOVU7rzNfUBRRtLT36uxTLiLZ8JEddlNaoiLAw==","signatures":[{"sig":"MEUCIFt5YrjB5e49VaGz8/O2UcHvWPbELc1471yTV9zVKSj0AiEA7yQcc6NqsVQSE0DKvjyHx8E7KSjl6fFDFByqQ4aEbu0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiH9NIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqGoRAAk/Ii/JieoBS3SUqfZHK3J3UqtX9LnalyiJUPIiuIij7qZOR3\r\nQha3caTEA7uPdWcUh2Sbuz0Cx6zBBMV2eTudspF1yE55vyZXqY+u+peIOZ2m\r\nc03Mf8rAnPwaf9EUxIkteXzmldS3eM4U7T40tALzrFfY13FR8BI89AfoXFXJ\r\nKNRkX/qpAlK9cVkEZZS2rZ1cLnnnkE95XHDCWVlGZHb2MD9ONimkmZDME+l0\r\nIEfk2LmaIXzIxEgmjBxj9hmxrwHAtAJjEirt9AVeEx6Nilq/6iu6uLLiqWls\r\nkcdiYvydIWMmag4ddaJa0dvKOiHa6CXcPOTb0QNbfNs9f4PQLzLSPe+bBvDL\r\nonNKJJpZMMYtLmTLAoFeQNdNOvCVyKeJvVzlI3IsS5Qr696Zs2nqJjOzq7Ug\r\nlsIUxqW/LxOpK08iEate36vOwWEF1cHZcHJMpIvmUoK9h3b3d74nsOh+giLU\r\nEf3SghsUZXr/wO8BmwpDS32id63fWdoW20Uvm2Ocy1aV/KXcAylo8tiZCZDK\r\nQ3VOQ51mxHzapntzEY1cWwgOmUs1gys+Q9nfD29cP355bHXE3p2ZYIrMSc7L\r\nNvl9iuOP0r2nKvprxQOdVquVNcnslr+9sGFw9dWfwHxynA4Y+cca4tUbxOHV\r\nXP9Odhokb+EVseg9UOu5skrQMYCCJ/mNG4U=\r\n=3rj3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b1cfc3908c111a04a69dbaa90966642093f79e86","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.23043acd0.0","@material/base":"14.0.0-canary.23043acd0.0","@material/shape":"14.0.0-canary.23043acd0.0","@material/theme":"14.0.0-canary.23043acd0.0","@material/ripple":"14.0.0-canary.23043acd0.0","@material/animation":"14.0.0-canary.23043acd0.0","@material/elevation":"14.0.0-canary.23043acd0.0","@material/typography":"14.0.0-canary.23043acd0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.23043acd0.0_1646252872788_0.6477303686909663","host":"s3://npm-registry-packages"}},"14.0.0-canary.6505e61c5.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.6505e61c5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.6505e61c5.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6656f6a2ca0a1f4bb68aad34581ae1fe7205ca6f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.6505e61c5.0.tgz","fileCount":44,"integrity":"sha512-kMuHBaMfnG01bb8P4Ei97h2cRdhMJaKu5B/EdF6hqF7UCwtoGSxUOC8XpWSRCOoEfMlPjcAGq2yEMw8gcN5rfA==","signatures":[{"sig":"MEQCICg/HTpuMiEmk2KK8MsIzp3w2EYpEJku7GdpLFoq2Y0sAiB4EEXYX1Juat/H1WwB0ZHY+AqmjOcXmHNeHnodzkFFvw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1128502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiIR6HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpI8w/+K4Y/yy1gQHwaMAvGsk4EWAgiFnXw7t6nVSzZeBmvrpT2rB0b\r\nF3qkdC/1pkG885GPxfNNAHJ3d+9x3EndKkjN3oAVCOTV/iwIPymHOjYifpos\r\npJZNuIhmrfZi2LzUfHvAfcMWEft7Hx9ZZG3Dy4pwIlH+GPjBIA7r+vckosgm\r\n0aGasguECAVGpw8QLM5z3Uk5s6pq3BGZpkN3tsiS4ffQOh+QfMA1Yqj+6AAR\r\nQipM6MNtz5vClg0Q0MfNQXlWaduPwshi7hO4CYrWC/VCpgU2vwzPe52O10i+\r\nzCiDn4QHRXTluz2prh30W4HY5Mq/7Bfrtfl3aQcbtrpstG7+9gTPThyUugVv\r\n2xKmHCyxFU+qlGdw/wyQyD0jFLFWqWxF6jZhVGA3BYzVGTGhVgcGqOTGRyju\r\nkxnnA+hXHXVOXGPX5D8btMlpZ2sf8bWr/RlAzKFOYSSlqYEx/dmNgEkP75/i\r\nRPdjKaczFe7MwNpOLGFlqeI4NaKCMnB8QxBWOe5s9GNCi0kqvL1PLYvKt1Zu\r\npTNyrWSAjxjL6ak0IdrosMG4ITUX9tOJPrx8dsVmo6FAZnZ4av61vo6BGmft\r\nf6+JS0cwTG4/Y0LFRmVuG+JEm/pTwotceUk/xUZiQ4tEzcXtNCN44cRUN1Re\r\nCdA8cJsMGQaL+OIBzNHvs+BcDlokN0HVT/E=\r\n=YhtX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c9070f0099aa35dc2460994d2d83a8330b996c5c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.6505e61c5.0","@material/base":"14.0.0-canary.6505e61c5.0","@material/shape":"14.0.0-canary.6505e61c5.0","@material/theme":"14.0.0-canary.6505e61c5.0","@material/ripple":"14.0.0-canary.6505e61c5.0","@material/animation":"14.0.0-canary.6505e61c5.0","@material/elevation":"14.0.0-canary.6505e61c5.0","@material/typography":"14.0.0-canary.6505e61c5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.6505e61c5.0_1646337670953_0.589592681632237","host":"s3://npm-registry-packages"}},"14.0.0-canary.16c166154.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.16c166154.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.16c166154.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0a1b9c1f4ed535ed5899fdae3fca528bd32dc98f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.16c166154.0.tgz","fileCount":44,"integrity":"sha512-fueBzBzP++W8pOai42uXd1seAWh9HcECarjjjncMobrl0I/rROqvhaOzP2mN9sLZJzzogj7Mm3VSa80gGsK5jA==","signatures":[{"sig":"MEQCIHZ6Rv2uX4INnT1rQ0Jod3JHsVr03NNeG5jlGtfuq5H6AiA52mwsbcNRVeiez2Vju1upA9A4bOucoAwXXXTor0UbdQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiJ+VKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpiXQ/8CAM/xfOFiYtGRK3x4+PajCxYAXSsT8eN/53kwsC/M9Ihjq8o\r\nHfeAKl4cuFsuPZj9Z88Erkb9W37cxPtmiN2i66YvWUft4/qaE3rNNld1esr0\r\nKYDGQrcjlHAnQlv13S0zCapCRJ2u1cwL46p2R3u540QWsRebmYo0lqdxquJO\r\nALo0iyIYjCXY9vPX+LZHqNG9LL26DoRJPWztLeeq+WCNj3Fs7xZ7HlbavlEH\r\nBNlOi34USljHdsXMd5JWuhS8n/PR+OtcS9RIXyVuoffIrpqd1i9CInKAyy8H\r\nfQksyM2BTdOzFT59yv3kHHUj/V/9FlrT+5S2e88jUxfbdaIlZjzS8Q/Cl/KG\r\n5SzHAdsxWVfYkRdSGdl08HBLwf3jhxCVaVp/3dY3mu30Be+In3fgIIEtDjFj\r\n8tPQS81nMTlXHTihyMcR8r7GOeSIH8vL/OxYZfuFSDzJv4ZSFCXcNNNi5XUV\r\nIZWvMnFAVIiDce8hLTwuewv+ocPfMbQuv6KOg6IDqq+IA9StwfFk4lbW1WWN\r\nkwGJ4CWkCi5dad8jOIzsU2wQa7nkCSXX8mq7mcY8FkL5kHOEHr/A+R+lns6b\r\nrp7dn5eInh8gHK4mA59gaOb5LAgJub0rNfaPatoSE7pbYrIk/ciwbIQPZciN\r\n+5LEY929qP/Dg/fL2JtGPmR0vm/41uAUADo=\r\n=xI8e\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dd1bb8b4a67220dc0120ba2dbdac900e51002949","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.16c166154.0","@material/base":"14.0.0-canary.16c166154.0","@material/shape":"14.0.0-canary.16c166154.0","@material/theme":"14.0.0-canary.16c166154.0","@material/ripple":"14.0.0-canary.16c166154.0","@material/animation":"14.0.0-canary.16c166154.0","@material/elevation":"14.0.0-canary.16c166154.0","@material/typography":"14.0.0-canary.16c166154.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.16c166154.0_1646781769888_0.9371133988669831","host":"s3://npm-registry-packages"}},"14.0.0-canary.bdf1d3771.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.bdf1d3771.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.bdf1d3771.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0659a3eb5427431e56dad8ab78fdb510ae30a84b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.bdf1d3771.0.tgz","fileCount":44,"integrity":"sha512-JJETvbcpqsKiNhcrOdJraAULYoZ57fPa+sLzBzEy0iqb1/fYhRDPTtKjFh3N5094nWtAEn09ui3LarrkBfVqkw==","signatures":[{"sig":"MEQCICyI7qbbjqsSigXHvVoT7ZTNbSTbeq2jMGDxElrHk0h+AiAp3K46qIg2pl79e8n8YRN1lfqyVGglA1jP5x1zKynUsA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiL1ExACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpaPRAAgh3VZmSfvLmfVvYoxH+icVqLjJXWPuw24z17gko27gvxd/Ig\r\naSrJrFhUEayQK19EDisSgZpV5yYaLjdhSuv9htncD5N6VI6uRfPfpAsBBuWP\r\nZBaA2asl19cLx0HLaX3c+pcGVOBEiiWZJY6eP9QHPAvMsvoYFxYarT2uRNZH\r\nEpaJHFLwZPX0vLtPgGG0qFz50mwIQ44wERfl0uHeqeGpTmM9lRoAfaIKnClt\r\nm8HQOIdlkba4RqtPqoEd6NK8F/HWSLq6pQVAwaoEOPmE6KYB9c11mRsB60se\r\nqbpUTBc4i+mvPAIXrXlvR+laMggndBnAJIZqF4JGHku30FpuMpHYb+CWq62i\r\n2BB04tIc5ReZnvSMqxuEB4bffHFFInltzgX84PyZAWVe1CrPNXDIl5U62v91\r\njp4gx2P1Bw4i/aNgty4Mpr6heuqpHZH9ZVuVk8pJss1AS/1k8TYwkl9sBRgR\r\nCzhcsJG0v8RC8mwH6rZCLIs19o1nm5KzsxwUNmTOdDSRiVKpxeWukBgUJ0db\r\nnXjZ9HfwDZJj3UAr4hyn7ygsh11pdL+Z2k4fZWpbNeRG7lQtfqkQZzb41kVF\r\nAFIwmNMNlbEegS+UGtMNNLYvdCFLStwamMwIwvxMUC9OPDCoQuMG3tCtWcmQ\r\nwFodHJiI1eXC4gEimtToV+8oCdDakYgWCWg=\r\n=mAcK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bf598649c7389f49207c410e58144f75a67cc4f5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.bdf1d3771.0","@material/base":"14.0.0-canary.bdf1d3771.0","@material/shape":"14.0.0-canary.bdf1d3771.0","@material/theme":"14.0.0-canary.bdf1d3771.0","@material/ripple":"14.0.0-canary.bdf1d3771.0","@material/animation":"14.0.0-canary.bdf1d3771.0","@material/elevation":"14.0.0-canary.bdf1d3771.0","@material/typography":"14.0.0-canary.bdf1d3771.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.bdf1d3771.0_1647268144947_0.40748622994897254","host":"s3://npm-registry-packages"}},"14.0.0-canary.cf4292778.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.cf4292778.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.cf4292778.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"786b27d8ff9737808d34733d1110682327c1f54f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.cf4292778.0.tgz","fileCount":44,"integrity":"sha512-gcGAfCD+6NcMz98/hVJIdQovHtSaIboh8eM3qLILvgdBwXEFRoF2K5Mpi04q9Rm40Wr2sVz3jhMSrsWZrI6N+Q==","signatures":[{"sig":"MEUCIGCIjBUnjX/JcR3hJzSgDkIs4vcDhjWfAwHSZvuoN1WcAiEA97apZ/sRDmwO3gKV67wwLOzcE8JV7dFOiIrC9Vht5SM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiL94LACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrKGQ//aZi/vn/BMIvXgksxkjPw99R+ypLkmBiy90IMN1SrosrweBpK\r\ny7iCQuzNxk5M6+JoRJPIzifn5ysNxzfXdyR0qYa4k6MbFzuoiz52ZPUzxtxP\r\nQYkd/X03GyOfZ1X/HZu4JzpsHfgiR2VT1Jeu9kp/wpMvLxjWtRJLEHJ2qU2x\r\nW9OXz5fsN4NEfkwEM20kBcEbmYm41PEVtt/jHME13hO3UF0bKw8uTw/xac6H\r\nNSaD5Jbo0vA5Qejv1BYkiQqBiSz7wyBsIbaTD/AbPnf+0zK6rmtWg28EJDJc\r\nGjH5qzKwQ1ocVCTWyXDjnoJoEahFWaCv77e2JyGKj2kZD4GrwIhsMRIRxkb+\r\nRnA1CFdazJ+9km3R0gWmci6ZlRRbDM5JJjIwnH+ybd0YjKrui4WuEyD4iszi\r\nkPw4vmbSdl7+GOrUcjcgjSREcvTaSMFAF49ojcgCpHtdhkHS4309Jz7+bkK8\r\njVwnGe8S6xu4FcxjuLSZM0NaSZVjDp3ED8Orklbi+jUFs+neAzz/ylNmtRlB\r\nDn7VYdrudlqEpkYYKiquB0E/aleviW/w5olPT24Dt9imiNYOXM506o6DzEhK\r\nle61v+PLNjkA+3opBAgZxhaOdQh7hAFFMjyOd01MBoV/keLFZSwtYy2ZuBh+\r\n5+9nn6rdV2qCCwkihSDzJOGRazqIorKGUNU=\r\n=FjtB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"85b1d5db9650586ff51d999fc12531d07489d13b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.cf4292778.0","@material/base":"14.0.0-canary.cf4292778.0","@material/shape":"14.0.0-canary.cf4292778.0","@material/theme":"14.0.0-canary.cf4292778.0","@material/ripple":"14.0.0-canary.cf4292778.0","@material/animation":"14.0.0-canary.cf4292778.0","@material/elevation":"14.0.0-canary.cf4292778.0","@material/typography":"14.0.0-canary.cf4292778.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.cf4292778.0_1647304203220_0.7137263104054257","host":"s3://npm-registry-packages"}},"14.0.0-canary.bbd43e0e0.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.bbd43e0e0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.bbd43e0e0.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5834734928997f8b7d36b5ab206b15cfcad34941","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.bbd43e0e0.0.tgz","fileCount":44,"integrity":"sha512-ED/c9XnT20bhtmDG0CmHv54LjKAv1f3HtMDLwzkZR3aGWPsrhxAEf8TkPwCQs3IJJlOevT5VuD+1r7Y7sTq2Tw==","signatures":[{"sig":"MEUCIQDPUKXaLMMy3d6xWzdmHfsC1Evd1CL0z4j2465zGNpwBQIgKdTfYv4Kxr0SXlL9EEO/8TQpAbVK9cx9DyT3fJCwNO8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMk2XACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnoQ/+KkLLlQEw+ux19j13hohStko+QVZUN4swd2+c4WPbSIAANzw9\r\n2TcaLTqAU9C0P4Dyb2iuv9fIls1vV6JnQ1SH5FnuqXVi0xKzIbg9rqWuy1pp\r\nv8h4mp3+ffFs0I1oh3P1/2g2CBNrC39AJzebrorpfgp8q3RZuvhY/f0XJuVG\r\nEI99KuNveRawpgbtJ86KHiYWszoUZNjPk07drSluXI6Bc8HJlTaikmqckEae\r\n82Y0iJCmbd37+ThLkmVX0/sH6S9tnaQ+0+vvQlsqcE478kECrHCF8jtWY9M+\r\n+ss0Xz3796UYlvWN6PETIntcbrP+UK9tx2+7eKIXmYDnL8jDbk3d+2o1VYMu\r\n1Zw/0LMTCedHrfEc1dAaiWNr2XuB1HtR7BkVlAz0QuGSyhc2frbymSlnkFwm\r\nmAScG//07vwHRDSaGiWVazsxAnAyHTx0MeWL8Sh6ha/oGAXYJdaZnBrmZ+m3\r\nj0bPWCIbdYcMwSOaEBV+bP2+7uFsoxMIVBNtdfGlr0bMTfJk/ELfIK6M7god\r\nAghVft59H2cpwu+XS+z7s909tC2u67jmei7FBKi9SuyNPr8Fo/woMOz0Da3v\r\nPRoYM+31bauMy2tNIIIR1oSewTRqKCqsbtmU8LoRRbxPK0B/JJYTJtOLuNZs\r\nyGDCfnIHP7JTas8qgOJzcvlk4sgLMNlmJlI=\r\n=tn4Y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bd60ebc6c6267688058726d6f98421b0e815336d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.bbd43e0e0.0","@material/base":"14.0.0-canary.bbd43e0e0.0","@material/shape":"14.0.0-canary.bbd43e0e0.0","@material/theme":"14.0.0-canary.bbd43e0e0.0","@material/ripple":"14.0.0-canary.bbd43e0e0.0","@material/animation":"14.0.0-canary.bbd43e0e0.0","@material/elevation":"14.0.0-canary.bbd43e0e0.0","@material/typography":"14.0.0-canary.bbd43e0e0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.bbd43e0e0.0_1647463831106_0.6490219898669558","host":"s3://npm-registry-packages"}},"14.0.0-canary.1b6afad86.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.1b6afad86.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.1b6afad86.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"320b979fab6a8bdad4d33627e10e6d49df982f97","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.1b6afad86.0.tgz","fileCount":44,"integrity":"sha512-EzWHUNfEhgQwMwxTEr4wz2USI8ENGIUEvDyMsdOmmPtL+3XKKmF/pcn9ySXIM1Jd9i81mDeFWvN4tzXDjyjzUQ==","signatures":[{"sig":"MEUCIQDZ9NzMPg3Kl5dldkvdsrijtOnpXG7l5g3asR6BfWEabAIgRUDOQydCQs++oQQGybl02kCa0ODF4vcaiyWVpiOL7Xs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMlDDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoQ5Q//Q3bX/j8bQMsPMhVda86mySQ7I+EEozWS/qWaqZm9LQyzvV9n\r\n0g6I8vqPtKBqi0Tepuisn6DeH+g4YZkVF6MPz583XecGkFZgX3O9JduW9MTm\r\nNeXI69ftgi1mAKnuX48qUFZADxEh4IW+MD2nHcp3NeD5cW4Q6fmyzaZPw/Gn\r\nEktUSJomYVEyOO/b5MNpk51JEcodvY1UKZL0u2JLWix/6h5tYKj8SzKwm+n7\r\n3XygGZ91tZDY72gCJmF0Bk/i/UM4WY29NhqFoZc0cgTQea+F6QWnUqE+5cff\r\nP62bgiojBt0KQ3qTmF4QMJYAyichrwiCeAr/juMVXCQW58yxql/GuUyMQdbs\r\nhA77uyWWWKgRqfx4ef9s8yk49/WdXFZV59v7P6C4VziuHOxeQlLxcdRVUmpQ\r\na5B3lPh6m3FVwjYt26qcS69gnPemlzzNAiYTYE/r/AGq4eYIDpiFIn2akwy8\r\ny5XtC3q4d985YjXHQcv3ecdG1o/0IOD5ah4fw1/xMNdKcwiaVQagl1IrtdSm\r\ndIZ5DIJuQKbHoTtyn1pHxxvkK/GzvjVb6pNhuA+hlQdlrSensZpdzrqdqEMz\r\nBvAOsl6k3JJ2jPOdvqvK3QGbwSXwRA5jbo5/be26cvC61MTJvO0WcEHCF2eR\r\nPfCNTQKpjQetcWmV4hhXRDi9PRxyC5VHEtI=\r\n=9HZF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5e32cc72145fa47fd2155c83c81cfa7ba5e27db8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.1b6afad86.0","@material/base":"14.0.0-canary.1b6afad86.0","@material/shape":"14.0.0-canary.1b6afad86.0","@material/theme":"14.0.0-canary.1b6afad86.0","@material/ripple":"14.0.0-canary.1b6afad86.0","@material/animation":"14.0.0-canary.1b6afad86.0","@material/elevation":"14.0.0-canary.1b6afad86.0","@material/typography":"14.0.0-canary.1b6afad86.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.1b6afad86.0_1647464642915_0.9871994471772361","host":"s3://npm-registry-packages"}},"14.0.0-canary.bdf9d4af9.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.bdf9d4af9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.bdf9d4af9.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6de1ad136a36e74a59457d979940405bd8cc4273","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.bdf9d4af9.0.tgz","fileCount":44,"integrity":"sha512-MTjg9tzDMqlAKqNoIcyqM2nkx2pEPtxI4NIq/fgkB1v7Qy/KnvijtUU8SMxtU/NzUSETUnEfGjEby4uOgBSgcw==","signatures":[{"sig":"MEQCIEng6yEinp+KA+mupZWj9kjBqVuai+mACDIxz4nmg+eNAiAUXn7Kh2847Pw22ID/OtrmnQc8FeeFHKHeupeVkQf1qw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMlQbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQxQ/5AQT4XKNqWePrMtqt7qFFKpskpv5Acb7Zg+x6H1GXeC+WMk2l\r\nGBk96KDpBGGdJ8s8/g59c+nzkIj1eIyDPYveK8VZmknI/ah2vU3YqsKb1qZs\r\nLVXZ+i21hkGlj6QK97RznUtRlR5isgQKJ64W6CE5d+gcpetmIHmgVJXfyZnS\r\njPvEIs+f4HTt0yLAxJV6jyJUHRKpRNV7sku26jOM70D2KlYh026qdATOEXim\r\nO1nYE3kbLi+UC4iIgxWEVwTPBiM0BzzBRS3uHg9v1EhayzJF25hTpRep2LFb\r\nadGR6ekxH81hXxtdrUWr6bP41kkN4orbsEInPaBENsAbJiyKGQbTcwu+pmGq\r\n4QJ92E9N1OJfWwVchIg2i1Z4PVWYKxf3xyTyAKoJy96fTUNOXgKBXJ4ZWcqS\r\nm/oH0Yg9rX4hxhhJMdV1L2Doh/bX/zAYY1jDNYjCpGkYa9uTeg7etVGpwF29\r\nvmviojJqQeMygJ6bJvgDxOsL4qEbJDhDFUrIF/LSeMkLil0QjRW/pXDFv7LF\r\nqhBUnZR5OAxFxcKFs6j+N4eGthevfK2pFFy2YKCzHDs65Ke3DsPvqLvijIP9\r\n9Q4Fft1MvMp7rsdOPQn5ChY9Gd9Z8Dy8C/TFkEVyUie6q3vxn2Nn/SheFXRT\r\nlIB/0fugLCiO3ruErWmlQatNAnCpp03jtUc=\r\n=rtlO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"413f4cd271111f1b118401821eb4bb38e7fcbad9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.bdf9d4af9.0","@material/base":"14.0.0-canary.bdf9d4af9.0","@material/shape":"14.0.0-canary.bdf9d4af9.0","@material/theme":"14.0.0-canary.bdf9d4af9.0","@material/ripple":"14.0.0-canary.bdf9d4af9.0","@material/animation":"14.0.0-canary.bdf9d4af9.0","@material/elevation":"14.0.0-canary.bdf9d4af9.0","@material/typography":"14.0.0-canary.bdf9d4af9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.bdf9d4af9.0_1647465499311_0.6567411615593286","host":"s3://npm-registry-packages"}},"14.0.0-canary.32b391398.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.32b391398.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.32b391398.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bd0ff37973a26585aca309796f73b111dc62c29a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.32b391398.0.tgz","fileCount":44,"integrity":"sha512-DNvXe4Fci6aIQID8ykKpypU1dTAQ8VEvpNCJ/D2omwYLN9Bp5XJdnpcPZfEys+r0WAi0nSabk1d55bxhBvOdvg==","signatures":[{"sig":"MEUCIQDCS8Ci1DZSiaw6dFeCFA27uE0HMCr/YLAj4RkzV2ZeoQIgOhxAFf4EOIXtVY9loAQk4HfV1zVMuNyp0rBmIQWzuOM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiM3cOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpa/g/+NnPS4Gu3SMBBrqB+26eGLH48LB9/NjawSHjdAE08r4PHauHU\r\nydS8VfiDyGqfe1EQ8wqMnTeZpN39S4S55GtQygxA2DxQOGKbFqROsJJ6MzEX\r\n+d2tXZeVh3puz2jUCFVnrgiFbBB1/A3iPG6ZCc84kySy32IVLIGsNPESL42J\r\n1YysZY9qnfPyLYSIYmCzsa4gFjMnvgvux7hrXT5/1Q4hFhkNJ8Q+xQNoU0d2\r\nTFgA/Bq0T0yxbcpuGwd0w8TAoAWIdl1ZRIjCM2KvzTEQXhfLjretqIVLWPaB\r\nA3ltDOLlKJCR8lbUTDFR9Wc6ekxRjMYFJ1m14Y7nsRgg5HoKCatAPKls1/Rl\r\nlWgIY1oM+cHGvhyLBQazO2/Sp3oM/cPzV2DGoRkxNsVfW3nhqy1vhOTNMsPY\r\nwt99Sd6WfTWV0MEWTG9htUM/MPZsdL8wMGSuZE5MKeGUBDPGqmIfMY4rfHDm\r\n6pCxl9MHcqAEi4r2DTg5sjaMpi9A2hyCIm6qZGRYouQqr24LZGHeky/1of1t\r\niqesLdeNhk2ceLnP2X4d4pHqw2l7wPd+i0vSV1ioSlzBZnF1AuNUuv4y4JYS\r\nq2TkK4ch99afkR3wvmAyvWz6goGJUpmzJ7p7O6A5oFeEuJd6tV3uFHJfb3WC\r\nxnocveXx5SbRj+FH5slIFgY76LUHPn+ip60=\r\n=3tri\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8a457bda7a5cedbfaee9da752ba2dbc093b45ac6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.32b391398.0","@material/base":"14.0.0-canary.32b391398.0","@material/shape":"14.0.0-canary.32b391398.0","@material/theme":"14.0.0-canary.32b391398.0","@material/ripple":"14.0.0-canary.32b391398.0","@material/animation":"14.0.0-canary.32b391398.0","@material/elevation":"14.0.0-canary.32b391398.0","@material/typography":"14.0.0-canary.32b391398.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.32b391398.0_1647539982420_0.5347048985075546","host":"s3://npm-registry-packages"}},"14.0.0-canary.ae8a6a3a3.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.ae8a6a3a3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.ae8a6a3a3.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"077287f55dac0253e50cc7f5f5afc133a5eeb1c6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.ae8a6a3a3.0.tgz","fileCount":44,"integrity":"sha512-8XNeINKM6mgvmljHFD1k5K+8UiE/tiXhqbn2qV1/fkZG3J8E4KU9FjUkLPADMWjy5Vqs1eH53S43ihNC8Ry3nA==","signatures":[{"sig":"MEYCIQCSz57SnC3c9RbNz0QO0aH5iZaV69FwbeDvlHBqffZa8AIhAO9P+/rZgpAZDmxSzQrJmzJnGxHD7NjZDLJqkhN1AwzV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiNLXNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoKexAAj/IpGF50KEnMaGPGX0z7SPwvco2T6N8/uZ55q+VUXebLKPf0\r\n1CdxJcSU9t5/TZaEZ3NSMahtGsdE/0ns3tXUKGJU2zJEur0zM03Rz3O7TvDA\r\nYTkfOT98YMz/UynhpoWiTnZxRxDYWNKWpP7TN5vZ040QwcAnPcwK7ys8lUd1\r\nRrXo7yTvPlTZpuTDVv/RSa8UAHF9aqAQ/HVO88fHJJEdc5dx9gdkfiBqP9W8\r\nKun4TP/i5YhdKruTgKTQ56UqM2Pnm3fyM+b2f39er918QjJAZuixE6T2ayNP\r\nLmUtdMURjJikl3GouwpkdhgEmKJ9PlbSbMciEJnbTMh3L00TMoiuOYQDlDGt\r\nhXQLfAln7U8JSE3EQoB1l+avJ83PUSqUAvXrC777BHjSrvWYo9b+2iEmiqT+\r\nyyxglP64STX8Mk/pegOyWCGGnFTDHVdM0APoGWBdInVvCcpoKlrDJe4hhwwH\r\nDcsbuWHg7Itz52j7HFkAUj5Sdp+OhO3QJ3lGfO3JM3T/p+tP2rL0eXROe//D\r\nLoobwrj9Bj2RYAn/I2CKnL4O6Rlz+KktiUHt4hm8RPN8kDo8hTV+XKJcqLgq\r\nVh7dp8MR0ToiIs/5AMz79+QXrh1OmBs3pjhdnmSDMfRzOH+Llyy2iteVYCT2\r\nYbbJhnCJfJCwgGB+AdZABd7Q1i/SvGrPLCk=\r\n=Odq1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"783283a1304f941e05b3ef25b9a589158368c595","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.ae8a6a3a3.0","@material/base":"14.0.0-canary.ae8a6a3a3.0","@material/shape":"14.0.0-canary.ae8a6a3a3.0","@material/theme":"14.0.0-canary.ae8a6a3a3.0","@material/ripple":"14.0.0-canary.ae8a6a3a3.0","@material/animation":"14.0.0-canary.ae8a6a3a3.0","@material/elevation":"14.0.0-canary.ae8a6a3a3.0","@material/typography":"14.0.0-canary.ae8a6a3a3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.ae8a6a3a3.0_1647621581035_0.6522463437875137","host":"s3://npm-registry-packages"}},"14.0.0-canary.cbd9358a6.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.cbd9358a6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.cbd9358a6.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"175b661d0a53f77ca502470aac09f20cd32c37a3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.cbd9358a6.0.tgz","fileCount":44,"integrity":"sha512-VVfjuftDQrphMZNNQzO/MvxPFEqCxShYRyqXmMmR5nLKwZ88Ytv+teZXTSLbPudkrwTYhHI9cKHjwWKi09M/dA==","signatures":[{"sig":"MEQCIHCMhiHeQdgwWpIw1ryRxFdekN8dQESQdyrs+biYpOBXAiAsizT/ZibWjuIMbS5XKF2gZ9yszbzFeY5r2MyHH3ct/A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiNQ0rACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmociw/9H4krH19khUbXXK47FmnWdZuBAUX5MFJfuN68oNs6HDDT3wYT\r\ni4ALQ9Af3g69EaB4840iz19W4kzTYaLCP83dF7Qy6uMvFTlvJ3U3QNkl09rx\r\neyIlporA5NJ6+OIIaypgRhceIql+s85NrKkqbc6d4JXYDahotY0O0ujmlPuw\r\noM3SwawozEdc2UVrtOdUL37Vgq8/BO73x2lnOv3YugznnZPRKuIiDp5rWq0P\r\nYBxFKY7DL/S30yrk6gozzFPYixcLW74JlnAxcvUsp0Uu1qckmIye/VIRrvgP\r\nvnUvpY0sw8+wup6hRJ+Iap5NpdfMxsSPlGd7QF/+RzEC5Tzlkbwnz/f2Re1i\r\nWH5133bfqB1PWPHXXTulev4Kpwpv5wIJYFK9/H9DkOhUn23gLp2kRCNJcDQA\r\nUj5oI4IXLUzzgRlRXTIF+AhsQX8Gx6bHRXZg5YmfLruJCj6wlBplq2exLG4e\r\niG8BqYopVHk+bxNcfLWeyVhwH2isxbAEIBuf2bo9AlCwZiyJaR2bkPp42Moi\r\nZ650aSw5u60V2Z4/ZwrzEQOWdmxKAN1zhuF6stcLT7azSj9OphFmqxu+Hdfd\r\niWwFktTJfJsNL3l6zLJtYH+UP3+0alR0gHnQuZohAE7GYkLEdc3pIw46Ivem\r\n20wQ5txLKPsAx3fXYAIUGofbbYNFZWrFZow=\r\n=k6V+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a4296a048e6aa0c1ab8e8d2cc6cb8321c24dab9f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.cbd9358a6.0","@material/base":"14.0.0-canary.cbd9358a6.0","@material/shape":"14.0.0-canary.cbd9358a6.0","@material/theme":"14.0.0-canary.cbd9358a6.0","@material/ripple":"14.0.0-canary.cbd9358a6.0","@material/animation":"14.0.0-canary.cbd9358a6.0","@material/elevation":"14.0.0-canary.cbd9358a6.0","@material/typography":"14.0.0-canary.cbd9358a6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.cbd9358a6.0_1647643947461_0.08833623806751634","host":"s3://npm-registry-packages"}},"14.0.0-canary.dcfe49c98.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.dcfe49c98.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.dcfe49c98.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"573ab9523f94df728e0ec84d8f900027f99763f5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.dcfe49c98.0.tgz","fileCount":44,"integrity":"sha512-xfxb7dSRyFruIkFptSVg4DRy7fZNdTqoOZJfTEEbBFVQK7bUPNyvj3q7hFCUXmXHaJJPdFwnFMrCcE5lud7/bg==","signatures":[{"sig":"MEUCIGNhrXwTwpLKqtNyV2PkYZLloz+bY8axtVxw0LHEYgJ3AiEAggjQeQW6C2o/tyx+7BmvaLW/q+0NVhZWZsB+TR3RnmE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOMeQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrJyw//ehTlAV3IZxfxLp/hxe4uvkUoxRfPTjhE8/OrnxayAxfvbRHT\r\nrp3+ec51mlpf8ZnkAcq9RdZWQCoTu2lvvM5etaVrNu8we3GwUTqJ3fdDPYVi\r\nR5HZGQcVy++SchVzeQ2NSJE1YzIwGFwtxjSyjEU0FzU4JMoBx7lXh81OL8XO\r\nNMH0F09U33LklAvVMTNFpMu52+B/6JQXFpgeWMN00zuvUKmV2vk1kZNT+SHo\r\nQO6o7KKW86J658eKaAvGmh3cqCPZRUuMBvW51fYLNgyQMhx2f2hfs9fAFXOk\r\n1/DBtaJ8ih+qz+x9XIyWbbXJ0EAJPLUcJvHKbGckVUGgCN5LGDxKsm7MFWvX\r\nSv1jKJcHxerD1e1VC4eOltEbrigm85CiIq9/SSvJiYMdLrtsGxr4tzSu1ojF\r\nyuIos40v3LZiqLpZu0ZUSC5lqDqRRi48bUKrSvFT0McmVa4drRDdJ+nkCJkp\r\nEBaj03oxpD18g85i7MWZH9WtyrWvHnLBL7beCVq/RfBSW57RbFJUCVNElmZv\r\nTVQjCnUejKmbm5sjMYlfrqcontWhV7rfoNXXDCHMaGnuYVafYgDjlwjJik7z\r\nFw0GLh+XzCM5XdwdlcPCKb420Mm11OEgx3FUS/YKdH77Z9y0gFhYksHpr5sf\r\nggNv7zQrEL1krhKw38/ss1v1Ly6LepnqEcA=\r\n=9KKd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5b68455eaf6aaf2f571eb64a1d8a5edaba58d37e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.dcfe49c98.0","@material/base":"14.0.0-canary.dcfe49c98.0","@material/shape":"14.0.0-canary.dcfe49c98.0","@material/theme":"14.0.0-canary.dcfe49c98.0","@material/ripple":"14.0.0-canary.dcfe49c98.0","@material/animation":"14.0.0-canary.dcfe49c98.0","@material/elevation":"14.0.0-canary.dcfe49c98.0","@material/typography":"14.0.0-canary.dcfe49c98.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.dcfe49c98.0_1647888271947_0.27122311918244635","host":"s3://npm-registry-packages"}},"14.0.0-canary.f31a833fa.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.f31a833fa.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.f31a833fa.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c083d7e1bc93c4970b34165f224506d9fa50ae38","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.f31a833fa.0.tgz","fileCount":44,"integrity":"sha512-7zovNqtiPBnON6NTsJiBo7KMRehOxjl/Kuw0zgJ6SD6Oo+pYn0a62MpY6DLtIJ23u5aWwUpmCAhe4qS/I+C2gQ==","signatures":[{"sig":"MEUCIQCQ34yhebMdz8A5CYYV970VXCgVLOmlj9X+85efCTCbIAIganDD7DxE+/irDvq4ot7ZiqjNAawl4QF74umKk9N4K/I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOm8EACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+ZA//Xk2ZELLDZFz4LEntnkixqUX4a8X6+AYhINofQvRe0M6jBj4/\r\n/i30DFR7t1EfDx9pSZd5ZFwC447due3bWgt5QFKBHGKcAwf7U+bB30x2uYLr\r\nGnN65e1gUD1gAIBtzFBPWcb1H8F01y2F4eMuOGTRKgwdYtSmGhsBpri1RI6l\r\nIz7kRCfO9wokbqAev9scWymgSItcvQb1/ijjLrEuxPjUIUfytgKOh0ll9Uu4\r\nvXKNttsaa5p4YR5c1mgO2Wp2dkB59QASG21GzP8IX0yL8sQQdEUrpL9VL+LW\r\nghubm2NKqMuRWnsUf2XOJKjA6n1D8mjmMJYqhAgYfRouJGCDSNHtyjaFbdNI\r\nF3YS4JvWG0ZSUKhRDmpDfJpvtVIlaUMMBV26WjYyLQigHqfLwsWfYcftoyUm\r\nX932wKmeaDAIcZA/CJZGly/6h+rgzMC6DCL3B0UZySBL6mNI2sl73pFoVqxC\r\nfRoBdggyoWAlVY2+jd1jbSNuez0ZTEycJE6gLNTH7RxULmjjYThnO0jw9NJU\r\nIrYlAU35cbbjvFE+9NevBWljxznypakp1nvsHZEEQ7ZlNca1NoccguPc/Yk9\r\nrsN0duGKNhA9ArPEaF9qiHLYc8N5qvyH38ehd59Or3qtd+wV7++ftd+oNUQp\r\nhbLUhniZhwK3zH39inUnDX+B8Tn7DfIpm1c=\r\n=dzv5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"28572f217366c634964a133bbf0ee0b8e88b8126","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.f31a833fa.0","@material/base":"14.0.0-canary.f31a833fa.0","@material/shape":"14.0.0-canary.f31a833fa.0","@material/theme":"14.0.0-canary.f31a833fa.0","@material/ripple":"14.0.0-canary.f31a833fa.0","@material/animation":"14.0.0-canary.f31a833fa.0","@material/elevation":"14.0.0-canary.f31a833fa.0","@material/typography":"14.0.0-canary.f31a833fa.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.f31a833fa.0_1647996675920_0.08857519983499573","host":"s3://npm-registry-packages"}},"14.0.0-canary.4b92e210a.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.4b92e210a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.4b92e210a.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ba39962128023d2c2cf98838e7998c1658ea77a2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.4b92e210a.0.tgz","fileCount":44,"integrity":"sha512-Z821ZQi18heXeK5jmJpcF/vBjR3EqZeAMlMPWjYsuxjkLQJD5mdDrZ13gtEsFXoNE06vlFqViQeIGYEOtxI+Rg==","signatures":[{"sig":"MEQCIHtFZKHV7blQsYaiwJeOZshkHZa0ptG8gRUL8M2Fyd8yAiBtdTP2b5lvOofwQkhdjJqqedk/mZ6MOwtLxkoFKDZYBQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiPNI1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJGQ/9Epa5Iht8JoyE/ARALAW4juMuXUewyGu9pmFg0E5TDRA/nIVS\r\nFHytfz7/c3AGrNKMYpyTtPz1A5RusGC8hqcZNfudpfaA/gfyoZLI4Ak92cB8\r\nNPathCpAaAnUnciILtsgnHEtiNy4b/9J5e1UDC1jtxIcnmsHgGj+puBG7GZq\r\nxbbJNBcl+oYuyEG7A2C2Q4QrEHi8EIwkWFNd6fEX5LzHTUFSk4o5/ZMxY2X8\r\nvUkIIjWGeD6pLwFrBUZAhRd5+MuVVX2XowMctn/kb4j/7VrG3hSd7mYlSfac\r\ngnaG8ySkp2ejCG+oiyYNDS7VOgOIPJxm+pE6v/iweFZqlHObWXxHIYXN18Y+\r\nmMaGdzF8C3JKCxrsCnwIcXxj3+VaM92UTASkHk5A5CQ9Z75LRwf/MKeLwvYi\r\nK5BIsKEHn0QHKO6NbpYVEc/aF/5E92dddtudtZoWnQ0T3R+GPqJGqRdXl+FI\r\nOuMYKTDtd4MIb7KCCt1iun2uGhEcaxz5O35H1loO3QBidFz81l2rd7+4s9mo\r\n9WOeD0f2GMCHQ/FRVtCxLMUB2GwzLdGN9YoRUzBY8TbjN3aUpIj8xH58igrB\r\nM8eEGnUbIHVc3OXdlqkVir/LmE/6S4+Kd81iM8B5QbutHvf2f80+JjSB1yZw\r\nqros7HNftNwIjSpz1Ny/nxFebG6tBy5RyNo=\r\n=CTzq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e9fc48f242a1815183c2b4c74ea1f8bb9967004b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.4b92e210a.0","@material/base":"14.0.0-canary.4b92e210a.0","@material/shape":"14.0.0-canary.4b92e210a.0","@material/theme":"14.0.0-canary.4b92e210a.0","@material/ripple":"14.0.0-canary.4b92e210a.0","@material/animation":"14.0.0-canary.4b92e210a.0","@material/elevation":"14.0.0-canary.4b92e210a.0","@material/typography":"14.0.0-canary.4b92e210a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.4b92e210a.0_1648153141045_0.6791816267117365","host":"s3://npm-registry-packages"}},"14.0.0-canary.a657abb61.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.a657abb61.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.a657abb61.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5d5a3b7dfae2936111035fda035a6268cf1a385a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.a657abb61.0.tgz","fileCount":44,"integrity":"sha512-wSo3ARy5YlnwPUFu/Q/2KyMc6B+0WTK5G+8+qr4Ibk9TV8OqzulRROvZwEAsakserbTWS84KK5UY8/DwW0fz3A==","signatures":[{"sig":"MEUCIQD3LDVg5t62xC2qDezQESGTwICqHyFUnyfDyF3YSYJ8kwIgMaTfTQOcnW5Udmv+C/hTKA+W7X7BptM+kriEa8Hcgvg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiPNc3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpzRg//d/S43Wq1GaTT4zklTdEF6qlURS+5b7ddRiaQFJOS7t9qU5rV\r\n4t7eFk5o0ft4cOWxh0jnSvNS8VPp0/6mpOnbLxBaxk1KM3E0ZwqQKOHMszdk\r\nt0phXuXYhSUlLehpANZBbq9umX8FVUl+/IFuqLOAzFPcCoqIcYZRHBhTOkFV\r\nF0VnnYFmFpz3KiWgq5719gBlTbnYXz0J1Lwmk2w7/Asf3aBfFfKX3QxatSOb\r\nVv8fIDWpG7VxGaPGSKr4R8/LfNUWKTrO49pC9HCqVtWmjHjrflCY8ZyLEmi5\r\nB8msXR5HLUx2lfEwPS1yNsfxYdFVkuipOFFQZa2x4L77Z4pIwVru9l65BWl+\r\nd6RvyW+PNcQHMr9bDwZQiGkevzFT45Q9+FbhS4fl1km6vVVqDUQBY1ZaQ9CH\r\noPP6i4nU8LVTozV9RfNyZ87mCQyWCEqnkoiC7Y4GQm8W2KIgzCcUMusfHIQi\r\n9usmlZIoX45emVXp1CkTdSnTXCiK17QmucnLMh3m2NodciNqZI5M+8QOMpBt\r\np+lB1CZkw0hDIVobJjotih5KUPBZA1EPz3nqV8ievymbOv47NXunDQx4QIW6\r\nOsA/wVVwMrLoyy89e5inLXpquY3gp6/fCUfpy2F3km3bmJkDY70m4nb1cF5g\r\nIKmeZPSW4YuU5+uJF5EQwUU7SE4HyE3KJu8=\r\n=DIDA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b17ff714094456afc14ac1ac896e38f85e300743","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.a657abb61.0","@material/base":"14.0.0-canary.a657abb61.0","@material/shape":"14.0.0-canary.a657abb61.0","@material/theme":"14.0.0-canary.a657abb61.0","@material/ripple":"14.0.0-canary.a657abb61.0","@material/animation":"14.0.0-canary.a657abb61.0","@material/elevation":"14.0.0-canary.a657abb61.0","@material/typography":"14.0.0-canary.a657abb61.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.a657abb61.0_1648154423353_0.8535803430193667","host":"s3://npm-registry-packages"}},"14.0.0-canary.443f63f50.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.443f63f50.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.443f63f50.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7466f32f8a067fcf1e179174cb596061544e764b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.443f63f50.0.tgz","fileCount":44,"integrity":"sha512-a1Su1D6OhTHyUW4xnym9c0gBoq+EbBGmniPyuPwsZnuC1BggdjqDR2STkr0O6VTqAOjyrE2IMdBj8SdbgB8dwQ==","signatures":[{"sig":"MEQCIFJjovio4pTmfPuPiKS6ti0Nxm98kmKBNU/1EcaIi5OCAiAT73zAXvpXyYAaNJg8zuX7ycxpcguGkcrllQmUlLUI+Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiPkqfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGmg/8Cl47OqLUBct4ESoojycG7yOUfcsAxpN1XKoIgYl8uaEXh9Su\r\ns3SVKPRDecbiFK6q5kJw5SffFESiQGWoEY3dYcyUBFDvMKkBQ/zfrpxcWMZa\r\n0nTMZDBlT9S11+Fye1hSa0UKx5qTMMUwIsUSXc3zVM1b86qOGbYd4MEqqd4a\r\nGqhT8jSn3+o7Y+T+qYH1kPi5BWO49FnMJdKThox+/slx47M7DSJAFFHlKK+5\r\nljQnv47t2VePgDwKcbuVwnEEHrTMcLG2O5k/bvFWrY/995OQqchgo23+84+M\r\nGsbwEeSu30aTzFKm7VG2sZsPlHA6il9Dvm2dPqaexVBcFBEXwyQObGX9jUma\r\neAoOo+AJVzl6nQBSgjQWd/9snDq0dvGtoVcktJFtfSmc6zlx2auxPRr5eCXf\r\ndwsKsKqSy5gPgrRNWQy+FixTVksspiqd3h/SjXUBjbjurU2GA76Pf6wUE5XP\r\n7ukeqsdeIPvVmAVO5XTwQKpHgfxN1V8NHYMKFQwgzSTcRJ6mrbyZjwBwUG4n\r\nP8P/Ie3rLN3/XnfunWkFKBOmx8uFzt7ZBsee6Pefuhq4VXzUJdcBE6Ad+cpd\r\nfXiJzKguPZSmmTSlhXwUUhFhJvCfuxgGC2OJVHPjuGRwRYzQJq8F01XNfDFC\r\nk04Z/pzLd68WYyML4BBmtZvT/eUbjR/vCJg=\r\n=IaGB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0a9e4a4d027bc972dd036582cbc94abd30d3cd60","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.443f63f50.0","@material/base":"14.0.0-canary.443f63f50.0","@material/shape":"14.0.0-canary.443f63f50.0","@material/theme":"14.0.0-canary.443f63f50.0","@material/ripple":"14.0.0-canary.443f63f50.0","@material/animation":"14.0.0-canary.443f63f50.0","@material/elevation":"14.0.0-canary.443f63f50.0","@material/typography":"14.0.0-canary.443f63f50.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.443f63f50.0_1648249503033_0.40627769315637696","host":"s3://npm-registry-packages"}},"14.0.0-canary.eb382f318.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.eb382f318.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.eb382f318.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9e93e3aab32f331be200cbf80730ea1b381e2ac1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.eb382f318.0.tgz","fileCount":44,"integrity":"sha512-L9iP40MxAuRSjIu05J4fY7BHZ1r7mEcefe+ZGp1CMi8BHmsdQ3wYNW+8k2ujDjyvf6Gg03pdYRi9xcwZQ4dfAQ==","signatures":[{"sig":"MEUCIBgma+LebtLOWl6ADpnbBfKLEwY3NObCfIDcGaQ1xYoaAiEAkl+sMTiXFyAN4J7Ewd7I3SyCkNrYECYHctyUhwVFdqI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQ0NbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrIqRAAjFwxPcvaNhPHfW+XLeSboyErfU7eZnLryustw9MNnDh0Y99y\r\nRFMPccTii8Ff3e1fjDQAH0feWP3MXs55/FnNXnSJA9VZ+BaaLKMy1ttgXRAc\r\npSuLCq61pTPqKKkHvV2J7TYo62hNJ+s1E90bETH85DWzP4T+18fsjbIZuqF4\r\nnkIw69kME18cyOOW4zCcXZrN0eFc6lKvXRFSnBaSAJYVpTMjtx4sFSO9DTNs\r\nrdfuLyMzvJ4i1r1OwgNguUr3fNmPWe6fS/AAYv4Ea2z0QDX2BoDvT59AQRky\r\nijkKkiZCbWOFV3csQbgiJFA2ogpTh+5cFXzhUSa4WC/Px+zGiMmfPEYILcWU\r\nyOWonCG6WnWaI6au+P6rC4m1ao/+vrdQGsZjF19zVg98mrpEG3a/nF7dywsM\r\nrfOnnwpc2BEbr+ibuxn1MKuVRXu8LyyDlRdV1cggrTRBgPwiw1D+GvlwPvZY\r\nz6Zwilsb/qgeN7ad6E1L4TTX3oE19y3XlhPlhjnBmzxoWKxLCrv5OXQMpax0\r\nHDI6xxgqxT4nDzWSoOXVvxuU/h725SbTFLMWg/lkLZat9t6uZ+CowOosli4l\r\n+bxcyYwAk5fejNwCzecui58mZHt4UK2IajXcGUGAkTmTHMtTTmLblKvXhhpp\r\nw3puYslbtdqNZ+HCWX66H0/zI7XCRW+0QLc=\r\n=Dd4f\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9aaa59e82abd1f56fdb3d963213242fe4f989c89","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.eb382f318.0","@material/base":"14.0.0-canary.eb382f318.0","@material/shape":"14.0.0-canary.eb382f318.0","@material/theme":"14.0.0-canary.eb382f318.0","@material/ripple":"14.0.0-canary.eb382f318.0","@material/animation":"14.0.0-canary.eb382f318.0","@material/elevation":"14.0.0-canary.eb382f318.0","@material/typography":"14.0.0-canary.eb382f318.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.eb382f318.0_1648575322935_0.5364999001822628","host":"s3://npm-registry-packages"}},"14.0.0-canary.344d52823.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.344d52823.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.344d52823.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2eeb447f580786a753f4f7b2645568ccafb77303","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.344d52823.0.tgz","fileCount":44,"integrity":"sha512-OH+KCFnzLzS502INlZlFDiRgv5XKHnPr4fhnlb0igVi2ww+q8S3aW23maD2xjhgBeH41RAGlwGrZLQFD94k70Q==","signatures":[{"sig":"MEUCIQCrjg+iT94wjenw8WDVpvfoNbL+puTvUWNwTsp3zCrDWQIgYgX7RkH3UOxOQU90wOxtEab/HIRzPvUEm42oStqhtNM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQ1NgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/Ng//W2PNrL75qm3++Ma2FjjrnBnO85lgwWV6OF3CKbqGDATduE+R\r\nti2Rn24BFkZaVtpXGVw4LubOycz8PxdpZc3ycwsE35DvPK9FBp2RyVIJG6gl\r\nT90Qb9OxGkEk5/wm4bh4MKkXEWRGDIH2SU693rTS5YimxzllCZvZG+UM1Cuy\r\nvQCidbwkG1P8VHUkN0N3oCA8yhCfbGTRcXgZZ0DmKS3seeL3dwvk4pzS7AQf\r\n6GSFJeCRwUl7/lkikL7S3PhjkjJY7uOs3J5N9k8mcNEVyM8/oEpR6NpOPRMk\r\nlzw5ALEmox2vhA09oW9xZLM5Z02/bY/jqR1qPuyNrCeGIRqAOKVAu22vFBjC\r\nUaDXPnP8J98adL9nGeH/y2oYVAZpqH4jKwgiM8jWDFl1Bnu6O7SvpnysoOtP\r\nIok0lpdp/NcQVtea+jXTvjqN2KSNuUEpjN5vm7667kZLlFnqQdVrx7950NvG\r\nThK09yD2QJqcJKK8C8/+mFFW5mrbTl1GBk8Yhl3uIb/I13+/cj4cNHJ1L1uJ\r\n0qXfyKL4KlQibMReDtYXZISZxUgXSD+i6VSjE/4SXldRyL4lAA5IzdTo3iT2\r\n1wkB/IDpuP1EZ0VvQB61Y370/JszM9ZBv3XM4EEi0r8d7wRN05MLPPKgra1o\r\nTCvHyKNssyRQRkiMLS7qpBEfOCmSZ3WGva8=\r\n=d0AI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1d0b3e3b77ca281daab88499a03131363e8ce97f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.344d52823.0","@material/base":"14.0.0-canary.344d52823.0","@material/shape":"14.0.0-canary.344d52823.0","@material/theme":"14.0.0-canary.344d52823.0","@material/ripple":"14.0.0-canary.344d52823.0","@material/animation":"14.0.0-canary.344d52823.0","@material/elevation":"14.0.0-canary.344d52823.0","@material/typography":"14.0.0-canary.344d52823.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.344d52823.0_1648579423565_0.9455140820525951","host":"s3://npm-registry-packages"}},"14.0.0-canary.4e372fb49.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.4e372fb49.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.4e372fb49.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ab5201baf9f10c985615daa0f9ee5d12d2290055","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.4e372fb49.0.tgz","fileCount":44,"integrity":"sha512-P/6JT0rWFgA2AR6+yIfX/Hwio67nTBevcC0mFdGkizWW4q2EMXhB2yuxI3DsRJuidhY+1YS07yc6F539zLPbYw==","signatures":[{"sig":"MEQCIHzDDSg5GjIby0AeZwRWzG8xoPHC5pGuluC6EBn9kC0/AiAo0uFVrf7h5mZuTUDzkNWTN2fGzbxnt+j/uLh7Es83cA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiT0qUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoE7g/9GZIX/I6G9tOM9ENaBylChKMNtFIqrNvtvooKx2LqmqTG8OWK\r\nQI8ZyldcWDdcxFsyWK6Gz8l3f9yB9yR9O2qdKuIg192Aiq8PLPs3Vjm+wYAl\r\nZL2kDR41+dkScnY+XGieNW+wJ/MySTheZs6+Ll5jC1RRZRi105RjCaexUems\r\nqqixhXpLTZYCbnp6MqUuZdkmDTzOfOSOhTE3W7hFXj3vH2a2+/wsYiA3cs2e\r\nDDYNmjlfQ928tiKvLSZ3Bw6wmLlvNJdsucaZCoF7pGXNeqgS/53OroGkxIBv\r\nsqGKAHzSmvV2CGxu4+7eoT7mSkJqWX8/XLd9hWvGpMfqXmlfsyOemwhIcztr\r\nd9ALs3NgVW7iZr0sfljC+tBh64qPscEHYoGu7kOx5Ue7RCtMIfiKFr5I00Ah\r\no1GdP0ZF3L0JXvDIiMke/tgQfJV7bBwRXvpRxV3tHhjuoIOTb75hsD1X6q4X\r\nSO/N3kJTHuyt0/fqJJg5T4UO5yTnkBg8NM6ehK5hlFkiVub+Q+HNHgUM5rW1\r\ndzkUFZUw+EeeU489TBs2dM5fsFRdCmsbqkIBuUOgdK0+tf66IzdEqeneg6aO\r\n2PX2xVC3tKFMsFWZjBAIN/N5+23Muq64ynn/vUIo/sBe3/MFASviVsw6SMtr\r\ncq7nE+ZU6aBJ713ae8BcF56yUR9VNSIYT3Q=\r\n=LCB9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"013d3cd7cc6d83c59581f40ea832529343f43047","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.4e372fb49.0","@material/base":"14.0.0-canary.4e372fb49.0","@material/shape":"14.0.0-canary.4e372fb49.0","@material/theme":"14.0.0-canary.4e372fb49.0","@material/ripple":"14.0.0-canary.4e372fb49.0","@material/animation":"14.0.0-canary.4e372fb49.0","@material/elevation":"14.0.0-canary.4e372fb49.0","@material/typography":"14.0.0-canary.4e372fb49.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.4e372fb49.0_1649363604229_0.6034419163898863","host":"s3://npm-registry-packages"}},"14.0.0-canary.3e30054fb.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.3e30054fb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.3e30054fb.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"36098c825f204ed90aa050e147d480f54a24d5bb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.3e30054fb.0.tgz","fileCount":44,"integrity":"sha512-cXZXlAuLHO1IHJzfhUu96VzL+lPO/Gv0YlhgowlYEhkXrc5kren8OB9Ek5SDqx4MonREe9oxvLxOJT1WnKdS5g==","signatures":[{"sig":"MEUCIQCAgK0OJpOlRtCYvLbowtaUFPHiJobccfQOMC/F5zNbyQIgdz34Sekb926v+woql41o81L9twas0teDNtIRRfZdw9w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiV0tTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKTxAAiVXUGyS+DTTX5zxHFO10YfrW+uWSUhGoN1NbxIethuQC60Rx\r\n1sQgXx9HAGT4K1lBSAr19kK8y0NdfKM2t3cX53UdVjlomH9Ew/vO2z48ES3I\r\nAzr8IzmoZGokGPn/g9nypFvn5rP0AaL4rcLLBkBm4wa88soBYcEiLiMqFUWc\r\nFeBpPtEHGkT5ykPRyMhzaCHsk6WIRqwY8aGAIOFRYzP5C/zD952PL+gVkK/U\r\nZ8c3vaD4RwC4nBbtvsk2KkYprubBgItW/Gd89rvy+vSwkseD/2XI5YZn+tPI\r\nShwy1lwuAovCookhBiowEIm27qoqG201gj1dcHADrPmf4ODPc9lADemiLI/K\r\nKffJd7DTOsk/4bH5/ULsONuUBCslBlW0J5Q2djX7rECPZIv/h6nKw/Vg88HK\r\noHoCP0UtitZGfa9xb7Tz9iVQEGizOhgrIg+pVvhy+9cJCTtgmxrFpak1NWQd\r\nScgu5jzMv64O5GKPmU9Xy24uoyvVaSbDd4BfR00FrybVUJqysHLrNBVaw9Dm\r\nGF+UlZ81/lFgMFluV5QxkcjUkKn8MtYWH+hDmH6mQ58CHs0xkzai0/zrBeu5\r\nWo52G/BfNO20MiJr9EbPlz3DLCFHD0qkEIErYj+I74HPvLl9S/440qkehW9v\r\n2DlHHEsEP7Hu5F1s/MCfX2PErqNcafvJPzM=\r\n=rDj2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"04d79139861b90bf3488ab3f74e4bc33e6af1c8d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.3e30054fb.0","@material/base":"14.0.0-canary.3e30054fb.0","@material/shape":"14.0.0-canary.3e30054fb.0","@material/theme":"14.0.0-canary.3e30054fb.0","@material/ripple":"14.0.0-canary.3e30054fb.0","@material/animation":"14.0.0-canary.3e30054fb.0","@material/elevation":"14.0.0-canary.3e30054fb.0","@material/typography":"14.0.0-canary.3e30054fb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.3e30054fb.0_1649888083373_0.9953435065658096","host":"s3://npm-registry-packages"}},"14.0.0-canary.8c4da223a.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.8c4da223a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.8c4da223a.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ee7a72ca3059bb650c441bd99cd5a86889fc6df2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.8c4da223a.0.tgz","fileCount":44,"integrity":"sha512-pPJ2QNT0RquCZ1c0FSBFC++LNw68MUnQhuxb8Ztb/5Lo5/5ji8gi1Rcifoogqsg9UE3ePpJFwwqKQEeL/KH0KA==","signatures":[{"sig":"MEYCIQCcT/MVPp/qhTQPfBhmuzJYv1smhhoVFVVi/1w7XO4sSQIhAI1r8daOWR53VecfQDhz5/ceszI0liUVkmRoa5N2Y0cw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXtQ4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrhUw//TeOcqbN/lIuGcP4GGEy97vKTLO6pkNKCm9IYbVkJHThBPpOM\r\nbmbo5wFWwwRs/X4Zz0uUmBZ49AvnGr1TroE5BFoWrB4HvYkk2c4jAgkf7w/V\r\nuCwYas7CfIrn48W+bd0rMg77PSkt3rCYI7thh7bPwchRr1YYfX5Khd+lgqW5\r\nYP7uIG6RLUDbxlnfqPlVUmmp9KQdrdv4GEXM6JphbaF9InYdciE3PVV4V1Sa\r\nBqE537lJhl1msOFqycFBpyt+YYHlVK18+z7PPNEjDPhG0G4hl49gtOM1914H\r\nPcPe84AQtB/pqXY/1Uj4N0Rk3CAeaHmTljkI9pFDp5GioyxIZtixzbCi1IPY\r\ntQvNa3nU7E0pvGgM6UZYYuQXFtS+6F6ZM6Nzd5MlKCxIAlOt9YGHdlw9xf9K\r\nCLQ1EbgbYMQ552FrK7V42egxVtRU/CDQQ9TRdcmGDBhkweaOKK6uh/WwHlkM\r\n168sjZIHiBwnt7nDPQpPBnX1aJGuilmFOKboIdW/Nzq1j/OmfKdt3K7Ak8tz\r\nNi8nyjiH/hNWKG8uLVpVfUhAgjmhqrlMkFHAaMbeGv8bPBvbHg0zo0gfOkSV\r\n8fnGd2RmCGo0odbD15hUtd9bK9gvRsv0CZERKJZuKvVyLWrWPQSvMXDE9AHd\r\n45dgKuSd88s52fq4z9o8QZnqGkRfchA35TE=\r\n=eytU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a5f798a752de150dd0a004bdfc90979ab4185d1d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.8c4da223a.0","@material/base":"14.0.0-canary.8c4da223a.0","@material/shape":"14.0.0-canary.8c4da223a.0","@material/theme":"14.0.0-canary.8c4da223a.0","@material/ripple":"14.0.0-canary.8c4da223a.0","@material/animation":"14.0.0-canary.8c4da223a.0","@material/elevation":"14.0.0-canary.8c4da223a.0","@material/typography":"14.0.0-canary.8c4da223a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.8c4da223a.0_1650381880207_0.373525992906365","host":"s3://npm-registry-packages"}},"14.0.0-canary.7de8965cc.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.7de8965cc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.7de8965cc.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9ff53fd4be2b9b18bf37399ae8f92ab44f5db0ef","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.7de8965cc.0.tgz","fileCount":44,"integrity":"sha512-jyDz2ekL7mFc58WdvTTwCsgtQ5Kt2wEMiHXYb6hz9jbajrXmauu34YsLaZlMRZxfEaB3yI3luhXf6nRX/9yq2Q==","signatures":[{"sig":"MEQCIFsq33sppaYPH1mZt0trQN6/a2y5OF4vedY3oZKchGN0AiBUEyRHzOKS87sE05WwHWsdEqyObgoHmgAdw9FGcOo46g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXxpXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrwlQ/9G3aRdGQ5ssCeMzIMsJ3S0KgWA8kFmHfYl3uYPZPkL9KwzzSn\r\nA6Jsa6UQeyvfSu/Nfhc+bb61t1EoEYjcfQ8p3lopb3c6neKvKVxt04R9VNUV\r\nfvgkab9yQcDs8hMfdNZVEw6g9MT74TI/kxHFckQ75G0bOcZtRyrZMF4UMMyI\r\n3+oNPxxAFfQ4iEQZnQkCf5P+IjB8TZCCb70ig2+HKChdu4oiEVrRls6vK0rJ\r\nmJxjwbmgLMmE3n9gNJUmF/XuJByHpMzemWwGajmlW8A/DffCeyUZTDlOx/6R\r\nMbFx5YD7hyn/P0qOv+IQfqIBzd5AoNkmkLF96iXxq7P9JkK1Wr9OG1+EP1m6\r\n3a8zZ09n2j0vYGnlEM3hQcIPq01TxhiK22yXRd6QlNVfKpjgW6NUNbik8ZbN\r\nE7Jdpc9pJ2qd13Bn9m2srtvrh61MmpOIt2pk3BnskReOJ4FcsjF7pXJy+0Xm\r\nSoO3nhhLbKwFDXh0mKoiuzNo8W6LthE2OXbLVB2X/fWlQmErxhsjyWcBZfJY\r\nOmv51zmgya8jxeur//V/U1Fc6AK+FgvGgP93KGuUnokW4cxnzKjTzhZXxZ5+\r\nwfW6VWgwRNYe089F7HwOP+vF5uwxLzQOsLS2kneNhBcjaHMMk+4NDUVwOGlr\r\n5VoGCYxlrLDloubVRsu3h56eFwb2dJm0uIk=\r\n=g1Sb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"538ae755c197f0d9a1fd3a2cab5000c498987584","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.7de8965cc.0","@material/base":"14.0.0-canary.7de8965cc.0","@material/shape":"14.0.0-canary.7de8965cc.0","@material/theme":"14.0.0-canary.7de8965cc.0","@material/ripple":"14.0.0-canary.7de8965cc.0","@material/animation":"14.0.0-canary.7de8965cc.0","@material/elevation":"14.0.0-canary.7de8965cc.0","@material/typography":"14.0.0-canary.7de8965cc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.7de8965cc.0_1650399831284_0.9444359772226159","host":"s3://npm-registry-packages"}},"14.0.0-canary.641ed0851.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.641ed0851.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.641ed0851.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"203bdea3a23f4c95abfd7334bddb15532f6d420b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.641ed0851.0.tgz","fileCount":44,"integrity":"sha512-9B0fM6+8Hed/DaeZ/89M6/QvshfQmsQ9V0kH0s3kLrrB5YVmEE1HAuc1WEsMFp+fDCq/ANXebXuc1IP6Zll3qA==","signatures":[{"sig":"MEYCIQCs42WNjHeOPugUi1p/bk1mgcHod43eoKxV747+XVKN5AIhAPfROdJQST0d45Om+6uzpGyLJP8atoKYF3Ji41S8g9lD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYC9zACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6nw/+ImjQFrWrSFZFZnbY7hgWNmxF1G+6nemkaf8Bdi4+KqMGXhc0\r\nWCGcgK7rW5CZFEMl5gPJRhHfws9baE16voDi62Nnv3J2EB0kZI1DL/e43Sv6\r\njbAnfkwfzRkRwNwJh3g96F+JfRdtqsVlkXHZF7YSCSpRgDHIv/ZZZLiPzEKM\r\nuoPZubBcMgkEOc3K+J1K4ZqF2bHhyUSZdtW2hw/Lmq7PCyMtQvCAlXrB67Wa\r\nOwG7fJ6EoJ4lm7dBeoVfW5bIb0RUUxs9RbETp9j7l48VOz+mq00pLnFbZe/5\r\nt4sowIkeMS7zIrX7g0wa1K6UV5emyp1foH1p0fA4nRaghjl/9zbqg9fO4lbL\r\nSj8NGiEWb2eGMlqxskScG6YBXR5ahgbgEb083/2d9rFplRK3yfV7XUtJkoSs\r\nCHCJbjx60cy8z430/uL395eHLw7iG2GowDudJiYVqfmLdkN11HeybPCSt/qr\r\nO3AbFuQ+LUT71/y9xBwfD4hfw8rZ3mg/SllKrd1UFYgxGK0JQbfgdYwfH8oE\r\n8lhzlrBf+WbFHsHhzz5unD4/2i1yeRZnIb8c/SBsq2eRvqcznNcCGqCs4hev\r\n9X2wVokMBR4BdLxQS+LP1eHzZrxR5OiRLTT6s6+bg2X0WhgMb4UuEpmhLEE5\r\nttU+fIEVsWARUR5obu1UWlQXz+JgCFh+lIo=\r\n=V8sL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b45ef0f6764b2048f5027d4990cd48d6bdce11ec","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.641ed0851.0","@material/base":"14.0.0-canary.641ed0851.0","@material/shape":"14.0.0-canary.641ed0851.0","@material/theme":"14.0.0-canary.641ed0851.0","@material/ripple":"14.0.0-canary.641ed0851.0","@material/animation":"14.0.0-canary.641ed0851.0","@material/elevation":"14.0.0-canary.641ed0851.0","@material/typography":"14.0.0-canary.641ed0851.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.641ed0851.0_1650470771606_0.8908271167111039","host":"s3://npm-registry-packages"}},"14.0.0-canary.e88f83024.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.e88f83024.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.e88f83024.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8418b1b74a458f8b4edb6df9dc431dbeaa5a1bb1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.e88f83024.0.tgz","fileCount":44,"integrity":"sha512-5j2CKO/RnkJm5Zb1mMbFALfphNzZljTqmPHtpAfDgLZb2nQhGkrSoJsmLEJCrCPh1pO0fUIc3bKz4Mycp1We/w==","signatures":[{"sig":"MEQCIBY6/Pof0j+yY7mYtp2ZetoS70cKNKUXbuRbk4cZOGI6AiAoEktax2qANa6SQQQ9RhLOM+5C16isOPW2E1agbFCiqw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYEdaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq+sQ/+Kp8RSJ51VUB3Q6lQngc0Q+Ovd6m+MIB0gwce80vLLok2Nlrz\r\nAFOcTV4GYGU2yOcDMGqe1MPvaKb18MGtpx4H9dU/LxMcaI7ao80+mFVOJEVC\r\nw6DzAeGTYkMAgLsBUpjqGV0um6KrKxvdLPfdJJYCPpUCE2/aykyt+fWPtOzu\r\nG9rbAple4uepr0U96/rxAgPvhZ3G05XLmJOO2XCOGbq34jdFMU0LiTSZuqZs\r\nPflKGrG9JsJPldWS/QmTgKyTKb58alCYyCIB0LOC06ZuEMld5qCowPDFSBFA\r\n6EHjOrs/4kouoGGFJKhAN1o8w5HrZnBXe5SAji/dSy/IgjQoRzhjzNg2TQwK\r\nOPmEpY21AFYzi1zxXBTRroKaYB9wd+v3nkTuriYV+pX9XjeB/dS2YNZOHkKj\r\nIKB4VCoqRwGPjqAPP9M85kR9hlH3mNJLIT6FB9+/Qhw+lYwS5bEabaZdPvN3\r\nRrwKzxcv6m7uYOnobuoctRMrFR1TIatfRV57xbYU92q7waZAZVgnwkCBCPfv\r\nb7GCt7GNLh/a4QvQdeETgr0OV+vcgRRlAyINT6pTaQ2LdcnILHQnACSFGhbd\r\nZwrttl3ZyCC4NrpCOeVNpSrQ6l0IILSUWOrUjmWiWLo+1Urt+6omRQ2sae5M\r\naqdNbEA+FBry5khYeAdHrWLnPkCup2RHnik=\r\n=thzk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e9fdf51ad2ddd3dba754b98348bc356126b5640e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.e88f83024.0","@material/base":"14.0.0-canary.e88f83024.0","@material/shape":"14.0.0-canary.e88f83024.0","@material/theme":"14.0.0-canary.e88f83024.0","@material/ripple":"14.0.0-canary.e88f83024.0","@material/animation":"14.0.0-canary.e88f83024.0","@material/elevation":"14.0.0-canary.e88f83024.0","@material/typography":"14.0.0-canary.e88f83024.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.e88f83024.0_1650476889764_0.2737600370018176","host":"s3://npm-registry-packages"}},"14.0.0-canary.7321d6254.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.7321d6254.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.7321d6254.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"77b42db5637e6dec1ad579ea56d3a06b2102348c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.7321d6254.0.tgz","fileCount":44,"integrity":"sha512-GZu3vEDETxAnOp29U2sd6A27tfbNxhtSra4hXgSFTeWT4YskDCQ5k3+NI3ExCOzlr8swUOJKMH/bkk7bqOgw2w==","signatures":[{"sig":"MEYCIQDOaDu/A0aKXf/2TgcqKe5C5dcMPF+JsrMD8lngMniAUwIhAOpofMsTZeRfOlX2GDLAGvFSXvJfZP8PKZ+xWI1HZRE2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYGkDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGRA/+Oyut2NZuoQWmFDqoDZdmplZWuEcOsqtE2njNQ6P+BJgC9yOz\r\nanJjH+3OLN7MkOzx/Pt6H7OBiHvDx6A9FXJ/2QL2CzAJhM84DRGuaXyxdbDk\r\nKOwBSLq98EN/OJVeiRdQNfFFn/QVYIRatVIOlc3j5VkUfzlXJc4GmPKQ7pFY\r\nOqmltKpS6yDcz3yi1A9ZPCSInfoTR4FtqN45Ieiar9wvMHxIZFUYjSveX13R\r\n9DqSuzmWtT2Qp2YcyIQDQMf4pR0LQvIWxlu9XXlz1aoA/733b5hADVWyn1qW\r\nlAtjTTgoRyor1YCidqu1F5HXR6dsP0dzRouL8DEiEz3+/eMO7jd9vZsjzRng\r\nR+vORZqi9ZKHdU/AwmRatqeH76dTmf0HJW4SJJIGGQEwDdK82YrdC7Tw/nr/\r\nHOk4ahxYc8k4hljbvfric/cHFIq1xX/kSTHOiTEyiu3ipE8ciOMmkNq4XDqS\r\ndZOV3Uzh59llDqSS9aIVfsB7YQRa7YBRHTTDyuo75uUKGGKix/Gt/B+BZgkr\r\n3kQCNSqcyI6Z7iVCUizVNAQ1wEeJ7ri2zuE4PYAKYAhVgUZ/ss7kGA8dFv1u\r\ntpZBJsXDNZ/j0FURjfiXX4YGFBUWxnefscLBkEi6UqQOOH7++454BTtQ59+W\r\nqLjXl5QbSR6QiuB0vHz8sYrK+ltoMQ+MTlc=\r\n=3a2A\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"981be270463043c4b45845cdc3efce353eb53b30","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.7321d6254.0","@material/base":"14.0.0-canary.7321d6254.0","@material/shape":"14.0.0-canary.7321d6254.0","@material/theme":"14.0.0-canary.7321d6254.0","@material/ripple":"14.0.0-canary.7321d6254.0","@material/animation":"14.0.0-canary.7321d6254.0","@material/elevation":"14.0.0-canary.7321d6254.0","@material/typography":"14.0.0-canary.7321d6254.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.7321d6254.0_1650485506862_0.5732550514813184","host":"s3://npm-registry-packages"}},"14.0.0-canary.3ab956515.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.3ab956515.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.3ab956515.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"46feaca344559d0f280008ae58aace2a227a2335","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.3ab956515.0.tgz","fileCount":44,"integrity":"sha512-a9QgbxopVmyaukVT/AN2C6wU+AdBHkM1Zm2WIowF9cImxxb+2IVvVuV6/i0b7hHpxvGGLxsXrM3P5Ox06OyeEA==","signatures":[{"sig":"MEQCICCItvnitwdQfADqskF8K//Hipp7QHWj0hfKQXaaeJAUAiBJrXX88050Gqx1GvMPETlngfkH4IfBvyJZ7fPlCMXSsA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZrf9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6cA/+M9Wj1BKBP6OrYhj6OFGCGZvkTvB7Nva4DBewEv4o5R8vTcWt\r\nwQWQ8o+xHrkedkYtkT7uuO5AfXeE7DekDDhoaGt5twH2R7RJf3jfH0o1GVpt\r\n0XhGF0rq8HDK1hPsbEOb3NdlJavXS8dlZzthRBR5hZV3P/oSSiSqmJTHPiCk\r\n/Nlyt3x6TJQ5Ncl+Hi8nYmWeMGKtb4/7XLCbRQxEaegCMbmC+LPh/UmVn74G\r\nkrkE/KfJ/5MczorpdhKrovgqF9rvoIM2KQIowRb3DKFV/q6hvWSJI6Dc3no/\r\nnYV5FV54AMDXwJb973U9X9fdnK8Lidp7SzEl7D8+z3Cg/c64N7O58s+DHyWB\r\n/9Dg1pWS0VYCohPd/A/KwBAYyjT7xsZk08WYWQO6rvdxqKH02ylDscf+Kb5C\r\nuzN7QmKPgWxSZvGVKq5uyjDs04IhjHy0oDM2OzKMJWHmXs6Ki3BINT4KQEpx\r\nvARhkibV9rXeBPoP+jLeDxbXtMoL4AJKVAROmZQ2aY3xI9dT8SU7g6wWSU9P\r\n+S87CLkAEEAyPSRQEjjWvKwZkm5VBqjn+EEoFPOt7EHOuhiD37OLnYSieywx\r\n/ZhU7zfSQFZpm6mX3nOYuWSLodPm3/pZxsxKNNKdUeTTbBxciDwhP4CN7er5\r\ntW/QKNUN4DysohTkq/aWMctypsysbf69vCY=\r\n=ARqm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a09484c5e8d50e8b042d5367972a9111e0432c38","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.3ab956515.0","@material/base":"14.0.0-canary.3ab956515.0","@material/shape":"14.0.0-canary.3ab956515.0","@material/theme":"14.0.0-canary.3ab956515.0","@material/ripple":"14.0.0-canary.3ab956515.0","@material/animation":"14.0.0-canary.3ab956515.0","@material/elevation":"14.0.0-canary.3ab956515.0","@material/typography":"14.0.0-canary.3ab956515.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.3ab956515.0_1650898941360_0.1961590147551433","host":"s3://npm-registry-packages"}},"14.0.0-canary.53b3cad2f.0":{"name":"@material/top-app-bar","version":"14.0.0-canary.53b3cad2f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0-canary.53b3cad2f.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"aefac605ec45ff5d069ec099ab1fc99d129aa4ec","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0-canary.53b3cad2f.0.tgz","fileCount":44,"integrity":"sha512-9vPLLxUbNrWNCPGHoIeIUtyXWQUNh+yQwnkTYVkVAVEb1CsWb2D+/NefytfvyFtXWBFQLybAeG5RH0ZqdcgQBQ==","signatures":[{"sig":"MEUCIFUA6hcmIY7tNsjggzmZQCSMNrYIMVIxUoi7SpmRKalgAiEAhshj07zzPGxqdmglmWRMqRiRZSYuzdYYJCloNUDToOw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaTr/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrrcA//VN7r8vYqEIej7n7R/DyLOJsRbmAdRCCoqGhOhBkiZMuk8Cie\r\nNcHbkNKrZMSigWjs9ExcCcX3VezJjN+4fcUX1I/gwVIBtmV2Z85QkRE0rokB\r\nTp/T0rWyw89J55RuYIIyIb4U0fAwBkCwTASpePuh1uTD26GCLxFFTKopfggL\r\nF9jWlWItNTPyA0mqLC4nVgDmUhIQx6F+KGHvtdxd/2JIO0VDcvAa1dvz+b3i\r\nUoB4W8ny8Oqv3aPe737Q0MIamiawN1CTLucqLkBc+Qwsj7SK8ym56/H4nipi\r\nrv/9g7naVQqfwk/DhF9KwUo1Xsakx+kd6MxJXcJVGyGch3rUuW4AxH37tmle\r\ncsL4DWPsHQDqJ7leEPe3zmq4Qr4hs0E4Cq5fK4OT+FzzUSXQx13UWkyvdbr8\r\ng9yc1gvbOdYG1bA8o7bohbVkOATLpsGzW0GiIrG1RCm52vF5yae07ErKVwQo\r\nmYLT0EWeWQQu0fNplmYkBnytdzGNooNTj1BTHmMh9rHUrdmtqGsPtdMpQjGp\r\ngSFBxQwq+Xpz6p0i3uD8J2n5rXRmLyPTy6QjPF6qRh3CLb+rot5M7k99odmy\r\nkHkkdHRBarxNq2OMrlKG8biFGFtJbniqvY3gV3x1JhOn84QVtl6SRMDe7w1Q\r\na6h2iqgN1AGdk68ri21nWa8OkIBUxC7Mkak=\r\n=IJaa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ebeda2e23436103241b0e82afd57b60f74599133","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"14.0.0-canary.53b3cad2f.0","@material/base":"14.0.0-canary.53b3cad2f.0","@material/shape":"14.0.0-canary.53b3cad2f.0","@material/theme":"14.0.0-canary.53b3cad2f.0","@material/ripple":"14.0.0-canary.53b3cad2f.0","@material/animation":"14.0.0-canary.53b3cad2f.0","@material/elevation":"14.0.0-canary.53b3cad2f.0","@material/typography":"14.0.0-canary.53b3cad2f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0-canary.53b3cad2f.0_1651063550875_0.6941283670284266","host":"s3://npm-registry-packages"}},"14.0.0":{"name":"@material/top-app-bar","version":"14.0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@14.0.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"54e09247c33f61f8f3e98016990e53102c4a4410","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-14.0.0.tgz","fileCount":43,"integrity":"sha512-uPej5vHgZnlSB1+koiA9FnabXrHh3O/Npl2ifpUgDVwHDSOxKvLp2LNjyCO71co1QLNnNHIU0xXv3B97Gb0rpA==","signatures":[{"sig":"MEQCIFc0hJEImwrDPQJpyxliQzXItsOB3tzTaz7u4coz/vcwAiBS3O2ovGd+RJzp4k1w/2CSB9YQd1GubwB06qPJ3mc+6w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1126746,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiasc5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoEeg/+JJleS0m6jb1mEKr0nYAMR/iAdYuGHDL/+xlQZ8OTCu7IgRIm\r\n9epeimaCZtWd4KzDHuxd+AXGAy4MWeHVHzgVMprsDtHidU44vFv7qCzD02B5\r\nJw3AfGCqCMD7++I1XP/mpC+K+zxGUe3LW+uFT5KpXD8fz5jTEqGi5irprn6k\r\nWww1zbAvdeBy8rC2GK67x0jza/OzhQ1GTxRQI/kkZyLoJgfPqtbzoeEj/ZGN\r\n70XAawoZ8CXvzHNPTSBsM7K794FZkYb49Rwg17MMUJ1cQIBoLYS/jv2sYy7E\r\nOkp6TVUQfO0LPlFIe7p6r88GXzR5FnjON9jN/LXZEkgi1iv3hOpPehlvLKQM\r\nS7zxuUOzwbPdwTf7pY+GZqKxpvIyimug4WEWLdUL3m08lYtVQTlFdJ51g6H+\r\nGJOHIWnI4GqRDEvuQGhj0oRu8blxCleHBk/XYlPL6yo5V1gP/+WTpQ8O4fr5\r\niiPXk8p9ripz1+Lq1UABmaTRSia8zAFNoK0/wDc2s9YRBnn5DYOkISggcqxM\r\n0k5BfV+iWZRDp+zUQh+P+1Wqqe5Iw2oXyKW+L3jzx0iOhK/GBE+Ux6PSCvr7\r\nk2xW0cPCdOzHDqiIixnPQYcJ/oD2UfMJKX1mSmXwiSX/WFee9xxfYJPF4w/m\r\nXhb/SlBtze4OBtssqHOQUx7z56AB35ndweE=\r\n=0khY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","gitHead":"432c815e58d61a257742836f816cf95e271e6ea1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"^14.0.0","@material/base":"^14.0.0","@material/shape":"^14.0.0","@material/theme":"^14.0.0","@material/ripple":"^14.0.0","@material/animation":"^14.0.0","@material/elevation":"^14.0.0","@material/typography":"^14.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/top-app-bar_14.0.0_1651164985443_0.39730896540125693","host":"s3://npm-registry-packages"}},"15.0.0-canary.432c815e5.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.432c815e5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.432c815e5.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c014bd30bf12625c6d9af455c237deff1395307a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.432c815e5.0.tgz","fileCount":44,"integrity":"sha512-iKcsAbfyF/ee64D+ThyD2P4lbaI9CsP34KkgClhsmu/s8iRq67EycGAKDRJhbydLYHpfIV8HhRknylXQ/d8tmA==","signatures":[{"sig":"MEUCIQD2mEa7UPKDct2UMH0M8xURQXIyGEzAtgvUMomyRcEo4wIgGGNWcCBiqwl02WbmqIKHRGdnGV0NVt/h4G+aQJY51vw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiasd7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqnFg/9HaeFjMk6YhLp2qwo/dFbs1y9vT0Rc6OWL0ZIn05F4lGByO+8\r\nhxZS9usPAxClFAbheiAhgTW04FeYtZt+X0CdOoJgkksDc3KWY+kZS8tED/zL\r\nnU/S+nW2RJgLUEomV+Afqk6vAO8fRTLbtE3JYyiakGpJQjHyHO9iC0Dvf7mU\r\nKfCTPqwpJP4hGDNw05ErQYF+T9yr5qGX6leqGLxmv4njfnVqjvja0T3TIEOh\r\ndBnRc35jnb5s06OAt5neDhComxXlP19EDuWL5n/vM3l9YJw+XpugBMfYeqm1\r\nRz9X/hJUN/pRZCVVh4B039XE5UvwtNxg3TCpuaNz+v4jlCPniXZEmqvVeZ0s\r\n3s2mynThKi9t4p3uyPLS+XCGBZ/qIvC2djbE9QB5XoliEC7vSeM3+DwC63sF\r\nS45PicdXxXpCM93JHMLdhVBbNMotpmyTSzO9v/r9G+I1QDfhn0qLb1volfsT\r\n04U+XGHEqgw37BTmu9ZUCuY2qwqz3XoPYNhqeooKe4FtKlL6FraGOTNs7IXD\r\nVgGda4qfBNYLYXuZRXwA5A6yNp4Yqwr/DILeTazsdbGbCyccdMpimTeEID/X\r\n0Ck6tQuyHO8MdBKPa25q4+WWN+hGqGzOofpSLnsN4/c8maTFmDZCQJBZl7Ry\r\nKlU4gt3AfqJ4P7nXq8c+VmA9kQnq3s6zy7M=\r\n=O5kA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"df8af7a4f190284cd9f3bb1756b2f443509424df","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.432c815e5.0","@material/base":"15.0.0-canary.432c815e5.0","@material/shape":"15.0.0-canary.432c815e5.0","@material/theme":"15.0.0-canary.432c815e5.0","@material/ripple":"15.0.0-canary.432c815e5.0","@material/animation":"15.0.0-canary.432c815e5.0","@material/elevation":"15.0.0-canary.432c815e5.0","@material/typography":"15.0.0-canary.432c815e5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.432c815e5.0_1651165050828_0.9009812984100518","host":"s3://npm-registry-packages"}},"15.0.0-canary.a0f01f669.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a0f01f669.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a0f01f669.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ea3bb7a2de7bdc13578b536ff5f5e0bdce4c8562","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a0f01f669.0.tgz","fileCount":44,"integrity":"sha512-0Ybtb9XnWcCx0uCixnFqqy+tW2NVxafarDHv1sI+ozYCLbj6QoEHvSiUM1BE0DIsbRcaK67oRw2y5H8Y0hSXGw==","signatures":[{"sig":"MEQCIEhKCmX2Acms33BfboPjz297rBXpqLvvPQzFyhSckjBRAiAxt3GWySpxpPfVeV8rxzyEPghTgKO/2LvczXgUs6VhwQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidYHNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp7aQ//e7NZ636LiWIRKLUHMPPD/v8X4PeIopzY7ej9/9nFLBDNE4Ms\r\nLd0wZlAehC/tnYoCmNQH6MiQXC49ikEMc7f4MaTX9MEG4n3zWZYfICkw9m08\r\nukxE0/9C3B0kKogWA2PsqDgB8xofJvieEL90RYiZSAiXwpdWdiOTNycqNF3Y\r\nszCWcoHbAnV37ZMlQAnv5UeJNJjSAslTsaACl/5dQAILP6DtVQlOBXgd42wA\r\nH3ETXBExzoBwzC0TnF7xsK575HGB1RxJslhZmu/DINRvAgPOl4L72PH7hIAh\r\nrI7ao4sERmbKE8qVZFJsMBKeKw1O7B4KivzlYPtHxC6xBnmX+oauoWMDnwnA\r\nGUDrgRP2iycglUjs39mM/G1C/wI3C8+2br9cj2ml2YSYePGPXRZZwLADLgk/\r\nUNb5VP1gnQrUv0yPH7mtvorTWmczxFqq60txcPF/GC9mEH4IwI0qIeLZmcES\r\nRhDf4NbsmwC4mqabNfGsKtj8c1oFsdmFvezo7Ux4+3Nz8wr3tGNnlEh6mB+0\r\nU8mTWwoRMb39wewYvzC5K51Q77hANybCzgkcEHF18i822KlFpMHSkwNiYIZy\r\n6HEddkKpEyThXzVazk1rhzTXm8mzuJWGk5h6UHRlbj6wv/IcJLi19isctFDz\r\n6uXfYWRx00Blkne2NptSIainnaz3uZoWNH8=\r\n=rFCW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"51daa70df3212a8d73c545c86ed1c57273d41688","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a0f01f669.0","@material/base":"15.0.0-canary.a0f01f669.0","@material/shape":"15.0.0-canary.a0f01f669.0","@material/theme":"15.0.0-canary.a0f01f669.0","@material/ripple":"15.0.0-canary.a0f01f669.0","@material/animation":"15.0.0-canary.a0f01f669.0","@material/elevation":"15.0.0-canary.a0f01f669.0","@material/typography":"15.0.0-canary.a0f01f669.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a0f01f669.0_1651868108713_0.685198818062442","host":"s3://npm-registry-packages"}},"15.0.0-canary.276cb39a4.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.276cb39a4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.276cb39a4.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"476aaf1f261ba91eba5e514607cd12272da2d65a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.276cb39a4.0.tgz","fileCount":44,"integrity":"sha512-lYdfbwZjZBwvSG2eT5WHQRMrkzp1/WlMTsHqjq/D6etMG7WWc7oq/CIjNDWedwPFm/uixKkW+ZUNe1ZFC0VjbA==","signatures":[{"sig":"MEYCIQC+I3KN2ASIDcRNZzszB21jhodDkbw4aaQMRwZgWK1PWwIhALis7DD+Ercm88uyGS4hvHbSR6mJY9FYBbfjX2UsrLDS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidZPPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRBxAAjRjhUZLTdjqA4ComGgKf4z4jOGdXZbpipLWvEOEqXlhpdM2y\r\n1R0etO4VVgePnC+PhPMzSp5yFPlOZAUxYABdFqr/pgMB8RH2Eti2vVBxFZv9\r\n691G4Iy2XM4j/19O/JS2YxqOsQKf2Qudr3S1W0Ex96jO+zv+Z/sitX/egvtc\r\nEbIXuenYqGl8HXdKTh9KxuLxe2xMMS53LtMkt2nPS9pQ1yYpHSXTK8vZKOZD\r\nqQA+2athyBhMcQRlws/bSvMLFZ3bGYhiTA0MImf5eLaogXWpsy00lh2nwzuR\r\njUsvqGLOQq28B2o9tyypCgVzZ08NvwL2UZp5/LHRyeuUyl42mTHw4yNaQ3Oz\r\ny7tfmZuRBlVAO98UySUT9Us8tUD5WgDWyWYcalzUchaeB4vt+moBYiZZkWdW\r\nJ4gYmlBtXhShNViZDZ6sq0HtvRpGfVKgfiaLhQSVdtscxUNUcLWbS+5TXJWl\r\n4Xjyfvj4kHSSz+cTYRRq3b4FalE0awf5YkdDDEI8rXag3HSeg32uZ6WdOQWI\r\nZ6as064mWX18tbr/176PvL+xB7F1EphVuVBPimXn69YWa1vyRHIVDMNfwuea\r\noaNbEThnMfd1RKVqs0Rwu0s1W5B/2YPOMQSMmoVPeywzErVo1FfAn8BOMP7K\r\nSyXSpIvmR2+0E+WCOoCO7tISzGM5tmGHWxU=\r\n=FBxb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c57cd64760098925aff1fbf0bc2a73d32dd2bed4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.276cb39a4.0","@material/base":"15.0.0-canary.276cb39a4.0","@material/shape":"15.0.0-canary.276cb39a4.0","@material/theme":"15.0.0-canary.276cb39a4.0","@material/ripple":"15.0.0-canary.276cb39a4.0","@material/animation":"15.0.0-canary.276cb39a4.0","@material/elevation":"15.0.0-canary.276cb39a4.0","@material/typography":"15.0.0-canary.276cb39a4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.276cb39a4.0_1651872719613_0.9492754188453925","host":"s3://npm-registry-packages"}},"15.0.0-canary.4fe98ed70.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.4fe98ed70.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.4fe98ed70.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"dfca1b56d2f99fcaf5f31480a53bae5bdd2368f2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.4fe98ed70.0.tgz","fileCount":44,"integrity":"sha512-t6T8+5t11Sbwga0fa7zcokgf7ukIF0X7EoVBiSpV0bENmXQCd0qr2encL7Npe7qX7cAF0txebmgAOtkX5v3ADQ==","signatures":[{"sig":"MEYCIQCxG2sd9VzAqYv04OzDykPTyG8juAr7+8kRhahOiG3LFwIhAMP1NtUCeLnmM95T5pFmrSx5I7ItCGpIjlDP8s47yPHK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidZmOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqttQ//UwIeyAttrUrCMMq5WrkCApxxdxQYnOe8YXt6yj0uejqxX7dB\r\no31hsNXVYEI54GlmtniJlZT9nAt7Orl0f2CredPqRk658oPxgu33ELfIKMa5\r\nfKYR+Xa4o1UhuU2fhuydK3C9fzhFxbKzVQeYR5ncqLHSkMsEsc5pF6AQcCT6\r\nbaQKh9IWwAw5FefN1+yUbql4YTaC8kc3RuzSa7sNydt4hk03SjI+9Nuqi2h/\r\ny9kWcopHxRhXXNNQDNDnEdguwKc7ZNoE3OE2q5TowzgnzZZCHU553UPsz3ub\r\nxV2uuTPQIAtEj8aL1GCBtfa3hh2wb3DEOwB8XrvN78aohx+VpG60d3FVv+rb\r\nSRUQ5OQrs0Kg4axWnYoJfXuAMFKFv0KKeTmNyCL3DNx9KYYga3xSNuZ0vyHz\r\nwbNIBj8Rupx4q31p2+jDIDxjlVrZe8kt3tYdK7I2KJ+pzVdk+xXRUavLpPvC\r\ntxt3JSvstiafnw143h+Pmnfr9+Qy+rryJEIuJFXqjeHoC8rCqCJ7dKgPfLb7\r\nQKC/unprctU9+I0kQslaHJvKvvZa5vsH/9P/pSu4duYj6UyFW1ir2L+/57EG\r\nW2kbtsCF+K5EpE+PpHGC9LR4f1csyczbkTNU1X6Gz6t6iwsU8VsgVjyZTGwP\r\nCrnH9YvOVoDpfXM62hN+fSBqNTxbB0rw0Wo=\r\n=8f0k\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"353fde061dd090ede4416fc2477bc050587d6367","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.4fe98ed70.0","@material/base":"15.0.0-canary.4fe98ed70.0","@material/shape":"15.0.0-canary.4fe98ed70.0","@material/theme":"15.0.0-canary.4fe98ed70.0","@material/ripple":"15.0.0-canary.4fe98ed70.0","@material/animation":"15.0.0-canary.4fe98ed70.0","@material/elevation":"15.0.0-canary.4fe98ed70.0","@material/typography":"15.0.0-canary.4fe98ed70.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.4fe98ed70.0_1651874189914_0.3565803235848446","host":"s3://npm-registry-packages"}},"15.0.0-canary.58b130a3d.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.58b130a3d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.58b130a3d.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f6441c18e0e7dcbd3667beff021d75e1f15c9432","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.58b130a3d.0.tgz","fileCount":44,"integrity":"sha512-CU1YD+ydyBFEuAfV3y+9AI9/YMwKae0HbcO/iHWJB4nllUivleJtuE2eXufhuHWhz45Zrmf2ufElphnHWSYIWA==","signatures":[{"sig":"MEYCIQCSBuldZ7gq5DA/GzA9UhD5kROgIpyx6PP0u+rBD6XggQIhANc65CL0/8lMd7XlihLSAqRrub2mbMxwRHt3t7PEKZAU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidZoZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqDYg/+KCMdtqSXYAX/NQnh5J98CDLjytEbkhftV8R+87lytYBK8wq4\r\nLrz8we12tQyCQHeAJMSyY3fF8Ie28/dKUeXs9s1jmKDL2X5WTmkNcQgPp+Va\r\nlbyVg/Gzbncmwe4hACZ7U0HZlSgg5RWZvsi1Ze1rovnfJajltq9NjeJyv9tl\r\n4Npehd0jTCzNauWGjLh2naE7T+UgitM7Oay85VJ59BEyUTt9WsIWboE80jA1\r\nYVA5zIXS1x2Q5hzisPv9RsXvY8qIyJN9HyJno3wlPOPIdLT0/0+mBYLc3doi\r\n/VXfAcfk/B9X2ppu1JOjpRL8m9oj+OVCXDFoEsMmyhvbFK3nYUJi0xAokT9C\r\nb1dRR5SMCp3MyM3h22Bx2wBRO/KQtZxMsc/KT6mkQ0SDeEOLvzIt93N9J7+3\r\n6CI76PZ2g51uzwaqlj4R4aPOd9PWqGylCn4TNMuqBoO+HgrK0CKwaLB9mDpf\r\nxQbBCD+U+01O9H96BiN+9S/0C8IfCaUtIhpJ7IlUnza0+NM1lM4UxSAFyw84\r\n9yGKSovEzbDIB0Ns4QUX1XdVgtROEHHrjc5cmHB+mo0/9skWD9uqDZ56CPFe\r\nSlvF9ofWEBl11EZtv5m7Ll7VZXPvlxr8l2DwnptfQxoejWS/mcS3vXZj1/jm\r\n5qJdSmfrfBGV3YvSbIsC5elON1M0+7SDnxA=\r\n=hWm2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"58c8ada7946689a0a59acd63cbd49b6c987c9853","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.58b130a3d.0","@material/base":"15.0.0-canary.58b130a3d.0","@material/shape":"15.0.0-canary.58b130a3d.0","@material/theme":"15.0.0-canary.58b130a3d.0","@material/ripple":"15.0.0-canary.58b130a3d.0","@material/animation":"15.0.0-canary.58b130a3d.0","@material/elevation":"15.0.0-canary.58b130a3d.0","@material/typography":"15.0.0-canary.58b130a3d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.58b130a3d.0_1651874329472_0.24989913372213546","host":"s3://npm-registry-packages"}},"15.0.0-canary.ae278a2fe.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.ae278a2fe.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.ae278a2fe.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fa10ae190ea3ac9ae337ba9904170c3d77843e54","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.ae278a2fe.0.tgz","fileCount":44,"integrity":"sha512-f3oFQPny4vmJWbtltt3gQ0QUqQ2emePqVU8uqwvCEfJulpjAyVOKjOB7QUmiIwPVkRl3YzOFGo8OF4NGIOrUjQ==","signatures":[{"sig":"MEYCIQDxcetds13ufMNPS3Ww/MU084vb6ht84CH3c98n+XYt6gIhAOVtQluN6fcmV+axDmYaiAEagHzcqTcozctc+Dl8/8/I","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJieTJgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoMrQ//U9BqEuiIQYedA6IYBESaw/pkUGTM2/3NQPV8uSVqj+xRi1cl\r\nOwTeMyJUZSN+ofLyug91XZhqh2NkbSFJqE2QbRUH9Gkdjx3UobAKaj5aCnFB\r\nopkAb38zg22P7TDQw5jzqA9g6SyFRgAGy5oEpulDUBWypc7xG1yZu4zwsBU/\r\nFjkUo6Oq0A8a4TxE0PPg2HI9OGZyyt3UxRkvJ2sNBX5Gp8ZrrA8GQvZspr4/\r\nqN+S8QoKifohFwVxcTtL+4gB3g50J0bXbIBpGV4enhs+L9L1J8U8cZhe8XJM\r\nYv3sKR2OKSovt55Xc4cnaLBPVCrUGyZsM/qVCJpkiLz22gWnyXxxLsCHA+B/\r\n3/0M0gN3zOCfWEmhpaJ6ejcxR/M1lDjoi3pIQatM81eofyXxY41h6pDRpd1v\r\nRBjq5LqghVGEteJalTlvxiV/Y6BKqFcoxVe90PFenTeg4+U/Pd6L0YvRx7BC\r\nPkP4yANPHdEivZ88xPGBJzFv1yL3pCfqQxi1sFOE/eEkkGWJlNB4gZbkXh0P\r\ngwNVHjAXI/aUDAnzXjd7CPbErPrYbIVe0x7XcGA/XyAEJmmp1X8+uLM37MqW\r\nja0n1vjGR6n1mJiHp5nZHPz0tytAaFzFNf4dD6ygev3c4VeOe4dAfgJsELPs\r\n+ttu+tFQY5TGO//SK0aLJ1XCWWKDLJ3H96Y=\r\n=D7q1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bfd08e232a3a514dd5a38dcd77d17df365502ece","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.ae278a2fe.0","@material/base":"15.0.0-canary.ae278a2fe.0","@material/shape":"15.0.0-canary.ae278a2fe.0","@material/theme":"15.0.0-canary.ae278a2fe.0","@material/ripple":"15.0.0-canary.ae278a2fe.0","@material/animation":"15.0.0-canary.ae278a2fe.0","@material/elevation":"15.0.0-canary.ae278a2fe.0","@material/typography":"15.0.0-canary.ae278a2fe.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.ae278a2fe.0_1652109920232_0.689479210052347","host":"s3://npm-registry-packages"}},"15.0.0-canary.bebf5bfdf.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.bebf5bfdf.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.bebf5bfdf.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"007ca5f2b9bc3eb7997ec5fb87d20e03b5d97d0c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.bebf5bfdf.0.tgz","fileCount":44,"integrity":"sha512-G2j9auvWW84lxDpjhbimakb1qoRMDGaxsY6bqncEy2aWjH7KPGqrZmZxXXv2+LNCr3+pzzDzi7B/4hFkZkwt6Q==","signatures":[{"sig":"MEYCIQCpZfwSkrn0aMTTrFEz0qLFaXSS5HbcMJj1HJJnaBlCDgIhAPro+/Szzn4lbyNdDbhwdcg48mveRMDpiImBtSHcEr8w","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJieyIxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoO/w//eyKA4UdiIkx27a9X2PavN6AJWohbm2QUOwejWyc1OKx+Y+hg\r\n54e1KACvYBAZJbDCf+shxKGUGIc/b8TsPR/pRCGAD/tXD7KFUel3B2gV/vF2\r\n6DtZ1ROSzOZwZI4YYefetNZs92w4gsw1grJ403wWwv32rwqrFKkknrHYgLk5\r\nWw7/zY7t2gfe+UC6huThYBcwtMBjGugqICR7KVXTtoWfvquxsoQUsHKisUS1\r\nLm0rVXins/QYUjhYOweLPLOvPS98sHojoWs5XpgvoiXiBdBiRtnSd0/kA6Ph\r\nsrkTlwMyINaZzficcaZozUO6/bWYVoBVL3lDTd0w3Lk2O8LI888M/GVdbQ0d\r\nhLialHMCkFkF3fQq0Gq9BI5aCoCF+NNLi9rKilPb92fODw0J3BB1tCiLmaTL\r\n9iT6KGb+qVjKW9GISC2nV5zCxi7CnT73K1vkjsXdQuNSwumBm2WoR1qTXyH6\r\n1m3a4FurjDZqAjtcjMHnNxI3N6RN0BsRxmdKLcbLYcNSDZV5XOxZQXZRvEwx\r\nK6oqanIhMbGiiHedSOgi1y8/M+c4uQijU4W2wgQPjp/W5VxGbIBMEsfCXPrd\r\nYqavg58KsNRScpQJFcZlkg49sU/7mp58XBj+7dMLosdxNd+JAOWSPa+CARCV\r\ncguzBAwQJR60P3oKVYTJSAvI/MpyOWeJFwk=\r\n=Qv34\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"61d3971a411616375c31cb3fb763fafc120c9570","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.bebf5bfdf.0","@material/base":"15.0.0-canary.bebf5bfdf.0","@material/shape":"15.0.0-canary.bebf5bfdf.0","@material/theme":"15.0.0-canary.bebf5bfdf.0","@material/ripple":"15.0.0-canary.bebf5bfdf.0","@material/animation":"15.0.0-canary.bebf5bfdf.0","@material/elevation":"15.0.0-canary.bebf5bfdf.0","@material/typography":"15.0.0-canary.bebf5bfdf.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.bebf5bfdf.0_1652236849596_0.1856981899424779","host":"s3://npm-registry-packages"}},"15.0.0-canary.e6072cd6a.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.e6072cd6a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.e6072cd6a.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a36d432c3f0991e71d1e29ee0e3ba04a5dd41620","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.e6072cd6a.0.tgz","fileCount":44,"integrity":"sha512-oQm7gQb987OwoSzqM+RVFFTWThaIuxZ3BRBxaIMOtmcSXW3mUZw2yfrgKhLjCPIZ4K8sCX6IaGw6GimfIcs6XA==","signatures":[{"sig":"MEUCIQDdSswQ38M2Sbrklm77G6UJTLzaA4H0laHulmGGygneQwIgO0lWc3i8brT/dBT3NhBkOpWkxvHa69OdomTPgukZRa4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifBoxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqekBAAoVJ1AiHA1PmGkQ5F9FF9dag2D1Tw1E6VFB6TSGlw4jymjQtk\r\nTd4zVUFcoiyAJl2iLpgOgrqHsGxA+thgaqhsIzt6B8WrwvMrmnL6GcVx1prw\r\nRfH2eVKOebJfIvYmxQuoQAUPvQNVDHdhZ4pVnplejv/K7p+ygO7MgjVe1BXM\r\nHoxIkTSGd7bTZesdygihLkiIVoeCgmy8qMwTQV1qrB4X+J/3Bpb2/YaPPjlX\r\ngkY8C5kuohA+zv9aL4GHnce6OFyIvRwgT8Ykrc3UegkNQTr3c7h7k/8P/Wwq\r\n3dcgt61flwQ+VuYYasJsxg5TQb+hBL/QUADV5tB5MmrRTl2fEjAxa0lFWnpM\r\n3nAFqaMp2QS6a7Czx5WDR8UqIMiiMPdlke5arKd9mg/UWePm4z9gIw9IisFz\r\nyLKZGyuAHuK4PXsVbx66Q+2sO8lfU8k3yEDS2oO/obMc13ZLq9AlGgwFjNvp\r\nnB52QrBXKo1CzokZM0kPyptFMspFE6UWwxOSFup1bemUGyUpMKQs9pDGMMVW\r\ndyO9xELyKiAho/v9siQRPttqDhGi4DPM9bw7Pm3yw7XbPOCIqrF7W3aIOgQU\r\nbdwy6LtUhY9h6qTiSp5/ZdncFE8i23r6laszB8PtqrjG9qZlE+7ytLLvEYdE\r\nlU8zrFjocZuP+H4pka1EwaBE0P2tvAtPtsc=\r\n=hW4U\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ef2da678e66576709be19aed16a880b00e73a039","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.e6072cd6a.0","@material/base":"15.0.0-canary.e6072cd6a.0","@material/shape":"15.0.0-canary.e6072cd6a.0","@material/theme":"15.0.0-canary.e6072cd6a.0","@material/ripple":"15.0.0-canary.e6072cd6a.0","@material/animation":"15.0.0-canary.e6072cd6a.0","@material/elevation":"15.0.0-canary.e6072cd6a.0","@material/typography":"15.0.0-canary.e6072cd6a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.e6072cd6a.0_1652300337509_0.04958725663724639","host":"s3://npm-registry-packages"}},"15.0.0-canary.5b40eb988.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.5b40eb988.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.5b40eb988.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bf00ad5f1415a6e4d84054a9e38c791f02d315c4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.5b40eb988.0.tgz","fileCount":44,"integrity":"sha512-qyzmn+PkpkZB82jN7mVVLs+XQAO8UTpmlfC3CUE20o6udI1KLlpxAfZxLZSnWOHdV2JDnNBUE9DgMLMdpQm42w==","signatures":[{"sig":"MEYCIQD4fd9CfpsE5TZNGEHYFY3qzBM9QJJPcNz5Id1mPJGOmgIhAIiI2AyNP24ubgWeK/FO4os1eziORC0yUgWlDpVJYKMN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifHSbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqYeg/+Pziy27uWwu4gpUWiuglvb7jRf1uCaO1TzvYK6+xkGO1QpPMq\r\nsK9ppxOTPlPrW68ZwxHuGtpnBMnQohJhPt4uIr9EXFND54V5At8JNFIgbDeG\r\nT8sxXhC68DC4uMos1oHdWV7zCN2WV46F2UYn0JkM8Mp+h2JU6SHP+JGJESte\r\nRPsFeRrg5Ao3wBYgB2wpTo93m9Aqpb4Rv8P4KIhsV3fF1rvoFlaw8KflyapY\r\niMeMftP2A4WEZedUlyL3CAC47ehWXdl9JXL/BZi5Z4n90AFpdkRK88PS3OA9\r\nq7ur1rt2DZFCXkPY4/ple7Crp/4jsjMtsNtes5PgSIWSC7h+OYj5f8/qZIq7\r\n2oJ7wmpBucBoVJ1xjjN/AJ7sPKzyw2k56iKzzYnn1sYPoeL/f+kOzTzc6dqR\r\naB4+l8AJTQRACbJXCaOtr2LZM626fko9j/6p6nUueKjH3LHopK7TkC3VN4VJ\r\nlVKV5pLbgC8CRsPVjY7yfu+gRrTFyorzo31Bj+wOdta0Mj2EyWcan94iVp+Q\r\nmD2z6xoJtcIsb9+N4KqENITS6Fc2cAUka7XBaJVCYbYNHbkEbmS7tQSu4CLA\r\nfIFq16kpIjd/g3+QkQL5NL44kBeOQ/m8p5WzHfXERAVoo/wuqNERK9df/dWE\r\n2ZGV6csqzMSuE9peW0tDc5R2UCfPmprLERg=\r\n=PUKd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c30f2a613c97ecb48fd3f9ad7b0677e51a156449","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.5b40eb988.0","@material/base":"15.0.0-canary.5b40eb988.0","@material/shape":"15.0.0-canary.5b40eb988.0","@material/theme":"15.0.0-canary.5b40eb988.0","@material/ripple":"15.0.0-canary.5b40eb988.0","@material/animation":"15.0.0-canary.5b40eb988.0","@material/elevation":"15.0.0-canary.5b40eb988.0","@material/typography":"15.0.0-canary.5b40eb988.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.5b40eb988.0_1652323483216_0.8602534474714976","host":"s3://npm-registry-packages"}},"15.0.0-canary.6a61d62f6.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.6a61d62f6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.6a61d62f6.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"58bd0d827eeb8af9dd5b6c3bd789c32554370e42","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.6a61d62f6.0.tgz","fileCount":44,"integrity":"sha512-xrpOf+z/3T6TLCQcvzxPle++mq8+5rGrEPCzppPa/k3Nx4LOadbM3ZcZY97yIF5GAcSIw/ltxM8bc6ExO04qnA==","signatures":[{"sig":"MEUCIQDpLcvkVfn/dUNkU50gmdbmvVMfXckT5fAkhh/bIDERdwIgL0uyOVqHPkY629cW6Qil6DN8lzeWJ/69Go7gk8iMcJA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifW2qACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrEWg//eD6TIyCv5UZVQWLsgtI4kPBP5bR2vKecxGF+QU9+InTy563u\r\nNYkRdjCrQD4FhnSQ5wIfj98my8pgkSezS8hmPKM/rK7oyMqg6q7xSTJ9JjSW\r\nQ9ecUznmupAyHaDeLBbFs6RgD1hl3ta5Daf/kppIkS72IXtI47PVKZVAlu4L\r\nbSR8jsDYp7J/XeNF8YAiHeFNrq54lyQF18MxtjntlT7qbJhSugDM/nCalA7W\r\nEOa7ubap1uTG8NmpbNoAaXmWOGH+64zP+ZGveh0nzUuHQDUxNCCHtG3YDLb3\r\njZZ7DyOFKaBLo4+OgflQKgWb9KHw/QtBDe9MsFap/fDcnoPriG1NF9ienRjQ\r\nie8p4BTrf5RdKTMFc5KmMl4L5qS/ujpQzugSI2FLBUk7ksV4y+7/0P2L8zsq\r\nKJAu7r/9PNWqhZCqijAIu4sz1en1fnAeGYgS+TH8/V2tvuXGuZuFUkGgoNWU\r\nHnmZhBLS/QXeCjWw+KNS/wzu6KKiyKhPNQ7Hk37rDqtBDUcN+chmD53v2dTT\r\n4AevZFoJsDVS2yHtvu76SpdQOkenI2YN1XfrZQI47SKFElFVhmRqWLj9R05R\r\nxmSCIXIbkQsdxz7L1dWbNRmaaOKsIuHMVgBuiGyR5TJXIAy6XbEzCk3Wvt1v\r\nwhtWN0MCAdu4abxjcQtsu7dGg92UYIyp08k=\r\n=MQ21\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1d46f0951ee9f725b870919613271f00fcb1b521","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.6a61d62f6.0","@material/base":"15.0.0-canary.6a61d62f6.0","@material/shape":"15.0.0-canary.6a61d62f6.0","@material/theme":"15.0.0-canary.6a61d62f6.0","@material/ripple":"15.0.0-canary.6a61d62f6.0","@material/animation":"15.0.0-canary.6a61d62f6.0","@material/elevation":"15.0.0-canary.6a61d62f6.0","@material/typography":"15.0.0-canary.6a61d62f6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.6a61d62f6.0_1652387242527_0.20424492225855628","host":"s3://npm-registry-packages"}},"15.0.0-canary.05930a453.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.05930a453.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.05930a453.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6f3887d7fe8e9cb986c1021b577146e604fded59","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.05930a453.0.tgz","fileCount":44,"integrity":"sha512-CcnM56rzcPd6c4s5oIE52K23aG7ZBhaKofd4vZ15m1ltwq5ETSvBYOl81ktm8UtV6sKMW6GamMW/hLqOAt4ReQ==","signatures":[{"sig":"MEUCIAW5XAeNU4RW23/I5PVWjH6fZzuUkZR1/2Go4GC1rwRdAiEA1/tgLEDBOvPMv/J6MPfSLr+s5CChSXCZyOfVYhwUUMA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifqfeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpeiQ/9FlZ3nCcpf8sX2JqpxciGrzyCJNxr58JEHYmhWHVZJaCERLFW\r\nqIYUjyUQyDq56+rAGM7ZjVyLqhj/DULx1VUVlD3emj3MzjV0uAoo2lPk07b5\r\nOpGb0oKe9iOZWVQrzSzzkj+FpExjyox/AicCTFbwD1X5TLfmXVJd14CLdhbv\r\nHY8YBMuAQFhrKWaJPSD0locsBGUUSGuIKSGfc3G5B5Avn82fnaIgCYUY3N5x\r\nDDwTEpaZKc9DKHQ89TF5nuTH4HgbUMQHqL/RqVMYNkEWwi759+fMsLy0L4jR\r\nrzxqmck5VLq3sNTcqk5gaU1N3LVCnGriHNasMWYJfyubqz3gXUI5LkmIgj9Y\r\nvVDfPLuOMpq5KrRnq6tuHdqRwh7lnvl/XWqOHKvVdlJzHqCxDKltaARJ5JTb\r\nHGG0i4nDZLAIx5in7CWfmsMDDYVz4eMhQQwuUu+bvD20n4fbMBPG3YbC6lpZ\r\nE00/AIIIvHWm7ICf61acsqMuRq0KflPnxhNj3poegt3PSq4eAVz9QZZNAoJ3\r\nYQOlDxH8foRBZKdyIrk1N63VL0BCmXPTxG6dGXjNliPNz75xtSkCi7FSnBoC\r\nTPLBC6aOazz7K9cawKC4NIc1tHq4D+/Gg61Dr7QCLlQ02d1WL3r1mL+qU8Vt\r\n5f7+r/QYF4Vg9n3HQM5Xyy4IKNgizOD65Zs=\r\n=pOzc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e6dfc2d0553321fbe47e71fb414cfc1152b0ef8d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.05930a453.0","@material/base":"15.0.0-canary.05930a453.0","@material/shape":"15.0.0-canary.05930a453.0","@material/theme":"15.0.0-canary.05930a453.0","@material/ripple":"15.0.0-canary.05930a453.0","@material/animation":"15.0.0-canary.05930a453.0","@material/elevation":"15.0.0-canary.05930a453.0","@material/typography":"15.0.0-canary.05930a453.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.05930a453.0_1652467678196_0.26728548978518685","host":"s3://npm-registry-packages"}},"15.0.0-canary.c0a11ef0d.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.c0a11ef0d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.c0a11ef0d.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9553878dd67ce2d07dffd1edf05ed2b7b5023ecc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.c0a11ef0d.0.tgz","fileCount":44,"integrity":"sha512-cOHmoXuUqs4V0c93484sQjgjIiUmPCsPGBgH005kcA+OgJGNilU/GsxIW6n8ycY7hXJII3juYc0PTkPPbL2bCw==","signatures":[{"sig":"MEYCIQC8vQtosYuAp8hLkM5acbLvP6C2UhnNQwuBYzKyOoweDQIhANqhgtc2IqwosvBryN/llCDkwptQe9HbDdHn7ruMHUBy","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihWy6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/+Q/9GLEpK+jikANOeMWeSKF02F1GLRZiouSOIyqKi8OMdjYydIee\r\nAg4NUeg2B6wIp6FCWvgHS9I47ygOZHcVUgAVpdG3tBIc0L422OxB+cJtlpgT\r\nNI/KUELUNn9sJDzIz2XgQgKA6QF7A9VPnommLrDqFXjtapDKe3sbF+ggBnxw\r\njgvL604llwziVRVLvkmshfsjX+0s4DNPiXf0WSj3D0I+J5IoWSvHWsAB7Qwv\r\nKoAMJlLTdv+vM2VNu05ddaspZr1k7HOi6lZT8r/WvVN8JWiDXRhSv7bO7bMh\r\nHLuF0NfThecEl8nnp+Y8mQP8JZB2cVHhiq7hNLWyzFd+GaHBdjSmYAvB6UIW\r\nMbBAdqJ0hpdSEhNQh2qvH8/GcduVTbvO6ra8oxg6OXpXzXAz8C0KECo+5e+i\r\ngoZhKmc6lPG5TgGQ2t5NUp5PVcGpTapy8CKMrarlT8SjwANN69GuTyHAmCKJ\r\nnJIlyl1xQSvhJVHgXBWU0SKnyTiclDMdqevQjChYUDyWy9/HAIp+Q/5XD0us\r\ngRC7tquGgXG4+VGQ+8UiTa52qXG5ZktzO3I3KcCfATCPeNC93HQ9Zu0XoPa/\r\nIxuYV01uqKWirvx9kCdHpybMuZaShP+vdB0f0LIwESu2jXUMzy/T6KBt8r99\r\nSJGEX6QQwEPGePLNIp/Q5UHG/jFODTgCSfo=\r\n=87Tk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a97df68c1dadba0530f5fcda79fb8bc3082d963a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.c0a11ef0d.0","@material/base":"15.0.0-canary.c0a11ef0d.0","@material/shape":"15.0.0-canary.c0a11ef0d.0","@material/theme":"15.0.0-canary.c0a11ef0d.0","@material/ripple":"15.0.0-canary.c0a11ef0d.0","@material/animation":"15.0.0-canary.c0a11ef0d.0","@material/elevation":"15.0.0-canary.c0a11ef0d.0","@material/typography":"15.0.0-canary.c0a11ef0d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.c0a11ef0d.0_1652911289830_0.6665256962167476","host":"s3://npm-registry-packages"}},"15.0.0-canary.2f9b268c0.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.2f9b268c0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.2f9b268c0.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"42a3680365991b620355c3a30940a6ee1ed12f7e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.2f9b268c0.0.tgz","fileCount":44,"integrity":"sha512-rOngFiTw3Nsq0VBtFu95WbOcf0dFn66YxesXno4O5v1N8H0M6YhLQcbF++oJQ7N0+de15dGVKHPB4z54EVkK0g==","signatures":[{"sig":"MEUCIQC3+rY9ktezRiNIyUqugMBia8yxZy5MFh9pv5PE2HGScAIgEFotNL9sWy/4JBWBAuD5MkxF0kqIW0Vvcqc2d64mpRA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJih+z4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmplcg/9EBEa7spByqljyZhD2YLun9oGXQ3UKpybUVLGxAU+xGJLoOMy\r\n+1nHPPxzGNxgyz4BIUZ3F6ms/vCPqJGODy7fa1pQKBhlNXfEdv320HSsJ5hr\r\nZsBFh4XBCxTU33sVfmry3biQK/AyMfhuo4E6+N8agcYcT2QH6yQ2UUbaCbiN\r\nYnPKMWLLVNTUumRr2YmN2402uusUdVkG7XlJMGeKdDhjq4OEySCTTOXom9VH\r\nSSzRwE/+BnFz62hdb3VO6hCpIUWt9J1RtpbD4PyDNiB9f1j5O/QOnyZhATvK\r\nqG4rHz/a//DFzju3gxnbCgPXkHZSx2t5WG/Wh45fqnkqT2IK6FQGmjTurGof\r\nFOOgnuWkckvctsHPRaoF4vZgT/hV/2u8Qpv0IqKBWAj0lEHDHJkSfrRRhLTX\r\nv/4UgqTlsAGWzMMMqi5baJ0g4PtVJ0aMIyzj4ZpIXZCl3ziO5CWJueykxi3m\r\nLn15Q5ahk2iRLzwsH6FGedMmxrfyYSz/COit4jKWiPwaYXPwkFM04Ohl2o6m\r\ndCCIN5sS6W0HOxjJcrndZlxDbopLtmtSWmKZS6e0L+fVTVU73R4KfmmTTB6K\r\n7RM+ZJAVNM/aozv+ArcqadlZdwbmiJpsR7wrZ9+svzg+4JaLCo+Ampcoon06\r\nlio9FlaZqOMHG29aIZukadnU+IJPxKT1fdo=\r\n=i4SD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"29832a4f010df39515e01d98656d2e77ac1e47e0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.2f9b268c0.0","@material/base":"15.0.0-canary.2f9b268c0.0","@material/shape":"15.0.0-canary.2f9b268c0.0","@material/theme":"15.0.0-canary.2f9b268c0.0","@material/ripple":"15.0.0-canary.2f9b268c0.0","@material/animation":"15.0.0-canary.2f9b268c0.0","@material/elevation":"15.0.0-canary.2f9b268c0.0","@material/typography":"15.0.0-canary.2f9b268c0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.2f9b268c0.0_1653075191915_0.505514038757553","host":"s3://npm-registry-packages"}},"15.0.0-canary.7741345b8.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.7741345b8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.7741345b8.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bf634acd16972f7b51ff99f491fdda05e20d75e1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.7741345b8.0.tgz","fileCount":44,"integrity":"sha512-dIK6Q8szK/onvBcfmZAayo+ivHGRi7qNQWBLG4zY1lhw5+/iasoN7IAjKKSE1N36abkojZwxfFWIuQUu4skSEg==","signatures":[{"sig":"MEUCIQCj0CeujkawupKq8QoxTWMJF1VF2X7k16Qf2kb+BdETUwIgdKfagDgMjVQBb1bhWl7b0whcVmNPQbC4R5X2uhnxNMg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJih/QDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZkA/+OrBM6YF2GcFqqxPKolcZ/xFDokdNspy1nvWQsyBFUyujFu+J\r\nZ0fKoQ9NUou8qt8g2eyWAQ6BiN6eX4aiyniylpYIcsGcVnRMfIR7IjG1//LB\r\nrQUsL1uNGywWo+z7qM5EExiF9A/0PRdc4bm1o0Mz88KNdS48dSAnuHyQi7H4\r\njTzodYQspuArXJFEdFX7z0STaSOSr2R4bR8wSTV3NGxC2kyictdyo/mQYnBZ\r\nU48kHssPFXa2M/ABugwu/AbJuAY3CC4ZcMho7lI3pX3+1POpTWSvLSPkoMB+\r\n8gfYGP5c5G1WThIj6zHYtd0oiSK5m9mFNAIXwrLA1P7Fts5nBUVS3x7XT8qe\r\n7+9oZxtKR8vKFNzHV6EfvZ1j5k1oJlBX2KLOQSro59gIDbKMdnnvbRshYMbd\r\n5S+kF1AcQ3Gpx4IsjsccyQY/BOp3AmSYWSdBIRkRK6dmTWa46Q9hN1O8Z/Fd\r\n8D4CK76Ah0zgVOVHQ7I8mw61w5pD95UbveC1vZNqE/+nEgzA+SQD9ad6ChUm\r\nfo8nmLgEKWZtFkw83OiFcXKdCSjYqm8QtSSJqp8aaqeNpY4w5k8sFWlY7x5V\r\nsAKaDhsN8TAZNGZLgnN9WQnHXKfyQDUZEchtF3iXxApi7lFpg9eCkIvAE9He\r\ns92+QrhoQzsUy2V2j080gNKRhtMpJwPm+qs=\r\n=qUuG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2e61e5e8196d28c1bd4d1c7a12c242276c1d8ec1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.7741345b8.0","@material/base":"15.0.0-canary.7741345b8.0","@material/shape":"15.0.0-canary.7741345b8.0","@material/theme":"15.0.0-canary.7741345b8.0","@material/ripple":"15.0.0-canary.7741345b8.0","@material/animation":"15.0.0-canary.7741345b8.0","@material/elevation":"15.0.0-canary.7741345b8.0","@material/typography":"15.0.0-canary.7741345b8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.7741345b8.0_1653076995323_0.5365655633236561","host":"s3://npm-registry-packages"}},"15.0.0-canary.f807e793f.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.f807e793f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.f807e793f.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7343126e05aa7e3a0dc545cf9d441f604ec0a04e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.f807e793f.0.tgz","fileCount":44,"integrity":"sha512-Ej3t/JmSVBFbU0whYsExyegBnvFsMd5otFETzkMHWa3JnMA3u69O1Qf7AVGvVBEMV9V87zLXnRvZnhlzOooqMQ==","signatures":[{"sig":"MEUCIQDFoX4lyOpynPFWUJFHfGxDunL9jk3g2BGcKpDGBGQEFQIgfuq5Lo9xpYvCox256HS9kNGJl7QQe/oYa8I6jgWUW3E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiiBScACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqCeg/9GwcLz0bumF6IoutMZnCNpOpv6IxHYdbTeskuPg0F6uFAEUv8\r\nOoQgnm56EA2elY6g/3M5gS0Dqoy2BKNr6o8yXPTrUCz7LYDfkDaGci4Awpm/\r\nz5HmRUw7/UTUG3oHNCJL5pGE2Lb9UzFDG6O5YEHZCcYAIa3LAt+vyf0SDz9G\r\nPMFccBMZ56LZZbTCVeS7e5KPXs5I3WaRqMYzWSL7z0OMZiNCtn0JXKYG+ra7\r\ngqjFto86Kmo7kDFHtyeGrBbuqrOQYWGVruVy1dD8FPrrAduedDQoJk6nQlOY\r\nAXwnqTPU4k56gMSevA1ZM4KUkoNegmcBRMNNBcTnFVPCvpvLToKjVqRx1COy\r\na9/6Td3yeSIpOvYQAHFZ/egFrf898fajbciNcJAaBlN0OBhUDjzEOhILtVMO\r\nZIyQmGzmwAmGcRFViuPViZnfkRr0RB/cRkrm1mxvMbfunmmFsPoMWE3d2aaB\r\nJcRWJcFxFa/o46JHrT33qFzyZR5fmZuGTPKzSBkmAcfVgF9k6yAzZnvYCLGX\r\nYP94HnT/4ktH1dB5IMrQ4iOH8ix3x3WXs7pCBav5ARDA4BvNb2hn88Q6tOKw\r\n7aqJ9bIrnJaT2pvWc1DulyojWUtT5ps0ySNu1D94t8OKM5/770q2JAtRyt5N\r\nr3H6lMgyyhqx3Nn41LkIVrFo5wROP61foR8=\r\n=LHYj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b4ac5ff59e90b4770de9f689d9b09381fe2cacd1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.f807e793f.0","@material/base":"15.0.0-canary.f807e793f.0","@material/shape":"15.0.0-canary.f807e793f.0","@material/theme":"15.0.0-canary.f807e793f.0","@material/ripple":"15.0.0-canary.f807e793f.0","@material/animation":"15.0.0-canary.f807e793f.0","@material/elevation":"15.0.0-canary.f807e793f.0","@material/typography":"15.0.0-canary.f807e793f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.f807e793f.0_1653085340482_0.15954808042118085","host":"s3://npm-registry-packages"}},"15.0.0-canary.9f53d4a8a.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.9f53d4a8a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.9f53d4a8a.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4754f9c5cd335cdc3af55b7250606e187eae257d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.9f53d4a8a.0.tgz","fileCount":44,"integrity":"sha512-aAsKcPuuosLFYxlOfAMAP5/8XCN4GrtUfOaDTZzzfMCghRXhM3djihMtHUJX7f0Vfes7WefyBMCd4PSEwJ3UBg==","signatures":[{"sig":"MEUCIQDGxvYXgsTRZrRpzM73eoKeYaM1QDgbhfX05f9qsu1djQIgHG/fg3YcovhhYIm5CkzahmRoyML6kvVmD9pPxR5bIxg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJii6EIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpZAg/9HtjJH2xmLBzsEgExrz7094PyvQdMxxjxP3wnL7qm8wzrHJ73\r\nOxff2tL5Yl+snBc+YnYzWqNElNJxb07htxqwLNQVlg7sf1KRKNkmFMjxX+RK\r\nAbirFBSDzk5R4H1uYqmKooCfNTKKvABvaQwzzlch/AottJXWGQLa9O4CrOHI\r\n5kGKLOO970lVGj/mX8lvQQ8i3v0CIHhAwd5A+DIgt6wLAnnCqpaJ9H6WhxEq\r\nSQXxeRAzxEpylYRK6OMeIcAK/66HRk6WTZaX58S9onem8tjs5Nm1sQ29GdwP\r\naQpKynwZI6r0PFS0eKhEf0ps30xq9/CI7qlLcHpQj3IOV5AHnr9He8hNXfoy\r\nZuV857g9DZCKozMjr1b7vmDUtmd2xq9br/xnjGuyZio9OBJCMJ9TcQwUsgmD\r\nEQgPXtHoF8ugG6pAeb21MyyxSZGtferb5bGjoue/xT15krtSENB3urpi3izb\r\nxWJIZLFLiHQWOjqCXfactc6445FCelgnLN9T2IVmTvo2SnvU86ZaZII27uff\r\njc5b/ThVD2wxa2QlBnWphDdoeywrWtFQS3PW5Oq392lVpCGgNJHWyiFNhkRt\r\nfF1+7VOHUQwaioaNd3cIWU45dct9DIwRVjikG2LtZEYqRoCYnF+ZBr6KF0WQ\r\ncS9QdGq64ivDeLABBVLA+I8SrHCmc1HpDfw=\r\n=QR9J\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5db1bd7747bde68bc956d054f2e939e62c78df6e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.9f53d4a8a.0","@material/base":"15.0.0-canary.9f53d4a8a.0","@material/shape":"15.0.0-canary.9f53d4a8a.0","@material/theme":"15.0.0-canary.9f53d4a8a.0","@material/ripple":"15.0.0-canary.9f53d4a8a.0","@material/animation":"15.0.0-canary.9f53d4a8a.0","@material/elevation":"15.0.0-canary.9f53d4a8a.0","@material/typography":"15.0.0-canary.9f53d4a8a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.9f53d4a8a.0_1653317896577_0.06067769004362078","host":"s3://npm-registry-packages"}},"15.0.0-canary.77cf00e37.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.77cf00e37.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.77cf00e37.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d3df24b2e05bb4cca7981dfad27a58a2fa29679e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.77cf00e37.0.tgz","fileCount":44,"integrity":"sha512-5UN+7fIv+6uYI4huLXtFHRtM3RbFHKp0Ogu65LVCW53QNlN2mO7gZdoYAU7PmA6mIijM7/iCwIhBKzPMZqD7fw==","signatures":[{"sig":"MEUCICBGY+sFkrj1FFL2WEi619ELIY5AdE7vHsYHY0TKMVoxAiEAw6tgFvgqpxgLoIPoizHtLPr1MC9w/fFPLO85uQyhwac=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJillMUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3+Q/+LTkOfMYZAyx5MbnzKqmQ4O5ql5Vey8BX2dQILGGLl6MxGUJt\r\nFb5RLLv0fhUSPHycrIdYspdfs/xxO2yKlruPj3vEy7Z5oUvzIoAwh4C4iqGy\r\n38PdXY+x54i18IN33Dg2C9w8G+O78YPPbGFws4f/oCPbH9e1THBMVUbk3S+4\r\ns0W1zKGMYQK/QhsteOM6TlTKH45hML0g0JNGKLSKSgoHv0eROw4MO7P1vx2u\r\nXOJBrIvNtxJzEvA+Mtyp1GvxGT4lG7dUrtXSgl2nFWt4DY/lYBlyzhOMXTE8\r\nudln432uh5C75ckINykXBk3vIiAdodZT/pNJjUaeJ7oaOl8TJUzEyKSr243F\r\nox5CI3utC9yD+wiDcEZjbQclakTGdrHPJeOIBy+Lnhh8L0rPMKBMYmFfwa/O\r\na08jWmL2cxezHUNq4VkHt/dFygW1DLMgf7ffwAbFyPE2xShPIytKQbdDo7Go\r\nPqXTLBmdD0buJWR4jLW1ej5nH97IJ0ziNB/y6MB0DQJRwiMRQwElYUrapj0q\r\nmxk2bULkd9DFLIkYFWkInO3qkCaZ8HgsXosmbvpGWRvwCcivSualkbcl4Fpy\r\nT46vUqC72yQPzSCoqFw9sbLyPQWIP9xNB4EnAhpK+JOe32pKp5ZXFPEyADVv\r\n+nYrERvYoDq7TrzVww+6yT1j9x7avqrMs7U=\r\n=kaEV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1a68e64a5e78b8bdc529142c18c028aaf1b15b9d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.77cf00e37.0","@material/base":"15.0.0-canary.77cf00e37.0","@material/shape":"15.0.0-canary.77cf00e37.0","@material/theme":"15.0.0-canary.77cf00e37.0","@material/ripple":"15.0.0-canary.77cf00e37.0","@material/animation":"15.0.0-canary.77cf00e37.0","@material/elevation":"15.0.0-canary.77cf00e37.0","@material/typography":"15.0.0-canary.77cf00e37.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.77cf00e37.0_1654018835918_0.7741678700066679","host":"s3://npm-registry-packages"}},"15.0.0-canary.3c7b844c2.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.3c7b844c2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.3c7b844c2.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8dcadfdf7f8fc27d83136bd64f49293ee1487c7a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.3c7b844c2.0.tgz","fileCount":44,"integrity":"sha512-AXXr2t63noD3GBtzE/tzhWh8wEDL/8NWpTDr0Zz/aYktsQ1GyvBn25Py6qxPxvAAJUXuaUdP1H6l1PcGzE2HkQ==","signatures":[{"sig":"MEUCIQCQYjiu5yRj/VCyL5Pel4DfTLu4jWaNXqPlwCThb47GQQIgQV+9LZXEcjqbLDvnKfEdVBrrs6FJxPl521J1JFkqq0Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJin89uACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqHYw//fLWS+emHUc9TDwHgNO1fMdfBkPusoS7LZSsIsomsXFITXxJc\r\n7a1HSI3JNvQgiSowcmYEZ+TaRy/25bqt/4dYebbVsiXujRTLzii7q2Y/SFLX\r\n/jVCwdyFycNgPOUxvPFTXIn8yWbhxpBhUKGOYw4YV/qTNcx8QEHbXaL4eZhc\r\nnF1p3j6sQp1hcEQs24kDX0Tfxc20ATJ/dyvJwVFyI6U+rZXXbn1PcZ/WD94J\r\nmQkJ5d4eWLDVrSLTaOH+itSHn36Sx6VnnMPPC9NTrGtZh5ePPSHWZxGMDpWL\r\naPcbKXcCHtRhwmzpICdiTZmt/1RU3R2b0PnPtoyKwtWXh31MQ80TXf2kp0/u\r\nueQRfwA2P+iThsEf6xsuHixCYKFoC5oEosAmJ9Pv3SWj7M7MZC6GptXAt2Kh\r\nG0GQnA8539xnmYb5DPtsD1ScDarutsfxwHfS1/ncGIL3Y+RH6PJYb+gO0dzf\r\njDeByHTuiNabUTA0qVpf5UBUm0ILqsrD9Seih7fM1A/3+oGPMa4ZkqmnPhts\r\nTnsnszfE18bZBQkiMpr5rYJQnQsNSQBQAi1fgzj9fgNCk/1Exkq6HSZybQM4\r\nj6+nYOPOq6j20gDnS4xNzUiaj4BWhs57vUW90Z0PQOa6+P267iT/tBqvNRpd\r\nIpxm7ZjyxJWQM30EUURCGdkUmjvYKdYFBUE=\r\n=Q3K3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e9422b2e6573001fae4c8aeb7cc75741000e0034","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.3c7b844c2.0","@material/base":"15.0.0-canary.3c7b844c2.0","@material/shape":"15.0.0-canary.3c7b844c2.0","@material/theme":"15.0.0-canary.3c7b844c2.0","@material/ripple":"15.0.0-canary.3c7b844c2.0","@material/animation":"15.0.0-canary.3c7b844c2.0","@material/elevation":"15.0.0-canary.3c7b844c2.0","@material/typography":"15.0.0-canary.3c7b844c2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.3c7b844c2.0_1654640494544_0.07650996672281196","host":"s3://npm-registry-packages"}},"15.0.0-canary.df47894db.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.df47894db.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.df47894db.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6b14f0ed1a9f42a9e6af60ce27de1401be151236","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.df47894db.0.tgz","fileCount":44,"integrity":"sha512-DyFstkRs+zlOeRph+6DXaAphRo8lxUuLPsjxlDb6XwQtDTf+5g0ww1zOQFkdd+CWBruvPtTu38wbEJfchWotkA==","signatures":[{"sig":"MEUCIQCxKTMXMGD4iLgG/RBUytDxq5opVcgSA8Tuf9gL0S/IbAIgDYlqu0w/toUQZAXUrQBuSRD4DmQaixra/hLoKAeuWh4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJip28vACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolIhAAi0zSlD9BCoSCGyzU3B7ndYEp6YRWaoBlxbMdThCQqscBwQdJ\r\nRkBoMhL0ZrS0f8ccwLNPkEQAJ50OGivN6SRNiBN/GCtyvHRJedl5mbMNhF0r\r\n7d8/b07t2VuK99Lm8sBK4oDMcqE0S9lcuhK5Mk0p0+3zYQiZtySf4P/nrxwY\r\nLqwqgmT/9jGBSNZSCWhnrwD3+Awf+qKW42lQxr9KcRmdUdk6IGd3JqtltimL\r\nnQhfvnBG5w5mCyb+/gat7OOZGczWYNFib8I1muMH1716YHsLk39s037aOj6c\r\nSormS5t57tpc0DWAhzN9uwERDcaMs3jGhxR37QUHoxpNdfd1M+bZC0IeeKth\r\ng4UIyDqoSK9NeYxtFGHsIO/pJN5wfPR/ttP7UqEjri4JaoaHgyo7ggTiqwl9\r\nVh2EmjlyxsCH667Fn4BvnU/U4OtkYiRbSHLxsi2/D7adpcsZyN3c3Rr9Tgni\r\nF5HplyclIxmkWvfCjrmjfNoA6LPf9l7twa686AxEHBHUSZ3XEqqas0sckpoF\r\n4/8jqIvpHxRziPc/oZVDTg1VwQUbUxlijpCoAmV1C4GS6bDCwU87pPGQIxto\r\nJzK05kHZtyH/7hdlEFhzxuNOocA4JrVbobnpTiwxtbnZefUQwmRzc+WnW3c6\r\nZHCQYtRLdCythiZiftYRWWVJi8OnbYmJvGY=\r\n=Ap3p\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"42be62e51a7c150444c5b32b2d2acee03d09e6f3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.df47894db.0","@material/base":"15.0.0-canary.df47894db.0","@material/shape":"15.0.0-canary.df47894db.0","@material/theme":"15.0.0-canary.df47894db.0","@material/ripple":"15.0.0-canary.df47894db.0","@material/animation":"15.0.0-canary.df47894db.0","@material/elevation":"15.0.0-canary.df47894db.0","@material/typography":"15.0.0-canary.df47894db.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.df47894db.0_1655140142947_0.8785019907329517","host":"s3://npm-registry-packages"}},"15.0.0-canary.b18a873dc.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.b18a873dc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.b18a873dc.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3d8437fb2e33daee08cdedcf878aa061d57ce44d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.b18a873dc.0.tgz","fileCount":44,"integrity":"sha512-GgOFIzZbiUasuBzJJVnQjxkR8KTAFFPFJV598y2izyqmmMmDi1pmRhlccwnrjGfQf8OZX/TYtC48m19udC1H5A==","signatures":[{"sig":"MEQCIHKm+mE09CsikD/3PEDzbNMxrCL9wddRLuDyE+Pq22JIAiBvrBK7jQquXktDRoR8L0t/fUe+vGoeg8cwwp65WPYeaw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqCr2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpEBQ//ckW3/oJjHjxuz+DpBSElryXHu+VZp9vwh4JyPU4ohAvTX601\r\nxMrYed7g/W6v1k/SCevP2CwkGZ2jR4i2XEC/77ZNoF+hiteG7tVHzQcwvFl3\r\nRNdY0SXbJOvqdQ6WXYBkTuc8OOdiiAMesCmNzDChuccv31OAHh5k3CyIbCG4\r\nLe6AM3n6VLYVg/RQvs+KIXFB49//XLONnoM5HPz/JciQ28bGGh8XAsGNs8vQ\r\n50/jmHtGhT6mGr8QyqNbOTynwpytM8V1rzjUGrRoHFQc9QZFEzr/3zu+HMv3\r\nM9Lh6hyJ/fjMBIXbYv2pihsNkONrJzqyyz355dm7yZEHOwJV/YAwRoCHVWfp\r\nbS2f1apR3+KnoG0tlUy7tkfWaYrV/nvdegsXj2lzznINLNsmSqeo06Sdyjbl\r\nKxc4x2Xob9xl5bJIQAc1LTRgaO9TdoFIjlLl4pb/a8WpqcdL5dSZTx6OGhLP\r\nzD3UJ494tUQw3ptXS+xaw3ZvOymHiR6VuM2r3UWESaATlG3zwows8kqtWjmV\r\npaIl57pDE+MSR671iCHKFWgb8hkHkgjSjPMuPcsEBXBG54zGt3s2LY3KJ46H\r\nO7hSsq7fvXd359W8L/RCODm4FkMmUUwwHSN7ZFq3M8fKgkA5zDl+i0hyJi07\r\nG2r6I4UEadEydV5KmAFHzUL2CkdNpw2kke8=\r\n=gcfG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b35dadfc99a3788643d8762f8afda3f2d6e76d5d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.b18a873dc.0","@material/base":"15.0.0-canary.b18a873dc.0","@material/shape":"15.0.0-canary.b18a873dc.0","@material/theme":"15.0.0-canary.b18a873dc.0","@material/ripple":"15.0.0-canary.b18a873dc.0","@material/animation":"15.0.0-canary.b18a873dc.0","@material/elevation":"15.0.0-canary.b18a873dc.0","@material/typography":"15.0.0-canary.b18a873dc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.b18a873dc.0_1655188214319_0.49842936372460445","host":"s3://npm-registry-packages"}},"15.0.0-canary.ba9c29637.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.ba9c29637.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.ba9c29637.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5ae84cc5c75c12842deb92458419eaffefd822dd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.ba9c29637.0.tgz","fileCount":44,"integrity":"sha512-juZ7r9MI7nLp1BEuaQB4f63Y/Z15JmmaadS494bROM3DZA5yKb/qxysSVv5WG9VZjbry92MGuwmtOzKuPCSWxg==","signatures":[{"sig":"MEUCIF0HwP6QGrsKiq7eJwNeohO2GwHn1hXcxsajqhIkuJ/5AiEArVBplMtOkf8j+aKvFmL3+yofv9Npf1Q7CgBMNOD6j94=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqNowACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq86w//f3yWFo2AGeITtUkhmvn19xQh2MK95v4qw6EB0eZQ9RgJJU1I\r\nf/EpXWzLwLej3aECRabwOOtbUhEt0rcKzaRdF81APfSX7O1JFQPasUCza+xG\r\nQ/gnzF/fTg31QaRSv2qdBsJWG7tEAXiQvAjcY5DvhiDknBAUGNDe43exwPh4\r\n9al8Znn6ieL6jh8Ic7hg0xabY9w/CjVMsRfpg4YOam4EleBAoAsq/H/T5p0W\r\nwUa713XXmMdQR+FDAFQ6uXbJQU3o8FBEdP7G+/6RcCpURTletIt4XwXyKEWP\r\nt7T71/v1FxT3eh2bsLU2w+SEcQKiiL1SWCMX4ufMmDyQtCfpJI+5/gf+KP8w\r\ni6kp7KZLR34f558y5hJM/MrES/QWQ03YHEGcbkd7x9lwYvt2xqctgqfjPhhQ\r\n7BPgruat63r+DZznUJWD3C6XBvGyBwV0Td7TGQ/MKyjLK+yGbKmUIhPH1bnk\r\nmLt6ge1QDRACnNjamqIOtfk0pnXgpopZk5x/LmmNC1FCVVRDnO6gzbU9gRy6\r\nkZqFkyAyahlk4hv/BJQR+r6UZssD3C8NPHY4Kd4wN04vdIRPHKXO2E4RjmQd\r\ntOkoSqEECHNKvXx9+EghpXo1ppaxxjVwFZWqMC1SwHCp8T4YyMIb7hGNstJ6\r\nfnXgc+G+F4TTTi4xef/6L5ewUogHIFBI9W4=\r\n=xtWf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2bf89a291dc4aecd82cf7a6432d198374cfea69f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.ba9c29637.0","@material/base":"15.0.0-canary.ba9c29637.0","@material/shape":"15.0.0-canary.ba9c29637.0","@material/theme":"15.0.0-canary.ba9c29637.0","@material/ripple":"15.0.0-canary.ba9c29637.0","@material/animation":"15.0.0-canary.ba9c29637.0","@material/elevation":"15.0.0-canary.ba9c29637.0","@material/typography":"15.0.0-canary.ba9c29637.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.ba9c29637.0_1655233072128_0.2202904208164418","host":"s3://npm-registry-packages"}},"15.0.0-canary.9bfd12f01.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.9bfd12f01.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.9bfd12f01.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9cb24bf6cd993f4a787cf38e8077e4d69e286093","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.9bfd12f01.0.tgz","fileCount":44,"integrity":"sha512-mrUNZj9STBOGtnB50er4VWxW1xvYGJjSWMSGJbbC1Ix3A2QEoC7Phiw83t/skpTXImwKnMprdgiYNaJJcPYT2g==","signatures":[{"sig":"MEUCIE80IhaiyolV1ijspEDKdKDt8BMxHukBprnzV0u7gPQiAiEAmQSg/1k6Q8ahvWWv1kQaBOfqvrT+SJptV8oBT03IbYY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJis2wUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpv6Q//fcJQq6BOwv2//GgV618uG8U+Ft4XP+yOUXPqlZ7xn/W+fJZ8\r\nlcTOyoof5ZBo0VhMBDpmu2sCJQRO8yuw1CDOhxTt/3ttxuCigW4fGtksMQjx\r\nBoFm/Mtyi46wlxgCFkPyCJVbx4hsbnpps7g0SXDwHR94NphaaHeH+Ia349w4\r\n6PEuv0zzvvURL3omozUNHqHPgCq6/KvM3QCgr8iIU1tUo/pasPdZ8E+dya1i\r\n+2IIZY9PkucERfY53BsxQzeq4/qEaoNZ14yBolzIHL86Oocw1saG+PDmImUk\r\nVzP0YXrC/LKYMX4mtqgkCXbFlqhzwJE37lt6UNjhsFqK2s3JICZmfbTtdxk6\r\n1jUpxAVnmnOzt5pKxIrnBjDe9J9LOCG3ZcmFxoiS55dTFimIawNKAhzo2b/z\r\nciGIQP52kuD1y14MDPYgsj+whb/kUr2nunW/k+dX3JqhScJULBckZrL4+xLZ\r\nG/vGQ96fifIz0+v6HPrxIU9f/v5ekQfQL1QCLwedn8Df2eTKHZcnQU7bake0\r\n1DkP+eZqMgosj7MpDGXsGNhUbIAbq6xqLfX5RVQLg7PlG4V7/oVQKkvB+mWZ\r\nbCfmKIfFhYpsUFg6LXzhRsbN0TYKYEwl3ikUaLHbsQjTwHR2zP5wB2P7oKj1\r\nlMqH2OWazffSo/mAniRuM2aDNL7O5xc5vL0=\r\n=JAEE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ba7b0d01530df70f39142820ab69babfc9cf5b8e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.9bfd12f01.0","@material/base":"15.0.0-canary.9bfd12f01.0","@material/shape":"15.0.0-canary.9bfd12f01.0","@material/theme":"15.0.0-canary.9bfd12f01.0","@material/ripple":"15.0.0-canary.9bfd12f01.0","@material/animation":"15.0.0-canary.9bfd12f01.0","@material/elevation":"15.0.0-canary.9bfd12f01.0","@material/typography":"15.0.0-canary.9bfd12f01.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.9bfd12f01.0_1655925780627_0.8097473008676737","host":"s3://npm-registry-packages"}},"15.0.0-canary.764de225d.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.764de225d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.764de225d.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"895332d64b1fcdf7e6c9b42fad0a2a316eff0e8b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.764de225d.0.tgz","fileCount":44,"integrity":"sha512-DvN2KVTeOFNsk3nlyMaVVYP8BIKJK7eE+SEFKHw8/+QQXvXWRAzqoDNTztrdxB0XL0PJI4NFjxLIa1ud8c/bTg==","signatures":[{"sig":"MEQCIEP9KpAXG0iGYwI8IkjQUYbx83CEWWwjU2XlPj7+9m3TAiBkdm3tIWCxDCW9nD7UnkSkOY4QJH30+2XkIgq1AO/eIg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivH10ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrsDw/9EYrjMoPJlc9DbHAcuTlnV3gQ0gx3de5sMg53DzmQbFAQHu7N\r\nWx8gMPHv3vZpFG5VS1fZ7oSgvbTJURNC1K05dNoCprgESalV8Rn4yEXnStqz\r\nB7tV14rQneTPhzRTl6Nt9UmiVt3qbVM+uQLpR84VPCT/ttIbqQjpaVeENCkV\r\nCStkJmeSK7Rw5xOd127voYHRH7veIRKl7LEfR04k0hcWIR9m1yC4GNlJjLw0\r\nAO3tfeMnOo/iGQrQaqO3F3iZfk0z4IRlJdTAGUX58NBbxtcYltrAr6xuF7XE\r\naY5mPC2ws7rfB3sDK4cUHoI4Ynih7ACtds0Z7AiL8EJzPuiPSJY1sAynIiEy\r\nUeUpvzpn4msGWVHuTjWJq1oseY/b4YQcGh4hXQSWbD2rEih0rd8MKcIneogm\r\n8nYDoQYOi+wBlQEcNJnWLTKL4uSzEe4VNQPswu/2AA/JL0ynIcQdaU+Z3PNh\r\nHkTqe9hY8hzIzBSNG07Znp2Uni8V8nD1iLNpStJIpC2hE6L9gYvJsKy9L1J0\r\nFImFXp5TMFRfEi14YY9rBfXf2U823V0VS/0t2feNQGVY33DwQ2vg+BUQmRi6\r\n+6CeFfbEv0bd63U+qf5yykQPmU2bTbnQGnnNt1UAVRFEYbmBDwG4o3pMYtrZ\r\ngdaTWFcWdsowV+5BK6vQd2E3xz6PCy30iv8=\r\n=ttje\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"25c0f0a7c9d8dcedfb35f64d0851fc4fb86b8534","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.764de225d.0","@material/base":"15.0.0-canary.764de225d.0","@material/shape":"15.0.0-canary.764de225d.0","@material/theme":"15.0.0-canary.764de225d.0","@material/ripple":"15.0.0-canary.764de225d.0","@material/animation":"15.0.0-canary.764de225d.0","@material/elevation":"15.0.0-canary.764de225d.0","@material/typography":"15.0.0-canary.764de225d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.764de225d.0_1656520052750_0.2970740302199151","host":"s3://npm-registry-packages"}},"15.0.0-canary.31e517cea.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.31e517cea.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.31e517cea.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6d8793a5780f940106154529500fe23d9769d875","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.31e517cea.0.tgz","fileCount":44,"integrity":"sha512-9FhtqL8/C9XnhhRXATFZyVs+FWCSc8W8ti9bIDLhu4Lz7h2dpRlkHrHnE5kua+xAawTOZmEXO1xPi1oRcaB82Q==","signatures":[{"sig":"MEUCIQCbeCVXE66fpkjnnBKubBDiOzr7koQkNCiYjVuM3vYSUAIgQqlfLXtBVRs0hP1dORUrjOrF65FysGHResvm0dkIN4Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivzzkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqLXw//ZFSveIMAtHsxQvOmQtTSZFmdQHKWBkMVbXUZ7m8k27IiW1nO\r\nno5UXltoPGxzXSY38OYrUDTYx4gLD52PEtWf9diL1hvh5uoR8fSfVcft0XVM\r\nJtB+EppuRUhW1WRInsdNoaYvVrRs8JjVotuq0BYMfx4X48tqvFIQp9OtOQNQ\r\ng59vT40ZvSgvRIdCvE/8K7gR3v/HvPWj/h+Aiu/eUDL3HRBy/L7QOwt3Qb1/\r\n98RK83gEkh5kMc+V+q9VShwJrQVVmdjpRqJNYHXg8NX1bPK0MxyUDuTVkLh7\r\nwDWlKFb4i7haudLJVHmy/1EmV//iWKM2rzHjjwa0nyz4bE8q5TJyE07dx+kL\r\nc5eBcFtBiCU0E5d7PVr863WOHRZOdkDa1HeDXPpISmCpmzXeukBmnxCo0Wj0\r\ndde9/Fm0TJ2iWtxDlRFLWkUfFNW1oqVmsiyncLsT1IIBRcBg5vl1Tuu8Ryii\r\n5r9rMTwptFnrBbpwukHr14bN8/ghjtWZbA62BKCKxr8cQOiC3pxJfWRB6Sfj\r\nrqehI4rdDV0OLPZTS4jX/rU7E7ElmweIKk/uJ/dcPfxrrPTWdHH66NmQZ4tJ\r\nIX6SqOv3et9scvrhaqNZWTPkwHTof+yYTyizW/lBZAw5sHQO+Pu+CkkUIpog\r\nnVOVKUwt79g5JybZpZg9Exo8qYIkNPN1E4E=\r\n=dxCO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8af6d916fdf79ba9e33a883ad56f539f3decd5a4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.31e517cea.0","@material/base":"15.0.0-canary.31e517cea.0","@material/shape":"15.0.0-canary.31e517cea.0","@material/theme":"15.0.0-canary.31e517cea.0","@material/ripple":"15.0.0-canary.31e517cea.0","@material/animation":"15.0.0-canary.31e517cea.0","@material/elevation":"15.0.0-canary.31e517cea.0","@material/typography":"15.0.0-canary.31e517cea.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.31e517cea.0_1656700131757_0.6330757554900419","host":"s3://npm-registry-packages"}},"15.0.0-canary.9ea4e8e9c.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.9ea4e8e9c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.9ea4e8e9c.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"71f1274026d19a0a4852068f1b85facd4d7409c3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.9ea4e8e9c.0.tgz","fileCount":44,"integrity":"sha512-GxOBsTofn6UwPkF+edOGU/KDIddAy4TIIXuRu/Q2g8nv7BqSulQjGO+MHb3uzO64r8iqEHb55JNgenbUM/rsHg==","signatures":[{"sig":"MEUCIFO1Ralyb6jEhN8RPr5PA0+qD2TT8TsnPOpuXRVHzfEGAiEA0qBwUs6sCqtdD7lY79UBKZSaTrcolMYZz9HH85+9KBI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiv3tfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqivRAAlIkSVZvVKgNTO8+Pd+/fgSdcRxeLNHEYSwfKeidY8mPE2pKS\r\nhcTK5jc3lzOB9DvIO6C7fnaepaPt8d2r5cIodDzGvLu8X+RDoBGDgmID8DYJ\r\nDtPy45MPWvSeMb6zU8QpE6b9a/owqOyQ9gFFauwckw0zGa9O0haHQZJa+8DX\r\negu/4aX3+fga2hp6sqNnhYymA11L+6IWWQl0d81ksbbRnFMQSj8BLCmuCDBU\r\naAcuyMdNwROF1Yr+iJkO037Bni7oFQIGsMSliCY5J5jPOzYQR34WPxJmnoXb\r\nAmp/L2dBRUvtZKwbAy6ELfTCauH8mRmN36sB7dZpAOzwS7VCOJ4nltoJElQa\r\ngmj9BjhMKT15fc378Bt1VFWsqzMVocqG4dWTb7TMlBeLo7R/d0CAMsBOISxM\r\nX2NMpSQ+ptf5u6hJpKMQLGpiBthRm+OXQQ0QcjjifutS8pWrw2MDKbnGHSSR\r\nLm+YxGpn9iVLFeOa3MOxM1XAGY/WiDcU7oxbdDwdfRQNSPh6TqCBUWgelvdd\r\nmASLKzUT6sQEjmZR+eFfkc/SYeVB5Hto8BAmRQPZkb6/NBRiW5+LjmoAZWLI\r\ndCdjmsbX3mXj4n37xzafc7RN85Lb4Q5UPbc8MXIz1VvajZEkCViAaxcOdBOz\r\notbMEq1M3Ra3nFP330/mq76iz+1kwP3ajfA=\r\n=anL9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7a2b791f6f1e376a53ceef81767514ec18174558","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.9ea4e8e9c.0","@material/base":"15.0.0-canary.9ea4e8e9c.0","@material/shape":"15.0.0-canary.9ea4e8e9c.0","@material/theme":"15.0.0-canary.9ea4e8e9c.0","@material/ripple":"15.0.0-canary.9ea4e8e9c.0","@material/animation":"15.0.0-canary.9ea4e8e9c.0","@material/elevation":"15.0.0-canary.9ea4e8e9c.0","@material/typography":"15.0.0-canary.9ea4e8e9c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.9ea4e8e9c.0_1656716126935_0.39456569805652597","host":"s3://npm-registry-packages"}},"15.0.0-canary.cd5bafabb.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.cd5bafabb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.cd5bafabb.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1fc0a7593165c15a2282d2064c24dd34a4dc3169","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.cd5bafabb.0.tgz","fileCount":44,"integrity":"sha512-lGVYxP21Ku4zaVmG/c7dvsZkMBaExZXZiUMyVhAvflZ5cVFKfosM8Gly2J/QG4EUpFLPppLPLby+o5w+jz5CXg==","signatures":[{"sig":"MEYCIQDSTpFcRRXWD3sBQdzcc6O8Fa0v/oQunMi+OCGwSQ1xfwIhALutlKzuyb8OS/WG0may82v5V2jwxNlTi0YO46MeAY8b","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixcxvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoYZRAAlVSDOIs0iSRJjGsr9lAC+/pefYIgwlTO1rmmFOt7rNiCzhHl\r\nYn2sBhq/STA5w6UutMzV3wHrCVMalZmmOTtBmBjpY5hQQnNivnUfmSoMWXud\r\nKGmGymNsuRbLc8MfKXpnHqGexEi1gmmtZCEYuGqqNon7gxvAlosT/hvlpfFO\r\noabCSfp3nDxaVpsNg7T/O05/3oxADD/5wZGCd6Xqb98d56XHzyo7fa0n67MU\r\nIMtjlB/T6RZfYNkh0q5asGWySEqE/cxuHmxGsifvvTTeMT3rww0q/WRcBxyd\r\nP7XKChfJOQ02aSpg7d8Gg9aU2EpVDCdrq5AeQ20mZGjYsab/HwcN5HV4tceF\r\n6Vij3I5yw9rLCetYFACSApRpsNikQI4M3TLSwKRFcIerYVLc+UX/ldGacYw7\r\nE7dPIgyNb9fTnM/f6aKGe7jtfNlVs/tWmE4DCpPJRUvDThaWDBnX+5LyGFXg\r\n2Ye7028aW6s50y79+FyYYRxYdCKGEURUD3HGNG8b5tSa892LZWosJEtzu+js\r\n+PMJ8FQVX/hAwnFCPN0WB2yWga1FkkQg7flCjuOrQaNH1YGgFUQEpW0ISzeK\r\nFiJeCF+7nr72U6x6skVIHudZnWuYYz7rvmHXjy6+B7CEWGYZ2Lagt+OIIVwK\r\nce0hnlHZ7nWMWrqoKwQjOpYUScHyUFkvCDc=\r\n=bcxf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fceb62aaa361c04ae0a30158d529c7e6896b6f9a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.cd5bafabb.0","@material/base":"15.0.0-canary.cd5bafabb.0","@material/shape":"15.0.0-canary.cd5bafabb.0","@material/theme":"15.0.0-canary.cd5bafabb.0","@material/ripple":"15.0.0-canary.cd5bafabb.0","@material/animation":"15.0.0-canary.cd5bafabb.0","@material/elevation":"15.0.0-canary.cd5bafabb.0","@material/typography":"15.0.0-canary.cd5bafabb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.cd5bafabb.0_1657130095524_0.9426431859864968","host":"s3://npm-registry-packages"}},"15.0.0-canary.a02fe49d3.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a02fe49d3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a02fe49d3.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"22ddb4c57cfb56cc1f3a2c7f5347bd59d498e6bd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a02fe49d3.0.tgz","fileCount":44,"integrity":"sha512-Sq+xUvmKkvxTn/JHcxDHOlsuJisR9M9MHPsOANX8Pyo9NlF0ZIMqcYi5w/DBoT5JfosX2NZim5NUvIZuRO8vtQ==","signatures":[{"sig":"MEYCIQDfKPw13IQ9koLffLO2WB5iG2KUTOvAQ0DmKOmCp8ZqugIhAPNPaKwpnPz7+nihYGCOseoswlDvZJu1Q+NS+v5+Tnqi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixdm1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFHw//bbydZxbotUDRwT0KUpFVfc7BoA87FS6i7KHv0tCmPljckkPq\r\n9L0jm/OgD8rzmn80Q8jdq4k+IjUIKRqlqsaLil5ORVWZ14FQ6O1ucvNnrMkQ\r\nDq6E+Hxq+os7SMn5EkrFcxy5axT6TTAucKtRAfh/crXp0XcVpdnGYIdknJRr\r\nU2lHvVEN1TyBIxFJqUbSL3Vpd25AR3Ai/Db3hdQG5L6iyFUpW+xo9hcqYxRN\r\nbydlDgB8/qDqlqQ/3+WzZMbGuSIEtrnnp+Ql3CUVhppGyJn2zAbbWsvymjuO\r\nwWQdcIc/IS20jptj03yP1ab0nI/ZVrICJP2ApWb3HrKhXbE6tbEaK/oJ+HjD\r\noP2Yrbdkd0iMS69li6Q5QrK56pwEdVJL1+VgwvbCHOyNdKyh+F0MhDUUs0tO\r\ndJcM59KUBVXXD/5VfO0X5mD3C/+PLofoRHpnmfWgt8n8/t7hHcQndGfM9+wx\r\nxWhMNji0d9BYNmYqdCHtxZYePuCZkedd5e07VzEJAkAoxFlhnRHyhnXJ4QPB\r\nCu7LiENgnorAZPWh1QDMyr+hKuUgGeohlqn8QO8slDz/Lut8Ix0OUczb/1GC\r\nnzKi/4lNYS+3WFOUFApQVTyJIuMKuoDchgfqMt6uEu5acky4frnCeCPX5yxC\r\nb12Lb4gpRrMS+yvs/iX6oxupOtxUhqVn5Lo=\r\n=ODrV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8304e794f430681d03b9d2d3193e635a072f2d8a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a02fe49d3.0","@material/base":"15.0.0-canary.a02fe49d3.0","@material/shape":"15.0.0-canary.a02fe49d3.0","@material/theme":"15.0.0-canary.a02fe49d3.0","@material/ripple":"15.0.0-canary.a02fe49d3.0","@material/animation":"15.0.0-canary.a02fe49d3.0","@material/elevation":"15.0.0-canary.a02fe49d3.0","@material/typography":"15.0.0-canary.a02fe49d3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a02fe49d3.0_1657133492916_0.0861398215879492","host":"s3://npm-registry-packages"}},"15.0.0-canary.826a3d8be.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.826a3d8be.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.826a3d8be.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7e42240822f032f448eb61ebe6bc9465c3e3628b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.826a3d8be.0.tgz","fileCount":44,"integrity":"sha512-D8gQ/8jl/UMFVX1rJy3znU1NPGNLm7QnNpIJfJDPiLezZPDEwFV/3xRycseQVjcfOOmae13dr6wrrRFTdeT7Ew==","signatures":[{"sig":"MEUCIQCtJ0B2cVtruLrHIoHkhQ1Eb7khVKqkJSinwQk9Rw+Z2AIgQXTiuQZLHEO3XZhZZ+eWAFRCfozeX5tqD+OIuXEBBpE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixeMSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrNeQ//Yi+29rWZLx+9qEFPNMeiG43WVJ1MibRIuVYuXdCIHcFlxt1x\r\nrJbUNkzfugQhW2pLtgmLP7KTFSkHiadAG3ixy/25AWJF3I1LbsTPepNz2WHW\r\nz2vB7Vd+ffBGpSXkXqCqKAIbNlIZfRZfDKVomUhMKAhCrnhAemi5uqq2lVXn\r\n/kYUU6rMCTL+SSNBqg8FuFQSQwXhBFgqOBk3KeqKfvklfDstC+bMuLvrdodQ\r\n75Bw4/CI5Y0z7Gdm8MAujaHicMRSY4pIjGc+WhpL4P8uRNWcOr/N7WnV59zp\r\nawUxE4OAiuI4SGgiX/TWdkRsk0ctBNpMweTyiNZZQw6FZ8a8TZOjdm8PF94p\r\nXCD5ILEsws1X0hz6I52Z0hFKl4QGCqy0336tTxtnRlI5E4ikNmQi5gg/pJ3C\r\naDBJQ2cpzJGeB+Se8vXCsNpoAQg4cneUKqgWRJa4Xa1w07v0IasF7ynYVGVj\r\nmhzBTruYeua5m/Uf/pGWR+osFxBNi7vzFFgGsrbGMUB68oN4Ok41YDrsPQSP\r\njDk28TLpEQHIiJA+b3XJkKYt3vPHvNjHpagpT3ue5JrkzGXUJ5GZJvv9xdaT\r\nxKFXPDbQ7K5hXhyYpsmMkUgqgKh9+0rl2aUNBxI86qQvR7t5lzDl+ZPoZ0rG\r\nTHEr2P6fOxIrIWwcz0UrPTKs0vbqCddFdwQ=\r\n=DPN9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f54c723431e97d10fc1886f271ed251cb10209ce","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.826a3d8be.0","@material/base":"15.0.0-canary.826a3d8be.0","@material/shape":"15.0.0-canary.826a3d8be.0","@material/theme":"15.0.0-canary.826a3d8be.0","@material/ripple":"15.0.0-canary.826a3d8be.0","@material/animation":"15.0.0-canary.826a3d8be.0","@material/elevation":"15.0.0-canary.826a3d8be.0","@material/typography":"15.0.0-canary.826a3d8be.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.826a3d8be.0_1657135890545_0.8923631506847465","host":"s3://npm-registry-packages"}},"15.0.0-canary.ef276aa93.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.ef276aa93.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.ef276aa93.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c25db54d299dc9aa65e0301dccf29ab8c4ec86ba","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.ef276aa93.0.tgz","fileCount":44,"integrity":"sha512-BIq7Hm6K1g7tbaqTrmG6PXKjxA7VKI6RWRRyaO6Pbr8z+hTi63R2ocMy1tzTUD/jSSfZuRtZ6NaJCxBBSz2gBw==","signatures":[{"sig":"MEYCIQDtpy+SIS+BkWyq5jDc4j3LU+6XdjuQZrYwpepaQN/HDgIhAKvqcTeBAgmfUCrtVyjTlj/Mua7/J2gA/+SZ/gsGjvwY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixxHLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpMqQ//UR6HY3RUj/qdcC7d56wp8GbMYvWpWnS014NFlRdZ6ZIZhVoV\r\nvuLjbCaAv4cOUKMWkqo9s7dDwQen8rBwC02jgOEV/loxo5IfkykRH7Y1n8Ej\r\nEgg2ImiDIk3JbHUocmxWVzyeErGACss8SxMaYhOlc/U0jEBVIcQG+RclyYBZ\r\nZXvL1HwGKZIOIdFEiejyqjB0uIN7QAbYmm/l870NabIn3SR3bN5mLpTeOBwb\r\nR52hFe8N8xF6KAg0a4PADHLiuauBKeHJwX56j2OSzsjNQ14cUqmCtcs1Qn4N\r\nW8VpfP/hvsjGsJ/CaIWCPcdG5sEcf2jQoCJ8xFklyAY2rTWdB+xcEEYSihkQ\r\nBgl+IqrahbANh9BRMGBEqrCf/hxkHnnB2FFfWzqb6LvJbbDVmKI69GEM0pgO\r\nq2CknV7J/+FCQO//N2BfpQ+cfSNhEbfWGFQEHdJ6Gg7gfFQkyEkMOLMk5rcK\r\nyXzQeFaaD29Vo4CFwcvY8GELNn3HrM3oFRkOE7ELqywtDsINXJ5GOxhj7mbb\r\nf2X/pOB0/dj0xGR2KpnYooLqgcFzYgRYD6VTMFYXmAFdT90zejs4ETjXRRny\r\n6WxPF10Wphy/UNrmHiCHi8R/iJMkDVebY7DXyVnnEWCFSHszrRF7up3QecsF\r\n3YxilKpDd1VmtF3OygQj5OI2IHIPnNChCKQ=\r\n=jZpy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"502fb9536e29ea5887a9fac4aaf0c9dc2c732e61","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.ef276aa93.0","@material/base":"15.0.0-canary.ef276aa93.0","@material/shape":"15.0.0-canary.ef276aa93.0","@material/theme":"15.0.0-canary.ef276aa93.0","@material/ripple":"15.0.0-canary.ef276aa93.0","@material/animation":"15.0.0-canary.ef276aa93.0","@material/elevation":"15.0.0-canary.ef276aa93.0","@material/typography":"15.0.0-canary.ef276aa93.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.ef276aa93.0_1657213387580_0.49178183757559624","host":"s3://npm-registry-packages"}},"15.0.0-canary.59cf61d6b.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.59cf61d6b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.59cf61d6b.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"77254b23ab6a4e4d464d4d929691cdfa8a2146bf","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.59cf61d6b.0.tgz","fileCount":44,"integrity":"sha512-lcHyY1cu1OWJP1unSmUnddNS77w6qIVnsPpLYeteUijJ2aNSV+002Z2qBlHcPU5m1Cgao3jydAnN3DbHHyTXnw==","signatures":[{"sig":"MEQCIE5fK/dgXkZRhM3CeLCZ3CoFuJgwvWT30qW/RMdF1J1sAiB7oDgdAODGjombR3JuBoUCx2A4HfDIRQaOF/BPHjJJcg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixxiJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr94A//XtdY0OM2t5aWISkA22Hnvsl0FvE7tiJ5LuG7OnziQzEg1B3W\r\njrTwU0e/iYaP2yHIftGaTCl+9j/cKuRm7brj0PlINPju0VcbmqzU+JYfQwzq\r\nPvRhohWPeDPDRgRN06i1ipHULCkL0n2uAthj24246od0f1qbuF+3NkLScK30\r\nsT+XxS560erjW3ysbOA44SKYM16vO4hbFE+QhJ/Jkc+4Xy1Tr+AVVBD7Ant+\r\nw+2SQfgrpm30yK3l8p4yCPyAXTJtZNwxwkXLSneAc3Bd8/1zDUdMztBA/IGp\r\nvKQTfWBBPcCTu49XQsYE3xLgQUUYvm55VRl7K7MOGJOIRqmBpLedmJF6wWBw\r\nSDILY/Rg8q61MiC8SL6jmkv4Hk9bcMZIQCXFs1JJqeoM17s4CTZYkGi1uZuv\r\neAFzXnokWPuHZbASGW0iDw753pi6sBvly09BY+zDgUsOmrIvKkDHMSh65n5Z\r\nSry5Fa4FQewZxhysjHqDgt2bGPTIDb+u+ocUAVpKGUlbba4hwMM45RrCrYYi\r\n3r9HHphU4FxS0jetQ5PJ3ccw89vqHLp85RcXGBD//BiEXmDyFybedZVD+GT+\r\n4l5+uJqRP3SZ+u6vxrnpQQGsSVJqZb3fgGIVf43oxh4ton5Vbo9+nlVZSQ22\r\nTRRjfSodFwOSfhME6RAjQg1NEMgQhXPyiUI=\r\n=o12U\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2f27bf33b194929683b4faa9f388325b07b408b4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.59cf61d6b.0","@material/base":"15.0.0-canary.59cf61d6b.0","@material/shape":"15.0.0-canary.59cf61d6b.0","@material/theme":"15.0.0-canary.59cf61d6b.0","@material/ripple":"15.0.0-canary.59cf61d6b.0","@material/animation":"15.0.0-canary.59cf61d6b.0","@material/elevation":"15.0.0-canary.59cf61d6b.0","@material/typography":"15.0.0-canary.59cf61d6b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.59cf61d6b.0_1657215113571_0.6463462974846164","host":"s3://npm-registry-packages"}},"15.0.0-canary.8647092f7.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.8647092f7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.8647092f7.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"58381274e8b4796904ccc74f3723eda3ff3da36b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.8647092f7.0.tgz","fileCount":44,"integrity":"sha512-HGHtbmm8zwyy0m1nQN2KV7uqzOz2NbQXgi5n5QJfrA7YsuRR97PpkZu5JSVEMplFGIvdQV9XuwNwoeSgnYWUxg==","signatures":[{"sig":"MEQCIDD9yZ+AaoyMkZj/El2Ali1WMA5+ScPfqhvb3zux2Ki7AiA/vw3/gKRbXGGW1H9HjgKjyPW47hiNFHMmlQhcGSvfzw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJix0RrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpP6w//aRpF2udD9kuHore2G9svP3bfUzyFy41UgKtoS+VnxWJIenVz\r\noOZU+ul3oYsIyouwiyKbTtOksqQQCLmWldT7+gFCaIf1e36++yf3qB53z9i8\r\nSZkPB970MFgHAhds5YcK/0S4Vb3ZJceHKahPD1Bb7c1xpU7LCu9oZ/qlkp/7\r\nF3gLf2/CxZNZnjHwvdCcqx+ZqHDAvrUtfonr5bN/jlxGNwtG1PjoY8khp6Ra\r\nGtCR6way/QwSfyaB2BF5SKsqRwqH5ajL+bzjYBE1IU+VOyQCTU/VjHKL+eTu\r\nhW58zanr3VCA7CgZO93SkjhMJAGPhdMpp4Yiq6s3UXu0eQ7t5cO85gg7b0lm\r\nRNiTdmt5n2MntmC8NsvV2xtXqKNvqrE92u2gWLOfPQqRilkGPugOcXLQpMY4\r\n/sk0vxhvlaPGetYh/pNSo1VM0m08Jf11zewjzAexJLd2wLw9uimbgXgq6z04\r\n56PkvoYkvLl280XJTMM4ndu7bPNhBLZUWb1HXb0G4ah3A60afI3QHegVcxv1\r\n1HfI8CJxXBQ8hqUX97RLn87arj9soXPQ1S+mIAsbMiKOxRAScnyz9jzeOu5l\r\nGY+oBlZTo0yhRCsfxDLoWQZIAW5tbHmefchPhgT2EA5yvdeQm2gKmvlsOyXJ\r\nR7FHmWzJIWTOaVjU1qwHSfqGwI/u2klf/KY=\r\n=0xo3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1edf72197ddaf5b6318f71205888f8ae695e9b29","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.8647092f7.0","@material/base":"15.0.0-canary.8647092f7.0","@material/shape":"15.0.0-canary.8647092f7.0","@material/theme":"15.0.0-canary.8647092f7.0","@material/ripple":"15.0.0-canary.8647092f7.0","@material/animation":"15.0.0-canary.8647092f7.0","@material/elevation":"15.0.0-canary.8647092f7.0","@material/typography":"15.0.0-canary.8647092f7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.8647092f7.0_1657226347546_0.0019041068899718905","host":"s3://npm-registry-packages"}},"15.0.0-canary.02ecd4d85.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.02ecd4d85.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.02ecd4d85.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e06b2c0ad6de5d7e30ca5eb04a6784c62046f8cd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.02ecd4d85.0.tgz","fileCount":44,"integrity":"sha512-t/dOfq9WkIwxRaSsqzpKrkUSkmldLs6x7+R8OSgsBBVsQNxwIHImOYKo3QbWGTHjWyqc0TCAWjLo+HNXb/yC7w==","signatures":[{"sig":"MEYCIQCN2MgAd/xnqYy/wtbzMH0ucrTIF0pZc2J8T0z2EOGH5gIhAIYCzNJehomjME28vnE+9loRbiePq/+ZwM9qoC/ui+Nb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizFJSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrXdQ/9FX5gqELTQoNyxapRXojxcVx0pXq+orxe0ehrSDPY+PTs3QCe\r\nYR2IBVi/MYYGCB+fdYiXBSLrOWvHgx0lo8/ETvyV+J6WFYZOc17xxtbIMgav\r\niWxFLsj6/3VOSSGioxbSfDzIPIn8Ss7akTciyC5E1xhdXaVgXuAPI8xmlNp2\r\nIe9JooaBrW1yg0jyLr7U+9RDZYaOM/5pM98A7pydb8yAdixdxyCFtmpR2Q3q\r\nt9PdoNkvgFV0ZE0DiB1c50L4Qgxaysk+O761Driu9w3I+D9/2edIC6UPSWqM\r\nBwHo2f7nlNhPH1xYaspwKm/PA2tBkGhVux90Nb+KFj9QAAlTQ27lmW62gRsD\r\nx+jEskTfnghqNbizUqePB8Cv4vTLxm/H7tdyzI8DT3OwXSUl4PMwYQVV1Pee\r\nAgtn8/13JWotDj3dBvuZv97VM5C9WonZ4PDl2gAUdvI5fNXgyy2vLfWrRyIj\r\n8AJaGWSN3KmEI+Cw3HZcDgE11wCH/vMxawIgyoTiDAId26xYVHAP1eIfsO2g\r\nnPPC8FdX+xt3/BnThMw64+pfw/DoRweUO+ELhDKoaE8bWqDrT/OyKUH3sVOG\r\ncPAwq27rG2wG0an8ThORUcAZWhp5lzakpNFQsxCoSwH/s67FXhSKuzTksnRQ\r\nWsfvUnygyyLD9sLopeMn7yqZ9izF9hfBUCE=\r\n=EHNu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e9bd9b1837b6df66731c0fc9da61877874518d2c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.19.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.19.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.02ecd4d85.0","@material/base":"15.0.0-canary.02ecd4d85.0","@material/shape":"15.0.0-canary.02ecd4d85.0","@material/theme":"15.0.0-canary.02ecd4d85.0","@material/ripple":"15.0.0-canary.02ecd4d85.0","@material/animation":"15.0.0-canary.02ecd4d85.0","@material/elevation":"15.0.0-canary.02ecd4d85.0","@material/typography":"15.0.0-canary.02ecd4d85.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.02ecd4d85.0_1657557586524_0.7953885112620063","host":"s3://npm-registry-packages"}},"15.0.0-canary.63d3a146e.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.63d3a146e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.63d3a146e.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"800f4d2fd5301aa227484af8448836c804bfeb5a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.63d3a146e.0.tgz","fileCount":44,"integrity":"sha512-ulSoImE7agPRsMjPdgaqMochdJBxfZqmOGB+1qALBtpuWNo5FGQqRnHW/1Sy/poSFB4evDGkndDYegRCCjMwng==","signatures":[{"sig":"MEUCIQCCwqVB0DEYCGvfJz6W3RyRcSToA4cOeqqeagnTLOQGGwIgKvsTfZhNd13J2q8RJ8NbevOLr79WAsYRUUWeYUjQBDI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizVz8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr2UQ/+JS8tXRdoJ3u8eKiM81ykXm1Pq3Q2GPXIM4MaZH1qkuS3yX+v\r\n6so/1bcNzOi1u6Zmv/pujxa+AMQSxtH6pP0gpz4YPnBVD6zqErqxQ2JEVnLw\r\npKxeBeCKhgr3LnjYVhmJyunKuFtccMdVZU87hcsGW013WTjqPTSIDe0RmI3v\r\n0bFFsWCL/uJlH6D5pIwtco7KeV/7oJwFVD5VyLcybuVwZp5tmDUhD8+aVu+D\r\nAxaBKyfGDzQ0J4q9ynEJHfyGwkaJNxKUtyhMw3obZfd/vzChD2RCOiiiDNmF\r\ndUi+Fo13EsLov5kwB3kM9Po8ODE8+VioRnfzKIy97wo+lK85LseJF1hl0rux\r\nqLTlIcqp1Q74ybWODot201/wGb9bi8HRqUAasgyuhgXjGI5Jx3eGVeWoZdb8\r\nZfHVtUQTjlR5OjjrqFC3vSXkUWcBdSP8mE+RJz45YVjU4bFPXMX+S2xb96Zu\r\nH2M0cdM9xNCIzUi9in8RyHcnUHqphh+n7yri7I1mSfrzTr6qieg2xA5Obsns\r\nd9HBaBkEZ5ikeBjiWoSNgCe9+jyMggmVPhPFvTnPDyXmbLQXICUGf0qfSHDe\r\nYqmMYcJwfofbiFmy1WPcYIfz/z3+bNI4szxDkpGtI7g/HmBfaNcGH/Z8fTHA\r\nuJ/8UDj7Uw5fkuCSge7LPQkAa+ZazH+VGTI=\r\n=Z9Ta\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"593f32d351d8703bd0422f65b3651e55f97fd31d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.63d3a146e.0","@material/base":"15.0.0-canary.63d3a146e.0","@material/shape":"15.0.0-canary.63d3a146e.0","@material/theme":"15.0.0-canary.63d3a146e.0","@material/ripple":"15.0.0-canary.63d3a146e.0","@material/animation":"15.0.0-canary.63d3a146e.0","@material/elevation":"15.0.0-canary.63d3a146e.0","@material/typography":"15.0.0-canary.63d3a146e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.63d3a146e.0_1657625852295_0.5010574183946439","host":"s3://npm-registry-packages"}},"15.0.0-canary.88db01990.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.88db01990.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.88db01990.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c6607c8d6c21db9e0fe3e34d5550623b852b67b7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.88db01990.0.tgz","fileCount":44,"integrity":"sha512-i+xLmHHK52cGHfgaw8nTFHEeTQHCg3v9ZgJP8DQ+4eKTRi6LOFc0L3yDRcDS6c5P3xDxtebVyDr3ryQhm+HHRA==","signatures":[{"sig":"MEUCIQCBle7oZRLOAy1MIowtDw0Wk4VtAJGXxNCQxIaf3Ky5zQIgHLJT5VRW7A60NiC1F2Xz7g9SKM3fQZ/e+jOe8JG7ZPc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizV2wACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/1A/+L88c5N6Z8acw26l8V/6Zufl2dN/Y6AQWzkkzqq0FsF5WzxNh\r\nhoDzrzbE/6Piki0hK2OSrzvjMc41OTcTM9HK0Qm/+hHOARE8g/WmA33WiPNS\r\n8ldHYmvouPbmJ62zxzLGfCAGkIgQHKeFvFbjQ76TROitJt9Xna4R+iL0sI10\r\nPchQbwTOYr6W93Yr8cynHLM7lOnCf+aflpCNGD2s9lSsk80kYYH5wP69LmzP\r\ngv6ZCHfepBWU8dHYVeYEOalYQorVOsoGauV7Yj8XmZTeqoawGqdEsdHY+gg/\r\n/A24TaAWzVohRv/1MivY1qUVWsD+XhThwr2meKVhYYJJ9q9vytVxqkUnW9RC\r\n7JP38yr9LWRzdjNYa0ruRreupTjf97nM0hwmXTNWkIg9k3fLtdvnya0wyoeP\r\ndFD/rbZYN9dTUCe8y2tki5x0XLHYHXE4ZnzIMMVUjFpZfOyby4bRagfIyxaQ\r\ncXMZENkEHmHrT3xb/9SBC2PheXt7ZBX5i+9cw+0bCTjsJWGObtfGR3JKah3I\r\nXdv1wzGdzsQgvX2dQkGDV+Pt0wxSYihEeWvcLJXS8dd1qEugeBjVYhKW9Hmi\r\nZ4S3KFVPqCcL6ZwgCxus7S1XGjGohvfOd9ZAVCCvA0XACzdEkQ6xYq54ZKcE\r\n2hLWTk4alNtXAVwdW8LW70CkwNuW6Wd5epQ=\r\n=YgtR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a2570f15e2572775da6e1894e5310c107a703ea4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.88db01990.0","@material/base":"15.0.0-canary.88db01990.0","@material/shape":"15.0.0-canary.88db01990.0","@material/theme":"15.0.0-canary.88db01990.0","@material/ripple":"15.0.0-canary.88db01990.0","@material/animation":"15.0.0-canary.88db01990.0","@material/elevation":"15.0.0-canary.88db01990.0","@material/typography":"15.0.0-canary.88db01990.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.88db01990.0_1657626032144_0.27015282256791306","host":"s3://npm-registry-packages"}},"15.0.0-canary.6432d8fd7.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.6432d8fd7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.6432d8fd7.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c8d155b336d1a88ba1cea7175cd213d088ae7288","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.6432d8fd7.0.tgz","fileCount":44,"integrity":"sha512-9gBWwwWNI80bU+/Ixcw3orIBatl/gXXvOVSQUXBUFOYcrspZ58h2BrXrXXmI18NYvTEcJ3HdVRL8Nz+VI1JXyQ==","signatures":[{"sig":"MEYCIQCCfCLvshsLrBZiwhaCkXX3fJxzjr6NcJjG7jfIRhjVMgIhALsW1rhG2QJ4uxEupSHjRHg45C4uM4ds1Cbre2fzFiQY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiz8XVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1ew//SqlGAgGBc4wZU4q55yzu3enJOzF+kT1RmETLDZEkI6K+RbkL\r\n+V3GGZQXMEOLE3vGwLhgmrGIXVSJr4B/q3MpmcIvqPsgRVITSlxDLulUE5Pn\r\nxOUQzSpB/65nX1HXPTUIUM92sC+h9FYN8yE/uPpquTvAh/ShlmzdIZKi9b3/\r\nG3jBhlEv47MqOTUD4+3XKZTZSlwUGz64mFkxhhVtMjwdnVYy91W6LZwEv4ow\r\n7qdKY5d7VMEZbhnNaWdGUcrWDfFV6DdHTvhOSU2O+p44oJQbY0o3arn5dC76\r\nQUk5OQ5GkoaJJTyMPTfxeJ/Xvrr4yyw/Ds7jPJvU82vr7SZkfsltFAHusRjU\r\nQHebRzvt/eIvs69TZUOVwChAFQDdUvwmQWF+XZb9jtszy4ij4CkOO8j48e89\r\nziSu5a72D2Dg3ZdNRDYNQnBjRlKERv+u5YJ23zl4RCAdn1repM2tu4YUePVw\r\nk0owIaH6anG37pECHkw86kSJerKk6hpMHQ8lrC9ih/zecHfLOW0x51Mbqc8+\r\n6s03mliom61DDa9WOybyOwiQ3avNTuXkgggg/PdRPcV4p6MOdvCqtq63jX3k\r\nOk0EuxyCelKq7hre3IKuPmHrK2X60tHX05wXnAVlTZJdPkUwgMyxxzUv54ub\r\nKdbJredQW9rOXyYOAiNUuFtZiJ7l9M0J/b4=\r\n=bTeQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"307aa53d6ea873bb978456b538f97f9922496798","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.6432d8fd7.0","@material/base":"15.0.0-canary.6432d8fd7.0","@material/shape":"15.0.0-canary.6432d8fd7.0","@material/theme":"15.0.0-canary.6432d8fd7.0","@material/ripple":"15.0.0-canary.6432d8fd7.0","@material/animation":"15.0.0-canary.6432d8fd7.0","@material/elevation":"15.0.0-canary.6432d8fd7.0","@material/typography":"15.0.0-canary.6432d8fd7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.6432d8fd7.0_1657783765717_0.6644454706981648","host":"s3://npm-registry-packages"}},"15.0.0-canary.085f9b25c.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.085f9b25c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.085f9b25c.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"336c9ab5dd1f37342af3f461d8226ea76bdfe4a4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.085f9b25c.0.tgz","fileCount":44,"integrity":"sha512-10cnoz0XPM/NZ/9bsEMnXKktqrPyinSviyXYeyDeLUP8HevDoJIdz+IJc+paZLOggUSnFpXpcm3TBAabGIL2CA==","signatures":[{"sig":"MEQCIG2yZUVgUeowh0oTJvQYiC3ZSJ0Ki2TKDvHyZ8kfEdI5AiBPozRdILqpnCfK3lwj6ZwcdbO0uCaJf7GkC56J4ZsY8w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0EXPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrcXA/5AJNjqkJHWuIGRSLhDSGMDh8J5DvyV0681Edfq/evy2iI5eYO\r\n4y2XjJe1AkHEwej5G9R6wMB19mTbmzopMmvp4yCojmzQQOMJT/EyndVUxZIZ\r\nHmNlA2WZ3XYuNg6imPbx7nu9MzkkB7KLLdL1dRpC6xFatmUeVHnvzpKf2w4j\r\nE6UjGWblIK9PoNET5tnfOIrpo5rpQVmYouDSd7mnV4c9DMM6J5tR5lE+3EY7\r\nGMybyT9jj21Ruc2vihqTouKjX5hhSuWZtjdZWp+r7oN+B+HYt/EzF+UDQB+a\r\nRQVhSX6UTeFw6lBm9cz7zHbNfAz9dQHbjZFBURUY5+YM0e2xgOCo7wb3hXlH\r\nPXFv3qGFKQ+1ttAXQTge086mvDQd+pIj/r+mAn1SFKg9wOJwsYSOD+cNesy5\r\ngWVOMnTL3UMt7nLuNwubFlzRDfzj0Tz+VJVWaM/7pGpAUSc3S2Bq7vFW2e2O\r\n+7VfEIydmzUefPMUqPuDAIevfJcxU+gZS75f4bYHjFMyS3eGAMwzyAgD/y5L\r\nnygJ/UT5bevq8s8dlIUHEnLsSGJGVX4eOFZ413spG2g+imKRr6etYrw+BfSO\r\ne+p/Z6GnHp5tXYltcqOpvCvmAR52OnbzZnCBjFzD7s/TbGm2zONIqbJi3BZX\r\nlQQF/kkm9TO9wxKK+r6VU7v5TVHP9sKrmBs=\r\n=1QFm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"766a8d5f5fc7e4e022835f16c6ecdab8d2ccf071","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.085f9b25c.0","@material/base":"15.0.0-canary.085f9b25c.0","@material/shape":"15.0.0-canary.085f9b25c.0","@material/theme":"15.0.0-canary.085f9b25c.0","@material/ripple":"15.0.0-canary.085f9b25c.0","@material/animation":"15.0.0-canary.085f9b25c.0","@material/elevation":"15.0.0-canary.085f9b25c.0","@material/typography":"15.0.0-canary.085f9b25c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.085f9b25c.0_1657816527183_0.1886639282843059","host":"s3://npm-registry-packages"}},"15.0.0-canary.39f9424b3.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.39f9424b3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.39f9424b3.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d7082a796c147bc78e736166fc956b5866dc7542","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.39f9424b3.0.tgz","fileCount":44,"integrity":"sha512-Rrv+t+R8x0XLvGolFnteLzkcTB+1uOLlvFpydu/SdUvLrEyc8FTjKuw3+UPrH0moIalMm735THQz3I3v35L74g==","signatures":[{"sig":"MEUCIBJh0l7JIgeXDCa3GbfxI2EUFzfDgQ2OAB/pqXE5HHNiAiEAuB+A250wwEB/m1Fl7iWrb3CTNzvAxOiCxhyv8ncUwRc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0EzoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqlKhAAhqOsCPlUKC1OajNhP5YefJ9ZzrE3q/ceT7gFsz9YoPjLwTK3\r\njzvRzxbcT7G5YPGYLJGMEAVSN2KKAUqoz6X+sLRr3wTK/ZsURKt4L5NJaqwJ\r\nzo9iu6ex/g5dzBNYV/Opa8eCANHQav6HO0WNjwUT2jIEAdBpcljm0/isogCK\r\ner80bFZ9ujsX8fsY5jseX2Tq3/WP2VKlPjbKMKPLyO1u3Jkkqe7Vhm8rB74P\r\nxFqjDRvJwKH5sanX5D74noQWWm473DPnhRWMyXypXnJt288Pk1rGl42cIvgJ\r\nbV4cQmibJm5bM92f78kmEH+HtYZYDR2DBU5RCFYQEkhoG88ZTn0IyeS2MOpY\r\nCco9w65iXgM1OMg1T1/kvtC9PCXw38+AHkjbmiVwzO0dPZxNMRRDx8RVabMj\r\ntnCY+MoaZFtv1rUILPPdJhR9/HA82g7baleHUHGaCu9+LbPDUxVOm5+n3zw5\r\nrtebEo/cqAGq9ZY/S0MW1jvIux7sS8PusODoFw5hN1bYwiMix5PnhIVy79mg\r\nn80FJLCPJhV5ieqBJ7giGFYU9BLqxDUEEadobe7alqDW+Z56NH+P1c8bvKLp\r\nL95XGHRwc5sGVhBFBKgD0W6fJo20FM3fTYESelFB39xbPbNUPHKQrDsV3JPo\r\nxI167C9tQqimrKJQx5KqiYkGfm+Pqw91rpM=\r\n=Hd3a\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"62e726843fd90c6139d8ade27db8da6ded6e1d77","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.39f9424b3.0","@material/base":"15.0.0-canary.39f9424b3.0","@material/shape":"15.0.0-canary.39f9424b3.0","@material/theme":"15.0.0-canary.39f9424b3.0","@material/ripple":"15.0.0-canary.39f9424b3.0","@material/animation":"15.0.0-canary.39f9424b3.0","@material/elevation":"15.0.0-canary.39f9424b3.0","@material/typography":"15.0.0-canary.39f9424b3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.39f9424b3.0_1657818344532_0.7785926927963778","host":"s3://npm-registry-packages"}},"15.0.0-canary.ae9fce587.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.ae9fce587.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.ae9fce587.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8eff88656f2a75b42e83e6bfd30aee8eb96aeb17","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.ae9fce587.0.tgz","fileCount":44,"integrity":"sha512-N6e02SdIHh4wA6BBwGxV+AWlOno+l0xppXOW4FVWLKmbgvDe2C8zhjOh833diCdtQuLXUONxnAfkcsfVsXejkA==","signatures":[{"sig":"MEQCIAlMZWVB4e6tnN9JdtLu54lOOjZHN3VRwFnvp2QUQQ37AiBilLX85gnw6i/KwbZcxROqFR61l+TK14PWqov2rEQFlg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0FukACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmonmA//cX4vCujJsEUHX1sAHfqTbsP6V4kIp3RFjGiUN7k1CcJkqXuu\r\n/UMoR1fp+mLo74q1889SW/nn+McMoAh0ZJ+Noh80cxeWNrtxxijnvGiVD/Y0\r\n/h0c2v+tCSldbSJu3Clg4KGQZ8rcmFRch6kew26JsCYIuOmji11fC0qaPDQY\r\nfjsJBLLNk6RpmWo9D5cZT9SatSZ25dHNOKR0GOFq87pjoW+cbspNtBSrNeRg\r\nQ3fjQ84Lg8pjsxyLmn9fZS0swLRy7KjUSPMGZJiCnsjW3AO+5UmJdIFnvxVF\r\ntRBMuVlHS94Tc4IO8Wv4fonrT3f+YF3B+dr/J3q93l+vJmDOg26dZaQF82eX\r\nZkfPXTt9Uyl9oIhp6ZKJqKYJG1HR6laItJFJM0gFhqM0M32rF/XbO5DXI45A\r\n73BEe4bMslmFfriUW5k4+i0k7kCURy5czqcGFNr0Z9oMHkDU+tZDjJqIDSCG\r\nU0Xa5PgpRYKb/WpOm2aRvz89fyPV+H5NueB8fIa9vjA+y6IIMdICK6NZGl8s\r\n7yC2PIdpw4Utu60uGeVZp3z9bhF9UmyUoJDPi7hIgr+u74+O192sFHixm0dW\r\n31JcL/9o2WYm4bEiiDjuHekUFTdDhQqtVZdAMpUV7U80OtQ57sdsxLueoF31\r\n6aohOZKsip25O2J9z8hV47HmIyVdaJmWruY=\r\n=f16h\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2d55d2ded8f3ebf66d72baffd67452a8de349b3b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.ae9fce587.0","@material/base":"15.0.0-canary.ae9fce587.0","@material/shape":"15.0.0-canary.ae9fce587.0","@material/theme":"15.0.0-canary.ae9fce587.0","@material/ripple":"15.0.0-canary.ae9fce587.0","@material/animation":"15.0.0-canary.ae9fce587.0","@material/elevation":"15.0.0-canary.ae9fce587.0","@material/typography":"15.0.0-canary.ae9fce587.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.ae9fce587.0_1657822115845_0.3629103289893525","host":"s3://npm-registry-packages"}},"15.0.0-canary.1ebddc343.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.1ebddc343.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.1ebddc343.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f2531036fd72ab0b872e0523fef997bc59e15662","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.1ebddc343.0.tgz","fileCount":44,"integrity":"sha512-JYLOUoTcciS/xAXuuiXsQkJJeFh92Dtl5zStdXzZHklCwcAAxAns4gJh6Q8tWFOK+eJuPna1vZ2ai+nDv0MkbA==","signatures":[{"sig":"MEUCIQCPkr2+xoRYcyO/Br1spgXw64u7NejTZPXDNbxfvMLD3AIgMeV1Ed2inKiCtcBfArEiFIQ7m5Hten34kCMwZ5mAZZA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0SotACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpn8A//TWFFzwIy/ARwdE/Ir8JQAH3huo8Qu6dLfWxjJoowng+4E5lp\r\nOj/sfMtV0c2xqXKWHAxRH8HSz8lAyXe7JFKkD2/NDrn+Fm8w/LvCFLiaH/jF\r\nbciIy6aAUko1dbSSD37NYqdPdx9lVWFnrKJrvHiARkdtDw2Y08O2nFOYPt8L\r\n3EsqxrOtSCMAVql1tsadgWfR+t6QFCR9BeB/afkC7z6Rkwxf7w03zo9mRYJR\r\nTO6QRkLFlLjpnMdjxFfm89CsRh9oqswpiaYlAkTu5vBPho8q53iaZnD7sMQd\r\n0AGLomI8Oq3JKgB1zPPcYwEwhWOU6oqCzJ96nZO8ng2/QmiWVQq/WRnp6hDw\r\nzw7JZUyZoFO5DnnnS/yBEbWDDFdNwL5kUu0Oldz0qiHv3OcCLNv1KbIFNdWR\r\nUFueNSBYk5D7buAP4xSbFd5eXWz++I1VlPxL9mLyogGBLXi0Dr04Csif+K3P\r\nuNelMzQ553UvRlfUE/5ebaqzlRiu7rOT4mSUU1c32vShjIHpPLJbetkSjWjt\r\nJjaNePg6HpKBzkQSaM251NUQ0ekaVpPpiJRcZzZmQ2JgUc9ASDeV4epnVopE\r\nAu231zFlcbbG5njhNEI7GxgSB1+zqSavcMIQ5sLv0PeHCe6TqXjaZ1BVXKJb\r\nfdce1mZm5ffcU5nLMXomagYu5B6ZptLcik0=\r\n=YJyt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2ec31cdb5e8e1a849368a3f352b213919bec43df","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.1ebddc343.0","@material/base":"15.0.0-canary.1ebddc343.0","@material/shape":"15.0.0-canary.1ebddc343.0","@material/theme":"15.0.0-canary.1ebddc343.0","@material/ripple":"15.0.0-canary.1ebddc343.0","@material/animation":"15.0.0-canary.1ebddc343.0","@material/elevation":"15.0.0-canary.1ebddc343.0","@material/typography":"15.0.0-canary.1ebddc343.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.1ebddc343.0_1657874989398_0.12834147593582368","host":"s3://npm-registry-packages"}},"15.0.0-canary.c5018840c.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.c5018840c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.c5018840c.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a6bfad6507de419efe43a7c871da6b703124e461","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.c5018840c.0.tgz","fileCount":44,"integrity":"sha512-ybvb45by5htWw7eSOeVXr/ywj2QWE34F4gaGzPla84J5WsfpO84Plu4DTWZlZWFOjc+ZW/RopFJBtkYqSwal5Q==","signatures":[{"sig":"MEQCIFcRBPdUjrs9jcyEk7uNt1BiLjfB1DFQsrBgPTrhkwXQAiBHwtiGYMEseNEZtn1sXU7upJ3AN5ehf5zk4GrcDS/YGA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1StKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq68Q/9F8DuLsHlxl0ffAYw7GdUgb7G9Oz7j5lNi2jpT+iPSow19R7e\r\nHyr13sxcho7lizk4lPaXC1FGF2E8nX9RqajlexwkuRftHUQv5ATr8eEjb6q2\r\njcPtRWy3kpECx/CIlaWsP5aoyrI8fuc0V8hMb+qoJYjwLXMZ/+7p4q3Ogxw2\r\nni2Pxl2DnAr1Lwc+nyY5DM6qEKc4EaGf9rQWsizn2gIaH4p+9l8Miigq2K9+\r\nnuX/gYHA+wb/2Ec6MRbBkBD+pFZD1xnpVA+8kxmukrTsKb78XyRJX+qWCkvd\r\nOUlKIR6SE0mz06aH0Ipx4DA+djToLTiFlLXUi0SU9EeKop/u/X2wIF0le6kx\r\nuAa77JaggLujq4V/nFjISbxwX3UBced3ZGz5XA1CzfLgxaG1Q/ptUqlJhN/C\r\nhfWWC4iD+f0YR6IzbXhxRLsvVKe57VZ1nnG9Q5Lvzpxp9mjLYfE80YmSKggp\r\nDSIJ0mcDvelsEVfFhmeNOLozSgks1WNLG5PS5SgbMcIwZPrTPiINK4gg4u6Y\r\nl9NdDVYFfjS4EK5nylov1F1N5Je9HRKTG4Q35AdL8NTTPlk9EYnm3VelKWlQ\r\n9KZ9SWK/ZiYHmpltTRLYF27L0lnKpdyyWC5kaDyzAcNuKqZjZTvCfIPnKxGa\r\n2J3ICEtrs+GvWl/6T03EXnv5CO16huQYfxw=\r\n=YeR8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c86de383c50b7d72b8c5cf908c5fdf3e6efa94c4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.c5018840c.0","@material/base":"15.0.0-canary.c5018840c.0","@material/shape":"15.0.0-canary.c5018840c.0","@material/theme":"15.0.0-canary.c5018840c.0","@material/ripple":"15.0.0-canary.c5018840c.0","@material/animation":"15.0.0-canary.c5018840c.0","@material/elevation":"15.0.0-canary.c5018840c.0","@material/typography":"15.0.0-canary.c5018840c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.c5018840c.0_1658137418708_0.03943869838649516","host":"s3://npm-registry-packages"}},"15.0.0-canary.551b40d18.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.551b40d18.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.551b40d18.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5b3ded646e8ff71ef3c1590809db70b4328ce648","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.551b40d18.0.tgz","fileCount":44,"integrity":"sha512-0zqnuPKkN6ggPXIj0tmYk735tPXMvMXdvKRSmt8GnZA1V660Fqmo/V9SPw2j10NpYAEKw/QEfxFksUDWc8L49w==","signatures":[{"sig":"MEUCIGCnsBzLdnpaZp1KgXCxVHQFsA7vdppX7Vq8h+PAB6KiAiEAy3pxs9+52c+FQf3l3J8GFV0iXOywBoFW1tCjulfG3Pg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1S99ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqR8hAAkcMk5DRQUbBt+NcxoHROH4eXpS1Ex+CRK9bOIcu6Pf3Xg+h9\r\n6tmI/7u42pRXktohsOcuOBoG2Zetu4npsdFKvSMvWc3yL+1a8ZupZqUykL4B\r\nj7U8+49VELIiLgOCl+IleUyaH5hz5MgEMyABEwC6dzWOHFCf3IHJcRR4kLPq\r\nVc2ay7iv1zM1xtohsOh3/T2nbltRv5TkGDhMr5Cpy3HvGJ2ZaYd7tggcfqVQ\r\nUYa5+R3ErBpwBgGHkrQ1ZgSqTuI6faZrVi5G+Rq8GED0gJ9ppJOR+4I8UGDe\r\noBlDlpih20CCrwpPw4FQ4+whywIutU48Cr+Z1w8vQSMsMQM5MwgGeA0dAIF0\r\nh3ct4CsiZPbcCPHo78K98RsoE4phBtXzH0XO9Fwm8FjrySgtKAjx8iheRVrl\r\neSb7rSJY+VrQXmgU1sPcWa/YfRXng6UJ3WOts1rCEAns2lT3Stc9IFv0O0hC\r\nb27ZGRF9XA/ZVvvJ2EuxrNOXoQ/0h20ikf9pY5BkFhLwk9JfuPUvla/VZIY3\r\nXxKnjiY6LefbUIufedGhCyZjdBEJPUAti7TfiMD8x3g9aylL+SOIXyF16r0Y\r\ny4KG8SRF9whR8bcxD/Hh6d9Yb07MQqPG5VOlPfCvBIE+zaQRr7t+dR4Yjlw2\r\npKJNnXitTwn0ba4VNMk4H1spq+LSkHw04fs=\r\n=DuFe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3e9aa3499438031c9229cf2a18a1a3672620853c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.551b40d18.0","@material/base":"15.0.0-canary.551b40d18.0","@material/shape":"15.0.0-canary.551b40d18.0","@material/theme":"15.0.0-canary.551b40d18.0","@material/ripple":"15.0.0-canary.551b40d18.0","@material/animation":"15.0.0-canary.551b40d18.0","@material/elevation":"15.0.0-canary.551b40d18.0","@material/typography":"15.0.0-canary.551b40d18.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.551b40d18.0_1658138493167_0.8358597338904781","host":"s3://npm-registry-packages"}},"15.0.0-canary.cf9f12371.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.cf9f12371.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.cf9f12371.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"470a7dd53d354b8f68775d48447dc2a8799eefda","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.cf9f12371.0.tgz","fileCount":44,"integrity":"sha512-jmhSwbxHT1or4lLq/HCN7kQgXydVpdb3C7/VPjyUbdXDTOjELQUVriObM76sL7OvaFA6JNA0Pb8h67A6Kxn3IQ==","signatures":[{"sig":"MEYCIQDmnhpGuqA89+gzxpXEXHG/62o2pKfr1d7mv2XY1hmw/QIhAITXhNVf15wwcl41VnA9rfAXFr8UQB7EUTP/SNQRQNIp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1TBsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr9MQ//cl9p4pp5Q04ymoarw/8vVadJRZCYcZn064yHv17/ly9zOyKQ\r\nu7YwVZ1k1Q4Z7xJAafkdCHH55fuH4NC5DvFPnBL7zoexyliBTamZIbm09zKk\r\n9yeQfNlV9TQn0PgWsXxj0mDMHz23TL4+EBktfIPT1iqlDCu50qU9XwO7qWqW\r\nfSxmYtWrNV29G4NSMhAgjOp201mf2J3dLH0H7rPMY9uFPXZOcvtuR1H4l44f\r\nz8MJgH2f3DVDynL/ByFJWUaSQxuViQ2Prhq2vGHAcMTcGEVTFIxdwZSzLKFl\r\ndzwzH6+tBFuNG6zw/F9XnclMyyeqMklPxdjpXu6TNkHs9N6hae3Qd2aAIA1a\r\nJcocYb1IaG+oPPMQMEEGfFTO6hw+HiQHQbZkDxSjp92EEy5FIxavbe9HTBOT\r\nGSVidcs7vfHK4c5ed4e0wtKgc0yj7WkzXyTa6L6v6s0f2vFJzKGQ9KflLWMG\r\nofPD6GTrCGAvDEN0mVcYAgqGb5YJtyVFUPG9kYkKORhDvd1a04K5Uqe23Hmx\r\nMxhVmb/72p5ycp5p2CvlO198F5I7aqzhml+5mXWiTUnT29nyKe8sAgsecTNG\r\ncD+kvLJW1M11tEY8axwkMNRxjYxBYOq2kJILBE938AefXbHHANLL/li3VZ4m\r\n5azB9SPOD8FHHXVxbmwMlJsbog9WQHFBurg=\r\n=emME\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1817e344a80081e042f37248beeeb96228402878","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.cf9f12371.0","@material/base":"15.0.0-canary.cf9f12371.0","@material/shape":"15.0.0-canary.cf9f12371.0","@material/theme":"15.0.0-canary.cf9f12371.0","@material/ripple":"15.0.0-canary.cf9f12371.0","@material/animation":"15.0.0-canary.cf9f12371.0","@material/elevation":"15.0.0-canary.cf9f12371.0","@material/typography":"15.0.0-canary.cf9f12371.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.cf9f12371.0_1658138732413_0.134942952142467","host":"s3://npm-registry-packages"}},"15.0.0-canary.2797ff8b6.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.2797ff8b6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.2797ff8b6.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ec33f2f56e3f9c3e2fb95294471eaaa2faeb0ceb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.2797ff8b6.0.tgz","fileCount":44,"integrity":"sha512-MVChVwK4tU/DXLJQGw/MAAr9MBMLX448ybLc/HpKnBpOrMCisfe8QrE1sgpm7QP8bIranXPT2kw+2evPh8Z3WA==","signatures":[{"sig":"MEQCIGoYuzjbwv5PT4AiZERiPvoAQJa5FQTo/tsc10uj7PYFAiBJpCwMlB94noiUK5T1wxLYPxckv8oznWVAJO1EUs99bw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1fnGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoXtw/6Ar+oedOkNbD0NJXCcoXohEynlxCI5QNfKC/7f/MGeYF6nCnd\r\nW/xKIS2s8VDF2NkYzPC9x2I+Z1A/ZiTBU0YdjEKbY6f6uP409bUZv7BZ5T3A\r\nwZVO/gQT1crzANty0MBWG9JsY3G1mDMwmQimnKDPEdreAB07OOl4FXwdiXE4\r\nesJADNzEHFhbmTY2qsYoEokPThRK7IAmXagiFA6qhxTBw+rBgLFud49QbIi+\r\nsVedHdBiHoX/kuQr6KPH3AyzegLKrrkbjh3PV6CuH+4eEUyAJjeFvF+6Sfg3\r\naZTrDbNKWJwn/gyM9cnapESyKgGtGeQ0BSGx60k+qI5QAArvvPZNqWgy5XYw\r\nEXyRWmezMeCmrhox3Y000BPY21mbrRDmT8LMdZerFDE77xZK+c35Y1zJCVoi\r\nvpVrpuPixRkR6KpzcteeYDmxIyX43lVu2mdhbSgwVgfCrYXyuWL6Evh2Q90q\r\nm/q1KNn6YQF7Qu9cOM+g71ciFlzuhoQ/DwYnm8/pn1RImEQafF7tD90gw/CL\r\nKSEudfegB0kA5NMjaN+y1Fw/6e7nLeQV9Y9rv82bMga2eTMb5FZXQ6txMHxE\r\n8pEXsB9zW4ehIFHB86ycw0zjWkUVVc3yyLbtvozDThwuiu1yZJxceFRqIs0y\r\nh6TJuc0tD1FfITTb122P/5W9NWJ97IUndmc=\r\n=HsVs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2c89951e5e0cfca0b1dc61a4f30259b33cee139b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.2797ff8b6.0","@material/base":"15.0.0-canary.2797ff8b6.0","@material/shape":"15.0.0-canary.2797ff8b6.0","@material/theme":"15.0.0-canary.2797ff8b6.0","@material/ripple":"15.0.0-canary.2797ff8b6.0","@material/animation":"15.0.0-canary.2797ff8b6.0","@material/elevation":"15.0.0-canary.2797ff8b6.0","@material/typography":"15.0.0-canary.2797ff8b6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.2797ff8b6.0_1658190278395_0.8627589162986833","host":"s3://npm-registry-packages"}},"15.0.0-canary.110fafa17.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.110fafa17.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.110fafa17.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"38560c68a294c2abae0d9afe8886503903b41dc0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.110fafa17.0.tgz","fileCount":44,"integrity":"sha512-tUAGxp/7ReF6monZyE2ysVlwf4jfurSORnGrDebO0jYyW83IPZcDWDlgn0pfXLOqAMiQQXD+7nbzawzZFwf0Ig==","signatures":[{"sig":"MEQCIDHsQFGrcdRuYkng3BDjIV5+fHuwfi2sNzYfls2yoZZIAiBL606io8PTG3/iRiMus99QzrFFYG2P9M5dTAeI08W8eg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi17L+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKMQ/+OUey2IMvmRVEyq0Bxr98q04hxd+OVvmg3wCBTfX/TRB2qbmA\r\n6sNyaD6qLxzdH5qAs8lpTzcurvcI2AdM6E8XJlurccU+dtEySl0m2vldVySJ\r\nNkxSS+st5bJNFrkVIYT6q97eBcsMUVAA97KZnXktfQCrVxQRkzUxdIJZJEEc\r\nVtbduxptfQjHdQzrSW5RwJmMDf3Gna9/u3wxnxnanAD8+2Si//B8wbgADbHV\r\nmLv61/HpWxzDKbxh6btjjY4CduoVzipCvo4ReJkHirxQuPLV7Rndi9vx2NpL\r\njIbyXAFAmCCVRzgTO7Wrt2HaNEfvzirZypAHYKgCnKoz0BB7sbpGih+QFtgX\r\nLAFaMNxfhUfKNp9UK0cJPdzEMwnA+bx+TVJ9vcasX1EbPMUR3vq4pLqhcZd/\r\nJPK83i6qaV5uStaive26KKLU+WkREkAmvmP4OARGkj1NCHH/mHhzA5sZi3VP\r\nEqrr/XFpuTaVnm2TEavRK/C+O+FVwz6TEBFaI9OMtqtIGs3O7bQEPp/6RmvF\r\nC2j7idiOrfX5oxO+G0PAlKjeWH7Cj4CBICvOThk2mf3PN3aE8ZjjW+geFEfZ\r\n0lcdT2zg6rG3PZsbtw0yr6eyIho+b/KYfWafa9qVMzsCCgfK+kmGUmJpVgpq\r\n8ned4ohg9LtQglOcPh2Mq64w8/iJ82JuHwg=\r\n=LfKT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ccf0ed3e8eaadf1526fd10979e8c00e79b228f5f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.110fafa17.0","@material/base":"15.0.0-canary.110fafa17.0","@material/shape":"15.0.0-canary.110fafa17.0","@material/theme":"15.0.0-canary.110fafa17.0","@material/ripple":"15.0.0-canary.110fafa17.0","@material/animation":"15.0.0-canary.110fafa17.0","@material/elevation":"15.0.0-canary.110fafa17.0","@material/typography":"15.0.0-canary.110fafa17.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.110fafa17.0_1658303230376_0.788998430420196","host":"s3://npm-registry-packages"}},"15.0.0-canary.386ef1d2f.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.386ef1d2f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.386ef1d2f.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d2aa82fb3d35a75ee1ff25d25ee8bdf10c248e5a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.386ef1d2f.0.tgz","fileCount":44,"integrity":"sha512-F/sMCh33jhpg9/YEtrz8tfQ8Ebv/EIZeZ0tciBNN2GgSY2DqI5cCiDdAqw81lz/Pfw6GdrHrPWcbUcMvPqLmbg==","signatures":[{"sig":"MEQCIFdXYrrymLvsCawFUQqd6QmWZ7ngvRJwcQZEvwWyk2KQAiB7oTo/NaHW3kn/ty1VITdqiQG8LzJdCchPwBDwhlOzxw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2EdeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpGog//SZK7hvpLRGpMgzzroWulWcwt6Ds9aNCp7dpUlxxAzEwRa/HB\r\n5qLZfBW1LOe3OVHtOrpw00X+Xh/WSOXR8H3vVmOz8BRKquNjfg6mmqR+w71m\r\n9+HhkBksRLCeMhdtM66ztNTUee8I3MvoViUcLqhlgqeJzzpN7fHSomLOy2a6\r\nZwASltfaVMYNXNAVPNrrGVPb3t8IrsFd32kp2FfG9r/DPs/X3OLwbGwRKucR\r\nqJc0TcnZ3iUFzMBMx8haISHEzm8nQ6VBQc6N7p/G/wthgsUD6jlr3Rtidk8M\r\n2FmhrRBPHy/78QmnxzNktTzkH2O85cepm94WFgH3u51rYTzbOgXaVkYAHxu2\r\nc+baQpYqn0wLyG/M9bmfsrHWg5SjLpIiEr+8abObcOcOtbTJkL/cmcUh7e+V\r\nm3+2GmMtlO4BXTA4en9bSZL3fZbAGZmz3lfX/JHnEU2eOj18a0aCHRRDocM2\r\nBFKjePO6h1exsmw0J2WWOjf7WxoYTGuiOE9B0Ubfxr4lezkFkw19v6Z2pZzK\r\nHv1Ec1GjThCnnb2WG4duskFEaBpxU3K21auI18xMTQoLDOcFM2Gts4mT77HV\r\n9NQnkhtn3WZ0j2L+Cob/To4gkdODHwIxq4pV4VTJvdphZ58R+ssEcn4kC290\r\nJ5UdOLyuCHYb7fgZ4u1ehK65jQ3me1nfAR8=\r\n=GVu1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f81dc27b99348c90268023c46429639f145ca534","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.386ef1d2f.0","@material/base":"15.0.0-canary.386ef1d2f.0","@material/shape":"15.0.0-canary.386ef1d2f.0","@material/theme":"15.0.0-canary.386ef1d2f.0","@material/ripple":"15.0.0-canary.386ef1d2f.0","@material/animation":"15.0.0-canary.386ef1d2f.0","@material/elevation":"15.0.0-canary.386ef1d2f.0","@material/typography":"15.0.0-canary.386ef1d2f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.386ef1d2f.0_1658341213861_0.49454732930755063","host":"s3://npm-registry-packages"}},"15.0.0-canary.c3924efef.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.c3924efef.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.c3924efef.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"46582bffe63287340f0cb901ca05416fa125c57c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.c3924efef.0.tgz","fileCount":44,"integrity":"sha512-O7MY9P5tjS8j0+Tu60z79P490BWKYPoX2S4QyoOXA5Un306FUYlL465+MFDybKVFLoMyptCKy8Ar4Fr0WnZn1A==","signatures":[{"sig":"MEUCICq2YiSpvyYshZnNGQqaTLFpzA6DkaRMHQwnBsW4yjiuAiEAwt+RXWNRcfnSXteJZwNj9jEpuplQa0mQu8c8lKev0r8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2EmxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoMOQ//UFarkj6u5XF8OeT+xBdzuGDUEfJzr7MuHGWw0nbUyQEiqTq1\r\nyiVDYwJL9qjZq8PP2fgwqBDPTILeuLtmUsqYyOZ9Qn1Px8uBesVBtdQrhMbR\r\nBgsejWTeujC63Q6dmdZMAQw132+B/ucGsPuzekDnW7PKrSORj9GMyUIQhipy\r\nlFrrQcTGP8rYi8gzr5KWYIGHSWkjO2qaFoLTbc/XKGkntjv1FLe3cIZfaI2W\r\nmnY57Dts8Et4eNssr7kMkTpWkGOuWfQWMMda8gxsFLcqH6IuREb3p/VEe7de\r\nLtRuuY/ZI7gNPkc6qzpsB3ngGBVp8ho1U+QzhiPJNYAOobxOVVgNOu5qldKe\r\nFs8LOIZ7zncjVvEsvGq669WMJP3EgN90KiW5pPbtc41KE5UYe9XSG5P6uBTq\r\nhRMo5ez4dye0/VMILg5Uxq3+az/EV2NekRkBWKV13eG0cGyvfiEPsP+tKL0X\r\nr3EOV9q6OfHrBrn82YPSnFOSpbhV/118lS89ZSbNZn+R9AliGY8h3vZaIa1X\r\n6FR2Y4Gu5nLCQrgGRIHekRPcrMKccCqnXQVm7g1FPEs6F0BJO+aZnh0VmigK\r\nXLQefDSYtRlp/iIoDLcvLA70wYoTtIeyEtk+hh+LTzMLZUjXmpCsgci6ie4I\r\nINhx5DsJohbUlxwYTrD8nRxDW24cnFO4cEw=\r\n=Iyqx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f665d9454e06d217296aa1a2064c9c67d3fe2759","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.c3924efef.0","@material/base":"15.0.0-canary.c3924efef.0","@material/shape":"15.0.0-canary.c3924efef.0","@material/theme":"15.0.0-canary.c3924efef.0","@material/ripple":"15.0.0-canary.c3924efef.0","@material/animation":"15.0.0-canary.c3924efef.0","@material/elevation":"15.0.0-canary.c3924efef.0","@material/typography":"15.0.0-canary.c3924efef.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.c3924efef.0_1658341808762_0.20482436370461454","host":"s3://npm-registry-packages"}},"15.0.0-canary.cf5c5907c.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.cf5c5907c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.cf5c5907c.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f33dadf8138545e9f14263a64a4704ce55306e55","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.cf5c5907c.0.tgz","fileCount":44,"integrity":"sha512-J4DS4aAsPG6zJT4kW/WVo9ABWJe0Zr1dN3kqWLklMX7/vJHbrgbW2b+DWZQfCzlpx7H9afZuybWR19nP4zfYFQ==","signatures":[{"sig":"MEQCIQDveHTuvxQI3QMv4S0Ltt4aDf3fpjOF2z15iUrnIyY2ZwIfNs0nrnkhum5Ig/0K0pVVGr+p/wf84zFuj/aZnsTH9A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2HIIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqhxQ/9GdxP2Ynuo6WXwLl5u/tbvJdBC8zXWyekFlhb3bt7Gfc4zl5b\r\n1A+RmYMsvYJm76E+b+l4zbU1H3aA0dxD17HTOFrkhOG7YdTTTF09gLiQhUJC\r\n4U3HWoU4OcuBTaA/kCFT3TWmIX9ckVOAK3Ta8vWq8suJEbgxQv9QCwHa4rqf\r\nKH34aZkaN/f4LM4dPyRNm+OsmSR0CMenie8kxd5zzdyxIOPPuA/O6RnZKS0K\r\nKQht5LoOkOhINdyJd+j8v0Ebzi0+8llUVO4f6ntK88s6ESEamDul6R3WxqaN\r\nQBAT8VcQigoVWTOh4MokO2SLwK2dK1CzQJYjI8RWvJYRMjavCmX9EUNpXCMn\r\nMSHw0+fOkNJXPD1LkUf6BvtVrtX8qJHYy/tuBPIGcn3uVNhUR99dLlwewSYm\r\nJnajCWwe+ySednoWE5LL3UW4nPR5yrFBm0LvnWrUppaTZeVqZubDXjYinK0h\r\nfUBhAB3AaODunhyYnP/+SBAzj/Cgawv8ZDmqc5kp1aU/T6AReUEitt84zQaZ\r\nLm5r2DGakpoQtWIhekq0karBXC0+6bW3YSsH0hgj+HsvZcmwI9v1S2APnFEf\r\nJeOhqP2LNmjjungS/IrI7n+Ev+xmvZtiV3ZHEnCQKjxgygfax8sQ6lp/CFzN\r\n90hLgHEZOyKtY7k16hjmf1fVXXbzeIbmXLg=\r\n=YYi5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ff18947542e40ce8532c2ad78551ff4e74f9d647","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.cf5c5907c.0","@material/base":"15.0.0-canary.cf5c5907c.0","@material/shape":"15.0.0-canary.cf5c5907c.0","@material/theme":"15.0.0-canary.cf5c5907c.0","@material/ripple":"15.0.0-canary.cf5c5907c.0","@material/animation":"15.0.0-canary.cf5c5907c.0","@material/elevation":"15.0.0-canary.cf5c5907c.0","@material/typography":"15.0.0-canary.cf5c5907c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.cf5c5907c.0_1658352136408_0.5159227298187676","host":"s3://npm-registry-packages"}},"15.0.0-canary.0617e2319.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.0617e2319.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.0617e2319.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6ed2f6a366bdf75a22fac6a43f79ede869f7a2d5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.0617e2319.0.tgz","fileCount":44,"integrity":"sha512-yKSFJR4SapVssMwJuHUBO6VuQgcEUee/uFDm9e1AnSIkwSpNITtGiobva3iSj3W6drhs/yMNAz3F3tv1WHQD6g==","signatures":[{"sig":"MEUCIDVYiBJdMvvcWXwsUcBBG1x1Fyae9W7q7ApBdhJDxt07AiEAkejQuc1ByCBBXHi84gMmevnS0uMk7vJdDitJQ7KMHzI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2HZQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpvHA/+MFp5PQOYQ9uqR81wPA0LjgcFPKvKTQM1rHjWNcEtYIq5OET3\r\npxpVin33ot5UTFRFEk2GcsE6O+SYUFO8LVTc/HZvbP+n3SwLyte1ZIeX0YsI\r\nRXAsNswYG0SkS6G9vXnrPshvh1ZEFCC//in5dnEJUTL/8vX5rFgWmqQ7kAhu\r\n70TIg171ENs65Y9ciQtBPd4yvtO1K09WavPuM9j/BE1ChjRA7HG9Ay/X2O1f\r\nZrbxQ8teSDdxBQqdl19EqCxR1W/DlkMPBJLVv/XjqRoclJFIqDlaem/9X4Ha\r\nLPTElBW8tJS3PGVJwzuYzVd9H0KrYge7gBS+wKLn3HZM8Qfh0cOosbaaF28p\r\neYYyvnQtzm5/t+ckwNqsWg0A+5qcj7zBqToVCcMrKtSuQCuVg1wXHPBVk98s\r\nDrr/OxypWlTEw+Cvkzd4SY35q9pFGPOu09jOY4L4jqSbdjSlFbw6kCuxehJ8\r\nHCvh5qRLkhi4f9dMEg4lBgbVE9Aj/LgQ9ax/P/sIjsqt1umVFtxKsNhrlbDd\r\njIrgF/pzqgfYN8iqWB4yEfqWEZtmH73dx7bGbXd3CKbG6x3cdE7P7DuHr5Ow\r\nBw1FmNrRWVXQuBnBWu0XrjLSAQX8j5CjaSxXeLbxwcq8m88xnMkgTDorEQ16\r\nWOgdR5M3Xh304uvECEwrXNKIU3yr31z2SD0=\r\n=byWX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a4d6efed0d00cc69adede24744dc368da0b2c897","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.0617e2319.0","@material/base":"15.0.0-canary.0617e2319.0","@material/shape":"15.0.0-canary.0617e2319.0","@material/theme":"15.0.0-canary.0617e2319.0","@material/ripple":"15.0.0-canary.0617e2319.0","@material/animation":"15.0.0-canary.0617e2319.0","@material/elevation":"15.0.0-canary.0617e2319.0","@material/typography":"15.0.0-canary.0617e2319.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.0617e2319.0_1658353231856_0.7290619252849644","host":"s3://npm-registry-packages"}},"15.0.0-canary.a743b7967.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a743b7967.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a743b7967.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"965807342a16d15b15ffd074db63dbe0cfcf0294","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a743b7967.0.tgz","fileCount":44,"integrity":"sha512-EvJnDt69n7pGXSUpM0RgnZ6KyvtORmK6FnbHrlv24f4X0Q+nfTNV6MuQXPYfIMOja1iLtscM/rc04WxjiEdQKQ==","signatures":[{"sig":"MEQCIBhUV+zJ/9QveA55dCX3jkQKb9Zl6NtdiN4Est959FThAiA952/hudjAArzTix0Dprq1hUop+OzXrmoBi0GV3tY35A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2HpNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp0rg//Tb035ptmbSAsNBFDHNxaJ1B3u1WdHrYyWcZxGxhDiOfYmmoI\r\nZpCPWFOSm+ZYJ9cnTgKMRlA6EhOzmceoXXUPdLGlentIllU34Ht5+CUdk18i\r\nOze9c7uOLfVVv0YxPJSRdQFQNYi/lNTnmZ+w/sRd9MmSKKlUXNLMPLfYiP8Z\r\nidhLolROMDCLbNajnQMPlpunbfBNhmD5ZNDZhf9F3b4+1A0w1kDsRTPz66iH\r\nRZh8i92UhY+rTNPTbji6Mdz7AdA2sPiWuOrgvz8YSfibrPKiNNiMDfRz/6Dm\r\nBZmfUfl1xw2vwTvxlA50N9CCLZPvBHUSB+/eZxPzcep3XtlQxn6H1+hiB1Ft\r\npmPEVcmqZ9blvsAv5FNTIP2dDE2hDrNwxBoeqItxbKZi6PxwpLDf+L4RPiFd\r\n3hRHSlSbkhSxGCWVl6iVjOMxXnx+ULeE1mhkzshfXm7uJoSM9sMTCVr0g3pR\r\nWSkiyfVnT5T26H0ZwvZbPsti0IHQ+697TTrgY7ilXRpOcHAH2wyCf++RVR7R\r\nTpg19nA4vp3p9xTkJH8uFMWA1rJcvC3tzsp/DkeZYZhHKyDRyxOH4pbnNE6N\r\nrU+aQ47MXT+JsaW5G7erWLOY7l1h20jAIGqnpZAeeTqoWZMb6j6Fp1zxs77a\r\nYDTZwuk4to8P/7+NUc6cGmeh5ifnb3ORO+U=\r\n=cM6w\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6fe7cdad71b01dac35a3d815662020bebbe50e23","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a743b7967.0","@material/base":"15.0.0-canary.a743b7967.0","@material/shape":"15.0.0-canary.a743b7967.0","@material/theme":"15.0.0-canary.a743b7967.0","@material/ripple":"15.0.0-canary.a743b7967.0","@material/animation":"15.0.0-canary.a743b7967.0","@material/elevation":"15.0.0-canary.a743b7967.0","@material/typography":"15.0.0-canary.a743b7967.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a743b7967.0_1658354253280_0.6321438949190998","host":"s3://npm-registry-packages"}},"15.0.0-canary.69fd619d0.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.69fd619d0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.69fd619d0.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8c81b9add97a75238be76c2fb0094b83ee0dedda","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.69fd619d0.0.tgz","fileCount":44,"integrity":"sha512-4zPTM4BTWtbak1GP5KY7ACp/+7/TgiRxak+DzWuhN0uqSnOih290f6PxMuyt53lPZ3zcLUIJM7asE/LP7SKCCA==","signatures":[{"sig":"MEYCIQCgoZ8m6kkLYi6BinCdANwK4dCVOioK/49rawgBRvZ31gIhAMjGV4i43FPLPiEMRetd9RDrIQmzNNtcWzDj4jLJLo3E","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2H0lACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+Zw/8D3shU9ggLcParZ6TNNRYjaw+lQkAqw0gAh9d3uZniM+sxT1q\r\nN5ApBNRBj/llmuPmh+oOLxumhGbn7+Mv7t1k6zwa1ugjN4F5iRo1siA0SYgr\r\nxSqMzLdRnMo3GHQLqE4Qh9UiFSj93WRXpFUc7XQqNWU78fFFrH5wTOKmgg7+\r\nKwF3ohXZwiczoTxS/efKI24vgDImoWD0iQC2iW6LQxdrlhPc3QoyVTovl9JH\r\nxQ2GhjUR4JeWAuPEUs6ur31rnLnSaBAInoxwoKERw0PRvWvLPR19aphxc5FH\r\ng95RrdamUNWhvisLlMDYOCkKxMFjP6w+TIBmIpCCpbrqminIl8r9qP0NNvam\r\n8f4w9OLipk2f64hLWUZu40gc0jR93aAKAuL5nJKtADmkENVQzpq8F4NI8gVi\r\nZvdcRdgssvsWjEICfraLuml3SOniM6wYugWJcryBHMEu7zpU/koqVruRLLgj\r\nFYrZekeIAIvwJ8krowX/OdJWdXD3xYMepUwK9fLpLy9gHZ8iPAN/zqrc9WTJ\r\nQBjy9P02s4xGnHWixDWDnm6cJgLm2c+7NqIJyqR+6biyNLXsFeJ9JHMd97wi\r\nMnYnuND8Ph8147ULIoRtUqvV9mTOqflViwv2fxeZZKo40DrMICzaOGaNxoGH\r\nj4k2nXBRU5deg3qYv1WD+swARCzKRVo/wtM=\r\n=sETE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8982644a21769a71fcdbd9d8a35d87f00bf73b3c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.69fd619d0.0","@material/base":"15.0.0-canary.69fd619d0.0","@material/shape":"15.0.0-canary.69fd619d0.0","@material/theme":"15.0.0-canary.69fd619d0.0","@material/ripple":"15.0.0-canary.69fd619d0.0","@material/animation":"15.0.0-canary.69fd619d0.0","@material/elevation":"15.0.0-canary.69fd619d0.0","@material/typography":"15.0.0-canary.69fd619d0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.69fd619d0.0_1658354981103_0.7268953739314246","host":"s3://npm-registry-packages"}},"15.0.0-canary.2a6ddc1cf.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.2a6ddc1cf.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.2a6ddc1cf.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8ac2a81fa4e677413575c63bc34cb9ab76d5e2d7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.2a6ddc1cf.0.tgz","fileCount":44,"integrity":"sha512-tMkmomhADtMM96vDtV/a8P5uR3QeVfG9jBFXmKll4hfTkqFHHctG1baMfU7vIN3TdvOpiI/JAD5HPkoKj/MH6Q==","signatures":[{"sig":"MEUCIQDYxoNeNe75nj3xBy5MQG2tqvxhvLQQCyIBBS9297/0xwIgZ7PpsFLx8DcZo8hqXIvhmOdN/tdSJytASnj5DpDaesc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi5AUwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoCzw/+LPFUs/ZNpWWocPv0qFN89acHgiQ+Bm0GzHFUmAQPZjWfByBC\r\naFE57Gh5Bx5W1g1RlBizhOIDRizi+inWm+mGida/Fz9vIISgarSP3BOr0qJ+\r\n5ebhSHoRqj5owQbpEt9R+8VqCC4zz1j2hC2cpgzRK2rqFcN43+X7hdrBWlmp\r\nwqbpR7ognb0foPSUfqBlgBhysQiL+ABGr9Rw0HCWI/GVzcGTKHNol3solQua\r\nToi9zgsA9mVut2qfSnfNSYF7tgSYnWctenG6CGoWvSlpuRi17k7dajJ6esCo\r\nT5ZLBoVrYJQTycS8+pxqdfoCnR5M6rM4bSHtfYj70fjrwLF39TV2rjcEf8Ru\r\ndGC93nL0p/PtRuZfaYs3fj1a76IVBTVTjKO98Ha8hvSi/cjnXYXjvNWEu7YV\r\n5WXufLLzWm7AUvT1UrPooVc4A3X5SevovGDLkUZBcC4v/I47sNxiaRr/BEFV\r\ntRPeintipyXbP2OH0u92JDhn0gPD270ogehOpsFeHnsYecDYmkTATOdzWT3s\r\nLd94DLOKIlSxC+XSHIv240idXtpBsMUCSLNXxkc1rvgjvTLnDq7gO6Tq9rRv\r\nk9tuR1l9DvMMC4Czx7cXxRhoC5Y0HXZJSGiEXNOMwsiJ9XtKo3m9nRRDrTcc\r\nqtqRNU7mh7fxj0BMfAfCsXxqEHYmxQFzjtA=\r\n=fzRI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0e951ea9d38f3d449f24bd1d8ecb0fa70c0da462","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.2a6ddc1cf.0","@material/base":"15.0.0-canary.2a6ddc1cf.0","@material/shape":"15.0.0-canary.2a6ddc1cf.0","@material/theme":"15.0.0-canary.2a6ddc1cf.0","@material/ripple":"15.0.0-canary.2a6ddc1cf.0","@material/animation":"15.0.0-canary.2a6ddc1cf.0","@material/elevation":"15.0.0-canary.2a6ddc1cf.0","@material/typography":"15.0.0-canary.2a6ddc1cf.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.2a6ddc1cf.0_1659110703890_0.46042671014671854","host":"s3://npm-registry-packages"}},"15.0.0-canary.86efd56f6.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.86efd56f6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.86efd56f6.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a8d92a61af8e55c1b2458f160b40ec9e8c8dc34e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.86efd56f6.0.tgz","fileCount":44,"integrity":"sha512-i9vantHJNhFmXwoH1WQpnIi0th/PGHouI8Y6lma6S7BBTSNW++SZ5Z3YcAMwITONn1ON9A4Nex4gktxRh7E78Q==","signatures":[{"sig":"MEUCIGjqFQ2GKok862uko/kWo0IR7fZpBEfFpyRfswjMvdaZAiEAtVtQxtiAwh+BQRMKx7+PAne0waYcMwSLrQ74+LZBSP8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6TipACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpz3Q//aca0UdokDtDFrEMB3wpKHLP/89Kr3gB+rTwbkoAQh8scdp7l\r\nskzvBZEpJj9F8DcktojRV6/C56rsCIDAuR3yYm4tGS6FP0J5qB1W2rWW+FXW\r\nO6+JulrRwXOY9MscET4I6mBpHqdc8CEIW62eFTcL5bnOg6jCKsm2l2foaJ8D\r\n12xV5+mafuguwMw3mL3gvxOexACiwQ9DObuNQfoaephLY8jnIysgfb9eK5aR\r\nBo63Frt1fhkMmvBQj5jaMB7irURGMov0ocggoZqk7Nbvw57Tenw1G2Jr355F\r\nYPYayQgz7EBCu1/1LjkrdYhGeJsZLz8AliI8hphQP0o1lvkIcovIkfgOcwEB\r\n8KF1eDQMhLKJ7PLsuiJOAf62DEnaFEKi0bZ/2rFTWmTUBDt+HibUbYLsntPL\r\nIru3re0SJkYKm/cA6Yo2fKJcp8NXKAiWQsr7YJ92A/i4540Q3sJP0lFp/TdG\r\npOVPb9ht6IuxbDk8owIlR1JIQ1bofuxGJZjOHLJsoCm5JSr1vB8EQtI1refM\r\naxRoQf1lgVjH2erNvYSW7Pdc4QfA7O+YxwgFWV4FocACYT4tBo/zkI1iW2ZZ\r\n7UdN0ObKq03Co4CWhD36XAzZUkdU+fqKH/JgsDPBHWZMNchU8AQH7FHIUChy\r\nyzZlyDJgV46llCYtSVN7v9SlsRDgVj0mJco=\r\n=DQFM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a4781ca009f9a9b59c7dfff5df2d23bb14b9de2f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.86efd56f6.0","@material/base":"15.0.0-canary.86efd56f6.0","@material/shape":"15.0.0-canary.86efd56f6.0","@material/theme":"15.0.0-canary.86efd56f6.0","@material/ripple":"15.0.0-canary.86efd56f6.0","@material/animation":"15.0.0-canary.86efd56f6.0","@material/elevation":"15.0.0-canary.86efd56f6.0","@material/typography":"15.0.0-canary.86efd56f6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.86efd56f6.0_1659451560936_0.5885905963934783","host":"s3://npm-registry-packages"}},"15.0.0-canary.ccfc24d19.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.ccfc24d19.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.ccfc24d19.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"272f81df34553689b51ccc01ee991e5aea586b57","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.ccfc24d19.0.tgz","fileCount":44,"integrity":"sha512-vNPwiiJpGtP/V/9zxVYEVSJXJm35W2J1PJ/rHChFcYg9gm2mJuwlEip7+og+I7UBZs/Avuys4n0bzFf4l5f/cg==","signatures":[{"sig":"MEUCIC7hhv3vszyJwUmA9r+FMKMnr+7usTVMxqzAugXj5LNiAiEAi1nyqC33nOZlrILJHfY9TvCjFOgYMmqwOiwEKWzQysk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6rrnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo/PQ/9ESsr1EyH8r9pJvr+iHuKXSjIbYitfJYXHLG934T27lFL0Oyr\r\nuEjLhknPeJee4N7GoEU2gfnENn58JCaRHPjSDxG8E97gBayM0ujF9tDqPhJ4\r\nc5GQHhv8gW8tes8+41rBM0TYnxepSSkufCfBBEve6TT+ooZ0sw10bgUiqthF\r\nJkHoL7ROiur+fT43dUnhluc3+gg2vYh0PP32Y4xtl2yw0r8vZxkm6Mpam5Jz\r\nqWGUJ54S7BrCs9T1c1fL6fY+ZPikVzhP1SO1FRd05Ho/lntMgYUqnbjotGvT\r\ndfEIn8N/8xfN+XzFko/9lqkapOd6o/OfTNprCbuJViwZ2suuOUurVXXAONxm\r\nkCjwa/s7senvvgnW6BuZjDcRMz0GuEv5Q2t1VEeVIaC7OmeqoGNDoFD1xJk1\r\nNb2k3+s2U7eAGgGHavSHmmmtwzqNbwot/m8fwftcEG6QwVd5qVvRLNLdDOVZ\r\nrWNbObwxNec4X39Bvh9P7U/CNlz7qetSbgoDW2QUVRF7p8qFH0NYZx8s1Vnw\r\nQlr1MrKgSl3k3mtcvLjFq8ht2Km7F/8a8hTxE3bR16HL2EuK71zki/2ShM1f\r\nTPxFliaSUs2z+zPf1uj1JXLghpghplt84dXZe627DpGk6RmQd32NKhpQ3mvK\r\nuLwJYx8X8V5/7CqfPn9aAwBnkj5o042Qhvk=\r\n=04Nx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f790058ff0b4b30289ee965102aae1ca19654ddb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.ccfc24d19.0","@material/base":"15.0.0-canary.ccfc24d19.0","@material/shape":"15.0.0-canary.ccfc24d19.0","@material/theme":"15.0.0-canary.ccfc24d19.0","@material/ripple":"15.0.0-canary.ccfc24d19.0","@material/animation":"15.0.0-canary.ccfc24d19.0","@material/elevation":"15.0.0-canary.ccfc24d19.0","@material/typography":"15.0.0-canary.ccfc24d19.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.ccfc24d19.0_1659550439001_0.9109789545714111","host":"s3://npm-registry-packages"}},"15.0.0-canary.e4570146f.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.e4570146f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.e4570146f.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e3b7343c1dde2031a4ee5405dc33227e3a5eeb69","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.e4570146f.0.tgz","fileCount":44,"integrity":"sha512-mpN3VRefn3OZE9l6si2eEzrqWYKvI7FBcWsyAM6XPDJZ7a1FUFRRqOw4aAQQ0dDkmc7JiBnPh4954l0RcLZy2A==","signatures":[{"sig":"MEQCIEQkZZc6Ww1OiD2H0KzziiUKoSiqee664NAHNaAST2NeAiAeOQgVypdMBbrcd4KQW8koxsdVc24hNr0RYzpgmW0hNQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6sFGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmouOg/9H6urJ9+xD00IoXG40/xEfFsy0pNUfmosXuW6Fie+WjOGBxf5\r\nQePfrktJNfGe60KaHwl+kEjee7whAlYeZv3MCGGg2QOfiAP6tJdpx8QMMs0M\r\neuDr33C1F5uReEPvnAkT/dzz2/+TaHEMxXGumeJDdAHsHnCC943Mkx8KnAqa\r\nytL/s5oqjeAqoOEwFHKRUsM6Kcsm9vewCo3p2bTGlWsWd9iDsqD0wqR43azB\r\nWKOofo3OCqtLLcZdkwNgXRMfuIDMbyOzjdIGqHm1c5k8d4sjQDHTXdgc+hDm\r\n/7AsL3du/jq6ymJTtunqWqd8svH1MWm6GMHItnR8N8/Kd3ftn5RLByTeJfmS\r\nX8qNWJR/GOWVMRBp02bvvmXSqxHEplSqfGTn5NPldtjIBLN/UUYsJ0td9Qtc\r\nWXtPGsZxzU4+CjudW4olJrjL5xObHTeU7PF4gyS3siSDx+QGWnBqkauZphYV\r\nGvUHwSn2DKX35F+LjB0vGp5Nt44a9L5CGwr3xGCIMOse95QgE84az1w1y0FA\r\nzV5WGVl7n75h5U/xlNe22bqWVw3akxhOtenQirm4qC+McHlA2ntRa/cUl5fX\r\n07cpOQHcx3wzyxZ/0TwIb3GmZ581yx3zC0J5OEEaJHxnamDS0cpLb8pcvSO1\r\n4oAFbofGWPTzVBS29y8ERW5TLpu6dbgFb00=\r\n=LV/B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e80d690ce0a868398025065053615e866dc51ada","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.e4570146f.0","@material/base":"15.0.0-canary.e4570146f.0","@material/shape":"15.0.0-canary.e4570146f.0","@material/theme":"15.0.0-canary.e4570146f.0","@material/ripple":"15.0.0-canary.e4570146f.0","@material/animation":"15.0.0-canary.e4570146f.0","@material/elevation":"15.0.0-canary.e4570146f.0","@material/typography":"15.0.0-canary.e4570146f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.e4570146f.0_1659552069945_0.8014642480325398","host":"s3://npm-registry-packages"}},"15.0.0-canary.6683a36cb.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.6683a36cb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.6683a36cb.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fdeed0833bad75abc4d2e699ad0398de444d961f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.6683a36cb.0.tgz","fileCount":44,"integrity":"sha512-msmUKa0dNIs1Sn4Yl3RbOaVa/VCnIq2W54R0+wGK4UlW/n889W4QOOGjlTsKtQti5VYt2WxMV4TwfeqqynMB4w==","signatures":[{"sig":"MEUCIHpEiNBUtDIa5GmUA0mQupNvWd6bXJtCPnZPDLHM6D3oAiEA4KacQ08yXlz+90UJShMBYaN1F5574wURRzOPcj4/QoQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6sqlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrpiA//UwAtMqJgs9XMxDvt6TRRSrMgILF/r1nsrah+4lB4DTZAEJaT\r\n7p4H4jsXYhNOR/zeWMkGUloZGx2FLiRLCk7hsMHRT/lDo1khhw+TbWII5Td2\r\nO7BXtA7NEnFLaERDFoch3Tp+vEdGHpRfTt+UNV9mSXcKxUaQ2Hlal+nb/kNw\r\nvHi9bKGBJQao+FQ43Fybm+LAx4pcNRG84vWtKbf4osaZFwU1wzjR70fbbnKG\r\nlaxTxQEvg1TCslAqlRQjJbmCfMVGXD0nM52n3SY7EMueYFIJFsrNXmPW/wt5\r\nXsW8qEC4UCaCIHn3NAAGRzeCwoIiTr9a3b45obkELwCI1A5DGCgcwC+Vl21P\r\nyMcQ6sfM+hggFfwiRDMgrv0VoECK8tp83ANi2XlDYFUgTtdvGkahsma3OKC7\r\npw6VdDcbkYuDmSO+s/100XjfiTrML064yCD+oocSm+3n+VADT6up7QCxCoFf\r\nX/Ss1UZYa4zhQdnMVf95D1TIC8OsklpCozW9wClkohlDTA4zDf4xcKn/A+Hj\r\np26URJ/BofaxYPQOD6EhlfYbh1OSu07ZXsWmiTF8QfsGhpcchFI6uOqbW3Bt\r\nsWdRYDXgF91kfU/wETp8fajUG5yvj0myrZWuaBTwPqJquU/IqgSsn3IQ3n26\r\nkgRfgJQti0+vWLW0r5Jj+a+YVSMp+MtSd4Q=\r\n=82nG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8feb0b9a8c5151a18a06d282cce87d861ea12e5d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.6683a36cb.0","@material/base":"15.0.0-canary.6683a36cb.0","@material/shape":"15.0.0-canary.6683a36cb.0","@material/theme":"15.0.0-canary.6683a36cb.0","@material/ripple":"15.0.0-canary.6683a36cb.0","@material/animation":"15.0.0-canary.6683a36cb.0","@material/elevation":"15.0.0-canary.6683a36cb.0","@material/typography":"15.0.0-canary.6683a36cb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.6683a36cb.0_1659554469744_0.03546939805919247","host":"s3://npm-registry-packages"}},"15.0.0-canary.10196647d.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.10196647d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.10196647d.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b81b77270e9523ced35f42af841790db894b69d2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.10196647d.0.tgz","fileCount":44,"integrity":"sha512-p1Dpi+7Vbasn8lRd+RdNdHYCqDSbiWEIJGiJ2QyZVHuRmHhLu8DwJccOdZ8z9RxLnMHAp1B4kxwjwjxW2IjLVg==","signatures":[{"sig":"MEUCIQD+K29oBY/A2smIyOfmc2XoRcnur0XvNXIPs8yAx2d/FwIgaIXBcejv685InwcEfFkau3XCQGKxYHwGxPyb3wMrGzY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6u6CACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpAxA//fInCK9B5/lmnLxyc6/sG8m8DEVseQV7zz6RoXdLNv/PUWDcU\r\ndhNMlas1CpIRmF19ROebV7ZhCIBAxOJrfT9HYyo//Sxtc51765FnQp+4MEuR\r\nQRORKikwBQ+E+CGWLzNOLVrokUYjJ/IF4U5TDna752YOs7Qib9xHMBsX+S1r\r\nIU2FHDLZOQ1+sbQfzepqsSzge7bU/PpzOHmsXUhuH1mamLy4LRJ/cfU1Lkxl\r\neYbuK801n8gxFDAE5jyZBJbtslwRHmS8+MY5grDMpppGphY2hQu6wOhE9Uir\r\nMNG7oNYmfhYC42sBuxjwJ3LNCP578XwCsVm8oCFv59VoVr9BeELt1GIN8P5B\r\nYfxtmto+2coJktUz8Qt+4h5R9mN71lArSu279NUwm7J9yNJaDPcKkeHG7Y8l\r\nmLKBz0uaffP8yRVnKMaUeS6hWVSUEKQPmOMs+LQeOa9RzPY3GwC9zUeTIDgf\r\nYH+2ueMFO4s90X+gah2EpOIUecRa3aSZqHWohpOXCWWeABfarK62gHIVkKzz\r\nL7gobW/2ImL4aObqFBwNIOu2rwTNaqPpCGn5MELNFAmYQKm8hQ98eBb97tj/\r\nTLaIzlNDvKqlSqN9BCYMF14pggpuWRtRu+5llXn/ZfCQ7h8PMGQXypC8Z1A5\r\nMJ6yX7PkTpSehii2X0RzO8z41hwGfonUyOw=\r\n=j5cv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7a708dfc09b3443c565ce80a676b159abcec1339","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.10196647d.0","@material/base":"15.0.0-canary.10196647d.0","@material/shape":"15.0.0-canary.10196647d.0","@material/theme":"15.0.0-canary.10196647d.0","@material/ripple":"15.0.0-canary.10196647d.0","@material/animation":"15.0.0-canary.10196647d.0","@material/elevation":"15.0.0-canary.10196647d.0","@material/typography":"15.0.0-canary.10196647d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.10196647d.0_1659563650140_0.8569786407872915","host":"s3://npm-registry-packages"}},"15.0.0-canary.b20d3d73c.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.b20d3d73c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.b20d3d73c.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"169d9f6d35c469f7686d83ec0c53aeae73a1ecba","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.b20d3d73c.0.tgz","fileCount":44,"integrity":"sha512-JBTcpa72R+o3X8Jv6wgAMKoeVwXAiMC3rrFZ4Mx0lf+Zr6JrRhg8uG0v9t3WqI8t3hrYq0nh+irqnDXj9zsDBg==","signatures":[{"sig":"MEUCIQDUqOW1dcTqOtGCLea1Qdgm/v7m4xMQkoKuBNJ9HDH4TgIgb6d4njpIrXTONN3N0Hz+FB4oY5aSMYtjUZsCcrS+vAU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7EuJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrEKhAAnwo0yRj0Dg0K/ZXYhIGkElbJvo3zfqDG96ytRDeFySuJGsMh\r\nO2hh8muNnSicXkZtnTZbAJv4P0iK2dAlmyd8KJkyDBHe0ElblIZAlVa8OUOl\r\n95swu0L1+/+iKCEskNKeVbWxPrbzjRtlOz0NjKK4FOMhzBjt4ugy0W79f/W7\r\n8N4lyELgDHDp9PDXXr6jhE0Dr7Vlkd/xi4UvZpMkTyZGkaEK7VcBreYeae0n\r\nSmx9o+ob9459OB0b+z+w45AGPqp2osOWAiQWbdnQzlV6CD83RjKIcLX0Y1zw\r\naeAqY/tAeTqC4xipXC/ebN+lOyujPl3uD0gZOi+LpRkNAlmV3cGf03SPCndU\r\nflEKQHDq1S2iCqSvdjuRPLv28910EFuSlFwh0P9hnj2eMxTljb9Z2OLhgdwQ\r\nFP6HAzS5OyWnSHnavEjPjiMZbEe1NgXhoxW12dvdyoRxNFGBFSbACD38ChDZ\r\nA1d6VRvGxn/ljkWRa9J4p3Q9d1z7B4ouKo2Fzucy7a9+HgBHnDYOodwUReET\r\nCWoUhZigkf1j+YGFhURVSkmzWYKckA9iFeaI48Jv3sAW36LfPaWOVDaN6h9l\r\nactFWU/Tp21/8cAY9m9NvQGsUGx2xdxt5qgM7WayRZKX6lzs5OS6i3xmmwFK\r\nsI5zG0vJoLAAsjCEjctpR59LoGOjJuMzkFc=\r\n=wqWr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c869b5a3ceaada6bf2ec164c65f1e4fd88a0e7ba","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.b20d3d73c.0","@material/base":"15.0.0-canary.b20d3d73c.0","@material/shape":"15.0.0-canary.b20d3d73c.0","@material/theme":"15.0.0-canary.b20d3d73c.0","@material/ripple":"15.0.0-canary.b20d3d73c.0","@material/animation":"15.0.0-canary.b20d3d73c.0","@material/elevation":"15.0.0-canary.b20d3d73c.0","@material/typography":"15.0.0-canary.b20d3d73c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.b20d3d73c.0_1659653001252_0.15530800867724182","host":"s3://npm-registry-packages"}},"15.0.0-canary.47c0c6b1e.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.47c0c6b1e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.47c0c6b1e.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"719a9d4ae79bfa2e6512682c2716d473b61857b0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.47c0c6b1e.0.tgz","fileCount":44,"integrity":"sha512-nXzbacjyFmePqhnYATeo0/OhdjEu8mapR1bdAScAbsOEa4CxQ171K5RtXEpi8AXHPpW1iOm/GUf/3BxTisxGGQ==","signatures":[{"sig":"MEQCIGwXSdmZZ0jZ8Hkxnbjv7VkPLYCz4jFUwQ4R62A3KT6tAiBS8NBo13UJzRMJWB8PrBASdhRzKLTZ9stUtpFV97L7IQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8ntaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqTkA/7BTwYcdHpXFbwe7f6MXudMyu98bjcbom+ohSmofaBpJeQ5+hB\r\nVKNSZJVjIFEYXQPayoULo4lUnuE/FVdTnzwyE27dqB9Mw2MJ8TBY8SYAURn6\r\n1UYG7dmsUnN5hcn/5pFkM5eE2qe1LSwqWrLl1Tc0/O9WwLM19JbORqQx2tnC\r\nOTeZGwshIDHuLiKQYiIhU9cVWlhhf8MPes62C8vyuqE2GxWbwcivLgN3PkuC\r\n55MTP+LSgUCQGmdNdBEFBwEdqk3EkQ/P8VgZet1o71JbGswZOY5nFcY7jBiP\r\n20rIQ1ch6X7xy/omzxbhQc/pBg/ZnCUfJ8tz9mk2JrsJE79pPsrtQnr0UEjp\r\nVHbECCFElG60LMapXk6j1UtVOC0qmm2lmtrC7D0YnZv1n2qAXfnqoZuhr8Dx\r\nYCZZfYuQPFUSOsInpitf0AsONJJaF8qMhDewCKyklzPnDeurKE80tXtNzuk1\r\ntQBWjs7Pd7BkQiXfBC361IAWjAM+fUNUAtRmTY9DJVGPIFO74mm4037ZmEhN\r\nz/prlPdA42F6TrHuHgk9/tKk7FKxRo3l2DlaGyHF4+eOP29pK10adcXNpV8Q\r\nOxDP16ufISdZLHHoaKMEF7tbYDvPLIpzeBtI7aWGcn51jw1j6NKkcSnpsu4p\r\nt6CpvvcDnd0qb9MTWaLdYoXEJKmZNv0QkF8=\r\n=8rTa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"692955bb2bb9c99ddd9321606e40fe4a56de120e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.47c0c6b1e.0","@material/base":"15.0.0-canary.47c0c6b1e.0","@material/shape":"15.0.0-canary.47c0c6b1e.0","@material/theme":"15.0.0-canary.47c0c6b1e.0","@material/ripple":"15.0.0-canary.47c0c6b1e.0","@material/animation":"15.0.0-canary.47c0c6b1e.0","@material/elevation":"15.0.0-canary.47c0c6b1e.0","@material/typography":"15.0.0-canary.47c0c6b1e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.47c0c6b1e.0_1660058457145_0.6742551107671391","host":"s3://npm-registry-packages"}},"15.0.0-canary.0e3dc8e38.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.0e3dc8e38.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.0e3dc8e38.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"abf50c72c26bd811604e222a6eac5b7e4d3ad26c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.0e3dc8e38.0.tgz","fileCount":44,"integrity":"sha512-sy8UVkPIEZtlteX4jMBZsrIUkb+gLMirKsC3vEeRStMLs07giBXPQWNJsymYon/Zw6QnFR+mTCO7ybNtK0ftGw==","signatures":[{"sig":"MEUCIQCx4vVf4I8Edp1U3Y4/B2qhOwRqhOUJ3H+YOZ+iJBZTbwIgSUSylEe0HWovce970q9e8qNxW64+j+ZuI5Cmr4qtvwU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9U59ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrD4w/+P1Cp7P+Xo0rHXp5psRy5Hwz+BOeLtOKkp7N8Mt/SISI0Rs8V\r\n/JKerdCHmIxvM33250yTbDi2+iZ+az+05ntNkgvEs+nOHwkiBfPnSzLWj4DA\r\ndEuwvcol39PuZ6niGjLtsQQdZHjM8rARonzPeHxpio+T84Grc6xP3EnQQmpn\r\nnM5Vvu2aWn1vw6VkAEWmyE+bhZ4ch9LLxvHRw9aueXju31jz4fSeedIxBbZl\r\n1Uj9g3cytebhfDIofnOkMfPnvWqTc5RCDnL+ssSFl2KDuPpg33z0M5zeBucq\r\nXJ8BfGAP1n3IrC9tSOpaHQkNAiPJ33RkeRokR6Ls3CARV/YtMG+RcSLBXDY1\r\nPau4DDsniTPiHSjFdVrCZGzB+HdkmJlkxLmpe6YzCl580zdSPQ+osfbefVug\r\n0UF+s+PjyW33PiQACmrwnPDwQt5if7/EhWc6nFmZsfu/YFLhrVred/gJ/48H\r\ngD9CpJWgiHRF1bOqCtC9cKO/1kLXb7+MWc5y+G+K9SmqDA60xny2QQ5uMHlU\r\nlzmE/Zv3yFJF0H/PqTquv0t2trjCDBFEEDCNl4DQW1kzfR6+8bkCVnIOs4u0\r\nNWdbx65NssWQRyhJVKXe6hgiPFmO7ARVWa1ePEWTrzyREqtdosfIxxtR2Shs\r\nc6M89ongU9Ct84q3NFnRSIeVRx5y98Hcfpo=\r\n=yOf3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"51983e03d07e3c1f50454770dc24ff8d6d6f97a1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.0e3dc8e38.0","@material/base":"15.0.0-canary.0e3dc8e38.0","@material/shape":"15.0.0-canary.0e3dc8e38.0","@material/theme":"15.0.0-canary.0e3dc8e38.0","@material/ripple":"15.0.0-canary.0e3dc8e38.0","@material/animation":"15.0.0-canary.0e3dc8e38.0","@material/elevation":"15.0.0-canary.0e3dc8e38.0","@material/typography":"15.0.0-canary.0e3dc8e38.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.0e3dc8e38.0_1660243581273_0.477889318923868","host":"s3://npm-registry-packages"}},"15.0.0-canary.d5a11f1c8.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.d5a11f1c8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.d5a11f1c8.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a4d50dd952176547d742983affa95e338b8c5d27","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.d5a11f1c8.0.tgz","fileCount":44,"integrity":"sha512-pv2HA1tNGOwfMEXREB2icivxZot83hvL6nOwG4sbjGzWsm1zChPVPWacBAfdYCZ/dItI7ncsa/ZMe2sHSvvhiA==","signatures":[{"sig":"MEQCIESTxoBNjB5m5aJd8PygSH7G0TRSwx3PCVXC83DCs5lxAiBvVeNIhw9STOcbnQv04CfaiAFmXs3a0lRCG7k7r1T6+Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjDpbWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpLJQ//eT8IQMth7gKycdvmlMrXEv3Sk5WhUngF1xz7TbcXwCohMNUS\r\n3GmVMBy8dznQGlOzmfmkUkl24TbYP2++IA8KixsU9TKpyQvnV17xNCIkydeV\r\n+HDeZ9YKEIS56xdPCPfLljCQKj9U3ooTMvrtJlU/tywGl2fcRCyl3rhHDRXR\r\n7IK+MXJSr0QBXoeOexdxemcx0DC72qYaHmzeJDksr7jnQ4ALTR501TbZMB62\r\nJG8uovBwnNm2Dt6BdeZ//VzcUeuBA388P9St5/4IQCgK7UuIbP/itvBtwRRa\r\nXdu6wx1GzYpptzNgY0N4mRgSoGfz9y2mqTGhpvBFxYGH01GL+q/YkUQuC+en\r\no+8anKSErmnwYl5m8oihF7tQGbQ/aajEEbAItEMKkl4IuavJ0OAg5bDucCHD\r\nethdUCgoxkR/uF33ZFqzCzKCzSCd99T/1p8ULKALuq50QnBwtdAxKG3MXUh1\r\ns6FoBeIkLPWLiE8v7EJh6RWZsrUmAViid8Lu47EYTxXysKQLHCbzDGfC22lw\r\nDV7hPy+OfHAy7eBEU/i/a6mpAfc2wdecI/7mqD1f5eVVV+H9ycGyj1P5l727\r\nqRozqOn/EYZY70eJU2tB6I1LHbVRPehj/9WxdNB2jMLiKvEBh2fB6zdiPds/\r\ndg2omEyifElsy9zh0/KY3g42dBNZm27b2TE=\r\n=ZzzA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7ac71b54192751de3a5469d20cb2e1c30e544d30","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.d5a11f1c8.0","@material/base":"15.0.0-canary.d5a11f1c8.0","@material/shape":"15.0.0-canary.d5a11f1c8.0","@material/theme":"15.0.0-canary.d5a11f1c8.0","@material/ripple":"15.0.0-canary.d5a11f1c8.0","@material/animation":"15.0.0-canary.d5a11f1c8.0","@material/elevation":"15.0.0-canary.d5a11f1c8.0","@material/typography":"15.0.0-canary.d5a11f1c8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.d5a11f1c8.0_1661900502124_0.6624907066276244","host":"s3://npm-registry-packages"}},"15.0.0-canary.bac992a95.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.bac992a95.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.bac992a95.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6ab5cd5836ca4b542cb008b745b3d2619505bdc3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.bac992a95.0.tgz","fileCount":44,"integrity":"sha512-u73odF+J8LyHgZMbMPKnLFunPs8XHXfqE3SpdMZTTe3StA2iJpEALP5ae1kA4HmdXi9JN6Ug/BiI7/e73VEaUQ==","signatures":[{"sig":"MEQCIDaaIWMrI/P9UvVBbt1uy8WweJUhFEkHYnUwNYyprO9iAiBbX8mfA5urxmZuoGzQoAkGxZv7jrkheAasRBiYMPfReQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEFnbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqhJhAAoKyNGYJVm6bj91gKXidwfTyeSqwe1nK9tzh7VU5N5iJWZmpx\r\noUK9ESpQ9FE5o7OXby+eaoGUZPd37cAf1i4A62nOgwm5l1ynT222enguqnAh\r\n8JFAD0dvyqcIbW3I2I3NOETl33tkGRujWih+g93B5s4q3xD2/ayz8Qy/7F0K\r\nkKNF9Zoew2Y2ITYKHCBEo49Sw9HezumAjUSdRwltTivOgH1fYOdLWL8kngul\r\n4ba2TJouOFJwq4CovTMiw8G21r0vGw/5K4ZdRb9g7nOvA53KJAMNpczGK6h0\r\n0X4HAZeawDjrKgZDtE1wmetByMqIRQszvULd+eTJxyQwNOGBPzap8Vgg5ysU\r\nbK7c71KOkbD5XLUE8wx1tFPNboXVl/BDD0aOgifKMpFNUxKZEiY6429SuK72\r\nTetlfMC7Yz2qiFcxLPoDzTKUTUEz+av/fP+fTxZwb3zRaMv0mCKO7Is5gMrU\r\n3cxuiLrWYpkI1gqONwK9N7glQHq8CCGh3h0kMVaU0+GoBKTmz8Wklgs/8CHl\r\ntZKwG1nbR+fqGwHwQZEAWk16BqxCbbqDxoW/1chVnG9it6lGT9CINGS/+nwM\r\nl0eV1A1RjfK6EX5ORhqcGJ9OxTjXjycehD5ajGZjy05GGBf2fqIERVDLaabI\r\nCHpRBCUGSiPgkBARBZ6P3xxN4Wkbzs/W/8Y=\r\n=yH3g\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b8dc8f019b6b9a7241d55c21925faac495f9230b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.bac992a95.0","@material/base":"15.0.0-canary.bac992a95.0","@material/shape":"15.0.0-canary.bac992a95.0","@material/theme":"15.0.0-canary.bac992a95.0","@material/ripple":"15.0.0-canary.bac992a95.0","@material/animation":"15.0.0-canary.bac992a95.0","@material/elevation":"15.0.0-canary.bac992a95.0","@material/typography":"15.0.0-canary.bac992a95.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.bac992a95.0_1662015963391_0.240418925725707","host":"s3://npm-registry-packages"}},"15.0.0-canary.d25f3404c.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.d25f3404c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.d25f3404c.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b0be155069195386d9d1c6c89c55372ae6d54fd5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.d25f3404c.0.tgz","fileCount":44,"integrity":"sha512-5F89YnUgl0N1iyHqMWCQEj52+4PJrZVlsQFMO3QUpsqOXWp0MddbwdeM261qU59aS9KDigQASeFGcI9fkK0aNA==","signatures":[{"sig":"MEUCIQDwjDRjOqBiftqs+uGjgXqdAMUCTrhcuKp2v56OoeIoAwIgUaovCW2B2/VuuRzTYMr5Gv+jbca/KshDp4feugjRa3M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEH8gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQAQ/+P25pV0OqNTabreItk5vJDxcVnCNtDQax3vRThSN6I5E5wIw7\r\nZRuE3o5cDlP+c2SK7O0a/20+FT26h6fledrf+iNbkuVE48cPnOkH/dXeAuMC\r\nCe96QB7a0GG97XD92Dfw2GAUGnhopo7Vd9EeTRojkVJWJl57dGRP7+aFJjqw\r\n8QNknseQZqOcV8TXs04X/ekLAXQdMWzfvJJmQtMQhNQMkZPxoaZynXgNJJpg\r\nlrainKZvJe2yACoTFi207QGj3uwVTIw+iasMJDv0ta9/SQP5eUFQGH9ouZHd\r\nMODATrY+/6s2YzMnnlEEE5KYh1vrrE1JT9zEJB2QTLSxL1UnrwLaw/RoLizc\r\nkf3E2mi/b73CgW3BVLa9FyxprJ+87F73S7ZHp+NcEutLQ8W59z5k1ckpPrr4\r\nY//bVOCJnUqHmyzQwybhokwSmtDGGoqt6mouuHDfY0UtCMunPMNeWG7BIMiC\r\ngMEmifkKGZhphheSK+uSZKr10H9YRi+OkTT5FilujT5PNetPl/uz8sXnKbt9\r\nW5JKkCXFjwjC3HaNSt9Dsb/+/YhqJoHJ89zFDp7oyegoZ+aqfxrPBMo0UFig\r\nLyJK1FLEdjlz9aBbcJnj8pH+vTxZAE0ZLWuVU1+sWc08rxdFaWXWhno9ZwYm\r\nyGQtka1bmvBjFpA3YxqVMbcVBIdS5GCupPE=\r\n=Ab+9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cea256990068cc2248c9bed32c4a47fe622a3286","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.d25f3404c.0","@material/base":"15.0.0-canary.d25f3404c.0","@material/shape":"15.0.0-canary.d25f3404c.0","@material/theme":"15.0.0-canary.d25f3404c.0","@material/ripple":"15.0.0-canary.d25f3404c.0","@material/animation":"15.0.0-canary.d25f3404c.0","@material/elevation":"15.0.0-canary.d25f3404c.0","@material/typography":"15.0.0-canary.d25f3404c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.d25f3404c.0_1662025504013_0.7808560953830836","host":"s3://npm-registry-packages"}},"15.0.0-canary.920d8a79e.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.920d8a79e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.920d8a79e.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ee67770ebe553d8931695ef53cd1fb457971cd31","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.920d8a79e.0.tgz","fileCount":44,"integrity":"sha512-eR712TwlhXD1pXQLeUZANDzTCCuShIxbIOF22nICZUIiVjXlTRGVHueEuMnGrRkYcWG7SuTmGrl+ZGbnqS/CnA==","signatures":[{"sig":"MEQCIENOlPeuseeS3JxzV2T29GmSAbxQa6ya7vEKOmkWajdaAiA13YtOgbFyigoysoo+qG2c2K/eBLM/3McYD6F/VzjT0A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127409,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjERRDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLcw//RzJywyodlwVnru0SyVlsvRfkqWGVjaCwsOnM/55AJ629ZPxE\r\nzq9mxP2qMr6uaSjDSZl7S/GgBSjU/ub0Nw00f3Qhi7EEALlJMUnUQePmyt/T\r\nR8TnLrX2wQ5Wm5LQ+1X23Y3/AqSw2E1uqzxOuyHSY9r6JCCL9uuBzY9swwrZ\r\nLZpFrizykn0JAFjXdEfyZiX0FZ5uH2kavdeviGSxbstXgDmv8eTrF6goTTE5\r\nnmrHlwB7FpnspLpaHauB0W4CAOM1px5BtVWhrBG/FLdAbFPayrdcybuOkV4v\r\nb8lmYDUJ0kaqyJ26G94/H+uqn1+NMs4FUTAmtfzUjvttoahr3sVqlH+ltso1\r\nr4JrjP3tp2BuXf9sI/yPPkjxuZfRSHwrM/aAIYLemP67/qjGLbq52tHvulGh\r\nqrLlE/EVDgKWd/VeZiFL7z95LOJtl7BAONVXZAr2SUaBy0d/HK6Hey8aniv/\r\nUvo8nxUo5XeSCJuCjAheFockWc48mS+Vyq2+ngwawouZfsh63E13yQArTwI6\r\nqNIGejrfV0921qx53eIx2Z6qmTVjBxynb/5XLS0HaXeYAYOGKjcRAcyjGSRx\r\nrYDbFrOwv3Ce8qaLioknIYI98hveAYf4u0aCSVvHDbEER/z3dLXxARCy90qp\r\niS0T/A5MJjf2BCbTXAFkXT41FEGvodcWM78=\r\n=qdu7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"781a4c78770587fd97c25633bf9f137081c35bc1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.920d8a79e.0","@material/base":"15.0.0-canary.920d8a79e.0","@material/shape":"15.0.0-canary.920d8a79e.0","@material/theme":"15.0.0-canary.920d8a79e.0","@material/ripple":"15.0.0-canary.920d8a79e.0","@material/animation":"15.0.0-canary.920d8a79e.0","@material/elevation":"15.0.0-canary.920d8a79e.0","@material/typography":"15.0.0-canary.920d8a79e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.920d8a79e.0_1662063683469_0.9978280181036006","host":"s3://npm-registry-packages"}},"15.0.0-canary.c363f267b.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.c363f267b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.c363f267b.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"48ce2f32f3aa15e63d6722f87f9ee079888b8aa9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.c363f267b.0.tgz","fileCount":44,"integrity":"sha512-BbNnUzGLUFmA6+nNw8M7WdFGbFlaYPgDtkqSNPZ8wqOaVtnjUGJMi42UXlQPPZvJSFzjJh4sOxafQO3TktWq3w==","signatures":[{"sig":"MEYCIQCZ0wrsBGq+/RMU9EdOt9RFIL0Rr9oYYVuiRuRtWa7p8gIhAN+hNBYdIJ7rJf1h6a0GYCXp9I/rBBafOy1r+fzXh/L9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127409,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjESGyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqrAw//fJi+ToiAF8DivHgiGhkJvENvuSUvthgGv18we61u7HR6G5AZ\r\n6idShv9ZbHw4C2Ze9VYGeWcnC9WZr6/f9nnY3LndyUBp5BLyEpF5jlC57103\r\nuh7/t1ZrqSOgCrATb1jHDWFeefrS7D0tEz1gT6JbsEP5hiNZrafUez7Gnm7G\r\nyK98Alzq8e6mlAJ5MeuKgLs9mZN/JeH+f52c3+4fbLNd/DeEX/PR+jq2pwDX\r\nmwxzSnjXTKTS7P6r02MhxAAasi6cbzWQX8meY4wkV++spFQzFyrMxf+G//ot\r\nSUU9ezZ0UnI+uyCy1RAJYowCZcJzrbUEgVGOWDPTJ57OEZLU6KWXXrpHkz3j\r\nAnBDxN+/li+YVMpGa/EQEp+Zw5gCVPGFAIIPgcr14qLcbRLIYgyiMVqAs80g\r\nwrpl9zar3VP27WehF6z67HfR6oVYWMvR5XtPgDJVo7M69HGq849B8IFnJYZw\r\npSlfR88nxtubeOWBQSns0QlA7jHoIccrGk23+JEjbTUwG+D6MkNb02+dhUXp\r\npqqN6qLgGcML8LQEj9wtmpSFpauqZP+9M8tVJ1oFCzwJysi4XvLCbRwrWpkq\r\nNK1MCA/kPjliVVZ1KVJx6DFjPx9F30sk+0G2HblDfRkooMiB3WWD8A5Hy36q\r\n8jz42v2DdpfyUkjoJ7ptWSZdB5xZRs9ngfw=\r\n=Y7pB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6e2ef624f85a84b5510b55933f017db57797f611","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.c363f267b.0","@material/base":"15.0.0-canary.c363f267b.0","@material/shape":"15.0.0-canary.c363f267b.0","@material/theme":"15.0.0-canary.c363f267b.0","@material/ripple":"15.0.0-canary.c363f267b.0","@material/animation":"15.0.0-canary.c363f267b.0","@material/elevation":"15.0.0-canary.c363f267b.0","@material/typography":"15.0.0-canary.c363f267b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.c363f267b.0_1662067121805_0.3461560539532387","host":"s3://npm-registry-packages"}},"15.0.0-canary.a4eb4937a.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a4eb4937a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a4eb4937a.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cc391e3cdcf94a87350d2ffc26225dbd111fcbfb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a4eb4937a.0.tgz","fileCount":44,"integrity":"sha512-nZokeCrH1qtHpwuH4fYG7/vko5rS78gAgFyeL1/8fsy7/Rs77RPa+NPwIsWHd0VgUSod73Cff1Gek+x5chsceQ==","signatures":[{"sig":"MEUCIQDdGrN538KKvoprJoRiTbNcFEGPEU6h2o/GVHesSrrAKwIgYn2GjR7AxMgZe5/de/d8PM7JPI4YOwW8AFiA355o894=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127409,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjF49bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqlvw/+KlteK9T7ibDc2YHwi+gldhN7RPo8hEfuoZrubzuVcVMw3XQj\r\n+taErT4HUFR8uw5yQZbxvUk6hGF7LTNpykBL3CREEzYlq6FI+KzjG9ljfmew\r\n8725s8qo4QXjkPE8ABwzSYB64lIAl2JGjN1L/Wo3xNC+rUNkhDr6Ojvkc8qO\r\nenSg5IddeM0eclj0IHkc4Ur5NGAZf2f+D0kPkdHiOwgwD/p9D9tATO2YifY/\r\nEzEC9OOgCyG7+4bWSzSWpLize/IqwQJmG+aTeKEAol1Io3L93xhBlZNJ5nIb\r\nM17C7PkD5+zyDN15uAENsr2uj/E+oZmn+YY8WTFFTC/oou9tErdHFWrI1meu\r\nArbhL7ouwWdSPm5pDS0jpAJ14eeZtKw2Jxb5x+/TLnq9R3fAvtx7Edjdo88Q\r\nFYPOnzUdLIXQXecqOh0GWAJ6NulOGu0tv9g825IFDz5Mp2s/PKyJiZOOf6+O\r\njJVewe4eg6rJnKE6zvWiARykVPv+WMayGFNA16fmNvIRuvgudVJ3NgXo87Jc\r\nquAipj0SS0Cl9Vn7U9WDtgAoObg1SruxjwJhawQRNJ+S6//04Jkdj15K+2kf\r\nGrUgPaaexErakkzuBzLEObsukgeFq53hUgQNsKH4aIs9SJUCLu9tUbLiVFla\r\nxxy1aOUsYdr0hWfXmpWOxj8/dpfWZD8bw6g=\r\n=qhAv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cc03915314119934676831cd7a244f70e12dd2c6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a4eb4937a.0","@material/base":"15.0.0-canary.a4eb4937a.0","@material/shape":"15.0.0-canary.a4eb4937a.0","@material/theme":"15.0.0-canary.a4eb4937a.0","@material/ripple":"15.0.0-canary.a4eb4937a.0","@material/animation":"15.0.0-canary.a4eb4937a.0","@material/elevation":"15.0.0-canary.a4eb4937a.0","@material/typography":"15.0.0-canary.a4eb4937a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a4eb4937a.0_1662488411105_0.3671835693556704","host":"s3://npm-registry-packages"}},"15.0.0-canary.4299717da.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.4299717da.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.4299717da.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5262a7bc73ae8768eba9900b3be13301551a8995","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.4299717da.0.tgz","fileCount":44,"integrity":"sha512-jEeCKchfbhIuAVBPp1m4SZ3c2narYJyVa/W88pDhnzM+hD29k1UPiUp8dgufWlcJTJ4z33exvvap84xGtSsWuQ==","signatures":[{"sig":"MEUCIEDf/JdA1z+sKLEsLlQ41uGaBRAIpCrLKcfvu1O6Rnt9AiEAo2ysZq0BkSO4BlygpFdg3iEEcPTO6NJio/KuL1R6ink=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGMPGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/dxAAo7NbjPQ8KPGfvxih5r8rkAaThw7y0vzE95WNzryIEFVRrmrl\r\nibiFbf+v3tK06rK9La7OdonOcUFsNGQZ2pBRx7DlrqXd1FOLod4FWzg7gG0k\r\n8eCJReGfP9B9jgXDMCIIFX7u7A6RfTm2KX3Gqs/oWebFkaMxtOv/kQKUC2RJ\r\nicH4vvsdDbHIAtk3AtfPgqYJxFRxAMdt+PQNdoFOblbpVdrQ8rztOUz60bw+\r\nJ7nITBWiUG46rrwEMXRy/u7CgpXirLyEFzzkrNJEJ/s7QP10aHGHPbxknrWa\r\ntA6a/ihAKRy8RY6EMSYSsVnsct5LmBMNlAPGDnpB11218PoPQfXKXlnbv8XM\r\nurlzx5/xWwks5rmUNm7brOWDjLFeBVTOR9XWIK+DCRMInD/lXJ86uHyEKC7R\r\nRgo+ZhOiogd4ToLZiuv2sIJ1pF3QI4o/x8hr1qF4bNqeOz1+pmO0QWB6pR6c\r\nutrJdJoFG7eDWeNtPkHTxF9ki47RTsyB+3YQXzQky+OU8/8BSPvUDOyqeeJS\r\nFZ/v7NrZHcwRwxjiQnBxSLlCSE2DnOKMJ29wFUrZSJI5XpZ9gv2vKK3O5/wl\r\nzmc/qxOcR8PEgToq17fH0l6S9HAVbP51+G3x+30jXI/RfyqN6YMzVGrCqJso\r\nEawGW69jSmTLxa08+2fk8YmobUIM1mRepZA=\r\n=Pooo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"22082634ffad1ea812192e5ac62786a8ef47aa81","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.4299717da.0","@material/base":"15.0.0-canary.4299717da.0","@material/shape":"15.0.0-canary.4299717da.0","@material/theme":"15.0.0-canary.4299717da.0","@material/ripple":"15.0.0-canary.4299717da.0","@material/animation":"15.0.0-canary.4299717da.0","@material/elevation":"15.0.0-canary.4299717da.0","@material/typography":"15.0.0-canary.4299717da.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.4299717da.0_1662567366509_0.7337910817269198","host":"s3://npm-registry-packages"}},"15.0.0-canary.fa7d8d44b.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.fa7d8d44b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.fa7d8d44b.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3fe5d63d6448bbaa160f0bfb532bf662e511eda3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.fa7d8d44b.0.tgz","fileCount":44,"integrity":"sha512-krL5g3Xihi6wTd/PDbzl0SekQR+4wR+eYygx0G85PR0Puvc2P8HdQ9cCdRdcSym8OZww78sAj6nYEyEQl4QBlw==","signatures":[{"sig":"MEYCIQCytPzbB4btQqI0l4f4JPVsCWtFMigmSNS9iddLTbhFLQIhAPOE4hcmfWTzOYXiRdzDY0Irf9I9ba0gMYD8Uy+jmmW1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGO64ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrj+A//Tvr/d/QYZ2H56DfKlTQDGfo4ekhrSo8L3yvL4sNVuRo3RttD\r\ntDjJh/sTpos+io+VaFDNY24uZPCaC4xSh5tq3uJYuTipUh8HVFxqUdkdxLXO\r\nhgQHrC+3R5R87Jngqrex/L4YfJgaGtdbGa8Ju+Di4RVTN5nX3BT9QTwY0+0Y\r\nMY6n3rre5+j7t2lx9GBdoCmxKp4vLOjcon6xLGwzi9fsYKBgE5Od9WTdhoPR\r\nlzVcUOjaafdplX0f0qm8jMIZdZqXPeahsc34OaBpgyxucfq77vancx4vPG36\r\nztjOxSyuRfp42GFsbxzS7/GULZaETI3+lowDvy5CF6P7IxAc/vFBXQ9XvvNs\r\nrQ8Km77aKzQhN2eSlasz8Zsz6gvvpjv0FUNrg2964qVqlwPcPOOEWxLurjgL\r\nMyRYJf5aKTNOlKwFMeEvKVQA/uD+0WTa5GE1oSPGPJU0EXkVeTp9d1vBw4Cp\r\n0i7TdBRE1zYzupmWiHQ/1vqwiNaE4ixkNOFswaHGMtSbamCEN0HT09d9KdIr\r\ns8OKcw8LoLTdjeHzNfLOIRVin37824pDyyGcayoT/QeJ6oHAxziHqvvoLEAW\r\nF+6IK+msxnZEeNh1IEdrW2GD4OALnyH/GOfORTIK5QxuzHZLNDu+Bifr5x7e\r\n/s/IDYUTTpnvahA70Q0ff6dx1ZP2zsKMGXE=\r\n=G9G6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6fc828292e73ec2f8aa4332891628e90f4586658","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.fa7d8d44b.0","@material/base":"15.0.0-canary.fa7d8d44b.0","@material/shape":"15.0.0-canary.fa7d8d44b.0","@material/theme":"15.0.0-canary.fa7d8d44b.0","@material/ripple":"15.0.0-canary.fa7d8d44b.0","@material/animation":"15.0.0-canary.fa7d8d44b.0","@material/elevation":"15.0.0-canary.fa7d8d44b.0","@material/typography":"15.0.0-canary.fa7d8d44b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.fa7d8d44b.0_1662578360156_0.9663300074173657","host":"s3://npm-registry-packages"}},"15.0.0-canary.a40e3c768.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a40e3c768.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a40e3c768.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"332976cbf68ec56d38c30f6a157c420c5c2a58ab","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a40e3c768.0.tgz","fileCount":44,"integrity":"sha512-mSHS2avg4jFBSqc9k88lUUnnEbINU2mHBUbx4CDJyFNnTyQ//70nOaKEUIbFVkdGqR/D6eWgVdQ12sLRql3kwQ==","signatures":[{"sig":"MEYCIQC3LC7H4Un6v5UHexnpq2uka1abxtppue4LsDgU/7XRqgIhALJnxlOCn3ys2ZZE09OBkQrpbBKd8dEHvYX64B/m9naR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjG5xEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoRZhAAgzwGGIqN/cvw1pNAiaGa0SJ9nJefWqzJ19Q+QKTarFDQFU34\r\nmDlGD4YoTSwbUPsFcrG4rRy4QS3xN7D8Ygbr3CQ1L3gTpvxg0HvVPIHBWPZP\r\nTtgpXGCSjYlqQwmdN25/ntkU5RCn9QpuvnDW+ue4NVCK9qz/MW7nH4YKqXgr\r\n9o558i7fYm2uoVpmARynwH+XQGBuUkDBTlUcXev/vFm5DXoeDwHXWenPjaEj\r\nXxHgOdme0ZznxG6ZKHdik/TTk++9cAHdqkwCCIF+/1P+d4AtF4sqCKqiL49G\r\n6YDcm1Iq/olrKSctBc9Uun+6llZPL+AMZ046ZWMcnmhVHfS3zv6ThnxOO9rd\r\nYuwU75tM59tWMmTqjPrS06RFIUKGLG53eT1NnetWDumQ40X/hr8ktMkcnZ2z\r\nvFXmuJGKnfNFph02HeChQHwkKyR/BjxMGg+SiaSAcmJmHcERuuIt+v9mYyyC\r\nOgq6ZkXNiBXtPkmt4bD5lL+NK7YmEgPyLQcdx46aFavuF8okiZ5qbQZwKzIS\r\nskNEJqEsrsSw+PvChQNIqO1ldLWL+/tkjC9Rm0x8qbW80CPbltCRLgxAmjR0\r\nfTHfiMQa3SFo/iVmNVUcU5/jW0eG3cvp05idXL0rIG2VPaSYhOOceKso5jZ1\r\nOHLHnxd2imlsB4ByRp72WLnpAT0JdiqbkRU=\r\n=IlpP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"33ff1e71e12298ba7158884edffecc83f0055913","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a40e3c768.0","@material/base":"15.0.0-canary.a40e3c768.0","@material/shape":"15.0.0-canary.a40e3c768.0","@material/theme":"15.0.0-canary.a40e3c768.0","@material/ripple":"15.0.0-canary.a40e3c768.0","@material/animation":"15.0.0-canary.a40e3c768.0","@material/elevation":"15.0.0-canary.a40e3c768.0","@material/typography":"15.0.0-canary.a40e3c768.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a40e3c768.0_1662753860112_0.3983204930377289","host":"s3://npm-registry-packages"}},"15.0.0-canary.18cdc9a00.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.18cdc9a00.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.18cdc9a00.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bbc00cf83aaa174d84b89152e39e5f64a9a86c63","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.18cdc9a00.0.tgz","fileCount":44,"integrity":"sha512-zYCKxtlPoo8kfR3Ap7ir9y3OYbAWPw/L0sTRcwZwpG2XZuf71wBEg5Bs5EPAZOzMb0CGtIQGdLeSVCA3DKuURw==","signatures":[{"sig":"MEQCIFlgGkCTpQAZDdnKp9tjUn8lcpknMLPatrUP9exuw2TMAiBNk2FpVI8Jb9HOm3YdOWHhWt6S6XFJnprt8xhEqedbwQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjH56bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpXbA/9HIE+ZopBWUGuzxfszvpbt3OwvU1IRKDrp0r0Fg0cAxXXus6P\r\nQb4/VnDHf0GYWxBFDqwuoQcgSoNxsdjPj8KofAapZ20t45N9tebY3Djk0Bdz\r\naAyD9AXI9JmKE/Yt3VaphEkfZR5REJXJVfftORjmkoZvZ3uhOd2OxW2Y8mdA\r\nXhBo6hEEQPJwh/hzNivUAdcCzD9RNY2gv/F4ut+TePWZvtaoczPp6PfcqGvL\r\nLO0oJ4v6e8Jm+Y6Guta+qFkLY9LAuKmF8AzTkOhO6wdELcSaigC5tHXF1X0V\r\nTHzpR86ej0m7eWtqfTPeSE7lDL30YyE3JpJXSMopq4+fkse2lj1/CDhJx2Fq\r\nA/8dC00H4NZJAey0ze8pjzkEPqwnyVbhQRLeRn7zoVyetf1HuJFfY9Ing7Az\r\ngy9Zk729OngNb9rEWQlxeRgf84ul3/W1lwxUXGx1uZ1vPGJfPpD4JeKYhxMm\r\nzC3RTfcelx0dCd51bNTosjmb2WkYcoBvoxtbHRNEa2voMH7eyoKoyHAJqwRh\r\nKt3v3gvlgeZCF4Sk5PRw5DK3/oGKlgMrqVlraF6Yr114iakr6PZSIVsgGWms\r\ntomDoC/kUPoVEDOBGXH7A4Hfd+vQfBidAy7pL7PxccyEseg4ufmLV36uj2iE\r\nvKMNYIAA2JlYQSWI8lCyvfadWhhihAuOrJc=\r\n=rYxg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"85b7dc2034fbd68e480826d635d6d061ba62d3ac","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.18cdc9a00.0","@material/base":"15.0.0-canary.18cdc9a00.0","@material/shape":"15.0.0-canary.18cdc9a00.0","@material/theme":"15.0.0-canary.18cdc9a00.0","@material/ripple":"15.0.0-canary.18cdc9a00.0","@material/animation":"15.0.0-canary.18cdc9a00.0","@material/elevation":"15.0.0-canary.18cdc9a00.0","@material/typography":"15.0.0-canary.18cdc9a00.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.18cdc9a00.0_1663016602791_0.3110537999601286","host":"s3://npm-registry-packages"}},"15.0.0-canary.7ab3cd3c8.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.7ab3cd3c8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.7ab3cd3c8.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"754d74566a1ad07f7a29ea2b018b9027fc382f44","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.7ab3cd3c8.0.tgz","fileCount":44,"integrity":"sha512-LXvOzpqyhr8i6ypabYZvmqIiyoXGlveSY/YhXKiDP3mvRusGVaZznKbX96CgRyKQvY/9SwZpYmDHyPHjWUuhSw==","signatures":[{"sig":"MEYCIQDZbkwpcWteqrp0k+nA4zjd4WW+83KGXlvFqfC3+pBxmgIhAIXpjR8Lx54aYgTcOcixfsQjjC4nBahHuLbtOAzzkmIn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIQaoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpgjg/9Hs5pM8ARlIzbzCiVJwb012fTn3+DRr6unhxB2Gc2loAxXBLP\r\n00sdvebErzVsSvsa/gqJ7N4OKJSYHE0DNvPPv7qVneJXdVHkuj8emy5pVAd9\r\nx44K+JFtMhiLlZz3Z54hYQCUCRzQ2qCzbet5etvV483jPuDfN0WiFyznSapi\r\n0QgxiKQ2uiWcph+06jTtQk49Sp67Zvyo8R2pkPPmeljhbJD7Xt7UcuBmyHnw\r\nLw8altfYKAqweKZ0HD+Gvy7YXB67KOUUNilmaFWmouFHfvReG9gMvPX8wQXO\r\nzzdB1Y26CFktCEkAY3o9D2FQba+8KjQl8wsH1O44bSdL+bRIelbv2dXyDqjk\r\nITmgx1JrXwEyImmsM/l0mZ30H1UYtA8IZ9argG3D7FnTa1CydL7uzZfYp+mQ\r\nKA9dmuLmw6T86ZBVehrWjGbLP3IcVcdGR7LwfV6q/iIK7znxHuuoAghoCTNp\r\nCjiNj52z7/WjN2pt2sfPwV+GtSFZPA8Ckid+1KNhqmranN1/CAQdzhsesGTs\r\nWAc0t5Cxdu0K8KRdUOtrdAOjZiAi21QzbJ3erI56sj14hWpV9F/ihYbmD5Yg\r\nFsF3dkm/SVqMvw6gBfaweein5cH+1aR36gAUwcyGHMzbA2/VEa21dfxf8yYU\r\n0XwLLaaNTHZF2+YGjoXHwWgtcpVCnlTYzc0=\r\n=mvM2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5e840f2c9b221706de7ff81194e71da2b68b82f5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.7ab3cd3c8.0","@material/base":"15.0.0-canary.7ab3cd3c8.0","@material/shape":"15.0.0-canary.7ab3cd3c8.0","@material/theme":"15.0.0-canary.7ab3cd3c8.0","@material/ripple":"15.0.0-canary.7ab3cd3c8.0","@material/animation":"15.0.0-canary.7ab3cd3c8.0","@material/elevation":"15.0.0-canary.7ab3cd3c8.0","@material/typography":"15.0.0-canary.7ab3cd3c8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.7ab3cd3c8.0_1663108775947_0.5797420377554137","host":"s3://npm-registry-packages"}},"15.0.0-canary.2860d244d.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.2860d244d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.2860d244d.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bb2a9ddd37b8eec112d422a796b21332d5c73e36","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.2860d244d.0.tgz","fileCount":44,"integrity":"sha512-cU0eKUw0+c03iEmTObZBafj9wSCSyFyEm9Ato3NgvIUXDMPDb7RR/SGSb0zP7muy8O5B3QWlqsfnv8wWWbmVYg==","signatures":[{"sig":"MEUCIQDuitUaCJQKV0XY7+5TqL/pTnjMs98nCUiIjm9iz1eBHgIgdTfSXzMehwJvLDArcnrVAJdxtyC4SORAiAztsZ01zA0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjJP7SACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr1YA//R47eVhFtACPB0DhnfkPhh0fuoIMy9y+2rXOZrm0GF4mkRaqJ\r\nwZK6FomtoNasvrHaqhdPG3tV6iTbmMTd7d5dIVcEgT5L7G6312IALFnH5juv\r\nfpmexMaZc3z7A1ssl9vAZHPyGTrryqLolhj4cgRzrq+DEhAZpKOvzNM/XBHX\r\nQOMVDpr1Ul2VHmIPF+X458/VVmm2jlhgQOZXoPbSxrtkW6uJ27+PbGHanAui\r\n57JYUR7LbcRkZRK1NHGTTOp/lm508S0WtEOnFhfLL11ie4SxOUYSxZ1uOL2l\r\nyhHbbhgy5/0vJ7+6cteudecAbU6N56FsnNglEd2hadjoB3x0/GVrlxNs2hue\r\nCljBdfSWbWZYWSFQO6m8gFyQDmV59R4kNrwnBAXB83y68jeuc1LSsnAlu6d4\r\nwqiavGyo8JuUhTW/ltqIxySrPyekrmB4qsihjsOrbcTWNnqze/2FBG2GPoqf\r\nLJ0t2jxOc8Mb+hkCx8t3wf8Lkmmz90oNNWomARs6HztalLs53Eshx+sN4/Qq\r\nUAdiHbcOHz0Wbhm5bi7BLBRxPdbZCvHg8HqOagEKyHr73nhfZVv32HxprJ/l\r\nRZYZGCIbby+0YTdPyBszqgaEv6KLgqFz7z0/RX6hB+16xfo+jYRsBRKgKyCI\r\n2w/lAAYYGVPRrDmHGBkDCL4LqsYQLACP6VE=\r\n=Hhnd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"992b4ddc7340e4e4231d1001d68229e8911eeba5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.2860d244d.0","@material/base":"15.0.0-canary.2860d244d.0","@material/shape":"15.0.0-canary.2860d244d.0","@material/theme":"15.0.0-canary.2860d244d.0","@material/ripple":"15.0.0-canary.2860d244d.0","@material/animation":"15.0.0-canary.2860d244d.0","@material/elevation":"15.0.0-canary.2860d244d.0","@material/typography":"15.0.0-canary.2860d244d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.2860d244d.0_1663368914302_0.8656554346666139","host":"s3://npm-registry-packages"}},"15.0.0-canary.e8726533c.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.e8726533c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.e8726533c.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8b4fd2ea60a1b3125e3d373f0c4d5dfe99bf79f2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.e8726533c.0.tgz","fileCount":44,"integrity":"sha512-DqoAd4SPHtQYU7pNTOj1xrZNo1yRaPHM1cLikXGdT4TzgyoBPMmOJ5ife5T4QPHHSTMMwQNCSahexhSiZYRG9Q==","signatures":[{"sig":"MEYCIQDhpZdekTJlIRNs09aF+2ui39v8/o5cWUJ6/aUKX6rQAgIhAJ+Nqeo6NzXQuI4Ng9gSMxZHLp50+Vi3Z0uGNsr0D8EM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKh/9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqhdg/9ETuoN5ly3NZ4LgC9RHeojgHmhJfAQEi0+Gwdv7oFhzP1CRTB\r\n0sUTv7zehKOteNa+KJ6Y/x6VOophOHalpyQt+hIzm9DmFKlzZmw5SwPgkIzp\r\no/Uswerb4MIdVhQJI8HtnKHIAJsldvmQ2qnxqx6Hvpr6x5M4Ug9QMAnvRYCR\r\nWYt4dD15CrIx58MjWx8zk0cgohFf5eNw18lVjpXJ2MUZG8/WJDzboIU8pWR1\r\nbYMkNc7/Lmq2KrgjEJvMhhop31BMwZ/oNtoK/VlfkfPdZgGeFW94Eye8NJc1\r\nH3VchlQvzcjx3az8yETOqo8oo/8RkRwjU89h478pZ87hYYLToLOY3gPERN1C\r\nzXUpwUq0cNpxyhTwNb1nZnS4HFSaLRTNb1R4v4ad++1Rl0m1d1cqCLKDkqmd\r\nFHGdftZZcBxo2621MMBgtsFlQr+qPdPDwuBINH3ChEET9M2Dm+kPKXbFABNd\r\n3Sc97BZlK7U9gyPXKokC/IxI6Fonef7cG/tf74Zh51OJptU3wa/vnyQdQV/Z\r\n0zSBwE5cK3BKhMM/AaBMxz83Oo1HyS7/JjhFV4jCz8E1Mteq6SRrR9/nUN31\r\nxNoTmwPCKwlROm3+iw/dem5Z2fzikoYKtKT1jEfoBRCGLPOwYCA/vQGjv4Ab\r\nEwj+3qaQBudJ9o728X1k0d/aYqiAl81sxw4=\r\n=YRVn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b85a9f4d1ad6e30de8175562c0093248848c2598","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.e8726533c.0","@material/base":"15.0.0-canary.e8726533c.0","@material/shape":"15.0.0-canary.e8726533c.0","@material/theme":"15.0.0-canary.e8726533c.0","@material/ripple":"15.0.0-canary.e8726533c.0","@material/animation":"15.0.0-canary.e8726533c.0","@material/elevation":"15.0.0-canary.e8726533c.0","@material/typography":"15.0.0-canary.e8726533c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.e8726533c.0_1663705085286_0.7444729034826456","host":"s3://npm-registry-packages"}},"15.0.0-canary.00d8de0aa.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.00d8de0aa.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.00d8de0aa.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"687e6fbdab81865f3175ea86846f1298d64c9407","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.00d8de0aa.0.tgz","fileCount":44,"integrity":"sha512-Ji86EeeXPPqe1tqyozuGEoUPYPIyzGF1g36MGwRmac9s2Hb9LHBrqHAgZeIK3Hu2UJRni465VLH8R5d+XqIfIA==","signatures":[{"sig":"MEQCICJQirEH6MyZOpL1TeWTuSKENIfRC966gcTFJHfJcFvOAiA8PIvVWwQRL3XW08d4RNQHf7n3nagrbDfEbfncMxo9VA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKyvVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrwphAAhRarKVJitIrWm5g7PRncVuLc36xJnDi+pEuRljled1QGHKs+\r\nB4SzexviDdwQCp2TFxiubDOrO9hc8uPaBXFcAxrTSXsE8pJntWOkBZZJ+H1x\r\n2V9TyP4Kmbs5fdrHbysgJi9XlAWDYNRCqr/4SCJDxIUje4qLGVeWm/PlwF09\r\nsB3578EbokZpwHg/qbxhXfAbdFYyagzSO5+O54gIGGmd4i2qp9+iYAqUnlJm\r\nD/nOOelZK+gj95ukAZL720Z5S3KqY4szNq6MQbC/xfmrwVTJoKVDG3AthDzo\r\nyiSqvjk31fBE7KTLIpEma7Xmg1PQU/R2UUDa/LukXawjZJ3B1XR+op/9i2Jy\r\n78qAEoOf5+2UrksIO25IWgVlGldLptHhwgxNU54wvj9tH8uzNyzzKhHyXKTM\r\nrbx4t4F5v/+klrTbQQw6MQI7oYAuiuP3ejVKZ9bE4YB8LVBEg66AA63dRO5V\r\nknE+hCWRhTjZCHNA2i8yP2z2dneTQ8tED+1B4LbmgFSd5HY0TryeLlO5zBom\r\npBvTFf/BJcEpULmwoDnGIufSmXHUbhWY8AkCkz53q3H1//mki2RV2NE2oDz3\r\nQ1UZfSI1+sfHY2G+NAOLbllvvjG1+ufRZElLZQ+YsXFrXiWVsfEW/zBZl0HC\r\nwo86n05XIu8oa/QO3ocb2sylrvZBfD3JkgI=\r\n=pya+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0be0806991396e042fbbfb14ac3ad622770647cf","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.00d8de0aa.0","@material/base":"15.0.0-canary.00d8de0aa.0","@material/shape":"15.0.0-canary.00d8de0aa.0","@material/theme":"15.0.0-canary.00d8de0aa.0","@material/ripple":"15.0.0-canary.00d8de0aa.0","@material/animation":"15.0.0-canary.00d8de0aa.0","@material/elevation":"15.0.0-canary.00d8de0aa.0","@material/typography":"15.0.0-canary.00d8de0aa.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.00d8de0aa.0_1663773652254_0.8142430885844656","host":"s3://npm-registry-packages"}},"15.0.0-canary.271aedc30.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.271aedc30.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.271aedc30.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"81a8b000ce8b39ed14e1be3d12c839138e973eeb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.271aedc30.0.tgz","fileCount":44,"integrity":"sha512-jIi4eDUWxoNF1JFlrvZNgVv0BMrTuaK/sbbTiu8fZYoEcpawdIhiNP/548NAGE+LGs4KJuh5Iwcsh0Om8XazGQ==","signatures":[{"sig":"MEYCIQDa8VOFa/SSb1RfhJ/EJtPvIpOQ1is6S938Hl+dA52SaQIhAO3hiarCemT54DzR/Eukw7TEDfiD+sUHp0Qi+2Dz06JP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKy94ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoK9w//VyhsDjto47nn2bZDiKxhY1k3CpoQlMpp7uk8kjY0hqmq6Vva\r\nDBQKzXe7bv4SWnG6+ZNcvYtwgTG2jtuWF0o80zQSPoGKwfZM6RGhOnAWKgXy\r\nUij9krjeVzVWW48qQT9yAy3mdcv554ay7fJaTsw3063wcqSwZwHy6E4/Mxv0\r\njZDJTHZC08lUyW1EbU5tEv2UcHyTjBJI/0DrfLalWqIpGsURKqNiCvKJSNiw\r\ne7ZD6hfcxmyiG3whWY23WyRyNzWB/EfyMMJ4tCRH0RUv/R6Yfmj8r98DKsGm\r\njRWS3YCF47akzrbnklrmuv9NrualMVHTH8Z779FqTgfwPET6JzO51isaW+TL\r\nn9/0p25WlX7NzKSQWvJVEdfjLDVO/ca+n+PKyopT5QI6upZlW5VF1qVNnxBF\r\nl6SWoQnLqs8HXOUb9dFovYoBaMbec0GfJj6zN/eQtX3UWXMwWWMZL4m/oiwt\r\nSo36UnYg+Dsz75Ac3wdINUl4oKIJmgm1sLXylsBP61I8KYn/9bAU8sh9WW3t\r\nFODMDC/8+bUjmKH2A9eptQhPXTwfIw3EBgYk+YGLD0U93Kf45/ILvNiDt56z\r\nlIKX4TKiMe41Ff1T6mkLYXO8GWVk2M+P11wlshhjxdRnN5m+7okxO4MGRYjW\r\ndNX/Z1rOktcwOVGgOEjsA95VjqPjy8Yb8fQ=\r\n=YoXG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4972da221d6f097e904fd1a001de647e0e185749","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.271aedc30.0","@material/base":"15.0.0-canary.271aedc30.0","@material/shape":"15.0.0-canary.271aedc30.0","@material/theme":"15.0.0-canary.271aedc30.0","@material/ripple":"15.0.0-canary.271aedc30.0","@material/animation":"15.0.0-canary.271aedc30.0","@material/elevation":"15.0.0-canary.271aedc30.0","@material/typography":"15.0.0-canary.271aedc30.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.271aedc30.0_1663774584552_0.696781376442039","host":"s3://npm-registry-packages"}},"15.0.0-canary.9f17ff2cb.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.9f17ff2cb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.9f17ff2cb.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"914a821d89dfbe48e84c58941c3eb5140a280c29","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.9f17ff2cb.0.tgz","fileCount":44,"integrity":"sha512-vpgwd0Ry7FUtYnHCyfKFkcHdTFEg+Vqg4fjExTDNi9A8zUNtrYWwBGf6z8CIeY69Ka/S4SiOy/creGdLL5DWDg==","signatures":[{"sig":"MEQCIAojrPRPiM4xH2TmEfSCbpEQI/NdvWfigBGlE9fGZRfmAiA2f5uCCVGaPaU8e5N6wHxO6sttsO8mncGPNqP1CjYJaw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjK1MnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpUXQ/+OZQaYLxWjQiDGuKW7gG6g/8FyiAzwQGJzr2tkNXPXbRoDku8\r\nw+yOvOBZ1/xICiQqiBOUCpH2nafvk6ee3jf8zYOubnAoHTHwE0J3kMd0/fj1\r\n72fJDUcNbIq/nrJSzQbk8BvPyKl3HWiDphBo1k916aqo9lkhgPR+z47SbBZw\r\n1dHKz6hSEUCTWNq22D3wZklBNwxRBYG2/ty4wKWWlVsaf4gMHc+ZwBvUEN+T\r\n0irbtZhgDFzNWa+bDzwvoe0kSU9Sc4vVl2GUO4nvWb8NKbwni5URzy6ZlxNu\r\n+hNClg82C/Eew/UhoTudlosnIg9MowANlUm+Ed8FHjW7zQGHZlVQZ6wAZMxZ\r\nklHu4rGPRptYb1qlagfO5jEwo8D3AInoIHJSNFk5vOTKUlSBrYMt0rXHEs+c\r\nTCEBlg5Qvo2gxJEwm+dr0rWr6XqXapb+TL4mzbTrStovGGgWO0Gdtb+mGxp0\r\nkhXS9K0r/QZBY/Emy26SccS7+iNIujKJBx3ed20r17fZcaIK9NwSk4C92cPA\r\nLXIAwz6vHj6y5ZiHJ5MacZkE2XmeaBndtGwgFiZkgE5p4YudgTsa9t0eCGg4\r\nZX0aC2uAuAQ/P1RwB2sdQIO+jTMXQlEiwHZ55Iqee9dj+k/pvuZn72KkLTdp\r\n/xA+WbA1i4rGFHuWjK7k0Gee63nDc6L+Jec=\r\n=Xqf3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"34e73eebdcebc0a0b475c8b2f9fa0dd4a4c3397e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.9f17ff2cb.0","@material/base":"15.0.0-canary.9f17ff2cb.0","@material/shape":"15.0.0-canary.9f17ff2cb.0","@material/theme":"15.0.0-canary.9f17ff2cb.0","@material/ripple":"15.0.0-canary.9f17ff2cb.0","@material/animation":"15.0.0-canary.9f17ff2cb.0","@material/elevation":"15.0.0-canary.9f17ff2cb.0","@material/typography":"15.0.0-canary.9f17ff2cb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.9f17ff2cb.0_1663783718820_0.4446894094974496","host":"s3://npm-registry-packages"}},"15.0.0-canary.d3344c16f.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.d3344c16f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.d3344c16f.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fde4c577b85a676a8fda7c4cc5595021b592c569","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.d3344c16f.0.tgz","fileCount":44,"integrity":"sha512-X/UGabmWNao9HJ2VFbkq1EdDhhllj3cq4inYPgTReHEHLQ8tP8rZgVu7lS4ijmrej3NAQBYIjc1/vvZAXrtJxQ==","signatures":[{"sig":"MEUCIBgNws2taHyZ7bvPIs8dXDumKHMMG47ydQpd3I/SQLY5AiEAqJV4KA5P2PdoA25ka2JELrNBJ8FafsHEb+rXQufv7LM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLCnhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrvHw//Rz6SFf7JrLVVOwB/Mk/2EnNPhXT4XkUtoR/7yN5DlTPRO3Vc\r\nZ+8Dzu05Jw+jVxVI8Rx0BRIkq0pguXGiUQbYmPfGyEsedVtO6lVgMEsnKGmM\r\nkA9l/ea36qjpYEdG8yZSFvwKaABTmuXIgCZFy5uxPQdAT8/EWabOwi34WmlW\r\nNwlDCd7phGSI/XBrQFtP5DqEqRia+3sW6zHd/JE7uQjJGElp8g+iW0Lt7FVe\r\nbcz3uOh83MneVA8ZnwXsOGCE4EOOyQrMiE5xCFN1vIsOt9wOmayUT6gbMaxf\r\nBSi6c468XonptvG4DAVD5xqjosYFFJ/6uVQ+NzZFh4SOfDo8aGBGLpvrNUgs\r\nsN73j7txchOyv+LXMka7T3ttLdzJfHLdYCr8uCMcw/yKe1c5+uv6nAtvD9eu\r\nb6jysmTcZ0847qT4QD+ZPowZvuTcfxlaEyLhu2LitgaQPXnoq8T16P8XIxR0\r\noHfDd19lMedJWDFWwLC/+kN/t81ZqxHnVqUF+9dUsj5T139KLkOTkxrjvMtv\r\n6H3l/TWS2KyVS/i5F19ztmTmY7paPGqa9Ivb+OHfCBlJe38o1lANCW7JnQyh\r\nkEvxbqvNwttYYVZDmiza9UuMDHadsWSnI75iwCot5paKqNFiqAYKI6h5M+WG\r\nfY1v3z7vNvvwAQvRu3yIcPzr/kCi9TG9fGE=\r\n=0Z6W\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e0a8dfcab6df46c9fcc9969a6dba1f4fe48e028c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.d3344c16f.0","@material/base":"15.0.0-canary.d3344c16f.0","@material/shape":"15.0.0-canary.d3344c16f.0","@material/theme":"15.0.0-canary.d3344c16f.0","@material/ripple":"15.0.0-canary.d3344c16f.0","@material/animation":"15.0.0-canary.d3344c16f.0","@material/elevation":"15.0.0-canary.d3344c16f.0","@material/typography":"15.0.0-canary.d3344c16f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.d3344c16f.0_1663838689028_0.5345274249461038","host":"s3://npm-registry-packages"}},"15.0.0-canary.94f20ccb8.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.94f20ccb8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.94f20ccb8.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"325f84a135550692d8e6e0497aa8276589578457","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.94f20ccb8.0.tgz","fileCount":44,"integrity":"sha512-zjKEjbOhlXOamxKqjU7RxHjpgMFM4Cjql1FmK3CrXLicochqSfRsG3/jfBg2xL3ydOfdduT7ms+RkJiLGupQ6Q==","signatures":[{"sig":"MEUCIFrR0fnfV4v5mXPOMqDtAGfjBlSkot5OlANLh0xSzbKXAiEAmaz6Ni6rmuyy91bV3zAQ54iyGWykaeU2FK3BcGCr1ag=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLMoGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmraGw//VAorITC7ZcDSfYortZwVOuP8PBUdP8vzQSzNR7vWCCfiEdgT\r\nkvNBM9sguebDUN8m4KYlkFmif2dJFwZ1ZJzg9czp3QGpKcc6LtRKci7JrzG2\r\nS9qtZTuhiGLeqiK8Z+/efVPISxKIKk0hDok3dpcm8+57XLdBdbsteGEwlJVa\r\nF0BU3SWq8uZRhlfxLMUw+9JCPxC68KCSDIB5Pr/UJU8qY8hJiSS3WtB4TSSM\r\nYZYD7a0mnbFT8cmf+2CfVsbR5HMOIz2lAxkCD5H7fPZT403+j5xR2fbPCxSW\r\ni2hQpq5Uw0p1j8cpivIFulFDSjxikX0zIJZFhmphJcXghC6rEDDGoZDB5FZO\r\nsBa5O/K40YxSZ7OTB8BmAzPM11kJYoRXrMF0jCSyIJt7AlrBghTZX65BVfcl\r\nV/uoimQulfRIw5LsoA7JMkNedH+5zbRF9W9B6fFW+HL92Vh7KsLjwzHXYqE1\r\nZZOsQYx7ANbZVWvtyidM5HEy62G0yp/icswIZ0v2FjKMPcGFZAVdfREemA2L\r\nlDG412ju+i0xRo4KTNp0X+YcraO56Al/Ov5acFthHTMqoS9Cd1EFZQcWmiI5\r\np7wMjwnn1D5InBoxWn9+JD2L2UtIrTgZWimS/XFYGS6qWWiANTAE4Nl50C8u\r\n3qbEDy3PcXFe6HRbEqu83APxxhn8Uh8IHiM=\r\n=Mrq6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"16225f613437ecef2ed2d760a08046953ecd51ff","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.94f20ccb8.0","@material/base":"15.0.0-canary.94f20ccb8.0","@material/shape":"15.0.0-canary.94f20ccb8.0","@material/theme":"15.0.0-canary.94f20ccb8.0","@material/ripple":"15.0.0-canary.94f20ccb8.0","@material/animation":"15.0.0-canary.94f20ccb8.0","@material/elevation":"15.0.0-canary.94f20ccb8.0","@material/typography":"15.0.0-canary.94f20ccb8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.94f20ccb8.0_1663879685816_0.09145081893264151","host":"s3://npm-registry-packages"}},"15.0.0-canary.81e4cb7b2.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.81e4cb7b2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.81e4cb7b2.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"392dd057c4527d154ca03dd0194ed3b27ca10671","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.81e4cb7b2.0.tgz","fileCount":44,"integrity":"sha512-U/glLUv0gIoFY0AiUyP79bOUtNaXt8wM3lx6Ok/OjczTKcgaSqOViVWML3rjiljdWaNEBKZahna0H5OkVDSQLw==","signatures":[{"sig":"MEUCICKA4hGL/saTJT9hvh36Ji/36AJHb+W+KAXTTdRakjiiAiEA+GjNrVvCK2RKKMlPwmhiwZChvvrUYuMfDatA4JkWFjI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLcvsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6txAAiW9FEiAUH6zEuG4O4nEfsMzF3/2IAI2l23j5u/cpgV1nKgy9\r\nnUyok3Fhgl0R0UM0Az2GPskd6Dc7zH/kCabtIm8j1JkmqSSwtXmlcN0vESRj\r\ncnk3fm7h6SwLaGmATpDzbwV0DFTzjrlIH8+WB4kZG5nGSOMHvE/E4CdIb9Wm\r\nyWK43gLbqVWFoi9Maiddn5X8dZzm6tuGPcnilD9GyEJAmngns6ipV9rMPdVG\r\nHX3vH8S+OArSEvdMdUBiZ+QQ2qJuDPd7ZsL/1DwcZQ7nbk+VaOMkBkPqolbq\r\niiZjQcGW3WFkRX6ko0y4ds89btwwSreHMs0/1jgYevm/5+PZkLJQHPCH/s3A\r\nOgSlmGfbN4TyA9Ydwy6+MR5NUZFnG24+8tnZ89K9MSHh/i5KTGbsjfUbJe09\r\nalw526pmDhxib77al8283jF6t4UqIMQym8wZqjZN9vO5M6eXZtFIyzaBE6Nh\r\nB04mPUCR/81kaaZH7jXLTP45CPkzX3T4iMB8O0Ws04WZ2PftpEcfjXIHTjeQ\r\nXPw6Lm3q7KAlhk0UM26D3wKJEY9sL4WWIjTTgPBB8rYRQYL9xrmhjppgMZAw\r\ngHYGcczgAXVqJOP9QKmwbAKcB2on/2/0m3kRj7mO2oUUQT0XsLn5c4IOxQmP\r\nlgjjgAvKSggjLcZ5kMpp/69GMHMQr9n6WOg=\r\n=Pbt8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"63fefc99b30106d8aae83dccf8e6e8073043a3fc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.81e4cb7b2.0","@material/base":"15.0.0-canary.81e4cb7b2.0","@material/shape":"15.0.0-canary.81e4cb7b2.0","@material/theme":"15.0.0-canary.81e4cb7b2.0","@material/ripple":"15.0.0-canary.81e4cb7b2.0","@material/animation":"15.0.0-canary.81e4cb7b2.0","@material/elevation":"15.0.0-canary.81e4cb7b2.0","@material/typography":"15.0.0-canary.81e4cb7b2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.81e4cb7b2.0_1663945707893_0.5020178955381596","host":"s3://npm-registry-packages"}},"15.0.0-canary.aa85f9413.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.aa85f9413.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.aa85f9413.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5cd4fb02c17a32e16ae607475074db2f616af053","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.aa85f9413.0.tgz","fileCount":44,"integrity":"sha512-0GoCoD2kS0ZspaNzmU2+lg4/2Q6TJab3k3Mc2Dxy2zSntkQ/IYl84Eev7W2POJSu1DAQoVeN6Bm/T91XjKi45g==","signatures":[{"sig":"MEQCIAlxMUHzlyhgDYnLhbNbpK0sRzOTEFu7dc9Aw/YkUiFVAiAcvoS7Mzo6u6Cp2LkkaPfhGyGJzbhHuUp84a85HyBvRg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMefaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrBXA/+PS3aWQmNkh9KmiYZ01NbuIYF6dOi6rqTelLVeEJjYILC6dIJ\r\n8zz0V7YI1NwZFoVs72pd+v126C6J/ugqZZP0wgZ3zEFOwjn4AgB9mIUjKr+Z\r\nSXeSkKc4OCzmxGPvO/NxiMOXobn/UlQalseFi9gn3CWMlmrbxPhjrBm6LIi5\r\ne7nGBmNMfRy/AlZp4kKwmiIwwqn+vsW/KGfbiRPepEG19bWtAAJsVZmmvJ2D\r\n9t93HLO5a657WONjK5vJMi70A+8Okr0uHjkbeWNLJbkr0azdZYR4EuRXZFI0\r\njrVlHC+ARixiNb2tkllgwN5gCRGpN90kHa3cyfEehT24WhAJfq1+A3Vxzgab\r\ny19+sL42//nWQNkrZOyAjNTp/m+jwdna+7QRmGKkZpiMAxFGZSww68j0j+99\r\nUwh0qw0B8X4HotdFeqRu48a/jCxCJdZBvtYlzvPgDV50oA+m2K4WV3mlNZCg\r\ngfDSlQYMM6ZxBqfdyNyZGaxdldmRQJhp2IWaF81CD14lXELqJudxngyem1Nx\r\n4vgj9kZkzFGlv1olWMlFbutAmv0pVufOMUgdwK8HYMGZFCcZrEBYQkMLB4Rm\r\n4KQhJ0JYZ9J0vNV2h78Jk/WFXaKt1hjYrI4VEy6J2sXqGT4w+LzFVXbdbzN6\r\nmpWbuyopiFVcjXGvAlLBz5IoUtpaEkqGgfA=\r\n=y+cb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"73f7402d0fd839f22c2c3bca08292a66389f5829","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.aa85f9413.0","@material/base":"15.0.0-canary.aa85f9413.0","@material/shape":"15.0.0-canary.aa85f9413.0","@material/theme":"15.0.0-canary.aa85f9413.0","@material/ripple":"15.0.0-canary.aa85f9413.0","@material/animation":"15.0.0-canary.aa85f9413.0","@material/elevation":"15.0.0-canary.aa85f9413.0","@material/typography":"15.0.0-canary.aa85f9413.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.aa85f9413.0_1664215002538_0.677977753302097","host":"s3://npm-registry-packages"}},"15.0.0-canary.7134a7752.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.7134a7752.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.7134a7752.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7512c400045b0d2688eb37b32179c8b7d3f98b84","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.7134a7752.0.tgz","fileCount":44,"integrity":"sha512-E4dpoYhzXJTQMeJ8TkTZOzZuzEB5jCnsmb7B4p3bUWm4DwCzS6KqpaIr2Z8YhCn8j2uooJm06PW9mb2GcZWzoA==","signatures":[{"sig":"MEYCIQDSn2Jy1i/sok/4oOzHqlCR9OyNUuNmV89z0cD2tAfIUwIhAL18gYsi8TU2IHBJK6/jEcDqwjOstnqjV6NUkXCphAO1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMiBiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrt0g/8DX+BS+tX1mYmEO93WtEC+bYxpvAUkL+A9JTLMn8uMo8TD3p9\r\nPe8AbhzCsMc2uwQlyiznt+GR3YHTvv0Un6PlC0jGGwnyeg4vjuegb3BxfQSV\r\nARP1AnQxztAIzjP6SoaHmD0pz/523lGs0xJMRLNCKzNPi4TlOOocGnWe4CgS\r\n8BiDiYpIFWiDcQ4sKI377utSnn3yFA+x2eGwAZl3oapd1OG64UIJnczwruPz\r\ni2t5NM0ihmjQRESLTmYplWiCOpSiSqjdNVjrrwctXWVs+1hJgzci49PcGPg4\r\nPj9oJHJlGNibpnpOkTwRdobgMDG+fz6drBEDInmrBz2uKM6mZRDHYUdjpqYg\r\nlSsgYIijKTPj2l6mpEXgW0waqTKU/ysfnS8K2zH2N5d9HG1/c4u0xZxbeDcK\r\nrTc/3zhxf3k5YMAVSPb5QXw2+d6T6mz/NgRgaV4J3A+J4m6mdT/XE5/QWEra\r\n2DwA0H9WNuUEBcxYP5HD51TRRdRny533zv0RxKW/toStR8qzOiBMwvQSAtDR\r\nQfcxgRuhLpZUujKPgDI07VEtjp4wC9SQXgtS8oweYcZ3wyDeatRG7+ZbA9EN\r\nrDQJY4X3q99ZfZ8fEVrRFCSa6kGZBT8mlbC3B0CJ7albtkwnKXKDo1LwVhtZ\r\ngJi3q8oIFN5MTa0EmgUBJjDyEjngAYPB15Q=\r\n=UnWD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"31aaa09805eea1ad3a30e7b91a8bf8ee8911e80e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.7134a7752.0","@material/base":"15.0.0-canary.7134a7752.0","@material/shape":"15.0.0-canary.7134a7752.0","@material/theme":"15.0.0-canary.7134a7752.0","@material/ripple":"15.0.0-canary.7134a7752.0","@material/animation":"15.0.0-canary.7134a7752.0","@material/elevation":"15.0.0-canary.7134a7752.0","@material/typography":"15.0.0-canary.7134a7752.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.7134a7752.0_1664229473870_0.867970287741213","host":"s3://npm-registry-packages"}},"15.0.0-canary.70b8ac16e.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.70b8ac16e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.70b8ac16e.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"efc950038e98de2fb72c229b2ca200438128f5a0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.70b8ac16e.0.tgz","fileCount":44,"integrity":"sha512-RI8lOv8PL4nL7Eg+g8YJOJdAkif7jhmZmlHKFt7ZwgZcJoWAxI59/5chPGP5JNeiTPGMVwR9/O9b29Vamc0KUQ==","signatures":[{"sig":"MEYCIQDmckLCC/ottgg8N9034UuwkI282SGCN35PUh4kOEefmgIhAPACuKHn7h39zV3y8KNFoo3me8b2d7jJubrLm2Qa6UzZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjM3z1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqDcQ/+NQXiePU6DIvx2KO6TykZQL5uVd2mJN3HjA0lJQ/cTIQyqEba\r\nplAV423TVUsgtwAMFjA9Rhce4cBEqkL6xJpYM5IkXkGazqY5fcVduqnircqA\r\nsvytRaVsehh4ulIGT/hNqZSVEliZJ+n0w/YcHwY8n+cjR0wuUlfZ+0hKMOcu\r\nH1/FPdk73rknNFxjrq3LEVyRQrhwP828UHah4g8Wv5wPduu3GyNuk44si6w2\r\nvh+t8M6bemPFl90tQ3dKBP3Bo4MuIIIgqrHao+ti0+p7p45Systz2ccwluBE\r\n9zmjgmEpt5ujigJBhsQ2PVUoJiMb+QpYlGCnR4tYWZzMsVmyUfAjwdeeq2q5\r\n1l+6lzhX+i9V1Q3luqLVMgpo21RAsMGlcoWueGZ1NgMUVxGgHIrTWXJ8raCc\r\nVsWIPhk/3OlbAyNJNkUp0H3QyBUU4FRjgggGESMq52fiWyBDVkJcYQCIEZzO\r\nFv6A7qlvPvNwvPcizZZ01YXiL2Fr/mRnWLevUDELY80PmYs2csc50UK1Q4qh\r\n7jv0YWuO6Y4TcZP3cD/b6qLh5vAQ/YRynx+jZ/BpJfsHTVuIXHZRxypWhtld\r\nfJ62SkRdIRQ79PQVU9oxMnWaY1ifDBisNtzNTUdfL3w2zq5PaN9CRGxYNjCs\r\nfCcTtUe04ALoyaaGfd3SjPO03OHso3AYkgE=\r\n=efGq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9f9fb4c3a4123798d2b993ab287cc4bb7e8d7014","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.70b8ac16e.0","@material/base":"15.0.0-canary.70b8ac16e.0","@material/shape":"15.0.0-canary.70b8ac16e.0","@material/theme":"15.0.0-canary.70b8ac16e.0","@material/ripple":"15.0.0-canary.70b8ac16e.0","@material/animation":"15.0.0-canary.70b8ac16e.0","@material/elevation":"15.0.0-canary.70b8ac16e.0","@material/typography":"15.0.0-canary.70b8ac16e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.70b8ac16e.0_1664318709293_0.6688210351824262","host":"s3://npm-registry-packages"}},"15.0.0-canary.c20d74405.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.c20d74405.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.c20d74405.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"909058f28fa340b7050b9127c231e27aece47631","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.c20d74405.0.tgz","fileCount":44,"integrity":"sha512-Z7j4yluwgIr+cbsiJxaiGYk1+ERLE2dpYYCGh9/2Ni2D1sfUNvJ+WCAHY2tiz4LNnAP1MNoyooWSoyeUED+KGw==","signatures":[{"sig":"MEQCIFPKOF5YinWyCNCe2W6C/1mqx4d2/ytcAN4CqVxnnTSOAiBfp/oubE2cQ75Wtz6aZyGKO4Mm6lGaXhuxwUUgeEbhrg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjM4fSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrKBQ//StE1wOZV+SKp60R1zh0COtYfENs2TVE+34YJWNOP/2ntgrwC\r\nKh0wZ+u6LSZW9HUJRgkb9eHOkAYvCyn6AHLeRDtxeBt3PSrz31IMUrDYeIuM\r\nrvQ3OwPeMjYaCaEel6TBtwHi183nml5WgwaUIZl9nVoKHqMRB19w/Y4wpAFz\r\nqmzuIc0ZHiWLq4J63Zv5bs6McUUvwark4exNg5LOANudiOM4/fKTPfZEAqPc\r\nsmMpRR5BrS/oc1LwsvOxvc3WkLKeJCzsgNy37k1VmUT7qIZZINwRoejveWdO\r\naxc2EpSRMlyl1Iu4ddgnICKhagero2raTmYDUlTZA8ae8n8aGigT5UmJGZFJ\r\n3craSdyu8YM+TmkFXsbSBoKDWl2/C+H/pmutbAgcO72nzSKW4qOZi2wMI0E3\r\nEjV8P3eSJjtP7NgIrVLbepbSePnfS/bnMC7hd04Li+wtDdy7tI5qx8Lu1yLW\r\nMvE9gKnGbqhUnublz5ZbCdE9r9d2qnfOFGDiE0TKYOQni9+p/YGoQCCSqE7y\r\nvHgqd1TlrcEODk+4eBJqhHYb0mHdc/+ZDgnRP57TP4cAm+C46XATuSRb400y\r\nyh6jgEgKkArtzfPq6IKSOjUg48VhTtOt4HwvlSDDlq2+comGOIZh4SqVVHdm\r\nvDaXa05tfpLXXujYHjTVjbKexYIwTLm9oBc=\r\n=5Ngk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7e1c6f9d7e3c90438265d23d710997462d087d78","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.c20d74405.0","@material/base":"15.0.0-canary.c20d74405.0","@material/shape":"15.0.0-canary.c20d74405.0","@material/theme":"15.0.0-canary.c20d74405.0","@material/ripple":"15.0.0-canary.c20d74405.0","@material/animation":"15.0.0-canary.c20d74405.0","@material/elevation":"15.0.0-canary.c20d74405.0","@material/typography":"15.0.0-canary.c20d74405.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.c20d74405.0_1664321490182_0.06062239897508381","host":"s3://npm-registry-packages"}},"15.0.0-canary.f033fc8d1.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.f033fc8d1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.f033fc8d1.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7d0decc42d197ca0a6e66528782eded7e1421325","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.f033fc8d1.0.tgz","fileCount":44,"integrity":"sha512-FNTAD9G9zhB3iFHuU7eSmsuh2xq0V4ywRTky3JlFsBF1y/JLve0i2q+p/Z7ZrjtFPITQtvsayL54WRNZx0t2Qg==","signatures":[{"sig":"MEQCIE+0Rx7FrpDERrf7UVLSxAm9HzqpkRHzMlaoPlq1bBwVAiBbBo4766DQOD4Xt+IMqI4m90OHvIO14k6CLfRECTNGzQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjM43vACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqDCxAApEPp8zhSIKzZas+rG17XaoMYY/TrcncXH2u79YHKTXcD4wy0\r\n9zfDxyNNwFPBxHoOWzxLwkUMUkFOQXcn7cW74YLlOy2OA1QTDV0LCWwGqlyj\r\n2HMk+P3uNLlfs4vWtl42t6fXQZ/K1dPdNGj32jj4M4+md43QK4QF063OLuUf\r\noVYnE4y8Lkyx8mNJRA5bU9p/QwE6ON8bUxPfQsKtTTqkY2kvr0K1SZjfSJ/y\r\nzIVXAVUAniy3jgjJx+GZVPQCbNCA64UVwMSle0kUdAW8MQJ17eEvw08oLnQz\r\ni//dCuAY/Ts6m8VYIJ/NcG1pyTJaCsWjaKwDHdwHxX2+LkYVcCiGd+ZaCIN5\r\ndlUkAxZn9UxzkCLV/i4C6GsMnNUX9yuZL++f5A7I6FhOQeULoxwKIGr+pP+E\r\nA3Ml/jg2se41ZxTzgNBKCEKVeYoCeDcfXCJb3dhpboQGPx5ejk3d5C8GB0Bp\r\n4tPsjZ0l2CuSZI986C8gpDdgegSAsT0azrZcCuTEiskiMBtYrrfyG8VRHTfQ\r\n0gGo+8+faolDXx8SnInTeltkYftMsIUuAGKkOaoT/MhsDInStHcUjIcrF+TN\r\nicOhmXUAKbhNy85EmXqBH8K6s9eMCmT7du2JTwxYbkBVb/FVkAjv4JJ5ifFT\r\nVQoMzBZgSOAnj0sju3l02QMQElY9wFa5MJE=\r\n=7b1f\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a658683d647364520f9de8a2d51f15913b5ffb78","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.f033fc8d1.0","@material/base":"15.0.0-canary.f033fc8d1.0","@material/shape":"15.0.0-canary.f033fc8d1.0","@material/theme":"15.0.0-canary.f033fc8d1.0","@material/ripple":"15.0.0-canary.f033fc8d1.0","@material/animation":"15.0.0-canary.f033fc8d1.0","@material/elevation":"15.0.0-canary.f033fc8d1.0","@material/typography":"15.0.0-canary.f033fc8d1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.f033fc8d1.0_1664323055452_0.21692605054328307","host":"s3://npm-registry-packages"}},"15.0.0-canary.8d7ae912a.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.8d7ae912a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.8d7ae912a.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8d578ac79cae5fc400320ce4797c53ec150586dd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.8d7ae912a.0.tgz","fileCount":44,"integrity":"sha512-2QWr06dcIJpXhd77hVAPCbHfqLXxCUyWfnDDdxykHMKNhOldqHVAXBKGBqoBSIH9pWruAKyW8T8zWrDfhA4bhw==","signatures":[{"sig":"MEYCIQDy+hvY5TqNk5dFgSUZ3eOY/+trJFBRjv0P4aLkJ91GKQIhAPluwBnIeY3IA+NNtO762QWDUou4GeywWQW9tLPbtoH7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjM/4kACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpqFxAAnyeQC9qfQWPwrFlPqBI7rQVKUtJr3oImaVZ2xoTWPCVsD8zH\r\nn9uW0K1lv+zfVxMdleIy9YQgac0ZswtS+0HHo243xnH2CdnSblMpWFmhX7K/\r\njdiXyTjxm2kYk5vOJCiwQMj3nBa03HlnGmRoprjzxMPlzIJFejXI9/ni/x4j\r\nrPO+z/LzayIpSEjM1UvjRLerqY8oFF7ojMEp/8FsBPtIkY1IAL45jmJHEDtu\r\nOSHXSvnleOiAfV2VVtVNxxl0LLWiAmDWnoXV76ZUugTPOSuv+ZX/pCuv/VJk\r\nmZbdSisrn2E1qxaGiGzqThsM15kYU53k4K/NUmCAuHsD+hIw/NYRsa8s907G\r\nAh8rIYQ5kr2WaPF3q3gv503k0hS0qaO3Ov2/lzU/JA3i/CkvrJbtV6GvEB+n\r\ny+1hiHjskfKGBYYY4Mbo2a2rjGGqWTkBWQiaCDX0tm03ETm3ALocJ5go+vBR\r\nwzCRMNsIr5hKU+KQeUIld7YHuwrYT9e4I7oNVGp7hCmj1+Ijrm7WeOhjR3PY\r\naHBUyMcYniWdcUp4ApfAGRMQza6USpI2CuCNVdKiYToc9+EDNqeXsYSZLQmx\r\ng6IOGNHdD94hkPeyTZRk7Ih14y8zgi60Qz9XF6cC9iMpiMVBQ6S6MsPvJ1s6\r\n7T920nyDRa9TMnfkcvOkhUrxk8+oxSXKT48=\r\n=PDJO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"26b2ab57ab7cb3eeceab31102ed1b6cb133f4cc7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.8d7ae912a.0","@material/base":"15.0.0-canary.8d7ae912a.0","@material/shape":"15.0.0-canary.8d7ae912a.0","@material/theme":"15.0.0-canary.8d7ae912a.0","@material/ripple":"15.0.0-canary.8d7ae912a.0","@material/animation":"15.0.0-canary.8d7ae912a.0","@material/elevation":"15.0.0-canary.8d7ae912a.0","@material/typography":"15.0.0-canary.8d7ae912a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.8d7ae912a.0_1664351780087_0.31870070427875064","host":"s3://npm-registry-packages"}},"15.0.0-canary.db414b864.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.db414b864.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.db414b864.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"780aaa3974b1f82318d11dab1101445ee7480719","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.db414b864.0.tgz","fileCount":44,"integrity":"sha512-aq0EA8nNTjBT9PrMvNJNvuLTEwcOuaGiGm3RI48s7sQxXS3VeFKG5/lIu9bM9617YJlybMD4eM30wDeCRq89aQ==","signatures":[{"sig":"MEQCIApqRlq2BgfAMev6YPUFjBAAqqwbPN8vIs+OqfEe9PLFAiBbxPAJmD5WTkPzshsdPhiMMFLKbBVqtiR0fkNGUrqlwA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNF/KACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqbCQ//d2FUFbEo75fA8KXCjS1VajAOYoq2lzN/Y8qAMgzBZbVHCRdq\r\nnLlbscgKOJCmr/yf6Aq8ch6pi0Ez/6OjfEQAOtqLZ17Zz6qhPE62LjO560EY\r\n5JzHflNhrwLPx/av6/vhO2fnO08E+aNiiHaEUlj/X/BNZUZVOGFS8CTjnd44\r\npND25wiHqnlQvcg0st8mEyI/mprjEG5nvDWhSvW3Rmvj4bZWynZDAK9O/qc2\r\n0UhvTjpSr53aJrDlRu025W8ovDEh6C18RjJDEfmr7eQ58m60pt1UWJ35XS5o\r\nJxgjTwwGKq7c74l+SiZWmssgUhvxYY6b75HPcsrrcWElU8NAKVsxZWhOs53j\r\n4t2gaQhE/3fDAogxvbrgbeA24QKi0qwKeHvi/yNTaY0A2gZdUTpF5AR3ORiw\r\n121Ap6irhoggtlYR5hvfSirEeKWfHrcLtWwJw1c67JN8XTzyqvuy2EnSap9f\r\nwDqGAwJlxl6FgWhBiqmOvluKFaFPRF+jvMuMY9GLJqCPMsIwLISx+586CltM\r\nzOTxwdJnllOlFgHm3KFMp3R9PF1zQHMwJZkbeGt8DlFLuHnvJWgD99qz5R3T\r\nZlQklJyLBkIgpu6BCko1iFXqqrC2x8IHXJIscw7lFrVeYIl+UnvEE8B/eOKq\r\n6EJ6SpqJRpZ7/0XjErkVg0B3xjwpvj5FgmM=\r\n=IW1K\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7601f089a2e7599728805effc4e9bdee40008aa0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.db414b864.0","@material/base":"15.0.0-canary.db414b864.0","@material/shape":"15.0.0-canary.db414b864.0","@material/theme":"15.0.0-canary.db414b864.0","@material/ripple":"15.0.0-canary.db414b864.0","@material/animation":"15.0.0-canary.db414b864.0","@material/elevation":"15.0.0-canary.db414b864.0","@material/typography":"15.0.0-canary.db414b864.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.db414b864.0_1664376778306_0.9747249840509993","host":"s3://npm-registry-packages"}},"15.0.0-canary.28cc6791f.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.28cc6791f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.28cc6791f.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2cdae9fb7f90a596a136155b81f01af59aecc37f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.28cc6791f.0.tgz","fileCount":44,"integrity":"sha512-J4T0tO1i+Xk7gnQoOPjpPtqeDqcIgjTSQEM4NrTGYeCEaZC6GiVmBL7n3n0TJ36lsh2FnaSc6lPKKRt81VrGEA==","signatures":[{"sig":"MEYCIQDwo3GdEhVmhNO6zJpDY5rjiKgKcrrnmw7wtgguBKXjSAIhAKznVDqmfp77sfV5pHJqA6ef+lVe1AMo6A0rXfCzd7eU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNI1OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrzJw/+Mp9uBnyAuBh4socsK5PinYEf8i7SOqaTM6fHnyHebqJHt8Br\r\nPNek0bxFf6ikdtjDfcAVBh732MzGeBrpaOhwAm8Jce3w1qk2WviPLcBd3qy9\r\n9NPp4gVN0ouItfDjuLEt9EAtD4tER5ydvHADOi7+tntZ77S/bRa8g8FOlEsQ\r\nKUHnB/9PdN98r1Zal3ISTyNYeEdzS5tpcsyrXQTcpMEmg9bUyG7tzJPsWj/C\r\nsCFEDNZogb8P4CuDHomrBOafSTRvhZdH6moC41/EDU1/oEdbZarUmDAmHUGb\r\nLZJ2TIwGe030g+DrmRbxBsjUv1fHKbjj3ZZmcNZ3M3Krj3T4gWre5ZglKEZC\r\nQSyVNOTmJ2XwbGhshuK3uh0gKunDD6QIm2A8nLlUpiNNRPPtmGDIx3GdVVVK\r\nGM+RATiiKHA4tUM0fOrARFj+7HcMXaeBqlq5cmONqYKP9CvWOcUvO/IEGwGL\r\nvYfDEOjvO+eKWJGacRt1lMFK9VKE+sS7Djg80C+djPKroZccRxMaXo1FGSFK\r\nrc7Md08MohKUsbD9Bn7by7WC9JUDUERgrjVWViYVrDvvMg7UT9pB9LAooYtA\r\n3eiylLbghmPsEzQjhMFxhR56lEHIwdax4aX2DdKBFh/IqLz56yk9R8Ntcun+\r\n0/PA8hNLbCey1MliFmYGJ25+hJpIy09esyo=\r\n=/yeJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d2dfa219437727922f4cce877090f9afdd87edc3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.28cc6791f.0","@material/base":"15.0.0-canary.28cc6791f.0","@material/shape":"15.0.0-canary.28cc6791f.0","@material/theme":"15.0.0-canary.28cc6791f.0","@material/ripple":"15.0.0-canary.28cc6791f.0","@material/animation":"15.0.0-canary.28cc6791f.0","@material/elevation":"15.0.0-canary.28cc6791f.0","@material/typography":"15.0.0-canary.28cc6791f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.28cc6791f.0_1664388429888_0.8555773450829696","host":"s3://npm-registry-packages"}},"15.0.0-canary.a515a2d18.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a515a2d18.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a515a2d18.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"911d64ecd3a1d84345b28299ab92b17f6aa5fa55","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a515a2d18.0.tgz","fileCount":44,"integrity":"sha512-DHb+oHTZsX/3+78VfxLCfTpffat+TA5IxUvdYFdYhxpJPz/MU/j/0/7EMtBqEjuPzXvp7iAHniaecBmoElEXxw==","signatures":[{"sig":"MEQCICxHSXnVLcBRm45Oh7jB6pVsO51a+hbRn6q5kJ6Rpo2yAiBlTg+9raCtWkaZabkTtXOuDMA4VNcjWT+Em6OdDAAKqg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNJjBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpfsBAAjXVbTLikdAZz3vtM0elZhImNGgP2ARlkl0EmOoFsqEZzWcro\r\ndUxx9A/gipwA2rSaeV24RVueY8yEXk2GosEquJGRcHCKLdTg3yFuiNoFpuJ0\r\nuX1z3OhfXfF/OsvBGGxI8wqrUwJCsl878oBOncZJ1eY5ANlj9xs/WA29kuqi\r\nawWBBLruw0bI0lwR4qlL3CHF459Ng/EVu+skU1yIf47EliiD7msdN+vqvc6I\r\nqDfFzqu6AXp43fPxuQw8ZH+Sjt1i8OB2Jyp0JtYr2IdI2gdeOO+aR6qAMUIl\r\nwuq01OkF7R56XiUXIP9UAOhJkzUOP5W9iSQbtk0GAWRIvJL/iS283GZdjsRr\r\nQyvICJEebz3JkVgia4McncJNX/EBUOf9x6Z6l7DlZope92JZ5CR+BhkYuyg+\r\nHcCSTiyYurT9agylDab1kshYJzHV5Wn3lBpn0GFzPqAaesOcok8QQXirnoOm\r\nLG0pbaJ6r62P3nRrze4lcpmhtjxYfOlo6puH+d1uL/LxqyEpHLwmONpEyV/I\r\nuxBY9gpu3iqY+eOYHEcAnhRQpxOAOXBRT2thM+AHMVJ3fUeAyog8zo7QcMx9\r\npxGX7RgWM23tYeKxOjNdhRPM1rDiVQvO4Y5AfEFenraKwbJxWxwAOmyoh6u4\r\nv9jfsFNxgsQzAqpit04iWHraUArs3zKtWFE=\r\n=d8vv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b634251c1f816bc66bc81c76758fd339ec40a76b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a515a2d18.0","@material/base":"15.0.0-canary.a515a2d18.0","@material/shape":"15.0.0-canary.a515a2d18.0","@material/theme":"15.0.0-canary.a515a2d18.0","@material/ripple":"15.0.0-canary.a515a2d18.0","@material/animation":"15.0.0-canary.a515a2d18.0","@material/elevation":"15.0.0-canary.a515a2d18.0","@material/typography":"15.0.0-canary.a515a2d18.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a515a2d18.0_1664391361161_0.5638206327665802","host":"s3://npm-registry-packages"}},"15.0.0-canary.ce9523167.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.ce9523167.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.ce9523167.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"69de656dd0690243781fc88efef87865e9d8ad3e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.ce9523167.0.tgz","fileCount":44,"integrity":"sha512-N2e0G2lM5rDdE5HRG9i7Ah494F/rJ0t+nJnOfZRS2dHBxmgIk+Rh4Wvv5gAh/7cu9dXgrnM8RyQPXf5sLerqww==","signatures":[{"sig":"MEYCIQCXkdlDidcsen7eGS6qHFvTsEC3bdjwUH/xAS6uH3KdfAIhAIeLYawoaNwoWPVpP4z7pAIj30FSFHkOxeGh6xKTUApo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNgCfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrj/Q/+K28BPUxbwEPF8wNcCSTgWfV8wqdGx0NcPQu3nwnrA2RsElO5\r\nkafSx5TZJADdFRqTH9Pe+jWdB3nrdq697xibqSJlV5EfaTn4/5nShxqTF/2d\r\n62TFlkJPGfBC+zHHwWyKng/iwpUM4Ypq/RHiI82XtSmEyJ+03ljEsvv5xkNT\r\nk3OoihomL/h1xZGuJkIMy2tFeSKzozqdu0kwpujg0OpFGh9b1zK66Iu/3kqE\r\nuFP47qAXH7MaCVIeegU2RgPrMshYz48uCdJw8bkbbE5fjh8OyQg8rIcP2Was\r\nDrbDTxT0R0eEDeIeyZK+tvmFDlUuL5Ou2z9Mc8zqrM05pGWGi+V8b46GqIec\r\ntvG/G2hk4uxu2T3HwvmZQXu6wRCgyxiVka9lMIyuCkmeqNvtOYyW9Tv2g7Nv\r\ncFtec4jDONvNJkEltR3zOUCtnSQynOfzXexlAJ+BsFb9urRs4CY/5vgE+KRq\r\nuYXbw/DmpQRdZVwbBi0E5Il6lZbmA7BwHBbAaIeluNII9qFDuNtI+WtguuLq\r\nFgF36g3xuDSZFSe3xb2K1IW9Zr0x7SmakZju+k2ex44GckOSgXQRiMDtwzm6\r\nBS4t8PWas8KINI+VS396kPTauN9053WMqaTrrQz7uZ6pJl16mHcMkNVTAOhE\r\n3shMjQnhVMaUnIjNFS6zQOMEyS443Z8/qIU=\r\n=tKNn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8aac5a80fa36dceacc7b3a6e2474218f9092a107","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.ce9523167.0","@material/base":"15.0.0-canary.ce9523167.0","@material/shape":"15.0.0-canary.ce9523167.0","@material/theme":"15.0.0-canary.ce9523167.0","@material/ripple":"15.0.0-canary.ce9523167.0","@material/animation":"15.0.0-canary.ce9523167.0","@material/elevation":"15.0.0-canary.ce9523167.0","@material/typography":"15.0.0-canary.ce9523167.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.ce9523167.0_1664483486718_0.88494651681375","host":"s3://npm-registry-packages"}},"15.0.0-canary.b2310f7dc.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.b2310f7dc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.b2310f7dc.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"20e46b1b2d8b857470748b55bcca9dc1c514d3d5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.b2310f7dc.0.tgz","fileCount":44,"integrity":"sha512-iqSGT+do/MIdbiuKPI200j4YFfUnEaGfPHHN69apY5gp+E244PNBNYr1ha2p5lvmP51g0eVzbjESifi7N4GNHw==","signatures":[{"sig":"MEYCIQDN46PFDb/9l7hnTrl72d1EGgaEI3q/gJNGD7WwWxBsJwIhAO6cwcGBYoawLFd9eliqGGhgtJZhBc1oIzkxNM5RGKOo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNjTMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrWlxAAk6DE2V2QFc6ssIXSsm3v6j2lDRw3bEklwx18R5e3xlQYnPKT\r\nUIn5Ava7gri/NT73YZt8Pgvtp41FZSNXPHSuy9KUNi90lUrRvOQKVJWyphOB\r\nkHMmRUs4cHnGrXLhmCKxuC9dOWYxGGyu8boanUBcnbOL6GPbsLkAVdQE2HYb\r\nLUWxS/xWhJ8+ku+Z3wZ/NLYx9CmRedNzYmICBP3v9hSDmrI4YJD420/jKvRv\r\nikwi97d1CdmhSg0bjL+9ndb7sD7uP2Tk9t21Q/fkhmpFwxkYvT1rGbugHz+f\r\nnfcNyPKD/GitPrQyFSS/X+iuGogQzwN44dzgSh8CpE4rTJxbEm0Qol3UJTPB\r\ncw6R4WUfGNuHAdLaRzqWPCzcUzThkUbS7KWYDhs7vqSsegPh/3msiEWhPElE\r\nSMkcIihwyaJhws953Z7dusT00R8lSa5l5VWNiCDDCerPj7hxifcyyH3u+bnt\r\n7RdvUR3nljNqsbBmVCB7RbxYy2tuwj6T53m5sPTPcY+BA+hleueQKr1y7XcH\r\n2XRfTNxtE5f+78vhdg3EILM/BKdYv74CdHpRtT1EnDukQsg3xeHr+aZ1LBwI\r\nUJkEAQ2jfCnPeBpgz0O8HcKe8HkXtsiPUEVo71lErAVrFIJ7YFKci4uLR+JV\r\ntOEWtTjJc9gAbtURRkn2U4LGGKRg5t2FKGc=\r\n=PsyQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1b1f8d124dcef049ff4f3730b930eadfe1e2a58f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.b2310f7dc.0","@material/base":"15.0.0-canary.b2310f7dc.0","@material/shape":"15.0.0-canary.b2310f7dc.0","@material/theme":"15.0.0-canary.b2310f7dc.0","@material/ripple":"15.0.0-canary.b2310f7dc.0","@material/animation":"15.0.0-canary.b2310f7dc.0","@material/elevation":"15.0.0-canary.b2310f7dc.0","@material/typography":"15.0.0-canary.b2310f7dc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.b2310f7dc.0_1664496844246_0.12386248093974772","host":"s3://npm-registry-packages"}},"15.0.0-canary.a44241e54.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a44241e54.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a44241e54.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"651c52d27281d84c3cd1ef67bff933ca0ac91bdf","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a44241e54.0.tgz","fileCount":44,"integrity":"sha512-2qwKwLxD9wZlLmLVhThP+8KR81xvQsQemAdRJ20Z2Pllzz+2QesZ/cRfDFlohEAEa91l2nHnOD6od3OEpoastg==","signatures":[{"sig":"MEQCID1AHOMCllZHN7WcDKuTnM4wmXWj9PoDgmmo6K+rjMKlAiAalBSonxEMNYtR2pUE+Ko1ApZX/6kp/MCDwfZ5TXwQEw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127521,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNqcAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpeIQ//eIbeD0ROE9PkQISk3iFpJ+mPsZPz7nPuQ+eGL15DIp98h4Cm\r\nvBotDhtRJxivQbZPGh47D+RS7rlXlGasw15Z0HmKO3Bic9uj5FjT/2kR/pVk\r\n5lDAbTThhJiybbwrJZS/tmEv3Fp4RYgS8dOfUNxocrs2mPwzt1zIYX8axv1d\r\nMXnzEW+jBp9ZFYQB1aqRU2vp0foOqvsjUulm/55497mdmNZzlwFhaso+KLT6\r\nYDtW9Rkq+fK31ZS9AzY/dKNRETBd+7uTu2flZ47Pm6j0rX3fvD90EquJ+B0l\r\n4Q/MjGjN8D8WOgUe+K1vLVLcLkl0GVJw8tCaSpsWvJ/JfeZizIChe7wYzeHv\r\nFsJz/WHR4poMVXSoRKviNs4Q/uUmWZFsob7nJ6cLPclrbDw+RcMxv5P6IyYf\r\nmDqUVZiuyJq9MYSANoqCAOa4mZKuNoS8FCxgR2CbDZBhX8WE7VMTr24h7PsW\r\n9CutFGJKB+gh6b8Zh3F6pSuk4Z3hwMlecU2qUk2XfATeqilHn31W+mjj06jq\r\nLWP0NB/wvkOiJG7pGk4uuPtoY0FE0tm9wo3I+O4qXq8COG+WitmVcEPIzVkN\r\nUo1kEcc2qtEYtjuzhLUdeGYN87vdLbRO8hxuY66Pu6VSCAm/GAbDivVhzZTs\r\nK0Ae+ZNKBfEacYTFl9tt2cIHHjHR5D3C8ww=\r\n=i3C5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2a5fa6460bb58b3b2866631eacb27411a12f8d21","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a44241e54.0","@material/base":"15.0.0-canary.a44241e54.0","@material/shape":"15.0.0-canary.a44241e54.0","@material/theme":"15.0.0-canary.a44241e54.0","@material/ripple":"15.0.0-canary.a44241e54.0","@material/animation":"15.0.0-canary.a44241e54.0","@material/elevation":"15.0.0-canary.a44241e54.0","@material/typography":"15.0.0-canary.a44241e54.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a44241e54.0_1664526080467_0.9118327160359969","host":"s3://npm-registry-packages"}},"15.0.0-canary.0ce81e115.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.0ce81e115.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.0ce81e115.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"63d42050f2da99e7ecedf2f0e2f8a67b53ef5c92","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.0ce81e115.0.tgz","fileCount":44,"integrity":"sha512-7VXdCvEOwW878sY/sZ/cshUrL30FGJNffxT8g0opfMJtYE9Rxrqj7p88YGyajETlE/cicYsvLSVOskIppv4ovw==","signatures":[{"sig":"MEYCIQDNe8ebeZLMo5iGXAwgTYa0yac1YUJ3Rm6Cw/mB+Ykl3wIhANqwWaiSFSTlpXR/vTiv8iT4TLcYAiZWzjtgbExkgvhK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127521,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNzLzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZsQ/7BXgnN4IXFIirbLG77Y2Oa+UBs9cz1Uu+/ZdCH7GbxgF4HBkd\r\n2FbLh4KGFPuotGN0MM65zOMBJBhaegupgFqz/tmvdTuEQ7Ggkyb6miSKmSqT\r\nBOpHAsz/0M/OKpXNJM+DA01iKKW3Jgfy/AdSG5QzL+I1lox0nIqBgLZu/W4d\r\nvdtNVPJ9DgY/allREufiWYkTRZ/Xc2xL5QZe/+z0kUkc7LzWqhmBdjloSSF2\r\nkIrnTMYmKomD3aOLFCaJ1Tf0omyeTfoy04oziDEYqywXPLJgj0Jj0L4X/9T8\r\nhndxF7SBstOGSFX+nmLgpahM/dtH3HorxhjKr0CXJwXWTirkpsnb60/cnV7b\r\nRZl4u+25QMWks49cPhzl9364UYabxz7YDCZmWqzsMYqJSXkRXYPaDUKG1/G1\r\n6BjainKUx7DkkbmB35BYdSygqKn8yDdyl82LUN5gT4qfm7cN5y6pYNu9yXdg\r\nzI2lBcOK8YUikdY8YlQC+W9yaGQmsfk86YrGweH3poWHuHj59UCBN1ioR1J6\r\nT7Ygyv5zVUR70N66Xx61W/WBloRqoU8/GD7B0ok4TSAzYA82Y1giLs12kPeZ\r\nD+yhkKySqv3PvJfxhEDBUF1V60xsURyB3/K+3RgN602ffpb2z/Trl6KTG34V\r\nXtwvJ2Mh0sBd4g2x2vKTvr/DMF3gG+41MCo=\r\n=E7T1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d690b44f4e157e829199ea749861c3b827d46dff","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.0ce81e115.0","@material/base":"15.0.0-canary.0ce81e115.0","@material/shape":"15.0.0-canary.0ce81e115.0","@material/theme":"15.0.0-canary.0ce81e115.0","@material/ripple":"15.0.0-canary.0ce81e115.0","@material/animation":"15.0.0-canary.0ce81e115.0","@material/elevation":"15.0.0-canary.0ce81e115.0","@material/typography":"15.0.0-canary.0ce81e115.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.0ce81e115.0_1664561906740_0.9414944977836859","host":"s3://npm-registry-packages"}},"15.0.0-canary.3cc30f6ad.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.3cc30f6ad.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.3cc30f6ad.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"65a6c9b2f48cafd1b7d75ffb3d971a327fd36d67","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.3cc30f6ad.0.tgz","fileCount":44,"integrity":"sha512-WTvEUT7Xmmw0z8E+VkDwuutEFW/qp48zGxU0uxCEMwl/RHOZrdLWFfudOxxPgAh/x9A11AfWB691M5ZuKG5CXQ==","signatures":[{"sig":"MEYCIQDZkm15PwbSvKxKAqW7sVR9M9g6APGdRX3UkEC/PdYrNAIhAKjF/+sX+pG0pr4d5q1S5pwR17ChMleX9BpoJmiDeSs1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127521,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPGsoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr3AA//Z9rCf7a+Z9ZHTsQ2x/omE9WgrTTwNZ03kcCJ2x49f37ysjwe\r\nHn4e2lw6oqRPYzVkZdmSRp7z+6UBplM2zY2oV0wK7Eo56+cs9EiefzwmPY7d\r\nTQC7HYLV6nBRuYJpRThYc2N91WJqoTIUkKlXjrKdPR8ZY3fHEe+9MXrP/fFu\r\nDZBU7D8c7w/mAAEZfbZe9WFQT4fiyNaVNDwHkyYAxqpheaj0eVu1ptbzbngO\r\nB2gOvM+G8kBcKv5GJckghrL9Evyy9Z3V7llgdMGk8lqFjzsxf+gKN2zezEDm\r\nS1JV0Kk/1y3fwuqSqcF1pdto/725ORwn16k8wX5lV/oAgWxZ5a6HSlnEG34c\r\nD5w/mvBtUcMb1VtWSD9N1psRpM0QdzwROMB7SVv/1HtB8YnxvobHnREQvkos\r\nnR+io+/D5rpsLMS6eHVo3URNqr8FQZ87f2dbImfwI2usUYRjy/Ns36fr0hma\r\nZLwBY6nQ8bcjKO+1JCidYBvT8JzK5HVwjRnvC/tuHLsLi/odGRX3pYQhFIh4\r\n/bP9SMHS3CU/hjpY+JpJb6+fG7zHSpvwmkcAMyoQfgwQ1QpOToDviRtxPtJz\r\nn2QIQz6Qjw365N2y93Mvo2cxLbFLRDGYvJDGUIWUYzhYpDIq9C78RiJN0fDW\r\nnxch/maV5qHwVA0ugdjN8E2RGlogXoYZdJY=\r\n=23PC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"78d02265193749df2eae507da620e7571c09da12","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.0+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.0","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.3cc30f6ad.0","@material/base":"15.0.0-canary.3cc30f6ad.0","@material/shape":"15.0.0-canary.3cc30f6ad.0","@material/theme":"15.0.0-canary.3cc30f6ad.0","@material/ripple":"15.0.0-canary.3cc30f6ad.0","@material/animation":"15.0.0-canary.3cc30f6ad.0","@material/elevation":"15.0.0-canary.3cc30f6ad.0","@material/typography":"15.0.0-canary.3cc30f6ad.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.3cc30f6ad.0_1664903975963_0.11804522941888407","host":"s3://npm-registry-packages"}},"15.0.0-canary.d9cf98e60.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.d9cf98e60.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.d9cf98e60.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"04cdfff2f81fb297428c02a95179391ff6d9e03a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.d9cf98e60.0.tgz","fileCount":44,"integrity":"sha512-DrGn2AX41wQWY17bBSUwt5WmyOdY7pbI1KFm/KIVzFY+lEXmJ9RS80Xvi9LYDaGqduPoiYpN+2TG/3+cU6Ll6Q==","signatures":[{"sig":"MEUCIBSD1p8lyLj36eeADczc8oArNZgUanKPHruyTiZsvlbtAiEA8Vs1kSlacQhASamjQLqXutqwZ32NfP9NziqR2yeFw20=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127521,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPIOgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZaw/5AaCs3erzAYHqeN5m+NxBpAhsuo06GHzDtbOva99un0TZl8N1\r\nkAlBIJ/K8xRMpelWPmwvBDmUtCar+tbhUqlUQr2UvwUPGAXjYmAK/m8fgxRy\r\nBlWsXn73Op00oYSyCE0SIaTXQFlwWk0wORaKWEQsZ37cqoZHcG6x/J29fSqX\r\nhpUZSwGRMiiQm/IM6xJ8hU9fZLohomIEz2nkBD/sXVEo1yl6uaD3uCAvFcAy\r\npkEhY5hY7710wmjjX1ZaqND5eF1Q2S8K3P3bWYy5ceixcM1hEJfl2Ujt7Q9K\r\nDHiDlaGZsHlP3JqZsYKTcvkKGPTqBCXBytnS027d3aOMi9rKlMY2/OpA9wwf\r\nkbhyiAE9zNkgizti1pCuz8iNjTI+yx1A46Dsy/ZJZKOnOy48+Swo4y943Ss3\r\nXXP077nP0fgRuCo67PuBFvPjgqgtvJM1vLaeVNj0dq8C6RHRIeG52vgSuAph\r\niHBh+mPenTVdcXAjj/yXxvSbG71qR9bLjzoyFfK9y0GodaPO32P9u6k9a3IU\r\n8X8NeKmlj2vPLd2DTb4N7vUqY3w0UBQ7SEjT3lN1ia+UvOUV/vdAXtt2YMJx\r\n8ECm9w1z62oobGDbqG+BIPZHcJ5xsf8i5i/d2YDKJCnvn6AE5O6xh7mWciML\r\npKY7yqSoFBjMO0/wYVsXpeZhPUg4pXG3Tx4=\r\n=M9Lu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"554e3182e6804b0bbc262ea0e730d556747b7382","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.d9cf98e60.0","@material/base":"15.0.0-canary.d9cf98e60.0","@material/shape":"15.0.0-canary.d9cf98e60.0","@material/theme":"15.0.0-canary.d9cf98e60.0","@material/ripple":"15.0.0-canary.d9cf98e60.0","@material/animation":"15.0.0-canary.d9cf98e60.0","@material/elevation":"15.0.0-canary.d9cf98e60.0","@material/typography":"15.0.0-canary.d9cf98e60.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.d9cf98e60.0_1664910240510_0.9188174814676855","host":"s3://npm-registry-packages"}},"15.0.0-canary.d71935c8b.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.d71935c8b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.d71935c8b.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b8ee30e6aa3c05bd61132c688d2e8246eccd8dab","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.d71935c8b.0.tgz","fileCount":44,"integrity":"sha512-gv6x6tdL1PdEzesx6ao1v1wBPmT55zZNoBw6LhqaW1hQ5Uj45Cs/B2DxT/n+1phDI/flQeLluRDnVxVEwn2GOw==","signatures":[{"sig":"MEUCIDzwSH24b/qW6LB76PC1u7gdmEJ7jeuB9c/znjOP+DliAiEA9vF9mkn9gT5k3WhwrbVB6jh9ng8xkE0aKu5S5vsyDc4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1127521,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPo6KACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq36g/+NoZxO29Tv7dFYX8rm1XUkzOoQGrcKAsOdAsrejs72wm1c6sw\r\numfFNWAbH4Eidc1o5zx484hlJ01IL5RHG1HITT7pxxKamflq7GazmcQW0+NL\r\nNAqaMIyLI5U31LsxgCLAm/rwkzcGEVb+hGjjTcLWgjBXWnXD5+eCZbcPYESE\r\nUGb7n3xwNBlbt0IgkVgDMPTZdZBnjKmmZYtfz1bK9MWpSfHTL/1U13QBwDos\r\nRlPC0sPWTSjkqgcfsZEEAE+ecOC59SwT7dbWpKcFQ0C4tGNuBrXnenuVFQQM\r\nC1zbtjsaXM5pIZph2oh1rLUPjijFK34xHX3dZ6s3aNl09FS7U98C1XU1FoI6\r\nDwSM8KZPUYACvmhboW3MhHj7PZE1ZB/EjYQgMtlboRRu/vhglTNo4j6ZahQ3\r\nq5jR65ute3Uc720D+7f8l+uEsdZ3G/To1YWX61mwHhzpbpHPFQe9NmaOPVit\r\n/32auJzQQ42Cc0HD5BFWXNdNqd3qzDYfSU9NyhMlKTUfwNPozqMbe4+1roG3\r\niOCke0sOxW1XlmGD1kJLGRBww8t66eqcglfK8qGjAgmOkkbuJBdnn8fVoIOO\r\nmfDwoYHyeO1R3kirxkuvEEyX18coQG/QK1J7edyUmL/RX2NPxqpRmOXvz0xV\r\nO3KgmuWp1UmUUCxyWtDOCTTrlHiA/9E+PJo=\r\n=6A02\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0e9f697d8ab3c0b93969f61d22a2b06760934fa3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.d71935c8b.0","@material/base":"15.0.0-canary.d71935c8b.0","@material/shape":"15.0.0-canary.d71935c8b.0","@material/theme":"15.0.0-canary.d71935c8b.0","@material/ripple":"15.0.0-canary.d71935c8b.0","@material/animation":"15.0.0-canary.d71935c8b.0","@material/elevation":"15.0.0-canary.d71935c8b.0","@material/typography":"15.0.0-canary.d71935c8b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.d71935c8b.0_1665044106436_0.18541718107000804","host":"s3://npm-registry-packages"}},"15.0.0-canary.49c56a25d.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.49c56a25d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.49c56a25d.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"aeb99804ea877de906ceadddf6d3b71bd2a080af","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.49c56a25d.0.tgz","fileCount":44,"integrity":"sha512-ZXRHKX8FOb70tOO0+JNLcwjBx5FTylNT8Wz814QIt3+YfbB3Co9xWB4QBBXCAPWl1wL2wseu7EFAgbb/AnQZ+Q==","signatures":[{"sig":"MEUCIQCRwznn7zS4WY2NdQ+/J0VO42aihD7YS32vBQN+R6/dZAIgUXBULODksVY867rOoOn4HnjP252UKz1cOsm/LzF+bK4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096009,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPyOeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo9FBAAl9fMnbHNL8pOnsVxt/+zFUzUektqaX5rqwrxbGLO0JvCxmg1\r\ny8tamgPbBvpgLtslGKQP2vmpo1EmZzaNgw5N0VNdZ+36c00nFKZQyVHhYra9\r\nJrkuMGc1ZJrVyRP/q7yNIXf5YXhxP2pBrk/LF5kc1OLP+qxMptBnDcFsbDeC\r\nlRaNjR59XRIZxte8B+UTVGZOxaPV1RurW1M6NIThDvXpUGsmHIj+HkQN3e0S\r\nBUhXpVdoubMFZeABRZlOmJf+Kv5YuE9RF32uzzy9lxYWBlCked0srAvK0tGt\r\nfMJds64ae+WRWXhTuDOV6qFiRY7iGzzU3FYpyZnZ0UsEV1MO7wQhPMxhohc+\r\nQDT9LZ5Goju42FgJbJNVVnHUMKREMvTToD8fiJtQ6gRwxXgfCA65ZMEfAcgo\r\n/Dbk5tNyF8Yla2Yv9Z2iTP9gBP91nBoUvAhqbZkNYBpAxuRojM5+fonrbvmg\r\nIYiAzPB7sZeccbal2nKwljU+PTExdY6cJNNtQV4vYZJW7RNLJhmWxZR3t8ST\r\nzmsqf34QOFTaQt6gbXKFCianA3kq67Rriv7jPrkhtD2UWXxvaDTalp3pr1Y2\r\n0m6MFwRCK0S5r6m++qTiURTzF+iDsqiD9DlhIZcxMpOzEg3/FSDj/c+vuY1x\r\nF8mF9Bt8VSzH641IYcyxKK0SdhiaK1HToxQ=\r\n=zjrf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"46425b4f1ee71ec9e841d7ffacdce7cdc35e7b69","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.49c56a25d.0","@material/base":"15.0.0-canary.49c56a25d.0","@material/shape":"15.0.0-canary.49c56a25d.0","@material/theme":"15.0.0-canary.49c56a25d.0","@material/ripple":"15.0.0-canary.49c56a25d.0","@material/animation":"15.0.0-canary.49c56a25d.0","@material/elevation":"15.0.0-canary.49c56a25d.0","@material/typography":"15.0.0-canary.49c56a25d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.49c56a25d.0_1665082269864_0.8336198136851576","host":"s3://npm-registry-packages"}},"15.0.0-canary.07acddef3.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.07acddef3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.07acddef3.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a2ba8817ac2d82931761671fa1dc62c24ca35296","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.07acddef3.0.tgz","fileCount":44,"integrity":"sha512-jcPnAM0q7FM0CIjnJfKCuepbNAO7khwX7JWumdhRshpxtKkTgjTdLADgKLRnm+amDxxiSoXvtWB83FD2CJZfrw==","signatures":[{"sig":"MEUCIHXGzGD4LoXHh57RnwT0BVAeIkyKwvZAecJcvqCHCfObAiEAyuhvYvicIsy/5mdJx1GCqpd+kB9fsDmSpZgmLEGHUIs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096009,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQJxbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFsA/7BxTtz370bs8o5F8n40jZniQIja5iqM+xZc8WhKskXUFlKZzk\r\nCnSHY1c2U72O9aep9fq81a6w/5+1kycdYZ1R+kDqU9/qq+wQmnMXch9jnWst\r\nhfcHSmNRD+MJt07z05hyfMp71EH+HEdKkvEwCpfRlIkCNNzcZDe/UF/j3vJz\r\n5cseoVIqAlUvGtaic8Uv+KgkUtVlR5GD9zdfCjE1NVk+Jyy2BDO/Em+alsSG\r\n8LPDv+aNAdWp5AuWURGg2PYCMsg/K78StJPpt1jgY3OXNFxLaWIkrdon4RTf\r\nvXb+cyByU5MEPKEGHUT2dllik22JjLkjAGDJgnopoU7VXpeRDUChg9zpgDIF\r\nI9fXR+b53Eyma98661qcesAOr2bhQRT7MmXxiBWQOm/nKUpxNm8QuT2J1yJQ\r\nZE6Qjz1c1G892amZAcxmeTBxgRsgrB+HX3spU82Cu+yzx5SkbmLTJoAUT3cD\r\nJoM0LoQTum75bEmuI0LV4zvAp+grHDhqs1caRQMdj3NJHg8NN+NmaiyXRjcn\r\nWj092h8oQUMhqW6XHVas1t/wzkgCBF+L4FDf2ZdbOWaSZ/71Zu4Je+YReS+J\r\nFNhNDS3SX02G/cFfKHWDDhG4NKvgbC1IlHhYSj1Ay58gfQUNFpD2IGwbeh03\r\n4dZzv7DRDo+PLT36qoKvZpitMX1Zi/Xrd6Y=\r\n=liq6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f61a6c26b4bd60354b690448809f9dfb7ea11564","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.07acddef3.0","@material/base":"15.0.0-canary.07acddef3.0","@material/shape":"15.0.0-canary.07acddef3.0","@material/theme":"15.0.0-canary.07acddef3.0","@material/ripple":"15.0.0-canary.07acddef3.0","@material/animation":"15.0.0-canary.07acddef3.0","@material/elevation":"15.0.0-canary.07acddef3.0","@material/typography":"15.0.0-canary.07acddef3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.07acddef3.0_1665178714893_0.7260676887761766","host":"s3://npm-registry-packages"}},"15.0.0-canary.1c74eb2c0.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.1c74eb2c0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.1c74eb2c0.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f79acf56164e559a4479de1b31c4f91c2cbaed7f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.1c74eb2c0.0.tgz","fileCount":44,"integrity":"sha512-6rLOc4ogNUzI9jjWyAt09dpkekG9yZ6P8Mq7kCUORIr+0HjT0QHu3x/jsGv+vCHdXFrwDzQ9p91yyybTg7GYQA==","signatures":[{"sig":"MEUCIQCjiJZOWFhoGehskFQ7efDVIUSjCX+Lt9hDt3nQVOPngAIgFwc0F6tqpRAsvYRskK/TxSdTFeueJfG3/W8W9IRrCTk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096009,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQKBXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1IA/8Cmsdr9268loKx9utSOoKt4OtAxdb3jUboTahFpGJhHEuos0Z\r\n620LPHgdFSjjNLPtoDz/s/PtxVcX1UqngjnqSNubxZh6fN90LWkEsrB7Zngc\r\ns9i59x6v8B1qXzAnpeleLcfKCnsOr4ec1mbGSr/auU5p4eqfilPyuxrR6BPf\r\n+dbea9k3u/i7cT+rkkc/lKsZqUuIFqb0brd8GXggIsJGgzxde3ImW8py9goL\r\nT9uuxzTMzYJRTpLTCLZj1zCFFaxrMoch9evC6bVt3MuRQOSO3zuFWANE+2UG\r\n8JheWo3vysMMp7TIMxRoPW+1g4/LlgTAQ4Jy5PkBdZFfIC/9NrhOCM/bK43v\r\nh2a5zm4ohlk5YArXqMm9iQ/tQWegxitBb4bDuGeBlaVZ9SBsOzswY7TQMYTw\r\nTC8VoLpKn/oFTiYlP0blZG6oH5ciM80pWlwKe52YIVlUAnNkorlffeyOx1GQ\r\nMnCftLu4D294U0wz3rIDGSUCRI2tu1vX7iNWNwNtRvGlX2O1ND4zO2RKcxT8\r\npYkbhwlgmEfN7MBt/aOk9NdVx/uMarbC1HFS8RUaErrFxoCgwvkiH60aE6fi\r\ng+0IfIqWgtWzQYI8gm6MpDkq7VNI5Sv16G5JC327Uq4Bp1FqJu/Fzv/TQcAR\r\n7b+0m63QYZrppfByHDszqwedSnSDUcOHJG4=\r\n=hzRA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fa2e48f4e71714ca4a637a500ddf18f562031ba2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.1c74eb2c0.0","@material/base":"15.0.0-canary.1c74eb2c0.0","@material/shape":"15.0.0-canary.1c74eb2c0.0","@material/theme":"15.0.0-canary.1c74eb2c0.0","@material/ripple":"15.0.0-canary.1c74eb2c0.0","@material/animation":"15.0.0-canary.1c74eb2c0.0","@material/elevation":"15.0.0-canary.1c74eb2c0.0","@material/typography":"15.0.0-canary.1c74eb2c0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.1c74eb2c0.0_1665179734531_0.6789560672638264","host":"s3://npm-registry-packages"}},"15.0.0-canary.dadfb713e.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.dadfb713e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.dadfb713e.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"922ee5ce20af03812cd1f7536f51a1fcddd340b5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.dadfb713e.0.tgz","fileCount":44,"integrity":"sha512-bzNlj5h74m5cJPxgNkSLo8WvnWd5ZDEGOLQomW8f5OZNogBuifTS/WqEN5vOrSkxP3aED9ROOxqVb5/ro21sEA==","signatures":[{"sig":"MEUCIQDvs2uZicXZ2OVyyu+qCxE1LU8sE58EPRpmRE+vLptEdAIgW6h6u9+lxpSYp4kQf8sKCbD753QoMY0QKkUgM9zkjq8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQQVlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq6CA/5AW5rh6sroUghjl86y++yo/s6Tz3w09Q2wzZRHaDaQ5h5ARLD\r\nbThiX7cE5sOn5z1QfAlt+p2osd7J3dBn3XTHb24y9xyX/vVUTp4xPjP/xUDI\r\noY6ty3ZDEYg2oJBg+i7pbCCS0RfWtyTmD8Gx8YFg23L19PU1Bs5vekvhm9yX\r\nVPgmPLnc7cxUixNIyorsPGfnfFq9C6ywU3b26iCRzVOG8JzEMMfJuXf2u7Qm\r\n8S2BB3AmF3ASOI2WtkIDrsfRavDwFrlq3kQ+15ca2vXgpVjRICM5vN9sshFA\r\nkgWrKlQd/NhD7yi81flCgQao7atwW5hQHeqqPFydp7x00jz76rD1PEtJcSsy\r\nFSA+fYzM6xrv0E6e7ZLF99QvRCGD9zJFKF6nfBa7WfwJ2Xvj2lU5EmUprG54\r\nxK41IX5eUsBeyI7Ue6bq22/dHO+ssY30WcDcQWRiAJEyQMVoYClpihJPMiOr\r\nCuQL68dWK5bqK3o6AfrHbr8nOQ7mQbGnXOnBoqIEDKwWIWp0yBTeWOyNLUS0\r\n3dLghX8dLDoeU+fuSCddkOakGnFXtU74UGpuB0oN0yJTLxla1e1v4XKcxNn1\r\nvMAsscF5Q9DxKA1iqNU414OqPa/DInmGysgeLzUt50rnGSfnSihpPYjFRwZh\r\nJ0AHsKWpaxSUR2JBbXXhY+xqDlRoITFsAIA=\r\n=ITnK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dc577772f45028a4c4dca1d7c8ca8dfcf636e763","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.dadfb713e.0","@material/base":"15.0.0-canary.dadfb713e.0","@material/shape":"15.0.0-canary.dadfb713e.0","@material/theme":"15.0.0-canary.dadfb713e.0","@material/ripple":"15.0.0-canary.dadfb713e.0","@material/animation":"15.0.0-canary.dadfb713e.0","@material/elevation":"15.0.0-canary.dadfb713e.0","@material/typography":"15.0.0-canary.dadfb713e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.dadfb713e.0_1665205605262_0.5902147638803035","host":"s3://npm-registry-packages"}},"15.0.0-canary.395f1ce61.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.395f1ce61.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.395f1ce61.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"72d7cdc318acacec7815368bc068a929ca4dbe1f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.395f1ce61.0.tgz","fileCount":44,"integrity":"sha512-6Mav31VdpRTCDD9oew5Q5+mOUd/JacEfUEI9Fpe34Nte5v8kignzs91gkWF61PD2Ey7snXr9LPGn9WvuJC3tHw==","signatures":[{"sig":"MEUCIQD0ZG18s6ED1ZzTgYlSsTS91Rw7F0FG7gQweehLQ7ty6wIgSz6fSFbAQcld4SK0SakVB9L7OJIdFpOjhsxzUpBGkLc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096009,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQQXeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrTjg//cLsujRYFK6bgiiO6XvEQRN5iEBUek1I14vUNc67fCbjtWw51\r\nQ2Vhnhr13wqbx5L0OBT6ZX8AR4oxPIdSkY8MGLDqvNgyBTNkxalEyxi2P1Xb\r\nTzHGKtcVlHimCUq2ffsLVF8DrWqg1uCA79DTmfdlJAF970dvltXb04k78A2Q\r\ng2GORhV8NpcMxgB7E3oQ6yRHKge8G43fVH3TZkVjtO3/oXxo0oHdW34xelDR\r\nfUcr7hQct6XjrPIbrtKmW1/Yxw2eKXD/Rj7RMytRglYAorhCIOKkorcRhSew\r\nMDpv8ZcFFJ6C1Ou5BM4qmnmbDWt/42WI5CZP+kF4alY2YEv4q2T16l4dyEAA\r\nBodEjige93zNDEOljk4AtB2g9erJjGS6H2vQKdU7+PocLcDDwOBxlxwcZpUU\r\nnXUvx9BQHarPyvaxulbrVgCZCHm4Iz4blDuumwwcU+3mv/F3YI6qgdXnVlJW\r\no23oLtqF2smQwRRkOeYv7hpqcaiUfqc45z6SNZFKavAXP2flzo+7H2y9E++M\r\noTJrvZUXDqLPx2SxgrGSj4Q2vADZa+CMRZv8+k4hTxj+PoHlJVQgIcPPxAWS\r\nYD6ij6Io6XbMtRk3xOUCHGjhMulLqnrYiaXayqRqewVk9eTFh436w4OlzkcQ\r\niK7LTCn2ktw4mwx49ynglKFzz+tWWxGTCew=\r\n=5S6L\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"15a2d954f8c5260da0e9b6f65b6f49df69764a95","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.395f1ce61.0","@material/base":"15.0.0-canary.395f1ce61.0","@material/shape":"15.0.0-canary.395f1ce61.0","@material/theme":"15.0.0-canary.395f1ce61.0","@material/ripple":"15.0.0-canary.395f1ce61.0","@material/animation":"15.0.0-canary.395f1ce61.0","@material/elevation":"15.0.0-canary.395f1ce61.0","@material/typography":"15.0.0-canary.395f1ce61.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.395f1ce61.0_1665205725778_0.24958717000658504","host":"s3://npm-registry-packages"}},"15.0.0-canary.e741b5c82.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.e741b5c82.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.e741b5c82.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ea0c5be0f5f3f7c79e93bdce0ccb35b0d216e66d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.e741b5c82.0.tgz","fileCount":44,"integrity":"sha512-mYIywXJ1DH3N3n+1X2VrCUHvy1ISPzWLL5Y+72mZ6kcWVF5tDZ/lFfEYgdbejlHBWtid3aKNGijm5QqiQUuQBA==","signatures":[{"sig":"MEUCIQDFgAjcDVw9kL1YnWmhMKGaMuN18MmEHiSRfs5gucHiaAIgbXp8zOrV4EO73b6ufIqO0OlN3KLVsc7ZUrx7XAUDG2Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRFi+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqFMBAAhsYBVcNSYVX5xQowHQaI1FyBzSXfcd45K1fD+DV+gqVCtlZE\r\nHsNDo6Pu/B8teD60/oNi7DLBXkZU/jIFPph//qGkJbXDqQ1obKhLn0POyWPD\r\n1qwEKL4bJ3Sl8P9IayYKiUtMXZIL2QwbNFnCzxWQqLxKPegMM2NQsJMnia1D\r\ndiBuig9VA/68yHnfn9oiIYCmOrfufLixqyxG5geIBF0wgWBlzFz5MRDWLQwW\r\n8vJe5iSQEbDn5Ko2yVCP4LuTfg4ttv1tj865P5/gyxpburqBPelysgrg39YN\r\no2E9ORvVV+Zk62ROpfF5nNflC/V4qNG7Rb2LMWpcdWSneEdGHBudNSxDTqbe\r\ntM4/Zus66vFymCeZQce4ztlsrT806VIadD+TBIaLkeioviuaw4aS1xlNp+7R\r\nChSdrn+uH0ksiDh3p0HiVF1g6Cf2VyFnUGD6LSEDI3esHym669pmIikgeeHw\r\nadgMFJkeZB5Ogih98kKE4Ompw9iLvnBKJ5KNZUOyD2corDORmCWEAFlPX9RH\r\njmNrImTpw2Fx0geUiHjsxmxrWhL8koCjBTC5xCOxucYi+9Vh5Jk9mG9/q0bt\r\nmF1X4zvJh7GfrI2sP9jcDg0yjPQqNMoMdXYAhFvXsUOp6jUSUyc4w+9moypI\r\nZJkv0IC77hXNF4ql3owUDJtV9Ho0ediKc8Y=\r\n=gliq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"489583dc41bf06c909feb0a87f9679b40fe6c03a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.e741b5c82.0","@material/base":"15.0.0-canary.e741b5c82.0","@material/shape":"15.0.0-canary.e741b5c82.0","@material/theme":"15.0.0-canary.e741b5c82.0","@material/ripple":"15.0.0-canary.e741b5c82.0","@material/animation":"15.0.0-canary.e741b5c82.0","@material/elevation":"15.0.0-canary.e741b5c82.0","@material/typography":"15.0.0-canary.e741b5c82.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.e741b5c82.0_1665423549960_0.9027365147471742","host":"s3://npm-registry-packages"}},"15.0.0-canary.582f3cc1c.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.582f3cc1c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.582f3cc1c.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"97ec622f681ca15ce11323baa0518e58473791fa","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.582f3cc1c.0.tgz","fileCount":44,"integrity":"sha512-4188tm4QGFi/4EatiL9cIY+1e6mJDRB6SpN+BYgZIzrVnn6nrTOFqBwalLH71WAw4xfE0sfgn3lnVQJRLfnHqA==","signatures":[{"sig":"MEYCIQCqNj6mQU1M8mYEIduBEQxKFcgtuBdbBaLFx8+2bdj58wIhAIZbeqXu/lWYgO90N6qdw6yUta5oz3nfB+ZBBeylmNoC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRPX8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6Tw/9F9ZQ4dlW7wcFXvMaEJL+noblo9gi243bEXejJFDmV/VfCMWf\r\n7j6ujw5JTp+aD6j8rBSLnybcHiAbom58mCUzNh5WKecUAbaELTu7BiTPvWEL\r\nC2dDtnmB/bCvXfXkyDvqwmROpP+vJ0HtVDVYnFK7wiOj/h19yQ7/C2Nj5FdR\r\n9Z1Oj4m4ePJGVfIGNUxGf1jGVCDNDdm05Os/F1xrkJWJpUt8mLbQylBrWLzl\r\npZcjEdX6JkLC4XHcZpvFleChTUdpMNXY38c0fAezPoHaJ2tkdNtvf1MD8BMt\r\nN0tnSxQsxrSVtyklHdP3z4i7AwULQrFYUEmXD2KxHsK4ZkQydpAajkoVVIqz\r\nCeyJQri70i89eTH0QKGmP0rVeXJo2xz+o9mtxbjAq6U1mfUuDKY9heFjkR2M\r\nX6UEsHb4cHkF57y182XgyjrYNX6uMPf70ZopHAzGyGH6zhm+r12kWx2T4gJ6\r\nafZBKvCWRy+etH6wW0/b2yrxDvDgrSgGRrFBMDDYcs/AqGF/HVvY9eHtikYM\r\nqS1ufC5KV4gpS6MrNS1LtbGCSX9mLWJgKgAOuqRCGpwhxLFR5CQ6oi5y2rnx\r\nFUtTCU6AYhzH9L+Yna7GhZ+9uVYnONZyVR7Z45xSW9oCU6yMq+p5ASneKai3\r\nlJeYPF5TJR1GQxQxAyxCz55YCSrNMTZNgS8=\r\n=1Omt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9910dd1f5b3fa962bd02fe552774781896efa7ee","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.582f3cc1c.0","@material/base":"15.0.0-canary.582f3cc1c.0","@material/shape":"15.0.0-canary.582f3cc1c.0","@material/theme":"15.0.0-canary.582f3cc1c.0","@material/ripple":"15.0.0-canary.582f3cc1c.0","@material/animation":"15.0.0-canary.582f3cc1c.0","@material/elevation":"15.0.0-canary.582f3cc1c.0","@material/typography":"15.0.0-canary.582f3cc1c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.582f3cc1c.0_1665463804702_0.08625463000930833","host":"s3://npm-registry-packages"}},"15.0.0-canary.b1a6e3e88.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.b1a6e3e88.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.b1a6e3e88.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"735b78a9c4ab195e3db464cd2900163d76591e48","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.b1a6e3e88.0.tgz","fileCount":44,"integrity":"sha512-V1ZXLOXjpSUshfzVz4ponaIpqvXNGu1Vgap/CcI7YXtIXksL7lfP9ebIPStu4VI1m38Jy8ONsOE96cB78QqlbQ==","signatures":[{"sig":"MEQCIBVkVDntfvrC7x2fN2tLJpL21Cm4zmDwtYseEEgvPhz5AiBdjByUzJI4XKXF77Gf3lwQfzZCLAURJRZWbq5CkIPIjg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRq0IACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKwA//XBIuQ9Vt/SkYgyU8gei4iwu6rsHA0TffV/+w2ZuVzW5eEFBu\r\n78t3n5cIu+RCoCDMRYL9BC+BcS6rhMZYojzR5l9pGcv7Pgn00zR/C43fiBkz\r\nYxjue1ZD6rq56wLVZVKbGPBASlfGE6u5w30qImuJGg1f+SxZ2gHZjwMjviZZ\r\nqRScPc0EsVLyPRVNaWooxRGzqTWvNHFX+RCxBq3HiR53Fo3vFtezAlLwI9av\r\nAfhWvLPS9sMz263tjXa6hPOykqBdyUG+F7OcUZj7WlhgGR4KdDwEya0lrJz4\r\nhJBq359wv8sf8G2CbVc3e78qxoGchKfEx1yh+D+cVDSSehO4jsP7klAwJ2Gk\r\nUo+aVkJMxGoPTsRNeQ/Nmj+3sxClFlnvZ5hvAneligrturjaQFm7Rhy3am5h\r\nsixHGA2ZrIA0e00WQmrHtKIeCyU/y+ioWcW6jsvAPwHYkXK9ZuJFnBD4D9KE\r\nvBdQmfHqBi3VSDZrAr1EkahBNW4H8M1EqJQRv5GD1jK0lA8YxZsPqQQryMLr\r\nbRqjNEtTfJIpRlmLbWguIds1s/BucZhbNqgJbvsWZYa09SvTMs/iVQBGJRJn\r\nqcEbNwiZ4WztXThxXDBUTAupSVicIZQZxwNzXQ/SRFGccOJ2JMOD7JO1TRHi\r\n5GX4qVnghCl8JCxtuIB/X7pve8jF/hCer58=\r\n=sNTz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fd6420b1b81c64578026927a4acf4ea73b7358e6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.b1a6e3e88.0","@material/base":"15.0.0-canary.b1a6e3e88.0","@material/shape":"15.0.0-canary.b1a6e3e88.0","@material/theme":"15.0.0-canary.b1a6e3e88.0","@material/ripple":"15.0.0-canary.b1a6e3e88.0","@material/animation":"15.0.0-canary.b1a6e3e88.0","@material/elevation":"15.0.0-canary.b1a6e3e88.0","@material/typography":"15.0.0-canary.b1a6e3e88.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.b1a6e3e88.0_1665576200514_0.10001106138832871","host":"s3://npm-registry-packages"}},"15.0.0-canary.c9b1a31e4.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.c9b1a31e4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.c9b1a31e4.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a26e957ad3c186c08a9992beb0c5881373011083","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.c9b1a31e4.0.tgz","fileCount":44,"integrity":"sha512-aV5J9jRvvByHeJhP72+9aAzRYstnbnSQGAwOziBwfpBbvJURG1xz8HhnmZdU1ZcvAWykbJCgPSDPVeiJJyWKIQ==","signatures":[{"sig":"MEQCIF+6JpcU+c30CYJ8cjx0On2fycS2taX4m3sns24HSB+HAiAYRzY4VrDB32M3CoLr2yAizxEOy7kwmLPoBPLFn5tVYg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRvJ1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrAEQ//Vn5ID96Z44oJlN/PDAeQCSQwDxT7WH0eJpSJbm6k6Z/m7EeV\r\ncXMjQTfSYnBu6qL1mVzF574aNbYC5BwkxVa4IhddPhkqQSmEUMlveRTcxxwr\r\nVzIcCP+mPYHopqnDKxDh+2wowi+Wp2Y843JJEz7BCegQvSbDd3SepmBlCI6q\r\npCvmd1lGmoGGBZ9F/j6e5ECb1Xk4LXIDnpeRokvTDkX6L4tmJBWTQ4MhqQ2h\r\n4dCnB0M4j6GnE+5ArZPjvPEyihaPbraa0n8PA6edLbhbDllQi2EytUlTNr90\r\nHt6WIdGQDYUW2FeteYM8gCgu6IabsRPr2lcmZhJ0dooTdZfr7qEoJt64bHGv\r\nbtkUukzY10CzWpO5HwCcaJVoum1m5z8Nnr2knptdFSsestrWhXJ6qq3g13yy\r\nDcy1pr4HDJj1hhbTmTAIs4eWjG+XluFpbEPgubCyUysRXqW8V0SXruOZWgqR\r\n8FM+Qdw7w3xDoXoXS6yKmRTk3bXHZ53hwdXV1ehsneoLrduSeLXq25T2OMg0\r\nljbk7RV1kzIJDNm+Db2xDPbh1rStY4/4BMTusIqRkVsP1IyJ2oncOMl51Dii\r\nhgOkZlNPfKXXsNsviDVkavAqssfK+x2s0ue+xe+uFuqx/CErJFpgrN7TIj9f\r\nXs7uCGNKVbyodnxZpFu1fygsZKcxHI5jxBY=\r\n=Jdau\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f7a6b71c85fbf0d1a9db952402e002f8421baf4b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.c9b1a31e4.0","@material/base":"15.0.0-canary.c9b1a31e4.0","@material/shape":"15.0.0-canary.c9b1a31e4.0","@material/theme":"15.0.0-canary.c9b1a31e4.0","@material/ripple":"15.0.0-canary.c9b1a31e4.0","@material/animation":"15.0.0-canary.c9b1a31e4.0","@material/elevation":"15.0.0-canary.c9b1a31e4.0","@material/typography":"15.0.0-canary.c9b1a31e4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.c9b1a31e4.0_1665593973129_0.687672312335813","host":"s3://npm-registry-packages"}},"15.0.0-canary.13e9b0d1f.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.13e9b0d1f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.13e9b0d1f.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8008c34bea600e1b65f5f0ff63508ba003f38c05","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.13e9b0d1f.0.tgz","fileCount":44,"integrity":"sha512-h/pxx66wqIQd3J735x2iX6EvEw58G4EauHgKrv889H1a0t+Jou5v0h3/EMmvjqG2fJgOgCqFos00V0+o4Vg/TQ==","signatures":[{"sig":"MEUCIQD4pJpG9uvFLni1Np6YCeirC+vxJe97t9SD7/+6Dkx6SQIgTwO7XvoqN2jzeUu93pFYP1KU4+AxokjHUSjloCXmXRY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRxPlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrhNw//bxrlIH9SJ+0MKo3iAPCR0BmWpC8otJXVuQf7Ql1x+i/ymPIr\r\ni9mpiB76+aDia68jNXeN4sztoVHEtAc+UMupw+ZC+Auyl1B3BcSlMZgsM9PW\r\n1UwGT28pUPW5q/ukTVBZ57Mhdc4cnw6/iZ4l96KGG1wsH0J87HQrpFp2BIzM\r\n8AjIwQzt2+8IcG/qg3ckJBSqWpv32J4vS+8tNHrUywC9G6r8UPYzyBtS0TyJ\r\n9VBOBMEFfg8j4rFHAL3l7jeT+tO4Fd0YFSH8VkExnWGxP5QvAEwBAI8jiyK6\r\n644C3XpKwneX7tfMaBSw4+AWw5JtRH1xTmOai51GLLMXzlZ365/pAc17OLDQ\r\nPlo1rLRIB/o8BeDCGUKYa7nXKdXVh6KSKq0zSjj5OuIqGH4DGwbzen2WVEKH\r\n6nafnQuwnoHkExaPz3B/rwEzB6N6uCKKn0WYZBRwwCgvUkGpAMqIOVAXsZCu\r\nx8fjCQt2nsTnhNxRzQkyB82ujKC/9LHo6zqzEdLjRZE8Bm5QWh4Serz11ZhN\r\nxGGTXFG7SCv36iovXMOS/0Oq2LzAcwu5FbOK28rGgWRCSu/5ZF5V4iUyfNOC\r\nzyTOFtZYjhP0PYQJ2XE93Gi9xPocwy/T9Y2eRiyTJFcGYa21LTgJMrydhX1M\r\ngXvFmj1Aar94iRdSoxdK0mJgPApnTA9iCwM=\r\n=9NUN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4d9f6e4f27b68587a15ebef6f003f73cdad60bff","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.13e9b0d1f.0","@material/base":"15.0.0-canary.13e9b0d1f.0","@material/shape":"15.0.0-canary.13e9b0d1f.0","@material/theme":"15.0.0-canary.13e9b0d1f.0","@material/ripple":"15.0.0-canary.13e9b0d1f.0","@material/animation":"15.0.0-canary.13e9b0d1f.0","@material/elevation":"15.0.0-canary.13e9b0d1f.0","@material/typography":"15.0.0-canary.13e9b0d1f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.13e9b0d1f.0_1665602532833_0.7570050102955714","host":"s3://npm-registry-packages"}},"15.0.0-canary.1dc797e7f.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.1dc797e7f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.1dc797e7f.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e10e37be0c29193b6c048dd9cb1227afae5fa0d7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.1dc797e7f.0.tgz","fileCount":44,"integrity":"sha512-E7VIOES6mvj7hBVgCjzA9DRu0wJB5ZOeSKdcNUMSnqkI/yeM6l3UuxRxMb4jBedDrTmWxBuL377KB7UIjaYorw==","signatures":[{"sig":"MEQCIEJaG313y4addqp/6sAxjA3SK3quwjwwXzutkHp89eBeAiBbLuKQGnWnf3wQsN9crVSTgBNUfPB+XHbazwmSOiAFvQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSS8MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5/Q/8CETRyeeE904ulr5DH0wFq5RFvlrQAGdDHy9IxfZwedGA4WKc\r\nq70Iy+hjD8m7gvkYrCT9pRIoV+knI1rZ+2JgTcRqZ9oU6RPc/pRs96wgaPL1\r\n8lgjjC4+gCSpWlC3eaJq/KWzaBY7h803tepTUSqxWYdtBmoVHYwCl5LvZ48y\r\nRPA/r1zJH1MmRwye6MvK6T5OjqET/oMvF+Sq/ZZwG3Ld+bL/r9r4jGolcwKv\r\n7/CHV32zN5pP/sRTrlKeYZ126GKvWGLvlQJ6bnTn3tH5642+Tvbi0q4sgWT6\r\nV3JLhHHgqHCfD66vgbti98pkPxqJSiy2nKI1lYQUcirud6VwpgRCX5UL0FBo\r\nNHufaXki4vxVJN0hy5F+CPnouU03j686l54DOnezn5zTGanOsx0sKVwC248Z\r\noBNP1g58C/ROpUxN4ZTYiBJej/ehrzfz/Y15LvqOz/H6Li6vDjs6PD1uY+g+\r\nm9vm5T3Bgq4SYs3WiZPqtuKQSO6cp7leb4wQRuFOmHnENjQCw9H9x/0gurhQ\r\nyzkWiPjICPaBeobkbjnds1qLrs2y7TgMC84V4QrqfG9ddoYvbgSni6XqjERf\r\nYGKeLKpMrh4/NZsPXuR4C9/hOUxNkB/k7EEEqd0XarDZrvGgXuoNxevgMdIb\r\n/tCt4F3wNe1CUvW1oRKXkKn5DBsXAVzYeTI=\r\n=qtkB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"22eb0904d0b7a84996854bc57cc417286deb08b1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.1dc797e7f.0","@material/base":"15.0.0-canary.1dc797e7f.0","@material/shape":"15.0.0-canary.1dc797e7f.0","@material/theme":"15.0.0-canary.1dc797e7f.0","@material/ripple":"15.0.0-canary.1dc797e7f.0","@material/animation":"15.0.0-canary.1dc797e7f.0","@material/elevation":"15.0.0-canary.1dc797e7f.0","@material/typography":"15.0.0-canary.1dc797e7f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.1dc797e7f.0_1665740555814_0.29459027967574847","host":"s3://npm-registry-packages"}},"15.0.0-canary.ed4009397.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.ed4009397.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.ed4009397.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"442eb69efaf5c179d4fb23842b28439e96b0db36","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.ed4009397.0.tgz","fileCount":44,"integrity":"sha512-UnvgwLV6eihAu+6EHR9qfy+Rv1yam+dQC4mWAV0KEypV5ImTeV0wOAY176ZTdFtT2o7RroEkcZddKGS0noRFyg==","signatures":[{"sig":"MEUCIBBNbXv+NzRdKxeV1s3dXiDx9rwyIb6mkYOufVsRPpmVAiEA6Gyvya7/XN3v2fhjbrTM/S//mOVdEHUMJviucxA4Tfc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSZO7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrZjQ/+NHTmxYVFRT1rBOGnpSNBasT++hAo1Q28BhUnpJ/wrm3YZtVI\r\nRvpBVuDB4NkDkmDKsqFRCRWWXnj/e2/QG4LfkzeJPYQOW8w6nC//g4z0Ch12\r\ndwXxl7uRrXDRI4c4IsoNzE2k2M++2S9Y+01G1WRSOai80XcS3DkMsCFv+9VX\r\nzxyI7U5RU3/lm2ivRcP3Wh5k3wdix/7li5oZHpm8d+PRuj+Xk60YiUTrDSRa\r\nxNzBp+f0vppcvMdefAbARyuvxoCAIgFb4U7cHmq7WGrFaD2FCVViGzEyx2Zx\r\nm4QH94j/v4bTGbovnKi6qPykfIuh6JhfWNFOEEtlprV85QZMu/vyrTDjGREx\r\nUgl8KBar5w7rKT2K5jiBAAjtB3mxKYFFzyKLZqDI6zwStNxwapuWyttOL1v6\r\nv6iuPCxQE8bwTNubacKMzjhZRF23EXF8AuHjOum09KFKQkLxsrV8cfqQ2TM6\r\nVX9FxSFtrKGwIWyeD5AjVcWxhMWsNoLfHmRjaSLLKEtZvqwMii8yEyHDt3mc\r\nV6pXVkoJlOgbWZT1v3Rj/l/8rKIzsOB/G2wEYAZL0GADg3zvWNHdN2RXbY/C\r\n1UDgmRFjOJZ8uNLbA4P3QuKKZILmNjsKDdrszoNnvlSV04KPmF2RUtyhNTEY\r\n5A0BaluNGxN6abO46QtGJh31xcxASitxVEQ=\r\n=jthL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a749634198bd160446873ac2c5cf3d4345b1620f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.ed4009397.0","@material/base":"15.0.0-canary.ed4009397.0","@material/shape":"15.0.0-canary.ed4009397.0","@material/theme":"15.0.0-canary.ed4009397.0","@material/ripple":"15.0.0-canary.ed4009397.0","@material/animation":"15.0.0-canary.ed4009397.0","@material/elevation":"15.0.0-canary.ed4009397.0","@material/typography":"15.0.0-canary.ed4009397.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.ed4009397.0_1665766331235_0.013238530534302795","host":"s3://npm-registry-packages"}},"15.0.0-canary.95ef196bc.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.95ef196bc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.95ef196bc.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"66ce90e31411dcda0825d612e384bd905bbc5491","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.95ef196bc.0.tgz","fileCount":44,"integrity":"sha512-yYBn+RMaFlrm5oxonhZNdX2yFfrI+YCTC3EsY4cbJgZJ06zCWXs3RMNJeYk3ssMeV+FxS9g38Iw9lMVaUsjSnA==","signatures":[{"sig":"MEUCIBO5z49NEgALwa1MheAPi99QCU1+lCcVZ3RWoKHLWS+7AiEA9uY7VBr88W2VxbJIKMo2uI2x0qw7TaXxJg2Op9fajLw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSe1tACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoY5g//TdMUnDp6UQMDpDQiZQbpgBJkrggb5UOxYpEjbJaoPotqHddA\r\nyXgFJqKZC3LnyUG/2lntUBw16ck0lS7QCwrn7R3kSqn6759o6bwZRteKB9gm\r\n3HYwyCO6qiHdFZQfM356e63swHO1ND4BfzXEE/O4TKYR8g6GtDsbyXNK1yll\r\nFQ9rHc53H8z36GW+ReoyS2zGPgWPzvj6YAj5yZb59h4ut/IfJ68BsdPVUrff\r\nOvV7IwQBiq2RyuB/0nYPtuucgqKvFIVcNj7/LrcUXEeAQVvDwXbluw1HNCKT\r\nJluwew1LqY2hZ7+VQVEGftQefLrrmOdJdjj/pNHxakWfWgUyqvRxG1zgUJBA\r\nZh4YsW53KxOo4l4bpWIiQpD0joOAXqkGngKosacILcMK7JHV6fKxT8zJOWaJ\r\nq64zZvhMnkca7jaj30lKULD5EaTJ633JFbC872oC+CkqI3/BMv12o91rLW8l\r\n8kYQbKm+MiL1AKE1UCmam+5JcfR6l3nsYK+WfLkY2DBzEbYQO9cTHW6j1hGp\r\nLzRJym2w+nWTNd/E85j/brxe9/zNG2d+02mA/gSuK7Itk3/3Ul83fF5dl0jf\r\nmJ8Y7T3L1764oRYLltjwP8SeMFTYz4NMq0HQPKpvtBpV1GnyFwRB1ODfXyG2\r\nhVmY8ynoSEGkQCtRc7VKaMg6P26A/oHmzkE=\r\n=/sFW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c133997c8c45e50d9ebfe12fabab75ec90d244e7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.95ef196bc.0","@material/base":"15.0.0-canary.95ef196bc.0","@material/shape":"15.0.0-canary.95ef196bc.0","@material/theme":"15.0.0-canary.95ef196bc.0","@material/ripple":"15.0.0-canary.95ef196bc.0","@material/animation":"15.0.0-canary.95ef196bc.0","@material/elevation":"15.0.0-canary.95ef196bc.0","@material/typography":"15.0.0-canary.95ef196bc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.95ef196bc.0_1665789292711_0.5949099232402133","host":"s3://npm-registry-packages"}},"15.0.0-canary.13eea1b2d.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.13eea1b2d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.13eea1b2d.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"41d4ac8189ad8d8355f59072c00ff4dc4f8cdca4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.13eea1b2d.0.tgz","fileCount":44,"integrity":"sha512-fIwpfVS/sCkgrB7dqOn95/In35/lXcmpKgZ+1ltEnUhiNxVawD456FXnGHkoTpv22APpY8c30lkdBzGMarGRHw==","signatures":[{"sig":"MEUCIA1R1m5TyRc9ATx14KPrm4kMhGhgV17IVKevA/wG1zbYAiEAijIYjFB0qdPMnzktB3crR4B1y8RcO6IT1w4GN5HCAJc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTNF9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrD/A/+KucXHe1I/r4OkrCZfcwlh1xj/RTdeyNxwmNS9QA7Q5ao/Q1z\r\n/dNeubQV40Ndpxknz38FFY1eF6qmnwrk274bqplVABNjLuIz5q4WNR9qH5F8\r\nlmwdDiu3NyXZGPJ9I3osArDpe1W2Q5FFgTTBvTsaMVbmi/aogMF0ynueZPnJ\r\nMm0FTKFSaE+mdHKbMCUNC1IOCWEvNdviy2dPOjiIPs3CG2nWKd+KIAIwnDOa\r\nI26sTFt3oIZ5KXB+n8MlAlLLHv7lcAr9T2lmJkYsTa4e/kUvOxJGWbGbovVu\r\nH/eXx2tJE2KgGknIaJobLD0qT9zzMHgsEWoPniRGZFKG91HZtAAFkK6/cN67\r\nnsgC2PoPqlog4qH334E59g8cKB+GDhuKStEontsuJ2lCGhRK551Pk/FOsV3o\r\nCd3O4vN0Z2AtFaRktR/eWLyerutXT6hWPO7S0FZwxMQPIMOYYuNT8/kyQ96e\r\nt1EU24JNpH6ZyruMl63bLgDz2FaQXBk1E/TCHlDPSfn4VmfhRcruU1WR1L7H\r\nh25EtPt0nYk1argdUD1BXD3Nmi19wwPBqneBjmfQpNhERdcf151DIob1VNiN\r\nWvuqgeHVZaGsCVimKS3K7JnitoOpAwZ9rV2HUj8Q8YfO7SDFhDsoxshT6ph+\r\nTPR+5+6UkKPpxOZDcchcLRRI4EoJb7VsEW4=\r\n=qlzM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e9a13860e495e7f113966b4c71b9c7931a32807c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.13eea1b2d.0","@material/base":"15.0.0-canary.13eea1b2d.0","@material/shape":"15.0.0-canary.13eea1b2d.0","@material/theme":"15.0.0-canary.13eea1b2d.0","@material/ripple":"15.0.0-canary.13eea1b2d.0","@material/animation":"15.0.0-canary.13eea1b2d.0","@material/elevation":"15.0.0-canary.13eea1b2d.0","@material/typography":"15.0.0-canary.13eea1b2d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.13eea1b2d.0_1665978749165_0.11137040309502821","host":"s3://npm-registry-packages"}},"15.0.0-canary.ef9b2babb.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.ef9b2babb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.ef9b2babb.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"185ab9b088fcc6a9d4878878ea97b8917b8cda27","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.ef9b2babb.0.tgz","fileCount":44,"integrity":"sha512-N+UxFWdYtbSnMxm7mVD0Yhp0u5LPigq/UHORQF7PqHZLUkT5ImU/VTK57Mhj3WSP16aQm24bNT9aUB9E8cyOjg==","signatures":[{"sig":"MEUCIB7xl4Tv/KLtSL25k/KqYM0OuIdCCAnHde4usp65WitXAiEA6ia2NnI770Wg4jP3Vu9wfALZs1fpF6sQELf2/AGqa/M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTR4IACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrtCQ/9FB95jIRHnxakcIFEbgykQgBlJSoyHjz4xR/lZidvOhUKvk68\r\nmkELb2EQAt6PTwQsZ7PkZ2+s1IDTd/QCfXWTDZw6cJwow6zgrEKeV8zcXmD7\r\n8Yh12UcYuLp5QuuPbPCAJc4nl2effyZAXa/LAdJFOwsYx1t0VsmOIDZy3DQ/\r\n6nenUUI4G7LZn7wDfxN0H9vq7I4BxtBvozGlmEyOSRMYgywOWiYqOl9w+Jy3\r\nAPq81MDTNjNXo/os1EGFPhg1cYE4PYHsghEldpXtiU7P7JNmo7X/9VoT5Tbl\r\nMFEjBBE+Qs+kTktvJbNN4tKjaO6jPT5/Z3StZPr1B8Hf1fsiECqiGSYoAHez\r\nngu5HaWnYlVPh0tRTs5Gj8XblwSCMlOO3uEncGeTO1AUnC3hkBwRPpxcHR2c\r\n/qOcRvXks90HLh3kh9YxlfgdJY6FKtplAukuJYm1V11ijgN74nZ2cCydqHwA\r\nTkJqe1krcmVzq+1387qLuhik7ea8kijVx1SZaOWE1VLkd1dB0BXcjx10YKLn\r\ndKBOsuDFImRn+Xo3VScGVzmZ+dhuXNVGAkgYPzVXJZNLUrKjRsxba79afsz5\r\nnnbKnmXMFv18znij3acRfdQO35Al/tN5AFuvHNaiHU9fAfgpXtVbSOcJXnNU\r\ngNssIjXZxgLYnaKcpeTZlT7BRnxFyiJoXBY=\r\n=VyR0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2e04dcc89ca80bfb50d7ee1e4172ff9713c149ba","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.ef9b2babb.0","@material/base":"15.0.0-canary.ef9b2babb.0","@material/shape":"15.0.0-canary.ef9b2babb.0","@material/theme":"15.0.0-canary.ef9b2babb.0","@material/ripple":"15.0.0-canary.ef9b2babb.0","@material/animation":"15.0.0-canary.ef9b2babb.0","@material/elevation":"15.0.0-canary.ef9b2babb.0","@material/typography":"15.0.0-canary.ef9b2babb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.ef9b2babb.0_1665998344427_0.9214740956671024","host":"s3://npm-registry-packages"}},"15.0.0-canary.cec7fb987.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.cec7fb987.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.cec7fb987.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3943f14883519a1aa1ed6e68715d0a0d4f56bac6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.cec7fb987.0.tgz","fileCount":44,"integrity":"sha512-RrPNcPIUlNFl0w7d1Srmj3B6c3nf6I+Vs/RtkdJcxZD3Gjh0G92LS6iZHqP7X5IcZdxY/McHG1CFyJcOKbkWnQ==","signatures":[{"sig":"MEUCIQCY5QXQC/E5hpanBg+kla1lp9E3mcHMO5fs5dyjvuRTKwIgOGPL23CqibRWCyWRY+QeealWNZQ7MAQJxuqD1URKBAA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTTUMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrs9Q/+NoLp5djwpjvIdhpnrJM4bvfW6DyV4js++jHhL1gUWS/gdzof\r\ndkAK00a2yAr6CRiL8YgmT3JRcF8W1o/GZR1BgKx0WVp9yEhbyMxLZWWt7pyZ\r\nwc4eAoOwfDDin5sUhfi9I9hpLM/Si0H2/GLwKU4rlNbU7GDCGAKVK7JOXxm1\r\nJ2zrtF92GsN4qUAP2QAgytg53K6EWLYtdyhIfDpfqL30gxDhIkNeytnSugBW\r\nHHSBkdKs+09LvxzxFXDmptyG6uEsnc1X88kc3vEgN1fVq/QpMi5gLYzQfZ1h\r\np9PewEr38CKLy0M6mryVtBTMqUN6RYqJtvhFlcrmVxMnKtHuPCVOoYjLlyi1\r\nyB/LJpVMl4bNuoYa4Mo7fdV7bwJHTxXwUCqg2+EuTsUWwVTo+l40TzHRkTYB\r\n4a46jFd5AqG2CpJhcz8/hV8sFoje8Mr3/P/WjDkscEJ+iv4vc1k8Ta3qfG7/\r\nNu8AwQCCROGjD1orK6DziShRv4G/m0psyAOMSJEYcxNmY1yUnm7Dti66MyxR\r\ndOAmNVSh0miN+1Cp5zEuJkgww91rhTczrbnipLS+FRypIEjjAhqv7oa+g572\r\nOKc2GFRqxfYiq7Tn6/J+P+4SFWX8a0O+uQFWXcRqF8laMOs0EI0UD+sccb9A\r\nE6U831pf2VICO40WI6RLRQlGLDOZOfKY7ug=\r\n=uFDs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5af4beeec511ff0266173424b4b179e209402a5d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.cec7fb987.0","@material/base":"15.0.0-canary.cec7fb987.0","@material/shape":"15.0.0-canary.cec7fb987.0","@material/theme":"15.0.0-canary.cec7fb987.0","@material/ripple":"15.0.0-canary.cec7fb987.0","@material/animation":"15.0.0-canary.cec7fb987.0","@material/elevation":"15.0.0-canary.cec7fb987.0","@material/typography":"15.0.0-canary.cec7fb987.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.cec7fb987.0_1666004235970_0.058564994139054694","host":"s3://npm-registry-packages"}},"15.0.0-canary.4fff58b08.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.4fff58b08.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.4fff58b08.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0f9cd26158f1e9163d8662469c5fb4550df04f3a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.4fff58b08.0.tgz","fileCount":44,"integrity":"sha512-FWP64acote/6ouMVk4Z1QsUAmWmL+luZvVm8AtevfSjd1L0TaGAgEKWT4jHP4dE0NaT4+sONhG/0d9aKFsrVag==","signatures":[{"sig":"MEYCIQCFfQrcw3D8qxGIa2pqmoQP1hbBoouJX2oD6H2mbggY/QIhAJzTaZC+YEIE4F+A9yF7GhjUugwHvL93rEqeKq9t+oXY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTXN3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpwrg/8CL5LimRZqmgODUx/v4s17k/r6NxAqnohUhsam+MrS2AhjSRr\r\nAcFo+ik/OFDYvV9X4XPqFC6zcb+9e5uIPUmzzNknZ1mCZ4ifd//jAstQgAF8\r\nbL7pK/mRM3MoXpu+nZpkZ+iyFGruCcZrg1vhLNQYZZJqwjyrpitlWjkZFh/8\r\nFotdwK1T53dBOZYRr6cA385xtEvcW5VmZ5JT+X35MPw6SeL6bLMcBiXNnWHc\r\nTAkQIxZoue2rUGZ15uKSKbeO/cqDEiB/jQqXZsJzDxq3TVuSWkr3clKSw8Zy\r\nLz3H0LsWhGYt5wcmrBXjrIutmLC1+/fRS6kTQFq645wKFNxgLTewPDQLXoQC\r\n055rNzJmTH4aV1i8HAjvlUMu4HLZ7A7lVoxlLE1vF4Laie84EgvIltCB1lUT\r\nJdokz0FfdSkZGfE7mZkGsorHIvCf/kmtIrQWkIQjcDZHlVXnETxy4r3Zhvnp\r\nj5Hq73S5wLd9UYTP3TAF+KvpLV/5ADo1sCRwe3GBzYztVSbf1qIozNgJssMb\r\nb+D+WJO2GR2vmcP5XbQK7NiOD5f2mi36Bg4zJTrYoQbsXveGTHEOUMeZBxmw\r\n2hIR80m+Um1CO/6xLod4oJthUoCiqpUJDIqY8YHoRrsXgmYDKDnjQQiwciHx\r\nkphWwHtGtgOPbWUZlMrySoq2BdZ/318IzI0=\r\n=xIpB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b44726c7f5a5db16ef660807b5247cd71a447c80","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.4fff58b08.0","@material/base":"15.0.0-canary.4fff58b08.0","@material/shape":"15.0.0-canary.4fff58b08.0","@material/theme":"15.0.0-canary.4fff58b08.0","@material/ripple":"15.0.0-canary.4fff58b08.0","@material/animation":"15.0.0-canary.4fff58b08.0","@material/elevation":"15.0.0-canary.4fff58b08.0","@material/typography":"15.0.0-canary.4fff58b08.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.4fff58b08.0_1666020214911_0.1485601958090188","host":"s3://npm-registry-packages"}},"15.0.0-canary.587d8f871.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.587d8f871.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.587d8f871.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"02089cfb37fa586cab1fa0e6568167b0a0eba83b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.587d8f871.0.tgz","fileCount":44,"integrity":"sha512-DqIpT/xYLVxy0DufbgpMQS7lyGHwqp2SVboM+UjTGYv09gWFs33stphL7K7lY6sxr+xOpE3jTO/GOsREzOTsGw==","signatures":[{"sig":"MEUCIQDnAeMmvznNI3iqdo+9SVBg9l2FuJ4s1rQiYaYf4uhyHwIgctn0XEWy8Uq6x8IbZ1bRWq0c2NfdgzWmw373jJ4vYmg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTXuJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpLVQ//bYYP8sSmNOBJ4cx8p8tFmZa34TqMa/uO5NbzJuZr84rl45Uf\r\nF3kqKx2VXpM8eGRh8iCoLbR26uKg8N3+Syfgm7Wa1vDrdqRkkGkthJQuT1ul\r\nXJ4sHAIMfPCHUZvk5Z4H50g6AOveOyxd4mv38rdseFN/R+WSgt1zwXJPtzNw\r\ngGGk+wJOKhk2hON8KnL0kDf0Csg8TyP/p01aBhF0hMQP7QPlOlaXeHmR0D1p\r\nOpWD6M5UBToNXkhAZw4iFT3njU2hPpyq/BQ7McWV39ojpquKu7f1FyR4OpjH\r\nKDqi74aO+QJKJYr0ZteA+5HlsYnDE8H5P5VG0d1Z8Xv/K/cEtUebAkN34J9z\r\nawef8quoL2VwS1I8LBWQaqEEalzb/aTR++gizRUErHkh4PEOY5nmzhlDs9A7\r\niDVvNNxpXBgKeY18A+rSwiv6NAHPaOov/pEE1Dvb73WtIIbrsBJ7nc7kM0uP\r\ng/CgQG0vxrNnLo/efIAIEYpyR/nOGXVGNaoTOTF5hvlg+Irlc3n3SwvBZ9qS\r\nTbcCoYKeBOqsTF2kKgiECoNEyCy+HskbA3C0nh5id3tixl0toBKRRe4DcLSP\r\ngo3c7PSePh+7Xur112jVy0gYjrjpfsUbAlzAagt2gcmw/NZj73yl7WZ4Eh3U\r\nC61+KD9fAZn8jbt2yWr5SOQIUPpeh0bALf4=\r\n=huOT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2ec38be871dc355461961e4ac44d48ec44c42a1a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.587d8f871.0","@material/base":"15.0.0-canary.587d8f871.0","@material/shape":"15.0.0-canary.587d8f871.0","@material/theme":"15.0.0-canary.587d8f871.0","@material/ripple":"15.0.0-canary.587d8f871.0","@material/animation":"15.0.0-canary.587d8f871.0","@material/elevation":"15.0.0-canary.587d8f871.0","@material/typography":"15.0.0-canary.587d8f871.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.587d8f871.0_1666022280735_0.23037905911514667","host":"s3://npm-registry-packages"}},"15.0.0-canary.edf4b98d0.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.edf4b98d0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.edf4b98d0.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2ac75718b2e467d9f805d86bb41103d3c14d8e67","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.edf4b98d0.0.tgz","fileCount":44,"integrity":"sha512-HdGI60tDcFcFFMi1wIoAx2otQpMxXQoDboXQ9H4bvpOkeARefJ2k4DovZgDzbI1TePzaF1PFk6X8b2LPVFO4WA==","signatures":[{"sig":"MEUCIBXhd4g+wc8cfC1WHsQsR2drayM6JfJRLMf26OnmncLfAiEApRZ9Io6HYnHQEgu33wITA6wHWAJBTz2h8IJNGb9nDok=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1096017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTYWzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrrSQ//QL94linrHIYx6zHm9p10lEZ0mrub6Nzv6Un52vkMnZ0Yw2yu\r\nf9ikl9HO8L4/PtT+3+8KNPt16MCDfyF9In4YQe+3S6nZrJUhfeY4LH++pfe/\r\nOsDW/bLP04VvSQk6CarfNZ0Tf2bcJWZ/D5JIAtuo68HfBrhxMCHtfg+GJW6i\r\n54mfAfCYO0PLfJRcCPQoP2FQ6OpLDOjHkoYF0Lg1G8QwrI2HQRWwvfFcB50r\r\nxdOpgq8wbTpHMVoJHeY1GadsdUGVtiTGU2bLhM+oHivHfZuqirHCmWCt2QRh\r\nnWH4+ijTHw5b5o4+wN49G05MTdtqZgSLOifDPPUAQGN3+81tG/pF3uOoQQLt\r\noDLY6UIdrgjUkuMFm/mRRmcWhfx8NLgSfWsOPfy0RK3WWyMk8MRjLbvOzA8b\r\n9dEQp/FpjtBNYNjulrPguNybJkUPLdKHeH8GumU5Jk3+llrIOU5ocX7LVQRR\r\nkuJ6T3W3k6uQwcVTFUqWd5XtXNOI+0hvKooNLL5TsgGY7cW8Abfmu7d6T+y/\r\nMIxRHXvPLqRW90YBNb3ewoF2UP1AcKha2UFZWiDn3IWIsPXB3csKQSEmP3KQ\r\n7lD0RXhT6G+b73AlV/tq793qqxLmqGQzv3aORePHhsriExXb5ChCCOVptCxb\r\nj9BudQKpm94cX/cMzOkKXMt+ettNZ9B/ODU=\r\n=FQkL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ad4766965d2bd24e69b2e2e6940c960907c93c1f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.edf4b98d0.0","@material/base":"15.0.0-canary.edf4b98d0.0","@material/shape":"15.0.0-canary.edf4b98d0.0","@material/theme":"15.0.0-canary.edf4b98d0.0","@material/ripple":"15.0.0-canary.edf4b98d0.0","@material/animation":"15.0.0-canary.edf4b98d0.0","@material/elevation":"15.0.0-canary.edf4b98d0.0","@material/typography":"15.0.0-canary.edf4b98d0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.edf4b98d0.0_1666024883594_0.9794934308236234","host":"s3://npm-registry-packages"}},"15.0.0-canary.024ac5f16.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.024ac5f16.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.024ac5f16.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ac245362e14f7ee83f2d4a5ee010b733ff9bccec","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.024ac5f16.0.tgz","fileCount":44,"integrity":"sha512-PjOOKZn4arZLoCyuGvwPKTG3g5qQ7CHQjlPjSh/RMYGKLVTCPP42sduz+R4HWCFsuhq8t5aj3MXuzmB4ZB/67g==","signatures":[{"sig":"MEUCIBkrDgEEcKbllIARjn3VWJtMOKl4IKrNtE3ycSG2O2FoAiEA/hSpfFREL8LTKqvIrkG4KAMMmRhfSzAp7aJr5I0KwE0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTdqFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmplLA/9GfQzvdNU3WOP3BB1+eJKcM/UgPB2le3tVRaG6tsZdnd5DiBq\r\n4D6h07r3E2anlWIFpGWka3+otIbCfDJCGUHoKbX4ynTQP237gu1uhRXys2VD\r\nvIhT8qXlq6gzCdlOJIpVNRa6lCFMRZdzg30bmaAaIMnI2G/Kn19Hv4r5MQYr\r\nbWCHpJxz1rlBSHg71UgzkAitILS9UNrkvy617ojdudyvjoxYhphWTFBQxg94\r\n3xHj6lbvTxk86Asn0qIBCrVqRoj5z81IIhW+MK0OZ/ZMOmFf3l9IZtNDM/pO\r\nwwNfID49qTk1iwXBhystWjWt1Q9aSr3ZUeWhGc2L+oVLKex9DLUlYEHUbhEb\r\n/jMeWlocf6XrKyArIwJobGJrTOXSOuCMSFz+KB2sbBdCaTzrHEcJMnHH8r18\r\nRrc9XHs2GEz7jTLuWKJW3OeUAIJjAgAVpo4C4TAZbm8jwnqHaYlV+z/7Xp/7\r\nmSbacjktDCwuiUEJ3WpdD274wHinD1p/n8WVOyJ79bA2TKP9kjAHbRMcPYt1\r\n6vOxwOC2GAgOlwAQTxk4z3mQlYlUhTAT6NEE+c9ECo29FNSDByW8xhPi2KO7\r\neNTdinWjLO6aeF47MdhaCI3Xi1TEpixU6MAD4K1HDjUipnwHsbk385vatzxU\r\nLcA/OydyqMGu80oFLQ7Y/uCcYPnG898RNhg=\r\n=g5gD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9ad8e77cff1167055c10b93b4082fd5b4e1d8643","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.024ac5f16.0","@material/base":"15.0.0-canary.024ac5f16.0","@material/shape":"15.0.0-canary.024ac5f16.0","@material/theme":"15.0.0-canary.024ac5f16.0","@material/ripple":"15.0.0-canary.024ac5f16.0","@material/animation":"15.0.0-canary.024ac5f16.0","@material/elevation":"15.0.0-canary.024ac5f16.0","@material/typography":"15.0.0-canary.024ac5f16.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.024ac5f16.0_1666046596791_0.7564357269797486","host":"s3://npm-registry-packages"}},"15.0.0-canary.c8bdf6144.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.c8bdf6144.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.c8bdf6144.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e67e86d4289d3e48bd045dd4ada595b32d7120cd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.c8bdf6144.0.tgz","fileCount":44,"integrity":"sha512-hERcPGYh0QNPmnTWRXjlSDbMNdogDzj9+3bCzPKCY06zr9i7JoXa6LrfYq568+2aZ9yE9yfLLJguAQsa01OxTA==","signatures":[{"sig":"MEUCIQDVSZuBitVrQofQZVhX+MEUSfmRqdQb9AfeZXF/vMMSmwIgWKCqSWME7qbPUAoY75tkJ4fihYql75ALwZAxycNtixY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTu9UACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq+hg/+MJwc9EbgiV/fv4++P1pv4Wseve4IIDhIcwsAJdz6uC7qsmSN\r\nDCPmXOvvVXok9Fn95Y44rsGjInrBPxBSlAKaVq/yJMdNBSnxYp2gG1uR9Ihl\r\n5BoQVCUtxIBj5tANHGo9LkmsVJqjW5rA2NGg6ZFdiVIyxZDHnxlFtjEQ2ep4\r\nFen/gf3h/hyCDTtxLa22c491mREQoCv/rJ3vpLM3W0Q4cxY11alosNpaf26t\r\neKyMjoNu/1uyb/z8NLkaMx2GMt1S+AueKWfrlh6NelgWlnVA07O2GVhrz3eD\r\nrW/9I3ggGQFU/Fmc2lKL4nLXRZ4GRLlW0LgoO5adu0DqoVpwuhnOnhbCm9UX\r\nDgPwFz0fGgeRj2UOuBemLUPH6fNGgNUa75wbMEAu+ABSVWJEISGL7AYL/rGa\r\n4g4rYMZvY49yLlucP8SG9SwfxzUKyjmpwErIlWB/nc9dog/AQ7a4mKvvZKWm\r\n8TIlxTwpb5VgmgecHhCvjDRc+CPtipfLlMogboFwmudiM0QVW3PFHQpAVFEG\r\nVH0YS9jf+R0ygKGUAh1J0/lJqQNop21tGuyvoKSpIKgPfaBdCRvkZH2N4CuW\r\nkHMSQMqLiuZNw4yHjPNo6hsUBD7LVAxZmAhujSbAp4vm39sg7GBqBSVea2wy\r\noCETDTwEKrYxp+qUWzlF5fXdQSm+OGboy28=\r\n=VYYL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"92f4fcf51598cb8f9b9e03a35332a980296c24e2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.c8bdf6144.0","@material/base":"15.0.0-canary.c8bdf6144.0","@material/shape":"15.0.0-canary.c8bdf6144.0","@material/theme":"15.0.0-canary.c8bdf6144.0","@material/ripple":"15.0.0-canary.c8bdf6144.0","@material/animation":"15.0.0-canary.c8bdf6144.0","@material/elevation":"15.0.0-canary.c8bdf6144.0","@material/typography":"15.0.0-canary.c8bdf6144.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.c8bdf6144.0_1666117460183_0.8825862503124104","host":"s3://npm-registry-packages"}},"15.0.0-canary.bacda4885.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.bacda4885.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.bacda4885.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"01cd8aa2bb4b296349f89389df71c8bad4eea166","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.bacda4885.0.tgz","fileCount":44,"integrity":"sha512-nBUph/KFR0i4xPMZNHhaqHpRn4Ry4G5nad83P7aflJC3UmShYP15hTrngb84WHg/t0XaEmo3hukPp7NgA+bIDQ==","signatures":[{"sig":"MEQCIA2f3XvfT1NM9hlOWL88XgFs8I6lASIfE5PRPKUuR+04AiBbMu7JLSPFfibFF6M6JxSq1JaHPMhyvbzWNthNl/J9wQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTvPgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq07BAAkRzxkY4kd2SbGPW5fLG0gLh3HlCHsP0D4L9+gQJK+Kc1utz3\r\nu8OOWIFIzzvWshYQ8qOAuMMRDY++GLC41GQUfKKkf5JnFQDIxUnpCYDC9AaE\r\nJ84hnVG9CJhoevYqdz2+ve0lwXi9EoyW5h8WSnF8jaJaPbSAOdSqe8k/O/bG\r\nORWy8FyasiN7Xvv1D2BLs1Lrq9fHPrlye0cD8alS4CnKMxMqYZRXv/fHjIfk\r\nmU17iY5xGEcbEpvJWPyH1V06zyPjYCKvDO2boKZf/dLGzQIgY+7cvfdNmD99\r\nk6JBb+2n7l4sNe+cLuRcKOzmYMoYJI65Y17Olsjw5HuuzcXjT8bwl2ZsOpr9\r\nNbLF5z3B1Lh52ay+qFYtybMXUbqekdbgUNOsfyAN54Q9IKUy9yL+oWC+Uk5O\r\ni6bJIKG/3+orVS/X2MX1Sjr2Q2Mp/GS6r+NP2y96CHq84FbvhDze3oXl9iiC\r\nWkpQNAj4zzN50wZts+Gzpye46UBPfWsOmLn6ZqURr59423y4YeL4p6XQE+6w\r\nrLygOAPZEiUbXymnpwSpXQbHE1wm0WgBsR/sTLHi3dWl51ubD0kCN3hprBdQ\r\n8T7ruanud2XOK2wjgdqIZ8yJcIAUYtXihCFW8CJhCx3fJcRudgRlSf8Ap4Kp\r\n8prfesN7I2uOw9xMRpnsb3FSXHRZFi5RIkA=\r\n=sxV6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9e0a7dc5fb5e2d1554093d85949ffa6c2aaa33ad","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.bacda4885.0","@material/base":"15.0.0-canary.bacda4885.0","@material/shape":"15.0.0-canary.bacda4885.0","@material/theme":"15.0.0-canary.bacda4885.0","@material/ripple":"15.0.0-canary.bacda4885.0","@material/animation":"15.0.0-canary.bacda4885.0","@material/elevation":"15.0.0-canary.bacda4885.0","@material/typography":"15.0.0-canary.bacda4885.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.bacda4885.0_1666118623929_0.6342454122971164","host":"s3://npm-registry-packages"}},"15.0.0-canary.92b2556cf.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.92b2556cf.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.92b2556cf.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"455afc0adf6968a6cc9f0ae93f1c45f4498487b6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.92b2556cf.0.tgz","fileCount":44,"integrity":"sha512-zz+d/GsZwu9aKwfNcrYIyxMbqplqzuRR8l8idWK8vs/hJzDL+WbqyOnAyHEixYFaWykP+AdXNj+jXocBfI5AVw==","signatures":[{"sig":"MEUCIF9x9J6e9OuuZo8Prkp4MswmjOjZQvJDY6/KnKyEgsDVAiEAxgEKi15AFyDFUz60KfQJFXra8bRC+FNHIHD7CWCWuYY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjT09sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSoRAAkxcjpZQWmMwXnOFFVzc74gqt3IT6WD/JBFX2zRPJllpUac3W\r\naVWL4Yr2SbszOvHWcaPiifsHi/up1zngSiGMNKu2QAqZTwDC0hyib4Hlzfdv\r\n4Y4sCQ99UAGyySpIlKTIdw3n7y1pw3OEk8BzOWrcxI2/gqpM8rWAlONtkk1D\r\n2PgVJGw5MnttkN+0JVCQv5JGMP9M2IwlaW6wU/sZviOWAI0mkMLsHQp2z9kd\r\nXKzCA6u85PCzHyDuwJ3U0OgMZySupqThpQpreM9FssE0F5gp4SCOmDp7c7tL\r\nJpsaCKrFtvVDNYDJ8XO2FN5kfiVFuq8kOBjTNDSCiCOx3CtCsnd2dFU5UPo2\r\nKmqsYB/WtT3KScxUGybaAkg9ULBzGeAlXj4eDYPFd5zSXAHyLxtdi75V5Vul\r\nQO7LQebSOgxHfROuqWmJ7CybI/H1I3GAM+xk6vTedHuZ6W3HfEQXed8NPDyP\r\nWN+phs01XBGex8sCLudeSLHxqM69FiwlJDLPzo9cOTVGhUoU25BVhm+me8dy\r\njFxZrYc7SnCscwgNIzDsJMwimdffw6MzhSXR/Vg4XsZN0E6rypeYKeMxV9bF\r\nosOZ9/Dvir3Iu1jOYkiNP0jVDsjxnjdLFB/lRHf/GT8EQcKUPyGz/n0Syb9r\r\nWyZe5vn09haYNTiCH2kUimIbQKP+tBswwQw=\r\n=AJbI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7ac326ada7a9c6e84bacf5e01a6d22e675dcda8e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.92b2556cf.0","@material/base":"15.0.0-canary.92b2556cf.0","@material/shape":"15.0.0-canary.92b2556cf.0","@material/theme":"15.0.0-canary.92b2556cf.0","@material/ripple":"15.0.0-canary.92b2556cf.0","@material/animation":"15.0.0-canary.92b2556cf.0","@material/elevation":"15.0.0-canary.92b2556cf.0","@material/typography":"15.0.0-canary.92b2556cf.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.92b2556cf.0_1666142060177_0.25591999845911784","host":"s3://npm-registry-packages"}},"15.0.0-canary.cc804509a.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.cc804509a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.cc804509a.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4a80f73945bf20ecc3d7a3f22190e12e018839b7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.cc804509a.0.tgz","fileCount":44,"integrity":"sha512-pMys6JWRtJhxy8brEkezsjTLvZbZe2f0O5s8g3NbUAJIMHYQEEUZNTTM9sh088s1bsmskbFxQr06pyJlIYr/Og==","signatures":[{"sig":"MEYCIQC2EszaytB2IdRy6o1w7JqYBwlIncFFv7h/ECiE+pzXFAIhAOITTY5E9NXHDznQu7NDuzqEDEJCbIsLf6E10xynOknd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjT1BMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpxxhAAnSyZMr0dfj4veU17qnCeoOPlSYYCQ5RU3XhkJzrwwgVVRUMv\r\n7B7UOjd5+lj7Kexe01hNqEPBqU3K1qVBHYoNm+mLlI9u0NhXCvsyaHZWnN4J\r\nDm8zAxwTMgldyR++7NWqSjPJgyLyJVe2C5tJQx1q74ZG4HjXuWa67GSCE5dQ\r\n8eTRjm+ugakrtTQFA6KVAaMxFnXgpcqgsN4By3nVksbJosb6PdeqLT/Evach\r\neapa8qEMI+fq2o//Tm9HgI9fJj1iGK3GplPB7yWC8/9IlKgEC/uuyyDXy94x\r\nxxjHPdNimx98CJbZcVH9KeKSl9nPAyX5GGqmw//MWUIG0pfZyEMJHJUT59Oq\r\nm0UKojj8o5EHvmIuvW8/AbL3Ogn7i16K7R/Xv63KpRMLuDsJypofU47hhkqC\r\nlfEsMRwZ5EQQHWVVYIxz8eyegM/NvrzQDATulcLANnOxPfDw6v5cLUSRZd27\r\n27pIrjfN4LdDuK33oN7fQ82NxJKugMwr4PoOnOtbgxQusvT7s8ti0QtxrTxS\r\nt1+Fe+Mx2h+0CzPck76PYsvzpNAQ9kwNI11aEdZNPhjSmEufj7iPRe45kYkQ\r\nC2dDJEgMdmSG+9Jrd17wZd8PpdWFZ5C4mpvOihyUn95EXLwejjS9/cfcuLF9\r\n7CYEwfZMpSCkD2WYn0WHJVcEvy9uBF+JwAA=\r\n=p+xC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e8cb944f6f2263dc4b4fec5d7ade2bdb5172b4eb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.cc804509a.0","@material/base":"15.0.0-canary.cc804509a.0","@material/shape":"15.0.0-canary.cc804509a.0","@material/theme":"15.0.0-canary.cc804509a.0","@material/ripple":"15.0.0-canary.cc804509a.0","@material/animation":"15.0.0-canary.cc804509a.0","@material/elevation":"15.0.0-canary.cc804509a.0","@material/typography":"15.0.0-canary.cc804509a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.cc804509a.0_1666142284739_0.1765128213844882","host":"s3://npm-registry-packages"}},"15.0.0-canary.982bedae9.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.982bedae9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.982bedae9.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"de2f2fc99266099ac5bb9a1c2a07a5bd5c1475f8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.982bedae9.0.tgz","fileCount":44,"integrity":"sha512-I6LY+NTkKmYWvw+i8PxpYCghTH2QC0JjYQCNGltICR3ppDSLYuMTa7EIZ3V2J1wfoSHPmx1hWSTbQlAMd2VK5A==","signatures":[{"sig":"MEUCIQCVh590eRPmT4jDS2Q/9rtqiWdGeUs/WKbpK+3yVCvOEgIgeiLiO+hlTxa7A5oxK7Xp09J8U7tlm17K5F3sHuW6fyQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjT1T+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpoxQ//bg0FWC9JX9jLCATbXX6aBoROefplOcZfI0pMUzuOtkO6JMzh\r\nt7wFWqylP/xHKoWdyim9JD+PQ2XyMKLjEUTdCv6/zyL7OIcrF1JIcKAN+m9R\r\nCPNQjmZCcaxIdCNZ+pCwbas9IuDoKMNPVdTC8kvtIiCJUfFT1vD34JFMeRVO\r\nNmMvFe7qiNSKHT54dgo2Nfv+jHKotbyPjXq3nuB9kCnRNWjDsTKPJpFDUjUm\r\nx9iP2RrHW0GqvtCBUPuPQGmZSNkH+DZCqBdRS/G3JpHVEnuiJB7LDjkA7IEi\r\nUge4fMv+b7op/hNohBOeOZ1EB2EW9UuYiJzGVHD6CpsDbx36uGJCbluQESm3\r\nVVx9P5eSGXhi+kU/XALkrUFE2g2gaRFCWC0HWZhT+fmXaJaNPCwy7le4q//B\r\nvUdSImCSw1nWZrDZT4QNIlWREQAjCcGf0UcajkgR3uEM8bpKjoiEjCfqWzas\r\nHiVneZ63Qq8iSjCIVO154hTH5x+EttWKJDlTeZpv8/AsC9iNBZHzo5/ltONw\r\ncY+MV1sssrunWPnOcNfKgcwu2lcfwRXOkpw/zfzXdcDBZj1ooPvBL0F94bFO\r\nRRpobaU0yvjnLwxiQ59xAwZoJfOJ+QB7kLXTMrnzu+UMOgwC/DJBwC9dAE2G\r\niS3i1C0K9U/LgHeaiYWQJL5cXd8jBmj92H4=\r\n=w4U/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"247fc73217ef7d2438e876f1477d141e6970c9e1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.982bedae9.0","@material/base":"15.0.0-canary.982bedae9.0","@material/shape":"15.0.0-canary.982bedae9.0","@material/theme":"15.0.0-canary.982bedae9.0","@material/ripple":"15.0.0-canary.982bedae9.0","@material/animation":"15.0.0-canary.982bedae9.0","@material/elevation":"15.0.0-canary.982bedae9.0","@material/typography":"15.0.0-canary.982bedae9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.982bedae9.0_1666143486593_0.2672817697584078","host":"s3://npm-registry-packages"}},"15.0.0-canary.ee40081f4.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.ee40081f4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.ee40081f4.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f13323c75b98927106687bd3bbbb9a8c46e009ca","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.ee40081f4.0.tgz","fileCount":44,"integrity":"sha512-ax1N7tEEQE+NVSfniVV/pVyMvq2bAnkIKObaHhG554BuNEesoo/hEC6/UVZJS8xGpoOhNd5dKqb1l072tFKGvA==","signatures":[{"sig":"MEUCIDQW2agAwslDl3i+cHaxje37tYGSwN5v/810M8wCr2YTAiEA3RYxtAOTHRm2aHECTcAyizXGrOvEKIxugtkz5/+x0Lg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUFpCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqvug/9G+dP5V8svIDvmam9pXsoPikwP4NlJXPRTLXYqlf/mdvEkOer\r\n8ugSC0elvDBeT7ucnI3o+ZtigmgzhF+Ej40BsuTiZJolJzacG7REG8R9W6jT\r\nMVGfQCQ6JUGT5VO/NnHXSblwB+N/T4y25pqywPgbaAOF3tMUurV0hpP5wCzA\r\nxrXzFyANsmMmIEh476ahqSdCHggLSR2+hkpb/Y4rB4Vzw9jqhdvIllzsAmjj\r\nWGMhe2qebv4Fl5NAAXMR7DHsdwColcX4yU0Ny50/JHCB4/6eNBDK1WlO035B\r\ni9flpEPW3Kruy09pUU1IH833D8OjK0lzOdsK25dpMTSJyl0SKVHQif3yR1uF\r\nIgVZjHKG10j00fiPO3iPzMkghEDkJ7ukEJ4ikiOGNi7okoHvee2ahuNd/Q7I\r\nmiStNcrmfzqP/wccwsR7vxhGGkbuMXRG3iRxwG++pFjkSg2gRhKbZ/9+rAyL\r\nt76f/rDK/JmfsCR03CdqnpNnZ1UBVp955iRugAkqXXxLMjBOqZWf5fRezGQi\r\nrVBt8RnuXdlGEtqSYb+erWVHbQDEI77oJ4xykjaJLTqBBeZASLnHxFoZ4AbV\r\nK/utC20IOYwJL4dmSFSAT0PHeCZpHUsf1xjAUuMmTFiCu9OcrvNlDVItsDnW\r\nHE3TbUW36g1FzS9lodt2JT0T2dX3UAwpYuc=\r\n=99vr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"04ad48e358b6eef4ec9ee359b0ab906b30425504","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.ee40081f4.0","@material/base":"15.0.0-canary.ee40081f4.0","@material/shape":"15.0.0-canary.ee40081f4.0","@material/theme":"15.0.0-canary.ee40081f4.0","@material/ripple":"15.0.0-canary.ee40081f4.0","@material/animation":"15.0.0-canary.ee40081f4.0","@material/elevation":"15.0.0-canary.ee40081f4.0","@material/typography":"15.0.0-canary.ee40081f4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.ee40081f4.0_1666210369931_0.6529367363734828","host":"s3://npm-registry-packages"}},"15.0.0-canary.98f1b54e2.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.98f1b54e2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.98f1b54e2.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3b09ca66dade4add14383218ded6a5114ccdaf06","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.98f1b54e2.0.tgz","fileCount":44,"integrity":"sha512-TWy+zptBfd0CDxdxOu/bjWsLXONYtUq1DTsNh3QZe87NiNZKxSO+pMbYcLeAM/3qwrlqAKcWRieYHqo1D0nBaQ==","signatures":[{"sig":"MEUCIB+m/Ciu59vQJLwtQ7dguXsSJhtd3mDLk8QNUBjIRQYpAiEA9NVcNC2P7gZxwV8+HNIxdC/K4eIjtb7Q9FkugXipsvA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUdJkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpzAhAAkAr8JPlcqe6uGLE0+8hEDWmfVTWGSAcev/H7ur669+bYvD9W\r\nrKghIfn0qQQDaadR5Jp1bLGIB9MlL0yMizopxX2AQsB6elAidlibyLI/jofh\r\nm2CqLcpJ36mu4dPIk2j6anRS+lbYS/RmuErhgOUrvL02L5Gfe9p24seZazRB\r\n7IlWr3B7hX9shnSPAUXRgRfEzPUD+DYh/Vl4XYpCywGEs4I7obBaip2IzDg+\r\n+fitJpIOgZstYC4zpO2XvOIzUc+cJrGbA0SQMFTfYxCb4BYJ1cEycZd5BwY1\r\nfGQRB9sbXRS/nRrzjUnieYWDnnfamYeFa8P1ag5mZroc8ER64bxai2Jhod3p\r\nIFqHsV1ZkJJSfIBDhH4IXxQNGE0GQDvmjX3J+XuEENQLQXVrzIJoJ6uTK1mX\r\nDmAMPbWQEBzlV6HWBMcenebI3OoyOZWtiPjXdb6K8iA5CiIOhVCdFpQ1vGau\r\nBchEpWFS68VTkR/9AH7G+3WR9CQ2tGMJywrxZCTLpQMITjl+T+0hZwdtS2Wx\r\nj7yn2apfqhSrN9ENr+GjGMqBPs2LgZj9lzUx8ekgaYbq+19B+eQnySljRzq7\r\nNdBS5kSBHZ/BHJSvRQWCg4Cs+RwKbnOWOheeeAPh8ROAZNbyoUMb/YxL7Mss\r\nU8Y7kViKrwNJD+QYdgF2OlPWrEqNgCQIAMw=\r\n=mSNO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"aaf0a191532b3357cda509746499ff62e3aaa47a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.98f1b54e2.0","@material/base":"15.0.0-canary.98f1b54e2.0","@material/shape":"15.0.0-canary.98f1b54e2.0","@material/theme":"15.0.0-canary.98f1b54e2.0","@material/ripple":"15.0.0-canary.98f1b54e2.0","@material/animation":"15.0.0-canary.98f1b54e2.0","@material/elevation":"15.0.0-canary.98f1b54e2.0","@material/typography":"15.0.0-canary.98f1b54e2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.98f1b54e2.0_1666306660384_0.9341545650688514","host":"s3://npm-registry-packages"}},"15.0.0-canary.e74b7ba7e.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.e74b7ba7e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.e74b7ba7e.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f1b70ad085feb44410876b983694d178c24fd04c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.e74b7ba7e.0.tgz","fileCount":44,"integrity":"sha512-9/qdqJyqzX7KZcPv6k4HmhuIdWItHoOPFcXRPkTrRRiNVNtCvXOYdtoV0l3xBVNTs2SQG4qXS9w0L+VeJloycw==","signatures":[{"sig":"MEYCIQDEt4LaC6h48D6oRxBpdTxayPtb1Fy1qkc+dtGGInDkQQIhALYbsjQ7+su69HIZZftr0rLkVK8Pt9YsrMl+jBvgnMT+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUtGjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKfg/5AAJ8F2g2Q35kSUn0wATch+W7c8jWjsVJKFvPuLLwFPOm0sC9\r\n9xayqbEXK5ilHlP+CGS7TKOkDyzW/Wcq6hR44XGzQkJV+YJlYbFqXySJ2ity\r\nk/TThUBvOuKExrY6rCRFpOQ1H7I5NV+2/Gv/HPoqs8vaFCg6d/znAzzIN0/6\r\nKLMqDGQodbwIGjSGWfUyRA3ZJSzkbIzNB2z8uvio/Y3wXcKw+Qr9E5+OeIsD\r\nor6pvyyLF1+cq6xRLD6H5khtC28+4NoBbULix9/Zylg6pYvdC9oZrZRpmS7y\r\nGtByo74N4Q2ls0SjRRtuYnpZzg+RqfEpqXamiDclrT4FgcnaSjk5x+W43CU+\r\n7OgmaACInTCgsgcOITHSLp8jz6DaNOHo1ApTO1eBzNaKPz5MvKMXXYg4lPLI\r\nxpsLcJRv1onGLDjwl6KEmdjfdjJdFD9JJSKDjTMcI3jF0AQ064DEIDEwuEcU\r\n5vVOZCTDB/SptjASrT6dkJbTI8Fks/U8NrXg/zcUmYP9m5t2OVmxuTd6TrOC\r\nMHsL4Fl6Ux77CLWIhaXed9mW08ub/TmxECMnlB0BEsCfQHcAE4pESwn1fogM\r\nZfI9A7kSC8ous/loUo5wKaFJcEdvAId8PzmgElBz8OQv+a/kYK8ErX7oLerf\r\n9LuPVX/iyniLujnVsNBhU5Z2An65h8TOvb0=\r\n=93Fx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e30e36776ed9bc98d53938cfb5e48bf5d2cc67c4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.e74b7ba7e.0","@material/base":"15.0.0-canary.e74b7ba7e.0","@material/shape":"15.0.0-canary.e74b7ba7e.0","@material/theme":"15.0.0-canary.e74b7ba7e.0","@material/ripple":"15.0.0-canary.e74b7ba7e.0","@material/animation":"15.0.0-canary.e74b7ba7e.0","@material/elevation":"15.0.0-canary.e74b7ba7e.0","@material/typography":"15.0.0-canary.e74b7ba7e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.e74b7ba7e.0_1666372002884_0.3309434930974593","host":"s3://npm-registry-packages"}},"15.0.0-canary.ab55c07d2.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.ab55c07d2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.ab55c07d2.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"025af6cf3ea40cb5c41831416653bfebd4c3d015","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.ab55c07d2.0.tgz","fileCount":44,"integrity":"sha512-e/FLe4XojEcPtD7dXVLAXl78tFZCdftPUoqlEFdZx6dUXo1ABg/ZaogIk1NlJptFvFrBKZNzJY/u1rQTV90s9Q==","signatures":[{"sig":"MEUCIGuVC6S/poaToh69LDqTOS4YhBpJSk8HPEuJ5jL5498+AiEA6H6/gcLYSQ5x0HIPftil7Zr8gb7QLuDVu2ocj6GPkp0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjVDRUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmogSBAAo28W+j2q1ZfKiQEZ8ayIkt8U8bTR7LHaJ9W5fXtPyF+8dXHz\r\nM3rgF4sB+k7T5RYmvCASJ9FlkDGDseX0wKRWqrAEtu2sncUvQpKGITCPJeMz\r\nTlpoY3BSY9qhnS5rXamU+O8MqVHcLRU2MrJVAlrXXrsXStzpFylZ0MmPvXb9\r\n94qmdJxPEKuqbOwWo9jTYQwAxdJgBJ4kHRiN3v2CqzkSJ7/5bBvuvIPeEVIp\r\ndbLGXhNYNrdRUWMxXS1OcaRJcVKDDOTypFp7fqU/4kl/ZoVrHAYSSBD1RrLl\r\nPGhKu2eAIkRWRN/o9KrqQ5l7ctDN7zMaII1+bzAY5DNpYH+1ooNwR569HcbM\r\njyER93xVSZ0b9HCal7IJU33F18sg5LAgS5shzvcbbW3agb9cRKHoSZjek+AJ\r\nGJGIS07+U0IsYz3rYPbB8vBbHRSm548c8bI+dfZ3n1oWJA1F0rQ4XT/gXpy/\r\nTCZEiTy3hqMXeyEcspfkP5Hx3WmOf6/FuS1k7WEI8x/7GBMsCReXMNuBuu3q\r\nzGkt7/no7Sckp/DYH5fxWDgKBMR62HDNC+CJ1S9OlqPEPbBZmTa7FzzkJED+\r\nL0YfB4S5pqgKWL2my/pDkGv/bHipS/8f9bC/GwaP+fPNQNDsJfcK/BmuAlKI\r\nsmYsd7OVdnbg8z+eEsqG6SDyMmHFgY1a85I=\r\n=e21g\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7fb32c724b7903a8060cb457aca1f150a15590dd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.ab55c07d2.0","@material/base":"15.0.0-canary.ab55c07d2.0","@material/shape":"15.0.0-canary.ab55c07d2.0","@material/theme":"15.0.0-canary.ab55c07d2.0","@material/ripple":"15.0.0-canary.ab55c07d2.0","@material/animation":"15.0.0-canary.ab55c07d2.0","@material/elevation":"15.0.0-canary.ab55c07d2.0","@material/typography":"15.0.0-canary.ab55c07d2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.ab55c07d2.0_1666462804355_0.15509558443049198","host":"s3://npm-registry-packages"}},"15.0.0-canary.fc539db34.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.fc539db34.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.fc539db34.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"172ef02cd053a916fec583c1dacff1a3fc801952","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.fc539db34.0.tgz","fileCount":44,"integrity":"sha512-vqbQjLctLFbU5+UnXNEAFfwDXoeyVwSfK4r8X0vIvLDCGQ/5RXuLWmmsN6V/UmHe45MRkEnRhpZab9vM+OfFtA==","signatures":[{"sig":"MEQCIGlv4GGMnNW71woVgLCcs2v1zxPk5Zdn4zT3r/G8lI+TAiAKdBj6/OlF+D79LuNoqisCSuR/iQsM3x5keTbk33niwg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjVuC1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSiA//fnjH0QXv2/NkUOpOd1mw9lUJzfveUCtUE9lzUcUqxwVLANUE\r\nHXqhn2AXxBCvDAIYCHegioQY+5xPJcBPaxAbG0e+IZ5YBxthEPLw3hXy4PGR\r\nY2iVjaE34qalI8IZq+alEswenKn6fByv59n3XI00Xnayl32JVx53UGplU4XU\r\nIcuYQ1ybHu6wGdgOy3Fw1FtOZcdpJ9ail1GheY5aEjX28lKJIJQuaSZNM/4w\r\nl7+932kceO2NCDUcTi3sryq3o3J6J1Hxqho45m1rm5UIecM6DOiLd19VTAEJ\r\n07mkLPE1d5iyYJg5yU92vlPaH5X40e8qAZ3Fgn1/h9p4E/JOHlqdNLGeQbDv\r\ngYUjj9tYnmobQcq/W9R8jltABxOH7rywz7kQnPQ8JNVZoiN1T2Bo4yKtWRSV\r\nlszal8jIQR+mHizC/qsvsVn6FzxUgZMG+VTCgRgYM7K+qZlNvlEl2xygJaBp\r\nTHeYfJ6iN15GDut+N49xYDFDRaC3bmOCFt85GDUS5GTn3RUY6CmtbDIR7Oid\r\nxWNYhmhNyHAQ7k2IBXY/p229yXG3RMhLIuPN2RgR3xKsmR30kuo4qBpKjngu\r\nF4n858LLdty0RBIP/kBso5Xd/OxiuIC2ssMw59t29dpQU92PDOANAtINmC3Y\r\nNaZpVi7HUFjDd/h0XVGaWBHR0XKCH4Gdrzc=\r\n=D2+U\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"18c679c73aa42d66117f8f1a88ab7cbde6f2a201","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.fc539db34.0","@material/base":"15.0.0-canary.fc539db34.0","@material/shape":"15.0.0-canary.fc539db34.0","@material/theme":"15.0.0-canary.fc539db34.0","@material/ripple":"15.0.0-canary.fc539db34.0","@material/animation":"15.0.0-canary.fc539db34.0","@material/elevation":"15.0.0-canary.fc539db34.0","@material/typography":"15.0.0-canary.fc539db34.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.fc539db34.0_1666638004884_0.8263355339553833","host":"s3://npm-registry-packages"}},"15.0.0-canary.e340b04c5.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.e340b04c5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.e340b04c5.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8bc450c5feaefafeef1446ead92f453f5ae8d490","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.e340b04c5.0.tgz","fileCount":44,"integrity":"sha512-xoe1e4DuyOJPuWN/2bEM7AsuJ9VfjT7qHe6YjsIvp6D33KPkbMPA0whLQV4LPmHw7G0ErWl1rOYMh9a1EMLB4A==","signatures":[{"sig":"MEYCIQCXcAnsAxPizZOHTk5d2SktHj1Dtc5jIztF0DZkkSayFAIhAJb2ZAWErEDecGFc6pvXYIZf6A9ffw1/JG1qCXWEIqrp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWHU2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmop6g/+ObU9PvqvCYH7KBBvau/vq9mAIL5Y7bztoepzcljIMF59hUwc\r\ny6izzGqK+W/iFQKl3Ps9NJJnH3Zo7Xl2o5dv4WBmaN7ddUlAJezLe7JfhuCE\r\ng8w+vw3niBmi8VkVGbQBQAm75FSrBln0IOXz79Wk0L3h0u8EUfFYqXngCLIw\r\nE6IkyvY4Zqfg2ThlBpJK10J5SGMjxb8p8oLS/ygHRQ4UVM9odZ4WSSbUnTUK\r\nbecg8SoheYeAJz8pC9fRab1e8NHFf0wTlZRiPCyla/anyO8iz+OhJUZMsN85\r\nz61daFDVMkP4hOnPbKXyG/AWOcU53RveUMe2clHi5vWRMqf6t1a+SdGde6ag\r\n+xYz6t2k0ExNEtDHmtZGzjgx8BkVDTFoEDDbbXYECd+YtkE8kti17LqtFwXc\r\nOUsuFUvv9Pkw6sHKJ9LJyqJnQLH29m4GxEw+BUr9Fh1P+mV9r+hv+DHspJg6\r\n9UchW7jlsnRHNshKRXcQMQ3zbWalhNNvhdLcNO9DmRaixIjlEoquomAjYqzT\r\nHG7ToW4ayV2d97BqkICrg9/bsIh9TtIOwvlVng8qAShR7xW7z5gYlZhx176x\r\nurEn9xBV3gvY0H+YORHc8OZHTaR5go2XIwBGGQUbcowipMgbUbJqX+2TkPb7\r\nEu7eEkRA4cW7A+LAMkOPZevDP5bZeOQUQGI=\r\n=1PfN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f3e39db57f42dc19c08bf6e97cd6918a3ce32dcc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.e340b04c5.0","@material/base":"15.0.0-canary.e340b04c5.0","@material/shape":"15.0.0-canary.e340b04c5.0","@material/theme":"15.0.0-canary.e340b04c5.0","@material/ripple":"15.0.0-canary.e340b04c5.0","@material/animation":"15.0.0-canary.e340b04c5.0","@material/elevation":"15.0.0-canary.e340b04c5.0","@material/typography":"15.0.0-canary.e340b04c5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.e340b04c5.0_1666741558103_0.65043075270633","host":"s3://npm-registry-packages"}},"15.0.0-canary.2c1a8f8fd.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.2c1a8f8fd.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.2c1a8f8fd.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"16d8a31a5de1f27aaf045384fa78331783222883","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.2c1a8f8fd.0.tgz","fileCount":44,"integrity":"sha512-E7/wnNhCrTYGWnTxPhwzT8xG6JXyC8bjt+jKcPAidIGoCtrVhaXPYq85Kb/ul09k4gJPEkd7fBWurMB6KQkefQ==","signatures":[{"sig":"MEUCIQCzlRPjIAzmXR4PhgmISfAA7DTp/k2hzJwJbr5U7nRhzQIgO3k8LZ+g4XIkRxE4PWTvwQ85eBaHUNviA8Q/ej0/9IY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWW73ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqxMQ/+JPDm0gkOmQZigzB1nOGSb/1rI771TPwY5rAl/hr8ki/nihXd\r\nv3wXUxSUH640gqoYu7fDY0kiZCij8GqAD3NQILQ5+6C5F9msJE6uPkypqmGT\r\nwSmPUjEO/Jtlty1T6ADRF7T+dD7TdnjP/TXJYoImjrIWYdNxvHRTHdjPpSu9\r\nD1u8XTvimyxHNoXW3je26tZ3qFzw2sRo5hcD/owPXuBR5noNpmEzdfgXlXBb\r\n+12cuLhsDJ6U1/7j5NrxVCgnH06r2JhjgvsXAdpZf4FO/Uu83xz5W5TKbNKF\r\nrzjOud6yNbCZDZVL0I4JEA3AgxOMFwfhoXzj+kpF7/kuvTfOP7htW5tdRN94\r\nlFTMVP0X7MrvK+WgGnrieD7zodLbIWZGM6xR/jjgXkpQDff2tYKGgiLGzL14\r\nQwEanO59UBb2+IIFQo3FWMo6QOm6T74q7jcIKHQc5yyWSDTglo1YOEPW6FUg\r\nUuTt8bPZKDa43Wl71Tt9iXfuRHo/Sht2JybKCcPwj43DH8JYuHtvKgoeiyc9\r\nvw+vzxt+rXUydfiyY2kmfuKvLovt/wF/wUHvxN2M5k+1fGVpq94DhznSSHUJ\r\n2jb1G4s9pjzjLoo+WFGlpGSDz9gIdimuc/tn8NBfwex9iLpCEB0gIx0/zFCs\r\nA3UPxYuOqvv2rXuEMkuAv2KFnJTSfqCh790=\r\n=e7XA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dbee023b5e37423b8695520d95f2d00d884bfd5a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.2c1a8f8fd.0","@material/base":"15.0.0-canary.2c1a8f8fd.0","@material/shape":"15.0.0-canary.2c1a8f8fd.0","@material/theme":"15.0.0-canary.2c1a8f8fd.0","@material/ripple":"15.0.0-canary.2c1a8f8fd.0","@material/animation":"15.0.0-canary.2c1a8f8fd.0","@material/elevation":"15.0.0-canary.2c1a8f8fd.0","@material/typography":"15.0.0-canary.2c1a8f8fd.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.2c1a8f8fd.0_1666805494804_0.917262289046733","host":"s3://npm-registry-packages"}},"15.0.0-canary.ecfee946f.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.ecfee946f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.ecfee946f.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"805b89acfdc1aba858525ca2f473fa392e2afaa4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.ecfee946f.0.tgz","fileCount":44,"integrity":"sha512-JQiP4l9GhbQgVB3k+EsNbxXc1Uuitvi7wMRnPSwoTjw2wZsbRF5BZHdkAuMXdBHt1iWkneRq6JayMv7B56cD9Q==","signatures":[{"sig":"MEUCIB0xLv54e0U1gvIy6A1ejnywovtnmN0NYup22azkoRI7AiEArl9OeET8nkqPou0SjYwdubM5giuV/dLhSdxq+XS95M4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWZWSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmos9xAAjpvqz6uxEzAQMTRpKLsc/hx+1jv1HSWPe1KzDWe2LXb07Hai\r\n/ISB0fH3wPSvQGY9RsS5ul2bzkfSJNyEx3+A2+IUYIFYx+PTun5JiYyb6goZ\r\nVF8uOREvIu7ca54+mqvoApbYh96SuCzQZY6PSSwl6onLSRBHqtUfX3GU410G\r\nmAHhnRd6ynv7+HyuHCikV07QEaYZL2YeXDN7A9rurAAw4dPxzCvGiTUDTsTs\r\ngWp6gHo6c60bz6LT8VZVgmgAvQ5iopIeNFUH+YoKwmSqY2GTGwuaGiDifVXx\r\nLAPnXJdRa/Rv8jxPDKjanQgkQ3gCPnQYSOn+SCJLcPvtzSYqprNC0rAT60dF\r\n5vOfYmh1SbzTZrZXRd+7f4jsbBlsKAeFtFo5whn96vD+14GqB0y4EoQr7+pH\r\n85EwbJuXNioKWbW0JecFlXl7bCJJMh2nbvVgy9TYXRPMISjqBJ27ufjat8Gv\r\nee3OV7b4gnOIvUgIj5Cl4xkuG/H/C1wEj2S8YqMyoiGzumofM1f+yMfiVnan\r\npJCimYuuCq/4TY1mXjPAwx+/7fBFVUYkt4dQvK1WSCEilmPiRCXtcsp9U1so\r\nxDh1VSH2McP52BQW4hVA/dxSkbdPv3GQzXeJeubh310VqK9zDZ2S/vrPPWZX\r\nGqn6xjZ8ADn6QXzJ9AMvly3fcMG9hlV1Ts0=\r\n=Wr6m\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dbe05d725a401275de1e88f9d5bd6cd2079a0047","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.ecfee946f.0","@material/base":"15.0.0-canary.ecfee946f.0","@material/shape":"15.0.0-canary.ecfee946f.0","@material/theme":"15.0.0-canary.ecfee946f.0","@material/ripple":"15.0.0-canary.ecfee946f.0","@material/animation":"15.0.0-canary.ecfee946f.0","@material/elevation":"15.0.0-canary.ecfee946f.0","@material/typography":"15.0.0-canary.ecfee946f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.ecfee946f.0_1666815377999_0.047717181924038954","host":"s3://npm-registry-packages"}},"15.0.0-canary.73ca9dbb0.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.73ca9dbb0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.73ca9dbb0.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"033892c779e78ac3ac156f1df85be71da0bba52f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.73ca9dbb0.0.tgz","fileCount":44,"integrity":"sha512-BQZCqcq/uzcAVzqFzxGAv8dkpb7mCTxQWlZyc8yIwgavn1IwIX5ptjkwLOGG81DVDQ67xbLc6hmbcqN573PZ7w==","signatures":[{"sig":"MEUCIG/FXCP4QAMhyx1/ntoUCwheFRfOwoAT8mNL8muDLc9yAiEAkjOS/USRBhydTR7pjEv5mIkhWmOKSpGUtAFfg28A69k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYAblACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo/Ig/+NEtpiuAQWwGf7Cu990hGSVY8R1Wsc4Zf1PSKj+CMJWCX5Je/\r\nytbGb2Wqh6juulLwUqPEse6G6weAQFXG6XQADOnmIoPEnoKqxfnOKNtMGVve\r\npRjRKEGKm55zbMt27hcG/pHafEohl72GRZXq7+6wjZBtmqb5wTy9/uwQZV77\r\nNKzFMj1SNrP0p5RJjLP1qaE/M7dmMs8yYohtiicil6IpiNosHhqi91qizFIF\r\ntKk6qVpMHCvUJqf7WpASty0kTs8CoWbveQf2wwJR/4+vbWlALWZsnrkIq+d1\r\ncsstH0W+VxQvx60U/jpO4LW+YtDp+4ZuFWyLJwtSdJ+DFM5/BGEbyVHX+tDM\r\n5TmcvXGF0x8I5TIG4Obyj1c+t/G+LiY+/RLi1sjy47xAifVDtjx9F7WXtn4J\r\n/Fv01X7sT9LgRfFdNmEra020H6Y9bJQLjcE53HzWcBehLtsgJ7NSOG+W3+U3\r\nawhRKBnE9wxOPMFOvhjf48Axi7lZtySn+iYLep4P3WIgTBFgqg5bWFC8z/Xz\r\nruG4o5wEwk3Yj5C+ZyzI1Vp4kfdnDMAOCeLIZmL3i8BTHED/WNycj8zYFspS\r\nWlNJMg167mighiWVebVHDWNPJsoS1DeoaIsuEBwqaQUoOXlBO3JHs+rdRvLG\r\nG5nLqqZFbTi1WJFp7Ikl25NNGs7kRZEJAhs=\r\n=Q2pu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3b1ecde6148e6e8d98c4b0c8a4dd2ba56e95586a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.73ca9dbb0.0","@material/base":"15.0.0-canary.73ca9dbb0.0","@material/shape":"15.0.0-canary.73ca9dbb0.0","@material/theme":"15.0.0-canary.73ca9dbb0.0","@material/ripple":"15.0.0-canary.73ca9dbb0.0","@material/animation":"15.0.0-canary.73ca9dbb0.0","@material/elevation":"15.0.0-canary.73ca9dbb0.0","@material/typography":"15.0.0-canary.73ca9dbb0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.73ca9dbb0.0_1667237605302_0.9012613315356737","host":"s3://npm-registry-packages"}},"15.0.0-canary.357f2e5f1.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.357f2e5f1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.357f2e5f1.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"47ec171f6fa687986a69ff9e84c69efee625efe4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.357f2e5f1.0.tgz","fileCount":44,"integrity":"sha512-dhdYl916j6I50Db8QUOpn9rdxsRsbl65kZe3dRKFpAMWxjIDezz1QTTvkMEOX/QfFiei0+9HpnoyzrLp6nQ49A==","signatures":[{"sig":"MEQCID2YfqUldEEoLJ0JXG58p+MtAYRGLhwl2Z0FSyCTHPlEAiAFfe3hOfgQwbyDTaETckN4YdhcPldrxdSQSkHNaGP9dw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYBj0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpCrhAAizegN+doK8aaOQapjbm4rKeGcQIy9fpFA3YuOqFq7whhM5YT\r\n3oxLu2//XyIGY0r6AFFf24DjnKXEi/tJ0Yas0Ma1eH49ylam9x+EamRsh0iz\r\neSCSXKR0pAz7/3D+zMkV5gIcWXZb1SzcyXavp4rD6RbRYs4qycmEUP2BhIrQ\r\nGHws0p44+1+w7a9c8Wfvzt4uUGNGyO+7YCPSyJKECqAENnqzTqf6MRM1pHsB\r\n5YZGZlcqjKzSVH7gdims5zm5n2bXOlUJlBDMuL2IcmIVR3n/aQZv4mLPXUqs\r\nGeCWdwfyEI8HJxALsaZU2rcKwgZGHMVZH1K8BM7tq0zuAFEqDPthxFT7OKfq\r\nBnmYfAzwVYoNlz6CxdR4Py9XBrpN4YUAPXRXqF75lOhQcqc3WD42ZEUU68Ek\r\n2zZvDklFrXc++VnWBxA6FHfqb/tD0syMQ5JzOmYDWItwtB6299SpJRbuH5eX\r\nBajtfTKNSgItNRDHg+Nypyhg+DKY31oMgd6eIc8e9JSi+2d6bJK6YzNU3anp\r\nFMWRsdb+IUyUrWtNwfyafxuU5iv7LaTwLc3CNjjp3deKlD/RfTGaJPHKjFH7\r\nQ4zOg0E2p6G+l5g6NBjkPkHFGV1nzE0Vda7r0PPtIg0OEa11+/wjE3/iV5+h\r\nfympN5S+06jtqSRxynkVujT6JjBZleHObMQ=\r\n=fydA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7f8af87642d395b497ff80efe06544dd459b947f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.357f2e5f1.0","@material/base":"15.0.0-canary.357f2e5f1.0","@material/shape":"15.0.0-canary.357f2e5f1.0","@material/theme":"15.0.0-canary.357f2e5f1.0","@material/ripple":"15.0.0-canary.357f2e5f1.0","@material/animation":"15.0.0-canary.357f2e5f1.0","@material/elevation":"15.0.0-canary.357f2e5f1.0","@material/typography":"15.0.0-canary.357f2e5f1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.357f2e5f1.0_1667242228249_0.6079327328634436","host":"s3://npm-registry-packages"}},"15.0.0-canary.eb103d4b5.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.eb103d4b5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.eb103d4b5.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"32f8583b918d70e51fc4de6bcb4fbb2b7ecd5610","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.eb103d4b5.0.tgz","fileCount":44,"integrity":"sha512-+4j2PUxvmQNbLkFafpXcr4UDd6Of5dScCLjm+4U/k7tkJIpvtk5ZkKbDFFk0quhoW5+QKQLXQ31OA4nEWclvqg==","signatures":[{"sig":"MEUCIQD0sX5UvTu8prBidxexXX21eO4bVTJK8CnBNS6cE2VZyQIgG4Yw6NICOlKJpjt/eyUfPrMZgnUJ5m0NdXZ48LvO5Jw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYCiiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo78g/9HB3yv4HVj0GgTqehA+rwVbmLndDj7eLzQGeVPZP6wMevcbhS\r\nNZyq7k3ezUYnKh40woS/LEJM4VmR8zOwqR4VdkSa6MHrHocxQ7qCcluoZKbE\r\n+06xhjWEwwI8H43Ey2kbrjrpobkEaYxLVpGwzdqO7xZiBipX4JgPJUXzxVbF\r\nD6qY3WeSLe9PSlbsIlKd1ukUARkU8BhTUNYaBkxJklbFGwrQMPZmORaOnbZD\r\nssTYVCubsFrc2e+xfiMwaDCNKUNcdu3ndVO4eYbbhBctR5ocRhRKekdDqLP4\r\nfXsjJ17br88vBFHwJw3rnc7hbDYz4ee8MKwy2JhsJyTx3NOvkMl+l8pBPY0Z\r\ni9my6f9P722z7g0bXsteYx9xKlDHpbREWDw7LFDTbwy++/sKf1zWBpkABMR6\r\nUWf9wncBSEpFlLyQ3lSlsTvpyvJYrkHgUSyi/a17Jmo6q/oI2xRJbQv1J3ib\r\nSxAyAsgjTxg/Y39RcqACDmdPOiBZURjq/Gf5SXBv9CiuYOH3fQNlAocs4ZiF\r\nwI/KYxc6p8c5mPhs2EvQwhz4ic9skJd1mErmy5fYGh/fA1m3b5vXTlyx/9eG\r\nAPTk7/t7MRuCVtvtvXYH92eIiwEgPHa3EsrX4HNhHEhkRkfjeYHoj7TCogP8\r\nxyZC0jxuLXh6Cossf54iRNawjFZbbg+/yhQ=\r\n=jY+k\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6fd82c2abdb8567ca00c6847142375ca8ac18b90","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.eb103d4b5.0","@material/base":"15.0.0-canary.eb103d4b5.0","@material/shape":"15.0.0-canary.eb103d4b5.0","@material/theme":"15.0.0-canary.eb103d4b5.0","@material/ripple":"15.0.0-canary.eb103d4b5.0","@material/animation":"15.0.0-canary.eb103d4b5.0","@material/elevation":"15.0.0-canary.eb103d4b5.0","@material/typography":"15.0.0-canary.eb103d4b5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.eb103d4b5.0_1667246242658_0.23634940422980444","host":"s3://npm-registry-packages"}},"15.0.0-canary.af5f01223.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.af5f01223.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.af5f01223.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"85e420a45245f0f1ed9e04eae4617b67ed78224d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.af5f01223.0.tgz","fileCount":44,"integrity":"sha512-HSUMJnVDQKv00MMl6O2IClNZ6Uhv/MF7oo4YD96e1hATKRCVYqUx0JW0dIEhxaHD7lzNzw33frT341eJ5NY7Dw==","signatures":[{"sig":"MEYCIQCBes1svQ1Cp7hDIygU5HWEulmT2TxXLz6DUh8CG/rrcQIhAPu8WPNxunFKfL+raDjRj7/3Lv0GBNXbshvn8q5VxbPx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYWd8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqong/+LfEaKDHvaxr0hy4aP41Xchaun0FDJerplp8lirsjdNDdppcz\r\nljyfZJmoE9l+VhLUNxoGxL412O/GnqEru+bG33mjPxQGJLLHSXiwWtZvZfc2\r\nOxvXva5WYx+6c/nOHHFu+XXURLKco8OgOadBLUle1k0ljeLJ8XTxAIsPqfcZ\r\ndevVzpvputg0qQ3XV6gS75z50VNtG1HdPF95XbBW6HrpODM1zeawZc4lea2C\r\nnbyjAzfI0YPlMK08uUV0NLvAX7X/aTwBEbuiB/ERmjqHuAjb72JKIJJbhn3Z\r\niPctzWn50NBFiBzU/mvQwbD5X5j51HBDgGKeZ3+R6i2n/OIl9lVsTZMJXU42\r\n29VtKLfou9k036p+LbO2kC29G15CQJ1YxrxzDczquWey8x9rxSFJpD4klwEB\r\nMhBn/03TY3gSP1nAaPzMWHkMh831smvtDleyoqid5H2XRNvuNM5dNodHnzu8\r\n1dz43zP0JBzuPckaXaBn4xYamym79FLCdiOEJsmAUQQMoWw8TazPZdxAa4lY\r\nTUsDMzgw1ygLVg5abFVIV2zB7//FY9towl4KQgskT2fIvXMtpnMeKt/IEjDH\r\n81jG5KZhJL9zydMDdkFdsF4vCNnXFVhCzhYimuf6NJrh21YHhJ3SL93yV8+2\r\nKuWw3VFybzZG5DnDrNAr4rWumUn33UeEdXw=\r\n=SZBd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cc7d8ea77d18e30bad947332164ac02701e1ed9d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.af5f01223.0","@material/base":"15.0.0-canary.af5f01223.0","@material/shape":"15.0.0-canary.af5f01223.0","@material/theme":"15.0.0-canary.af5f01223.0","@material/ripple":"15.0.0-canary.af5f01223.0","@material/animation":"15.0.0-canary.af5f01223.0","@material/elevation":"15.0.0-canary.af5f01223.0","@material/typography":"15.0.0-canary.af5f01223.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.af5f01223.0_1667327868651_0.768698213268123","host":"s3://npm-registry-packages"}},"15.0.0-canary.58733ef41.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.58733ef41.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.58733ef41.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2059cb2e7d0fe8c174b09d702ccdff6916e9d839","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.58733ef41.0.tgz","fileCount":44,"integrity":"sha512-uaSVtTtr8JRolgc+O5xZxgSFM+u1qkolAbazA8/4o1FzA4Bxw9LcLjrNl8T6lOCKJ17spHrMD6z81H/6bw7xwA==","signatures":[{"sig":"MEYCIQDKICQ3iKklQX/IpoJxV264D1ym9L5hZ7LE68ZOuyDkeAIhAOcHfL8yAeGrhvUjsHauvn3LwoM7bZMyVdGRAczWxdEi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYrLdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmogUQ//VA6OW2s+cNS5dDKXfSsjpeVduB53ZIqc1eQeJdtjX6EdQM0V\r\nB/bLUoTDH4ytj34mM6Mvfo5XcwKrMCwxQ355b0drPPZ7GGTA4cb4YsR1E9+0\r\nE2OLW1td1intE3LG8agJpXFpG7Y9qn4xBO5F+vpgAwN/2rBoQ3NPnwTd8uiy\r\nvH6CbQybCAiZFrsPbgbSvud+rcnx7g56LJKNxlmz/OKlMoDGMTkHvEaBIIUL\r\nlIEyDWabuCQWmP+A5IZFTEnjVSVZVACDUXf/6hLzDjrK4iEHn2AtmuaGfGDN\r\ndKedidlZyJZDAcYrqiZtHSgqOinFy5A2qiHSOxBhe4LIbNLqM8Hp1v8/fWT0\r\nENFmjFRY1Y09G8tOdbdaPXk4fFXmfUjgMsaPgBfbs0Pz0/D2aq35dQFV54jW\r\nTmQkEOl8OMrDEY09AQF8KqASouU1Lb0Byr38rzDaQXfWl9BlkzYaWH1fv+Np\r\nz+87DKQ01uMqFWgOYoTFLkgAXt+H0ua5p24MqBKITs/ETK8lZUGXcC5oYcZI\r\nkJMwO5VjI6JPtHrnPB8gdqA9/BTCOA9PFGxOdixDSmBGAvNfF3ngDHS2S6mH\r\nPXfugyviSY7+RiW/AtKcXtuCJJMa0dwT8S5LOLnc9klMebMy8vql0bmHQRn5\r\nmVKBvstIjkOSUizSyIUt6T0R5p+EWroopRM=\r\n=8NP4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7754bbdf66b8fd61976d3dbbe04b991d9dbc0caa","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.58733ef41.0","@material/base":"15.0.0-canary.58733ef41.0","@material/shape":"15.0.0-canary.58733ef41.0","@material/theme":"15.0.0-canary.58733ef41.0","@material/ripple":"15.0.0-canary.58733ef41.0","@material/animation":"15.0.0-canary.58733ef41.0","@material/elevation":"15.0.0-canary.58733ef41.0","@material/typography":"15.0.0-canary.58733ef41.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.58733ef41.0_1667412701489_0.578943143667767","host":"s3://npm-registry-packages"}},"15.0.0-canary.909b48215.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.909b48215.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.909b48215.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5f1be7b1f77ddc0266b949c68d74b48dd4546954","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.909b48215.0.tgz","fileCount":44,"integrity":"sha512-zR2hwo7kgKw80X9LXTraq/HQ/yFUdl/Q/CLXcKz5AkLcn/ZGVeDtQ0QnMo4w2J7tbMpg7tOg1zgJl23zD5Aqqw==","signatures":[{"sig":"MEYCIQDzT2CaLWfDoZcbc9xc6Ueowgq6RV7mMlFwn+CgI3REhgIhAL7nhPGfvZit2MZRY/6xeVwBX9Y85GziqoOL3Uv0avvh","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYz7VACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo/PA//et6VdzqmQA1SrJ18TfY9OHQDe5zXxLM9FS2CuTqLBFwsV7YX\r\noGZfYFn/hp9BO+wYSPumSyXx+ISuqy5Ih2YzX518pW1nZSDDkz8CvCRVNf9B\r\nCXUGgGu05EIOOx04TeSUncZqSyqn7hkXEWt4NGTBGA3hEcXJQevyJKohJUiI\r\nCnx+vVt2mJfJEk4VzhqPjOizycAiWAeH2u8SzOXCKYHiiq1zsSVSZcxoNcuW\r\ncSVUXgBp6JwOe2FSqjGH1qgXeZKqsuOgARO6f3h9v6EafLzrZFGmV3+IuOTW\r\ngEo1Z6Lt4N1agbCZa5AAkzLUEMduGidP7T7nhLneJLXrC6OlJvxKCI6+nIyD\r\nGs1MlQQlOXoqfmRKF5he2IA1CFvSFqeffnX4S0h6O08WH1C2Aza7U7hyipRW\r\nq7IMgTn429zYiaZ5sYdxV9hl5FWifHb2XYJ9afr2zDkKBUvXa+XMz5ywY5G+\r\ndL8X3c1QcylKy54xuLL6S4HaX9WpJyIAup43f7fSqmWGBmsVRQrkbUAcFXl+\r\nV6QBUgyE8gaMnZpLANwMY/RIe/xPxL41pBt0BehrbZD/OLCiAANxOcJLj2Ri\r\ntR0p9eFnMUOw2dAtuOlK2Oyt5fRHmpdvYhv+qe4EBs9PWNBFCW3AyvzHl16H\r\nSYSJV/bx1MxYotz+oTgbhe/iyHtX/DYVqrk=\r\n=vRMY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"68d372ae12d017bf28fa2ad3c86cad4f70609116","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.909b48215.0","@material/base":"15.0.0-canary.909b48215.0","@material/shape":"15.0.0-canary.909b48215.0","@material/theme":"15.0.0-canary.909b48215.0","@material/ripple":"15.0.0-canary.909b48215.0","@material/animation":"15.0.0-canary.909b48215.0","@material/elevation":"15.0.0-canary.909b48215.0","@material/typography":"15.0.0-canary.909b48215.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.909b48215.0_1667448533135_0.18271263065350163","host":"s3://npm-registry-packages"}},"15.0.0-canary.7f17127d5.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.7f17127d5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.7f17127d5.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3988ec0435320428280b35b1bdb43372bcf8309f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.7f17127d5.0.tgz","fileCount":44,"integrity":"sha512-E3qnlaFBZgMHbXLkApflzPTXE5aa9xcBB7kK1xpyp4icYJ79tBKwB9INnetXxH9PO+QziNjvs3vo08xG3eT/yw==","signatures":[{"sig":"MEUCIQDRel5zcU3sulbNENZhmnRr4b5i8B6DMbWaUCMp/lsHegIgKNMyvQpZ46EtN81IhY3gUj61L3a/j1s+EwV1DbJlyg0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZAZZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrBYQ//ZQNzen0L3xhBxJn8aW/i8TfuLdrKAtvolqCPFrynb30BOdoP\r\nexcjdEdF1oFUOCIKI8SgYTPGTXA1KdqHiKsBRWBATcW9FyXzhqKpFURK+0lH\r\n7VC+zMLTKSQxRRHbPAxWlRCJcmJ6cOBFVsoq+RngwLB0bv2ZM4jqkFli9OTk\r\nO4QT8jD1J3eTbQiTI9F6lgXzJloT/SyTd1fciYyKm/NfS8BaqzGsnwAR42na\r\n59RGwdeBHy68szXj1IOnhRGqPXyD4LXKAoErBxSkHL+GrBXyg3mtS0lc2Djy\r\nDtLqJ2xVXxG6wSGhHDYOQO/Wh3e2QJ59vREI53jAo2DTQdOtzoKhI0MsGRAf\r\nv6G1iNm+4JSNeW29RjGBf/anYNLf5eKsf3wCE0My2+CeOZvOuOdU1vxrGMRM\r\noc4xrD9RnGucS2ku+fyCPvNkiDRI3N/amKtU6fUSifq5dfcA6ruxpCHtA7WD\r\nivoo8sFygap60vC79m0ym+GxgoHQvdCPtOmOxZX5W/8803gBAymBVekCmowK\r\n6cHdTtMAXeSbtmsRsB/CDMUohZ8/MS77L/DhYSI4LWp4kDj+P48wIWNS7OoM\r\nrx9OuNncKyED0/BhaJ9A70DOU6RemU19AXlwe2+s1clHNpzEwxmRa6/MGa7G\r\nHvWqIwsatAoQ0ZwHF5sCEi6S/VlSbdON0eY=\r\n=hOU/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"26e22af93057c0fa00e7fa9eb104abdc96131eec","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.7f17127d5.0","@material/base":"15.0.0-canary.7f17127d5.0","@material/shape":"15.0.0-canary.7f17127d5.0","@material/theme":"15.0.0-canary.7f17127d5.0","@material/ripple":"15.0.0-canary.7f17127d5.0","@material/animation":"15.0.0-canary.7f17127d5.0","@material/elevation":"15.0.0-canary.7f17127d5.0","@material/typography":"15.0.0-canary.7f17127d5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.7f17127d5.0_1667499608918_0.8468300129054303","host":"s3://npm-registry-packages"}},"15.0.0-canary.da95e2a05.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.da95e2a05.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.da95e2a05.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7c7f5931ab762f97497a64a3f88a54a9931e87a7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.da95e2a05.0.tgz","fileCount":44,"integrity":"sha512-7D7FoUIs/j8X6R/VKd9fdRsJ5NZXqsPfR6dS16RrGS7KiFmL2SYJCzoOyqyCxUpD6aI9mkEBPCUBnuehhGvgDA==","signatures":[{"sig":"MEQCICmlWcxFxoyFoWcOb3VHwb7ekijB9iJcu8pprziqLKJVAiA4url2aDpuxwJFVhQ1aHU7GadnIJBYEmk0J3Vtrfj5rw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZUUTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoE6w/+MTXOPu9hf5lSHM7rJqX6vqJUwhaC2Y1vIma2x+V4+RuluDxD\r\nwfW/9hD/Ii+T8phqgZJc9XPf4vfFuzxlzg3F9vbgnaLUTVEqUMu9pBA8M1ME\r\nCsKPvjXqMCWhfoBLxQwwlKa4S0+RTO+riFyJ03FxRT6VOBC3SDBcqNMyeYto\r\n4UPc/Ek+exvrNiLewKrBBpmkEVKMH3FK8/fIYXyAHn0azWmt+BHocAEiVs5h\r\nPYLpPHbwTlpBIK2i8GDqmfExnUUKpbijCJM96gor/YGicbz1httXRE0ch9X5\r\ne4NikZAUOZoXfkKYI1CtjRx8Njz8Y42wU05mdmtdqn+rQOHB9D7q/mj1aJgP\r\nCM98LR8yxBIY3NbnuLcLQSesvqG9um2M0Gp5pkvCPdWMW2T+Az3lohPY4++/\r\ntUwLPOlBMzifoj3sWx/hXsIgjjdUe4rTdznVniZ8wMuigRvE+RHiwQv6cPI2\r\nRHhcL4Kx7t0B1BOcVcexccEfgpc2YbMB/cVEQ6Q6sKEF1AUDSS5ZbrN3t25A\r\nHgei7SsExHwrn/60gSKVSdA0TU1u881BwuLFL4MKQhaUsNjN0e0kuafFAhI5\r\nx5n+o/4Cc/SbkHAbO9dPSCF/+9TrKCcHjDzP//hhF9w8r76IPuGP53TEp1aY\r\nNqXB5SfHhAvdWOskb3I7845tMeSnSd3jGyc=\r\n=JVKz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"eb47dc6e824d05fe1a33c55066101c99ce1fe241","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.da95e2a05.0","@material/base":"15.0.0-canary.da95e2a05.0","@material/shape":"15.0.0-canary.da95e2a05.0","@material/theme":"15.0.0-canary.da95e2a05.0","@material/ripple":"15.0.0-canary.da95e2a05.0","@material/animation":"15.0.0-canary.da95e2a05.0","@material/elevation":"15.0.0-canary.da95e2a05.0","@material/typography":"15.0.0-canary.da95e2a05.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.da95e2a05.0_1667581202457_0.7730994576328962","host":"s3://npm-registry-packages"}},"15.0.0-canary.4832e2750.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.4832e2750.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.4832e2750.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"658dd082e87d8052e70ff4436ca38b0b98cdd17d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.4832e2750.0.tgz","fileCount":44,"integrity":"sha512-mH+pMFSIyK34cAe98ybH0jOU2AVg5kxo/bmda5iGgXcnWu0Rg1RuuUoC4YMsFmmQgD3oLCfLqvwlWwCzf0ycmg==","signatures":[{"sig":"MEYCIQCxR/MrhU3LNddagUojGI3zzauEMxTdiApibFMaCo9EjAIhAILXriw3ezptjTqfdnBFOuzvf2BnQnPaUd36Et79Bva/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZXzYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrpKhAAnLdly3GZsP+L4b1fwHKNnIegbkg51KTgLGIxKjN14iU2x00X\r\nID2RSC96Z8utwUTTKhdD/m7zSqJ5sF4gACesK7wHlKBcAcDXjDDJnKlZ/W4O\r\nGRQ67DmGzKDrl6rltCzvBqoxhNGMOkzRUA5Q6E325V//QdgufOPJzgfbMjZC\r\nBatpNsycR8TOpTFmszQRzJq+2nn5OvEgYJY3wljDtLcVf8xbggC+y9lXVazW\r\n5RLV3MMyjTm9lkcWXfAbCbk1FYUXVO6delY6CvS6nf+oM2gobU7dQ7P6UtZ7\r\nKspz6vKulhtwPQmFzPM+CISXF/vbAL/4Zz48ae+LmZ6vWUyBMPdWOkoDyrmQ\r\nmQfpB/Tln6iER0Y4s92dp8+3hbTOeUDXNRwnfHGBNvd4ImT6kqjsGDFT5LEP\r\nmi4gQAAiTDzXL6hEFlU04KcoQTgXMszop1Gw4Ny+ucKrlyzY3JvCCL8sCY0q\r\nvYphtJNSlv42J446Q0YQ7+i219Kg0oHJKju4kpuUT3Y1u/nygxW06wUhnVUZ\r\nA2JAhTyrIPyLMIweCMFIyuYMIM5B9mtV2tzS7AndiaXkWQ0U2dTUd7tb3e2O\r\ngqw6AWgdoka7hi52z/vnW9PokxZIV54z8sqca8ruhJO+9E25lROUEqNGCHFy\r\n54zkKowoZKvnXPjrW/ehImaOg7IhEDmxGFI=\r\n=e5ME\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"258def578bdd5ff3b52dbbfbe6f06e14b2b74045","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.4832e2750.0","@material/base":"15.0.0-canary.4832e2750.0","@material/shape":"15.0.0-canary.4832e2750.0","@material/theme":"15.0.0-canary.4832e2750.0","@material/ripple":"15.0.0-canary.4832e2750.0","@material/animation":"15.0.0-canary.4832e2750.0","@material/elevation":"15.0.0-canary.4832e2750.0","@material/typography":"15.0.0-canary.4832e2750.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.4832e2750.0_1667595480778_0.8803648856505073","host":"s3://npm-registry-packages"}},"15.0.0-canary.215506426.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.215506426.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.215506426.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a12790f2cca4e23436c439149e0ad41c6a6e08cd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.215506426.0.tgz","fileCount":44,"integrity":"sha512-37p5nHpufNPIUEz7hZqm5PI+FOlTtjmC75XF22mLjLtBszgBt1KIkiozibQm0yEanJmczop+zb+SlJCSOYXuqA==","signatures":[{"sig":"MEUCIQCFACpBeTlcRTarn3GBGD2bkVlhrwpzFi+QyoTRLBkOjAIgeCQ5XOuIfnkqmMIfNdCAsSQx3JKPkkftrKoS5t7jk5E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZbcwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmodPw/+KFmOd3NnkrcYFRyXk1AyTilFGAbsAQM4W3SSkwTINCM1GB4l\r\nzdO8lYoNosez6qoU0IqMAw7QPmwFzLILhAVpNejuv79DVwkNKfUVbnZPtumx\r\ni4e09qqPEJ2pSlLRhXgm/B12Sk0rK9hq50exiT6VCGw90DqhxsbKCwzbHaBc\r\nlGS44BQk/g9+J1u/Up7DWFf4sGOnB/QMy1gFthamixiF34sEjIpJry1cM2HD\r\nleX0HljmVbiGZu3c87e+0eAZPB+cOsO0ku0Q81k1gDRJEJB+faICqSWA+f9H\r\nf4uddeJAfitjdOUfYaO0ARuMi8ffH9HKhcEv7iRkiphynD5DciVziJleb5Nu\r\njwIx3MmX/bsUwghQDfERn3Ra1aA28nbN3PO4hsPOB3VBkwX3xOxUrjvwYJgi\r\n/dAG45gbBkqq9VJVa9QH1lpgLI9zQWEf+ucUAkJYDhXXxssxBYkE5R+FGotE\r\nAagK/KpXWV1Ik9DQUYySbvsuxM6PKyrQTN+2bEQHfGiQILwTc2XDt6nDp0Cb\r\nKDaorSPCQM6tlgHoKEzFznUuZ+ns3qI7UIfdiTdSvsXSFdPbbUbDH+Epuc6e\r\nGj1ZzvXOhgTZE+OnSFyC/GvKmpxOEF1DgmvW1hU6iTtsLSoEpyf/NGovEivI\r\nrf+fn1CbR6iarnp5XkwS6qnbUccaXkduzyE=\r\n=7bvC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c7da5104ce280eebfc1b0cab2279b8acb906babd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.215506426.0","@material/base":"15.0.0-canary.215506426.0","@material/shape":"15.0.0-canary.215506426.0","@material/theme":"15.0.0-canary.215506426.0","@material/ripple":"15.0.0-canary.215506426.0","@material/animation":"15.0.0-canary.215506426.0","@material/elevation":"15.0.0-canary.215506426.0","@material/typography":"15.0.0-canary.215506426.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.215506426.0_1667610416694_0.28079002555182764","host":"s3://npm-registry-packages"}},"15.0.0-canary.4cf917476.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.4cf917476.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.4cf917476.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"43031a54140ce8f31985d30f8033811614f65ff8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.4cf917476.0.tgz","fileCount":44,"integrity":"sha512-eef+RrIXZBN6+oXMYo3O2EZLomjZXJvtOe6HWAtqiLN765ExqNgHyJLejYkxeizbeYK+zX8Jfb6fIIG+1vkKog==","signatures":[{"sig":"MEYCIQCbIzRctikKBIgElazKTbslgngakKZCBdLxeAtSJULpbgIhAI76HuWA88BJXi6sHTxnMTjki2tbn5u0HKPeQ8ApyqN9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZqXNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpbog/+L512DgzuZXhE25UgbZi0qfnnHYha5c1891shFPcHjverWK2H\r\nLVkeczz7J8OKP0xg3kiw51qejTw01exdtfn2jYhrFqANAbBICX0fypS/XLca\r\njV8lR87BSYT7AkaRwGTx60nU+Y+Q6n/CaiBxy+kbBEiJ700oNIcCmYLlGEUV\r\nvPUu/WT3IJT3ObXnGbVZmZYa5Le7oL8K2cDkJJ9kY0JQrcVKhpWV9Chl0rx7\r\n9gZ+T6rMnMHyQpm562+qgiOqIgKFJA6itk8tmjhHVW+pwxMF43bjq/HgwcXJ\r\njsnsvCGgoAkNAsw5iO5h2Si2PuTeqlNwJTgOWp3n9gTrxMSVvbrCiE0vvL88\r\n4tPMfGtTkOFuY1HT7Qm3yXZHCxuUkXI16/kyo0ip6zMy/WzCvA1PVKubfLO6\r\nOek30cGasWHt87LTOsi10UPiVRWK8/qz1PP34F8FI1sQsI2mIb4N+D1/t8Mz\r\nVIMRTQeQLZpZvCFB0oLkgH6x4vZQn/MhH5V7qzzbjf/4ctj6JsRKBnju6/Ac\r\nK/6BXaVHgthGKFPVUfxzgpUlIGeLOfr5Hdk9CIe9L3pVygV0patqXPjw3QqT\r\n7VdgFvYwbss9gW1v9AaOk0MagSU2za7U/T++h9JC4mfr+IqsUqVDFRMIJC9K\r\nDVAXhJZgsZ5CB1ZN7T9/VZUTULm9L7bhxig=\r\n=9Gn+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c7ef38a54cc085b34eea4d38f143f3b65dc649e2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.4cf917476.0","@material/base":"15.0.0-canary.4cf917476.0","@material/shape":"15.0.0-canary.4cf917476.0","@material/theme":"15.0.0-canary.4cf917476.0","@material/ripple":"15.0.0-canary.4cf917476.0","@material/animation":"15.0.0-canary.4cf917476.0","@material/elevation":"15.0.0-canary.4cf917476.0","@material/typography":"15.0.0-canary.4cf917476.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.4cf917476.0_1667671501125_0.7926043148989654","host":"s3://npm-registry-packages"}},"15.0.0-canary.eef14bd32.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.eef14bd32.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.eef14bd32.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ba17f2712dbc736978f60a23880e7d6abed74717","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.eef14bd32.0.tgz","fileCount":44,"integrity":"sha512-N3Oe86mJ5wUOSHsJ5RMX0ESGyAyNu/anqeTXRjq85ZgwnEQDCvPqebO676jAueSyXBs+GYA8Yf9QKAngRtpciQ==","signatures":[{"sig":"MEUCIQDYVWRVZotU4lPdQRXCx8dlI1SmimCDNF4SWVx6wqayawIgUK0zDzriiee534yEH7r4IooCxL1vbq8YZMOpYpxA2Lo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZ+4KACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5jw//YOmS3VkIXvP+RX3ulTUnq2VGc/YGxzZTA3B14PXR9oqPIETO\r\nFEm0A3vUzx1ni1hoQW8+0/ESqkFxJK8KBDafOKmu3P3uThz/G5JDHvXul5DM\r\nyrE/RqoJDXbZUSdJNcNQNXTMYfzvdQk5GlSfyFEERUXXIQJSeuweAlZDaIfv\r\n9Pxl/QJk5oD7necjzPUQ06SC+qTeerWLXipuSHTkWaJi2hQFPAkaYWHR+AFn\r\nYYsF1za15KMM6dxDptBzeQ840sAIBHigLf5vD4E7txkURwAnBT5nx1vTv1rA\r\nvDuEKNmebBta6Ae2sSP2x646irTN77z0iZJXDkigo0rsjB0DZboJT+DoNI1B\r\npMH9LC2D1+bETkAsgLuI3Gj9CnHjbz5FCKmfXTpzYu0Dii4MeEuGZ0dMy1it\r\n+QXVN5RaYKloT0OE8I7MrNb0Wu5doVmMMqBUzNc9Qge8RLdA4t7htshYadnD\r\nzlC0zRxA4krlFx6uwsxlWp3r+El8fHYtJjRuixvNS2ooJlFE5kMuzkzEpjyE\r\n5uSmJcJMYO/p1TY2mlwE6V/cjxpV2l1HbWvSOiTkg7c0RLYX2oGeT7gma1M+\r\nAxwx6iIGh42uuIW9aio9CXMaVDpeb+pcrYUynkYT+DugnSCeo7d5Ml2vCpiB\r\nFindqBbmPrORDpOgj4wX5qD9O0RnFGgUCmE=\r\n=EQ5y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"40acb6cbe1201f5ef758bfb96da3145ae3c4c1a5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.eef14bd32.0","@material/base":"15.0.0-canary.eef14bd32.0","@material/shape":"15.0.0-canary.eef14bd32.0","@material/theme":"15.0.0-canary.eef14bd32.0","@material/ripple":"15.0.0-canary.eef14bd32.0","@material/animation":"15.0.0-canary.eef14bd32.0","@material/elevation":"15.0.0-canary.eef14bd32.0","@material/typography":"15.0.0-canary.eef14bd32.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.eef14bd32.0_1667755530511_0.25405402469336824","host":"s3://npm-registry-packages"}},"15.0.0-canary.6faa29fe9.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.6faa29fe9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.6faa29fe9.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4b67f15254adea1286a4f029da074d39083cb9ac","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.6faa29fe9.0.tgz","fileCount":44,"integrity":"sha512-3ONWSYHjNQpHrWjJUbY5Dp1u1u++f5wDr9ZDQIAQOFwIkuWkbHQckDBxT8scYRNjrA17p25+dm4tKoS0siGnog==","signatures":[{"sig":"MEQCIGGBq7WOCIgFTw1lm5ad2hhNAbmUeg7jfdYQHZeQzcPnAiAoA4MnZnH76HxTeJZntTYCsUPxgIaaC1F0g9nEtZFpKA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaHgMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqX/Q//XFsgdSZDI10QakK5s8fhlpgPZdWe7dk9bmXUCsXIaLWYisLc\r\nnacbV4XTZ6lsnuPmOZhGRbNIKCcFBbVOxWuKVEHzUBR/PguILEwrYkySGEv5\r\nS8UOPTkf4X9z1Bk17nsYlKpO/88+njAVBSfm2zmWVfRezt7J8gGeGv4JC1W6\r\nTYZyEO7HVSdQBlW8efFhkAhsTamg6TKaCWeEnZON4xtRZPeBh0nNl2K5mfzE\r\naqVtmeNvYyaMT+SH6ACjN3EcwCAyV5FK1vmB34AjIMEj87cJvJL6xy5Bvt1C\r\nSUKTp8jT89k8U+f3QrvywW+69lGT5aqkb5pUmI5mcKW6X7iJHcmuDWSU4+SN\r\n5o52c1g6HiYtEriXuBBH43UklZI7JEQCdwd2VFDpf49vVtUw00c/l59PzoYK\r\nM9kCFNjU0GFfn/R0BJrYK597pZjM4UtBff73ElawTGtj4ho1uFYp6WXzrn26\r\nCr/MCgIm6LMFtYz0GGSmJRJlN0I+XxKklXI/1m3BqJqe3xRs+n6LWyekX0Mh\r\n/V3omJFSB5PrmOl//ngfB86lCfhfys7jlfVaiYfSzUVSSKOWtsSp3kjOEpXE\r\nmA7GJKrTAhbacbX6emIGOAXS5VJ59W/Ka9gEc3QUzixGNdNJhO4LYjgngEsE\r\nOJigJTK/FzdwFVwAenoM4XOIfP9Ffd+mfKg=\r\n=mOcC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1403858386443f73c0593105b5654b6ad8596a9a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.6faa29fe9.0","@material/base":"15.0.0-canary.6faa29fe9.0","@material/shape":"15.0.0-canary.6faa29fe9.0","@material/theme":"15.0.0-canary.6faa29fe9.0","@material/ripple":"15.0.0-canary.6faa29fe9.0","@material/animation":"15.0.0-canary.6faa29fe9.0","@material/elevation":"15.0.0-canary.6faa29fe9.0","@material/typography":"15.0.0-canary.6faa29fe9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.6faa29fe9.0_1667790859949_0.3976656073521425","host":"s3://npm-registry-packages"}},"15.0.0-canary.9af09b967.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.9af09b967.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.9af09b967.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e5bbf872b0b5ee0ef06910f0165e11dbfe139506","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.9af09b967.0.tgz","fileCount":44,"integrity":"sha512-JTRCdHUxSwtR14eSIMoVGWd7lx3Ydpd/Ygw1sQhl7Ws27aG+FGpFNzpSBVKYC1KKnfSL1t66j6Rxnh61jfywoQ==","signatures":[{"sig":"MEUCIQCsukS2bSIYeiZwLahLMbClKOLAjiOngmQSmfjf5IeRRQIgQR3dFUSZ+h4TcA/6TJ4Jb9++o78huc60sMUoeWNc53o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaU5iACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrlShAAgdWReAOQtnfnOxCOsPSZ7ORiceLmqT3pFZmVFd2V2k4bu+HR\r\nSNMNKidUjdXM7BkKY2q+1DjkMzsND8e+CMQHJ6xW6AZcK5Smc1dnRtw6r7Om\r\n9gtX/w2TqbdTpA1mQ4oUvpICYtsyo7LCXmYLG40Lb/Mn4uiaIO00IhNyiw3d\r\nQ+UKa4xP7k555HIyw23Nyfi1hCit+7B0mq3yUP79SeLj7n5mXjq+yppF6OqJ\r\nKFHCzR7eMyYyuiApjmwY86VymnN3YJvnoa6BXQKvzCHwRmJ6OI3omJTzfuM0\r\ni/LcL84K23nAlCQCuOxp1OSs2s6h4mhnQlnEFBip4JqJaUspc//SISlQHu82\r\nBAjR/lUYu4eN2yemaOm4627L87gdu1EXJFVIFUa1/Wz0wgRT5QrwXGqcouUI\r\nSGJMCinOP62T5lMhFkS4vXEXWTTrup6ojY792PLyTNvgfzuZQbkvTP3H8LZm\r\nuw5ip1URVMLlaSp5diCM58swZxFyv5ddymPQRTBKAEAkCWIHGUUzennfX2Ts\r\nkvpA+L7N4wg1JJtyiVcmsWu4t3gyUe//ilTHPTObodvLYepHpsLj7gOoXTkz\r\n4d4IS9GRPj5g+776V0sH1omC8qCb4/JFyNUCnKv9eDHAR/C7VjL4F6nuS6Im\r\nXZDQ9D8hFlMNg2miJeEpfv31IIEv5+T4XdU=\r\n=dLUZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"745e702463a22f4c5de6e94b3527530a9bdcc9d9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.9af09b967.0","@material/base":"15.0.0-canary.9af09b967.0","@material/shape":"15.0.0-canary.9af09b967.0","@material/theme":"15.0.0-canary.9af09b967.0","@material/ripple":"15.0.0-canary.9af09b967.0","@material/animation":"15.0.0-canary.9af09b967.0","@material/elevation":"15.0.0-canary.9af09b967.0","@material/typography":"15.0.0-canary.9af09b967.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.9af09b967.0_1667845729856_0.2975809877031681","host":"s3://npm-registry-packages"}},"15.0.0-canary.0f54fbb93.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.0f54fbb93.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.0f54fbb93.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f7e8da7f5b35305683da045d8933d42875cd1b67","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.0f54fbb93.0.tgz","fileCount":44,"integrity":"sha512-j2ORaK4DqJxwS6OspuFkxElJFr43ECpxCUe8KlZKayrI1Of08GPMmDwlKx6HbgUGTB1Nc2hm0IWmqJ8VfuSnOQ==","signatures":[{"sig":"MEYCIQDyb1iaXsGWiw7tERV/dtRZduwRidK/EvVXQxAM4Ve//QIhAIYGdf/99ZOgOChYEW8hVNq/A6i5D/5QLWk6SjMFI3Mv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjatDKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoCFw//bhM4cM0eOPoFlc5YbnB0Bk3OvVM3ht5xLcAdcggtsIIdwjoT\r\nPdk7xC3MndEFPQfX3cz3zllXofxRTRn7DdfV0hkn4ZDHrBSLFb85T49BJgLd\r\nelNCi4tLGoBKaiekqfbv+cYZLXHHzUuU5usCxfh3ypi+HHaRAy30LOxdE50N\r\nYuEzSe+pd2AA+M5Sa/ld6wVoPIBAPAaK1Xo6e/93VS3aZbqUC4ykgLBdX68j\r\nrlK4zXMA67Yu/xlgJ+jmkMy93jAHTfub7uDIubqnwzSRLM/jxu4QOFeVKFF3\r\nHF4PGjfzbO0IZ3Y1pTWN0AdzR740xiXN981QSMYTQW7bQg50PXL/nKtNUPwc\r\nYPn/pM0yfhpXK2XufdbCh/pf9oPQnQMO9uY/8Kvxl0aNs2cd/fSUrKNKElEQ\r\nQ2RJGDyAevWPnSn4EqJKHNYhsjitGY0bfLqjmo72KuwAYNrJhhe6MoXdtbKu\r\np6MZte+C6govYID2Mo1Y6EbiqmXliNag4YHLkncT0F4pZdyStYKr/DRlz0H8\r\nrJ2RFqK11QlcmJ4JL7Zan0QsX/Asobrx1ZscjWxqClUJ9d7MRuLDKLrGOYOV\r\n6s5IqPhvwY0BXkNc3m26TReXa8m3jOo12YN6Uuq4kehnDaU5uclIEzacUXIW\r\n8g0Qu/7nnfM198fcUuPqAzKSIMN1Drdmdlw=\r\n=N3ZW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5d2d1814fad8065dd869bd95c156c04ad45926f7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.0f54fbb93.0","@material/base":"15.0.0-canary.0f54fbb93.0","@material/shape":"15.0.0-canary.0f54fbb93.0","@material/theme":"15.0.0-canary.0f54fbb93.0","@material/ripple":"15.0.0-canary.0f54fbb93.0","@material/animation":"15.0.0-canary.0f54fbb93.0","@material/elevation":"15.0.0-canary.0f54fbb93.0","@material/typography":"15.0.0-canary.0f54fbb93.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.0f54fbb93.0_1667944649855_0.11079988312428002","host":"s3://npm-registry-packages"}},"15.0.0-canary.a8d47f9fe.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a8d47f9fe.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a8d47f9fe.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"83f5310a87e3878debd95eb3106b6c90f9a7738f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a8d47f9fe.0.tgz","fileCount":44,"integrity":"sha512-aNz8JxayZ+xSa1xiXQ7ySnZWBO7spR5rNyzAYIBqvC33ZwqvbumMojo2M++YAXvK9w1d5osi4BGquXJwlzpKvg==","signatures":[{"sig":"MEYCIQCxZmfRsftfzfwdcC49zvXMaqz658/mLCUEe/nooopVugIhAJ48I9EQElKSwCIZechgSFsyJy3zprEYXfzcFPSPa7d/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjayoxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo/Rg/+Mx0LHOInzBaOLVZhle2KbyVxlbKsOCvTiKZqv6zlBK93WrQR\r\ncBL6CP+lT0YCtbU4fshG/aEPujvslSS7ddVDrfWVtOfg2O2cCFT5LPnroAXZ\r\ng3zptG8cdqN6D0g1D29YvcR0XktOdlFjXiEa5+KEQEvxto2jbqEO/gZ6Nnfl\r\nRvn95YZOSpMotx43xidUlia1yAwJtDn7bN/lrnTuTngffVodYHm4XL2RxaAa\r\nrWbJDblum+q+4hRbG589EvRxZdQNEc4dahKqEoH/R0n5tZ3pzuo5Izc49TE3\r\nf8C+aiOwnLwS3vb+JhYC7FBdQ/i+zq0T0xTHdrg4mVZ88nC2QFmfaiP6qk7Y\r\nDZNhnwFsbb4qbJrNRPNVoHsQLekNjCzFZqcZqDAQrIIwGhg2Ox+lRVAoKi6p\r\nJu5L2q4v21ksIh1lOOtNAjdNEpRuBqC0U84SJolT57nacVFZ29wMAtgq26af\r\nNHRA4JbFmQos88c8tNQtJFW+uDSAaG7gfySXWHB8OJG+FBR1RcM8gzTa+lYD\r\n5z0jl5dVD9ElIHLsohrrQ54HJ8vAM+1FyJGJx00N2mzSkkKmIZFHI7aN0OUh\r\nffROrqhbL7rJY2HIXGYhxPEFYd3dnA3PpWr3wQZf968R81taTBuxMQrXbVIr\r\nZsIhvLSxRodkDZhM+tiCo0zem4pnOnCAKsw=\r\n=nSER\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"37662af94525622cb00ae2dd17f31f6a93b4eed8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a8d47f9fe.0","@material/base":"15.0.0-canary.a8d47f9fe.0","@material/shape":"15.0.0-canary.a8d47f9fe.0","@material/theme":"15.0.0-canary.a8d47f9fe.0","@material/ripple":"15.0.0-canary.a8d47f9fe.0","@material/animation":"15.0.0-canary.a8d47f9fe.0","@material/elevation":"15.0.0-canary.a8d47f9fe.0","@material/typography":"15.0.0-canary.a8d47f9fe.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a8d47f9fe.0_1667967537731_0.719280424500734","host":"s3://npm-registry-packages"}},"15.0.0-canary.66a1e75e6.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.66a1e75e6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.66a1e75e6.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"83a32a0b63236dd41ba660a3896628b08877fc1c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.66a1e75e6.0.tgz","fileCount":44,"integrity":"sha512-CIzHubdQMflLri0EijqXL4OLPDBt+OJrscz1aBQooikOhmSUyukc++wugsHhj3bgWvD0Jjo0HmGrxEb8nSvGdA==","signatures":[{"sig":"MEUCIQDLMTQBeyKifHcR+mfjkU0yDjBuhvnPvRubKX59kaK+1wIgUV32apXif2Hq3xMuVytEXIyB4GsDgVCoHll9C7hv3sQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJja3SeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrLGQ//WRsOOBJLIsiFH3auysjDJgx7ExskXekzTeAIlqRTwq4gy9rg\r\naXtFhPNl5Zv+VigY8TT7EhmV6AIkJfJpndJDKwxdsu/5mozdlObbXNwA36w4\r\nv8I+0Q3vruObe8CnB8qE/zv2DeJXPgs9YGiQopiayoh2AsxUIIhfP99qacCu\r\ngdofkfSAD+bwHz8QcscfatiblJ22vD3a+CTQIld2i0ZHM8HIWOrx85NrvqKZ\r\nyAX8awCAkUXP6olMlZXAVNYnMJmVCXPPkMaNEv4UHCYycDbOXOdA0jJunsKm\r\nzFGty385NIldnj0/nuW3mjL0U0Zbej7UmTO9fTCj2iVX4aYyVwJQJRG5AU8V\r\nVUhGomRJJGwwwX5PZdPUs5pRP2LXg4cpsL5zL2Erw2Dpkf3qvGvcNSDbf5pI\r\nAkVzym7MpnnwmQ3ThDTUE/mk9YUMVfiZsZfMkTf0DLFRgINvDKSACzZqHFZk\r\nT1nj3IMnUxmRQBntYwlmqRNhwOpcxhE7QJ6W+ods6asihQzXGJAoDDvIp5nQ\r\neKCYvn1sR19bwT/tgsOB3j1d6IDKpf1A9fSStIoeNA3sO64hBTT1q1E1d/gz\r\n6fgsSySna1WuqtevB62I89t3D+Ww59+EWsj+FgEAGCliZdQsaN4k3ThJH1+k\r\nKdsOm3R0ampye0rtOYO0zJ2c1Ed4N9uFrKA=\r\n=nbDS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8ed0cca778858904bcff29669c6dca407f25ef98","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.66a1e75e6.0","@material/base":"15.0.0-canary.66a1e75e6.0","@material/shape":"15.0.0-canary.66a1e75e6.0","@material/theme":"15.0.0-canary.66a1e75e6.0","@material/ripple":"15.0.0-canary.66a1e75e6.0","@material/animation":"15.0.0-canary.66a1e75e6.0","@material/elevation":"15.0.0-canary.66a1e75e6.0","@material/typography":"15.0.0-canary.66a1e75e6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.66a1e75e6.0_1667986589854_0.06273004727375686","host":"s3://npm-registry-packages"}},"15.0.0-canary.5e5c2afc0.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.5e5c2afc0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.5e5c2afc0.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7175fe82c51f1b2468ccd7569f1e8c99987a09d8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.5e5c2afc0.0.tgz","fileCount":44,"integrity":"sha512-Qx4FgzI16ndZf6ypWqseHtCKCjZS2u2DG6kcKINitetxjDIEOy9xK24CVyU6oHn7qOPQKyFvkxqOdYyLMOTOaw==","signatures":[{"sig":"MEYCIQDhHq1lMdUl8CEH1i1jA4TuH9uiSyhM8M2ki+fielVxYwIhAMLXqLLjt1h/aJdWgS9cVOhQB0lJhtyEuOBwFlvks/k6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJja5TlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp5mQ/+LOYNhbQ7Km7NCs/xqwVlq4ub08gs/t+CK/iGcVusVKe9D503\r\nnAegkRfLt7xQ8GkuAljpsbqoLpRqH2dHH0bxIbaJfBfJRtFbB0dO2bNxkuYc\r\nSAU1EKxrmOaToj3gffKsrPZHBmOJVLvL+TxTK82iUta0dUIbvRPjSeiOvvUm\r\nlb3Vmx0EBib0WH62kAasMYSU0wT9wHc5JL2qtM1pKw4gvID+pTxhUNFG0Q+0\r\n919oD8WnLID8NnNwD6FZGucXOCW86lZMnTXbw7OY+9VjEl3kr3diygSCTzhF\r\nO4Efwjl2P8SMT2xYOX3cMzF5HOimxrzStCamL4j3X7FT63888zQlU6TOOlMH\r\nJft+OKl4yulcF1IPHwpXX6/40vi+qSHG501tdJj+wbTrWjY+ThYJgUgwTUL0\r\nAe0oftj+F8IOJU9vEsSWoehwV2qAw7vfrF5FClHlh76m8KRYFPKg90cseLK6\r\nEloybFCiujd8gIOb4DMcFumN5+AuD2LBzTk5+Jig4d+EAp7fbxHAnWfaZS5y\r\nTr3t5HyuWUkzIPTEZrAYyGd1bfiZRqBXQv/mEk6ZP1Glql4b6tOWbctqQp/W\r\nWWNozGetF9n55Ingtzn8v7f/LP+oflLoCuBoIZJKZi67N3NItWleeII9S7PS\r\nwjjmXNyqZuutlxMbY8UAIOkkcwpv/uOcjTk=\r\n=zULC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f14204a01be3c79ff286a8287a0ab731c371492c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.5e5c2afc0.0","@material/base":"15.0.0-canary.5e5c2afc0.0","@material/shape":"15.0.0-canary.5e5c2afc0.0","@material/theme":"15.0.0-canary.5e5c2afc0.0","@material/ripple":"15.0.0-canary.5e5c2afc0.0","@material/animation":"15.0.0-canary.5e5c2afc0.0","@material/elevation":"15.0.0-canary.5e5c2afc0.0","@material/typography":"15.0.0-canary.5e5c2afc0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.5e5c2afc0.0_1667994853270_0.5038477394138068","host":"s3://npm-registry-packages"}},"15.0.0-canary.3e3f43359.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.3e3f43359.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.3e3f43359.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7054c208252b08d0b54e6344997438c45f9e6b8f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.3e3f43359.0.tgz","fileCount":44,"integrity":"sha512-PxsTCTZDdQ3VpnKNbKw6uIjguI+QJJUAemz2C0uz7yndW8DvytvnYnMJAO81xzWciE3U+z4KiY/hv26ArS2pDA==","signatures":[{"sig":"MEQCIHkZVaGgzyX3MNXxCiCJbZMxNgwi0tdXQucVKkiO1tnkAiBDBAO/6LpbmhVjTV+eLVxkYEC90qvA7jx5xfTY6gyceA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbAenACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqLvRAAm+v+hmhbGwQmyKScg6mu6Mgh4D4uHmo6PpPCpixEe78UnXNQ\r\nI/2OZjL2bOSBGtuZ9nWfi0VY5LeEPLntBddK5nFIRMCEIshskWRYQWdk7iu2\r\nZUZ5rPWJTfAlc05E29mA1kouLAmHWS7B+pAoGgJfYM0ojyoKB6jFkVda5Ws7\r\nFyFtvj6ve0F64p8582Wfjkk4WtrwhRqCYGEtFyXwl4eLOsUuXEpfLOQvm/9A\r\nNs98IxUd3tBRF8IHMovd7u0sGz7K3QSzr2nat17LVw5tra8/8oh4HeLh7tVi\r\n4DZy1Ru4YE7ipk2nCwr0HNYL3kW+Xpk69TxRc1FWGqQ0Slxi2dA9F5sFU6+B\r\nTShFM6xBJOzc4wy3UmGMjpcvfiSQ3DgAwaWZO2qm+em7qb7fTue2aanehxID\r\nn1s9YDfmaMI3gL15vefHDONXIFbC805hLE7MSopywXyhCKAzdLVaqtESLApU\r\nC6BaSPL9IyCUZ3sFZx970+FwPybsTW6VSFxrdEIcYCJR1YbaysLxWrt1NSZF\r\n4dYVbG0yIMx/Uu/90fma4qbxsuvC9tdYthUSi+NuYejEadwrUgqeMDRWM8rV\r\naq0EdkVj/0VN2XTQV0sw0PBj7VzpR8INWvhK4FIbYUQVJ4TAyv9UoRzTpLke\r\nwBo72DNeoYtRL7YzOOywo219PIl/1GfYTXk=\r\n=8Z/I\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"722326ecc6026aea1f22d8b4e1c9901bc13141e3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.3e3f43359.0","@material/base":"15.0.0-canary.3e3f43359.0","@material/shape":"15.0.0-canary.3e3f43359.0","@material/theme":"15.0.0-canary.3e3f43359.0","@material/ripple":"15.0.0-canary.3e3f43359.0","@material/animation":"15.0.0-canary.3e3f43359.0","@material/elevation":"15.0.0-canary.3e3f43359.0","@material/typography":"15.0.0-canary.3e3f43359.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.3e3f43359.0_1668024231086_0.197249504420967","host":"s3://npm-registry-packages"}},"15.0.0-canary.3f667fac6.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.3f667fac6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.3f667fac6.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b3f5a1d743eed7bca08cea4130d32efa50e9716d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.3f667fac6.0.tgz","fileCount":44,"integrity":"sha512-Yvmfxl9KSA6urmlZitZRblDfKlGejNLMFZzuUtqTGlQzhTsNdShjktN/Lh4i1O08lrTJP41tI9A9Sbe8xvWIlw==","signatures":[{"sig":"MEUCIQCd61Ydd0U8aT9Je5rHo82pFeP7Vu1pf+Ctrw3RxDwIEAIgGqMhnyjtLISiV00ButLkIJV9uMmsad0NQqhdP9svmGg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbCSJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqFxA/+Kt0yaGF+YHqJd3p3VGoyklVkUryWZAZH/RuySkD6CYeA8zlp\r\nx34uQSSkTnuj1ezJ+aTAlrzmi6kUTg05e+EZ8Wt7bzar846W/ZP1u6+vn7So\r\nOy+j2ZXE+lAFWYIk1feO+3F1bwo0b7NT2xvvS3Y7PURWE8A4zx7P0+fLGS1d\r\n4s1NJWNMD8zSPZmBuKOmHFCVPsmTF6M3SW5Ms36EVn8XctWUCAjkqsDdWXVy\r\n4drjqqMfxEY7FkNWo7DG3ioQ+HdOTYLbuf+RrnO8LK7B3SnhDeXVqAOOHhI4\r\n5qdTHDE8buVapDVKYePFXQj9tuaGY+F88Is6hIrvSOX5mO71W8hBK9X7V3g2\r\nJyc+DAedk8BOtfY5cBQnf7yTA3JVCNnw9hNptUzjhumTxdDr7e9Z9a2JH1IK\r\n4r3HQsS14rAO8vwJN0mVVcfvxY6+k9cRurJKbiWHMC7+etrg0IXKEWwpgwZn\r\nHZ2j8toZqll9aaAncyzszwZjElYzBy/js6MGOwEmJsYdNDVaF0cv4znPSCnW\r\nes8Gyi9EVHwCdPFC3/La5sX5Frw61nwxncGUPW2ImpnZ/7TorhHOfEotpUoW\r\njZqoWETP1l2H2AFATSsK2TRNZBXBjirvNDVK91V50dZAA+aNTSBqiblSt16y\r\nxNqPmL/V330W3e/0iOgRmhugSkng0ntyztw=\r\n=K+gV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0980467335d47e19b4ec72e32644ba0a08bc0c34","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.3f667fac6.0","@material/base":"15.0.0-canary.3f667fac6.0","@material/shape":"15.0.0-canary.3f667fac6.0","@material/theme":"15.0.0-canary.3f667fac6.0","@material/ripple":"15.0.0-canary.3f667fac6.0","@material/animation":"15.0.0-canary.3f667fac6.0","@material/elevation":"15.0.0-canary.3f667fac6.0","@material/typography":"15.0.0-canary.3f667fac6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.3f667fac6.0_1668031625263_0.03537824912274945","host":"s3://npm-registry-packages"}},"15.0.0-canary.faa28c1c5.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.faa28c1c5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.faa28c1c5.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bcbffbb21f3044546b0f9de29851a4eb8c504d1c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.faa28c1c5.0.tgz","fileCount":44,"integrity":"sha512-oWyzRBZR2MinEK1QEONqXkOiuxwe3tOK1Xdx2vv9ypJ/RPejk3Pam8eDxZKSgC59ab1NM55FNkNbppt5yLOXAQ==","signatures":[{"sig":"MEUCIH2/LHYdf3DZoMHzJp8g2K9LQFlzHm8iO9GcdxsndE65AiEA/CvL7fAZf0iMmpDdggQN4ILxgUzXg5Ii7M95bE2X95g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbnohACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpUWA/+Kt4LPfAAZmubCltDusvdnjSk2J2yBOfq27KUQQ8xJs2SYKoo\r\n8oGNPqR0VB5+fjf850cx0+YWXg/iEo18Uc7klcDjLD9UsUe3y9N0Vnyp4Q2P\r\nECCjW6X5c3r4UTdYVndaimcV7W1B4JctScLTdJCp9oNaBN/SZl2kw3N2Z7Jq\r\nyzdnS9GcfuejOaWbsnGOlbpQRt6mYR2pZywi+2mBfeS4wMx4xIhmPoddsxjP\r\n7XfJjaxuYxwbZpUUqZoprTcXlQyVnEzLWXZu9rXFFhO7VRadiUBPZzLk8QoE\r\nLaEo9OOn2uMqaz0iPh+PXjtpkEo5IAPzWyvk+Ktz89V2+ulvAKncdawKU+7W\r\n5wbM3v/UJP+WX0nQMtKPiXCS1x64qHUvL55e528VmgmJD0CWBQDoehQjh+bp\r\nnM84bAYFAp3D7JvOw2F+ufv4z0xaMy3wqfmmG4uJDdD6w9X40bfdGGYRHS18\r\nxVthleSY2UPQZgsQbRsyZj+fB3OAQWGNUHvLOmx15ReHNu3jRsZuyN8jMwce\r\n7AA4t+y2Wu1fMbapuU4XbuF2DxlcozVVAWTm3WViiaGt7r2VuNRNOvRORse7\r\nfL6l+B2/o65sAcppcSxQwl8YD0mjsQ64mgVhGrMnu6g0Vx98enouwDCkXw/m\r\nwdCNALkBwGc4zj8Ee6evW2qnedV8AaFT8dc=\r\n=gvC5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d36350ee1c0fb11d053acc0cd521939199fd696f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.faa28c1c5.0","@material/base":"15.0.0-canary.faa28c1c5.0","@material/shape":"15.0.0-canary.faa28c1c5.0","@material/theme":"15.0.0-canary.faa28c1c5.0","@material/ripple":"15.0.0-canary.faa28c1c5.0","@material/animation":"15.0.0-canary.faa28c1c5.0","@material/elevation":"15.0.0-canary.faa28c1c5.0","@material/typography":"15.0.0-canary.faa28c1c5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.faa28c1c5.0_1668184609168_0.9554477780992245","host":"s3://npm-registry-packages"}},"15.0.0-canary.a868c7866.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a868c7866.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a868c7866.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"578e16c448a6fc1f9e61ce542214c400229d6ea2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a868c7866.0.tgz","fileCount":44,"integrity":"sha512-QKKYsO04j1Nm0W4yzzNsb3JT9uk+8T0xgwcgqW79WL360RPcrWWZFzqZ/NnlcGAEdCerasUkyomELl0nbu8mJA==","signatures":[{"sig":"MEQCIAi6ZewEw+AmXT5ZBUlccikC5fhK/6qhmNar206ztIW4AiB6M/YuKWSHJ/l3+Pih2cs/UnXD5ECFApWQcJipatNasw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbnpQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoelQ//cI3wKcPfULYRH+7jzgSNg/5Kz1AJMAYQcu+4WdygzGEZokQ7\r\naGyOnnj+kI6TvD3PZ4YEzJERyHsm4V0e59UiINnp1qAU+bV7UcLnRHYqk0rq\r\naBe+NEhKPY4dbnaCMAijtOQ/e8GtELjlfS0AIDkdd9v3o0kRisA9gTG52dXZ\r\nAZiSQSmpFpBC0AQsP/sf+wIQUFyxHPYjVf9k/bjdIvuAOOtnwvEl4Mj2W5G8\r\nKJXPlPxhddYawI2UiQw6g7i03FCtgmTX2fK7Tg2XfSTARiuavSCmAKYH1MUk\r\ny2Xiz+NO/fU7FQXMGrBu4Dr0AKNGUPyBDl9xzOCulhkpEcyQ6p+IOy26PSMU\r\nVqMlH6Di4Lg+e3P1vb7ToEbWR9PcShoqm/0v9DisZ709+DKge4EjEN2Q4FPc\r\n4tZJwjNJeyxLUnRuOv3lq/X0kLKZ0EXXdVzgkcSm7Zv4wZm0YoX9dIPmhgWA\r\nrgENnyNQFTWrHEJ1eKjbvSUdesJGe10NGqWzXPyF1QfX+xiHGtyIQon4r9fv\r\n2HLE43Ckb5qStDz1cb22kW3Aw8c+5/Il4btKZUf4vjD8IVthCmsMGzaptZr1\r\nJoiHa8rQrYcnuvAlbPXCc6rerg9hYouxr3S7hbyZxF49D93PEeqJCc0Jl7oI\r\nPDXJ5MQloInARQJk9Qxpj+uovDl3/z7y5pw=\r\n=nxue\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d35416d7d3365898437e980f43ade48e60904e85","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a868c7866.0","@material/base":"15.0.0-canary.a868c7866.0","@material/shape":"15.0.0-canary.a868c7866.0","@material/theme":"15.0.0-canary.a868c7866.0","@material/ripple":"15.0.0-canary.a868c7866.0","@material/animation":"15.0.0-canary.a868c7866.0","@material/elevation":"15.0.0-canary.a868c7866.0","@material/typography":"15.0.0-canary.a868c7866.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a868c7866.0_1668184656120_0.08577950583065852","host":"s3://npm-registry-packages"}},"15.0.0-canary.602fe8efa.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.602fe8efa.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.602fe8efa.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"100e4f22a64c08e86835ff29316c38b7ba3c388a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.602fe8efa.0.tgz","fileCount":44,"integrity":"sha512-AZiqhcREKtg7LeRO2OKk4bPpGGRqtbzo5uMrSRElh3ng/8JlwA5EQCi6NtKw/t5pEIEKSlO489sXQMiDyi7DXQ==","signatures":[{"sig":"MEQCICG+olPCcbOljL+8L+WsVPKeS0kMyz2oKHundAxTostqAiBgz1HIN6hm0K+JwolOXMebBTDB3g9dO24yhXTuhja44w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjboKQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoI3w//cKdloK5S5HNHTt0TIR2mUhARENmlZwn1S8IliLxU536Sz+SQ\r\n8nL61Tv5fSczt4CsvPxy0k01+pMbjsw2AM812bYMstW7eYxg6uYsMYUNljy7\r\no24lT+posm1cVPJHi1Q8WdXefvuOJvoN4imgSb+6/Ufry/DazzjNzDl/qmih\r\nRSJrYUEro82t1uetG2FrqEVgehOeagLFR+qff9Gcf7KR4KmoO/00VL8XgmLF\r\nFtFhVLcOWrnYRf77W0PpfxsvVEJY0FNIjqSc9nBgCCyndEUSxS7WISuYhrIo\r\nDFao3+Qi5PoYi7mSZ/Bze6QsEn4YmyHdCpiC38/RLhjqEW0QhHobcWeYpBTA\r\n8/V6k3DsYQDox8knR+Rldo0MSKZG9AEnIdSzvHoWXgp305Yp4M++aJTXJQTg\r\nVtMqQ2CaXebfG70jUyHTkEt/Issqv0UeZJtVhq3UECdUnk7jz7ZRv0nzdaks\r\nUfw7qodFjCtOAqWZO3k4yGWVxfhhTCIy//Y/n0YBKIKzSv0MCUqGx9Tn5wAe\r\naXDOcHCnKh+O1Wn8wFvCBm3t5g4Qfv2JRqSfLyo8G1B/SuGPBRmxkvEpAbbi\r\nUzRUge4xQ9+H5nmJGy4gBzuDqRS5MzIfawa/BuPBUTkEh2s6PuIQyRtmTf8Z\r\ni0OJOGDO8wqdFc4Y/YpMW3DcCu6di9W03rQ=\r\n=b1Yk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6bdfaf09ca41b2fd7e3db4797bc2f536f8fbbade","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.602fe8efa.0","@material/base":"15.0.0-canary.602fe8efa.0","@material/shape":"15.0.0-canary.602fe8efa.0","@material/theme":"15.0.0-canary.602fe8efa.0","@material/ripple":"15.0.0-canary.602fe8efa.0","@material/animation":"15.0.0-canary.602fe8efa.0","@material/elevation":"15.0.0-canary.602fe8efa.0","@material/typography":"15.0.0-canary.602fe8efa.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.602fe8efa.0_1668186768403_0.08027756623238536","host":"s3://npm-registry-packages"}},"15.0.0-canary.558c2be62.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.558c2be62.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.558c2be62.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"914f9f09f279fb72df09579c58246cb2bec1a683","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.558c2be62.0.tgz","fileCount":44,"integrity":"sha512-iO+blXQsdOFmwkq4VG0f1897+edquiDT7aO+iuiwMIS4GiMTgK2QGP68W243sqabvfimHSKB7N+x+qxvOMOeYQ==","signatures":[{"sig":"MEUCIGNLL17g9ShVu9p2BY6YcAPsBLuQ6v3Krhfd3tUtHZ0YAiEA0IpBeWOa5STaeH+MSbucNUzJqoR7o7/OJOxklGm/lms=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbtCzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+ww//UgO7kyg2udEcRJ0FuRkLT0N688whzgRKZeKzpWOrdLMGj9Hs\r\njUVrSWFJ8tCyd7am1/YfvAYJFU47xseyVCl9VoUSDZRZ7TUWOxK7Jp09Y+7Z\r\nmCyIwSTp5kjuFiczbBzOwnMyDMbCNnn1zhYShsaWAeezTHJO/PmPDiZfaahB\r\nYWiiCXpzE8rxE/xYG7dQLkrdQfV5mCGeNLAIxWHaZCFUitxMr4rCRk6svcH7\r\nvgepfqii0f/kP2HAgMlcAT6ZCs3HnzOxWlT6qweGRiK0pC+2r4pqpqLfgIks\r\n0ij4gbL08DBtx3IU74KIFgMxgionXJOpvrWo8kHN94h50doe9PH3kajxUnMF\r\nRzWs+PUItvk5p8EYi31UpZOG0KELIdQ4CisnmXI7TKnzsI4gv1HgtUWiR5Tk\r\n7BMciXR2EQ0pVZFHpfnoEz47F41zBbH0ZCH+PZ3bel8KS9DCl9c1BN5cVSVC\r\nEi14tSCW5SHGR6pkb4phBfRqkBbcPufKq2JRxLC4XjHm5MgLg23ogNN1mH+d\r\nQ/W40O11fktWvLUFCoREuVzWTCLc2ydaJBawLeu9h+2pZuYu0uJEmxGcbjRd\r\nyN1OMprEJ++CveENvfv/7GFP/njY349ckCW0Y6rlADTWdyV5qSvDl8ONqxAV\r\nGvt6RPWplQ2avxmVqqCXMFzr29RIV5RgdZE=\r\n=FnV4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"64666caf2aacf562ab6ab5b701e89f28a9bb5c74","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.558c2be62.0","@material/base":"15.0.0-canary.558c2be62.0","@material/shape":"15.0.0-canary.558c2be62.0","@material/theme":"15.0.0-canary.558c2be62.0","@material/ripple":"15.0.0-canary.558c2be62.0","@material/animation":"15.0.0-canary.558c2be62.0","@material/elevation":"15.0.0-canary.558c2be62.0","@material/typography":"15.0.0-canary.558c2be62.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.558c2be62.0_1668206771571_0.22055673163945366","host":"s3://npm-registry-packages"}},"15.0.0-canary.b5c13a7a8.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.b5c13a7a8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.b5c13a7a8.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"457d768daa8806332663f1e558b6e7da250f1354","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.b5c13a7a8.0.tgz","fileCount":44,"integrity":"sha512-7doGfuNR6T5HqQL+ZSKao6kVaYNnpJQZWvoNP42aZ2JDY/yugvgh/qJAfr24sLapx9UwmNthSnNi7etisffJqA==","signatures":[{"sig":"MEQCIDkRFs8l2zl+IuSbPKdlvq7k8s1rCS/+DJA3tFBma91MAiBhthYugnxx/WB5o4wupkQeSIFjv5TfMfpfVTkSMWXQ+g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcmXlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp9IQ//a/wF85jgwKlyAfDkAoAaUk5gfDxHUAs7FU5UDmClvPwqojHw\r\nFUWzlX0XpueLeJdDjOKkBcGOhVtbPVbxinjp3cfJcarabNDBjtyzO6vvLVoe\r\na1qrH1zpkBpXilvUr7pAPq+PCuZ69B1tu1aqAMhdnGovwyqpedt8IeMgkcCD\r\n38Cz28+NMqauuha0n9HL+dhdK99WggaGTsjnTL/B6djqGbvaVlxi2IH5F7Xh\r\nIA9BNeCUYo2rtUP9evNk3cBueGkCVxPM0HUPiovC9qJWN5+XULz83QfpY1xQ\r\nSifWUf93nRMTcVYHbwZh6ktJD8BS6VPah+TlcuLv+qSlpxkdOrBak0bOeFM6\r\nlaQu4eWXICLgz3MGBDZIdp7czLmukXhJUOJfrz4MqEB8dLmoyRG8qTQVcN2L\r\n/2+2m/WbrjwajNYQDUMbkssYKWzA8IFAK3860/gR6H69leG7dcRC0qhcNY4v\r\nVNFJ81XOlQBIQ7UajK+kECsXWU0chutHBq8ap6s/qjl//pFm5HEfanzzltCv\r\nTsRIoCqKa5qEMIyG+f6GUp8cScgHpb7RCGp/GpjyarB1cEks9EC9p48vaJzs\r\nvtqAriFKmBOu4IxiIqRxp+sc4Z4gILZ1444VPhnzIZoyLjnebBVbp2RvszkA\r\nGgP0u51HyK3E6u4L5QnlYK88t1jOgm8emUc=\r\n=gHkK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d7e326425877e3ba53b64755680e3503090a01cc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.b5c13a7a8.0","@material/base":"15.0.0-canary.b5c13a7a8.0","@material/shape":"15.0.0-canary.b5c13a7a8.0","@material/theme":"15.0.0-canary.b5c13a7a8.0","@material/ripple":"15.0.0-canary.b5c13a7a8.0","@material/animation":"15.0.0-canary.b5c13a7a8.0","@material/elevation":"15.0.0-canary.b5c13a7a8.0","@material/typography":"15.0.0-canary.b5c13a7a8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.b5c13a7a8.0_1668441572957_0.19377439844337752","host":"s3://npm-registry-packages"}},"15.0.0-canary.a6e1c0702.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a6e1c0702.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a6e1c0702.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2bbf08499f27d934ede2573cda7fcdfca28691bf","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a6e1c0702.0.tgz","fileCount":44,"integrity":"sha512-80QIoHERyUibx4g4tZP6/DV+m3l+5Emmg2vWHUfO8PkJtZSDoMM1Hr+6594QW2WNJENGCM2nv4zQUDSIhkdMTQ==","signatures":[{"sig":"MEQCIDKiJbqaKJDXJo5k/mgcwjNPjjzivp6nQ/ujEO076oZ0AiAzp/J5SHnnhniCfCD1cVmJeExhudbFA9blRmGgp4F7gg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcnqgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmocUA/9E6z+nUq390gGVphODwA/cO70Lo7g3RUu3P46QA1GUxEmpCW9\r\ndllrEfqC1uZABO76gcFprOU9ciJxug2Lm+PMrshTPIS8t5g++WO/Vm6ePSxX\r\n3EUzG0sdRACIbIw4t2K7V0djiLE305wyROOSTa2dHSq3RvUuXqJlDGBi9SPB\r\nzf9O0eaRxbv3PWo5v/UM+AhkaqpYabiotl0ONfHg+ASUs/DcBeTCOJfE3J0A\r\nY2M2Ini71Em5We8k7u9bZ/LwzPwmRWCM1XcHZBEJeiqJp7dhJ/ReQt8mlYqB\r\nPGc4uAIXaPWqdgk8fZovXHzYpXMv7VXnBhow+Bm7DFo279acVMohnHVw4LP1\r\nMZWa8/CeetUcRLiNo401OrHs7Ugnq7yxldCEFgMAPKhfgD9j/y6jWFPwhbj/\r\n8Z+OOjy6virlsGXVydjIUGDut+HN2nNWAZn4cVjw8ES068KFaw3xrROYo63p\r\nwJ9Okl6h+KHNHlmXCAsg4SSg8VgG5307rrpOH/mdpVdRVrZhmTiyg+MLoVhq\r\nzR2xG7juB6QBcXni6ht4IgPv1Fr0XbsVB9mGUckuBIlhLOxLPwJFJrqUHyz1\r\noV5ktfybEGfm/NWNRbVhWI1h0fx28VJBje28KGX4EKY3MdbE/RC2TwxMNv9E\r\nT59R1/7SMZRZt6raIfUlo+FqVZSmUZggwuM=\r\n=YJKy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3c1ee7333cad68ece747437d4bab1a737d6ea96f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a6e1c0702.0","@material/base":"15.0.0-canary.a6e1c0702.0","@material/shape":"15.0.0-canary.a6e1c0702.0","@material/theme":"15.0.0-canary.a6e1c0702.0","@material/ripple":"15.0.0-canary.a6e1c0702.0","@material/animation":"15.0.0-canary.a6e1c0702.0","@material/elevation":"15.0.0-canary.a6e1c0702.0","@material/typography":"15.0.0-canary.a6e1c0702.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a6e1c0702.0_1668446880256_0.007691726909254681","host":"s3://npm-registry-packages"}},"15.0.0-canary.b6f8a06de.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.b6f8a06de.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.b6f8a06de.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9d2fdd8776e9868d4bd886e885cbc5416cea9df5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.b6f8a06de.0.tgz","fileCount":44,"integrity":"sha512-dA6h/9nkyp1nzIZ1YT6R3EYHNQ0IzhwfwNAgN3PmtC/+z8rr+8e8S6Som/sXVXt/C7F0jJT6Fr+8GM/4Wb/gXg==","signatures":[{"sig":"MEUCIQD6MRihTDi8FpGOJ3iE3wTqm2BXzTlZ+rH4FbWKNV1cbgIgQKdpwvqTbqBoUb1k12KN5c3/vvjkqXnbOVGZTQxUO8M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjc1v2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmre+Q/+OZzTNKTUlEod8e0S4j7AOhb8e8dmu6h2ZTcqfSDxzqKVmI3Y\r\nOSkKRxYsVcGDM/733ck/K4lIja3lCUi1e5KLcKdDza9maItEeVyiXdxDd5Zm\r\nBht4E6SkhWsWcZr1BX7oh9ElVAu5lcR6BzESJSj5Ucp+q4TwLNZdy4EqzJ7K\r\nfjEwoRz4GkckIqB+hA4STvqNbPmjwawpIn8hV/H3X4FiE1QsTAH3CrgaGCz/\r\n0eFdDYgUjFgwx7+npaF1c0g6kjpRG9VWKzjsydNDdV2bCVSjGmuTlXja11GP\r\nXWGffflinuzMTKCJagPAbSXiUnvmFAz6r6P0NYt3dWVaFFPO0I2pQNrfUPCc\r\ncCNIek1IxwG9EyO7wqPpCZuUgBOuA/inXqvrYHiNA94gPiN8pkKacZ7ZFdVr\r\ndCm6X+wFd/4qZJq3z9guhVNzLo7dTkXX3LjpyWYxqvoP7oND7NR14sFwQYXg\r\nllsqVNzXXHN5MHVnfqMpw13nVf2dyIC79HN08rZxJW+Y18JiNQwVr7MOQuRo\r\nyqZGGOyfpBZ4hGlLo+ilvjSsK9ouhjKTmpilpW8KPkbJwtKMKMM3vp35aDp0\r\nJDk3Qh3b2EZcNUpdHC8kvgwG5DqH4LrzQuD9mTJBvcx5E+Ub3y0doE6hz9Ds\r\n3c/bsVu+kGAD2xa1HUFCldsOhBmSe+Hml1k=\r\n=aJUw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"92681882b16f14e6a94df4b1ac983fa86e242640","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.b6f8a06de.0","@material/base":"15.0.0-canary.b6f8a06de.0","@material/shape":"15.0.0-canary.b6f8a06de.0","@material/theme":"15.0.0-canary.b6f8a06de.0","@material/ripple":"15.0.0-canary.b6f8a06de.0","@material/animation":"15.0.0-canary.b6f8a06de.0","@material/elevation":"15.0.0-canary.b6f8a06de.0","@material/typography":"15.0.0-canary.b6f8a06de.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.b6f8a06de.0_1668504565873_0.7721639635660591","host":"s3://npm-registry-packages"}},"15.0.0-canary.0163f3ba5.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.0163f3ba5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.0163f3ba5.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b9356bc3148c75215dc5caab7d0b728f7915af1f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.0163f3ba5.0.tgz","fileCount":44,"integrity":"sha512-+Eg+J2EXhZoxIbbAoRTEd0giyFJqWikI8REQgrZZDxK9JYxDylJoKkdQ4IEJHEd08r/RKsSVq31+cpXPTFSXmA==","signatures":[{"sig":"MEYCIQDis0XuyCpQBK/MZ5RhIYCSYaX229vaS2g5CjuCJO7ryQIhAJ321HHy3pk5GbSaBjx/I0dWfnEAPX477alUHb0WX0u4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjc9RdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmplOg/8DDr6GIwkso4zXcBinLNkp4IrojI3oF2fceOtF0kj6u8bHwtK\r\nL0V+M+axKYZh3oHzpcOjZ2BLoLQZMzqJDY7UA8lzM6t8Vuu74Xl2y94aSf9F\r\nOGL8MlCA5xtM9R6VFbHbd5N5X0XHqSrrXXd9PyfgS9bX0EUlUd9W/WxHAZur\r\nHaqLuD3YMQ6jzBO1VVi3Kk/vgCtfSUI9jjvC/FR9h7Z2sqwAeBS6VXPy8Kms\r\nT2xssQqO6KEMXFIHtRlRtHuq7CWVDQcN/3KtMXFLBLRUYUnlBxnw+r2gV+oI\r\nDYBH613mecsp0pCY4RCvYxtkCOKks1Tm2/OLnTzhuvj9OnZPXb5frLHe3Ody\r\n3kNQcbcxm3K25EDF58i7e6jama1fdmfsDxV+THkteqnGq86J8mrt/ix/9oI1\r\ntFvQjEsHfIiILX6XYgRZ0BnGzdpgwMLD17OtcbUEt8g2zilTS0Az/glc/zRx\r\n1afAaJDD4XvM89be59nE9HT0qIrsQO2EVKWQawfsuVUrOFkMEO+8sQwclVTW\r\nFXWVy2lUXEPKfUTaXOa+XdJhQVkVsrzq3mxyV2U9dzC+4lsMTgvG11P4TZ1Z\r\nrbUm04QfKsMmzoAfQQPSHYLSIzxZP1NX+q9N2ulLkiyxpLmTNdyIeTzMP5wd\r\nm6Y8w7drb20An3VRBenMQdp0FjDInPkLS/A=\r\n=xX+6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4198cde77ba33a68c74eb5e814d92df422f464c8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.0163f3ba5.0","@material/base":"15.0.0-canary.0163f3ba5.0","@material/shape":"15.0.0-canary.0163f3ba5.0","@material/theme":"15.0.0-canary.0163f3ba5.0","@material/ripple":"15.0.0-canary.0163f3ba5.0","@material/animation":"15.0.0-canary.0163f3ba5.0","@material/elevation":"15.0.0-canary.0163f3ba5.0","@material/typography":"15.0.0-canary.0163f3ba5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.0163f3ba5.0_1668535388966_0.7380401495551692","host":"s3://npm-registry-packages"}},"15.0.0-canary.66c5cbb94.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.66c5cbb94.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.66c5cbb94.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f7d50703e24c6314439ac719b3d91fa110f04b9b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.66c5cbb94.0.tgz","fileCount":44,"integrity":"sha512-GYCwyYsrPwzPai8MMNqhIqoM9V5htTcGbTqXgLtV7p3g9CiAWW9xw87drE42K4vWX0sWwf0sWB7OifV7WBeBhQ==","signatures":[{"sig":"MEUCIGiTdaUpleGtGuOrfIpPXtlhyqvu00CYMeNqgfOLSwCqAiEArcYahNsPhdNZEoFMl4dbFqp6GtR26ABJGJY1o+gUHGo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjc+j9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoD9A//SIj6+pj/m0Y6cp/Owjs2bfgED1KbhMfgSf9nMKqCiFj7mFgt\r\n+8EkeoQDLoT+FD3BaennNJRV+JuGlTxbO5AZ58x8wE5Iegi9b7aK2baVgiIw\r\nRdiECJw/7ESsU/UdYgx7QoVgcNEn8hbK9My0Fx9KkQmIPag+spGDy/nr+CNO\r\n2Vvj8ZlDY4SZ00w7kU4vpbd3VP4EKnol2LuUIxcYhKLsIZf/jph8uVunNaB5\r\n5wuIMvS2Hy/7+dRNQlnKnVmEHhTgTm22bG7tsiUIvVgBP9KH58+vkighyT/G\r\nDdOMRTV6rWtJvaT3PJ0/tOB+jTg3iIVn3yHKOsgS2XtCY4KHXeXBidsryBsL\r\nHZN0lVi8AxlKpuyY/aL7wqiPvlVL++MyIp1vzyuVgMyWTpNuxUFrVKgHuE/n\r\nQ4szuJ3Oi9l+n7WW4a/dn92K4zu1BKKB8YAufD+BH8ICGzWyU2kJtorW7Yz4\r\nO4ju01dXS2xhoRTV7sUHITpGEqGArIIhG3eutl3W4GIaZRQgajs7rqWmdaiW\r\nDfjqbGAOYNBJA5Y1IdoE5h1Oun7LbUQDBDBwN3544rs9bCDtgJ+QfQuURdTt\r\nCBLlh8wm5lrAV1wodz8hMYHZaveOLzuZ9bB6592qlWwDsyXNDoclVFqfDOQE\r\nF/iLozpYoDh0dxlNv4yRNvlqlG2JbX5Tm4M=\r\n=aZ39\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5d01716a4e4556657b2c4ebb469b826660673327","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.66c5cbb94.0","@material/base":"15.0.0-canary.66c5cbb94.0","@material/shape":"15.0.0-canary.66c5cbb94.0","@material/theme":"15.0.0-canary.66c5cbb94.0","@material/ripple":"15.0.0-canary.66c5cbb94.0","@material/animation":"15.0.0-canary.66c5cbb94.0","@material/elevation":"15.0.0-canary.66c5cbb94.0","@material/typography":"15.0.0-canary.66c5cbb94.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.66c5cbb94.0_1668540669498_0.008602314666090738","host":"s3://npm-registry-packages"}},"15.0.0-canary.b01136063.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.b01136063.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.b01136063.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"228eda7cd0468510faad7e47c5490e573a6a5a62","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.b01136063.0.tgz","fileCount":44,"integrity":"sha512-Z3pD9pcGA4qY144Wh8YN3BbRClsJdJ9HjwaoovIKQ6nOt7/Rc4TscXalnFUxUhf2s9R6oa/PkaVs68e8V05PGA==","signatures":[{"sig":"MEUCIB3j8mh2NbNyt2P1/F/s6mzifJCf3Ty1eVeM1xEKKDzXAiEA0kIjyko57kr6aM054oMUgp4U4SeiorAZoLsCgwb4C7g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdCv1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo14A/9HqvbU6o1zo4FORyLQPvTotD6odjFuSt5g2zLi5Dwyb5PpKa1\r\nsXT5wfT8ZvEXV4msU8tqwjVdjDqXVov8lxDIRKYJ5ivDoo1/TmlkhBDbojnK\r\ny1uLTBC6lkkpu3unTXlEltr8LYiu0GuvkhaiIEgdbhIZjigknaC/AdvnAVtO\r\n6NWSSWD861E0xgkGbuQWRNry8kwUJazWn+iVRbxFNOE9DC6LfKh9ovDFW4gh\r\nA40W1N6NM/tmb5avIOCHUH+jFTPzjKXB59H/VcNOjkawmp4RbjUfAQkfIdKL\r\n8KebigrMhbM+Qe++59AmOZ+YD9zw7owqbwJ0Q0hoJKWjfvrzfyZfgYEpxQiv\r\nHCxc93EWvV0xv983szfTWF++eIj55JaCUALe+tcNmdcpHsAEU0Pz39BLTEyM\r\neYUc+F3BQfsi267KEDmA5YhJZTKiG4jxrvsOFuUvLvC5pUv5jHi8JyRabrn2\r\nzh/ZA7mf334zZ1wYW2DJ/BUy5NYbNdDfS9gkdn0F7lmeI0cQMsKSt21sKo96\r\n5OLruLxdprVlAxt69TxBzJzAFp+a2vY2QB6v+BYaGKrezZ07Yvr9yUrnFiL/\r\nzF1S+cFY5OGtUQB/WDi0o1TtJQMsK55fhBoN97rrO+27W+LNML248OdEElOT\r\nvd+lQcpT4Y5rX6yPwrT9TULwax/cNcXwiMk=\r\n=X6kk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"125921cea459cbed7dbe3e1c938761a0cc03a263","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.b01136063.0","@material/base":"15.0.0-canary.b01136063.0","@material/shape":"15.0.0-canary.b01136063.0","@material/theme":"15.0.0-canary.b01136063.0","@material/ripple":"15.0.0-canary.b01136063.0","@material/animation":"15.0.0-canary.b01136063.0","@material/elevation":"15.0.0-canary.b01136063.0","@material/typography":"15.0.0-canary.b01136063.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.b01136063.0_1668557813082_0.12618058655869913","host":"s3://npm-registry-packages"}},"15.0.0-canary.01da0cabb.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.01da0cabb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.01da0cabb.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4904861b9f198974e211dd287d8a9a0054975aa1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.01da0cabb.0.tgz","fileCount":44,"integrity":"sha512-3ObMNMEG23NJAweUoJjqvyLfX21HXyEIAPlFL+VBxbGrYWe9IGLuzvUx0I4tJ0rSYfy3cXiGoCBmeIxNhlRRdA==","signatures":[{"sig":"MEUCIQDs8+UyW29ootuqHYHKQcCI6/nnVsyouyY6MMgWMzWpegIgQX2tTrR1sb/VS0qqLY7Io1CPG/5lVSMPS+TC1V3NIxA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdKnoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqvwhAAmhn2haeuwXfSHW0vraHRobKRjo9bxmgA/m4j1VWWRxDbHaz3\r\nsUNM0yIBHJ1ArX+A9vitqKAI4pWdc4m8HGeltFO8TpxVLArraTfC8H2nyAVN\r\nPO1I53RBM6uHvY6sx0VKvdH/qd+LpRicskvUtWijdLFD5swaa7nki9W6VWjn\r\nGiEU5gKbp9pFKBXpQF1izP4bzz8e5kzBV64cSjJvflmhD+DtYcEd9HaZYL8U\r\nkxAQAkqzFB6qESbAZ7OJkUQGJeEYm4MpWrnyV2amhfvm/+0rN5qW5+/uZZw/\r\nBLt02gQ+1M8pMTJeW4+E8b0odI6EgiYDlPfj4IUry8EE89wkRUyDFbf8dEB/\r\nWNCCQbDoI6paLwi0orC0M8Ss8UzCqccwmqckjKUJIwELWwyJJsoY76zrowpP\r\nSzcnxydheZ5HlcCaAPWP8sLNOscC2/ap5Ly4oCyXCGKpImwMrjvk1p8DPAN3\r\ns2xYZQgEEltM2PkwIFJx+YVGMPqausI5CAz1IaygbiS7Cxxe/NkrqGWSOyk1\r\npm3is6aPxLkcuCtVHL5rCAc19w7H09ReA7AN4oAoRsMu5YTx0sIiiaWiU0Qk\r\ngPpLtaXNDPWWu64vHEtVrjdf+TjECBBv/LhsB1tQr8i5wd/FRyAjkZ36YuDu\r\nPoZAcX0VaBmmc3KVzSYQC4IRupcpAtjnuDw=\r\n=SgFI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"63a5ccdac9b23a6c70c2bc776e20ab703cd1dbfc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.01da0cabb.0","@material/base":"15.0.0-canary.01da0cabb.0","@material/shape":"15.0.0-canary.01da0cabb.0","@material/theme":"15.0.0-canary.01da0cabb.0","@material/ripple":"15.0.0-canary.01da0cabb.0","@material/animation":"15.0.0-canary.01da0cabb.0","@material/elevation":"15.0.0-canary.01da0cabb.0","@material/typography":"15.0.0-canary.01da0cabb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.01da0cabb.0_1668590055960_0.9667213145474474","host":"s3://npm-registry-packages"}},"15.0.0-canary.4ac393164.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.4ac393164.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.4ac393164.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9001f660e388ee11cad43502d5d32b59dc6dc197","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.4ac393164.0.tgz","fileCount":44,"integrity":"sha512-G00VesVpDbIxdnHEzWt4CjZDKANczjq60dqd5MfSgvPOhb2CSN1ZO2J5ZmairEL5P60efyRj1z9To2P0cLHSjg==","signatures":[{"sig":"MEUCIH0/XtsSjJyq35Tk9af72qBtD7NIKa8cGgMAy0v/2Ex2AiEA/DZVRPNUv2ZCDSDKQyayGD7Uf7K4Ju0MSStreImxHVw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdQzkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp+tA//bbsOXP9eU4OtOBcV9j9lcLYWL+VMxPkLvtDRB+hegbhJP6st\r\nd1UxC51sOXV22SfKgFRhEmqKgSemBTvRvuAA7XFx/bxC5womspkWAX29q/GX\r\nudmpZf4sNenDk+l3VPVEpsK1V8EJY7wL/hdF9caJHbzvsaObJ8sthKBGGcdg\r\nM6M9CpUafmRGUmyexGE9yKe7fT5HEBotC/VR7tp6Lw7BaSqkld5cAch+LPSM\r\nTJhsdI2Ru+KFFKi5o4oT8Z4oYMXq//DFbR2DfPc8U+u0i8gHxEcAztOLTx95\r\n4u9EPGbPVG8Tq5S2JdZtfxpAXvsJgKTG6U0OLkg68Vx2dDJgBRZqLLX85Wb9\r\nchK0vUs8c/HtoV4uUU+5VPKVuu6pePeZWNhHS+C3xo2HgSgBQ9MYOhuncacG\r\nP0u7K3E8TcgsOXl59OhKG5ez7dAkpBR4EC9W799VovOGHJPjsv1gifjxSpV/\r\nO1/O2kLvZ/XhFyC6iOe3GQagSmX4x54STiyjJjrBanefjxvazehXryvDjyrg\r\nts53BVPbWCX34eHS0qyb0JnADT0NUVi+jwtx5zoPDj1vXeIxFsYK+fvylbfe\r\nHkizaK9fF+AnZruxbXR67sRgMXrPfrzFwZJJ84M9l0hDuE4Ocrl+fFdToOml\r\nldoOkg22mA2kNYO7EeNnk/tCxGNesXyihs8=\r\n=Dvmf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f14d3444d266ac4c6c92142c377275be3fbc5d0a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.4ac393164.0","@material/base":"15.0.0-canary.4ac393164.0","@material/shape":"15.0.0-canary.4ac393164.0","@material/theme":"15.0.0-canary.4ac393164.0","@material/ripple":"15.0.0-canary.4ac393164.0","@material/animation":"15.0.0-canary.4ac393164.0","@material/elevation":"15.0.0-canary.4ac393164.0","@material/typography":"15.0.0-canary.4ac393164.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.4ac393164.0_1668615395828_0.3355282687437655","host":"s3://npm-registry-packages"}},"15.0.0-canary.6048fb563.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.6048fb563.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.6048fb563.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d3cdc3b345a9510f9058e6be978b0fcc594cf670","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.6048fb563.0.tgz","fileCount":44,"integrity":"sha512-cnNdJvx9qaUm7YWzjhmM5VIl4dZs9sk4hjlRq7lngHshdO3q8j2VJGIXtKs6Di78wTvnGtYIU4hKAonLr3p3JA==","signatures":[{"sig":"MEQCIBe5/AzOeNedIAlCelVmrY2t7m76QN3qSU1xp2wrmSWkAiBrAQmaoJe50csPfOMrd9X9mYdPaW9JYw0wqZwswXRhjw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdQ1fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpdHw/9F7nOrGikT75cL8aoGlWhkdbz1MJJMktmftwLXETbkqXiRmu0\r\nba3hCxHhuCGI/gQ3Px1M5YdW1sKzu2weCUBy8O2Vn3ztPcgXco8TrCOai7n/\r\nELnXp4kcCiIukCj98iXSzQTC56cef/VZ7aUVnKApV3AvkHrODqnIJtspNWEU\r\n4lGgKwJ5UFnt0V94eTnLpY73vg8o1xGX+sdXVKeE24Z3ygLSdyPx8rvoxv0f\r\nqvIBD91P7xg8lFVoVFY9C19UkKAp8/ae60wX4ck6DonUZAjtZMSZMWPz/JlV\r\nBqpB3H1U2Ua2+OrG5VdG2RmADAtyqXmbUWeUQHUM0LHawW/FkaaQ2JtypXUr\r\n/M8wmmLdPsFTmF+alnYHSh3opYIXJcBWzO3XIxrtd9y+fLvvSEx5Hj+rheym\r\n8fzyfdlB5NP/qPy9NSIz7BOOtRZnPvJeq/NmFCCf5krd1xQpWPvpDYV6nJjb\r\n5/NHu4F1+qgPl53AYJQ+77gXITxGPl+VQchNuoMtP+eyQG74HVcCwFXvzfLJ\r\n3uarg+rZM8jVK7KNjL7Ljz3t1DE9gPL8jbxxdu58A36xLEXU7U9RoyLLV8ko\r\nQ3PIJb9ca1nUO05E0fJ2ySZ0uQ/aVtMVAEFZeuofIdHY2Ebmt1xl9iO2xxAn\r\nCdLc6g3OzfrqzgMpt/dS54YMmMwwQohWALA=\r\n=Xf2R\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"590020431978794ff2128a91f19756dff9dbc37b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.6048fb563.0","@material/base":"15.0.0-canary.6048fb563.0","@material/shape":"15.0.0-canary.6048fb563.0","@material/theme":"15.0.0-canary.6048fb563.0","@material/ripple":"15.0.0-canary.6048fb563.0","@material/animation":"15.0.0-canary.6048fb563.0","@material/elevation":"15.0.0-canary.6048fb563.0","@material/typography":"15.0.0-canary.6048fb563.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.6048fb563.0_1668615519553_0.09106027933748195","host":"s3://npm-registry-packages"}},"15.0.0-canary.f7f56fff7.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.f7f56fff7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.f7f56fff7.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4ff119b58ab3a8282d58f495e97615aeb2ef487b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.f7f56fff7.0.tgz","fileCount":44,"integrity":"sha512-tWN+1WlAdCK7QLVG5EnI6LdtbQhLPTCK6bfb7i2waSBrN7QtCvh0QT9GTVVWt8fOwSdQhyNXoUFEiLJrGYzw1Q==","signatures":[{"sig":"MEUCIQCzsa/bf1Fa9XI+D55U3kfShbAIivNefFcrD+/D1LjpRQIgQg2n8U3XHytY8GdWDq1BDuiWwXe+GMVD/nLK9WUPUAc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdUCLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQng//XGSyWa/5z2Fad0pOLkJEP1H/f+QmN69e+2g4JWsDgSKm0jA+\r\nGZ9+Qw6JFFYjstbpggXy5Yhc/54mx/CDrt8uQD9hKKjgywdpELQ+eTXE6nYB\r\nhxZgo1X9iy+N9PiHxYkGr2h7DuJgE2APLsVBCQiYS7PoXYvg0UslkOkxcgoJ\r\nJFijlg2WU7+LSEmunOBNFvJWl+XdKKhCl+0Y2GtvGJ/68nFtqDX+a3JrVqXA\r\nkzT6hQqQqdD8WyIxoKfPutfgkKb+VZTFF2qLy86PP19BTdBRAiw2gD+E1n8u\r\nwY+BH7t44TlrkEvqaT4u2/21XwzgqP5X4IXZui18JF2ft05tMSLa5tKN8kog\r\nCea3F+JI06jtOxC4+y0H2tDHcLzFn1kqReagUWDFzHcD49vIKXNTShLE9oyy\r\ntZ1Opl3TtpRA2d6Iuc7vnvMVtDrpn7iceEqS2XIGVoarRE9toy9D1rJ0l77X\r\niJp78hY7lx3lpcxeeTqIwFVZEQqg2x3YNAY5lxNFri2u9hArcVsXwGd4wTpZ\r\nc7CqFnt9KWvCByGZV1FmtBigtWdkC/vW2yOAqGI9E2ZowGoTKxL1NC+DW1aj\r\n6vgpwT15WUBRqOE+bqVt1t0PJ8mwJzGTRsdsROObe/BM3Q2FRuZyuoivhPT2\r\npxgYTbm0Y5amCmfcMgdAmruOOoFTvJUAdB4=\r\n=DxM5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bc90613e754d04f738197ec3f3f4602e9b362d8d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.f7f56fff7.0","@material/base":"15.0.0-canary.f7f56fff7.0","@material/shape":"15.0.0-canary.f7f56fff7.0","@material/theme":"15.0.0-canary.f7f56fff7.0","@material/ripple":"15.0.0-canary.f7f56fff7.0","@material/animation":"15.0.0-canary.f7f56fff7.0","@material/elevation":"15.0.0-canary.f7f56fff7.0","@material/typography":"15.0.0-canary.f7f56fff7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.f7f56fff7.0_1668628619613_0.6721875900987453","host":"s3://npm-registry-packages"}},"15.0.0-canary.7c73f6134.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.7c73f6134.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.7c73f6134.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4584d3aae5205908ff71882516bb053af7c082c3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.7c73f6134.0.tgz","fileCount":44,"integrity":"sha512-fFpXVl6aRieX2BqbzsoidqRtSGQtdOLP8M+1zbWs1t457wEII+YQ/HZQB0ZtMOjFIlG3f3Jmm1pE1o3R8KLVIg==","signatures":[{"sig":"MEQCIHaMvGVCB3Cf5yI5tfPkWygRqJoACL7pEZSwckv8AIDyAiBaWzR73A3kPMOwcHPfq3E6SR+tX+GcH4PX2DzPooy4MA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdUFWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQUw//d29mRPU76u0Z5Xu34R86+cavAWGvtZEiE7V2ryprvlJdNMFk\r\nzhFR00M3i7uttZvybNWIRCK7jamncTfnh5cSyUKgx8dBd6GxCdolcMoBntIU\r\nYk83C9xdW0ZhFKQmXsf9Pr9KQRubHeAK+EH0g4gCA5kTkVlAUclMPojJknyI\r\nBA40NINhjUVn3N+Luzexmy1XSrmWkI8OzPKSnK1ap1hb0Hta+oy+ZRoVZiCW\r\nUpnNy7eYBJ99u21NuqlxztZBe+oA3OyS++nYA68yP4IfridzcX/QzZQyzRKX\r\ncq2w0iM7WWOoBPeCrMEeriyDotucwDQugKV4B4/QXtN1LB9oxYiEkx7AzCBk\r\nrXkQ0qmXxD/4IYZcXbpVXpyxNKeODL8eIUA+r9izGm/51tnc9MCqeTLIpfGH\r\nd6YKJ7jNOqpsDOGe/w+NIjKZaKMIWbHWSRfinFt96SqrxUwYeWG6b+/hjcUf\r\nwM/H4Fo2mW2NwlrmsDFvBYXH6m+2mhN3grRp/nXEIiyQeWI7m0QykwW4T4nC\r\nDpGn+0jLuJQK5PfgRRKkeXo+VH+SbZ/Jbi5LTz3Cwn9YTsi3TwNh05G8ZGQ0\r\ndVZ2XYiC7RngdvhzgUeEP6THJBedYTU+Prksa3vGVk9Q14ILYrMiG0+mHmAT\r\nh0IdlJm7ztawggM7ne1kxes/809Yy3qutmk=\r\n=APGe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"14f53e565ed77defe907254a486b9ecce4b45146","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.7c73f6134.0","@material/base":"15.0.0-canary.7c73f6134.0","@material/shape":"15.0.0-canary.7c73f6134.0","@material/theme":"15.0.0-canary.7c73f6134.0","@material/ripple":"15.0.0-canary.7c73f6134.0","@material/animation":"15.0.0-canary.7c73f6134.0","@material/elevation":"15.0.0-canary.7c73f6134.0","@material/typography":"15.0.0-canary.7c73f6134.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.7c73f6134.0_1668628821779_0.08549131678409094","host":"s3://npm-registry-packages"}},"15.0.0-canary.f1e037150.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.f1e037150.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.f1e037150.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ac7b4517693eb00b33d37d478d64189f034007c7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.f1e037150.0.tgz","fileCount":44,"integrity":"sha512-kogwfengKQT/VWaAZBUA1Vq/aSElcWOnnk3gfr0gCLCM/lBR+JDXCFVCEBVPetVC+2bvI1oBH5BablGPCjtG9Q==","signatures":[{"sig":"MEUCIQCtnOiGG9MkpaZ53lr+ulxBBBGQLRQRsCJ07PbP9uia9QIgCG+4rotmsw2/NFv/2okICWGPZicjQBUSviNuZlEa96Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdULAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoi5Q/9HZUO9gU/9p/420m3fcSU4Po0hNLkSiPhgtnNPGtpB8v6u0JS\r\n7QfpKZwQ2ROXUZLwfBMyJk7ryX9A9pWH9Yqf6vgy2KPyR9xWOvxZYuxbq5sv\r\n+4nq5f0F534obi/IFNF5kTi3hALguHCVWGQd7X4I8lVsv5bUHjJou3JJ72DQ\r\n86SGiZkLvZALjjmIbka3ItkfAHvw/doMarmRBDO8REsY4S3eMEUbK3racnTK\r\nQsY7hZIEZK/MidyIk/0WsoN8cXaqj1x/3y38qRdFiFt03fJjRJpzyzVlJcvJ\r\nDJTHIYkArouaS1L9JackqWfGtimAkdY86Qiz85mmpUHE5Ra9QKz0ZQuuK6Hq\r\nOr3AVbO9MnsRLwQSXlXaW4p+j/Cm/gRvMvk9iqpaGDnIlkpJyZ1GA1qYbcxT\r\nsrVig2fSGYPTHS8JHVVremYS/v8RRI1mHqHSl5UstptU5tRLumCi9x5h1U+E\r\nRIEhDFhBN211HYBE7+4EpJ3s84GyeRgVHVH+7Y81Xz8PjLtabpHB7PcmP4Z2\r\n6vYARZCeSOtULoxpQJMj7nb4GVm5s2Q0MtuIgK9eEV/i7pOvnGdfPsv4zKTv\r\nf521QtOE3Fl6Wc3SkcRgf6AhzAC/IaUNzle9v0aqM+kg6avYuUZpp36HzWkD\r\nGvXY10WKEpjPQjpl93IcYpMh9fKO6PPsMmU=\r\n=WmjW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a639195febefa28bbed957ef46942b3da6a4cecb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.f1e037150.0","@material/base":"15.0.0-canary.f1e037150.0","@material/shape":"15.0.0-canary.f1e037150.0","@material/theme":"15.0.0-canary.f1e037150.0","@material/ripple":"15.0.0-canary.f1e037150.0","@material/animation":"15.0.0-canary.f1e037150.0","@material/elevation":"15.0.0-canary.f1e037150.0","@material/typography":"15.0.0-canary.f1e037150.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.f1e037150.0_1668629184551_0.13890606032477515","host":"s3://npm-registry-packages"}},"15.0.0-canary.40b18d043.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.40b18d043.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.40b18d043.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"635efea0bfa08ce019f1ce15ed20ed5bc751bd69","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.40b18d043.0.tgz","fileCount":44,"integrity":"sha512-pxWOgnXc+vW3LFFdy9gABM85hBAFERG5QneDcmw7fJ3ArN0SYo4EeAvJhB/TeGCb3ExXnElhA4DMiyhkeORZ4A==","signatures":[{"sig":"MEYCIQC2AVfaqmGlfi0CTkL3pB/LvLrXeVhSRnf4yDUChXJ6RwIhANqfVgf8Usmc7DRuWD27ejJSOgpvNvHl8XWdVT2uvrT+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdWtmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqWcA//TkeoxcjsnFXOyfwT7GWMN4/1spjf41w77l+cH2LBu2nmQml4\r\nRo4vtDjQfxQVkRxlC5Hh0uTvpN1pIaGRFIrZjHLGH6DMVXMueWU6WrdpAKjP\r\n0ouPgQSwW1Mjeoydu85pybmwBvLnGG5Rj+w0BSw2qWLk0RD7Gt+nM5XeEiyw\r\nIxTyd4TAnUUswl//v5q8tFZnxc660fleLaZc7+eSC9P4MZIymX+ZW21M//Do\r\n1xGbhmLWNaSkhmC0RS5Kdj74wiS+bUWUbUzYCreuNSVMF7ZhhzCUtEwWnGEK\r\nuorESepGJj4sGQgFqYUfICv33VrN7S8xBFM2esI54bqpqbMPP5ld36NkJUxB\r\nh/njfeMR+67QyjVzR72XrZshQvSh23L9/OVKmv45R8BZ7SJHes3KbwQmDyT1\r\nOGxtED/SrM25gvudfbqHdOUQRt+XYRp1oMou2qtTOht6QfehdMyDhOeF68ad\r\noutUP6fMthzcH77z4wxHAgmUQmxV9nH5PZSqDD/573n2D48qHPjVc+V03dp+\r\ncWgztt+j6wOs3MTRXYXEwMh75eVbiwVKqTBW1eMCZ4JjaPpFXFl+jfKMUwp2\r\n0vt1rlKcWciFX1ROT2ppDf0LpwIva4sAhLdtFexcQn5pFfVG3D6mO2LQkYoq\r\npwUy/fB4Mrc4vJvPZUCJjtscMNK9JjT/Q7Y=\r\n=Tj1/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9ccfc97518c89cfcc2b5e776dafe81024d137f31","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.40b18d043.0","@material/base":"15.0.0-canary.40b18d043.0","@material/shape":"15.0.0-canary.40b18d043.0","@material/theme":"15.0.0-canary.40b18d043.0","@material/ripple":"15.0.0-canary.40b18d043.0","@material/animation":"15.0.0-canary.40b18d043.0","@material/elevation":"15.0.0-canary.40b18d043.0","@material/typography":"15.0.0-canary.40b18d043.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.40b18d043.0_1668639589788_0.3628131791694047","host":"s3://npm-registry-packages"}},"15.0.0-canary.86bde5c06.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.86bde5c06.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.86bde5c06.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"97756280cfed977b382acb9be2b984ff27940b9c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.86bde5c06.0.tgz","fileCount":44,"integrity":"sha512-l8mbyt/71l+/uFlWELYlfWO6Wz2hEEw7de+N+0X7KpaXkNFMgaDDMIXZvUfGFtp9qRJ3HV1VKF9c6QgBsFa1HA==","signatures":[{"sig":"MEUCIQD+/qekGHMdYVGwB3ediX1PsfuUPg/k3eE8EUiWQs6AKwIgB21yRXGS66u3v9TTMQm7BsRkyVDtzf/SLNEDrco36wE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdW3GACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp3OQ/9Fpfacvx3fEAA7RvMfdDt0w8YLeRnGjUznAGjt7X1WBwE7wu5\r\nHf9hjh1icBJkQrvMo39vyPZNkdrL5N29AfPF9hrQ+j8DI045EeN0OLElGH5X\r\nTAeyz33u0TETkWDVhQXCFJDUnINLExtSdYcoCHrp+UbO7BBFKnErkqNlZCEL\r\nfR4XaAD19Vp2sdAIQi8QJnL+AeiR/Apjds4EYRpiPOXqBvv3T3+RLjG9ehyv\r\nheuLEIF2s/GiwuhhnkKBDh2IgbtoxGrNLlnwvLHcVMmVdAvwSnyroASR9+3H\r\nxo0pIpmvkpEhLBlN4cab2t0WCvagw/9s8lLhnXhOG1s9zHeWpz4PQyt1m0EQ\r\nVeSIr0zgbzFkeGGqxY519o9azXT6zpZ3hOxidR5VyGja05McSBsteizgI//j\r\nuFs67Y7QIfKk8soyGnK87wMJ9PWAViYawhrIOVAqO6gsISvn8QhNLV64m8NY\r\nbFEbsazc4sltHD7Ns49W3Q3Xdcf7SNJ/nvPxxMSe2gCrxiTEy49xiymIlNk2\r\nHlIf5ULxwpqRRhZgassTPyEweHOmORJOgUggKx6Vnd//fqufaKYmeLS59qFJ\r\nVl4TQt/pHPzv3x5tMIu4X3FZTxZPO/Ljn0otPVsjppDu22gAjPZaSjP6tbKm\r\ny9gfNLg7Iua2p0+P45CwXFmHOl1RgeLn/NU=\r\n=squG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b9cd39d4936a1961536e39eb1df855c5164d5840","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.86bde5c06.0","@material/base":"15.0.0-canary.86bde5c06.0","@material/shape":"15.0.0-canary.86bde5c06.0","@material/theme":"15.0.0-canary.86bde5c06.0","@material/ripple":"15.0.0-canary.86bde5c06.0","@material/animation":"15.0.0-canary.86bde5c06.0","@material/elevation":"15.0.0-canary.86bde5c06.0","@material/typography":"15.0.0-canary.86bde5c06.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.86bde5c06.0_1668640198574_0.4604376563678738","host":"s3://npm-registry-packages"}},"15.0.0-canary.bb7751002.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.bb7751002.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.bb7751002.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a5f36a0dd146f567d30f38c16f24a0e1ebcdacd6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.bb7751002.0.tgz","fileCount":44,"integrity":"sha512-f3lfs1KpQUEAfY2tDdQBVeJSx4EviCsOYuB4WqFp2BNrWIRz3hM1Ueq3qdiZ/3mpfMdS1W9aPXFZu+EiMaJS0g==","signatures":[{"sig":"MEUCIQCmVnpcjUqWKAsVrqDASDWjDcn96Bk5VrOBgPnia2wRnwIgf14Af7gXdeLSEyW8CiWSpmQ1ocgWJC+KS8l+i8YrlkY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdXnHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrJdQ//VI5XOknNibATV4OQEBGXFME/ERU8IVnokxxgMVoXORuLEDF/\r\nDLhznN76b+8EiQbQcLW0YCwsi3jt9dg5Y/zTIsSMgvRXuxfxrYtwnFhF9emf\r\n4ihVER7WKQNFKGLxzFg4m8YpZebhmaBW7rzx7eXmUOnq4ipegWiECnO31L2T\r\nDjFz+YwgkBxOvRKtA2Jhy30Sor7yMRgqDyN0a/VLQ9E8UAH4/Sc6xkXMn8ml\r\nBDjR5EuNg5W3mqxiNp2iblTgFPfBAi4hmqh2pWdRcIVXyoD50Rl5eIOaNhtJ\r\n9TY/GhU+E0JduEk5vAw6Es1+xCji6TDpg/aGZTgRJgiMgyCUhms11vjkHsH4\r\nexTt/MHlSJmxJbBG/pY9Afan46ITv3a9fp+if8txA6NHTsFiBQ7tzxQ1tiH2\r\nwEgvcNCtutmzzROrzfGMDFjHKe2//hJkLi0OFp/GIAgKNJ90uE7LBe3FftDu\r\ns9Coclfsr8f+80MseCwJCpxMIf5rx2n8pfmt7un7JgLcO5alj8NgzCPWs1uw\r\nWgPISXzxVOfNqLFwHOHXXgy9SHDGzMB6I6wRCdubIDGsygjbsLYIONq1Xu3I\r\nHmj3aNBKPNw9nAoMrg5m5dVAqMasDkElvzcveBlDC/BVUy/VQEaiW47T6WW/\r\nPC1OhK990RiweQb74UVLdU2iCdLRyp+c2lY=\r\n=mDOF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f83cadc3a1330a69930926dacdce7fdf10432f98","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.bb7751002.0","@material/base":"15.0.0-canary.bb7751002.0","@material/shape":"15.0.0-canary.bb7751002.0","@material/theme":"15.0.0-canary.bb7751002.0","@material/ripple":"15.0.0-canary.bb7751002.0","@material/animation":"15.0.0-canary.bb7751002.0","@material/elevation":"15.0.0-canary.bb7751002.0","@material/typography":"15.0.0-canary.bb7751002.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.bb7751002.0_1668643271069_0.8761714884959941","host":"s3://npm-registry-packages"}},"15.0.0-canary.63aca9af6.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.63aca9af6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.63aca9af6.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2ffc02e59e889549da8c49de0dadda3c8a8f3764","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.63aca9af6.0.tgz","fileCount":44,"integrity":"sha512-MdySNUUFJAX4OTXlJ7L0LTjh1wqAsoJ+6Y1NePaLFxhUt4qpOOaPlfq1dfQZAHvXqI5zYNyAdXRTV6O7vIYAWg==","signatures":[{"sig":"MEYCIQC0HbP/XfEXnriF8ArudT/x5RWhv32ih8PVzAXvmcM1QAIhAJnS5quggQbg98NJlqeeUbQn4lnnZ4KXpqgLzaY6A4ni","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdoUfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpntw//VsTjv2ORdEClGrUUti4cXz7yDqNkDG3m93mTtSi3aqOkN2Sb\r\nkutakHvy98E8Pz7VfqQU8HDIL30O5UnRkabRsCI4Uyh9ZoatGf3W2EmMN0pB\r\n1TPnlYkw1aQhvljh07yqXFpeKunKOIwA5wi2i6B7K7zjpTlTp3AxyzvA7sBb\r\nOEdlmKb/bEzV/PQGULM07qD48KH6qJBmr41lEu0DngbqtQFavzLz9GG2w5CR\r\neHj2y8MjT6BLDPkgqtUat+ZnQSUYOZ06FxFi7TdWVpkPcGoBQEZ4UxeNbbyP\r\nvjWaLvm3UFGCyg8+Q/uIRO/cCmzAstu5K3v1jSzIrv14C88Ot+JsBvbN3Q1n\r\n/l1DwMWI3nw/AVzutHvaB8805sTTyfhRm38HE+qGGzh0WITftgRP3N6vaDoF\r\n2+dICVe88sDVj3aASuv6BueYfZyH0wg5B3w1pASju5Qh2oxOlxOLObI30SWR\r\niYuHpSMSExFCbN7vv9w9vi+wiaYmS8i9ZEHQ8e/JfF66ndaoUxnUNKQ7POeM\r\nz3DmC1mEmZmSJWWTmqXrGpZ1ZfAyBbGiTF/4ugYbPoqSpcGdFKcL8eB+iAA0\r\nBS1odkjhYyAIn1zOxs+gweNIj+lNCruaXJl6O/bunqRgTTfl+oUJXncIInIZ\r\n1PxCwjoGQXRb+A1Qu/5iDT8s1JM/e/MYayM=\r\n=5zzv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c2c841973403116b6a405bb9aad3ae8476bc028f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.63aca9af6.0","@material/base":"15.0.0-canary.63aca9af6.0","@material/shape":"15.0.0-canary.63aca9af6.0","@material/theme":"15.0.0-canary.63aca9af6.0","@material/ripple":"15.0.0-canary.63aca9af6.0","@material/animation":"15.0.0-canary.63aca9af6.0","@material/elevation":"15.0.0-canary.63aca9af6.0","@material/typography":"15.0.0-canary.63aca9af6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.63aca9af6.0_1668711710929_0.9183387492027231","host":"s3://npm-registry-packages"}},"15.0.0-canary.56482dc2e.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.56482dc2e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.56482dc2e.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"61ef2f2f7ff15a753acdd383ec2a7073ea8f12ef","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.56482dc2e.0.tgz","fileCount":44,"integrity":"sha512-96J8oEsvkVj+XiJq8fw56W4MD6KksWLVdLsiSKr3bDjA66SqtsDzdyBQf+3TJSue/fr+/Bd2YXmT5kWO08RmmQ==","signatures":[{"sig":"MEQCIClp9hAXIcN59W27Rsl4bTeufVRCmUKPKtOTKZC/WdrbAiAcKwBRhjKYkgW+zvVENv7HMTxnoMp0KT2foiIpXQ84dQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdq3hACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmridQ/+LhWDJKfTuypJNdf9VrgwjA1iRl+StSGxAXBbJlCmeDxii28J\r\nr8ttHCikMDCvBPU4YtCrnObenEOydcuXbi92ps4O7nIGgNbVpec99XecSrVm\r\nw3UG9fCRb66lQkFOCZCtFNI07qTmxCVV3sM9r0SvXlGwAQyWbU1AwxNvu14y\r\nfwAauSycZoUjLZLV4DAC55UnDHeP0Gd8HUJfGwZDtsmPRwcSoAdVnSYzLSWJ\r\n+Er1QQ3qfxiUdnozITS8TqZP6ptHaLiVj2kuWoEBNRiPC1tEjQekGTB8qbhV\r\nNUQWFnZYM0u0vdni8znVxVIATDodaZexWpvdI4xBnG3bM1Dmb+bz31YJFlf6\r\nIIE1/84Ror0mogu/Z5yP+Pju/Zv32Le2e+QTsXjNxuJnXJ5LBG6ytyzPJJV/\r\nw0UFeTErggEr1CPBrkE2wpAWgQLbePUO5xbN+Dv8y/KU2+HmfUBcw9t/HWHy\r\nu7zHMWKQu0UXJ4Mmomrlv5iX74g7dajisDYnvhMda5La4laJK2s6gUX0aaYL\r\nTWaxAYb6wNoL61ngBqSJko4I8j5u+nXM+TClr77aRvvrUXt9oPC/bLF14tR+\r\n3sVufuT+34/ouX4eOwzgg9QwpT5CfBxSoawp2gVHwwgPoeTdRLNps3flfImA\r\nyQEwPpuxk3sf6xTzo8yfSNyHEcva5jz8l3s=\r\n=q1ey\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c65945fd8948c8e5ada035d0f2538dc2ced7a28f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.56482dc2e.0","@material/base":"15.0.0-canary.56482dc2e.0","@material/shape":"15.0.0-canary.56482dc2e.0","@material/theme":"15.0.0-canary.56482dc2e.0","@material/ripple":"15.0.0-canary.56482dc2e.0","@material/animation":"15.0.0-canary.56482dc2e.0","@material/elevation":"15.0.0-canary.56482dc2e.0","@material/typography":"15.0.0-canary.56482dc2e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.56482dc2e.0_1668722145010_0.964952180918466","host":"s3://npm-registry-packages"}},"15.0.0-canary.953e689f3.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.953e689f3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.953e689f3.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ae48909da05ac4a8366ec2eda8cb9a9bcfd234e3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.953e689f3.0.tgz","fileCount":44,"integrity":"sha512-L5ohuTkQLk8nIaS870y4JOF/CPMIB+XmCNTrqCwSUClCPX4hebNkYl6NACXLSVQyOxgcnm6ITqM5wstEdwpq3w==","signatures":[{"sig":"MEUCIQDJsC+4uYyDQPayaBawhfpcfWkS1Kgsl6qoghRvl2g2FQIgKncfGlaInSwqKyT7lUPMBqIJqEuvsnKGqvyhhysR9io=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdrA2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrMew//XVJkQtigvBeWZsUtIFxkV7unXQ+Iysf09zMpew3TahovQ6ut\r\neo4T5d6/LeVVrn6InBvfXnRaRIO4tLhrxc2AFSPR6nd5mzURbdNe571NheF6\r\nxWaltUuX1RAgKUzgsR+IdzfKnDqGTQkFQDHvogLjvk0AuXMBmglKMPojRV/W\r\nrAw9vvst9ZVw8uQbuvIGFULAlbWW+vpvr7/WOOx136Fufu+Ce1qqEVmpQ8+u\r\nT45a1EXo6QaBPfJm40CnIDPGkEOfHlGUCBc0nnXmQV+YQEGBikVN8xia+FnS\r\nEMXwnVldIkfNTB2gkxLm9gGAtIFFyx5p685LPQZyGnfaquAUycwH5vEmc1Tr\r\nhiW5Oix46BwjPtGFWdQHvQdiUpNgZJxX56CklZZjR/bDA++q4VF5E5u9klqH\r\niAK4l6tDCuH2E15J5XVZOVOtAtS3bpGF0jnCAgM64Wsoz8HNC32TUjxl2jjx\r\n0oKTIaqrSkRyKzoMEcz3KGKeReFYHkYwRmFhY1eppFKnzMx7mg1x8fZm18Fc\r\nYFmZoFLwghltNxFsgwYCwwerEWZFu2wmAbXjl0j3anbs7XCWSMCPlkqj2LQ1\r\nq2Khr/GLYbgxByYrq4yaKLJAwa24HU47ACaji8Ux4hivszgIA9lxc3Yr94xw\r\nJyAlyf1rbSoBqfM5RJSCyKwjzDSo9rKM79Q=\r\n=BjHA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9b9adee0b4f10a2d6d77fc10e9291c3aac8be42c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.953e689f3.0","@material/base":"15.0.0-canary.953e689f3.0","@material/shape":"15.0.0-canary.953e689f3.0","@material/theme":"15.0.0-canary.953e689f3.0","@material/ripple":"15.0.0-canary.953e689f3.0","@material/animation":"15.0.0-canary.953e689f3.0","@material/elevation":"15.0.0-canary.953e689f3.0","@material/typography":"15.0.0-canary.953e689f3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.953e689f3.0_1668722742298_0.1529892522612355","host":"s3://npm-registry-packages"}},"15.0.0-canary.b5606a793.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.b5606a793.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.b5606a793.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"009125d06f43b2eddfe1ccc768daf16aeb01d6fc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.b5606a793.0.tgz","fileCount":44,"integrity":"sha512-7l7YwdHjxgjTYfKZp0vttva08O86cie4Vyz+XFUJTnLouo6lB95/PA3v66+BwNSwm3cf8ZdWbvPBruEga0Jjvg==","signatures":[{"sig":"MEUCIHQbwthT7oSCca78D+RJkETG3OSIkurphj6dvz1QLsIYAiEAzI1v0wnqbN/D7fd4NeoW0JmiBo4qmgX3cx0KbUOG940=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjd1zRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpR4hAAigypYT1Ue/zXGs5PJVFyPPuIIND1KHk42KEl5lJEG3s+Kk3Y\r\nTwqAfcOGEYYXJ1leTweNv6R6RHXdEnVnQqdajFuEgqdAunAC+w16wUAmGDnv\r\nHKd+vfPp1cocmjRsV2YIATR17UQkGXx07RgnQVt2Ffwb9d11Hca6pRHJyYIy\r\nnd2OQaJyX6Y7Px4sULPlMa2EHsd/siakD2ILyHDDTb4e8QonnypgHeYK/LNd\r\ndgVeugPdpF+1wADAv7comWRFwurccvlW4+Gu0Z117AN45t0Shi/tJRR/cdrJ\r\ng6rqTk+n2eV0wPRZF0Ukz0YcIN6oegC8tIR3KeYkYauyqRycdssB5DCv/DGM\r\nkGWioD86RrHuu+t8KPNbnrhet9MzzS9J5VQ7ZzZbskE5MsD1OkfkGszhOSXk\r\nQlSTFpejwRf4x8wQ19ou3bZb97NSWdlByRqNbRs+4AKjAWAQaAVE75Gq1d6q\r\njXDiLaW3lzhzaFx7tUf5xJ3p9qOK1BwZ1Splloraf+3mLH60pBobOP6rRAvX\r\nKp+fhN1xi+njVUWhdvKtkKLNZBtwtxmHvi08IxG49B+gF4q3Q4AQnpdycNQV\r\n7NpZqkGgVhzn1xURP7/qHBKEReNew6giEBTIvXhtwBaKEJbgSZPsWxQxGYw9\r\ncI1kfZVPx/ezAPtU7UFMl/GgpjAx0IG3Txw=\r\n=L65d\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"681685532cfc9993a6190aedd85bf5cd1b3f80e3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.b5606a793.0","@material/base":"15.0.0-canary.b5606a793.0","@material/shape":"15.0.0-canary.b5606a793.0","@material/theme":"15.0.0-canary.b5606a793.0","@material/ripple":"15.0.0-canary.b5606a793.0","@material/animation":"15.0.0-canary.b5606a793.0","@material/elevation":"15.0.0-canary.b5606a793.0","@material/typography":"15.0.0-canary.b5606a793.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.b5606a793.0_1668766929199_0.26483608007885806","host":"s3://npm-registry-packages"}},"15.0.0-canary.8c5675942.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.8c5675942.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.8c5675942.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5d555cca0c527baa912766f382022c499370ba5e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.8c5675942.0.tgz","fileCount":44,"integrity":"sha512-8k/d5VRhpxW+jUpdKDtY6RiPO3N24vETS4JrvtzNCGc4DymgZcOSSvrxc1V2lLOdd1KnHaEfVVNKiudMSTjXtw==","signatures":[{"sig":"MEYCIQDrUzf97zvz+8SW/ueqvOCCwxSFpd+jdSb3gMHpfxucbQIhAPcNufJexJtzaIAWTVKYB2EoPK/4GSdlp27tDLVd9qh/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjd6IBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpwfA//frdviNzIKTaao8GDEM7rmwp3biObnoe8h41ZEuTNU4Yyr6sZ\r\nzo0EQcB1iv8cJg0rByF7VQsAyJLIAlCO9rekjDoEEoshKcVKExdzfxJ1OsRm\r\nL82AmBP1J8+rvwjOtkiT/CP0PMdbelpM73W5z5JEcXSy87fecViKK4ybSBNH\r\nL39Daol3I29j1fuqku7daiPM3ilT9ywCGpHL1dOQvoiYL1OGj86NoaYyq1Kv\r\nI0GmfA3MMfJp7a/NKrviSGmKsC2QlfF9y2y/lgGDjBkOPtJINHAD/THCzBy0\r\n5RYVpb6H492tPG6O+Vqaf1tzcobkxrXew0ozco4IKw8hR6Ory9Zt5Zph7d89\r\n1PmxZmggoHXVmj5M0l88g8E45LWwU92BjbnKX+ra8QVViBZuwPsZAKe8To4H\r\nB9WVoiKlJwfkAk3tKhrXXJvnWwVfQ1IWutcAC+PbCy+3S2NeYfuqWiNgtpD5\r\ngfCgALwjHeRKgLFSjUApEFFV83hqdsiA0v3h8lado1/B1AgaP31mNnGoOkA2\r\nqfxMM11mwLYtMzqGcHcRfPoynpn5EQvm9OdHRJIcJ8cjiIzcL4egwpGHKehY\r\nj8CPnBwSxfvChn/WX8W0TJBcD4Hz0Rzl1bGfXDLJWL3DvLu6rBXQxW1chOsv\r\nKA68WiI4MutXTch7uXdznlYACc7fn6TNCo8=\r\n=ZqhW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"46367ab28a14e7ab75dbddad4b3a00d97443debb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.8c5675942.0","@material/base":"15.0.0-canary.8c5675942.0","@material/shape":"15.0.0-canary.8c5675942.0","@material/theme":"15.0.0-canary.8c5675942.0","@material/ripple":"15.0.0-canary.8c5675942.0","@material/animation":"15.0.0-canary.8c5675942.0","@material/elevation":"15.0.0-canary.8c5675942.0","@material/typography":"15.0.0-canary.8c5675942.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.8c5675942.0_1668784641649_0.24766042215238682","host":"s3://npm-registry-packages"}},"15.0.0-canary.697fbdebd.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.697fbdebd.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.697fbdebd.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"063c66dd3031a153e241f1d99d707ce208595eeb","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.697fbdebd.0.tgz","fileCount":44,"integrity":"sha512-Va65euCo80ftZ1Y4k70FG6mpJ3xvfi2TqwfrV49UkhufM3Wfp23GrfIg94noMnGuZKmtjIvvxGzABLbv+tbLVQ==","signatures":[{"sig":"MEUCIQCZ4QtOcufft82KHDjBBAbh+qlp4nKLPUqZl3qCl8okUwIgerPtcvejZzlBR6HFrKD94YqnuhfJr91BTUxUGOn8z8I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjd7qHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr3ABAAgaTjzxJPrvg/bjgGsXjmyMVa557JMgibtFaImkgQGWLbxRKH\r\noGANi7NTKXr8B+fmsEevO2V7H6/wGKdD/VasA514FKiUwY9zFrKi1bdVYa+O\r\nMgtFdKWM6DrN3I0KmRZlMhI+O1dq2FVxM+3eZMDIC+F0hm3iBH1KKFjj0iX1\r\nrOaOGb43DH3VYs2vz9YxEJtiWMUD2rjEetPOHeHE+NN8A2/n1xqW9WRIkuA+\r\nGjMsZhkagw+APFj36zxiAER/Tqhar9Hm2dyD8ZSQc2iVck/lJOjQ69Yr8mCu\r\njzS4vU5kRZcb1NCNnspeYw/DxIFu5gOgH/E9LjFn3K1Cos3by68ykGB6cz9m\r\n7kXS7SeyLjPZgrm0e5K/peRhwHXFgT6Su7xtMfe6CjXngJXZiC9Dow+axSDJ\r\nu0R4srpxK5HsziAUgJ4Kt1n/9i3nrLdcDOqepP6Nbrc+EbJixOeunRMqzHNW\r\ni5Ue0535++4ixdiTaoAkpPF6S0iu8xJoD0JC/oGSQl50RFJjbmq/9Ort0/Mr\r\nbauvN7mfR0CJLTdrOEz+ocNJnxdASy2IFBg5Pecd6CwXW1rAe7SEhtmzv6Xz\r\nrnzwPOEGVtc+R2peKLjRP9D3M9H6og3opVwZ7EgvcRhfWaqms+1lEzHZEy58\r\nVgPBneWBY/rVGT2m3FldUHTjbRIVR0PWc/4=\r\n=ObQF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"633705dd01d68334d80bad5e354eb7e71d9fa30b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.697fbdebd.0","@material/base":"15.0.0-canary.697fbdebd.0","@material/shape":"15.0.0-canary.697fbdebd.0","@material/theme":"15.0.0-canary.697fbdebd.0","@material/ripple":"15.0.0-canary.697fbdebd.0","@material/animation":"15.0.0-canary.697fbdebd.0","@material/elevation":"15.0.0-canary.697fbdebd.0","@material/typography":"15.0.0-canary.697fbdebd.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.697fbdebd.0_1668790918822_0.08975567665827122","host":"s3://npm-registry-packages"}},"15.0.0-canary.d58410453.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.d58410453.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.d58410453.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c1c685fc6d1167a2eeeaca0f36e0375bb67acb1a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.d58410453.0.tgz","fileCount":44,"integrity":"sha512-35iiJlvY54BibV+e+212H32d4aR0qKCYUIc6fo3ViL2j0QjZRrIFHHdOPQR2jd9bSm1WTtBbk9jNhSt219/YnQ==","signatures":[{"sig":"MEQCHwa5xPmMSFjX0n5SlbhTPh4FezmIfEeg56eIJfMkGFACIQC6voRXqik29pqTEEkCRDx64RtiwjiFtuqLuz79r9mR7Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjd9xQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrv/w/+PPDeHCyaBZ5kSW/Yf/l75FGL6rnHIWPYyqCl6KzfEkojpZSk\r\nkYHFe6CiP2TRHsY2nh4JnK5+/KJHuSDltwU0C+ZiFLi8m93vwPVdMgA9m50L\r\nDPMoUzzqiTP40CndSppGmnKqGsXozKvxdR4oR/yu936CmS1sBol03vvRKBUi\r\nIMLo1KneRFF0yNfnv78hotWRF4Jukwuxw+ysVjwbdiNpu9rfEj4P6HkxDk+P\r\nD7wXq+6QtwWVAkauSnG6XokOce7SN7Xah6RguKkGB5x6yd76btiXiBXRXT1+\r\nRECF0dbhmjATi63yPiNv5Pb1G+K6765CxzR8oR0gXvnkSDd4VYtoXjbRP20C\r\niM1s7I60hsPWsZ8w97sD1S6wmls3avks84JyhuA9i8GezH+cdZFqZP1H5Xqd\r\n2ObqaX7K30WdynoXFnVliriMi8ANSICHRh7t75gqTPrzUWIu98zOzX9vBcnv\r\nt+9iQnkD89SbLOg8rq8/KiEo9hJlGzDZH+roikN+jzjHkCYga+2dZZTi3q86\r\nDRzz8vlnDxw7nGOAGhrPdiTVKahZOAtOnbsWzshVpPvrAOvlY8BJojt79yCf\r\nsbnZAOF915TXdXHqT69cTkIsAfEii8x6mgTgFO0RJPTPJYKb0pwds08uJyx9\r\nyvzmvD84fd1B/PafZdLOTXXGEKx3KvgPNFw=\r\n=mAxL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"65248afd9a1318b7afdd324f3def6a9c8e67c90b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.d58410453.0","@material/base":"15.0.0-canary.d58410453.0","@material/shape":"15.0.0-canary.d58410453.0","@material/theme":"15.0.0-canary.d58410453.0","@material/ripple":"15.0.0-canary.d58410453.0","@material/animation":"15.0.0-canary.d58410453.0","@material/elevation":"15.0.0-canary.d58410453.0","@material/typography":"15.0.0-canary.d58410453.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.d58410453.0_1668799568098_0.47389626181935585","host":"s3://npm-registry-packages"}},"15.0.0-canary.7971d6ad5.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.7971d6ad5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.7971d6ad5.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"98e70513f1ebb4eeeb3f02e3be8d0c14cc75201c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.7971d6ad5.0.tgz","fileCount":44,"integrity":"sha512-ztvglUBK0y4LDHD8xhvNGCpbsHYoAVtI06cJHu5G241WD5wAmseEnLMY+ty86FHMzs796PzhUqUmahEHeBNlEg==","signatures":[{"sig":"MEUCIQDfJRGKvLE5PF2zW0DovTcJlF1WofAG2FDDw63JGcArcgIgKgv6TXTbTuHfayjzyFovgCxPw4p3wA95E+/VpdTK/ek=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjeJfUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp3Aw/5AN0XdkUf55PRAGLXFIOmv+Zjq7cb+T74iFXOR6mbj3EDLw89\r\nRdP0IEm+CO4D+qeuv5sIFomeDbkYxmUWqb7tMzJhipJxbu9FY3VVQgLi0Oly\r\nzKvk6yGApo0D4waWAGf3wh+pqypy4Xch3x4fAlHD49eKq+5iTxFojFZZDWc2\r\nzRnzM6htWJVFpMOVvlNxTBWwoCaoiTTHh7F3ktQpDArmrWY+Q7A13QhZI5Gn\r\n1oQFW2Vl9Fd4UQomkLGd0alXya7aNNve3r0cra0dKUa672ZI1fg1xWD2fpWL\r\nnG20qIK0EXZOv+OmWQoV4NRA1MfwUSzRfaDtWWTfcR893l9NHkEtI2bikKI2\r\n7rq2sdfnP3VfkuLUKKFexEMGEGcS7+qPvYXqQmY7dUp46LBrFczjiGdTfNah\r\nZwVUDQIZsN1g1pM8ar5maeVrctsvTfsuFrDnezDh+xpML2fVxJxRaCj5hQfM\r\nIZNpyepgeQ0KEPaPOd8UtMcvTs6EDH2Ed7eR/3OSSQ4YOI8oBQoHR6O3NwvV\r\n55dqLoGSTloQNwTSLg4GteTG+Xuabpffxniaac0HxBqXrFEYkwy6Q/rYstLw\r\n0Nu7e7b7HlJjnE7EmQGBg4yNWuqvKwYj9aWcDwwIBhcoua/t0ajHA1WpYxbq\r\nUl0RJ6xKQzdpfU6dqdcQN4WJjK4X/dUHmO0=\r\n=FMke\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"caa68cd6e7b5cf4d64e037521bea18e312048e69","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.7971d6ad5.0","@material/base":"15.0.0-canary.7971d6ad5.0","@material/shape":"15.0.0-canary.7971d6ad5.0","@material/theme":"15.0.0-canary.7971d6ad5.0","@material/ripple":"15.0.0-canary.7971d6ad5.0","@material/animation":"15.0.0-canary.7971d6ad5.0","@material/elevation":"15.0.0-canary.7971d6ad5.0","@material/typography":"15.0.0-canary.7971d6ad5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.7971d6ad5.0_1668847571790_0.7555959286497747","host":"s3://npm-registry-packages"}},"15.0.0-canary.a0ae73b0e.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a0ae73b0e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a0ae73b0e.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"22218563ae4b03f1c52d1b86c87ccafca4d08675","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a0ae73b0e.0.tgz","fileCount":44,"integrity":"sha512-PMbpdwKximM4hCkQctIaRt6mDfNTjppiKR5tQw/9PzeUhMFDdoEasQjTjcY9waDqRwFlWBSmW2L0/Q8T6eYuVA==","signatures":[{"sig":"MEUCIQDyAgC2pfbbpEtOAdwqjK+O2uu4Fby/AsGr5ruZMOjtsQIgNUzPduhjJfgvSLPF5jjvSLyE6Pzl3OdB3nZjt7IlkTI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJje1kFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKcxAAgKzvhr/QcIudw5bgFBtV6n44AqMA9I/xvVEmYHQ+/9mbcANp\r\noQzwAnWKWFPCh+TAGaftXGUHmQSxohrwb6rL6g2GPIHe67IyPNPPLqHQbw0n\r\nadQjoZb0HQ26UKVwhDQKxoOSeACnz/OZwxXKzJ3IwZmH/+moRl2s54yiI+ym\r\nZ8aHYHJdCE+oYcLIFIE+aSJxkeCoA5GgchqEcvVf1PT7XdE6L90Alef8mMSt\r\npI12JloPF3hKa6o3eKBcmtUyyA76tgWJIaoz5gWyrZU0cYkGwN5pw90g7yWh\r\nSAXe3Hq00aMnhQoW5c4tE8d+xKgvAHGI18n8ljXoUaOLBNoXvH40fNCJ6/F9\r\n6lzrrej42ZyNdrL3rDLifQ7Q1eHu2rLttzstj5NT/1FzOyVZ55odrA2Q/VfT\r\nKV+0xp7PgN1ncFsPPRXv2yppE1WHEuRub5cJQTgqVUARG2ARmkULQuCazQwN\r\n7CXTcEybtDPB0LPRSia6XumSMdb+EIBstOCCObz7zPl4oW8jsXXAzyaw+Sc4\r\ndWRfEOs7+KPdDqdYiKUvlClar0rLiim6EpvklqyRwZUTiUOJr7Kq+7j/Yprc\r\nVBafQz62KBzpEjbctnWFVMPnPbFo9z2ZNqx4WHMWy0k3PHNOO/IGr4GlnTLl\r\n+U24u+h9KVelk9qGO0lnQSSD+XcnLmBEabQ=\r\n=1c5i\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"92b496120a9385203165ec42657a2edf41099000","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a0ae73b0e.0","@material/base":"15.0.0-canary.a0ae73b0e.0","@material/shape":"15.0.0-canary.a0ae73b0e.0","@material/theme":"15.0.0-canary.a0ae73b0e.0","@material/ripple":"15.0.0-canary.a0ae73b0e.0","@material/animation":"15.0.0-canary.a0ae73b0e.0","@material/elevation":"15.0.0-canary.a0ae73b0e.0","@material/typography":"15.0.0-canary.a0ae73b0e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a0ae73b0e.0_1669028100751_0.6726068649002388","host":"s3://npm-registry-packages"}},"15.0.0-canary.96f472604.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.96f472604.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.96f472604.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a7eb38e6c7d6c5ebe7c1986e25e56086a77fa8d8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.96f472604.0.tgz","fileCount":44,"integrity":"sha512-6oASxJDjDZXg4Nv0nSwKQ/ezIHbYjvJjji1EObyo/xP/PftqOCZHWyVykNaJRNlnC89Qz9wW9tzb8+zl5Xk+sA==","signatures":[{"sig":"MEUCIQCELBpgDA9hnJnNAmUeLpQH8BhwVVpkqeAVfM2HcU0l9QIgM2S66ucAFzYZRbebZ/Q6OSmFuabch4MD2ZOMUV7Umqo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJje3TZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpqYxAAmtba7VIDCkGZ2HwONR7wUprmORwggJLdZNelMwLwBJUN++3L\r\nprbDl18nQJDx6LbaQ7nLCcXeP68hpY1jldFexgUIE793nabmiEehJ5Twkcoh\r\n3houUOCeb/GnbWMS5DiArcGBfV8l0a9zUhettU4k3MFyZRvTj+VR8NfqcXCY\r\nSuGJbOids2iBWHrW64ZB/NOgL1VoNYtRXDYhTe/JJakL11KjrQW63QMDkrRc\r\nzXBe3Ybtx5Reqh4Hym8wnIkdWZUIvcw+DXsL8yD3Byk4gIQ+iPhM+MjNXBw2\r\n2z91zjPicpJK55k5TFUNWWW6CAopKL7/RXk9Ty0Tn0T1XAE6RnP2HXpeIm8I\r\nUpNIJ4Ea6Sk1Yf+aLJU+7B2DUdwO6XDuiniy5Tt6yrkxIuPfWHtK1hwsGMdJ\r\ncmDCLbeqQk7D9rxzn5oOa1DPcKJfIWUv2lReWDzZAyybrh9GIXr89lfI7mJ/\r\nfabkYbIRbpYv4QC4VLsa0wI8QgTP0vYzPgMNV09rbjR5l7TKE3EUq/hc5JuT\r\nG3Q0i9oWFENLAEjIke17fEVBMXYehXbMQEmjRZUcTFWbcFYMmZq0KUXsIOyY\r\n+tac1zcJXK+tYhutIxY+0qdFoyTAB2RiRskSGp2kEDAR/U5FcLxhRY2Fhrw4\r\nD4mmdprEXbIbvmkGvDE3oseC1IYai74DUsc=\r\n=9BRc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"28f313542547c982f69fc57b98811983600931fa","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.96f472604.0","@material/base":"15.0.0-canary.96f472604.0","@material/shape":"15.0.0-canary.96f472604.0","@material/theme":"15.0.0-canary.96f472604.0","@material/ripple":"15.0.0-canary.96f472604.0","@material/animation":"15.0.0-canary.96f472604.0","@material/elevation":"15.0.0-canary.96f472604.0","@material/typography":"15.0.0-canary.96f472604.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.96f472604.0_1669035225379_0.7520918497089955","host":"s3://npm-registry-packages"}},"15.0.0-canary.18b8f31e1.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.18b8f31e1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.18b8f31e1.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3a1f86783e6be4c1f5ddf225bc3729da236e9f7a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.18b8f31e1.0.tgz","fileCount":44,"integrity":"sha512-WcmllP0ccKF3kog+wETspDFuohhAZZYDbCAdE6wSwqPKrfjfH8PWu3w8Db6GqrlB3z9+rzpOYDb/MwpIxl1GUQ==","signatures":[{"sig":"MEUCIElMXViR5Ljmq9l5nfBBtlq4/tR9/jLag9ufikDgSlh5AiEAy3UXAmLqkKUbSskQEzX8H2u+jwC+2/60gldBjcu0L3w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJje6FRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFTRAAjoGNwUnRpLhNXJeAJRsYPrSZAc/IK6CNoFmMMq/41Dg46v3/\r\nfQ4qhGCrKf0numIaakS4DZERJ7AtZ3TxHxmEGaFd65RR9vw+4VfUFjnqIt9i\r\n5vPXoCIWAPPIEdx2S169fS/WONA527UKiqJgRjkDgUIOzPkBHPlWwQWbOqAZ\r\nyjBiS8Ygd4RHpg5T5kNk7ddl+/jfpf5Far0+CrpU1I3x2DWbrf5TPqo6r8sv\r\nWycrmYd+qyCv6Fd/brVmDlj1Lpi255EZSUCh9FvC411tHLlXgjgulCpkmiNp\r\nLMaTM0BmxU0L1NY5/R/aFOKopYx0EC2d4Qi+fLyY2l0fQxqk/Cy4LIOev2lo\r\nC7njS7W1IioUzUwNEQLCqetcvRabcOCM2uJSyrfU+RF5U1qOpY9XlTU7wdZw\r\nRjRY7kIxedsFMOSDwrQW9EtpI4VPHTRbKgFpzhhV47JrMueKUIgMr64Jixyy\r\nJ/CkfCafp82Qd0EXz37fLTMasdGATkUGrq3d0UXf+Ap4Mmx7pgGNqRUvUBuu\r\njWWRKixVBMTeNZOZQ8dpQtbGAioZ4HzPnxJEpuuoikb/JDjjyTD7GuMLLl7i\r\n5gMbhJ0nSb4dhUsFb/oJn8mfuEmfgWfvHJCXRHNymKkn/i1HD9oyy+uCRvTf\r\nrKRzmbVHeZUFgSCjU+MkK1PDkz1+mH9Ir9c=\r\n=HOAc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"99a6c50dcaf8c9db8b49ca9378d7bcc70fa3d276","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.18b8f31e1.0","@material/base":"15.0.0-canary.18b8f31e1.0","@material/shape":"15.0.0-canary.18b8f31e1.0","@material/theme":"15.0.0-canary.18b8f31e1.0","@material/ripple":"15.0.0-canary.18b8f31e1.0","@material/animation":"15.0.0-canary.18b8f31e1.0","@material/elevation":"15.0.0-canary.18b8f31e1.0","@material/typography":"15.0.0-canary.18b8f31e1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.18b8f31e1.0_1669046609136_0.6592918514845179","host":"s3://npm-registry-packages"}},"15.0.0-canary.912f33ce4.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.912f33ce4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.912f33ce4.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"320e226d7cf75d5605315e24b05eb61549209997","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.912f33ce4.0.tgz","fileCount":44,"integrity":"sha512-lNNoG1W+dwL0g9cBIJ1bf1sORIG6RLe83NbZGZDWlMuZnTw8dUm9rGKENdyjyvxoLnQ2ZkbZkK4CrKaPlOcFCw==","signatures":[{"sig":"MEQCIH47YP/wTGdCKswPmgIG7pdxEhFcyrOARsnuN8JY2DGEAiA7clC278ldBpcTOdqR3N70WPJEWFeQlbEsNCDDRktZNQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJje7t6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmozjBAAnMJnHWlY1GfbGPmbhIQEMztXihYp3hUXyRIi385sypsD2XG4\r\n5MNp+UQrPUVYx9ZYpb/JbOxFmOgiVEC2HTBKhQ5udAqNZ5pFy+rgDVNMDR50\r\n+N+5sqszfmGO1bjPQyebaMUxOxVIvTIQkjcNLPlBngJJCgUrPPsdOAzNLhsx\r\nL8jo+grnmx7/h0tPl0Y+3qUdszMdLqiSUerUWcO5CP2kLIQcI3FbhXm3gUTu\r\nqchUft9mEGUVH9K8+zsVYpt/p+hsj+Up4gXLWCl2r4atBOWtgXBD/JY3hLeb\r\nOru2oJCNBWeVuX2+WojQZHXybBN8bF45hVkjdxth/In7QcPiQX7JkuxyWQeH\r\nZW2q6jvsneVAYEtWWXsqPhTp3xJi6rmhbvHnFNjuC72e+vPL+CRE8eVABtJP\r\n7NerZtTILqXl7Zx1Oy0o8aY3RROFMuCOvXgLdhamCyt/YXnzNqMavGfONiph\r\nBFCAa0mhWkXyikkp1Yj0NqRHFc1AyYLOD9YIVk7c6F0hah5sPDdi4yLg0P84\r\neJ+9I7f9EL4K8UNVZbCJYQfXhqf7Ftv+3Gl36As2qv3j3BNKXQBZjH7RXcLk\r\nFaecEICic+TN8QkhOIxNHIgsODUzR4WzfvEULO8NxEiuGugfyIoERBmZhTeZ\r\nLTsCmf6yzxSBqS12KNrhpU6oK4a4MLF/ZBg=\r\n=UWMJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cbdf5145fa19b6681004b6c2d5de771b50f5b6f9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.912f33ce4.0","@material/base":"15.0.0-canary.912f33ce4.0","@material/shape":"15.0.0-canary.912f33ce4.0","@material/theme":"15.0.0-canary.912f33ce4.0","@material/ripple":"15.0.0-canary.912f33ce4.0","@material/animation":"15.0.0-canary.912f33ce4.0","@material/elevation":"15.0.0-canary.912f33ce4.0","@material/typography":"15.0.0-canary.912f33ce4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.912f33ce4.0_1669053305852_0.9434730705415693","host":"s3://npm-registry-packages"}},"15.0.0-canary.1e1b1c369.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.1e1b1c369.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.1e1b1c369.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0e58bb3bc882bd3e31a08f565d567cd2acd7c35c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.1e1b1c369.0.tgz","fileCount":44,"integrity":"sha512-LlDObtlOcwF+4dXlZ2fu0vnnCK7eZluuNk2T8BTkX0P70GDTDSmn1l5uBe5DW8xZXw7W/hxDTrdWaYGyo6VjeA==","signatures":[{"sig":"MEYCIQD3+1c/8eV8zkyoXWoLPk21WsEWC/1KSOw9SFMAwztRhAIhALeCFftKThPQfEyPaoyiVtpYa7WI2b019Uvq1ayuksxP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfm4bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpgMg//QH2KWT54CdGBg4mCKIQ8Qb8XyOkDs8txINYMgsCpGQOm7QOp\r\nqaRmiRGjbpL+jsv0KmAh4Te5noAbINDsHt0JXKw9jyLgEtEcjqW4iQ8qZgTt\r\nFZpC/ngeWGfp805dZAgnMInRnba1qTHhcC2IwspxUB7PoZry0CTE/gpCnP5q\r\nUZVa3nv7hZ3uxPsDD1rqLhCvV1bvfjlWSQr8ob9kiW/53D7JKiVGhvAv/+Rl\r\nshnWQEMfx47ATaH4GMcanSJUluWrl8bKRIPOHQavtKJRj+QtWf+7R51jj+1B\r\nZn1Hep0gHCCGSzDZ1hMOpETDiOksQsuksGwhAFR+lsp+maxp8nKN+ARInNCl\r\nt5/u2THhXiii6vbSnsB7Iy1F/MtZoXj3Ot3BgclQfzRo2F6Fltt0IlB9GBTY\r\nNgY+nvle0qd8ihOvak9/JyRYH8yFCQzB/gwFai6Y+zOfOwviLSPpZlZCDkrr\r\n+gdv2GhDPACS+CGG+L5u+z0lQ91ENeGqWDL3qO1kFaLPfLUSh44ySD1SKy6s\r\n8Gpjo/SJLRbFJJR4iNKjLN3lXXkdgd+RSj1gQZd7dPMSWLyqD6r4U9QNtY+w\r\nndEUitLpXFQoC6XhQXkJS6/zs0JjCXoqboHYeYf9BTc3/8ldNf+MyOXVab8P\r\nfAVjEEN9zqYtC+F560IyXf1lPWZoiStUF3k=\r\n=FPTe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b59baa6ec6a8114401e616de0c9d3675a34e4206","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.1e1b1c369.0","@material/base":"15.0.0-canary.1e1b1c369.0","@material/shape":"15.0.0-canary.1e1b1c369.0","@material/theme":"15.0.0-canary.1e1b1c369.0","@material/ripple":"15.0.0-canary.1e1b1c369.0","@material/animation":"15.0.0-canary.1e1b1c369.0","@material/elevation":"15.0.0-canary.1e1b1c369.0","@material/typography":"15.0.0-canary.1e1b1c369.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.1e1b1c369.0_1669230107351_0.574375548820262","host":"s3://npm-registry-packages"}},"15.0.0-canary.a2ec49244.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a2ec49244.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a2ec49244.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"701bc7c6f6b3829a6f68527cc6bbca64b6831e84","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a2ec49244.0.tgz","fileCount":44,"integrity":"sha512-j3IbWjg1tuVwbxq1/MhHOcI+FGWzJmhmrmN7TB30a/zb38AfSEmQ8NvNyuRCfRX3aDBDODq7SDbRR4xzMBAJdg==","signatures":[{"sig":"MEUCIH9zqB7ceFO+xVhlBlkff1e9lHxolV8eFThk1vzFkD7vAiEA0Jwh6e4BU1uvg34n4PYxPl1l8lEbg9ZNKyzgodCovU0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfnUwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5RQ//YQqHLowcLZ5llm1BY7wsmFCdtfpQhfoPtgzAPli81WrXzStR\r\n7KUMsUdakRMJ+Q67pEHn0Mgr9tp4fD9KgTblKFfCGA1mngcbEdQNzr/e3Wtj\r\n8hZTE+CfCh/kfqi9Tm/NMmnnlEyVAz+Z3lfHLlZ6q+wDBfgfPD/WZ2Jt+WFP\r\nH+n6V5675CKqtPJldAwR1xCgbT2AQ50gz7tbqBCUs5lLzUY1lV5drWQq1UUm\r\nCQxTyh18D/ibjOzcEat65Mw5fPZjOmZf/jT/QfLAIPZnCZDONSmtgrR/Lkqm\r\npLPMwyD4o1nkX3qKJdg4fR4+pOMHwX75LaXmp4fNqirVwCvuXr5yV8hD2ccV\r\nJasONc1GmhqSdF7lW5vBlf+GfPWdTCYFSFiM4tROtZaMIULM1QHpKNrT2lGo\r\nd+ZvohY3Z9RPHKuXZY4RByhtyoNcoju2OXgMOqvmCYeUt1N9RkXFh8q43Mag\r\noXuz8ItwCfR6te4kI5nXVCmsQI+LCv9jhRf+HdLdUdEu3wlJKWnPjUrRcxux\r\nQSQPmwMlUSJl+j5n2WDlKzphBzk2retwS4NCS0GKd/AhKym7DuOpQ0SQ7W2X\r\nxzxzx+aPenfDS1VC6WlPOWRKfIfYX1ybfrtMOKCWWqChrI2tQ+Yhu8VyMis0\r\nM7ql+Vhmh+voiKSpbcBGm6tmpzgC3bB+qlQ=\r\n=YqhR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fc59d471222d0010e05a636e8c3a9a5a9abe2b3e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a2ec49244.0","@material/base":"15.0.0-canary.a2ec49244.0","@material/shape":"15.0.0-canary.a2ec49244.0","@material/theme":"15.0.0-canary.a2ec49244.0","@material/ripple":"15.0.0-canary.a2ec49244.0","@material/animation":"15.0.0-canary.a2ec49244.0","@material/elevation":"15.0.0-canary.a2ec49244.0","@material/typography":"15.0.0-canary.a2ec49244.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a2ec49244.0_1669231919738_0.012414293509353191","host":"s3://npm-registry-packages"}},"15.0.0-canary.a7458ba0b.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a7458ba0b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a7458ba0b.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8c369fb29da5f0d628d5fcd465f6865ca8b7470a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a7458ba0b.0.tgz","fileCount":44,"integrity":"sha512-pWrGn4UCrcu+WvTu3YoMif8Zd2GxYfvABLK6OJn3AkELOjPR6YWqrUCCmo8+a9zuhAahvs7q9N0KmMo5WgksJQ==","signatures":[{"sig":"MEYCIQCPpKGdraNEFq1whWXmxsPN4TmUF21d7de3mamQHdDwJwIhANT8EdCBjPw7NM9+YIfV3pnHy3iIgH0ERsTuAu5Vgff8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfn/bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp+HBAAglm/nJDmhUmqDgHC5APqzIdTsoE80Q0i8ojIOGrw0xEgUDf5\r\nhBrhf31dn1INM1VKVEmNBAAysEsASbwzNoOckLruDDX8hwSR3FFpLSIZA/oO\r\nTEhFWiznH1bEtSJJXNsldER9IM9z57ibACJIa/0Q7hIpGOL05qVHK5tisLNM\r\nGDKTWcDAKzQ5uRV1olWS8pIqP4tNFzw8PI4VqWJ57O6+5oEVda4s60VMjJMv\r\n4kNXK3i8d0fE4PdMKWFg4YScDgWt8lEX8kWSyqeUCegFHG0ZvYrBotL0nE0D\r\nHYgBzwWBqTlseuvl2BOapqpFcHpwcCH/ou5wviEAMRRA9PO7oFUrXzKjDJQx\r\npAMAQszrX7LD2nfJZjakYAfEpU0vuwGhl+VRp55wR06ZTTPChHwu0Kxfk5MN\r\nr5vXhr33u/ulR0hNUImKfS17CVDG91l1QAb4H7L0HrExJVr8irkdYimKInP/\r\nK5v3ijq/pLwF5wE9wHDVEQ4tDQzJ6PiVr5hbdsDTY30NukD5AeK1gJ9ifKJ5\r\nRnDL1fP/AShXnQn0Pnm9fL6fK8OtcYX/cBOpG0QXAn86lfwa4MQL2dnsKr5k\r\nxgTqFE9LpKzrMdt+i6ZiXUIqeyzMGR9gPhAXJ4RjUZVuCdhtrEt1uSPvrB+T\r\nJUHzCNiUpQYFwhTD55YN+vxJE7zRUcsynuU=\r\n=kJWI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"62e6a15e0784982b77df0a1d824f81d5a15cb6f4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a7458ba0b.0","@material/base":"15.0.0-canary.a7458ba0b.0","@material/shape":"15.0.0-canary.a7458ba0b.0","@material/theme":"15.0.0-canary.a7458ba0b.0","@material/ripple":"15.0.0-canary.a7458ba0b.0","@material/animation":"15.0.0-canary.a7458ba0b.0","@material/elevation":"15.0.0-canary.a7458ba0b.0","@material/typography":"15.0.0-canary.a7458ba0b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a7458ba0b.0_1669234651124_0.6122058723311907","host":"s3://npm-registry-packages"}},"15.0.0-canary.7c35e5036.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.7c35e5036.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.7c35e5036.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"823b8dc2c08552fbdb982776728bc16d29521455","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.7c35e5036.0.tgz","fileCount":44,"integrity":"sha512-WnFftLg5COnba2ka/xO/OZBfIqze876Og8PiIBgXdqTga69UVFYZvhbmlWnFLPysOFAnNqdDQpyOVcmBnwmyjw==","signatures":[{"sig":"MEQCIBXyrMUVxyL6w1jgtaipOy70O46HZWG1JYXrBJ0XcmXeAiBUglIR16Gbhi6UsEnTJUYbZ2Ls7nYCs6bzVLUhdNT1gg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfy39ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmohWA//f3f5mz5uuQxTRgcWz837JnugHPigdve62pXkHpuhDlY9Ufmq\r\nD0C3vZFb9ZopS8HMal4ZOHmeht/Q+KewrHmUEFTlgw5hZWTwsHS/xhvnP3ES\r\nDnTig6HJxUWabDhpfOCq0bheDh6DhHqjUITlmUitmZPXtgEg3o+6WkukHpBB\r\nd2JL9ekbAcDokE520/8DfMY4wiLVu9pXyGoAuQn6/IpD3w3pQNj293aMen0s\r\nb3z8jQozLrrhn9uRTJUOVlGA6nwE68vAgbx2ErTP4yUAR8lTNXpy5kttO/w5\r\nmTmCKOJ0yDqzfdotc5q6UrgkhcrTVC37p22b7qRqkMiP7iQ3gLpmkakCsSg3\r\nvmarcVwuvnZnFU7sEcoG2zcVBDsVKfldlwovpg27pGxmyc6LlL8FkdD9gZAx\r\n4qfPe2FqvKipVflDCq3qKdos6No+oyZl/NeFb12+8lqReszOCi1HP9W9LfIW\r\nzWIYg0dSH8ljFDU5urofQOxEziUW/sTXN8Zgx6G3FjAYh/IdV3XLRf/XY8Lc\r\nY9/9xchjfkVjlVGVP2Zn9QwsLzBPa7zC2vi67nJ6WiOcVdFCevaJztHxxqwh\r\njwligDddQbn1SaL1wZMZu+RH3l+ZxX8NFrKykLYQar3jlz2nAu1wEb23zFle\r\nDoZL57rrCZDzmOqrW8CanqJny0XzbAh+aNQ=\r\n=q78T\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bb1e9aff747feef28ef92f415776fe33dc1216c2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.20.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.20.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.7c35e5036.0","@material/base":"15.0.0-canary.7c35e5036.0","@material/shape":"15.0.0-canary.7c35e5036.0","@material/theme":"15.0.0-canary.7c35e5036.0","@material/ripple":"15.0.0-canary.7c35e5036.0","@material/animation":"15.0.0-canary.7c35e5036.0","@material/elevation":"15.0.0-canary.7c35e5036.0","@material/typography":"15.0.0-canary.7c35e5036.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.7c35e5036.0_1669279229077_0.2391845796256986","host":"s3://npm-registry-packages"}},"15.0.0-canary.4356e05c5.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.4356e05c5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.4356e05c5.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d6abb62e519edcf25b859597b07735faf587c160","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.4356e05c5.0.tgz","fileCount":44,"integrity":"sha512-RVnPi2NAMvJbJ5GpeVk1oxfQuT9gyGBQ2t8zA9+IuBzf4HdEU0n+y6kWh5WlLc7dfJ4NOI+DR3Db2zjRgtbiug==","signatures":[{"sig":"MEUCIDyNappDq0MKjR4ItmwQ3gxD65GHFGxq4TULudT9uihgAiEA1sPABmwNs3D9cuhJfYuYcVLFo4uHrmK5NFfRfMgLwmo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjf0AdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrswBAAjfp8gMDuuwhXml/TPQRnPE9xRAfXhAMKFmN0VUKRVxX2nwL0\r\nY7VIQsXRCcairp+03UoBRgUZpaKAW7KaokpJONgqZvZmOci3tr8o38Q215Tv\r\n9QFx/BwiY6+ceZ0kvwD9ekVp2f5+z8FnzdHQ9Cn/P4B/sA7rGRhTjDJDNa2s\r\n+ufZNYl5Z+innV16k+oXQAQDygbaFY4PF85pYS0v9w1HgsxR/bVTVRvP+tYo\r\nuDwIuCZtam4yGQbx4Xrz8+APnj1bwbREn3aBEuQPzr9FIKBsilXLop+JhAvk\r\n3hNWGS18ojS0z1ZXDMoMqEu2IvFq+1bgmabz05oN0M7OKS46hQ3JkhwXiMoG\r\npy0MpH9DD3pKYR/jPdt5OsBvwgbBGBe6Z/ycO+ZkhmLmlC23JAzqA4euT2bj\r\n5t4CsIGRNnynAxrQ+6szGADdYHqPyGwrvlPZe66jOlx+7VS3eySqG7M8rQ51\r\nQ5gDBhEPQmtDT6RfgEYnNTzaQJ5550ShG6ZMI4SNnwdkJwXjqC98nnn+h5S0\r\nXGmK+O6CwIjwyk9cgY4+eH7ALM/R40PlTRk732+d/aRlMSYZYkcBRS00bizN\r\nodYuv5OL5XFmJbgMXVxX60NX3W79KFQhlg8J60SXD8au/syQDmxjGlajxyrx\r\nRFiqLDyfMKqUo3NFnoMbwk2MtC+1CthyWUI=\r\n=BT0l\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8f21a6abb8b52fe9aa5804b940eac0cd94256fd9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.4356e05c5.0","@material/base":"15.0.0-canary.4356e05c5.0","@material/shape":"15.0.0-canary.4356e05c5.0","@material/theme":"15.0.0-canary.4356e05c5.0","@material/ripple":"15.0.0-canary.4356e05c5.0","@material/animation":"15.0.0-canary.4356e05c5.0","@material/elevation":"15.0.0-canary.4356e05c5.0","@material/typography":"15.0.0-canary.4356e05c5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.4356e05c5.0_1669283869509_0.4128346947293746","host":"s3://npm-registry-packages"}},"15.0.0-canary.cb605f8af.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.cb605f8af.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.cb605f8af.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e298592e492519c8d2c2c03b375623cf3a19efd2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.cb605f8af.0.tgz","fileCount":44,"integrity":"sha512-/0bWo/Eae7vargKEOHlg1BqYInA8W+tfo9EXYmzmCLLqB4CKiqhQEKCvyEFJqHiTd5c7Md1ZjFAo3ok4PnOhQw==","signatures":[{"sig":"MEUCIQCc9GulsClrPE/YZCn6Bw784xDos0zA1ViJA4FLaolsQwIgf/p2T9Z1VitUGP5wJWQGLmiFREtUQCPc6Gf2JJ3WSmY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjf0SaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1Eg/+IfEU2o+JBNMvkdjoYViJEDvL2GDEM6R4JPc6rHuHt+f5O97n\r\nKa17cU1HHcTi2OlH3MkMLRJ71i10CgZfmj29Q+hZu0pfZLzuiu6MxF2cnFtT\r\nxUxOEztX1QEJDC2+9sxZsckCgGoRylVqB6Z8A428fQgvJnfeDaJgjWoCObTL\r\nRYPMXzqt0uerpykdy8bPUhi0NKgxFfWdFDsZoZQijSbaLqO9T1px7JdQd6Nu\r\n+s1z/Ar4txCYGI9g32z0YiAKpFblSMi4LC1PZfUhKXb9ugNKXVULlimQnS6r\r\nbTDoUjdDJVIHLwgkqk0a8NYDfz8SQzv5sp/lnqyxP0PfeZeW9hjD3r4AHyox\r\nGtYgtNaP4qt+nIYgOQjob5GTSUGacC/UAKhbX35xj930e1PSSQvSBWKKX5Js\r\n+xpEWPChhb6TpN5yY0PO8UI48Nry4z9DpFzLKm+ZfuqGnykhlyHfTS2B2ooS\r\niCPkkWEcK2FreSenP0m7Gry3hXNYnoekC1B9bZUnTrRrfSUJCIX61km86PjD\r\nPun3u6mKou4PD1NKXbcr1qWs762UfyGywVayhjEfK6HCn1lB7yotFdhprkBN\r\ngANCFNBT12hit+dfAftOp3192To6zHBFsvn2o/PjfIItVBsBBCqjUG5F+QyG\r\nnl7m7pnIy6WczN9fuJMh10NVQpj+VCxFRrE=\r\n=BRZh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9d617d11bc1506bf595e8a4f05413067775d3880","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.cb605f8af.0","@material/base":"15.0.0-canary.cb605f8af.0","@material/shape":"15.0.0-canary.cb605f8af.0","@material/theme":"15.0.0-canary.cb605f8af.0","@material/ripple":"15.0.0-canary.cb605f8af.0","@material/animation":"15.0.0-canary.cb605f8af.0","@material/elevation":"15.0.0-canary.cb605f8af.0","@material/typography":"15.0.0-canary.cb605f8af.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.cb605f8af.0_1669285017701_0.5392830790131693","host":"s3://npm-registry-packages"}},"15.0.0-canary.05fb07f9f.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.05fb07f9f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.05fb07f9f.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3328eb0bb77a29a7874294bfa14ab535c31966bd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.05fb07f9f.0.tgz","fileCount":44,"integrity":"sha512-G6e/fBeQ9zX1aZirRx0b2Rb2m4y1cDTVXZHI9ZpKg6g1q0WVkkyWZ6x8LHAznjkBJmeIBOXuUA0RPBwhtlGqPA==","signatures":[{"sig":"MEUCIQCsdklWA6iRIdC41QHt8c78DgBPrrmKnxjRoz3TpWGBhwIgefreKud3hBjN8E2SrMEzGShGs4WctBtrqjNBffCyn4Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjf6aGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQvQ/9FH9qzItKg+RW1IBoABW+tWCbWNPkY1pPcLuOAEUT/bgGAYtQ\r\nrpNB2T4hTC6NvrmTMCm7L28v2GZ7ZyLHW13hQn46aFrCbuzEa2xbCkaoT+8Y\r\nwP8UXHXvwvmOgl7/4Fs1rZ5jUK5cUGp76cNqGxlGDR7Vn3Yna3tBwCT4H2BH\r\nboiFwOVy4G3B3vYHsqncjItQGV9UMK3tU46RO+ziIMAAS5AMwB+RTOnAV3DO\r\nNdfg0WivzmA7CtbVKP7pEIB1XbC+YOs6qibtYmjvY0qb9w7+UobXJcEsqrr1\r\nx30yzH4px3HJJH561nrcgWwcrPj60EkNcpo13bPj4kx6dRGnvkWMhqi/vySM\r\n0sF3YepGVNIiWDbWwphBfDyyxe1Pp/Y7ftvXhb7pxuShm+/29DAJECZEjJxQ\r\niGQ9dGwS0nVSgRvI4Cx4CJ57jDkoKViYY0BWQe0qGz9z6qtD15OhWLOgWT+s\r\n9sGkGjn58ZVRgqmC2nY3Z/GT+JmJHui+01Nl46mLHi4TwGxhYzALAYcfKiuB\r\nmLoYqdSpPVKq+GQ9DJyj1XsqfC8XPq5ceA0lvNurx9IHl83FLvYi2xDBiFOj\r\nrYBDIfPncaa/AT1ZLkOp44/Wd/JEoe5SynBDMMvOtbFirBc/OvRXpOgtMmBY\r\n+2sVukZF5D8Tj2g5hZ8MYdvqwbrzJSs2UOo=\r\n=7/xO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fbbdaff1715be513be46d4628f7aff9d8f7e27fe","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.05fb07f9f.0","@material/base":"15.0.0-canary.05fb07f9f.0","@material/shape":"15.0.0-canary.05fb07f9f.0","@material/theme":"15.0.0-canary.05fb07f9f.0","@material/ripple":"15.0.0-canary.05fb07f9f.0","@material/animation":"15.0.0-canary.05fb07f9f.0","@material/elevation":"15.0.0-canary.05fb07f9f.0","@material/typography":"15.0.0-canary.05fb07f9f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.05fb07f9f.0_1669310086120_0.9070647653122588","host":"s3://npm-registry-packages"}},"15.0.0-canary.a911b386b.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a911b386b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a911b386b.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9ca541553716031ccd0989045698f97e67c6b8b9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a911b386b.0.tgz","fileCount":44,"integrity":"sha512-Qyak5EsIu7ZLXVb0AGGDV9QsymE8wSdSv6MmMCOTHaxBPuBYnqfadw5oGNN0sBelm/h9Lbvn5DqBQiKKrq2gWw==","signatures":[{"sig":"MEUCIQDfA77kxqXJC9L7y7jtLFIK1SrAf4eEsaCukkl1JRaI5QIgWRA77e9F2ITL8yyhM/e83QRT3AFxVnjhNkr/YAPJpRU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhOZZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpE7hAAgrO5w+Whh6mwSK/E5wuho23V6cC9MH2++1ggA2rbB8qXKfat\r\n03pP7JsDe00CLvHwZl/6iOIRi5GNxEhnoY0fyBZNwMY8NRYw7nxl/+S8qzv6\r\nzKXQU47gm2UEnJzT1EffpdriEivMFLHyrpNCWcQtuItn2Im1A4PB6yBZzwQz\r\n/29ox583zxrTru1bSPNGIZ1Ox2CkdQl/Ud4o6uZzGE/dvbdG+Ps7cgaNoZaZ\r\n9cKp9bKE/c2KZooFap7TSQH9UJxEtUQY5XYoLcc4Y+mE0e6SOmhcGKOdya2R\r\nBYM3li/yLnrLd6v/j8b9o3dPcSwa8R/qs3pveSHzF88OsdihALqiOH/cC10C\r\nY5sRg/HPcaH6hpajHKBLWou87dYJkpVKGKGJ/NDPUH04i8Ul5St5QlG2F1ol\r\nPMgXSR1nW02dg8FpuwRX38vOM54I4EHizjjG6ZEt8KRBEWof4XzZib184spw\r\nv2m6wFPmVB2LqIyLtCkGCbd52e21bxJRdX45mPJ1LPNzkIA8lw7sTP7R7Xij\r\n9qAy2/j0IaEv2kNxyHvijyDGZFpY2//M50H2XIAF+UNSvKdQpnKO9Rfs3Jsx\r\nNXxxS7jhEr9Km6kCJBN4zmJAWj/eh1ufVi0oA9eGP7DB11lD7Cpt3wzRwDpy\r\nsl+twvp1fhFBRxD9HCN8FW2DIhbXnh//QsE=\r\n=/t79\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2487492bf1103f4c82913b328eb64ca5b71b9f5b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a911b386b.0","@material/base":"15.0.0-canary.a911b386b.0","@material/shape":"15.0.0-canary.a911b386b.0","@material/theme":"15.0.0-canary.a911b386b.0","@material/ripple":"15.0.0-canary.a911b386b.0","@material/animation":"15.0.0-canary.a911b386b.0","@material/elevation":"15.0.0-canary.a911b386b.0","@material/typography":"15.0.0-canary.a911b386b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a911b386b.0_1669654104784_0.4563308599684053","host":"s3://npm-registry-packages"}},"15.0.0-canary.2aa8050b4.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.2aa8050b4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.2aa8050b4.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1b526c618208e5f0abc4d511fd9049529ef85b1f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.2aa8050b4.0.tgz","fileCount":44,"integrity":"sha512-S4jHw6dkjHUruoy0Yc+XCg2JVk3ySoxx1NOCaVq7rj7sWBWUwBZI/3TROh07cV0jwT1rnHnGm9bKlehQYBv21g==","signatures":[{"sig":"MEYCIQCP+CGmgz1x50t8BbjsUxImz1xBvuGFfSdp0n28yImklQIhAO/znN8gkf1Yd4UWmDdYAJLGAXDFymo6ldsqYY98tW/i","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhQgtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrKAA//Vulb6F5jqgaD7rxmkKNTUmSXh2Y4+gCLo/BpHjTdX0jam2aZ\r\nDmCSXagCpwWk9xatZ68/fftmx5ZpKeh5MWbItw0a7bP4Swi9lSOpDUhd7Ujg\r\nxTUaqZQG778Zyk365Ye9fJ8WWQJmqDs0XHVUCacY+jEdOYoAqIQnZxQl4sJJ\r\nNnPJj63qlHyslIqsqhD5cTC6BHNpPcV6u1cLzGbQcTaPtMjZF1W3wgSfC7SY\r\nQdk50mqWDvGKny5Gdkto0xMf0mrhhjKf9MOO58AsK/OFQ+FCkbGXXJ5fym+5\r\nNDMStmm8Zg6brNG+PvpNmuiq1glRvoLudhDdd12wmI4DBg4QpRmyDTxYHrtn\r\nwxLDAM7hz3TnpN01w094MEBAYSKKdUlDae2UZ+ahgqJGjYXhJ6c3cJCIwL5Q\r\ndUOCY55tMCFQ5vX8XuTzyIDeRA9CzY6oRI5qEj9EtHTjP/9oO2BuxGESWU9n\r\nmfwGxTuE9dNnlOWTqK0oO6iWyHuMrYzzw/vruQ+JZOXS3gVzhSBN+MSpEzuO\r\nrvILkdQ8Wlzii1xlWskxTIqt3M4pUTI5FORf3DAL3EB2C+6jJ1H96snDQ9xY\r\nw1NLKKZssjjtxnVaPgN51BQTlljKl+s+i+9cjVB5dYzT2zDYABVM0WOaJ7Az\r\nQNwlQzw1iKMWy/bc/YiPdcmalLUT4iHyZ6w=\r\n=tgVj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7ea9b47d90d470adeb6f1cbc0c1c98b88392e56b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.2aa8050b4.0","@material/base":"15.0.0-canary.2aa8050b4.0","@material/shape":"15.0.0-canary.2aa8050b4.0","@material/theme":"15.0.0-canary.2aa8050b4.0","@material/ripple":"15.0.0-canary.2aa8050b4.0","@material/animation":"15.0.0-canary.2aa8050b4.0","@material/elevation":"15.0.0-canary.2aa8050b4.0","@material/typography":"15.0.0-canary.2aa8050b4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.2aa8050b4.0_1669662765286_0.31079203354377327","host":"s3://npm-registry-packages"}},"15.0.0-canary.323904a9f.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.323904a9f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.323904a9f.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3a1b8ad3cf66bad664641dda1f66f53deafbd11d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.323904a9f.0.tgz","fileCount":44,"integrity":"sha512-tmzA4aZ3tvAPhvoeWCpswqdutSo5KkYBd4NyU/SpF4t/kt0qEM3hHhlrn7p8GXIrX6/5W8/9983WTEd9o/zUdQ==","signatures":[{"sig":"MEUCICXJfC+ZP25LcyHBKUrv5kUTVL2bxloJRJjVDLPJuvaeAiEAkieNboOBmEGL5gKQ4nCNoEi9n/uQSo1YJFXxtDyV5N0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhiaFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmru1w//TqCmn0U0TkSALpy0qIVpXU59ggCuMaYxbCxmxKZb2Zi8sbdb\r\nNv36ZRrUfC0c7W9M2nsywTZ5Uq0Dq1x30HQrzHFuDsTNOqlM9JPaZ3BLWUre\r\niLpDEEza3VBCNHRQcxIiAewdMGiLxMn3oAY5DQebUhDwWcl8IAvD0O+9FfPa\r\nRVIvqiex0zIK9IhJUTFPjPPR6KDkK2v8xuYk6Ns/4+DDyzHc2IQjFRItIfIx\r\nNyNizb8cs8R0dq35RMVtJvKsPoq3z6/pGC8khgXSZEVQ71hPLnI2ye3qmGh4\r\nkow/KiYPN8V20sxTjpCr+15L1ysC3zmyx5y7xj6mMIFYuUjlSx880uWp7Mg9\r\nlj8fndDyG/YKCMIpEPbPEZ5+Kz5WxIGm37mN3ccKNcrcmS0MRDVDbzOAXdSF\r\nshEiKOVSkv3fff/O8ZuqVpJCYeL5ALU/cJ4HxStnklveymaaUOEqcuzh1YBt\r\ns2puAP8SXlixQzMAoG9qxaQJX6LrZdwOii2fSmIrcm4JT9uKS30cr5ws2Xl5\r\nfY4cZ21XeCNoSfp2LCq+qNBVa66v52vvhfKzSVkA4/D/3RXFGJXls4w6tVTY\r\nvb/p08f+sne9hfxNyaN1u1NcSZaI2l5KcuPz7FZA0QfcIG/1vbNDaUYu01q2\r\nf2oTb77y5vp6jacsR3ZbFdx7txdhT7JH+0k=\r\n=7Jh/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a69fa8c7160aaa07d868f5bc365076bdb159bf99","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.323904a9f.0","@material/base":"15.0.0-canary.323904a9f.0","@material/shape":"15.0.0-canary.323904a9f.0","@material/theme":"15.0.0-canary.323904a9f.0","@material/ripple":"15.0.0-canary.323904a9f.0","@material/animation":"15.0.0-canary.323904a9f.0","@material/elevation":"15.0.0-canary.323904a9f.0","@material/typography":"15.0.0-canary.323904a9f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.323904a9f.0_1669736069147_0.6802145284332084","host":"s3://npm-registry-packages"}},"15.0.0-canary.168a629a4.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.168a629a4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.168a629a4.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2b260b67dff3a7ce7e9191701cc773d980756c04","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.168a629a4.0.tgz","fileCount":44,"integrity":"sha512-r3cjsCg0rvWgdrEgL3epZ9oWgf518yQPR6SfuRWXYDfLGmt4+bXYPWNr9zpe1gy+kv/lXZT5LWzstPY8Pa/f4w==","signatures":[{"sig":"MEYCIQCysSYkYG3hwWIhHplVrEo23/cc8NVO65+AkiQ6x4oBPgIhANbBmAdSY23FKdotn/NB5TRysvPLjVTkmMQ4IYcfMb1S","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhjghACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrtxg//cvMFNcjkpyo0YoTZ/LmQz9FeD83pMIo7jNXgawTAbIpD1N+O\r\n71mMePLJhhvom29pA5mBrBmW4d6UQ7l1p5qeCcU+p7nv1mTPGb+jac5gXwcV\r\n/zv+MEJ7AIBhOJwKe6f6QklqmjH+bR3vylRWY9rYajMwY4S40oaieAeFKU+Q\r\nrSL6IW5tMv3Z1Gkp7auoZkjjz+0r+VooaunXPKcX8FVXITffJlLpyD5DGryU\r\nNJd75htGi9xjPyQXh9MGc/WUSUyWw20CW6ASeQFm71ue6hyySiq2gxF0uEo5\r\nH7zZs+8C8O8t41Pz9GkiXdBrzGh5lVAenWOWHUQsdWWkJVZcrGoBR5v2DoHh\r\nJ9XTJzrlilAQQ6ZUSmlOmafSyb3UvyWeKyLKlX/EEuuLqMe/IJXDtlQjIfXs\r\nD03khyJ7toyfMjebZsnQhxoLLOkJDlN0eSFZGBZBVs+aTN5yL5k3ueMYSPAl\r\n9DRZClZxzcqusc3N+F18tiMGmrwkOQ+UW85JCrX35U1QXeJoBRY7bCB0AGlv\r\nU+wHshpUYgrtPrpF1B6H0XGeaJnQ8C7FtM1EFQKXbFnapJIsl1KkQv0VEc5M\r\nb1OB8en+mS0i5aFo9Ty5S8oBq+QA6lkc4HRthMr1sh3jNulP9P7DgU3lwR53\r\n55LQR+xiZouY6dvwJFW8UmhC9AVxpOMVRN4=\r\n=bgUa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3091b344799132cce493f92839da8e544fec7c05","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.168a629a4.0","@material/base":"15.0.0-canary.168a629a4.0","@material/shape":"15.0.0-canary.168a629a4.0","@material/theme":"15.0.0-canary.168a629a4.0","@material/ripple":"15.0.0-canary.168a629a4.0","@material/animation":"15.0.0-canary.168a629a4.0","@material/elevation":"15.0.0-canary.168a629a4.0","@material/typography":"15.0.0-canary.168a629a4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.168a629a4.0_1669740577087_0.4073797284412408","host":"s3://npm-registry-packages"}},"15.0.0-canary.65c411674.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.65c411674.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.65c411674.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c7e1236f294fa290efd27a96f4d12ba59789ef76","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.65c411674.0.tgz","fileCount":44,"integrity":"sha512-VmVB8FfORBKxqyEwVzjM8CJHw1ThGgZ2QUlh7gEgD3PpTiA40pjU//0fsr6GYkSw20s322mUGOTdDjZv6fdVSw==","signatures":[{"sig":"MEYCIQCAYpCLwCkD/jGPjz8EvdYDmzN51WSzWD05TSb/UiKvKwIhANOdDieCcEYl/PmeOxBvx9VtjZ3lOEdkaHYbIEpD46SB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhkPhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoPEA//f9IJxJbEubHb+/T18w/iSfa3DIjaZfgZaeVgaYrY/cOCLMPI\r\n2qP0Svd/1SLSZqvbIeSFPzYn3rQSFC2AnOumnc4hnCkbiHhLzoqHIkN73a3a\r\n6H4tRGqdp+MCvMwaefYMxs48shIHdBBmiiz7vpqZYm8XUXqgThh6F3RU7DI2\r\nw7/ZkgIrqatQILVwd8TBvB+CE3wsXmRhPoAkiE1Dsu+bGlZp4IngR2egLHKI\r\n9FcUTAY8Dps8BkNgC5iHVGB75CYkyNR5JfW1I0sgNfBYGu7MrHPnlcZF60lr\r\nL+Hi2lFto7NAR8OVnqdlIttKlED1iD5JhfoAYRuEKH+Tmn8YutDvK29KxFle\r\nlmrAjdEjQ5Uz5u2JqgyIcbxzNvcZ8EyDvOexTOwu04okHG75GIFD8G5TcbFu\r\ncArFo4emqD3I2fk2l8iRSQ9KKM5vfx1aZgwrs/AxRyCo8USp+Ukio3FsNuEi\r\nanIsyvcKi+7CNmhrV1slkHphH6IN0psxPsHX5tolVvhlxZQzW35NeoI03Uyy\r\nIeZDey2EliT/6Zs2IUg90JollQYuEedi0IXWgxYm0qSf97/xp+6AU8E2d3Y9\r\nLlRNqBnOXpYnj6onCVq3NLRYIuLK/MeiFdKjOtqA46hmOA8FXKTFx0vcIjXh\r\n3AcEUkS+eDl53OR0CCuJQ5ddLkanowlrHQU=\r\n=bMc+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d80879a8c467caf0f52227ec97481bf5b7f2cb16","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.65c411674.0","@material/base":"15.0.0-canary.65c411674.0","@material/shape":"15.0.0-canary.65c411674.0","@material/theme":"15.0.0-canary.65c411674.0","@material/ripple":"15.0.0-canary.65c411674.0","@material/animation":"15.0.0-canary.65c411674.0","@material/elevation":"15.0.0-canary.65c411674.0","@material/typography":"15.0.0-canary.65c411674.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.65c411674.0_1669743584839_0.32915197664852913","host":"s3://npm-registry-packages"}},"15.0.0-canary.a86d36fd2.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a86d36fd2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a86d36fd2.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"77230a5f4b97df3c443d34fe411ac24348b9db0e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a86d36fd2.0.tgz","fileCount":44,"integrity":"sha512-Vl8TfzwGck/jEedy+0cn9It+SO98t/tQ3ldm5D21Bx9tnt0L0XOA9zp+O2U2cy2hMWctkychqDBQMCIsy4FE9w==","signatures":[{"sig":"MEUCIQDvSIavEBlVu15GnbW1gYXebWWnuaDv+1sk497lLYfN/QIgRnnH1PF4CtKgXUS13VxnJ8phLT9/Kjd+YoxwmphuhKM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhry4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoKexAAl+Y9p89a8cgRdIPcU90uXejMVnVCo8hWluDGlImzyqd5hHqw\r\n12Zn6X4BkL9GTi5nWMz1gIlBQUqo57XGPpsfJCQ8Hz1Or8SdCXgb04yLX7tz\r\n2Fr76kjUHXsPCcvZiCA98CIq8wXg2JVwtSsofYzHLC2INLyWyJQxQdmvDuoZ\r\nxNFfTiZmVkspP8cDsRxdUUp0c76IqXxxvGotdN2//Ra7UNGHlo2lHSd0Cymo\r\n2cfWWn13VjU5jictcRHLyfvo4I4yvXoQRHc9UG4qVw4kac0y8f29ZO21+Atd\r\n7gxGyjudRku/mfIAQqhswWV/6j8TawoI+HU6ek2HVnD1xZT4jSCDehtFbtuH\r\nFVSuqDmWBizxyz2AWCDPI3Mjzg9BZl0heasBruZn6wKrQuV9WBSiQE1OcMVb\r\nNepHG3VWyfNd6wKHyqOiXh7+pfQrq4tVd9FtLlZLukI8pUaeNfioPMiwWWak\r\npbFq2vWQT0xCCTFoFPAfsNhWfS2la4DLL6j1Hy4jGzBqBh4JNi/HNWKuSEPL\r\nNdG7V4RTm287ui+zO/+6KZQX4szrz9sjN+mR25kQX/QIiDhzmBaVBDYsR4+T\r\nVKBVxDb6LXD5/H+9wS89eipvDbsS2Sh5c2ywoybbVRYfMwlmAJERHEowGmiE\r\nWnuKgUPwY67Lka5V8UDkBcW8mprUMqEocIY=\r\n=HYW/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"85d3ff6d42516ecc839fe336441543c8df62326b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a86d36fd2.0","@material/base":"15.0.0-canary.a86d36fd2.0","@material/shape":"15.0.0-canary.a86d36fd2.0","@material/theme":"15.0.0-canary.a86d36fd2.0","@material/ripple":"15.0.0-canary.a86d36fd2.0","@material/animation":"15.0.0-canary.a86d36fd2.0","@material/elevation":"15.0.0-canary.a86d36fd2.0","@material/typography":"15.0.0-canary.a86d36fd2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a86d36fd2.0_1669774519954_0.6554458112449335","host":"s3://npm-registry-packages"}},"15.0.0-canary.3a1f46c66.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.3a1f46c66.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.3a1f46c66.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"810356693281e6cad2fe65be5963487f821fe78e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.3a1f46c66.0.tgz","fileCount":44,"integrity":"sha512-82ErSMU8eav19u5vIE4lVzUNNJl3AT0C9mivQi3oJY2IGDdxtdYwLLkkYtvOouy5NMz6ZDerXkqw6r9uxzBq8Q==","signatures":[{"sig":"MEUCIFTahIfO4f56tEw2krYGm4QjQYEu4/eay9djUbQQn87AAiEA7Kw3Itkw+ZpfghUnxMxVL0WPhzwmG6/s2eNGCX90yd8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjh0fQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqqzw//Rb2wNXwWdN7t9BC/wThhi0qNu/JcTFSVTFNiA55CqzTUoCSG\r\nPktcagOPOFOwQWt7KkE1EMd6xEYeRfOqMuHPWe+F+qdZSdBnOkpgh52HcZj3\r\nRY8NcAXSHb9yAWwwaEekaf6q0a/FEQAYrl1zIFCK1OR68L5I+kQpf8+GAUnB\r\ndYMqHRZC4udk4HJcZnlRkKRPx/GRpxokcQVgJiQieRirH2DshkacUFzZA5dw\r\njr/g5CKlpPyduq58n2Y2tJlD6WoVZ/+AxlxhJPBZzimFLCpN9OOds9Kp3UuV\r\nu3ZNrL/3zoMIIiotQGQl5HKJddBRj4Rvk/hbqZ1/ddt5IhNaZ/5xPdhq1ml4\r\n1ltjP9Z1JDSEIyovorv/y/lV38sxnPAaKzqUgX0BVd1dW1CLuBAxAi8PBL7/\r\nt9BMeX9WWpI4wJoSihkk16oHXmbNHalmETB+E21C+XFpb6bTJ+u5gaQWQjlP\r\nCRm16/8cLNgW+ZAeY50/rLKkx5QMluX9OKpAyDNtX6svC7Xzw/i2xcmi2wjX\r\n47NngF+3nYHbTO3WoNVxUNhAHMT2JOiDfPWBs0E9rtqoAxecUB5KxBRunYnf\r\ndc1qUtno+DvKU2MLmr1kUqRiiy4R2vq4w8v0begc8h35O7ffo85AwiTA+3ia\r\nOXRU9w22JW53g7+nJxqEaOxOTf3kv8evutc=\r\n=vhhN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c3f9c47a1b8fbcf554e1fce6da44837b6d412e2f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.3a1f46c66.0","@material/base":"15.0.0-canary.3a1f46c66.0","@material/shape":"15.0.0-canary.3a1f46c66.0","@material/theme":"15.0.0-canary.3a1f46c66.0","@material/ripple":"15.0.0-canary.3a1f46c66.0","@material/animation":"15.0.0-canary.3a1f46c66.0","@material/elevation":"15.0.0-canary.3a1f46c66.0","@material/typography":"15.0.0-canary.3a1f46c66.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.3a1f46c66.0_1669810128512_0.83361117312499","host":"s3://npm-registry-packages"}},"15.0.0-canary.32d8a9648.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.32d8a9648.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.32d8a9648.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"42878e9719c389700a7602a25e6bd88b251a1eef","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.32d8a9648.0.tgz","fileCount":44,"integrity":"sha512-akLtkKW33JANHFPHyzzswAXFFRfCpWhuptp5wMzYyIvSEZsK1LuMZDTC4uU5HNMS+V6ATij8CNm8P9NhCW3S3w==","signatures":[{"sig":"MEQCIBV5r3GGsxATp1tJ78RpgxoVvWYpAK7g0ayb1tKvCRq8AiBlXUimzA9A20LsIMums4t94Sr9CSFIAvFzua+0EiWX4w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjiOStACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrupQ/9GZhm8x5tUVNHDuipPzSoIMHhMgziTrMPoiNagZO8xsfIiN5Q\r\n9VQ9g6zxIorZ6QgzJKWIfNjd0mR/qXVmYOC9WAaojwCTgILkWPDxTn1T/HXh\r\nTt/vxfEl1tXx5A3pDf/gM8x2BLn16ctoFE7IR58ijW8zw9RGnB7ERlxQ5jDR\r\n47/DPOxXQQ7cJ9QmHvy+20Xjox4zLpc8LrMKcQtX0N1mxY3nq99mCJ8pawXS\r\nlrNIS16ww8/GM6dsWMRMwKmYj6vyq4OwQ4tN0Eu2zxOLFWQV9j9Q1Hqnbhaf\r\nJaI51nX60Hkkmd50uYtf2Gp2Qwl3uiUWijVWBAr2LTt37CVkWIcTMqXpTdhE\r\nYgf05QgQ8+gXBsqOWt83n83kwyfXBYoTvNIswlG20TYwPU+KDj3CohTfhJjs\r\nIFvurRdllbDEGNQhfV4G965ro0B48PjGFoQ78fT6UOhldQXkcFpbExDQtbgU\r\npUJ8HkBjX2wxBLE4oSfna/UPYrD3hlrxo9VAXf1LEhmhUa6/pQhJx+fIAzzM\r\ny5/WTzWRM3e1fhACPJrR3ptig97yhlkmS4UVuFoCqtXp6aAT2l+wThI+zGYc\r\nUfgbZkabf7I9slEk+gU1v7edxP5yWDtsguGXjwsNpRzt4BDRV2Balh8PIWC/\r\nZpJLeOKV1AeGigrLHtu8r8K77ajDQywDknw=\r\n=pz//\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5833a540d2f362be3d86a707323bbeb6cee2c627","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.32d8a9648.0","@material/base":"15.0.0-canary.32d8a9648.0","@material/shape":"15.0.0-canary.32d8a9648.0","@material/theme":"15.0.0-canary.32d8a9648.0","@material/ripple":"15.0.0-canary.32d8a9648.0","@material/animation":"15.0.0-canary.32d8a9648.0","@material/elevation":"15.0.0-canary.32d8a9648.0","@material/typography":"15.0.0-canary.32d8a9648.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.32d8a9648.0_1669915820684_0.8347511390663087","host":"s3://npm-registry-packages"}},"15.0.0-canary.03618ab70.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.03618ab70.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.03618ab70.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c2f2bbcd00296277bedc1fe597fbadf15c99ba83","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.03618ab70.0.tgz","fileCount":44,"integrity":"sha512-LnRK6cG/6dgPuyIZF1oRKf0PDhutunudGBNGvdig6vMuEuuP6U10KtMoP1kd8OEAZsjN14WMLVWnAFXk/Rqi3A==","signatures":[{"sig":"MEQCIBqpkLlJk6QVmOFJZUOkgBt/JjNOZ84lyHC2if0w5OveAiB8goGFSuzTXtbErYLcqpdg3maN+FPyJJmdLWFexVTZxw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjiRTBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqxEg/+K58QOZ46UsxF9Cwjkxr2MDoIzbOcajZPFRFkUJBJnZuoIgD3\r\nJBiPvnHcEjRqDeMiqiHuJiCwjr86k+sg8My6FUOT/5dAa6BAxT3htaTCisoz\r\nrCaQ5X4E4FOeapxET4fnY0ZlNJugKSM0EDafKsmPxQ32t+Xopx+NnjDXN4OC\r\ntXKP6g5ZBJqGRD92Rfyd1sE1RZQxLKgBoSAKpoT0AEj1D0+/bx3Igm4e4PS4\r\nStWloP6u2UIv50jADpgqlFN8fYqLbcArYor9NulyrVzN7V1L3Oay45wRR7cD\r\n0T8CR0JSJQfEQiazLVtMwJmbmSMmrHJvJS7+CrdWBmxOqy26nHKL5lOj9PFH\r\nmuZ4ZNeY8/vjsHuUuWAhCxGY7f4ZqLq85OnySmalJMiu+hpv1UD/CkqjQRgy\r\n/PJ2ER2wfAZ6C23C6SbyEbj4nBUjrLZ6GEEcumFQ6igb9VqLUjsEIbXKdeY5\r\n3JC9VWr6ZzFOLpTawJYsoFZEByjMNdLMVRFS/zKe666zCL57Ws8UYXHK8wuk\r\nXuRjRdnOD9nKt0Y/IPgEdTTLv6YG9mVJkzp4VqgeE9SApIcttObyqeVi21iI\r\nb+zhaWoAp91M364M3WUeGNJCBn6Wni4WIg4yjNDmFxq8fcYM1nVdulniGyJ1\r\nbHqWMznoU5F+zha4ENqXK7elmDIFOOecjk8=\r\n=QpfY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b7755627c14a2cf095b6ee87d1ad15c14430ebad","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.03618ab70.0","@material/base":"15.0.0-canary.03618ab70.0","@material/shape":"15.0.0-canary.03618ab70.0","@material/theme":"15.0.0-canary.03618ab70.0","@material/ripple":"15.0.0-canary.03618ab70.0","@material/animation":"15.0.0-canary.03618ab70.0","@material/elevation":"15.0.0-canary.03618ab70.0","@material/typography":"15.0.0-canary.03618ab70.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.03618ab70.0_1669928129678_0.34278518779483447","host":"s3://npm-registry-packages"}},"15.0.0-canary.68aaed940.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.68aaed940.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.68aaed940.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2aa1abbac4be8413c8cc888668ada7c92d01fc9c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.68aaed940.0.tgz","fileCount":44,"integrity":"sha512-rOmkNDfGaQLvfENEDxPG0zEKjfejcIPZ9RTU/t0++oxiG4h6zcRtndyiUmS67PjKhhb7rZrGiaZ3juKF2elxqA==","signatures":[{"sig":"MEUCIQDsti7VYetuDv8PKZs/tkqLmsjzA47eHnRaXmt8/Dw9+wIgHZpF6AjiZ1s59PKGszGVb8KQ6FYH1XMwpIOSygN815w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjiRvDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmohLQ/+Lk68RaZMWV/9385WphClyDyOYStMKwqwFXGx6FfXFkVRlH7N\r\nV51evA4upP8tz6xARbFWFKuZ1kQxFK6Gbu0YJtEB12gJMAlhyq2vBSF3GnW/\r\nWr3LFxA1u+WrRg4VJ3harr4nID/Tf2of5cjFALGZL8i0ots6lnPj4GUDEgR4\r\niJYxc7brb0H47Z1c1cQVegQwEDn5KwqiTb9TAOwlmBNMEUOr6F2FcUDMf8di\r\n8ONvZ5GvfTK1KiFsh2kZ0ddjOvbzY2YQFIx8JO4vJUq3VDjfYWTiyO1TDSHH\r\nBbznCUMVVBdhgFAOVzwz8yFqSQsC3Ep/Gh5LRTLen1gnSI0QAmmT8uCgQOLV\r\n5tQQzUYC7CIo+ufekp4PUFqNXRQ2r8jxx1la/yZULjkiks6dOi/epBU0tX6f\r\n8rtQgzOTdR27Sm2j7PNAjcbisNqnote+IAn2T0nW6E6r3KgfEihbpRtDytys\r\nCH+bWk9kJCWCYgXJfWaG4nZ5gTVJiD/V6+avkYBlS2KAXNvfTcJUXKB5MDzx\r\n5+rNyo2QG5xgMUL3EJJm0vnQSz+ARvLBQgHjj5c5Tj2uPn++N4OYNm9JtF7B\r\n5WvDqwunLE0gaTEUp7gfgT8IQXmV2rfsv6bkOWNceUNIxNnaa6hHMjKJxW8+\r\nwAwNbCBYAL6y9NKmmfv2UIcSfjKlbDHeQxU=\r\n=F4Re\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6092c4f3bcdf41ae7f55d37c6ad51793eb8f040d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.68aaed940.0","@material/base":"15.0.0-canary.68aaed940.0","@material/shape":"15.0.0-canary.68aaed940.0","@material/theme":"15.0.0-canary.68aaed940.0","@material/ripple":"15.0.0-canary.68aaed940.0","@material/animation":"15.0.0-canary.68aaed940.0","@material/elevation":"15.0.0-canary.68aaed940.0","@material/typography":"15.0.0-canary.68aaed940.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.68aaed940.0_1669929923120_0.3481340789650198","host":"s3://npm-registry-packages"}},"15.0.0-canary.f0a0bbc75.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.f0a0bbc75.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.f0a0bbc75.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"53ac1a5bc63e08650555e31505639ea6e9e46336","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.f0a0bbc75.0.tgz","fileCount":44,"integrity":"sha512-xN+M+QCGtI092c03W7IuJq+a5DiCPPV3qFGx8F/31ht7K2LUkrXgPiz5ADJnbmeZ8fnYxJa04Odu6ZPusToB7g==","signatures":[{"sig":"MEQCIAeTphAWUaYEE5NmrDFHs3VD7GnirYP8+CgjtHcys1emAiAvLYKhi+dyO2Men7eKZiTqZT1qZdSl954ZgxgzHi+VZA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjib8gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpdFBAAo5bZ/PS83aRZAI23d1zD9Exof4ThiJHG2k8L5A7G/52vwpaw\r\n76ybiiRtjxuv45TVfgU51AvzHwXZQ/XS1dyHkVohkxo9ogEwpeTwl6yxt7Kp\r\nFbTftLBB5Md7w5FB597iIt90Md+w0oVHGii6zYjyXISQLqWYjPs5qLpgWI6K\r\nXT37nlANaW/NIkLQRjbysbizeFDGFdB3AjtJx15cQgwx00pNK16LdUkoV+22\r\nK9WdGeidlts0l3hafabDuSHlB94AjqBttTvK8muxcCQwkl63G+CP1pslf7jb\r\nAYR3SagByZxB/OW3O2dADZCdeZnLyq8H4/HEnP12538wv3KSKdH2xBu/xkLN\r\nmxiI6p0/pftADr6QJxHWHiyQMg9xqgFDhgE0wJoeldpNBUduK/tGgbqbKnSP\r\nkrvb36ZLSKRgBdnC1jr3N+sM8lI8FbtM7vXeEC8SzKKUy7EBOlfk++lpOsqo\r\n74vs6ZAZYFiC0zU6BKLs3/S78aNBjkb0f1Cd8ynskoOK9YnqeWMfhoDGUSit\r\nJT03/O7URpp/aYwtKHHIDear/BNX4YESZPu7+ynQcuDFnzPdkzbAmuzniObR\r\no2JqDZ3JyLBuAoBTtv9coH7hEymxxdk59MejHan49LPmpkSnug8h/7x13RnJ\r\nwiwVc7xAxwW+GUXhMllOzB7BU4G9WyvDM1A=\r\n=3Ybm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5111125522be9e3847929d9bbaf323f31e9057c9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.f0a0bbc75.0","@material/base":"15.0.0-canary.f0a0bbc75.0","@material/shape":"15.0.0-canary.f0a0bbc75.0","@material/theme":"15.0.0-canary.f0a0bbc75.0","@material/ripple":"15.0.0-canary.f0a0bbc75.0","@material/animation":"15.0.0-canary.f0a0bbc75.0","@material/elevation":"15.0.0-canary.f0a0bbc75.0","@material/typography":"15.0.0-canary.f0a0bbc75.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.f0a0bbc75.0_1669971744103_0.31861968145601005","host":"s3://npm-registry-packages"}},"15.0.0-canary.dd99c8764.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.dd99c8764.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.dd99c8764.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a15a4b1a8b3055dcc6b2a127d6c7bea3b43e4f82","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.dd99c8764.0.tgz","fileCount":44,"integrity":"sha512-QgLZO42EhnrtWCr0dGcdslKtmt3i0578lINrFMNvfYm8abbyNJdd9NRjpxavgy9IOpbUwNoHsLaTj3E8drytFQ==","signatures":[{"sig":"MEQCID4pZzBfozREWA9nJXfIIkcErd+CUSAMxuwGLDuZ6F6YAiAxJkHo24uR2/oZS3DxvnWWVztIDKs0LlXHfEqlr7Vrfw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjigVgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoU3A//evD8uEqJKnrgl+VmAoK6DVACdbmqRtKgUsQ8VJMmBrZhKSv7\r\neUaYqP811vLtWuBUP6sXNUEBk8Ft9yC55MKz6gvFmQp1NvdVNBQ+SsSVMkY0\r\nhogUDBH4LJXmiTTc3g0pUXUNVAcsAR6+n4+UFV1H7F7uq6uTXbzUlrYFMlxz\r\nYl6g1KSnjSchPemeOdFNxbGVMX+tuKh0axc1aeH2J/Hhu4lKOFvPGrfEnBG4\r\n5KhLbTqSKYxDIIz/wn0G2zQ1ikpD3Nlx319pACtBTkmiUZPwjmTJmJ9L0G1n\r\ns8lwR7d4H5A8GUHrbjYLFXhH3p+YKfxSLSGIibT+REzFPHJ7fNSq2m6kBRw/\r\nxy0iIuooyFRQYhXip1UpLOLmZ9lCebLWCLOVg5OyFJtqDy+yYqFrufBr5w0x\r\nsEuMyKmjyuUTpgBxHrlMFriEht5clL00qGlXwON/ZXfEmvufz7nnZC0zugAG\r\n73oT+TxH5c5J30Wxds3K4kn5jdES5Z2+fHwrNvyPOA0r4f3A4yJWMB4m0dhB\r\ndCOgLQaFsFhzKG+GOKmd1HS30wYnH+cRZVENxvftoJ+9xQ3oyKbO7YoyWa/d\r\nvb+X2CQu7KW2ERG/+ppBeDn+aZdLctNxvJfpqs4+lAvl4TgZJb2oH5JGOJ1s\r\nnrpXccHnw4z0EeX/gobZcMWubwMTJu0eS1s=\r\n=GXyl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a9ff7973c7dab53b620d5be8d56e0c491cc5e7ed","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.dd99c8764.0","@material/base":"15.0.0-canary.dd99c8764.0","@material/shape":"15.0.0-canary.dd99c8764.0","@material/theme":"15.0.0-canary.dd99c8764.0","@material/ripple":"15.0.0-canary.dd99c8764.0","@material/animation":"15.0.0-canary.dd99c8764.0","@material/elevation":"15.0.0-canary.dd99c8764.0","@material/typography":"15.0.0-canary.dd99c8764.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.dd99c8764.0_1669989728110_0.559775763259104","host":"s3://npm-registry-packages"}},"15.0.0-canary.fabdcca3a.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.fabdcca3a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.fabdcca3a.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4c375527a43a3b514464198da898ff51e8d36170","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.fabdcca3a.0.tgz","fileCount":44,"integrity":"sha512-ifW7fJAg99s3K06oQITyBeCfjbNWvBWJo7P2UU7BJ3GvYKuFmuAEF5XxFSNQ7pg/t+rWOULUE1C86tb6UN//9g==","signatures":[{"sig":"MEUCIQCEVezywiYc8UfNEeZ5eztem3gJSq437bfwHz0Yp+ubJgIgEAKIIAjhegJSKzk+mYJzod/3nDPN9YKO89LKuE1hOMw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjihTRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqAlA//VSOd1o9d+nmFOvC61bHHG/5R7btQv6BJFG3u9m3ABhRzChP2\r\nTAao6YKhA/sFu3wrVI60i+ozk0InsZ2nZd2DdyAhSAzRVWWEV2y4dSW29oh1\r\nvzzVVjWBtfIVoS2Hze1OEwwMGVkzMwDWVMqktfrhdn0U0suFwnecXriGoung\r\n/+AeSZOAIK9+j3tASyd9VHDw/B6OCGpm4RhjJ9t7Uti50tRFm6VYdXwLIH8b\r\nMindxQUDzO0nMYDzOrgM+jfaPIBabYQeIGPde2qEb9J7+yi9csisXYJfaRoz\r\nGQ5rlLxxUC+Odd7Dg6Fd397zmuvkh7ap4O0/o+FOyQ9ZjRddgKk0tulhokKH\r\nsisjlPoNQ4oXi8W5uB221u0nPzgNagmfryYmxqv1cti3XbTHinYWjWXKvicL\r\nCdHzgxUv4Qb9QiuQCTRjnpu79ChmaVOkesujJOTEj55WWAvQC8u1XbUEIt09\r\nncGDB+mKX56GvdphJcB6VpY4gHlzxplEroAKU+QtZIGsS9onMdUQHbAiX4Ux\r\nF06ANv4mW9ZMQaRuETZh/awjlkqSmPMDaIckUi/2M8bh65RMFSDquJx/1GC/\r\njZ+ZSbiwtbOcmU1Uh2h+rRC07WsIorh/yphxGc46H4blE/6NB+T0xoXNk57H\r\nv9F5lLwRY54j2tuqU7sfdRnmvitIXqiSB4M=\r\n=d9m6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"18ea36a1261419acae3218fc917dab4ca111bb9d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.fabdcca3a.0","@material/base":"15.0.0-canary.fabdcca3a.0","@material/shape":"15.0.0-canary.fabdcca3a.0","@material/theme":"15.0.0-canary.fabdcca3a.0","@material/ripple":"15.0.0-canary.fabdcca3a.0","@material/animation":"15.0.0-canary.fabdcca3a.0","@material/elevation":"15.0.0-canary.fabdcca3a.0","@material/typography":"15.0.0-canary.fabdcca3a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.fabdcca3a.0_1669993680783_0.3906490128291311","host":"s3://npm-registry-packages"}},"15.0.0-canary.2d26722d2.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.2d26722d2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.2d26722d2.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ceabe82afba1383568fd39a86f3644ab3852018c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.2d26722d2.0.tgz","fileCount":44,"integrity":"sha512-bomSrWp9RoYDo7C3YYe2IBCIoUVfdlVMNzmHeBDs5QH9uFzJds4CeFe9vQ/1hzead9Zp6cCZrmvW0f5qbZChhg==","signatures":[{"sig":"MEUCIF4GMUlwf0TGiFkaKajNJ4GPiUx8CZKm6Kwx6TRxIRltAiEAneVCclrav1AVV/zf/h2Zgff4Pw3J9dWPTq4Kyoqk4QE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjiieAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqvZQ//QR9BIdHpAaZ414VXUyMSCqlCcZ467tUsGLiJp49J5nLFjkdf\r\n+ipFA/i29Xin4YHHxBX9K0cDrCue2uAOpkQc+NlQsju6eP+A78mg0CoK6hkd\r\n2LcU8cnpuaJWzRlLECs5kJJxHCZiTERMoEnjIfAGqtPekCyXih+h8cZhaqG0\r\nXZt8UA5lhGQhoMTiK0kDq+wr8EitjMshM/c1nbpXptx+by44DouudFFW9FNk\r\n6bjG2BvmPD+OLyNNjqxjCA6rBGDDil3b1kNpMa8Moey66d7dJSmDlNE1Cm7B\r\n5agCJp1FfwLvbn08AUf9GGbSfPUokULpqrxtuxRKewYA1SD47ft7uMhIXxDu\r\nPU8nU7kMVtccBpCu6WDFa2QRyO5C9WVkohPV4EUh5t6IJ3EEomfFqb6JaKK/\r\nTA6ke3ZJLebWjo2wBClbpeIDD0pzbbY3z4XPHXN60lFSWLroN2GUDjiwcFys\r\nSkqfwxo8kDrLqE34LNSpEPHDYPq89s+YA+WSi/5mD6MlAT7WSMEoxCIIMKmm\r\nGv6aU8TVgCUwHfnNDWZSkAJgYH5NYZhvJ/OvY9anDBkZAVmdgNVz0s54EOWh\r\nyqJlhtoslGgBOUd9mFEG9msSUYYwFCLaTz9RgJICfrb7dgvCzxuXV9Yd/47g\r\nJePfuEd8oTx1Y+OJe31wqgx4ELXkMLiY3js=\r\n=3yd/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"76df2659d7f71f74a86512b38245422ca356fe12","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.2d26722d2.0","@material/base":"15.0.0-canary.2d26722d2.0","@material/shape":"15.0.0-canary.2d26722d2.0","@material/theme":"15.0.0-canary.2d26722d2.0","@material/ripple":"15.0.0-canary.2d26722d2.0","@material/animation":"15.0.0-canary.2d26722d2.0","@material/elevation":"15.0.0-canary.2d26722d2.0","@material/typography":"15.0.0-canary.2d26722d2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.2d26722d2.0_1669998464643_0.5141192252613456","host":"s3://npm-registry-packages"}},"15.0.0-canary.eaa0c3a86.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.eaa0c3a86.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.eaa0c3a86.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"545cee48a0c4b8227950e64ed8d6599b2d80a550","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.eaa0c3a86.0.tgz","fileCount":44,"integrity":"sha512-cYNTVbdfcGdwk4Wu8np4PqzHfdodxBnwNCCHC1YMVpA89ecztWptUOIX6cG2PqFh2h2EVgl2LYTWAYsiHqpsdA==","signatures":[{"sig":"MEQCIGB4PWQ6Caeq/A7utAkI5ULtL8de5DpXwIb4ClIpJmceAiBK+37v9QjAJl+CLfsuEg8ZJ0rEm7TVPAxgW8ydHzB/ZQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjijlUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr9dA/+KZHHyaxbN1Kst/9a49DN12oPpAqCOCl++Ts7d+9EKllhSnSD\r\n6jvEd5fl2X+trwc+2b83jpSnDHBdixNgfPfcRcU3Az+J8GlqANddSJERbTU7\r\nLH4HwUyCQeRr6tJvDsomBS46JSQ+EMH0ErlI0cXaG0P/s/TXnTiyi6PbhqOv\r\nUtlJ+U1t7hQc6QDP0rKNUGB/omq3Yw///8ofWGQtvp5REkACzSg6EPPx7YlA\r\n78eyZI00x9yjt+8AnUCilsSWjZVVqzQYu8jtNinvzex336OsArScdXgm+ev0\r\nNJC+Mokpt9HUa0WEyZOPrpIBHp3+H3+ph1Z3JF0mCzxz01GBag3Rpg9eQLEU\r\nO9g/qADq9jgkKmsursHyBCXhvTZte4xI5mU/gxNY3LymO9n6HeQfEK2lbkWD\r\nhWkR1NyBE4mfg2grE9lg1aTe4+lmoSJGUnVRP4GINjylMFVcjI5mra/nJgum\r\nJyQhOrk296LRiW9EVUOftyk1nRQn4nAgj3cy1rYHwbfX47BVkmIMvR3UD9/I\r\nkiRieetkubLAclT6XKxXxwei2+Yi7ITCWJ8c0BXvOmIAlAZRVLjw50QQQe3Z\r\n32l2Aa48EV0kvlOF5lzmR/W4sMntbUI9hVm0QYaPJrHwp90hhrmU4wtH3DbP\r\nx/92drc7tmuk/XwDaSCOQC5VFXSsHiSWGEw=\r\n=vc7n\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c54316c7c60bacf8254758124c9235dc48d44064","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.eaa0c3a86.0","@material/base":"15.0.0-canary.eaa0c3a86.0","@material/shape":"15.0.0-canary.eaa0c3a86.0","@material/theme":"15.0.0-canary.eaa0c3a86.0","@material/ripple":"15.0.0-canary.eaa0c3a86.0","@material/animation":"15.0.0-canary.eaa0c3a86.0","@material/elevation":"15.0.0-canary.eaa0c3a86.0","@material/typography":"15.0.0-canary.eaa0c3a86.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.eaa0c3a86.0_1670003027952_0.030286358007908465","host":"s3://npm-registry-packages"}},"15.0.0-canary.79a613bbd.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.79a613bbd.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.79a613bbd.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d4e35390f7484a430d1bd1311bfb16349ab11d6c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.79a613bbd.0.tgz","fileCount":44,"integrity":"sha512-P6BlFihTxDPzJGSuBbySgRK6UhvXHs+w98rH7I6cZTDnpozidl2Q1McvF1RIZ8iEirpShq1Ha9JE3uKbu8kOdQ==","signatures":[{"sig":"MEUCIQDe7c4r+ZCpc3YG72hKqktZuBURSLYzpfNBs9Unx38fBwIgb6XPqMDVqZeDXKS9zsR4h+dN+6ZvaVrtXKfK8A0pT9w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjj1EKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq67A/+McvEXp2fs7hOSAxqN3Lm4NDRX6dOfxX5BnBORGsHozFO+e/s\r\n8z/PoOan1B7o3zFv5j5Bqqu3ZgRn+t07ibx1XWw4V2k3YfuHwVog6XV/fxjr\r\nmYrxTKqMdQDG7IEVGb7wxl7DGjlqNwN5j4vZkr5TjfUHDu1TCZVAUPuViAXx\r\nzGAwjSjA0W72/X/DNMZfIkVhJTVJfGuK96UXNNWZf/Z8pTEBQxjQEp/qAZQj\r\nkh951wIXF8qvOJSes5tDZJpGuprDRIyTRChy3dd9cU48r07apcV67HPLdgSD\r\nT3ivki306tZdA4Ved1oyOerWWjDRxpmy9HZsq59LGjHMCvW0IAcxm/9ezZkt\r\n7EjkDd8KVqcgujQ7cyXJzgO2mObBJWV5fWHCBG4IQDgqWJfaR1oXw32NH2eD\r\nPMCILtb5yqyssx1K27YhUoWnU+A9jsiakHy4GfpXDBL3imXmYgYhh43v2kSp\r\nM6FXeBDcEzyypqL9I3KDEUmsnROWLVrOsWJISTF+E0F/NF/O9BJCgjFS2694\r\nTVZY5EM3jkC4tPidSaLuxhBhfay/GGqcHYeFRX9JM3Buagv7qjiCOD5BuBzZ\r\nrsCoulbZXABP2IoFDlhUA9cFEH9YN+fEE02qw5JJG/adiqMobWXki3HOMZ/f\r\nttFiJbUi2mOZ3n+CUxV36nlQ8WA5333BLTI=\r\n=LF5D\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"755ec1ef0b2cccdcb0c8b888d199b4748e3ba10a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.79a613bbd.0","@material/base":"15.0.0-canary.79a613bbd.0","@material/shape":"15.0.0-canary.79a613bbd.0","@material/theme":"15.0.0-canary.79a613bbd.0","@material/ripple":"15.0.0-canary.79a613bbd.0","@material/animation":"15.0.0-canary.79a613bbd.0","@material/elevation":"15.0.0-canary.79a613bbd.0","@material/typography":"15.0.0-canary.79a613bbd.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.79a613bbd.0_1670336778238_0.8698963290450283","host":"s3://npm-registry-packages"}},"15.0.0-canary.c871fe61e.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.c871fe61e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.c871fe61e.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fc07639f15de7d2d10751b02fe5674c999991c55","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.c871fe61e.0.tgz","fileCount":44,"integrity":"sha512-9SIFgweYEV8nHd2K9Z8WoPByoljogL0DRiIr59/4FzFEx0i3Rw1FWGyMR2zAPl0eEzfhwE030vsdQKKbpOjE3A==","signatures":[{"sig":"MEYCIQCb8aMf1b6ZF0bOMXdlko0w4nKBqFjRkGu5OytjEgHpogIhAJoOyjsy/nJ1dHD5gFd9zi9eeVDsFrG1/AN7RutERdqk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkEZbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpwiw/9HEvh+x00ptzwQtHKLYrlY96183nghvdIClsDZywaL/X6gR2J\r\nV2K9F1PXtNobJ2TwQLWZOu4kb7vsMJ1EaJ/iRZBbdR8eaeWwKwrVBTdtLJr/\r\nRbi493Mc5vt8vY9fQAKA25swgRMO3MQpPPLtYqu31ZR8ml567GrGFHa4pdqu\r\nU8FGBSbNnb18CoNlOmWh4L+vq5ZtvjAHTZm1ffA4pZ5X15wsBGDxyFrXix5b\r\ne45GT9t5MJcX99WyJTqarXQxCxPgu+p0Rl7oDFjZz1mnbhvgNZ89+xZ5fZdm\r\n0sPjcFj0YdJCFSIrm70DOgWwB5ttA5K6VtGyVZMxlGjBsNOdEtNqimKiGxuo\r\nQ1tcyrStvguejStsIIe+LaBuq2lmfCqqzzc48rmHoOMuq/4/XZ7JCtzavfoH\r\naR3Bz0VbUX5rJJIkxAEYHU3ujhsp9u2DIQnklq7YqcSTZV5HXB48bODAFQKA\r\nzxD34FSaEq7P0sJ2f5qpGFPtuUHSFS53aR1dY4fu97xhoCBxxVbqAlunfEyT\r\nisdZC6x0Mmdm3WggBJbpe1Tz3Gl42oBYJt3awWvj+y5F53TyRAGxnpadfoqk\r\nhMl7BqkMpGyNo/mvmrkRZv7Fr0J8a1MyeprnRfQhQ6Q2YgIsYPonvM6w7sBE\r\n9EDguBaIKkSyZFkRmsNL+gKvcdYvgqZDB7A=\r\n=oeNm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e69be4936d1304c30ff7b83af8488b43c0ad5fef","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.c871fe61e.0","@material/base":"15.0.0-canary.c871fe61e.0","@material/shape":"15.0.0-canary.c871fe61e.0","@material/theme":"15.0.0-canary.c871fe61e.0","@material/ripple":"15.0.0-canary.c871fe61e.0","@material/animation":"15.0.0-canary.c871fe61e.0","@material/elevation":"15.0.0-canary.c871fe61e.0","@material/typography":"15.0.0-canary.c871fe61e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.c871fe61e.0_1670399578852_0.05690665491110258","host":"s3://npm-registry-packages"}},"15.0.0-canary.9eaee7936.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.9eaee7936.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.9eaee7936.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4e9f3e00a84b0968a56d9896ac2f99fb7d7b28b6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.9eaee7936.0.tgz","fileCount":44,"integrity":"sha512-pAHYrz1OQ3wkIlRAJpuuvZLAawC4OA5YHMYQudovHWAvVyCwym38W9bUGfj7bnbyqBV4T9mtq1mBxnPOhQCI+Q==","signatures":[{"sig":"MEYCIQC+V4SmhnyLDMWiC9JCs7GTEzTdzROexqAXw1Y7ZhCkMAIhAPIRX6VZrahRoB/b/LVQZzGUQrJ94O76lHa9ipWkLZqz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkPG8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpbiA//S8OEEgYE7scT53Tm1dTmrqs+jU3uDcnkNRyS+NfWlFc2Ciju\r\nMYD2HSVMRZoSDi//2VmPq7fj9Ex0iOlY3rinEwgmgmJILSMxujunEQLQpSoq\r\nlm640VbHTc8rPf1x6rmg6MWRmmWZHqgKQ7iKm67oskTyJtQckuB3A9HWOIh3\r\nWFfyteITLn8XCo5kiKa8U6X9eqhhXwshW7Zu4CKZRXyU/XGZElJkIrDadJsE\r\nLBN06/mtUh+PxKx/VKTBO3vILYuHdGOp8/jeSuShiLrNRnDbJ166pjjYtUNg\r\n4GSRG4+ksJ2F0LGanVBxETFkqtyjggUBkYgdqrYvOP3Hy8EW+B6PwmcfYNK3\r\nqvltcRkdhWjq+TX0+cpIL+hf+hjP5JxDcIUyoDLIRl9jn131IeBmzJIXwmkW\r\nGBG/KcAviFt4ad6QrZyUMQbKB1f8JTg4RxbnO7aRl6Ugn+yxv1UPZwsVLIZr\r\nQFMzt+6V8Sby8Ugoi7Y8lkomPUtJ1JFfXv07dp7JUrDje7pdIIWVGp9RMC+J\r\nlzUiVrhx3HvV2D6XTD7DOsYhqiXQ+dLB0JvoaJo9Sg0aQ3MrJLsilQHvUwTW\r\nt3RL0XhOhcPFB7Aq7UzORomCRW3uvaNGNlJmZkaEGwuHAaqNucut50blL107\r\nGX5OyE5kWpY4Y9ZLdss99UfVNVvLxWQW7Fk=\r\n=DE50\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b1b576e68a716d1a80dcdbde7a572c11ca937fef","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.9eaee7936.0","@material/base":"15.0.0-canary.9eaee7936.0","@material/shape":"15.0.0-canary.9eaee7936.0","@material/theme":"15.0.0-canary.9eaee7936.0","@material/ripple":"15.0.0-canary.9eaee7936.0","@material/animation":"15.0.0-canary.9eaee7936.0","@material/elevation":"15.0.0-canary.9eaee7936.0","@material/typography":"15.0.0-canary.9eaee7936.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.9eaee7936.0_1670443452386_0.3984682156891908","host":"s3://npm-registry-packages"}},"15.0.0-canary.1d37bf601.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.1d37bf601.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.1d37bf601.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"79115edbe679e2776ed805217e1a0496f7e79f8c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.1d37bf601.0.tgz","fileCount":44,"integrity":"sha512-rnc+gyS+1ROQeG5UmB4qxqXx0U8pBLmRl/HacKNcjB/sN2ahWefOL8DpZiYUdAUTTvjfUMCM8/8pVN27tGCPRA==","signatures":[{"sig":"MEUCIQDT5Ca9Fiwv5Yto/pAA9DtL6/FcXd7KnDrJi3hNSm5ERQIgbVfCzOXsPqLaJ5T43uuLY4cgv1yD+Yp8SKf9nD4zVMs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkPqyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqs9g//TqLni4j8EevSjtZnJisEiiWdrK4jLChWVkxVIYxtADLZp+zw\r\nbqs7fQyvkDxuQy2nyB5WP0kbtMwS01sQh8gz2g2fcbIVHtUWqwhHEmdcV3vq\r\nQRlLJ6tBoG4RuDFQFPBN2z+ck8d5kaYjQWzB0xDGjPG864Y7XQgKl9YWES9c\r\nalRm7fOU4mONAkd1Y8981lXEcMR5zHzLIrKFd/tjkPB/MVYQD7YZj9zMswPr\r\nrjZ5t0V4aa6q0Dsirb2JtP7SdZB/GqB5pBwRYXyyIKOr1OKzQ7zebCrT4nPJ\r\nuVs4goImRbg52weKiLOIA8+OPrRRjL17w5RFtcociWouONOWd60mxfx0jUVS\r\nG5qFlUk0+KMyrJ2U8tbfZwi2dgqMtFMjfheqmvQdKK7clMDLVr8aLP8y3ncy\r\neMulBaL9Ktq07uGfllpaTTTbsIQ5Yw8d7wCzvHnUYP2eMpvMsGPTfvtADj/a\r\nl7YFh8QZnQ2t0/e/XOQCCGzA7Hv2/7r2NR6TodF/TUVXYbmW4DNZGPPdJONb\r\n1agWky2GI5hkzfxVo+tLsvgrn/teRuhW321GyBUCJbLv+L6A6khQXECG8Tfu\r\n8Yk5qwPvkdADCUM+42ISIh8eDPiAUkYz2Z66giQSHmPRO8/k5XXGgxpq2ccb\r\nkf20/l7HfLy8M+GffcPtHIjdpEwqhjHY8+8=\r\n=iiUC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"747a03f19fc88f7a2358a382989e729013e06df4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.1d37bf601.0","@material/base":"15.0.0-canary.1d37bf601.0","@material/shape":"15.0.0-canary.1d37bf601.0","@material/theme":"15.0.0-canary.1d37bf601.0","@material/ripple":"15.0.0-canary.1d37bf601.0","@material/animation":"15.0.0-canary.1d37bf601.0","@material/elevation":"15.0.0-canary.1d37bf601.0","@material/typography":"15.0.0-canary.1d37bf601.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.1d37bf601.0_1670445746424_0.44566822198721723","host":"s3://npm-registry-packages"}},"15.0.0-canary.a5fe069d5.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a5fe069d5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a5fe069d5.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"563ee323bb46413213ac0a90da41869658d6c59e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a5fe069d5.0.tgz","fileCount":44,"integrity":"sha512-+wEPpEOBXVTFnOR10u10LKwCuxyov8ySeH5BAwXLMc0xbyAIZo1dbZdS6Y4jyp7s7HJGPHTa8BCzPlQuz/i4Ag==","signatures":[{"sig":"MEQCIAIQAlVN68bjw32EQpl3E0TAT1+vWXACHwthAeG717oNAiAschbKGBOdzs+VPCoLapIZLuRkBJ5UvtAm51Sve8ob/w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjk4JRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrSQA//XcEtMG779vLhgkduRg9hmqQrA2Ilyu1BtWW1WmWQhDhZVjA7\r\nHBDVULEQFTIs9+I8h5HR02uj+O9A5jzIs2sxpkay88bIG2NNudM/pHAh3SH3\r\nmYfT0MYAilwcDIbudDpZ5aZ9jDWCTg3tupVVjeOh+wSeIVkHwjLXQYotgu0Q\r\nKFO9ItCeAACeuDoZTn9mpC9yBVQq+WIKxLUzjJMAnhFttxdETm6WfVB8sGV+\r\nDcghf0EKxl5NjQ+I5WeM2nwcFs3IQe+icBjndF23DNkCRKifOtNnFkaQYFuI\r\njISJfiMMavXnLCrDPGyaAHZKZYBtSnS/tlPQ6S6f4GFum/yc6mt8nONx/GXp\r\ntgTzG3WYDLeCMBSiXVQE8vlstdvMlKDR5NH+ATu7wHQLzUXY4LZg0LbJZxW/\r\nFJbJdQn1k7+JDFZHfHzJH5UJqPFI+72BdoIp5j55jbpetXd56QUa7pSICsDK\r\nd2gXoceSxnpAoEZsutdc8co1fneTNmR8ohy+LgDpkpooOQaoF3nKX1Wl2x9b\r\nyt+ZIASJsFxxA41LuWPotQ7/GQxzxj+/AFA+I12A//AgGmx6GiKMVojGffDY\r\nKJcxCEmnNDeeu/fuRsf3cnYAgC9c1dYHpYmxcg8YKDOgkWeRAxqeyfiPs7GH\r\nyD5/Dkor3D1BhTmGJWblnlbH9eQhmzUAocg=\r\n=1rud\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c41dbe93704a7d03ea10d8f1b4de13fb8c6e19ab","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a5fe069d5.0","@material/base":"15.0.0-canary.a5fe069d5.0","@material/shape":"15.0.0-canary.a5fe069d5.0","@material/theme":"15.0.0-canary.a5fe069d5.0","@material/ripple":"15.0.0-canary.a5fe069d5.0","@material/animation":"15.0.0-canary.a5fe069d5.0","@material/elevation":"15.0.0-canary.a5fe069d5.0","@material/typography":"15.0.0-canary.a5fe069d5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a5fe069d5.0_1670611536817_0.5826549264539371","host":"s3://npm-registry-packages"}},"15.0.0-canary.ce8b5326f.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.ce8b5326f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.ce8b5326f.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"73317e57735875d4ffdc56c915cf1a300fd6df6a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.ce8b5326f.0.tgz","fileCount":44,"integrity":"sha512-aPqJkH8pTCb0gNqB67OOFGTNSUlQOhqx9gJyfW+lWeGCN8sYAeIXkmo9qIxP/1kDb630jdxRYYIQ0bg4tslTMw==","signatures":[{"sig":"MEYCIQCYlfQr6uG+23BhOw/Ab/z9KlEw1J3yrHYPwBkQ4YKOWAIhALVsZ9gzRZRP/voEOJ8o4+Pg4OBy2nIO56LshxnIny4/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjk8VqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHNRAAom4nvdRtw2d9x48OC6ASyDNG4IfNfXmlKSPVN2mKA+S+YrpS\r\nI+7Q5duhSjHJ74TjpAHNGrPSWxkfgLPNGq9TlIqlyGULVN1H/8o7Mf2TfyuP\r\nLY9ZTGLpjCdQBJVl2rnG8wm0LkKB0QbyDYOjLTJXiMYwywoFmT1hzKOXM2RD\r\nnuojOomVQosfpM3HbYyTR5cEOzSQ4ZzyUfLdAoV0zgFxkN/lrpD5dZCzncaS\r\nk7gQVX84N9Vat0EW1eXAt8D5oIMbWMHLjP+wT4bRz2je7c6mGJtLGob9wzl6\r\nkQLJO5OhXiyMKoLvOtzEr3eZQ1ztHQsRPMNDZUxNTcVe+zGiSXerNuAfajUH\r\npX3dWd236VPMaNDKf+CLTdHfiAvUsvUFe/ZYN6b1ZZ1Zpu2HkzIyGve02Q5Y\r\nOnhSHyOFYp7tIG6+t1wLWlEV2IPHKXuTc2YSdSOwdYvGi0DfTRH6qQOVBCfV\r\nmJB6vPuZYQQUChsWcgZVchYqLPsooBW4wYgYTnYsrlTdocDQNJh64pWdNJze\r\nKRgPw+hvuHo/JrqLy+vuSPtJ9XJFzhb0T8YUeionEu9XKnjIf18dn+vsx1XD\r\nFqiddqCgXhOqKuUvV4YMwZL0kyrS4/O+jj1xS+IOVhzJJu8kKp9NtI49RxVZ\r\ntYDpJgwQv/QW7NXdB1k0CE9qEDXo7tAbzBg=\r\n=IdsL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8ff7f9974a16b8178376e943748356193d364587","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.ce8b5326f.0","@material/base":"15.0.0-canary.ce8b5326f.0","@material/shape":"15.0.0-canary.ce8b5326f.0","@material/theme":"15.0.0-canary.ce8b5326f.0","@material/ripple":"15.0.0-canary.ce8b5326f.0","@material/animation":"15.0.0-canary.ce8b5326f.0","@material/elevation":"15.0.0-canary.ce8b5326f.0","@material/typography":"15.0.0-canary.ce8b5326f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.ce8b5326f.0_1670628714707_0.1536457921413421","host":"s3://npm-registry-packages"}},"15.0.0-canary.43f5323bc.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.43f5323bc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.43f5323bc.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d4b15f05020a01298eef8ddad015d44edcca7995","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.43f5323bc.0.tgz","fileCount":44,"integrity":"sha512-dtjeDpByNH2OwlR5IZ3KuwK2hOTXkXdmYQLFCrvSiPTH52yQA83B7HRfKsq0c5Nd5A2azeqvrz6ax5gyPyhb1g==","signatures":[{"sig":"MEUCIDZL7r394ePTeCvDuh6TxGtDx4dcvBMFVJFHrIj4psWSAiEAxN1y37ylZay1SEkvwzTlyHI2Ac9cjYrw5cN/G0r08uI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjl1sAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoR7Q/6AvyHzlEHUy2PQ+o6OvoC0yqYESnL0nW1L/L5SAZtUMH/LUlj\r\nmAL9FVqJtA1JdKLu9Z29R3Q0F1TyHHEF/rq/3J4ZBttS1ZARvA9rDgyo8Q1B\r\nRTqHhdgi7xVs8jc4jWk3X0JOXPJEb7Lu5kmlvpCiWkcsUuBcW3X2bKTYrR+G\r\ndv+E3gI1RvxRShHEocJ1BxHhTWWXau/crBSI2N5JzpvaJf6Z0OQUudPOa/vm\r\nmjK5+jTkgTaCBwDXbWKSkpMg9PRyT8EVYS7q1raU3B7ZGybzh9MRwTb4xA8u\r\nA+U1m7oZw3h4OdynocMrUkF5shfOF6oaTqdmjeI+WAZ0O+LcylNReDCcrYdh\r\n/s840U+fyuhqe0tQla9YE5OdKqR6hNvySPquLzN0PWqIgG0mo+IQGtOJ94Zb\r\n95l8cWkapeZSTSjkavMthK9GiGlBUAi3o0+VDCbjxexSBmj9XFhw6mDCeAUm\r\n7ZWG+Tb0whH0M+cX3fje1D1qUBPVFgx0scU2dB3MJNFErhLwIMhAqX1tjn+e\r\noJVu7P+WOtkjY33wtFZiTwBn159Ls8yvgBiNGYphDkF97jcWUgsMQBa+reev\r\nNKJfTUkYaXaypNhOFqUuXVViDW52IKt2NHb5qeDvNcmr9fEcsVtEYr+uJues\r\nn5HYp6ETwnTXb7C9Udk4TswDL0hWnsLDrAE=\r\n=6Uop\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"00be798d56184d5daa74ad6f53d4992db90688bc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.43f5323bc.0","@material/base":"15.0.0-canary.43f5323bc.0","@material/shape":"15.0.0-canary.43f5323bc.0","@material/theme":"15.0.0-canary.43f5323bc.0","@material/ripple":"15.0.0-canary.43f5323bc.0","@material/animation":"15.0.0-canary.43f5323bc.0","@material/elevation":"15.0.0-canary.43f5323bc.0","@material/typography":"15.0.0-canary.43f5323bc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.43f5323bc.0_1670863616251_0.22303876022768487","host":"s3://npm-registry-packages"}},"15.0.0-canary.5490e32e7.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.5490e32e7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.5490e32e7.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e750367e53189a92385196df02f8309b5f2ac21e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.5490e32e7.0.tgz","fileCount":44,"integrity":"sha512-jqGLDsRzJa57XgJXCCHJzePPor2eYVL/V6prfwOCsg5i0oEEO7+rv+fiVRVbt3pHbissT4Rr164ST9IZgMIVDA==","signatures":[{"sig":"MEQCIB2s1qZoUY0YDODgYfZ3SB1NR4np7AjICYu2V7wpGpFSAiAk/DZtYoJwt+UEWCmFjwdu8nLZUOFpRPT7MwfEDC8SeA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjl17cACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr5PBAAmcW6Gl4tU3VLF14yAotG1RVzz1PhmgH/75wm9/zh444gcln+\r\ncsrOZiDC5LSTvZT5+7QTaQOzrSEIsdFMysODjxA+OLqrEVUEdP6RcUb+bghY\r\nEyvMfsHKjI1To40jk0M1Xkjy5XJ0OHM9Rk/lekKdaQ9+4ka/kZmomp3Qka87\r\nAwZF7+dmB27WkfYtFlHSgW0YUqjU84jpqrnsJcQsCdk4++JzUfuaFrKJj3k4\r\niXrCYT4Hcgg7Y60+rL5eKBFDeTafLgb23NUda89grfa1Zp59PMvZIErtwbiT\r\nW0qPd9eVupaLmURbmbhAf1RBtndAAP6q/OV2qP12CutwvQ6NjaRTtVrg0/U3\r\n/1WiaRCQEgC+sfgrym8oOT80Ss6cTP1qXO55raPyIX8iY8Pwmba5A8Z6LSDf\r\nVVW2LhlpZP0IMVVzAFJTgVDvEZJFEowjoEeLLo2u8TQQI0L382txWvxuhBzU\r\nJvhuLbbV0kckUeKq61vkKp1V9YbHnNXfyyEA3EWJvw+4gbqpmO9ghoDk2KhD\r\nS1g/8LRrRXDeWegmUPuUZRRy4miBL48zWj/B+CvSfL8c1ioUFOhzUxJNAmae\r\n0sdp/+oTYgTUxOBgGc9pBneF6oTSkMsgJr1mIi4lRY8gBvFu8AKv5yv/LxYD\r\nAlqial3jbdssS29QsQRVj7q/2tYDe2FaZP0=\r\n=bpK9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"968b84204c7a8626355569e2b90063abd574f7a8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.5490e32e7.0","@material/base":"15.0.0-canary.5490e32e7.0","@material/shape":"15.0.0-canary.5490e32e7.0","@material/theme":"15.0.0-canary.5490e32e7.0","@material/ripple":"15.0.0-canary.5490e32e7.0","@material/animation":"15.0.0-canary.5490e32e7.0","@material/elevation":"15.0.0-canary.5490e32e7.0","@material/typography":"15.0.0-canary.5490e32e7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.5490e32e7.0_1670864604378_0.36190325656975864","host":"s3://npm-registry-packages"}},"15.0.0-canary.817002c29.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.817002c29.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.817002c29.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"37672546103176afee5b7a5e3abf77edd4b9604d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.817002c29.0.tgz","fileCount":44,"integrity":"sha512-dYNnR82vpihEFbPowdAfnCjLJQ8IHHu/QiH2mJ9VtY6UYJ4/q6DM26EcNmaa6ipI2OnhVYcxg6b5uAabgVf6Yg==","signatures":[{"sig":"MEQCIBKFgm+jpJcuBEwFeiufjUOMozKbOZKdDjl7km6rwPDVAiAqU/zeigrK/cOWWPrEAhWbSF5uE4EEGl5Dp/q8Wlv4xQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmPTCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6zg/9GV7OzfP+iCwHjkGhh1VqRwnCr4VFqt67STJINlqR52iE7iVl\r\nghb5HqXNBvxvZAvUn2NIWwHIlWOjJtrrydg5mWzzKckgqsMLRHtwLUo4S/tQ\r\nD1CBcitTiHGr3yaM/CXzaG28z5Lnz/1DE6LztvaeJ2567LCBhWBWRQWxgcJx\r\nZGfZxb6z45urHUYHHSsxslWuZqOBOPHm2i2jF4fIWnMtss/mfHj6jiqWmwCO\r\nYWgkcLtyA33AdegI5QqpFiSdjFeDRmiI7pSat6NaJs7SG7eK1Hl0joyWmIZy\r\nVbsahSA5ZU1/WHaQEM/1T3VMQR1rH2SROnJq0luU3rYXeHwhIWxLcFbkGaUQ\r\nhTdH0fU3CB2u4Re58Cj6xkgovGopvTy6c19ycfog5Y23e+XH276L4o1QwYst\r\nRvp4q1W8MySjfXmhJmwBqzGCdtRB7pFeDIgZap65pqShYVqZrHoybognw1hd\r\nwPZVUnF6sfj9yL1+nhtq0/9R8R+SixbCvCVhvLj+Vi7Ctcn24PBurR+6iDFh\r\nLquCzAjVcjMdX7rdWpWaZyffvegh3cuI6e7Yq4VK7IyeSzQwZfWR12KW2NiK\r\n3ZFgnp+j/HPpni3Ly96s/f8WrpC9PmDRBkSv8vGpBN7ZhaXkaMS8y00uy1X/\r\nn2Jel/Q5nfDPH9JM6/h+RGBUw5iT1/Z+51g=\r\n=FCPv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8a85122d0f4bac7142c66fa54e2fe9a569e7c4a3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.817002c29.0","@material/base":"15.0.0-canary.817002c29.0","@material/shape":"15.0.0-canary.817002c29.0","@material/theme":"15.0.0-canary.817002c29.0","@material/ripple":"15.0.0-canary.817002c29.0","@material/animation":"15.0.0-canary.817002c29.0","@material/elevation":"15.0.0-canary.817002c29.0","@material/typography":"15.0.0-canary.817002c29.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.817002c29.0_1670968514274_0.5160363605820972","host":"s3://npm-registry-packages"}},"15.0.0-canary.313a1326a.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.313a1326a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.313a1326a.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"02f42dbc24c536fe3cec2da301348628d9425f5f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.313a1326a.0.tgz","fileCount":44,"integrity":"sha512-6QwS0xnY+SmAK68h+l9LM4wDic7CP2EJIdylk7TfsnbcOaZdWuYwob2MrgQu3OFOUC2YDFA5AN1YMfl7n3x1Pw==","signatures":[{"sig":"MEYCIQCqvjGUpEZOVwesOVQA8WSx3rym/k4LWSE/iygou86OIwIhAPafiodnSya+aBbUqGZVG0o19iD4tWzsYFBgem78oNXU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmaWrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp4iQ/+Kh9k3XFUkcQxTxgV2wEmWs7AjV5AZT/aVWRnIxBIfpnD7sRH\r\n2lYMFXDVswozIhGBgCXENVlOAHSfuKD+hTEb45GCbc7mwe8tt3SreK8EF32+\r\ngpDFE5nQNzD8TBIxQfleBZkfxLxZqN8UegfMf745+ahqKq+QY9/cakWajecS\r\nV7OpabfL0AcD2AQfrLtc2tncat0sMgtF9crEhQLsOq/sK/iLZd4ORJFrlDjJ\r\n5QVXgIbzYvojun5dcxMWVyFoQCZgOinAwONGFij/FEfpV45SWeOUSvwW2gGI\r\nUYi9ycAtV9Yn+tLKVYOkrIHB2fxHVtvzLDj3pZz9MD6CYvXfejzXZQzgZOCW\r\nlHhiB0vmMXk3Jw8uwwk6rGJVMk793mG9xWSLQqu8czVglyDXlZUrpvLV5uVq\r\ntoEPaOQY+TSo9+ROyU2zvE2Rp1cZojkTCzAPEgKy0fvD2kcsFdyPkxhLnY83\r\nXdHX3zNgIJW+oUE9xLcG369CNwI2sFYp5wg/a9Wn9IXJjNcIWJu0WA68ZaMl\r\nuOrXb2mjqT94hwDFpiZysGWDEPR9L/v+U2nwW9Jsdg0zkBQxVdH9SL0hKpyn\r\ngdxr573Bz4nY2Zul5D+fYaPtUb7S1t2HQalC+x8oXkRRnKhS0JJ2lRzLfLN5\r\nmJe2XIdOiYZeyx822sibPx1kl9/KXHKluh8=\r\n=sn3p\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"899522d523dc8a23968f530bb4de8698a5b0e78a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.313a1326a.0","@material/base":"15.0.0-canary.313a1326a.0","@material/shape":"15.0.0-canary.313a1326a.0","@material/theme":"15.0.0-canary.313a1326a.0","@material/ripple":"15.0.0-canary.313a1326a.0","@material/animation":"15.0.0-canary.313a1326a.0","@material/elevation":"15.0.0-canary.313a1326a.0","@material/typography":"15.0.0-canary.313a1326a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.313a1326a.0_1671013802817_0.32080727937572484","host":"s3://npm-registry-packages"}},"15.0.0-canary.a69c14e10.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a69c14e10.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a69c14e10.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"353b840999ddc894041caa0f96a1875958e21441","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a69c14e10.0.tgz","fileCount":44,"integrity":"sha512-zJ/xTXBm4oewQGor5ETcLWwoNyMEgyTOIp9TUGFgrILZ2W7yqbyVTu0Lsq0++vIAtYShn8kFIDVzEBvi6xeRIw==","signatures":[{"sig":"MEUCIQD6J4oIkXCGhm7ZsCDMs93S+CJzMeXnb+A0wijbDSDvmwIgZ6tXWRvy7xtrr3+6dp4/WMJ0Fvo7rktSRi62F0DUL8A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmbFNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmobXw//WC+/TQdVuq2CopZ7Ff7fiT9e4Du/EPAN89ybWjdIFO7whPaU\r\nIt9s8lJQs84FI9DyGShu4xxwriHksDz+JwCIMqDL9+7UbpQFn8xzoczHEJZM\r\n0p333yN5gdJbY044D819mETczzMltkRbwdakDwwNM06x/D9jm0srGNPHUItQ\r\nz9zU71LJgka1bDtcROAGhYm4i0PsWVFjBQq1mDLWhu4Eon+UHqfJJhxcRTd2\r\nIPBW8PFdv4LJ2kZkkBE7KXVZJ5Eldp2Q+ILVHQclg/270xoasTTPnjkJDuJs\r\n8hLSQjjQ9OfCom+KPV+tzdFaZDUrbMtLqq9WsEi+CUiREhqc/cZIbslXSSN0\r\nm4pgrlXuHfGNMqksWLjGixSlKVjhSZEPWOlBp17A3uEbyTuAoENtDO9k3gp3\r\nOvJk8rTIpSC+Vzm30tBezwEhQGStrZuacuyI3SSPEQBxFOkzoP3M/gmCt32z\r\ndgYmtzv27ZCNglRIByg3YC4onJx5W/KlbFsqzYkgWsd8ta5H7LICu8IvJWJE\r\n8C8I1fu1TzaKzT0neYaiLvbc9dW6Ou+ZUWhGzAedFXX9qzBeKhxEJ9V1NQaS\r\nR5ns5I73M7nVt6C+aOojY4iwRuc2rPBumYTMUBauX0/tVUo98KW7JvMNzXt9\r\nwD4Pqk5iKcMmPDWlfu76K7VcPA12fqSlX3c=\r\n=d8rH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"39b456415cb22d1c1b4de3d505f0e2412c1f5316","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a69c14e10.0","@material/base":"15.0.0-canary.a69c14e10.0","@material/shape":"15.0.0-canary.a69c14e10.0","@material/theme":"15.0.0-canary.a69c14e10.0","@material/ripple":"15.0.0-canary.a69c14e10.0","@material/animation":"15.0.0-canary.a69c14e10.0","@material/elevation":"15.0.0-canary.a69c14e10.0","@material/typography":"15.0.0-canary.a69c14e10.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a69c14e10.0_1671016781578_0.38136265527368374","host":"s3://npm-registry-packages"}},"15.0.0-canary.f43e0ceb5.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.f43e0ceb5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.f43e0ceb5.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8fc78de210c2128b514c597ec992a68604c77a7a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.f43e0ceb5.0.tgz","fileCount":44,"integrity":"sha512-7SwjQCW7RzrX+Bactm680B+vI/G3g1mrFMWjI/aapOr08i6DQwOTdNWEHN8HV+eCFPvzZukXqkW8Xh1rn8wFfg==","signatures":[{"sig":"MEQCIH04QZ/px9MWe/EKvJm/j9/4VyfJ27dJpn+MtjVbOm7+AiBGwYL9NQLOz059FAjAgK33LR6bqYo/NvV18y/3LCYukA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmf3JACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpEhA//SMpOpIJMEN8sDRXJI6OQEhbKugLsG2CFpYU7VR5Uc0RSYCUu\r\nNQbR60IJps3iJb0D5s8xmaZue1wh+vuhCVwChZqHdka0ErAnZ2o/+EWB/xGR\r\nmNwfvknyN0vORK7/+mvcu+EeFkdNQbt9+4bYn3Yjt+aMkQrOzyybw2Ox1ZjO\r\ncIxMUuNn74DnaKMU+BbS4lkA3EJuIT6hKkGBro/nLLBL4VRDDd3fWWkgPIKc\r\nb1B73EEg52RbmuvYXlHcyLWx9b4sB3SsCo2ZiJtJwBqgqkoihU6UDHpFUumQ\r\nnWmQ7qw2D1GkZkkCdUbReW5DsXV7hQW7VY/t6QdARRwkq599uRgx99kyRN6b\r\nxyeVZqp5s9bgT9DNDywpEAEBwM/B0W3REaET7n4FfFAJis/9OvKOWWBoFpva\r\nywqjhyeuG7Dwg/oqev+hD7CCgRwCDIIY3zl6lBZhfh7b2lIKYA9SKWGXtSU4\r\n6NrLTfVQXQzQzSpR1vYyV52WXsA3jG3ryLRQczJvKcgeMwUcOOj1hYDKg9jX\r\nPmBD4i1vC3YbIgJHXoWKzWQo7lZUJc+Nvv4+F7tfDGFCHrtIKzKzMoo+66o7\r\naCfYdrDv6rrY1UGne37Dvp4Uc4sddok6PrXWYNupzLns29UPWRrNXE60I61A\r\nC/9POnn0hFRn8P0bbdA1VoDlUEy6Q+lmdD0=\r\n=LtFp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"35662ba23c37e102fa09f72d61e38e5ce3b10881","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.f43e0ceb5.0","@material/base":"15.0.0-canary.f43e0ceb5.0","@material/shape":"15.0.0-canary.f43e0ceb5.0","@material/theme":"15.0.0-canary.f43e0ceb5.0","@material/ripple":"15.0.0-canary.f43e0ceb5.0","@material/animation":"15.0.0-canary.f43e0ceb5.0","@material/elevation":"15.0.0-canary.f43e0ceb5.0","@material/typography":"15.0.0-canary.f43e0ceb5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.f43e0ceb5.0_1671036361140_0.8004647358244086","host":"s3://npm-registry-packages"}},"15.0.0-canary.34767110.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.34767110.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.34767110.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"78ef2a8931c6d3ce209e1b592af5762cd3e417c0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.34767110.0.tgz","fileCount":44,"integrity":"sha512-DyqrzON1kDFWmqiRj7+b5AqI5HjEvSHowKdhSPH9LeLbgYzVzqOYWhDUrA5Ks+rJeeXMlj+Srvic35P4Pk0fVQ==","signatures":[{"sig":"MEYCIQD8dLzkfjyq2bPN68tg86DDt0kVAnJGhrtmX1jWRLXTNgIhALokjxtvc7FzuLl9NxJfsYbqKTpKCHmDPwWRFLWQjXJK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099225,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmgZ2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqzAg//YderUThDC4zOi94LZJDC7k6FSmdgLF4XcxUKfUR4L/FYtpe2\r\nA49R0kOonvK73n/c09U2VaDvlIZw/U/xIrywnaZN5e83RgtIFl7w/f90GaKh\r\nRDDEkdZOqYhI7eKbw1qHRW7/ta9CGDmlz2U6wIPRwSFDI8I9rMNOVoJ+gT2Z\r\nGyvj6+UOAgsrAqDBKESpn3nIgVLB+sHDmi5ZqLeNibC+jSmrVJo6j6r1pDN4\r\nTwlQQrdbEOkEK8uth9SVmA+a3WwaAb3+0Xg1cJYd687JkbYIG7FvMkGTbg1U\r\njLMh2SgyxFEvZ1iqKJzKFW+BHDlK/TTuuhEDdwptJQpdM3pbI9PQYkLo/YqW\r\nSa6p9s7MXxqKlKHV4RQo5PfjCG7HE9VwiW/7HJrjIg/SAdedVZgn0z9yusSG\r\njuP6t69BmVLMbaEMBnelBZpx+DjSxPKWmSKJ5nQ7T8JsjexY3LzpnTO+NqS1\r\n9Y5NDen4f1XG0XDdUUY0sTmgeMEEAHMhrmQdFvS5MjZ2pD7PWInpzm6cexhw\r\n8WH5egXGrIyaKEzF2s0CdDmWM9RSRIm1311d3pMWJGzkWB18Ox1vZEvzXLJB\r\ngxNyHutecU8FRE5CkQDciS+WE2739+dbdCSFgQC10SQsypfPowvCu+BhabHX\r\nVM1CCYWVcu/Ep2ejMbC5sckNTpI1FO4sbkE=\r\n=3sCk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ed8adbbccdff96503e43dbe6291e95b5d2bca2c8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.034767110.0","@material/base":"15.0.0-canary.034767110.0","@material/shape":"15.0.0-canary.034767110.0","@material/theme":"15.0.0-canary.034767110.0","@material/ripple":"15.0.0-canary.034767110.0","@material/animation":"15.0.0-canary.034767110.0","@material/elevation":"15.0.0-canary.034767110.0","@material/typography":"15.0.0-canary.034767110.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.34767110.0_1671038581815_0.6658906676853644","host":"s3://npm-registry-packages"}},"15.0.0-canary.1f99f3c50.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.1f99f3c50.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.1f99f3c50.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d71b3499e0a2e066b3345211c95b6f91aa8fa5ac","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.1f99f3c50.0.tgz","fileCount":44,"integrity":"sha512-woHK4JAKr5tbA5ipjWifvkn1s/+bsy5zebPI+SkSMEcjjZN6LuNp65HQrc5GXtB8rpLIdCFqwqZf32obqVMw9g==","signatures":[{"sig":"MEQCIEO6NtOcRjDLbZtiVJtxcBE7pP6eiJojRFn4KtyoYNrMAiBfGO6zoRw26X+lenYn5tj4VWrNJJs33xUnTKMFv0/FJg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmy6jACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqLLQ/7BDgG+qBrb28NzrZojqcd7Y4uZC0tXSWw+/Gw+ZaSSycUesWH\r\nimd0mzJVXyjYwurWx/zfUht8385K4xWTLDG9A5gvRzl6ttMSSkVwjqo3PXAn\r\nO+yAojprgY8SJTS8STGcs1GKDm6CY+BWeuKJh0r38jdCceEt2o2iOoWfGBsS\r\nUBZGA2ENe0envgR8Lab7T3tiQxgecNSfkt86oVQlPgDAkQ4cZOciTJKu5mpO\r\nkYKOyhJqkvcFknBn7V4oFRsP0pcl5bE/n14oxDcja3daTGQKi3efItdUkg/9\r\nCkrXGYAFNdYK+RCZh9Shf3ZbelAt1+GbFpMKQo7uYTu1Gth6RcXhf8RRMfy/\r\n5hXvvbag7P/4e5lAbjO/yb1DqYwNVm0p8YV85BjGRI6t999I6BGuPn9RYfZL\r\nJx3urmihtFsoxkS9sTXS2+p9hkxQnxkWkYjfhr2R9mjA2YH7W226TmD3n0uh\r\nlyFZr2/4kuK3iRRhhR9z+h67xVWFoouDSxZW0ulGIUrmrH1BsGzB2t51W+Ih\r\nLZP//oU+tRsKUiApfZwrxD7tH/fiRkknTK6S4hJ5JIdNR0kSdeXefpElxYRp\r\nJwz2Pa8+BsP7Es8j6tWlX0PTjIVKz3Dzau3auNz+nqxG69BEpWOmVk5If0oT\r\ngduQXZaZmPe9k+WMmbMOHyud5dj96pMaeCk=\r\n=zqi2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c9094e8faca1eaab158d26f7ca8ee4b42fb54bdb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.1f99f3c50.0","@material/base":"15.0.0-canary.1f99f3c50.0","@material/shape":"15.0.0-canary.1f99f3c50.0","@material/theme":"15.0.0-canary.1f99f3c50.0","@material/ripple":"15.0.0-canary.1f99f3c50.0","@material/animation":"15.0.0-canary.1f99f3c50.0","@material/elevation":"15.0.0-canary.1f99f3c50.0","@material/typography":"15.0.0-canary.1f99f3c50.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.1f99f3c50.0_1671114403038_0.24749343766477816","host":"s3://npm-registry-packages"}},"15.0.0-canary.cfd69490f.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.cfd69490f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.cfd69490f.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9c5727e1320dbea8f04c8a8c5c0172b2da86e7c9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.cfd69490f.0.tgz","fileCount":44,"integrity":"sha512-i9TzvTKbtkV+zJ70JGIzYwg13Y/KBSzOXykOVbN/OYXPA9vmH9TCo8vEnDFgym8r2echen0nFHNHysab0do7xA==","signatures":[{"sig":"MEYCIQD6d7BG59BGE02+cpBXio6546OYrAnbwT38OC1TKAplkgIhAKzMVcb4c/QdS6GVNr9DceCHcU7mkyoq59RtMK/a06x5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnNCJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmprtA/8Cpz5WEuhkOGcyhzrH9usEbRR1zLo8Hl4UxyL16E9wJBU9s6P\r\nDnlqYlWRWmjwh8FO5oXyVXC/sLucpk17S3oQyr1whG9G0Ia3nvzKRMPl0quO\r\n7CzYiB8km7g6R2/MHx5Jnkv6foHD+rH8nal5cMBJ7X5LBRqv4UrQYD/KjBoi\r\nwZaDjrprcEnRv6VFjZmGwYSYNo8/G0t4PzgS/aLlLHJFVgFK0QM3GkpAsY9f\r\npr8JtUbAabrbalt088iPJeZgP3am4bpiNKFlBpwrqWngi2xhXdLeDpmG6Owm\r\nCASrM9L0El6ezAtk0JX51f8jFVN0iurNxSXJsjQZvb7wzdfU1r2mBngDWVUb\r\n1cSPZVIVQbrVtzZndOdEnShvfEpaUSfQreifDHLFh0YRUPu6SsrDwO9Y66NM\r\n1qE5n0CbpTI0Kzp9ZKDwd1z/S3jdCUe4UG3ln9Y56j4vkcnDCST5FJFPVami\r\nQED4i37bMaOdqmAaC+d1F2JRG3dJH1LzKCcAl6YNocT+j9poGpa3Ap0bSM2q\r\nF3lglqz45d6tC8kUMTrR5H/bAvKF8uQ+hT8GmnV4lkrjazjOaxgEbZDaMFjR\r\n0XyiLqsgNL/EQC4fsdYJD5k7xEVsAWc6Ouy6x8YkMFVGn17PFFIRhB8YL7U8\r\n9eeoFoFw/QGUpgdEm+3N8oJqWtCRxZ9pdeA=\r\n=jF8u\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a7b9218e1ea7572b08b54629159e6f3a98970096","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.cfd69490f.0","@material/base":"15.0.0-canary.cfd69490f.0","@material/shape":"15.0.0-canary.cfd69490f.0","@material/theme":"15.0.0-canary.cfd69490f.0","@material/ripple":"15.0.0-canary.cfd69490f.0","@material/animation":"15.0.0-canary.cfd69490f.0","@material/elevation":"15.0.0-canary.cfd69490f.0","@material/typography":"15.0.0-canary.cfd69490f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.cfd69490f.0_1671221385169_0.7524635454432991","host":"s3://npm-registry-packages"}},"15.0.0-canary.94ad8d986.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.94ad8d986.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.94ad8d986.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a4f7e04a03d4cf9fa184c2ef84926012d7cc952c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.94ad8d986.0.tgz","fileCount":44,"integrity":"sha512-TaNx5+NhhnMRc0IfpjMb0wpTbTQE8F6WIZRhIvIanaDeeXMgqLfmEDPXisaT4V31KZ8KC7RMWLKZRDUV6oqItA==","signatures":[{"sig":"MEUCIGZ8A25ei61DUxZr3VriAXmocKgLD8AkbYnpdtQhRwfzAiEAvZ1aERhvkuacXjHOjPvnxq0nGeBzopuJLfUPoz+JXlc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjoLtWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoqhQ//d7Z+UrxWgf8vjX7H9FuoLxWnZeDKTzW0ivSTOG9rYMxk41rY\r\nR7Sgd+UuGHIwame6KcuMF1Lqw7BhcWVh9RCNfkteeEHiJObq5FVGM69184Ud\r\nahLOYDBmYCEqxyqwdv9wTR27mj9Weo8gJEIcMIn5hFxjL3ZllhjpKm67qHNd\r\nH2u8UirzIaXB4IPk+SvUkSzoWBqDoyycFHAYfLVxyztSYD6/P2RpqXL4TblM\r\nVG2a0M38OxWHvUztOyxGI3d2YlzJlE4bwJ8/WhDY+rGUVaMNhQ7NQGayhGWx\r\nhBbsF4TGXCPCw0iDfEmzrdCG17XITAnLpuz+lLDtyGVE+NfSwh90NaAoXHfE\r\ncxt6Mr32PtG/xfLQaNEjq/bmNZCB/Bc0mCgtEXgrhR5I5j4mGzk7+PXAXzNQ\r\nap4TdDFD5sVaErqbHT1XjwpIyRRU/xCc3O4WMX0mpooxnWpc3GtSIQLl1sxe\r\n2BjIAWBSQY0B/SIKuEp5srQKL9tO4jf57qj3PchEJFJjjRVjzexYg5jMEs8d\r\nkzlWeufUTk969k5/00Jb6BwDF6N74CFsb/obqH5OcISIE/5gUl218EuPQCGp\r\nuZCxHZPI+XYdImAoSMMO7Wh5oFwJnelQC/14Mvbdm+YiIVhsdaWpAT98aZfS\r\neCC/4GsO7Y5kV+up5r/6bEtxj9EltWH4QEc=\r\n=EiEG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8e8a69afb313ffa8badca57ca15ad4a464b9f718","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.94ad8d986.0","@material/base":"15.0.0-canary.94ad8d986.0","@material/shape":"15.0.0-canary.94ad8d986.0","@material/theme":"15.0.0-canary.94ad8d986.0","@material/ripple":"15.0.0-canary.94ad8d986.0","@material/animation":"15.0.0-canary.94ad8d986.0","@material/elevation":"15.0.0-canary.94ad8d986.0","@material/typography":"15.0.0-canary.94ad8d986.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.94ad8d986.0_1671478102340_0.8992912268080411","host":"s3://npm-registry-packages"}},"15.0.0-canary.604264203.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.604264203.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.604264203.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"14d518525e5bde4db45e6da55ec856769949ec3c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.604264203.0.tgz","fileCount":44,"integrity":"sha512-XIWJ1bGY6gCywi8RYLtbziF26NGjEeFLoEDRhu1M7haCnEY0GXKL6Mi3ftV1RpVyOqgqChzR4x+iOUDhSh/yxA==","signatures":[{"sig":"MEQCIFqvAF62b4G8lG6CrTUWLtwvTbZpGdUm5korqErciYKMAiBCbmYTQs/+dbZHOsGd5wQri/tXjEUT5KUYZ6IJAVGu0A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjo32kACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrR1g/9EadDf/VKuTpApb6NEdGptAc5ENm5MiAVgZHic+/ksSmQAgSV\r\n84Oz+aoNc5ThfFRQqPTA7Wm+oR6CJTVoEx5RAr3NSOFGj2Oxmd7daK7g1BYr\r\nKYE34fmrYQIi1/LjBJmzuxtpdDf97LO+3mmpB+hIMRfEA6ImdCzF9dcqI2jP\r\nJVzAiFhyNeLUCAKJe6jjlEo6h2W2rUxdzfTRZRnjfRG632gjWKXGtRj1ptQz\r\nWM0T83GUepbsO9MlmCR4x7/TWXDgUFzzw3lDR809EOflQZssfkTMsF9znb5G\r\np1xihbGyK7ltEOxKHZMgiiR69DVd+pyLG7Ct7VMdWS3XWqrCLSF96y3KuVEh\r\n4pPEjIt1LuVq0MpYputpEbdRPAUu+/3r7vmIZ4ziDBeUrSeVM9HR5sA4Jj2u\r\nciCOdQBaCC5GuDEdenHlub4uQyj4QS5IgGmbJoS+sanV8GI6RiBjSjFJt8lp\r\nZSqflJ/jI0MJR5/7cLsaio5ARnaAQbVfHKnaW+EW9wgr8Ioj3SuZ6R/sAzQN\r\njjLYsVfTUqWsPTrhrsmmjmYm2MQUuvTOATVTUy8ndSldPhytofw34WRB1rXO\r\n8Jq7jVQSfFTkgdX0HhDab/wX/PqCDpGWml9MTxifr8ZyHweVi6VQJnj2us2t\r\nne/x6xo7CKkV65gcxZUbuj/trDiVSpR3gWw=\r\n=lgzg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e37bb80002397246ad3ebd1bf11a465b2eb763e8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.604264203.0","@material/base":"15.0.0-canary.604264203.0","@material/shape":"15.0.0-canary.604264203.0","@material/theme":"15.0.0-canary.604264203.0","@material/ripple":"15.0.0-canary.604264203.0","@material/animation":"15.0.0-canary.604264203.0","@material/elevation":"15.0.0-canary.604264203.0","@material/typography":"15.0.0-canary.604264203.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.604264203.0_1671658916237_0.433827317842596","host":"s3://npm-registry-packages"}},"15.0.0-canary.85bcff6af.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.85bcff6af.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.85bcff6af.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0c9545843ba845744bff55179d9a14a4c108fabf","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.85bcff6af.0.tgz","fileCount":44,"integrity":"sha512-xioodNeDOKXS+eqBrB0ul57ldgyfp5WxCHrRVeXDUk8EtLEvWsqgi5T8+YxHWkIMrw9z/O6GpqeWQ7ItJQNAYg==","signatures":[{"sig":"MEUCIFP/z3lF80z8Wx1567Rf4rUVxAt7vfljCh2oP2DHJ6lHAiEAx6YqXbDGVGwi9Bk8kyQGTmE/r9Dm/phUUdyEjbf+la8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjpDC1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmopSg/8C0pB2lmL1zsAPXTdnjsknxwtzb0NPzIEs4AH9W6qkC3Q7gJu\r\nyMYRQI/ZkpZBD+2jIY0RD4X1I4CogEUGE9zEGOJp6B11GVf+hb1cQ4TDiSim\r\nD9zreeyfy6FDDOJTwXvVd+UNB/pR6Ny2yKbhzyFDvFS7aJa4nng818suCeFh\r\nWH7s20/akkCJx0zeAAlHxKyd0C/vIMPVyth/DkMgE0jx25TsiHlWO64aVKzn\r\n3qumvc+eHJH7iWJuYpjSNaifQ0jDBH/GUfG7ChqtjpaG5A66Wo9yBlcMMEwH\r\nDNZSkE1vo8RZY25/AOp0M6xd3lkJkP9TCoT1u72HAQMSy39AU0zW4aGm5ZRC\r\nJoh5p285+x7qvopOqGX2Rwz6c1m0UBGpyBySezA+bJ5E9h/l6lSq0jyQGYij\r\n4217JLDa1M+YpnL3BeigQbwSqe+/b+AAzsbF+m58SmBnpuV0Gtx8tfCFxB+I\r\nS5c2sCcib8Vx0ja3WhiJy1fAKXVGk7DHK3CNxTiEMsiQIvmbk2hXGLGz4f67\r\nAiUlyG4MKBnch7bEE2kIRNipijJXdFQGyhZAtbxypV9xr3KerKC7YkgpkaZM\r\nfvQZDGDSrn6LUY/3Q2OsZEVLJ2jvQd1kjNdUZgXgw8ctiKQb3pSjuOLtv/pW\r\nP4zGnhvBOvKbutwuGCrv0c4rQ8A2KC+ZPbc=\r\n=lGRA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ccd1f76fc7f93266cd894275969c05a833a002b0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.85bcff6af.0","@material/base":"15.0.0-canary.85bcff6af.0","@material/shape":"15.0.0-canary.85bcff6af.0","@material/theme":"15.0.0-canary.85bcff6af.0","@material/ripple":"15.0.0-canary.85bcff6af.0","@material/animation":"15.0.0-canary.85bcff6af.0","@material/elevation":"15.0.0-canary.85bcff6af.0","@material/typography":"15.0.0-canary.85bcff6af.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.85bcff6af.0_1671704756741_0.189203124184546","host":"s3://npm-registry-packages"}},"15.0.0-canary.ece3e8d21.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.ece3e8d21.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.ece3e8d21.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d482644988d27b7ba06a2bb6ad9962bac3b25413","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.ece3e8d21.0.tgz","fileCount":44,"integrity":"sha512-d6wvaAFkE0lgYqH9MsUgl/8ZXgRHRfggjawKSSolkg1g3+cq5CVuV6pESX2wL93rk7iyzY3K7UDnEtg+jB04XA==","signatures":[{"sig":"MEUCIQDuyaOXTgpCpDPoT/ikjsHBcrSChJEDmhJ1GBirleWHGQIgUjBzcm5/9MkwOBeXNLbYi86LR3RfRLRGfKO2DJaUi2g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjpJAyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr36BAAilbkx0Ps149HzzVIpksbewkhDAZRpetvDUBM4UEGNW1TtMKZ\r\nGOSczFrJQsOLkehnBjJlEk+vpSJGnm7M1lVZVKmqqmi4+CYYSGCSKYfUz5wh\r\n0wjhB2cuDFqsdYWOUb7WAkHWGYITs4FNRO42qcJjKSI/wfavEdSR9TPdAE0R\r\nTqzfP2t3rU30K7RleEMa20lxCJFQ+aUnezQmTv2u54IbL9Taq380C21j8cC2\r\nqGbLwcrsJx6z+BqfuEfY0HuRmvg46KnmxFQdLbgXzkK24z8QtlPmMGG+Tgfq\r\ntEU3skhx6JcUBfAKl9moHMg3zDrU6eEFa+VL7w9pWubG+u28m6gcBaLxsnb0\r\ndIQhvu7tafXQI6rKfBQbQPw4fYzZ5Kxwi8wXlwcz7nMaFNjiynjH2HV4VnFe\r\nebz0nHtuPnjxcy3irudMHTFBvAoaeuyknAWGlJuPgFyVkx5bq34T0gAkO94Z\r\n/x2RIv4nr8lcgRbGz+fl4toq0Mxfl1uWsKXvVRBY0SVS9UPuNhm7EHD/MG4G\r\nDRnUEJZWn6OC7ehXaK5eCu2XrdDqqpqlHBRXo4PEcZQOFmPmtTthLSCj8d0g\r\nvaOu4VsfgeutX3qodI3tMr4Kuv/oo04x7jemBpjhFtZsccTPDenKf3btLs9p\r\nX78kdY5rnlAUBuO+0Igd49yFD0/tYJ8Hy28=\r\n=HHJV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1a4efd7042befb584384fcbb35f1ca445adaf1d4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.ece3e8d21.0","@material/base":"15.0.0-canary.ece3e8d21.0","@material/shape":"15.0.0-canary.ece3e8d21.0","@material/theme":"15.0.0-canary.ece3e8d21.0","@material/ripple":"15.0.0-canary.ece3e8d21.0","@material/animation":"15.0.0-canary.ece3e8d21.0","@material/elevation":"15.0.0-canary.ece3e8d21.0","@material/typography":"15.0.0-canary.ece3e8d21.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.ece3e8d21.0_1671729202620_0.09889458668425988","host":"s3://npm-registry-packages"}},"15.0.0-canary.278ad53d1.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.278ad53d1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.278ad53d1.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bd86d9e43bf32578393a155fafd49316cbc64c59","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.278ad53d1.0.tgz","fileCount":44,"integrity":"sha512-iv/hSJ+0jHTUndXxTXRSCEAfYr3OCdHYHjbYCZ6VFM94fVcbpjf5Clm+0dlmsQM48y35Viv7ELh1x2W5pNCltQ==","signatures":[{"sig":"MEUCIQCTVg20+GkLO7vs8IaM1/BvIJ1QdGw0I+vvfQJrJEYgSAIgdJQaCVm1mwHWq905tTo3+mbJCcEMm78aJN7ff1/Sn7U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099144,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjqyYLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSrA//cWOMMkkLoHv/qOnoVkbmIyLHqu7bV7g/gmNdn27d0kJLA7zx\r\nRMjRiLo4LVyCyfhfxJuo8OeADGcl5RFPZi8FfRHCOt3SVoAfudPTw4A0iX83\r\np9xvAWxeyZbYTXfhUNlpEOQhXbied0pUqno+TXZSN7hvddoNpp6tlQXLxGMX\r\n0xZ3jbc9+fE9GJpuC4rrEGkyJgiam4xB63jfSZEAr1fmmTNUGAf1CPHEllt5\r\nIOQRJH1fsLUfGbFlJbYe0U9zp12eAAOjgi6/tsSjWUiOrxkBPu7k/hXRZq5I\r\nUNHONwQQU//BYCQAzlvgOLHsd++5LGLCwlI3FuiN2I1DU+OvX2nUTmcECDwS\r\nch8RAKWyRwLQb4L/MwmKz/R9DPHm3q5sdO92Zr71Fz7RGdKKDz6FSZhTXyX0\r\nXcG8oeo/+Tuw50XfMFJaXQvNrJN7eKLACPMlIbADeMrzzGtASgTnwcaLQx2I\r\nm7dqWkxIL3IidHoF0zi3EB7LABdd9S5RLZ83o3MEktE52pp7iijMbgtDoZ6x\r\nhKLyjuDy+qyYdY1I26qfYT0Ca4i3EBabVpiZc9hWvlsCi83NyAc/8zOU2BZ4\r\nWlZvhS9wB8AL0uF0/hrCKj9lZC54MJ8MjN4+tBL5v72uNtydefrfgbqAwsu7\r\n4FxCUDzfZXQ9Uclz+wjhDs5/Ie/e0kL9DT0=\r\n=VrPE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"967cf83d2b9fa8a3e6bd992aa107c66182e0c65b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.278ad53d1.0","@material/base":"15.0.0-canary.278ad53d1.0","@material/shape":"15.0.0-canary.278ad53d1.0","@material/theme":"15.0.0-canary.278ad53d1.0","@material/ripple":"15.0.0-canary.278ad53d1.0","@material/animation":"15.0.0-canary.278ad53d1.0","@material/elevation":"15.0.0-canary.278ad53d1.0","@material/typography":"15.0.0-canary.278ad53d1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.278ad53d1.0_1672160779588_0.22322788151331152","host":"s3://npm-registry-packages"}},"15.0.0-canary.a7d8389e1.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a7d8389e1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a7d8389e1.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"04d513e1a82b562c021bc137dee12e1e43ef55c2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a7d8389e1.0.tgz","fileCount":44,"integrity":"sha512-M1baZrhDJ/cL6EQjK71i3eeaJV44ut+u+TYtprW8jy0g3DZf+heJDdoHyNwpw9ZPf78+0HZhpV7R9Vb7HbF5sQ==","signatures":[{"sig":"MEYCIQDAIxvtHRa3VUKdyrtQybMtPdvtSsRt0rJruLREvps12AIhAIj11Uou2PVPm5LOph5GLtBInZSUUWJfOIZiKUE09ziR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1099144,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjq0HjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp81g//TnbcxEzMVD8hVLFo4bp+laXTiEeJBCBvoxow1fD0YIVsBrwV\r\n+BK0wvwM0i3BQRWviQYekilr0DGd0iu1qA0PrSTGoep0Qfkj4aRsVSffbXmN\r\n6Lt6YPJqYWrff//bbXESHDta4bLyd8BSAtw9flzSth6hMWZu0KganWTdiTrv\r\n3e1ylt75CzvREnKT4aVXtnfhc0jkjXT87Lq7bkkulD2G34uywDrbiBQBnsDG\r\ndBVFE0//Xxts2oSfhSZiIvoQRgS37KlRX8YSrqgvvxlAt6IKcgX5XpVtZfly\r\nGeMReySzGof/IHSChQLXlyk0KywnQO0Zak91uzAN8jt/TQvBxWkD2SwRwxSS\r\n3OGyjLyq9qroEr1lDeRvqDLsCMMNqtoaNZkpAE4hBqe+tQ+1Ll+GS853Yr3v\r\n6wopTsxFpuV2zU2QcNIFLS3k99ZssbaAB6xOkqM180+R7K03PLqPcBsZIZQY\r\nvD9CvoPCHAIqo1UEqfJpIKTq6Wwu+l1uEnd3qdqxohiqdMijoaoqTKdJp9BI\r\nDHhTmTcxxaWJPZcYDKgFoYmZEendSGjlubjP5kxrkcQO4TKjjbZJ+5zEhnOb\r\nX2w+I4+gTGrZVAdMaJfwXRJIE1OTAr1J5HO5oOlknBBDfI46hlrD/nUqHiSL\r\nhl9WAa2fr1vrHpmx3Jv6mW7BZOFqqg4QNJQ=\r\n=HXms\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f9b27084bc44ecd4530cd2252389b0dd8116709e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a7d8389e1.0","@material/base":"15.0.0-canary.a7d8389e1.0","@material/shape":"15.0.0-canary.a7d8389e1.0","@material/theme":"15.0.0-canary.a7d8389e1.0","@material/ripple":"15.0.0-canary.a7d8389e1.0","@material/animation":"15.0.0-canary.a7d8389e1.0","@material/elevation":"15.0.0-canary.a7d8389e1.0","@material/typography":"15.0.0-canary.a7d8389e1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a7d8389e1.0_1672167907361_0.09858517248630982","host":"s3://npm-registry-packages"}},"15.0.0-canary.8175d5eff.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.8175d5eff.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.8175d5eff.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"138c0bba81dfbc12c6e3877aed71aaea49e01fa0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.8175d5eff.0.tgz","fileCount":44,"integrity":"sha512-OdNaLeU7FO+zJ97Km3LGqOQ9cW04AFEGDS2Div1O4TIwktm69dmLsLTUwDcw5abIWvZeZfdUiEM/NRC3lAwKqg==","signatures":[{"sig":"MEUCIQC21+EDCUNnHHlVko1ZrOGqkVMrSGvwYJdKxODGq6Co1gIgQC40WvDhhB/6K6gqhkfV0utrEEYOY9LIIyADljsr8u8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1101736,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjq6FyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6Qw/+IiUHh6HnallXqwyfB5Oq9FLpEz5hMFMyW1AHHyobPrsW61gf\r\nTjz1DHkNtxjf83bPWUti8hqEYnoKH+agzNY8AyVf19KdEQGr4BsabiVwbmPE\r\nvyxbQ8rNeZy6zuCGatMOHrRPUI4WFAdVDORjC0wkPS+XMdDVxkuOmsnccPsq\r\nJJfBs1ZSeAEBOZ3Qw7UWjGZFzmPKWAp3fMKVPauefme6jPUINvWEWLxe02N+\r\nwZ6WUqOZfgfo4RNAVZQnhITmXvvNIP4aQA+uRkIck2TLzzYyLmma55D+iRv4\r\nfXECGHDi/SE2dCA4xRWZmW8U9lDfWfaMY5mrzF6VvF1z0aq7zVKTonU8fPFd\r\nvx31SFOmjQOu/ZPK4w+GfP7+sZZxtolj6M+hUJiqlIG7EvhHPnmEgGYcNf55\r\n5SIuNd5HuzrWNVmvkdF9srGbXHhRZ0IxizOJTvNAo+LddNOaLpLT70M22UEW\r\n1CI6nlkAoakG1MICmaJIHea72ycZ2ZHb6VFaKo9LUSjQHI64+bEo98isIwoM\r\nxOK751V3Y7Qi8g77oWFhb2k6BfWJr1+2DgJJF4a2Y+ACe4av3ldjRyOJ5I+Y\r\n4bMY7+Iam5eVLkCzYjILK97Mf+99rtVeUWPfiADGHD/2l0msrwKmaYM00aY0\r\neqRuN8CMNE1oCR6DQGC5uveMoUA6v7FeRAA=\r\n=hkA0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c3bb551a6b32480853dcc8e29f7f8513d62154a2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.8175d5eff.0","@material/base":"15.0.0-canary.8175d5eff.0","@material/shape":"15.0.0-canary.8175d5eff.0","@material/theme":"15.0.0-canary.8175d5eff.0","@material/ripple":"15.0.0-canary.8175d5eff.0","@material/animation":"15.0.0-canary.8175d5eff.0","@material/elevation":"15.0.0-canary.8175d5eff.0","@material/typography":"15.0.0-canary.8175d5eff.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.8175d5eff.0_1672192369866_0.09321005959700668","host":"s3://npm-registry-packages"}},"15.0.0-canary.e21dcb86d.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.e21dcb86d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.e21dcb86d.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a57fb1c598ead92fd7189b916d7ada3912360552","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.e21dcb86d.0.tgz","fileCount":44,"integrity":"sha512-AmhOpzdZl4gdCbWxf6kxZqVTeBkODoYo7aCl9f9oMHHPRt9Viz5FVvPZNbeKOv76Eq9KlGnTfADiyI9tv2zhEA==","signatures":[{"sig":"MEUCIAtUDCDh9Nkbu68d1RxyxkxUjk5a2WXT3pkB0xmKCYzIAiEAvrqHCEfdlm5VcSBYQgCRwNZznB5rPYL88LFgjZEH/24=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1101812,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjrZ4rACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKFw//R+rjcPHktSE0hM6Ots5R5JY2JEzsoo6PDlbhn7+wxFQGYpb1\r\n1DKvOlPc0tzotALzbx2uoLk2O0NY4BSOE2MWblFmDl6CahiaebCAEA14D1yc\r\nJWMRDPcWbYL74D8UAFGJ/z8xnlcPEKAb+KNFcGxQW6dnWb5Wn4wJ56MJxo3N\r\nYLDeAePijRaFQp0/mhhKGJ1ixXM+aOIIcsiY1cgWbYEL8qriRdL17P3uqKvl\r\nIZlZ1aaRfT+e5R1vkS8iW4HHuFuRW27+kqh1s9M/AabifWPDrQ3C5dvE3c11\r\nrl9XBgBznBJ+jiDcCkX9Gxtq9H0QmnyQb5w/5KZx2z470H76NMkvdh9+nkkA\r\n1o3x2u0U9348Sfh9S3eMfAVncyjFNT52eJEYHZnHVR6f+juHC2VwZgAhSixl\r\n59rLD87zUEYhhGfsNqYw6NMZ1GvYLmkvyb1rwvtshE/9jI0TSIPmsDoB7jf/\r\n1txhav+K0pobB6rM0Qps14WIa5Cnujq62LkDRS13KxfLO7H/X/LWYdpQdeW8\r\nFISA072RIEF/gtT6EqUqQ7BYXRImegi5vu7N5UFLQvsCIpJLAHbjZ9nUAiwE\r\nWrWi0SHtT8rGYbeS38yCpVjGcElj4Xw2qGNXgDrpFo52FBvCx1gGpmj4cgo0\r\nYUQBGeaXMzTjczYFFm9NJZof3C1EBFbh4ak=\r\n=WX3/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a32b4ac6d2bad60870533296fbc4acf050735b8f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.e21dcb86d.0","@material/base":"15.0.0-canary.e21dcb86d.0","@material/shape":"15.0.0-canary.e21dcb86d.0","@material/theme":"15.0.0-canary.e21dcb86d.0","@material/ripple":"15.0.0-canary.e21dcb86d.0","@material/animation":"15.0.0-canary.e21dcb86d.0","@material/elevation":"15.0.0-canary.e21dcb86d.0","@material/typography":"15.0.0-canary.e21dcb86d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.e21dcb86d.0_1672322603234_0.2521758832112717","host":"s3://npm-registry-packages"}},"15.0.0-canary.20ab6f5a8.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.20ab6f5a8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.20ab6f5a8.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f3cb5eec5ebed60c1d56f62d52728f59c664e8ed","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.20ab6f5a8.0.tgz","fileCount":44,"integrity":"sha512-t2HffDnSv7srGTLZpZNLGLHTsqrsiHndBLE/6xaPP0kgTbfbGPGyqJAXJDxebbxS7nprzxLxuSbALGL0JedY5w==","signatures":[{"sig":"MEYCIQCqk34X1lmteTCIf1yBp747Rby2roWU0WdpgOg64T8IhAIhAMeqwapjrZ1SxfrtkL3PsWE5jgZd5pY46nFjH/6Dwqbn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1101812,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjre2SACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqjGg/+Mv+b6MZacIkpHRHu7C3+Ki3O2qa+MbggRrgqLzR1oBjKbNi4\r\nH4x9MD4LiWvjdnhealgklFe7/uUxO+9SbKUxQYTHmvUv/m9RX9MsZlDflZZc\r\nom9xQiBw3OPlgGxLkq8UnHAGVciL4CtBDbyAXWiW2S2U8/xciimRMeOlETcL\r\nNOELtxZJgMC3wOq/8R/gdpmqMnKpnHDJcgsMGGSzx0nzZEYReByA6pGF5EjX\r\n8i7pYp2KrutgpwKEVjpKiQQNhvcCPLk1HqFA1xz9995rMnTky66Mfz0p7wiP\r\no/FPX4VvcAYCVQX77HhWgqQ2KMSN0gbu1OvUtcxbwd4P3n2R7yEm1GF3SKoT\r\ngluLtKD6+dQ9bJBa4u595u4VXu00Sg/d2tVijf58H3NSZ7GszI/zedTt6zuc\r\nZJMs5RWFfcqLRUtMltRsyig0k7ck1HqDZZqxVFZise59u8unAfz7/y22yEXc\r\nL86wfVV5s0OCsSyywX4TZ7UYeyW2+J0aq5LypEuX7H/869CbvoB6+fbg05P8\r\nOUPkPWQCm/0BuvOp/oq/hwAaV2nlcqjc89UvrChnGbjtZOszl5U9rsr/MKr9\r\n1YGP7ZnXknR1jbScyY+12XAYmZM6j3lfCUW5z8HJWKumQrz9thY4bLumZG89\r\nZ8Z/mD8rHuoglcYzX1NbXX2cJj+cD4xb11Y=\r\n=LUBX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"abf2135af6e71ea44b6e6a4de17493e5923f7255","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.20ab6f5a8.0","@material/base":"15.0.0-canary.20ab6f5a8.0","@material/shape":"15.0.0-canary.20ab6f5a8.0","@material/theme":"15.0.0-canary.20ab6f5a8.0","@material/ripple":"15.0.0-canary.20ab6f5a8.0","@material/animation":"15.0.0-canary.20ab6f5a8.0","@material/elevation":"15.0.0-canary.20ab6f5a8.0","@material/typography":"15.0.0-canary.20ab6f5a8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.20ab6f5a8.0_1672342929848_0.8503472281703768","host":"s3://npm-registry-packages"}},"15.0.0-canary.b9806f623.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.b9806f623.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.b9806f623.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6e3e2d598860bb37776757395c40bb3258ebd20a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.b9806f623.0.tgz","fileCount":44,"integrity":"sha512-TxEntSaYSFJdJ9yKhNQum7JEcROdDhr7Z95kZJcrlwM4xjYQ5TtA/a6k5VIDnY8KHXh3pO/Rr1NDiuXzZMR4Kw==","signatures":[{"sig":"MEYCIQCUe2d3iiBt6MJ88PweMsOcr4ydbuPi51U10w4T+sIbXwIhAMZi/Mpulrlc1qG56T7y9lOTehqgfZcSPnVsfqrA8wcD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1102816,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjrh2cACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpW0A/+LIIERfbLZHbVUz8L/3Mu6eVv05ip0rLjOzW3bDdBJz9MATrF\r\n9ia1nBxLfnTVwIO3DDjx8FaT6iaPuIu0SlBDJ5Qpr3yNs83n9DgVPd0MvvZ9\r\n/ZSA2gxKIM/sbldqSGdvfLv4eCAtsc+f0vrXBdraTAPUBzMW+zRjHC1IjEGh\r\nxNZunHqG/wdS9XejBWVqQbw6bTP6HFO7sFS8Qmhju1HlEjD9TT+Zqs2ytIHM\r\nXh7OFM/16HfAKE9BQeWdZv5MoS+ZvCEDCfZxw5Z+4LT4VJ4TD3qQX+M477+o\r\n+5vzqQoRUDcO2eG8U2cYBAtK6vMGF5vaVl3U1lYNJSOK+TbLFZxccsLWOG4d\r\nxuVT6L+yhfjGttclW0Kl5sz4pyO486reCt9dA7Di6OyzlaVYMcPwJDb25ew4\r\nZknXj6lOW0SxxzXm1HxYuf6RXhWLPQWiBSkUtp/NMjLvub5YnbzMWaBQJCOc\r\nMCnfgsYx3pJCpkt9A/8VVTup1M/o1M9Pi0WR6jBQG8eFdtlH7uOCellC0fJ+\r\nr3FGRr4ZtNBFzitxDffLg6F86zgwDcr66Ocy+tqdbQC8VDPw+qIVf1FvWaVs\r\n3rJjccnZG7QKjpoJrvvUQJpnamwystoIcdahTPMRfV9uZx/KZUPHsS6U5LlE\r\nUuhT2/+L9yXuO7zGYgqe5PCy1bq4NI3+jic=\r\n=7/LY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0eb4b8fcbfba4d68dffe3a2b5c7478e69e2e2eb9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.b9806f623.0","@material/base":"15.0.0-canary.b9806f623.0","@material/shape":"15.0.0-canary.b9806f623.0","@material/theme":"15.0.0-canary.b9806f623.0","@material/ripple":"15.0.0-canary.b9806f623.0","@material/animation":"15.0.0-canary.b9806f623.0","@material/elevation":"15.0.0-canary.b9806f623.0","@material/typography":"15.0.0-canary.b9806f623.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.b9806f623.0_1672355227712_0.7005263266644952","host":"s3://npm-registry-packages"}},"15.0.0-canary.50c9f550e.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.50c9f550e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.50c9f550e.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6b86599990cdbb5852f54c1eabc578d6b7848196","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.50c9f550e.0.tgz","fileCount":44,"integrity":"sha512-prHARbO6NGfWeDMOlHSMBctgHR2stZQBgE1acf37laZa0ciHZ4kZlFzbLQ4bnzkCHDMpK0X/s+pjBJH/PLZs5Q==","signatures":[{"sig":"MEUCIQDMTgO5Ly0Ln3HyjiAc1r55ImQFnxgEz13HiTKGjnqPfwIgChmukjeGzR6Wj5IGrvsUGe9o2JciVlBFG1iTn6wMtGg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1102816,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtE5jACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMQw/5AUW3b6HmMxGrjZ6tVCmBjTO2FtF34QxkDaRy5PSsP3xhY9v2\r\n0z4JDaJSF9OJ/47Ajjt2/xII1/DZwPgxjNfYoBVfOCDXW2/ARv8AyKNO602R\r\niReEQgudwGCTMQGRpixOYAsnicZVrxYI6SfTUwi0Q2a6eKu9nxGIT2mdZns8\r\nfKKALMYXapSxS7JZuBQ5HQ4sQ3PDm1LVa9vyQMLOn4uSGq6N5C0aonDsc9Hm\r\nS2wdUYr5jokWcbFYowwm/oLbOqncsL2JAfkURwr7ML3cJNm8mLknRSgTMwJQ\r\nhk9p4peQMFYLH+1eMmGbIYe23Qpw157V9+A5H/16RlLclvmAeDwoZMFd7TP7\r\na0jSwrDQMaNXelaOvM9AxnTAptGKK9L6XRxSo1ii+zvRjCIkrQ+OfYpnyAoy\r\nc+6ZVPukUABV32ZN5z69ds3k5SUgeCHek3ivnzbpsCBJPRdSzR1LcUOhyT9L\r\niK4pMRksfYYb0onxTXSbkLnF/kSr5zdrRKOh8etL8Ybx2pmzzl/azWOn1Jd+\r\nLKSkcNQ7iaTBlZmEI4t0XVnch4lpH21CKp6UEXUgDdZrVJmBNrzbxsN2kHS+\r\njgU60Ji7EVRvHVJcLeKfz0GLFYbX9LJL425vbVTES3g1EW+qs02x4DTPk2lg\r\nK3H2pV1fCUYEilegCMZh6kA58GjX53dnd9s=\r\n=Y1Sh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d020b19d0ab5525ccca1f803a00e184efafb15e3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.50c9f550e.0","@material/base":"15.0.0-canary.50c9f550e.0","@material/shape":"15.0.0-canary.50c9f550e.0","@material/theme":"15.0.0-canary.50c9f550e.0","@material/ripple":"15.0.0-canary.50c9f550e.0","@material/animation":"15.0.0-canary.50c9f550e.0","@material/elevation":"15.0.0-canary.50c9f550e.0","@material/typography":"15.0.0-canary.50c9f550e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.50c9f550e.0_1672760930694_0.19794416856046282","host":"s3://npm-registry-packages"}},"15.0.0-canary.af490a848.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.af490a848.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.af490a848.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"76cff69704c49eeaedb9ce0065e2d889737ab18f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.af490a848.0.tgz","fileCount":44,"integrity":"sha512-eAmP1LU6T2o9vKH+6GVtm2dZoKQ+1cI8Icl30kPGl9a7ThAlNnBeBjL9meutd4xVuzXwAfEt3BSo9n3Irk20pA==","signatures":[{"sig":"MEQCICOhr5zLZRBr6IHutjTQEVTYz+jPTo7CjiTmEbnxIBclAiAH6Y243y7tsjo0myKtcwJJpRaXEjBob5OR8YZvnadAZw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1102816,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtFC+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpeDBAAoJaKRdGMhXCKZIlp5GW/b8aMS47g+EmtnuEvqzleLk7VaU9n\r\nu7mChBZ5jmW8d7rAAJ2Do0Hd4zdvsFZD1oxWUXByoXLMONla8+BdU4hSgS2a\r\nXqwHIr7rPOwKbuIW8AStgdC3LF3T2pgT4pm6JGDv161VZyTBxvfSv9tU53TP\r\nefVRvWgtogmspdRj0o6dMBjE3zpFzSp4pwFLI8ZWvlKtxcoX+q0mmJr0pQ2u\r\nr1eSmQ4F+hwmMfQ/AibcFBhmd8OOy45prtwLmhYl4F56j85xF/J0d8TL7Dtj\r\nJ/ZQongjPqqYE5VsDAW6W+lp+vXeS419qIyhZvAdmNRmOdkPxz2O/1oO0n8P\r\nVUKWobhKcU8v2xqGWlFJUKEBEfk4i097NeECiusLrDATVi4v4qInGq367D/C\r\nfDMJUGCdZVXhgiAD+/5D/RQulR5seCUbPejGVmOn6HkJxBcPmZOSVu2LfqFY\r\nZo0i0pPc2J+IG7J1E4zpIpD2fVKOMv9c1hlmiJWI/2JJuk/weQ+wOutKnz/F\r\nMGAOfgtEq6v17fytX0ZvamHpYj1emGb1mTLclVOXJF6naauiafufHcEiQicu\r\n5e2JvnVSoJXKWmEkpCJFGZ9wdQl4FJBSbQdsjIhqA8YoyOqh52RAwnOCyq+N\r\nQaKIFjvILIGKaYa44jlXMB149ZsEW9hoTA8=\r\n=Pl22\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"95f5499a3dea1763e53574fb3b884e8e45cc974e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.af490a848.0","@material/base":"15.0.0-canary.af490a848.0","@material/shape":"15.0.0-canary.af490a848.0","@material/theme":"15.0.0-canary.af490a848.0","@material/ripple":"15.0.0-canary.af490a848.0","@material/animation":"15.0.0-canary.af490a848.0","@material/elevation":"15.0.0-canary.af490a848.0","@material/typography":"15.0.0-canary.af490a848.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.af490a848.0_1672761534485_0.10584656322590069","host":"s3://npm-registry-packages"}},"15.0.0-canary.7cf487c98.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.7cf487c98.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.7cf487c98.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3017122e1810f8c43133b62122daf7c6264cae80","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.7cf487c98.0.tgz","fileCount":44,"integrity":"sha512-FBUuJxcgShQgsfTwMl1Vfs+thlsZFlnZ7iXJWbFAGTZ9mxfAdk//0Y8cghJWRfKJg9HQvHUMOxrSxvdLGn1o1w==","signatures":[{"sig":"MEQCIFg/9bivFB/6dIaA8s5pYCq3JnDKsEAQfOcAZJzKLLEjAiBke1w+zqZMvZU1tr9JqmpRNN/H/uYshhogVsxx6+MEJw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1102816,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtGhtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmps/g/+NmQiSrfgLr7iYzyzKVoJwUlPHypnbMe5EsVCPpdB32TR9d78\r\nwXzIRctO70B+gFmIr/5CzeJafYUIfE7u3RH4bL6zGDPylZYNC0SadblrXVsv\r\nxI4IboBDJN+URtS2vcDKnI9linqwS9JTijecz63DVDdlmzxrOmidySR0Vlwt\r\nBahYdca17daycj4KuK6VQlXzvVKZ3SKPvTVMyaCS8fvpQPvWkPpzSOeFMHmC\r\nVU4d+ax6Ms1VTX31tgxw58SLd6m0yqCQah7aFoiSJxZRwrT/xSZgTpi3G1c9\r\nt1e8hBZEqujM3i7KSM+k24FGkCkjBfu5NHAJ3lQrWpbMuQTz7v5t0AgZHZzh\r\n58nvquDx+IYRtRvHFiMDt3vJp88OCFztJ2fxGchKqTpq4JvGsGOZqPBy5Hu0\r\nV0dysHXEMiNKO3LuESgprG5XBs7Eane6yMWzm0Xu4hCyhmQdQpPHu6CYDXbp\r\nw8XR30v4qICWz4EtubDg3XjfkKVFvxD59GE0XBClljrIAb9yHjA0t7sr4B8Q\r\nONmhmUezBXbshE06cy92qxUezoAg/zFHr10pDaykJ8n/T7NFMoMRRjq6/yOZ\r\nBF6MAP0ZFt503CdzCYrTQOfb1rbfGXcNxVovJPYjgArvibnH55iem2vODxAb\r\nqQF0PBAjqZ2ygUEFPcPmObxbe+8xsL3ITtg=\r\n=BOgB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8d246270c785ca072651213aa63882309c7cd5ae","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.7cf487c98.0","@material/base":"15.0.0-canary.7cf487c98.0","@material/shape":"15.0.0-canary.7cf487c98.0","@material/theme":"15.0.0-canary.7cf487c98.0","@material/ripple":"15.0.0-canary.7cf487c98.0","@material/animation":"15.0.0-canary.7cf487c98.0","@material/elevation":"15.0.0-canary.7cf487c98.0","@material/typography":"15.0.0-canary.7cf487c98.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.7cf487c98.0_1672767597174_0.09914560591901633","host":"s3://npm-registry-packages"}},"15.0.0-canary.a52be2d5e.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a52be2d5e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a52be2d5e.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6b4cfdf832e99c805f18be9942dc4e6077c456f7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a52be2d5e.0.tgz","fileCount":44,"integrity":"sha512-Iw6dgPghaq+MIsVjONz7XRPd9XFnIuQSNfTMhANaaL1808DAbrzI5VI41CAJDYGsSal9kIT/9gWuVGrDJQ9j4A==","signatures":[{"sig":"MEUCIG0AB4e5YzJKuPXBnl9j1KRggNpyaIqqzDkFg9TwY+uvAiEAmQjSIy5jLlOa4yX2TYT67H1ANalxSMfcCzYbI83MAgc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1440787,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtH6KACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoOew//S29mHi4tdwTkWWrYw27qzsLOzRlxk5LfuE2YWqCXKbwr44S/\r\nrObGP2rGZ1tbOLRkNKCfsmeVkVZtrLEX00lBFcDshMTeaAiFNRoV8UuMjLUd\r\nnJZ5AN0/vQRgf2At2/7ixRipt7/aact3QyFO5MDe/4DO8Zby8McdbWz/RdSX\r\nGy3Jdfg7n0wl0E4OoDnYIAQ2Z578OnpSidI9GFSOKYRkV78x3ilc7NKZvQUO\r\ntqxU+WkaVMGkJZu0O5F+OOdLqdFOAxMJF4JTbMAI+MUMocmMxbU5IeFYnUP/\r\n+qnXIVSoWM5dtcwSszQUtxV97aCEMfA5nIWaCA8qKcAq4X0aO+DhMfbtzPhO\r\nv7Ilh6DdgwQ9ljTomycWXeIEQP3qUDPTE1HaGutuqd8Qi67PHZdmNMbTFCgC\r\nDKgtLP+4NXjHKsTnncsvzslYHW1rq5H22Ixed7TvcviV1VvT9q7guH22THvA\r\noUMIft3oxX2TzjUc6rYkjc9/8+08UaoMiUtUO+xhRoiixCwPaUgHKC0rv/PS\r\nhpIlvsHGq9o7bRJQikyK9YfzvJ2m/0WDTq7GzQdvtXggVdOOSB9GbEl9uVEA\r\nmZbj0xxSuq2O9FrWoeSOCKCfYnc+HEvIlqEAJOnl5tJzJXjwj1db4u13qUcy\r\nHapXugviPY656GTsV5u/QX56OFISl8BA0jM=\r\n=Sp4V\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6c2c2b2b16d0188fcfc620c5bd95622d34ab600e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a52be2d5e.0","@material/base":"15.0.0-canary.a52be2d5e.0","@material/shape":"15.0.0-canary.a52be2d5e.0","@material/theme":"15.0.0-canary.a52be2d5e.0","@material/ripple":"15.0.0-canary.a52be2d5e.0","@material/animation":"15.0.0-canary.a52be2d5e.0","@material/elevation":"15.0.0-canary.a52be2d5e.0","@material/typography":"15.0.0-canary.a52be2d5e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a52be2d5e.0_1672773258318_0.2456336950688498","host":"s3://npm-registry-packages"}},"15.0.0-canary.e38ba17c5.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.e38ba17c5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.e38ba17c5.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f21b2f4cd9a8fa9dd2a9db58770048bbfa2c5994","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.e38ba17c5.0.tgz","fileCount":44,"integrity":"sha512-euwz+qllqghZUP+sqlydUWeI1OGdXpHiVAhy/6F6fI6je9zTCilgXx8ilK7XlIAwBQOu3zYJVrBSi/qvqBUx9w==","signatures":[{"sig":"MEUCIBnKhDHnm73/SQSVBeA1xxwJ6kJ0Cafwc8AZhu4p9i0SAiEA5foZFho36Cg6ywF45zaabOXB1s+tlTmsULRediHbrlA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439794,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtK0kACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqu3w//X9fpncwOp/IwfmZ8D7gqdb6c/H0oWvPlpaSA7X3/oL55QdjT\r\nuZ2ncm8D9QQWYv8qes6O5mqpRMMgqSYa1Zw2sXOF3Y85CIlIFknya2sF2qVb\r\nDnqZPgRQPv+qCw52ryxwM9R5ZWfs666p6RmoNShc4VSeBuHHMbpyTLRctJYz\r\nvpqhN7YAR6ZDdPObv3CK7u1l0d8P4XR89G/qp4gZsER6UNZ9cnLlBO2nZBjC\r\nErm5sgAL0TCqZqaOUWqqji/aItZbcVjPDP2ObFlGQuQT3Smr1eK/zG1BXRTD\r\nSUcmiYjCvSwOKqCeV/8eeYB8xEkrabx4bUjMkvEV3lKGCp6zZmmQwNQEOJtT\r\nS5j3pnXqnhyr/Dv8PClfD3h9hTbLfiyouunu+yJXVorww0vjDKwFmjzo0pVY\r\nKtF0rq2Adv1uZQPPhO4bMwdM58fAABW0nA4JJyT6pHgwIMSP4e/uW4v/9rkM\r\nAvMwRCgEbTvcqNoopbqTuU1+5raMDuvnD9/YXGishpyF42FiZAhvYkwkbn++\r\nOtmcDqy7rMiAoW4xEQCHWrONiVIevE0U3o4gFzieIGCzcO7cujo0P7XsRSev\r\nBu4iIDx6Gurj6+8HK6pxZ3NsC6dvzMVyy2xDOBHZiUtmqMecJ+/1MB/pBkjT\r\n7JjhVFQ4U3f+OVxnVbpX/wvNKzVoy+2TU9U=\r\n=UDSr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d44100693c450240b468ed28efc3841fdde62da4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.e38ba17c5.0","@material/base":"15.0.0-canary.e38ba17c5.0","@material/shape":"15.0.0-canary.e38ba17c5.0","@material/theme":"15.0.0-canary.e38ba17c5.0","@material/ripple":"15.0.0-canary.e38ba17c5.0","@material/animation":"15.0.0-canary.e38ba17c5.0","@material/elevation":"15.0.0-canary.e38ba17c5.0","@material/typography":"15.0.0-canary.e38ba17c5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.e38ba17c5.0_1672785188223_0.8815279766013402","host":"s3://npm-registry-packages"}},"15.0.0-canary.49041a6c3.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.49041a6c3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.49041a6c3.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f667436983dc7bf8b3ddb28da242f0511068c376","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.49041a6c3.0.tgz","fileCount":44,"integrity":"sha512-97sCo/Ol0Cs4tuXOI2ba3U9gHyyaFXcjAxrAdD1mvPgcda//ulvwGBoKwY2qVZWnDRb3jMZmXP1OZabS5WLJxQ==","signatures":[{"sig":"MEUCIDWkn5YKn6v5/3sTnRqESTwYKcv+I40kTaAU6EPkg1fjAiEAgM1zPZzCFG22gahl9O/YnRp1lb+70wB5oWNbhqeoqo8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439794,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtZjjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrW9A/8DI1ibVMGUNcNnVr4fq3W88qlvlm6szlB8Qqd2Kufrtn3PYV0\r\n6ykFg+rlxmx5guQGtHnkyq5jUhVszLY+a+59Z5MpnPgQNh3RUNxagJLPmNks\r\n7i2+QriTfRcUQcjwoK9zPLlQXiNRh7Xbfs3lPSPiekWEbUZjURFsjrDceJat\r\npw+iTlNVxYpC4JrdBzP6bgXnqQ0Me4PEJv46UZ3H67vJ4TeO8kqSTTUDJDzm\r\nYcfwJ49ENcCGXC987Qxjk21/ejN+AFKXBqxeVbynDTAAcwUlKApiQMFRBgCt\r\nLbE2Q/DGKwXLVEaHwtR0Iii9lL14lZzm69CiSo/PTur3F7vh3Y4RdnwNcG5/\r\npG3jRbQnEDDg0xdRCyujBTLk4jVcZf/kgeDxoNDj1IV579l2MI3cZbGf2zFr\r\nYjJpyEG+cD4mzuMgvG9uZatIbN9cWC3aUrJ/2vPC99RDx9xcvigTRk7D3AE4\r\nj2+J0y4sSnn2Acy7Xf1fpo2UpB3EL8DWM0e9JvvqUmNqzwogya0j50m3fEs5\r\nhwU05fQ3vlO6EiL7AjqLrqjIh4DdwKUYnu5vKo9GT0FumVd7BYSnphqvCIhn\r\nVCct1qLo4X/Iojb9YPBMiJ3YgZaXuuF7K91qcmFF46yIhZk/BBQIJz/T2VkX\r\nfisFfOyDiY3Eh5OszWd2ckaJgIbGjIq20ck=\r\n=Wbm4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f012497ba1285ac3de691b5e25afe7a21ff62bdf","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.49041a6c3.0","@material/base":"15.0.0-canary.49041a6c3.0","@material/shape":"15.0.0-canary.49041a6c3.0","@material/theme":"15.0.0-canary.49041a6c3.0","@material/ripple":"15.0.0-canary.49041a6c3.0","@material/animation":"15.0.0-canary.49041a6c3.0","@material/elevation":"15.0.0-canary.49041a6c3.0","@material/typography":"15.0.0-canary.49041a6c3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.49041a6c3.0_1672845538991_0.3755978013010093","host":"s3://npm-registry-packages"}},"15.0.0-canary.c492898c2.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.c492898c2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.c492898c2.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b74351bb818ffd26cf37e13705be5d0ff95a1c64","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.c492898c2.0.tgz","fileCount":44,"integrity":"sha512-1KnK1OU7qU3iGVwdNaSFHTO0KYcax6CernYFF9G5/Pll5cuRlqIFkp/7wkwmKaWTh7mD5j37MynKbViSDgJ0iw==","signatures":[{"sig":"MEUCIQD/SDJLQQfPUkttl4KUTtEqv2O/v7lWAWm8Rq1K3ZmJHwIgd4D3R9IkXIxORsQtusKlA64Hsg4ESpqO2QfWc6+Qy7Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439794,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtbl0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo3WhAAlX3oDU/E3oa+C1mWO9HAr1lEiAzxDUdnEQMO7Qzpu3kJGBu/\r\nGhW8cUi4l4Rr+YXACe5+ntYPkFu3pKAG3h4yQRG483q+sclh/8FzbvpJf93T\r\nNx3Sx2IrMynBvAPjSRXzwmZhGn0myu/qVmL75YPki33H6PCGhSuXzCUUBEU+\r\nHu39yEqUQg8UViULK2I8x8r7KeyusjPDX/YjqAMi1JhReqpWSabuVhPZOafH\r\nDD5OYzNp9ls4kCoNO767G21hVF32KN2noI/rwOUVbPH81QOX9Sbp953VUU38\r\n9dsxo8M+8ajcgQL1URnfw/RKgRWvzj34ICFF7ZszRLkpxlhmCK0Q3duWDH2X\r\nZkQYMXvz11uQwA8hnpdUHU2ls9ysqCIcJVbzsRLCqpcjoXNWlW9ffZWtqQhh\r\n8+IkVM6z4SqXbSPPaeJ99IEp5EZJHUxvYlHOh8/Tsw7qMLksarRjA9j7G+wy\r\nyw2YMAJGJPJxcOkgA0uK2Sw89uO2MbJV0k0JPIn/dgNQyhP7kwrFrOV9umDU\r\nQWLvdQIXc9fyAtz9hmWXUMnOsEBECL3DnaPkW+Y+9RYbPMm0DDqqoJTGAN2z\r\nB3kFbjLid6PkFrnGZtvFKzivr3Nh31pawrdM1ZQTRmjzdEHtTtjhwE3QDRtP\r\n/WoY4M1jzzaT/VOtR8qq9PteA0DIMw2EZVQ=\r\n=jhn/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8f57d41cc546a15258de2fac7e4ddca48b2987ee","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.c492898c2.0","@material/base":"15.0.0-canary.c492898c2.0","@material/shape":"15.0.0-canary.c492898c2.0","@material/theme":"15.0.0-canary.c492898c2.0","@material/ripple":"15.0.0-canary.c492898c2.0","@material/animation":"15.0.0-canary.c492898c2.0","@material/elevation":"15.0.0-canary.c492898c2.0","@material/typography":"15.0.0-canary.c492898c2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.c492898c2.0_1672853876307_0.760615147204184","host":"s3://npm-registry-packages"}},"15.0.0-canary.d7a2277de.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.d7a2277de.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.d7a2277de.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"189449ff19a63af0d05852b4b3f2d6331e295973","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.d7a2277de.0.tgz","fileCount":44,"integrity":"sha512-gNOAqj18HuNG6w2+7g+Ads7sw878pV21amP9JJ8ETbiNAh3hme+Dli/JQcMHzcHcbcl94aMgPteTltqSmjNfOQ==","signatures":[{"sig":"MEUCIGD/gI5DkS+94LUqvu0yoy50s4upLQYFgjRVsiD6Wf17AiEAnO1pnN/hItKn+xO61Fg095jNPhZA/atmdTVTH0Zczek=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439794,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtfF2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoKeA//SfdJbq9rD3vX35XWifK+gb1nQalwH72mXrA1ecZ2iY0sOXdc\r\nsFVaWtK0nKcLExaSoT4OlzWKd3vykHjRPzMHpYPTqVVT2L6s9ifyvxXw3YL7\r\n2e8XwfCibWIf3QViDA87o/b9D5Jtc67gmw9H1xn9pEYSzp2YNW7gKE3v4k1F\r\nYHfVNo3j+xEnWeOxEAR3Xt9rF1DdKdZV+EQC7+mJ5rxLaRYDR+2MY00ETSJg\r\nH4zogyi1jwSC6HgtFMAtZLbqZXYciEP+Mlua0OFNyLRUMpQ5EBQy+8EFv7D8\r\n6Pul/jB8eX7QDz4Z2Mtbzz33qjkJQTbcLMwkla0lCInP2H2A4sHMxbJYKzUR\r\nBWcUjZgxWNhru/HqdQJ3XbSOW50BDXU6QvsEIWDDyYjyclTEaVTFmghyXjCi\r\nRpFDFA+4OUkqoAY3FnvmlQvdIiokxBnoiBXzZQw48mNc766FMoRvhr38j/z2\r\n2F87eYv/2bG4J0Bd3lBNmNS471sRJRP4TjxsWNW2LO3a5AB523AQWMoG7hEb\r\nrCWuG1SGPa/br5a5SS/KnGUU4NWNfM/lgnKdwVKM0iaV2WFDwQgadlFvmehx\r\nPuUG9ljx8EG9VtcAmSR8l2VUmfecSyxNVvw/3rm2fkyChI6+IBLWr2S/3Iry\r\ncOO5AANw5FAFmWB1CUVjNSExDkz0wnxjRYs=\r\n=122+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f9c71e947019fdd0ca8837669de0401f3752d1f3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.d7a2277de.0","@material/base":"15.0.0-canary.d7a2277de.0","@material/shape":"15.0.0-canary.d7a2277de.0","@material/theme":"15.0.0-canary.d7a2277de.0","@material/ripple":"15.0.0-canary.d7a2277de.0","@material/animation":"15.0.0-canary.d7a2277de.0","@material/elevation":"15.0.0-canary.d7a2277de.0","@material/typography":"15.0.0-canary.d7a2277de.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.d7a2277de.0_1672868213767_0.6832440803845314","host":"s3://npm-registry-packages"}},"15.0.0-canary.fd95ca7ef.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.fd95ca7ef.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.fd95ca7ef.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d3d90d2d86a7fe8e941542f17cf1310e4a41cee3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.fd95ca7ef.0.tgz","fileCount":44,"integrity":"sha512-ovVxOFL6/TXxjxr3IkA7Qvdy5DuhfN19BUJVbaFVwCFhnmOFEF549CKtM1TnxyExAggGVBIitwD0gK/Ao63FWg==","signatures":[{"sig":"MEUCIQDeNOTUWbs8tgS4XEmIkhlKYyBoIxLbhk7cAMm7qFoqmgIgLY7bSwwB/ZP5uA+diAliwd3GiiwAkY8gj3KJ8d+NI0A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtiIBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp5/A/7BMCHDu3DVmNtPKBKPK3JUGeSBdxgnnupRc7LOTT3ZILGByHp\r\nSuEDvTN0BJaMaoC1qFFsLnN4bQ6agXuQNOX/QLVU7Xz6doDEwcehEoN6qN41\r\nJjEzl7MWzZAeK1llvu+iZ5KeM0YithYJ/CCZo8bhD2S+JgGZ+F9sSas1F77g\r\niSnchNoOkklvdCnJow3v8dSRkBZK1ffxJngcK7VIpsz/74VkywyzeF6+LcQ7\r\n//+tUChcADZh7fAs3GksNwMXH4spY1LOcXiZHyO/f7LZO655i7wJKnULvCtE\r\ndkyhos3SyVVOUmB0gBAwvlPtwL1LqUul8axcOkvHNmy4S8lvt6HlHFv89xka\r\n/VeVUZH05XiEZQJEPazs9X2gEQAJ79MjiC9e40EWngvpO6CkfKEPNG18W4fz\r\nOIkrwJTJpOKDEwuJBIS2lUp+qGEk24QMlhDT02Ppweae1NBDP68HuMenkEKF\r\nSX8GTK6DtMezWXvTEAU07diZoG0et6+Q+IX0eu263Kc1E8bAt5VSxy7iIXOH\r\n6p7FtXVGpns4WF9vJtMJ3W56l+DTsQNArNeEvpriL50lrybeXqW451HRTUVG\r\nCWF99D7+kZlYADUq85FyhFheO96pP6JHXlbjXHy/xF1BMZQF1EFfErygQ/dn\r\n7HViLUW1UEQGsYKXPp6Zk7RHx8ckmm9TOw4=\r\n=Uz1Q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b0d2fa371ec4a3d0a8a11e19d9753b1af5d2d62c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.fd95ca7ef.0","@material/base":"15.0.0-canary.fd95ca7ef.0","@material/shape":"15.0.0-canary.fd95ca7ef.0","@material/theme":"15.0.0-canary.fd95ca7ef.0","@material/ripple":"15.0.0-canary.fd95ca7ef.0","@material/animation":"15.0.0-canary.fd95ca7ef.0","@material/elevation":"15.0.0-canary.fd95ca7ef.0","@material/typography":"15.0.0-canary.fd95ca7ef.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.fd95ca7ef.0_1672880641502_0.5997460412062889","host":"s3://npm-registry-packages"}},"15.0.0-canary.1eb44faf9.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.1eb44faf9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.1eb44faf9.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"31a980d957a7136838a38742e59adc946454ee28","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.1eb44faf9.0.tgz","fileCount":44,"integrity":"sha512-eYoeY2CaBU9RiuiOmK62FVcZCND0Wg9hxEEHr610ZPFpDBDNCHtgkkmxucn0hRZ5qCWvxajtqDi+ueXHdkj5sQ==","signatures":[{"sig":"MEQCIEuZjd1IVvQzVB2xTVrIjp0m7xSRUmtLs5kbQ8P3CQsNAiBRZdcghOkvR9ZdypLVAhbUEOYvvvEtXu1ZY0Zue/Cyyg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtpQGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqGOBAAo+/4SIYXp7FEgvyprsgp0TfkP23I1Tb8w0Sodl/LghPIRLsd\r\nqHAy0DzzbSdyemKxKS7XyEwv2cfZ2NknsJep9GyNyfD5UIRT2Wmhz07oRUGJ\r\nyRyLwGmYEwhqY7Bevsfr7+QfVRZZ93NOpnaxpuoOtqmDRaeLQwPQkMA1hDRQ\r\nrn/NRIlD4ENSGeUnsqVB/G50lksBqAnhmpZFwr/jylxXvb7QXq0hJQGR1pxG\r\nNAcdDXSH8pni94xAW1AzEal6p196JwVJRbulTsygRyh7XoL4h6tFHSST5HXa\r\nxNLiKqmuYqJYVe5mQtVryDWayrZL1IjEr9GOf0nbv+EmNkNBr8VoVkhmLRty\r\nVInhZAaxUOr+aRB6oIa7tXV71fQmJ/+nFrtTwA51Pwe5lU23ZhZhev44VEEZ\r\n4jGgkqOCC6AQSAOqvqxLw07nj7KjMpdwriOfBoxnL8UF8iDbDFhJmuYvOg9D\r\nypEPd2fFb3TJHQpDFuKG4Vq6U9kwYMhjdZ29HdWWp4OMS3ruTTQeeGnvgewm\r\nhjVmQRUoL9sqVjqjW9tVvhoFzDMcXkAxa9o0sDxF1hEawK80KAHl/uBwdk8a\r\nyTExfyRFNAdEacnzEgyb2GzTtfT0Rr0Ap43YIKTJE5duw/3IFJDWM3QBb2i3\r\niY6+ZJSD6bZagE3VHWTrVwCtu2bInsGTx0Y=\r\n=A6vc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e0eeb94598a14217ebc97ec3e249d126a29a13a5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.1eb44faf9.0","@material/base":"15.0.0-canary.1eb44faf9.0","@material/shape":"15.0.0-canary.1eb44faf9.0","@material/theme":"15.0.0-canary.1eb44faf9.0","@material/ripple":"15.0.0-canary.1eb44faf9.0","@material/animation":"15.0.0-canary.1eb44faf9.0","@material/elevation":"15.0.0-canary.1eb44faf9.0","@material/typography":"15.0.0-canary.1eb44faf9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.1eb44faf9.0_1672909830230_0.8519061672293806","host":"s3://npm-registry-packages"}},"15.0.0-canary.adcdb7db9.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.adcdb7db9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.adcdb7db9.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1a042be184375bbb4907b09c35e881adc29853bd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.adcdb7db9.0.tgz","fileCount":44,"integrity":"sha512-Ovz6zT2105gVzLDqZS96TdsO6C/CEh33Nek+tZ65PLaOIUZUj6mtTCIW/fPhZ+xKfnNLIuKeQ3LEw2I713tdgw==","signatures":[{"sig":"MEUCIHzwGO8j7Q4OKy6EMZjAtzQTij0GTnLQyjocinBviJc8AiEAq0iER/wJk7w8qNpZiVOC8VwVfACIhsu81RL30Jx9z60=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtvlDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmocjxAAnRNWNNtXJWlWwMsWZq38n76anLh/8fogGsfAnSqYD9ZH7Ts7\r\nIvNkGdD6Gb8Xr0PQ8VG4ayF0DCwlp87z5IfbPadFu4QzfcINvgNfrnDh7Ze7\r\nB+eM4ewHl4ukzNg4sRYsIt9pru36cNeuyCc0tLGzGzofnYAQE/gKDeTORh5V\r\nFBBm38aJgZm46NfkgLTnfHLunBsebBwUMB/9jW2rxdfZhe/yO49s14KsFgpZ\r\ndtxXgFipzojwTuaYHdaa7MpnoUPIeScY5KaUIskPHSR6eUgBqVgpMN5B/hte\r\nZQQp6c8lRpMQg2chDpYGHQSDUqvETvTaK+iC47I/S7Sacgd4qiKx7AuMDVwO\r\nnGHQrkWYq25CEE+xQeDTUQ5VHLMKYkskWNokj7q8n9o1P9zmZthjSl4/KVCx\r\nuit712GtUjFAUpnfftr08oeR3CgMtGuX7coJJF5RNomnOVSfo3Y7DSofRF5r\r\n7jgAEJVxQByZkSEMQyy2Cwp2LuQQkPk9qXLFGOx5Ozu462u7qMiecfI8ySsa\r\ndaEFLqB1wBvLFzZ6+yYhyjp6Cel9i+f59TT92oZtH+JDL0RjV0X3FwFmONQ0\r\nI70qI8mz3FS0TAz+Obo+vQFXJKMlh5Z2jwsaA6kCxnfppWVESov2IV70Fc4u\r\n4aS+xrLP4OngbkDpcVYr8e72JvB0+j/Dvcg=\r\n=oCnL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2bb419da8b7b393c085616b6c5f28a3eebf832f6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.adcdb7db9.0","@material/base":"15.0.0-canary.adcdb7db9.0","@material/shape":"15.0.0-canary.adcdb7db9.0","@material/theme":"15.0.0-canary.adcdb7db9.0","@material/ripple":"15.0.0-canary.adcdb7db9.0","@material/animation":"15.0.0-canary.adcdb7db9.0","@material/elevation":"15.0.0-canary.adcdb7db9.0","@material/typography":"15.0.0-canary.adcdb7db9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.adcdb7db9.0_1672935747159_0.6865209310778426","host":"s3://npm-registry-packages"}},"15.0.0-canary.067af7eff.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.067af7eff.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.067af7eff.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"28e0971b355f648abe8e376aaf4e5586bd1d0f72","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.067af7eff.0.tgz","fileCount":44,"integrity":"sha512-7ZRN/XI1heKBdQa5+GYsBmsLVNK5cTsmIpXhnaXPXYRrxtSH0lNMIHlSNzhPSQfDXqll61cEs0XPN3m0l7IMBg==","signatures":[{"sig":"MEQCIFpvXBJs27k8Tin+z7rXuwCB5saHlLAr1nay5qQBtLYdAiANUvXmnx5RKW86/pGxwnYYiDDfMEOv8Mjk4YGuGSn1hQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjuKv5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqRDw//Q67+72sfI+BLxRbDIZ0ZMiSVAmKxaheo0GFYvz9rjSRxluUX\r\nFrZJSxGf2r3ix2nZI9iRKYoGaCB6Nv3szcWu+6gqY049KVN0fwEggiDeNS9v\r\n/h2i7v6N/iC24uB7MR00OVJi31EO/cucyDOs47bY076h7/qw8JEzepSfWXCc\r\ntrFKh9HfE+r+nYplDVCNcWVPRn9TJs1Jo3TOCFxCQSkMYxVZSf02idsTv8W9\r\nwtUGBLusA2M0DFMCN0MEivmmEMXNy+r6qCHu/rRhy9wUcYXgijlQ3z8kBgx3\r\nm+BQz3EvM9b0NaIv6Bnvx7EhQdv5J8UkGRNGdDEaRMa9yhjxifFSjQ97pY50\r\n+qesTTGp6LbAOCGdw37P7loa7lllQ15TslLh6tRQ4qsylM+0KS3QkIyUjS4h\r\nTFfga+7hkrqSk0Ddol6tliclZDKeOCMcYn672rIR1Yx+nempw0qAm5/z4wYz\r\n9lUvEKIlF1segxPx1PF3r6yo0gFjAsSsAIUW0jxGljTNVWSox53ZeLSPCOzO\r\nedZh4JUFZRVvKX1tOzTGclV5y/Sux3+krU69Uv8IRDM/kDGxUXNXYNiUQuOS\r\nQdh1RWchvhzBac23JA+MIwqeW+d9L3E3dtH5O9VIWqhrjkG0F25gAwXb47rK\r\ncMDvjgNFNRp8G0H3mU4ZL6F13Q/ZCvD2gD0=\r\n=e9vM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1fae2c792ff8ce557995a8d5d858676b4355c7ae","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.067af7eff.0","@material/base":"15.0.0-canary.067af7eff.0","@material/shape":"15.0.0-canary.067af7eff.0","@material/theme":"15.0.0-canary.067af7eff.0","@material/ripple":"15.0.0-canary.067af7eff.0","@material/animation":"15.0.0-canary.067af7eff.0","@material/elevation":"15.0.0-canary.067af7eff.0","@material/typography":"15.0.0-canary.067af7eff.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.067af7eff.0_1673047032900_0.6748623659479409","host":"s3://npm-registry-packages"}},"15.0.0-canary.21d1196a7.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.21d1196a7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.21d1196a7.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4b4afc683e16914fa9cd56fb8cafb9a3a12d02fc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.21d1196a7.0.tgz","fileCount":44,"integrity":"sha512-TpuKT2b3Q+IAjyFQxQ0eJot8fXA8t80S4dcRerF5JvFYnZFrb0qA+4OMfPaAQLv98cS18YwUQSg7AbM9TVVWYw==","signatures":[{"sig":"MEYCIQDWgp5M3j1WBofnQM0MLbxpNMw1M1sWAGFcbZ7z9IZYVgIhAOAumNz8r0j6OPeQllYwiLvhv1Mav0nkFEHIgUv/889u","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJju+/nACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrJWg//a0AxE+hPdpEOw3wQ0oi0rY+md/m/tt24rBN+d0V0VaCcWhmC\r\nyiKZtHtcWg+l412kbSCnAC8c+4YycFGTW6fUg9pi91Wl6q2bavkkLrw+tlp2\r\nuGyVA3xjiLMgQ3NB5rXBU2PVbUqjbUKDWMzvtCiKtiz9AtY1/FlvU3FU2Ck1\r\nXkBQPhydwu9MpnCsJVwt+z3Hwsnp02FGcXPiuR4kJpYuQgMfrSjJJkoNakBz\r\nZlcGWPBfF7zBuIblbae01nzHY/I7yCfMXQviaYMMDEbDTVA2WgKZxTH3XFeZ\r\n27f+MRjOQqZ1jPkVQKE7ur/jp9VaqUUQPWIPtVlNAS1P4J/oYx/aF3FnZZN4\r\naPrw9O7ntOdEd9HZ3vi1VNF6/KGCsCDtL2Eifu0VSGk9JSB5VLOPbXK7Jhi+\r\n3hUVil1BUeh4Wh2qbQOYcjG//5dwhYaHQBnBjGT6+hTF9RmNXXwLYzvDBr9R\r\nNrZElNV6c7aaTg9hyDyXm2dt78F8KU/K06/PWIAiGU4IvsHEEnxCOPfHcv0Z\r\ng2csup3fWH+rtImdZLsyGRHGTV76OG+z8w6gZRnak+AUZuXlNY7c+H5Afc7O\r\n4YnlrzHIZAQkd9SFmtO5ApqBoFRLdjn5M6SVykwzZiJQNo5BdkB2L7koaTpL\r\n+ksvxhlxbGzYFwT0o+jAIhDpil6NOb9NuLA=\r\n=2TiG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"361e536c54e276112f021b419f666618a20599f6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.21d1196a7.0","@material/base":"15.0.0-canary.21d1196a7.0","@material/shape":"15.0.0-canary.21d1196a7.0","@material/theme":"15.0.0-canary.21d1196a7.0","@material/ripple":"15.0.0-canary.21d1196a7.0","@material/animation":"15.0.0-canary.21d1196a7.0","@material/elevation":"15.0.0-canary.21d1196a7.0","@material/typography":"15.0.0-canary.21d1196a7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.21d1196a7.0_1673261031508_0.3353587683005923","host":"s3://npm-registry-packages"}},"15.0.0-canary.8d2d8d3c4.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.8d2d8d3c4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.8d2d8d3c4.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4c646dbe118a715cdf0d2e5c0422e10575da1adc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.8d2d8d3c4.0.tgz","fileCount":44,"integrity":"sha512-N7mG+37xnegyTqZzKub5xqY1gt+MAq3egKbLW1y9NPzX1ek3PbEfkcyYlCRpsspUUbf6xh5XI885c7Q8JQqJ1w==","signatures":[{"sig":"MEQCIBnDXJKZV3gLb06Rm8IRu+3IJdfi9sd1OutVfoeXy6bHAiAjDPtE6gTBsCrPRI3vIswC2BuwuRuN36SWZ1L8Amn0Kg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvJRHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmomow//eQkQRXbrbxwtm6tRjFehr7Ld8aSoi9gvj4pgI8JWoqU02dME\r\nYJVtlnrUvk5y0F4dLkiaasqX8L4pLAz0e4iJDFLRurJ6NIO7NTj3lITqMeVv\r\nXW424Plc+2LBq7eUBUQ3O5yMlTp01XNmMsdsxNzytFFb2TBKTaM6tDT2L2V7\r\nad8KdhYDwRYQ+9eRwSwk71jM7EijoUC34B6XwPiVenhnrLqSfaYmsLe+dBz8\r\nUCwUI0O7Ks/HSt1qSAdKY/aK7lsfrsjoDIwyMVirbninQK2YDkgH81LLYrCn\r\nUfgZyA63qhdcnGr0qGe52wacGFDNGrwmzegq/VPuA5qqcOhHgz0ecKtz+xV7\r\no0lXNJxLGeKXb0nJBG1TRDv/1ehNcfZLLWRSjncuAmyZ9EMD/w13IvwTclJP\r\n9CfUVj3kLZtYUq5MWgnjnLYJrBbBBFqmxY3ftFxH+wgWhF/F7oVqGaACZTOI\r\nrlgZeo2+KS2c1Jtx09w43H31YGcPJKdyTgDfAkOWw4D5za7g+IFdRVBQKElJ\r\ni3beEhV55FTTZWweGacY6L1oIoulZ3rIJeOTRXb2Vn0VpFGGguS40AMISJHf\r\nGAjpESpfgzyt9TX0CmSw+WLdlDGdWbGPqCSVpWB0+dnSmKo6PEPdANWVdvi3\r\nZlbewTJcck1rVE0rdT+zDwmfoqwD6hm084Q=\r\n=OHBn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c2df4624468d99280d9dcb0894d04d839fc8673f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.8d2d8d3c4.0","@material/base":"15.0.0-canary.8d2d8d3c4.0","@material/shape":"15.0.0-canary.8d2d8d3c4.0","@material/theme":"15.0.0-canary.8d2d8d3c4.0","@material/ripple":"15.0.0-canary.8d2d8d3c4.0","@material/animation":"15.0.0-canary.8d2d8d3c4.0","@material/elevation":"15.0.0-canary.8d2d8d3c4.0","@material/typography":"15.0.0-canary.8d2d8d3c4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.8d2d8d3c4.0_1673303111677_0.8302807819974141","host":"s3://npm-registry-packages"}},"15.0.0-canary.fc6ee6c32.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.fc6ee6c32.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.fc6ee6c32.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d23e1bc33a450bd8187cf2a46b3ed8c5bc1cbf17","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.fc6ee6c32.0.tgz","fileCount":44,"integrity":"sha512-fWp332FyPqfrjYclkR052ouK/QOE6JXAE8qRyMs4agoM4P1Os27FnneUBv4Ixx+kdxk/UTduLA7U/GjZrSHFVw==","signatures":[{"sig":"MEUCIQCa/S1W9qbsdjz0svpo+1vXMSac+PRRxIT53u1Rm6KliwIgGpZYKOEWkSPqRkY2+mtEjsFXm8ty8IFAcyKzejA1sMw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvZJfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMSQ//WhLOtUH3hkylrZXby3ZkFSIi0xJVVbalCNc9WC1p7mAfVWFT\r\nAAgC72bXBUDCFWy5FaZNdpH1gKUa70QRuaxXzxVrPhrSPvNHDIa58r2IHX/y\r\nJfntcEbP7Cy6l/zsVL+IJ2jhXwrhr19BICRkJT4W9LBPHJNu65B1ZwoJghcD\r\ny+avZomp3g5Hys8iNlwV58+J9cpB+RN2GVtN/R+Kj8+TIYxYLNRowtN2B+qc\r\n6lLh3K0uaJ7mg8N31FNYOWMRlaSUOuNh/podauzAOAIc0kh7H8neTQ9i3bLX\r\nFJGsSK6FlbpC1/WI97JZOKysakv1vXfecD1uacASJ5tcNk9mGcqkxxBW2+gT\r\nQ33+1CkDuOMS+6Wuk9BNWtz5T+4j5tXL9PbtmoBBQLhB4BKh8ZwOF2Gd6UB9\r\nvgsSM3z0t9/AbiIaGUb3+3g1vwznwtb5icL/QR8Q0s4Ov3HZNqCX2TT6MvbC\r\ny8kMIaSYH0KGgeZtlC+vCD/8hLCSnBHbwBYG9iipZKKVhY6rtCr13xdpaxUF\r\n84qmHmW0o1/6MrM5qtUjVOb1tj2dgYxgVPKH6VrbTNzJKtzQ609ykfEpzCg/\r\nPt/T3wVUpELSehWCCnbRPeQY0I/WQoYoIPvB71gfmftKYzuLpzSPhP8gYoFZ\r\nXmn3Q43HDn9OWlXuAd311G5WwGGb5/OC9a4=\r\n=YoF0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"225aabdf74bdefc3d2f70f268ddd04c501a821ba","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.fc6ee6c32.0","@material/base":"15.0.0-canary.fc6ee6c32.0","@material/shape":"15.0.0-canary.fc6ee6c32.0","@material/theme":"15.0.0-canary.fc6ee6c32.0","@material/ripple":"15.0.0-canary.fc6ee6c32.0","@material/animation":"15.0.0-canary.fc6ee6c32.0","@material/elevation":"15.0.0-canary.fc6ee6c32.0","@material/typography":"15.0.0-canary.fc6ee6c32.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.fc6ee6c32.0_1673368158737_0.9442574907057302","host":"s3://npm-registry-packages"}},"15.0.0-canary.73537ab0f.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.73537ab0f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.73537ab0f.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"068aa26a1b890e0a7806c59bfa6139bdfb1eea28","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.73537ab0f.0.tgz","fileCount":44,"integrity":"sha512-kL5b7Ag2oO4VNi2IW71Aq8ADcSs6wIRXBBkFsraxg/+gJ6Q8iX3rHsLN36znHHaNqo92Vf+cbBC6JBw3ddXzIw==","signatures":[{"sig":"MEUCIQDD5yROlKGPn+xcTI8yF76OPXCjHuoOWp7F+kdmvIkBJwIgGf7PQiupagYQHFl5TMHZCA9zF7X9tlyxkWU5bwPixNo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvaqbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrkFw/+OxigVfALPvtRS2lQi3DtOjEITZAu4BiKs14iIvM3Y1Z2RCDn\r\nCBHjdhWxGwI601frbs53Y/U9J6/VFAg4OzYSybe94BrusHezHPXMwAnowGYG\r\nvsiL9QXRPkJBOa+zfO2doXh/qCfduLql9tPfy86/ujLVXS79+qWW/FfaUmJT\r\nv7g5TUUSn00kec68wyqUKBQ1rxsuZ0KTtMognTqUegSEhQOzlGM1c9meMGLf\r\nTjW1pbvad7JxbmLxmWzQa/VqC9iQDE/IxDjagY/iz6Gw09+BTp+mgLrCF6Iw\r\nLARlSDVDC3ZsTYv7egcTd2T3fk6FrEFXKfL4qYPJ3KLtLOdZ7TfZ98pwJo5E\r\nDCLsxRAsoTD5N9xV2TJwt6P5UQBuaM3V5g0rkpH4VCoy1lcH/2MJF02RJkPe\r\n9t7C38uc3syxiPsoM2NoPMA6TNbpETA8YEwDzdfeifuH2/3V4O1OxPAJCDKv\r\n5mGAA2IxLjgj15v/W98bOdH263o+ldV3sHieSS2Yv4YTVHiKgPh5K07aNfTv\r\nKaZdEAAo7qIgezyW7avjQudskfJgqINn60STpomgIcBRjMKvxBuvZsBD6/kg\r\nZDhEkTymxbFvLwGI/r6Fw4IaNvWsLTeUUNY3ywcRd8Iu3oz8tX4BHGkQdJTs\r\n6w39TJPFUqXqkNcH/xWE8/p4Dr37VA0RN2w=\r\n=mIPQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cb3a480e7be3c8c7bc8f8ee0acf1ee8145f266b3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.73537ab0f.0","@material/base":"15.0.0-canary.73537ab0f.0","@material/shape":"15.0.0-canary.73537ab0f.0","@material/theme":"15.0.0-canary.73537ab0f.0","@material/ripple":"15.0.0-canary.73537ab0f.0","@material/animation":"15.0.0-canary.73537ab0f.0","@material/elevation":"15.0.0-canary.73537ab0f.0","@material/typography":"15.0.0-canary.73537ab0f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.73537ab0f.0_1673374363671_0.8607344560433825","host":"s3://npm-registry-packages"}},"15.0.0-canary.684e33d25.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.684e33d25.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.684e33d25.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3f5084d6c1f7fbaa791f23ddabc8c13dd4548465","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.684e33d25.0.tgz","fileCount":44,"integrity":"sha512-1M+oupUxflfW7u81P1XlxoLZB8bLzwtpKofIfDNRbEsiKhlLTERJR3Yak3BGE9xakNMysAaBHlkb5MrN5bNPFw==","signatures":[{"sig":"MEUCIG9kLdctTWU/FQB5TClyBXW2wDfE6bCNNVh5uf4pTk4DAiEA5WOT9ZH+lrathn/1Go16vnDMl+NkZZZRuVT7Vd+faAk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvbpQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrfKQ//dT2AwvLfhUlAb7jD+e2ESK0VcYF68G71yB3taJiOmGw90o/s\r\niVEW3S9y0zeJhi+E1J+TUZpDp2KV90lwgBzDMq/4QYirELh7LI/ZNgmeuUMK\r\n63ygxXS5JB+rvZOKhQ1mK9L1LYO89mfvtJZukpElIVgFhFtFhyIswGgzqxJj\r\n/ffMlAfWcGNWZ2rHOswYFqB8zpAFLwJ+3HpUto6Vp7DsRhSx9lKxkbV7YrAS\r\n2hV1BTZwhgRCPX1n17TviJrpVvtGncofUiokt5CR1k4d1nEEaYIZtBMBp+8d\r\nbUly+kWLkxGC/yN/69u4u0SmyXu5FnD9ThL+j1uk5CscbNOfcOZxDydM7fOr\r\njhwAlpwzPeNTus/ugUexX4fcJRx1sl23eX2KcQe0FpPAnBvCXN4j0nu+zItX\r\noM+xtgIJZ+Ocop/x/4PNGjfaQ5FHxnFefWFSDGaL+GuzTwUY8KAK+4VNo/R4\r\n2Yh5E6K0pB8yqYAaoXfloxHT+BERhotbvD6UE8yDzUXGuGImBBTv58Ff2Mz/\r\ndsDUt/td8uYBLK2x9GI/HJHqY4yCEFORRhezyqSwgWJ9/LblAbciL0aa4Sal\r\nWHZ2DVM5pDkJ7acXulG7NJRWEizY5cTvSr+LH/woILPbVukccy7hfGGW30+Z\r\nu25wX4iWhNnccRkGbd/ne9nG3sblB5dsBwg=\r\n=7qg/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"518d26a1e091925c1b3a87f4d4f4dc828580a863","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.684e33d25.0","@material/base":"15.0.0-canary.684e33d25.0","@material/shape":"15.0.0-canary.684e33d25.0","@material/theme":"15.0.0-canary.684e33d25.0","@material/ripple":"15.0.0-canary.684e33d25.0","@material/animation":"15.0.0-canary.684e33d25.0","@material/elevation":"15.0.0-canary.684e33d25.0","@material/typography":"15.0.0-canary.684e33d25.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.684e33d25.0_1673378383855_0.5856061004552218","host":"s3://npm-registry-packages"}},"15.0.0-canary.0e89aab6b.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.0e89aab6b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.0e89aab6b.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1497e6cb907e3b9753a51e81309268a0842da77c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.0e89aab6b.0.tgz","fileCount":44,"integrity":"sha512-FJexx6tNEV+yFkF29iDlwzDLTYTUomD3p+I5WG+QTdGOWKtHytfq1fcbjt06GqPh0bqUvQH74Ugcnky3Eh7mgw==","signatures":[{"sig":"MEQCIBrUdW0XljzsM9WSvn+ssmV4X+R8g+KbMEV5bQfbyH9BAiA4i2kYCvE03LC1sPUjvtJS/m+w8ZsvStWXrDCd8xzxqQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvuFQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpTDg/8CkZm8ipPV/f+XlX+roKgQe+n7aMf67sBcKrnrsMsJSSOs4cr\r\n8CQB/b1MNpbuExjKvD6PkaN8vVM1T6h4IrFOlpZK7NFLmQFwIeJrhEiB+j/j\r\n4ZnguMejmjfX/aTixvIzLb3Ojs4D1YrkhlUDFP82W5fYyLMIFCTjnVLDRNVe\r\niaOVpaD0v0hZThp7p1M64O6bM0jiozwESzVvQgUN1n6/yfmL2lyb2/Mlq0ck\r\nlEYrgK3c9VYc54D8yHzAVarYJQbajphEjddcxs/ufx3qEVrNnb8JTbI6rkvB\r\nYMgTPWMWOhsfgZLYxlPusMY7PfAT7RO1foMKSep6dTzdrAa57h4PM+lfK3k8\r\nyMiXG6iEH9lzUUpdNkORTpCG2eWbcbkjU2X9sMVJWB8G3wjY5raVdvoEDyYx\r\nKiG2TcXDL7aiz3KVq54pUN2D1ox8ILZaedthAaPxm3USnef79p6wV/Dm/q09\r\nOzak6dedA0hLec5JGgDp/YV3Ms6IzQhA6n5GiCZa0MnmrxNo0R+BZ6V7ifjl\r\nFFIOUL9zX+1JLjazVB6fFD/ItxaeZKneT5xC9+5+f6EppfE2R5KNhMv7XIV1\r\nPLGSkL7wBh/WGg2yoTNC3LKbiDdIUIBax72Qsocq1IPeGBxLWKrU/q3YIUbx\r\nqlG+LTHxi/au/JtLKf2NpHtrKPMA60cb4a0=\r\n=qhYO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e4a9f0d636d7f4d6c0fbbf49a7016627715eb3b6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.0e89aab6b.0","@material/base":"15.0.0-canary.0e89aab6b.0","@material/shape":"15.0.0-canary.0e89aab6b.0","@material/theme":"15.0.0-canary.0e89aab6b.0","@material/ripple":"15.0.0-canary.0e89aab6b.0","@material/animation":"15.0.0-canary.0e89aab6b.0","@material/elevation":"15.0.0-canary.0e89aab6b.0","@material/typography":"15.0.0-canary.0e89aab6b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.0e89aab6b.0_1673453904522_0.3623282100564076","host":"s3://npm-registry-packages"}},"15.0.0-canary.b0103d10a.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.b0103d10a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.b0103d10a.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b450c6a20e23400d34da59d3ea01a8e61974331d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.b0103d10a.0.tgz","fileCount":44,"integrity":"sha512-DnXc9z+hQeF7LvCQ5V5IJyi7/W7lQ2S9Gwmqwl6HWrN5hWhUX9oXY09qdXra25IWdpnr0/oVazTuCVNBMEQLhQ==","signatures":[{"sig":"MEUCIEzKkUO5J7wIWSSApA7e/dEgCmUsOXju4SJ8j4LAsaPHAiEA5w+qTLYzfbz+PmmbVV1HRGzWsX2M2kTqctPUXd+OZHg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvwpCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp75g/+LetlVOSp8t0p7S8UtIvTdZZ2vnPu0x5jM5eaa2dFfxlq29dV\r\nqdgDw3jJ1rf9xStTZh72NpAQUW0NXHLnPbrRePH6r1JWV/tQ8dkqesksOtfi\r\nAsdLQRbuDBJxMPMnQRs9x8inj8eXw7qwDBoCeSdfJUWNyt0pi1XO4FAXhxnl\r\nJ3VegfkN6aOr/1EMf9S9J2ZU1591wAPiWtybTqNvOhjwVoTKhCJLcr8b3+Gt\r\nmLAMQSVsUVyyUDtzB8sQ8ky0Fmln334xeSrG3q6EDSpiNjqC6UKjiQtLnrlm\r\nVxowttHU1pEd9bPzva7w0zWzWTVGtwp+/+PQ/TjdISEGZi7oAO2oUOKfvcRw\r\niF6kOpWdmbmaK+TsU1bmGQAsnKwxpWlA8LVj6dNAM4eE9+LRxEFzB81aTGsE\r\nsmF27pzdh/cziP6as9bmu5wFurlIE/XzjWllXXkETePC2asObk6YsuKEC/N/\r\nYMsOXn2zxOWkKyRux4r2YTFOJOLPLjeMunSYolimHyL8gJujZ1Vj0RxDZzvc\r\nzWphSWgsueNLXbHgCG9RbRH4biFQoH3+jJdDnbOAv+p/UEkYREBqgfGttNd9\r\n8X3+FgjFGvwSSnOcfN5eMVSApkztrGeUrdsOHqG73vprssxpOiiJ0h+K7fxW\r\nLpg+YopuI5z3VbDqSWjnWXlS84vlzQUc2Y8=\r\n=xsZq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0e133b89a4afcc8020dbafdd4d22c734080d2d17","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.b0103d10a.0","@material/base":"15.0.0-canary.b0103d10a.0","@material/shape":"15.0.0-canary.b0103d10a.0","@material/theme":"15.0.0-canary.b0103d10a.0","@material/ripple":"15.0.0-canary.b0103d10a.0","@material/animation":"15.0.0-canary.b0103d10a.0","@material/elevation":"15.0.0-canary.b0103d10a.0","@material/typography":"15.0.0-canary.b0103d10a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.b0103d10a.0_1673464385889_0.09476542713042546","host":"s3://npm-registry-packages"}},"15.0.0-canary.50e7a5312.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.50e7a5312.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.50e7a5312.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0b459cdd28c78f93ec60544f124d14accb675b4f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.50e7a5312.0.tgz","fileCount":44,"integrity":"sha512-KFlRPRHuA2g9C2Mol23ZcRp3DtS28aPwtB4QT5n+9Hvz7SQ5nCJGFskh+HREoh0bjSuYCZR9B8mRDui+2oSy2A==","signatures":[{"sig":"MEYCIQCyAd0QsUHFrSemS2KBJ7j8XBot3XOfV4j3xp63k2UreQIhAMZUit3mZhq4BFyszAb9hNZGH5ry17qpn23u/yPBEUaE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvyI8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6yQ/+NorxMRWXK8xNb2BQgKvwwm+yz8VahXTp4A1PKRgeVRJVrpe0\r\nPYo7EuvGDi4qzQkptBNWsuYsasuPJ2K1C728LPYJpz7pWLIaCZwtwr1Il9W9\r\ndMQ5JJJtCK9A3riUNfGg0BcLqJfELklzRD9GZxKx03XuthoIpycjDGhqH6Mt\r\nYZ79wHjfB5J+zTIjZ7ZijbciHGFm+XV8SqX+PjBmuYoIAdB5qhSGcOgvFXsb\r\nLxRmhiUYSkdilFQXA55XZ3ZlSwJ3phpJPn+4/3ZUKOVyEHpuFwG4GqoO1ELD\r\nrkQ1dZI8jsfeS5w39Ihq2jOLHnq/iPQlZ60ZnYTy6k67f5kNok+qnjU/K58Y\r\nLMOxw2snepDPdBe0et78U+KrRDlr6l1XYERXsj462+uL1JsUf1akD9hVIpdJ\r\nTKGZnRuPcEk8Lx9F+cSBeTusAYcfsTVrLNectN7JTUjJkgVVLb3lkHDtLcGV\r\nEKO9tRUdzB2DS9dSkY0vmW7mAOSjqgML1rfVqV9NHwU+s7eAK2eBL8EFTaon\r\n9x2+9CO76qDLeEPYFFD2mFbkefojM9mzLyPFtKt1p9VNnueu4EcUmCfa9cE7\r\n/PL7/oeqPvMMtlUQbRWm/g0v933GI0BXooQdkryRgw8l8mjSIVw0qV/k1wvM\r\nS885ybt/VA8kazUB5waSK35yKMdUlYK8NMM=\r\n=ts13\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2d4b8df3edcb9b5e9fd8d8b6645dc9519d92f376","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.50e7a5312.0","@material/base":"15.0.0-canary.50e7a5312.0","@material/shape":"15.0.0-canary.50e7a5312.0","@material/theme":"15.0.0-canary.50e7a5312.0","@material/ripple":"15.0.0-canary.50e7a5312.0","@material/animation":"15.0.0-canary.50e7a5312.0","@material/elevation":"15.0.0-canary.50e7a5312.0","@material/typography":"15.0.0-canary.50e7a5312.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.50e7a5312.0_1673470524446_0.5786134768787192","host":"s3://npm-registry-packages"}},"15.0.0-canary.202823f54.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.202823f54.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.202823f54.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fc2f2f02096d14c8c86374940665c8a629432e9c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.202823f54.0.tgz","fileCount":44,"integrity":"sha512-NbL6HboC4ih0SyPCcxs6T/KpNEPXHSTutI93piv2bqhi9P4vn4JO5AUlJIojird7QT4yFQF7QZKtHQfvm2EAkQ==","signatures":[{"sig":"MEYCIQD8/JLtOv6gh8i1PzB9Xx0EgUKdC0pbfUqorbbpJ0KHRQIhAOq3yyuqdKM9CEPaulgZVsIIeq+5pWLYCyBF3DurxzH3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvyv3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNEw//ZcKhsliuDPdPW50m2s19Kh+2CDOdNsNXtKLoOZHYfef46Cte\r\npZKMqm2ipESsK+gotIl0Tb1lsiYzCJIZrM6FPU+82udpS2ji83gvZ/DIux8r\r\nXMUjtDomc2w+SulDTi+0BKfeTI7Kpb5O1FJuw4e01se5VkLV/KQCKLbFf56x\r\nC+TRDy+c7UQg4yoC1uIlPbBNolve/c3twznxYTEMAeAt6XKmvKXd73O54PME\r\nLW2YTER7co6gyfBBHP/T5aWsMXjMMugUPyVj56oMLQ7SvoSadHLFD7xfciwD\r\nfTQoD265HT4JpQXrYu6MD2EQRAw+6veE5w/Xnrtdh7yChm/ip089McyvRhLr\r\nMETRAeDTyD4kwzd7Hrn9wH5lb0JgNYw0xCzamQIQoAaIZIcg6hJ47wNxW5Wz\r\nKmLUNJTxjEKwyaVhtAWejei4oZtWSttnyqzFtNBDsGb/wgt+UFrqVbl8a0ax\r\nX7LQM8hPLS6hP1xXkTEMfA6mOxrKY0DUY9Shi8NDBljOd9CjHENuc5izaQIA\r\nzt0KU58fccTLkoid3pkaDUVUq5uGVEMbawT/uZJatdeJxnKdKLxwW0pBd/To\r\nsL7DgNKlM8UgpL2ims/oeMGN+ByUTkLdidN48IiONmSFP/eOlEnB5E48BEpK\r\nhqevz01abTEFyD6IEmDQYiwkSdpNACm1qgo=\r\n=l3II\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6a4dbcb0b4c7d96a85ebe59a5ff66d2469e177a0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.202823f54.0","@material/base":"15.0.0-canary.202823f54.0","@material/shape":"15.0.0-canary.202823f54.0","@material/theme":"15.0.0-canary.202823f54.0","@material/ripple":"15.0.0-canary.202823f54.0","@material/animation":"15.0.0-canary.202823f54.0","@material/elevation":"15.0.0-canary.202823f54.0","@material/typography":"15.0.0-canary.202823f54.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.202823f54.0_1673473015151_0.5938416925005587","host":"s3://npm-registry-packages"}},"15.0.0-canary.199fe2a2a.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.199fe2a2a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.199fe2a2a.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ea75b8c4fb7376a72fe3677922a0a0e9ddaf29ca","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.199fe2a2a.0.tgz","fileCount":44,"integrity":"sha512-Ts940SyoF2XJPIUHEzdVuLAMV2yDjqVuk55yHDJzGfmBkdgX3jaHGR5rLyx4s4s1QzUZJqpK8GHDf1BrM4MAGw==","signatures":[{"sig":"MEUCIHP0MzFE3xwSwc3T6sNctwG2n3FAgEBkORSXdymuVaXWAiEA9hS7Pv7lTKuEMlH9fU4nSts/jBwP6nyvDWYuS6XSIys=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvzCmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp75g/+Ki60nKwGz0VxkuYkOV6+6Dv0IzLZHdBXjqoCog9SA0XJQRSC\r\nTp36+cKGVRNJ5rLrHBZ0cwxFLu8dO1E5aT1P0t7iz05p0UGdwlByKtIDdvVV\r\nPgzOWxW240Jr757wJ0aiOTjVyUYupqzSgvM0lKPiBEPEIFKZ7OTlL/OHpklJ\r\nCjBqfZNNNojwFiNTR+xQmOvUcOo/GXyXVujEAkdqCFSnyiRPdCK9VnnF5rB+\r\nUS9ti3B9x9jPVg1qO32FKDpPGr4Ny7BaUCT20Can0CR0o3qneOMFyXVOIlUL\r\n6ieBjmYvniTWzNpj8FhbGz3gy3SpLPrQU6GL2CfcoyDQmQdx8BzvpBuA7YbY\r\nRn7rckn5774yL0xb9k8/YWaX2ZqUejesdDnHFgA+KLASWEyif0o6wfL+U4VE\r\nwpmT1UTTDDTOU8h47UpZg3Ztt2wn0mE/GhrwqwZhQ6H8ez8mjCQ3sXdtMxu4\r\nYjbVEPnN8JNbwIqUSezYiCANERzkmxHWmOhTTemZNzLG7j2TQN2D8oPVynHQ\r\nS6tAUNRAZft5+mEejl1w4LRpu1EgUKOGhgsTg1llzPnMVVePCGPGJiFj4o/B\r\nF6QG05p5ZVAfTVm60ACQw6z7spB2VNdrEZLVqCfz3Itee/TVnURepf0i+yRj\r\nuAFRh5mhIo0IZepfpG9J0DuYNncZhbqllQ0=\r\n=C1Qa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"eb39fefbc3ca102a52db83ad19b42f1a2b52ecd1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.1+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.1","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.199fe2a2a.0","@material/base":"15.0.0-canary.199fe2a2a.0","@material/shape":"15.0.0-canary.199fe2a2a.0","@material/theme":"15.0.0-canary.199fe2a2a.0","@material/ripple":"15.0.0-canary.199fe2a2a.0","@material/animation":"15.0.0-canary.199fe2a2a.0","@material/elevation":"15.0.0-canary.199fe2a2a.0","@material/typography":"15.0.0-canary.199fe2a2a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.199fe2a2a.0_1673474214283_0.41820891858095277","host":"s3://npm-registry-packages"}},"15.0.0-canary.8c0786d6f.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.8c0786d6f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.8c0786d6f.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c6e285535e2e6a691df2763857419588396b39c8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.8c0786d6f.0.tgz","fileCount":44,"integrity":"sha512-dz7vt8U9aZ/qsO7D5NLROioVTldRgmfQa0VdBAaSYBAIgLN7emjouqdDfXS5oFkpKasLCEygPW/3zcViUM9RFQ==","signatures":[{"sig":"MEYCIQDJ3xCuf1dIVa4tPTl3Ekjs0jOKnOhTZuyZ01I7MLllpAIhAPOdkz2IOnGW+4bq9Itn59ELQbwQDUKS/JvHgQ2X96Xy","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwBstACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmowmg//SryMIYOc72bR9MLL1mYpBYrFcBDfznIv/vkFams0LPuFOUcn\r\nnjr6buXiOxdBYppWGa9SfKHtOEG7Szb3C8z3vwDimlhvhQhaOgfFwiet1Us+\r\nsRvWlQmgYR5teMFCh8bFXu4NcAubOsTMz1faStHKr6EbJa5uVySRhmA0J44K\r\nwIsMhJ1KdHvyyuLGgN5bzeEqnKquJZZVSWoab7gIwVjoWNBrbzwukVzDA41Z\r\nZoHxAeLGwFsHZEKAAFq559TydtGc0PDZfCXnXihkmaS+MqxtDMO/fiBACsdH\r\njtvyF+tzoIZyGn9k62gLe4mJPrSOXxpL5gbzz/AFiq/9bEfi0lPJ5j8Eao2P\r\nfq/2n+4ZPMp+eEB0ObuIoXCd/4/fvLk3LYEKkuC+zgk4DdeDBDe/aEMJHCoP\r\nx0j6+JkhCa2XHnstxhMG8o0xGVqXbb9qzyeecFyIaTwmTGg00QzlMoNpbeDW\r\n/4Zs0zehfNsNsK2z6re73OeZbqx3Kcfsj7OSXBx8Z/1mCMaQpNWxfIpdO120\r\nIM2rKa1nixv4g7ssgsfmtEE5bogiKx3/5e2HjNvcYUz9CrXwOKpVF1QuaDkX\r\n/zq0VbQO0PNGb7v4ZGh5iYTzdTQLlnESfGJjKTjIv0yifKbnJT8XnqaBEzJH\r\nw4Ao65dzVGb3md3vX4CDlun6LR0W2AkGF6I=\r\n=f7E5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9016794346c3c3cab2cf31154ef6a35eb5598994","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.8c0786d6f.0","@material/base":"15.0.0-canary.8c0786d6f.0","@material/shape":"15.0.0-canary.8c0786d6f.0","@material/theme":"15.0.0-canary.8c0786d6f.0","@material/ripple":"15.0.0-canary.8c0786d6f.0","@material/animation":"15.0.0-canary.8c0786d6f.0","@material/elevation":"15.0.0-canary.8c0786d6f.0","@material/typography":"15.0.0-canary.8c0786d6f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.8c0786d6f.0_1673534253612_0.8819728574604218","host":"s3://npm-registry-packages"}},"15.0.0-canary.8a74f7c6d.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.8a74f7c6d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.8a74f7c6d.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"92a2d754e8d9b733e3447137138042ecc6512894","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.8a74f7c6d.0.tgz","fileCount":44,"integrity":"sha512-6VHSI3PMOPfHvB6iiNWKcjmO6WqwsEUxX3Gs1qqoSBnS/V3f5bePmE7nxfxizQQnc5aHgbZm7PP2qphaVCx/pg==","signatures":[{"sig":"MEUCIQCTQYZMOGzInwNN8PYZKvrw2uicELG2sjNTyP8udorGAQIgZSyw4QXAaXhX8A+cuuSwww9dwZjv6oWv8+lh7ibvDRU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxvY8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqapw/9GNeILHkDfftDiRXyE1fdXmtyyRZy7ymddTICrtXxp2sJFeNr\r\niZD0KUvgaikfrhqIEabeeA1h+ZsJ3N8qE2Fgo1VqRB/oOTbY/jU8gnH5MxA8\r\nK/ozhHmXuWRJYVuFYk4+ZpCJX4oSh58rKxOzl82h34jo90CFF+sMsiPEiBjZ\r\nTCU9zFZ5fuVJEi+JeEGpswkS1A3TnNgheWy3rYj0B1L0bjxGLsl1AYeYFVq2\r\nMuClslbO8Lxnxb73xp8on7aw+hDFjmr1F6tFWUyEQpfPcHV9rmKRFkT9sMkb\r\n3xJH788wrLXUaglCgGr/EXuc0QmGRjxbZska0Lt21b+ZwM//URFg2hkjJFNK\r\n9joXoGYC+3GBCbm8F/60LQezsKfWh6TRuJuNJdde1su+U4Vcz2dlvFfOGmHL\r\nVijY3cktcZK1sJyGGY0R4r6BlQd1C44mZzfFTl55fYRYEubF5wAB8MFI1qja\r\nRakZYeWN6894iE+ZpTu58Vpu6bVWp9t0ynbLLDgZ6gsUeOAsp9W/kndJSNeF\r\nojbUG/kZGljtn60WtZFabr8FlQM3M0Lc+GJBpBLCDfg8bQ6yNzAXC4iBsVAE\r\n4DdF01WLtVW6N3/emA+sC3HHz6sHbQxU8z8bI8oqMBVxhWrkFemtOT8TbgAC\r\n+6elPsPmc24UsJ0IZsACWluQV2J2j6tcZoo=\r\n=rZ20\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9c676a1e4329c32508a9e7110198a336dc704f58","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.8a74f7c6d.0","@material/base":"15.0.0-canary.8a74f7c6d.0","@material/shape":"15.0.0-canary.8a74f7c6d.0","@material/theme":"15.0.0-canary.8a74f7c6d.0","@material/ripple":"15.0.0-canary.8a74f7c6d.0","@material/animation":"15.0.0-canary.8a74f7c6d.0","@material/elevation":"15.0.0-canary.8a74f7c6d.0","@material/typography":"15.0.0-canary.8a74f7c6d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.8a74f7c6d.0_1673983547956_0.11519026525203802","host":"s3://npm-registry-packages"}},"15.0.0-canary.b4687fdc1.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.b4687fdc1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.b4687fdc1.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1fa5bd4ce883db574dba585bf74c3efee1c59ad0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.b4687fdc1.0.tgz","fileCount":44,"integrity":"sha512-0PXLh9uIDbRGaAn4+Lpz9aRBiROe9kwvM+CM7dmfGboJrP5CZ0MCK2uCdC5H9myIU2EyTKRF4yCL0geOjLpZYA==","signatures":[{"sig":"MEYCIQDKvrZGz/x7o/MH20F0dnw2PWKnsLgkgVVWIa+dD8wIEwIhAJ8f3CGap+etqxZywW7JT5uaLKDlEHGW9QMYRYEyW+yj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyZ8WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrdZw//T5QGG8d/2FW0ZDLOeIsqK5W5/o3QrcVFENfgrZ58U/DwZfx0\r\n3f02/gNIUsmHlvFSRSne12gqkQzajrLfxBwb+ez3wES0wCN7vUlg7EOPsJaU\r\n6iSAPvIUrHH7hAIE7bLalaz4/cJ8wmcSjLOyngt+WkQNfWlrhynr/FKPDJnv\r\nrPvzPnDrRTVZQz/u2rK+HsRPA0aQvTqy1N3A9i9bqN8qnfIcocyIYd8Xb3OM\r\nNupB2jSbd6EQgcntv5K2x1dIjcJleV4wF+l4T6K2/uhMB7CoAutACUdp+1Ln\r\nkHWUYkQw1QGEJmKbXN7sUavtnJriANJsvQZYFMluNND+/YTgJIwUCS9Ej+h0\r\nLBIYa0JD40MUgiX56LddStMQs6d6I47av5yLpE0fhU09ACopHjdlI4AjzRAO\r\nKbrdun4f++Rfrp3oNn8x8DW7mtU1nC6d7tAtNu0JcVJ5+tbew/CpghQSDJGZ\r\nslBRIe6kh8h2TqlKbewtAjeyn+0dVITdehdU39qS7JAveKDKXziHX+9M4hee\r\nsbh6EkLUL/dmaEd6NUjT0avKv4zzBRaa3KNoukP6Kx6xKeDd4ghon1uirtmC\r\n9rgT6DzQQcK31ldkvxvQRpaPZzG7NKPF1ubHT0wiBRTsknd6llC/9XrGREqS\r\nzgDT9jqK6pNJxNhd1CBPVMlEUAQCZat1DfU=\r\n=S1ZT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c9ec43c7d66a73ecf591f982a42a582e639a50b3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.b4687fdc1.0","@material/base":"15.0.0-canary.b4687fdc1.0","@material/shape":"15.0.0-canary.b4687fdc1.0","@material/theme":"15.0.0-canary.b4687fdc1.0","@material/ripple":"15.0.0-canary.b4687fdc1.0","@material/animation":"15.0.0-canary.b4687fdc1.0","@material/elevation":"15.0.0-canary.b4687fdc1.0","@material/typography":"15.0.0-canary.b4687fdc1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.b4687fdc1.0_1674157846400_0.7589082295077461","host":"s3://npm-registry-packages"}},"15.0.0-canary.b836b9892.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.b836b9892.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.b836b9892.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a9258249170f68173a3453486e145d01d9addaaa","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.b836b9892.0.tgz","fileCount":44,"integrity":"sha512-s345aO38E86bB5jfc9wsviRyf9Xwt4jN3hRO8XCuf0XPVwYZvO5tWoHQR8WtUFql1pTiFg+Yg7E5J2q+HBV6yQ==","signatures":[{"sig":"MEYCIQCUUa5yDiOpSD1964iO9Xb5lRQ3QBFg3Opt8ZfNHNJfIwIhAPTzdJ8CiHK9L0i5qERhHUXVOu6I9xBm15TUtZ3l3qiC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0F5WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr9lg//XZVUFZwlX0rP/YY21QixTa4pUJYb6ycHFaK3K4yN5mb/A8C/\r\nldzhy92yZz2oRfoz2JJbUHLhA81EODm8WV2D9UMORvJ/sbyH43yl9KDkb/jn\r\nz4pts0fjDtHbIwO2knVyi3fYYaA7fAlD5C/VaEylNoQwrcQwyRnhirXG8b+6\r\nq1Fpp0iaxcqaHhirPbBMuYrmIXvgapYID3szh2a8hCzaoi75qvi1O5D8Qntn\r\nzXBoskpAp9XhOQ+eZ1VSnG7yeJW41PbDbZZZNjlkShAweykNiotbikXNalC/\r\n3aWylTmCi+wyXUt3DyuuXCfwN/XzTUN2yp+V0AvfTGLkBA3SNVF6neeSjrdL\r\nBdrErb+K+N5ZQLVAMcTTWTwUNiRSzWpVi9YcGgINsUvajgAVdtIumptKcMBa\r\nvExQ4416fEOwozcAD0bhlvErOwzIqSXpMlk7+BoTbz1KgKiD+tq9xtz+mAv3\r\nrt0Ocxhj10dxmi5e9MpuVdvmX6ukVxY9jDfgtlpzxhqayGZy3LpxRWCHNmhm\r\nE+95XmfTK8MUnx4vB+40La+GWpwsyuS1HJCnCXPopwqN3vopYPUOFaCRtRrK\r\n00OcyM9ckJjB1PadiET34KTEx5dSfJ9xMda2FX3k0ulkXNlI421dYWblnewU\r\ny7Ceu3pNmGRFEaD6vtINlwHEgmMS4Fc8/4s=\r\n=klzC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3a9a0b2e64227ef1f8979cd5b82be3767b100551","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.b836b9892.0","@material/base":"15.0.0-canary.b836b9892.0","@material/shape":"15.0.0-canary.b836b9892.0","@material/theme":"15.0.0-canary.b836b9892.0","@material/ripple":"15.0.0-canary.b836b9892.0","@material/animation":"15.0.0-canary.b836b9892.0","@material/elevation":"15.0.0-canary.b836b9892.0","@material/typography":"15.0.0-canary.b836b9892.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.b836b9892.0_1674600022711_0.31121009080371653","host":"s3://npm-registry-packages"}},"15.0.0-canary.e8912fd37.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.e8912fd37.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.e8912fd37.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"520055fbc0172bb35a3060ebf56cce9a40b22ffc","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.e8912fd37.0.tgz","fileCount":44,"integrity":"sha512-mahCju/F9hV13xzEc1E/JTDKpNtjR+YzzFL3s/eXQZ1Wqx8Kx/vaUx3yvQeWpVpoeS8vxMYZ6RgsIMIA4me41w==","signatures":[{"sig":"MEUCIQC5gGfx+RpENP/7NoajM3RMMePYHBcOj7oMqr+LgvTJEQIgNPF4e5NruFDyj2ti5Qbj868jce6AGcDlyQTY+YH4VSI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0sbgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpH/Q/+KLqONXqawhilnrLDgViPAiIFFxy/9rU0kwGtAGYSEwAal8Z0\r\npZqNA03zATdG+1VziOlDXDsvbctxMQV23X64skhYARJUw2is28KMwXyPVIUz\r\nEHaZiWNcjBVv/5UugSmWV4dBlqbkQ48xzgDaZ7uhf+Fcd8tRzQImDiG5cw9h\r\nj98UvsNjovCj+bEP4IeZPHQwxyfVmlQQ4aICuLPyiuO68Iy73ounO/wJ8H85\r\nSHPM8Ym/88U9KhabfSPDhVx+9ILN7tnxs4TYvW4dnvgj2i2P/7VdYOwLZMMj\r\nNzy0502cxTUNG+v8yIEe8UMB/UROdlKSTwzuxoJdOvDoU6WIRtKrNu8DVAAV\r\nn7zpVocyE/cukXkX+Gz5bSEa+tFT5tNtyITTcngYgWwyrYcoRT/QqZJO4tAf\r\nXfuYt2h5LvpXeqELO84f4f0ZqBYL/7zB3tx94Y/+Zg7Kh4X1nZHpZfP904ol\r\n1kpIz+nQe1RzPgjGpJLa454zo+0vnyyaSRS2ph5PEz2z/zC5XyOv2yvYZhMT\r\ng5OIcJC07o/V/dpmze27LavozDkhHuUiugqqqkGTUMp3ygaZooQ2ZYR/qeH5\r\nYWDdMHVbV4MZOem3NHg5QjTzsCgW9mmjSNJDIunf6ux8GXEmjoBkoZ8+BSEb\r\nt0/jCZW6Ss9AwSRYnir6YIOG4WAItPu/IVU=\r\n=g4wX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"72b44fe55689bb591aeaddf242920ba73a6e5bb6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.e8912fd37.0","@material/base":"15.0.0-canary.e8912fd37.0","@material/shape":"15.0.0-canary.e8912fd37.0","@material/theme":"15.0.0-canary.e8912fd37.0","@material/ripple":"15.0.0-canary.e8912fd37.0","@material/animation":"15.0.0-canary.e8912fd37.0","@material/elevation":"15.0.0-canary.e8912fd37.0","@material/typography":"15.0.0-canary.e8912fd37.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.e8912fd37.0_1674757856434_0.9219670463406004","host":"s3://npm-registry-packages"}},"15.0.0-canary.16fbd30ff.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.16fbd30ff.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.16fbd30ff.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b4aad7845352f1bdda16950b706a9e9ec53a7877","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.16fbd30ff.0.tgz","fileCount":44,"integrity":"sha512-LH0bwfACw2dGNwrVGkKP7/TRNxgPQfyIK7K7SVX52h5nQ/okfDmB74HCQIw2mFKTfx5927jkWb864vJpAgWPnA==","signatures":[{"sig":"MEUCIQC9gsdlzfXFRzJg2pQtzFAYTzt33GDidytUa85t4tyhawIgDBXXdr1sL531P/idwm4TL5wA+94+qgTT+DjVejv1qDg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0sfvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqIVg//bgoEXncvsWz2zAlLoYzIDNjA5EVPfnaVwNhGKFTGQhV360S9\r\nlGk1PNHUlzO+7M67CM4WCfFX300UpfQs1WKWoE0kYrr2sRycf+RWezqOFLM3\r\n/uWfH+MsvQnn7ZjAp+unEScMWAcJR5sAnzgukEkGITbdCwtbOk+8TufCPvi2\r\nuf12v4BOyRsgejSXLSteiDQrkCTk+AgpG5LjNta9EWNQG8V6fVobTv1BM4iT\r\nOL5P9ZUZftLWvzQE0mmLUue1DeZNy65G8YCva2HEGF6TpCUoUsJ9eElz5a2p\r\n8yQwCUBPVdjz22tE6x0Z6aZ1NOfeGr0BWq6EN5FQYt1gfI9NAQZMTrpNRJQV\r\n5/UEtCflKvh7K4WIgpiS2w9SWDV5p51EvrZDk9LqmDPrguWvPQFGGPp4a15w\r\n0Eamhx2rfGZrjIzMDGF7k1naynKTBXNtNwis5XG9cWCyH034/r5fMajNzv3c\r\nRfyScyHUboXx8DoM8r8+e73y75acuu2PIJd8kIhC4/59teAiptYpevJDIbYI\r\nr8tnX9hhSVAwVbkR5uJrLc9gI1zzwTh4v/sTBeCemddQIW3+qL+5TrjVVPfx\r\n+CO1SSqh8Gs0IDhE6x50HJGDRaihql0VMh5BmclIN4tP5kJr7PSB1L7AEzQ8\r\nUg8MQs6Mos80nsQqw7f5Vw/RJ3pNbuS8WFM=\r\n=LoO2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f4c39ff05bbd1045563670b4ea50b0be51a91d01","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.16fbd30ff.0","@material/base":"15.0.0-canary.16fbd30ff.0","@material/shape":"15.0.0-canary.16fbd30ff.0","@material/theme":"15.0.0-canary.16fbd30ff.0","@material/ripple":"15.0.0-canary.16fbd30ff.0","@material/animation":"15.0.0-canary.16fbd30ff.0","@material/elevation":"15.0.0-canary.16fbd30ff.0","@material/typography":"15.0.0-canary.16fbd30ff.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.16fbd30ff.0_1674758127571_0.6928323544254862","host":"s3://npm-registry-packages"}},"15.0.0-canary.033ae083a.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.033ae083a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.033ae083a.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"71d8749e97cce9ecebc5fca5e0a1735aae301fa9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.033ae083a.0.tgz","fileCount":44,"integrity":"sha512-Vmc/+x7nun60dM2qEIHT/VJnBSAySFcRR5eq4exjcnuPqUUEd2vurA7k3J4AysD4MX+oPnD49Kv/X1tzVpT0/Q==","signatures":[{"sig":"MEYCIQD7CZqryVsVSKbcUziYj87PLqE1Oj6veYiV39AsLqMHzwIhAOienIiOrUVdILXM/xX0GG62wpxD1XErDVlLQXo3/DkR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0tRFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp4Rw/+KO0ui/O5pmc3yhtsuipMaS+1ZVnMUe6uQ/ZVXOwH0dcF7n+V\r\nJp2wXESz19wHolW2WMRcDQ+f0YOB81Dywhp6DN1mv/oLTvrCLxGVfbCA70at\r\nCdtifN1hyCTHCsA9Smdm5U1J1DHDWVEh0T64jUhEVujxI6Vu6pGHDGD0IpgY\r\nIuSo6efa2jIFc8vw/6xWfqSKgi+iG7SjxKlrv0yMhF/+3BSuoHnznmK2WZKh\r\nAB3+uNIooRfCJf01Y5Nqsy8wlsZUOwdwk5/wfryTVArlt8H+3PLka+bljXi4\r\nGelXJtEfk8uc8VRL2kWbxuYlpWls2keag3vaUtXd1rPgR67e2vcvmQCsSBUU\r\nmo0R2dg716ydlN35QJ2TqAfTe1a8vn0i3VxU9cidBr0hZkuQyI4KEQ5WVq8M\r\nJ2UIW5/CkP200ZopHAVqxtBYdwdBe6rmysdkZ+j1263Nb2nsLm1eqtW33aLe\r\n363ffSXa4lHbp+ItN/OK816viu9TlUQN565FYvqp8FVHPF6+zV1okMK4Drxb\r\n7sEnv9Cr6uTKiwutsgvwlkqWenB7XOS75RzfwmlfF41+PLnK4HiTIrXlJZ7Z\r\nUHlC/cT0hddW1cK0s3iOmD74HT0eOw9dOSHny7TR74rVLo2Mw5NwTfNc7qsy\r\npB0gRIR1t7z4eb9TbmuAfA63EeoKHwaoCr4=\r\n=F3Ps\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"89ca938c110806d9150a3889a7d25689661c2fdc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.033ae083a.0","@material/base":"15.0.0-canary.033ae083a.0","@material/shape":"15.0.0-canary.033ae083a.0","@material/theme":"15.0.0-canary.033ae083a.0","@material/ripple":"15.0.0-canary.033ae083a.0","@material/animation":"15.0.0-canary.033ae083a.0","@material/elevation":"15.0.0-canary.033ae083a.0","@material/typography":"15.0.0-canary.033ae083a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.033ae083a.0_1674761285252_0.7035838984090459","host":"s3://npm-registry-packages"}},"15.0.0-canary.3a705fa1d.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.3a705fa1d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.3a705fa1d.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"148be3d4965dd12f60e0e6dfaf23f2933f8e5c0a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.3a705fa1d.0.tgz","fileCount":44,"integrity":"sha512-2f7lzbfGP/Bz2eHH4JFqKwHsepx5G1qc50ieSHkBUkEpHOn4wPhjv5ZQR3/TX6IEKK8TA7Y5UgJD0wIWqSWqsw==","signatures":[{"sig":"MEQCIFszPHhMZYdh/whZb1XUghrxhVmxp4hrvvIxOkxzVZ1wAiBZF4JeIoUGFtfSvgnG0bYFHiVrdlArToZm9gBa9HnDHg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj1FPZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpqRBAAm/k9RnUikbzZnzT5158pwHM4I69v/n94n68Cjy7g3IUJirEi\r\ndXJbHlfLC4Vo+8eSWp1lCOvR6PXBXtLOJJAC27bCdtynwPD+Vr7ak3vgKGPe\r\nsFK4wpKueY8ifodiPx+s1onEAATe4InGVPwsiAY5hndnIXG7STpVHTyz+gMM\r\nvfWKTk19r2HOOTT7EeiljHS+XGhRpfzfoP/NR0hTGLDbrb7rHEtRv8xznInZ\r\n65FP3ClEjuK37TYGiRclwsvHan5Hl+Mh/Fs63ybCvhzgj65qFTOpt4GH20UH\r\nJIQPeNp4XuJ0Mpw2vqMVqgK3q3jb9ODIJZsEJkLgx+BvIcjmgQfk29Qs3Rfe\r\neqshAOUiepOLxi8rSCj5YwpoSKyK+EUr9k9uT24PSzPuQu+8sv0d1R2PmW6O\r\nQeN+/Y6GSfTOdZKfoq51OeLgRRr2yRYXyYqlwjvOsKhViIe1PZQa6HnpGiqW\r\n1fIjuqQFEB83/PQm7NJz4bj5rc/U+b4tc1ul5K4HJ+N4zwU7vz2pvqu9gdmt\r\neYBi/BROm0CNZjDdT2EgRjzD/yuOgznrL7t0iSPN5cWPEUIGSvl9txVJ7dYr\r\nZUy7RLEMWJ2aSqLzdvrLTMOay3LN3SRQPQvtoa9HJhZHv8SM/8xSGbYinjl6\r\nJUMcc6pefD7Fc0aYtPEPhrP/YZXgeNCECJc=\r\n=JQf4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7e0f3737f51c1319f66762d8021d6aea33391733","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.3a705fa1d.0","@material/base":"15.0.0-canary.3a705fa1d.0","@material/shape":"15.0.0-canary.3a705fa1d.0","@material/theme":"15.0.0-canary.3a705fa1d.0","@material/ripple":"15.0.0-canary.3a705fa1d.0","@material/animation":"15.0.0-canary.3a705fa1d.0","@material/elevation":"15.0.0-canary.3a705fa1d.0","@material/typography":"15.0.0-canary.3a705fa1d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.3a705fa1d.0_1674859481085_0.8047025086138431","host":"s3://npm-registry-packages"}},"15.0.0-canary.d6bea2ff2.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.d6bea2ff2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.d6bea2ff2.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4b2fe96ba49d8540924303e8c2a0ed5c53757b98","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.d6bea2ff2.0.tgz","fileCount":44,"integrity":"sha512-vGGzXrK2iqmjAkrswbWxV7BkDrYQVYdQAkRfw3Y4oVDbLbA0umTb1Ol0LKgJk5npmJLZfeLiBtVAvd1Wd9IrbQ==","signatures":[{"sig":"MEUCIQDP4ARIE6c7xZ23IcJ1DMRI5NbsdRb7yeS3ZP/gBSEvfwIgc4waBeIJp3oMKRkFkCatA3KmCxm0C4aNwIOD3qVhOtM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2TRDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq8wg/+IHUavv/e9k6Ttc2M/GfC2v+p88Tlumdc4FGiJjpmsj1x/f+1\r\nH8gzDVV67AOnKZKNzEL8W5dtKn8rMKetq+W2ZKs9tbh1HXWVkIr7pYLRWWoP\r\n8zXeiAL4QU8p1Brh2Zprojr/xa9vHPSW+guGtgK159+X2/7JWZRzkCUEs/Jo\r\nVDDleLGr3+M3C76nfI3NhX370mOSAlMBsOCTuj+eZBVFLyj1XH4uGfpR7Wjq\r\nB3iwMJFDtTrfrl3DUATETtSfJ0rxuliJGs6ZaNP3S4+m2k6cXIVPaMHCi4If\r\njbGotV54IQJXMU4bEp+jhkKVMOy9Ymm9R5XdRhPFT5O2UsO3tVaejXfI9VVD\r\nvAwplI2E0BwBN/jE932AkkDWKqX9wGM/CNFF2eP2mEbDBzsA45hAFsQvMyM9\r\nDPFbMVKa04KNs5HWVQqtMipFsnEhZVUMlIzyxKBfBELhL/VT9DMm5DNn5KVg\r\nOmSVc7ACUlj3279DtAtqNt5YqvTdYi/JxMc3YfuBv47KChIgtWaobCZwCJC8\r\nCKAMDw9eKpp5E8Ji963k9oHe8bxTEHjZltgmmzpamiRC2Nk80KDificbU42L\r\nHv738ynY8be94ApI3sjpA1SgTXPJJqQXRnghWw/EAqcO/WqvxCo+5TdUeW3l\r\nXkcHxm5SYDoqjzYyUoEQfxkVZnn2XircUz4=\r\n=ftoE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e4210a9f21a7e6ee007d475d5bd7e229dd7bbc00","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.d6bea2ff2.0","@material/base":"15.0.0-canary.d6bea2ff2.0","@material/shape":"15.0.0-canary.d6bea2ff2.0","@material/theme":"15.0.0-canary.d6bea2ff2.0","@material/ripple":"15.0.0-canary.d6bea2ff2.0","@material/animation":"15.0.0-canary.d6bea2ff2.0","@material/elevation":"15.0.0-canary.d6bea2ff2.0","@material/typography":"15.0.0-canary.d6bea2ff2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.d6bea2ff2.0_1675179075274_0.08468933370898157","host":"s3://npm-registry-packages"}},"15.0.0-canary.0c94182c8.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.0c94182c8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.0c94182c8.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cba9e0a12044a1d5343d3939f7ce179c1554e808","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.0c94182c8.0.tgz","fileCount":44,"integrity":"sha512-Mx0L9pufITEX49XDAKQDSCNxnQwo7x8asemFWVfAeYoFEsbx9q5iT+DWMB/W6BunP3RZPutUhP7czqk0eAnfkg==","signatures":[{"sig":"MEQCICTfdleyR/RBihb22z5ckKKqVs8E2iUDoV/vupVz8NhBAiBQ6UZdWvwhh7ivpGdwmnZ/H0I72uGddbuDRY6Pg9/sSQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2qUuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpObhAAij5zX1dmuYnZvsH/PFmNWSxNhjfXC1UpUR9aMkmHsFe+0+z8\r\nS0HaFRf9eAc5y7AZZHJXnZbGlc8lqFtT3qlCnHZWFYS5mcnuDZxZxHYRscgj\r\nj8tyUU3FW2YWDl96c14IzanQZeH5fbx313cCKf1WuXvO1XEi6Pp6t2UYUidl\r\ng/lm/+O4Z8yRCyX5+N7Dh51/gFz5RLLMM1+ywYjDu349/JdxGJwmaxiHixrG\r\nBc08A/H17Dkt6wlt2wCcfHBUhHZOhLJPEVPG78p+BaipQlV/B174W6umpqt8\r\n62Kcdj7yz16BMcfV5ZJmpyfVVDBLIVWdN0PeIqmOt9mL6gUR2IA2srBCvtl2\r\nzRZvxub0nJC3OBMDT95z92g/Sdf1Iz89/3XARa6FjZEbkDKe3dPeUiBJH3Bg\r\nJpWPMDx/q6I4KhABzN7tcG2H+/P912RrCvj5RzJNYp9KBkv72B3Ztmo18zA2\r\nbJnz0d0RGFYDJcoydszSV9nix1eX6prc0f8WZqJt3Y1raF0iGBzf+VWZMmS3\r\nQkvE7m4zK1Eg8m2admMzwS9tMbukIBDOx/T3+rzatFFPJ6QWnRzlHhT62TQN\r\ndeoO2pU2xhgmSWotjFkIYn9BZSSyZYhU910SuVD7hjzrqrRCqIuizokaj2QK\r\nYxOHszLkZNAgc9rIT9+c1UCvA9xx6JZ0NLw=\r\n=ZTst\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9e58d1edf6370fb6c26f762d83ca31f928149e41","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.0c94182c8.0","@material/base":"15.0.0-canary.0c94182c8.0","@material/shape":"15.0.0-canary.0c94182c8.0","@material/theme":"15.0.0-canary.0c94182c8.0","@material/ripple":"15.0.0-canary.0c94182c8.0","@material/animation":"15.0.0-canary.0c94182c8.0","@material/elevation":"15.0.0-canary.0c94182c8.0","@material/typography":"15.0.0-canary.0c94182c8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.0c94182c8.0_1675273518438_0.09905019302115403","host":"s3://npm-registry-packages"}},"15.0.0-canary.15b221540.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.15b221540.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.15b221540.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"394bb7e915e0f5aadea0402fbe3d127ed0e8f131","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.15b221540.0.tgz","fileCount":44,"integrity":"sha512-toX1mZgZ87RuQzwwrTPGs2bFszXgbElOUubsDgj3rb4bC5h/G5TJCQ+NprexOZmCVNwxO6lyPObEKQtWd9nesA==","signatures":[{"sig":"MEUCIQDNquKRZrkVzkiRXOKHfKzXUYf0f0NWhHrPRcTerXlD8QIgW24DaMFZeFqLGwhsw3bIr8sh7RdWhCAAHeT6rJgxFcY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2qctACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpIXRAAnzru0qlS/tVz8OVsMXS8iQEPepBPaiKN5EMji/F1LKcqx87t\r\nN9XOD3NifMHbBBR0AS9W6VuWn5iVMIx2vg6euyWBxet5K/ElPbWN6w0sxy7R\r\nUrnZc8GxKIx9wZVNWmW5JLuUhl0s2LepkrE0FFYeMJQnBWVcBur9Cle/zNHT\r\nudU1buK1dFPk9uVnGc2tzXw4Yb2LeBDXvpjkcb2tcbHkAX9uakZkpDrj5ocU\r\n9ga2krg+/AtT6RTlU2g/xZCJiVW4SSlzeoAPcMdcpLlOHLKNfKNhf2mxdxsH\r\nD89qQnq2TnxSbTfq8aazYAJXpJXXXqXRpO44FpS0pzzhzwz5ddtNB5fz22vG\r\nhgywHU5nKZK9K13qcW+bSjDRWwGbON0xgkMFZC8yZjtjrSu0lQdmYwqxlznD\r\nzhB7K8eI/iYjFhUYkiX04ltFVGy9bMQubscxYEmUQ1GCvNTsYSX+OfHbLSpo\r\n1FYJOXCE4ahopwKLv3nsXvgZHXX4q0Qky4w2/gkIZERbYRpoh4a7qbi1prM9\r\nkE4y9nSSjssrprbhibs/wFS4SUSaT8+q8cG4hSj2p3bfXHNSqdTPymX9yyF5\r\nPuDATEP6WYVO3qniaeAj42bm/bWoQ9AcEOz5B/lEKwzzrCdXMmtNRumN6l4G\r\nBBLYaYbrgGK5dHsb9oIp8iy1CtykpxUAHKg=\r\n=2sNi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a4bc6d32435d33a7b99197f32b85eb0b730acd30","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.15b221540.0","@material/base":"15.0.0-canary.15b221540.0","@material/shape":"15.0.0-canary.15b221540.0","@material/theme":"15.0.0-canary.15b221540.0","@material/ripple":"15.0.0-canary.15b221540.0","@material/animation":"15.0.0-canary.15b221540.0","@material/elevation":"15.0.0-canary.15b221540.0","@material/typography":"15.0.0-canary.15b221540.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.15b221540.0_1675274029627_0.10423927700686031","host":"s3://npm-registry-packages"}},"15.0.0-canary.6a4b3f834.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.6a4b3f834.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.6a4b3f834.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f5ad57d115602e48d38008419458fa0de7f60123","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.6a4b3f834.0.tgz","fileCount":44,"integrity":"sha512-o46OwGavPD8Om/DdcijpiEOPgcciVYtTa1aRO0wUJRfBOjGq4czsAJAYybnXqhKsQxvME0B714LPBkcYxbOsqA==","signatures":[{"sig":"MEUCIQCiht8z6HgeJT+iRFcOtMorc67SpdvRFdF+83FwLE9i3gIgJPrzDgrPaFy8bN8hG1oiRTgOhiQibPFvhYteMYLbeNI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2raYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqAng/+L+aH+2jZc+pstPZH/W9YwDVnHA89JqKLRFh94IpGbEDdIerv\r\nNe7sIEhnRvYoTCQFj6cQnBzaoIjT9RuahxNL4hyFwZIHehbtXIh31pj3rQlf\r\ninjPdI7WsiIDBDBbXJEsgOxXx7BaIKRBO5r51oPMTNfUFQxMZACCjiAAHDpq\r\nFP+YLE6WdXDHncmAfMPc20SQjGFi99R9Ys3GY19oNF+bNGi+WwER+jx+p62d\r\nUHdrZDOs0ojh0Tcf6g+L31fRZr0QO51vlUfvxXrEOxOEWN+rc7dVRqyP9ck+\r\n/wloDXlfWcofxh/vTnPxEmIKeyHWELFKgnEnnCH6oDQg4QebUUlyZMCf1hJo\r\niEigOwPH85hx1rIb39/1hT5YLWD83/U2WUKf9bWQ/CTUng+QfMQSTSf8u4Zy\r\n2vmihj9cOgImQXKdQVCbrmDICBOF+hOfJJPKmF2WifiBRJQIogGwmdNlP87q\r\ng6xzgPd13+7ZmP3Q69OpTHOqQsgvEXBzWW/z08AkVlzfrwCJVqC3MMVnUkrr\r\nX5UCXFz9cj+oNGahqbnUHoeNT2YFZUPcWBKHMUMokp4bW+WCGqox3H6WAMZU\r\nWgWKs5bxIGAWmfYfFxPlXYsSCX3Ibx0yVQMkJyYizv/a0uMjfCjJStTydEd/\r\nwL6No/mCa1AhhDWZyRVnFIdz+b5+jHmmdkk=\r\n=51Rh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b1f2d06637869496d98898f4cdf709ebbd279ed4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.6a4b3f834.0","@material/base":"15.0.0-canary.6a4b3f834.0","@material/shape":"15.0.0-canary.6a4b3f834.0","@material/theme":"15.0.0-canary.6a4b3f834.0","@material/ripple":"15.0.0-canary.6a4b3f834.0","@material/animation":"15.0.0-canary.6a4b3f834.0","@material/elevation":"15.0.0-canary.6a4b3f834.0","@material/typography":"15.0.0-canary.6a4b3f834.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.6a4b3f834.0_1675277976066_0.5136288986388016","host":"s3://npm-registry-packages"}},"15.0.0-canary.b177b40e2.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.b177b40e2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.b177b40e2.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3b2772e586c524b2025e58ad8888d5c68407b4cf","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.b177b40e2.0.tgz","fileCount":44,"integrity":"sha512-ZwoLSMdzI27j/6GAehLWlzZ5Yw4Q2DGBNX0kocjCoCrNk+T/GtnnMUOQaqpKdpZhHKVXutCltkjfoNSZMxyvDQ==","signatures":[{"sig":"MEQCIHZwuwB811V/Fm47ChDXzir9VI3xlWe8S7jixbImtbMkAiBMBgVHZZPsIC9X4IzUcQo4yfZjNOR9L9GVNvoF1MV1ng==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2y99ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp+wA//cjs3Ef52AauTLQfu8UVL9zEHn+cb2hwDdB4LiuQDyxFHlcNa\r\np4kWHoyHiOPZ0Haq4ObkZKIIFPImG/dxmAyeE7TPauNNzcmuXEiK5yxGp1TA\r\nBHd/p/5Y6G03KdK3u6kQ4uF3tKGQKL2yIeDBJPrxYAtBQhT26n0paJNQu1ir\r\njHwDRFRBnr8x0/SitxYHcmQepcxkAiawnEulzanGeHy3C5Gyh8hw4e1rKfM0\r\nIEygj9HCM0vbzvA2sT/Jt8iLwXRx9DidlnYMWwlxFJT/u0So+O1/Z21ZCf5a\r\ngW4wtQFX0NaCaHT00zbc55jMENEBeX4jW1ONjIlbOZp7HPO1W5fxHhi87JNi\r\nsVssiTKBEELpCuADD40vXl2sY6CoMlszWufD6W6wAeSODdGWZHorOB28lprY\r\nJ3fg3Ky4wfx5LaWc1AMYQYVPeXvGIRU5C0vVQm21R6VlS6xKyj7zoYTy4DAI\r\nZVvvg3GY4nYyUAPC3AZpsC5rcioM1bFNYEbNSKlN5CTfqK/3gPmjuz/N0Q0m\r\npgCrGHUIgyisxJWMxOkPq2sjp9HL7BGwLNu4itcrKvkYO+fQbDhgY5SK+SP0\r\nwZ+ySyGRpVi15fuJIXTBHTi4LvKChiiZfZBaZ3nopivneotipdrdjjbpeU80\r\nxyYheuwCFj7fidBPLeO7s3Kva9HfypybwBY=\r\n=ozvK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e3b49a7dc72f9c88710ba68c63d4ddce56a58fe7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.b177b40e2.0","@material/base":"15.0.0-canary.b177b40e2.0","@material/shape":"15.0.0-canary.b177b40e2.0","@material/theme":"15.0.0-canary.b177b40e2.0","@material/ripple":"15.0.0-canary.b177b40e2.0","@material/animation":"15.0.0-canary.b177b40e2.0","@material/elevation":"15.0.0-canary.b177b40e2.0","@material/typography":"15.0.0-canary.b177b40e2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.b177b40e2.0_1675308925271_0.8283897429463203","host":"s3://npm-registry-packages"}},"15.0.0-canary.d9f821042.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.d9f821042.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.d9f821042.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b78a3a1c365b379be7c372cd44588c47c5231b6c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.d9f821042.0.tgz","fileCount":44,"integrity":"sha512-89RkHK+u9szGFlSUnnLuXcKXanHPMm4KHbTuh2p2AS8oS3hkiBsE9yIFO7QuEEKV9xY8AOg1R9qZDowKXtqLMQ==","signatures":[{"sig":"MEYCIQDaCpYY+dlm0GsRH5MnV+wzwZZeJia7Fl2p7QWmSbjPDwIhAPb4WYocr0s9mgSDWy5rWuwa84zQ5yZx3r88hz7Sexwe","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2/VUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoT1Q//Z1Yvk+utn2ltlcH8bl6FT8PFuqYZzEQpTdb9DQAcDVa2cHue\r\nOsIRnwDl+7UKkS6ba3ylJOXw3RxV9kEcILx5GJv83tbn6+LkQ1+JL2bDy2Ar\r\nNf6e8mB8MF3zPoIVom8e57W4flKIztC3n1appzZfuwZR1jzAHR4l4sQkCn54\r\nozXj1xRkDiZcSoOW5ONxEeOrC4CwUY+qzcV/meJlC4srHs+iVcmnFFbJBBpm\r\n7rDkP6yIYNgSfVtp2vsrZvFzj7+VixnETa1e0uHpjFurTeucJv7g0GJzYxdV\r\nYAq5LamnG9F1zVMvqaQBYDadIx+96Xtt/Yz7AxsN5ZhwZZoINJWcB9cZbD5e\r\np5v0GS49/Z4god0A8v8VGZE/JuPOc2VSZLeF0MOtoHWv7mg0tAizp+31Pmsa\r\nxWYh1LE2wpy79eYqQn0sBBEZt35Pwg0nbyH7EXi8lfMgwZpYmGfyHGb2YLxs\r\nUbNgKgUmQ4JTBtyrmBJUDHlgwEW3Uuc1nBHx3ufPl1cScKgeQLQH+Uc3vY9T\r\nWuMxyaXfv7sWNtfQgo7p7QMqTvjWTOTsg/LeF1SuQ7GvVQ1GIJz52u8OxPNL\r\nqS8ZPCUJIyYlmM4VCdNLC7poU/JhgLBvXCavOIyBDlQj+k3hAVCf6KzCzHBS\r\nK0UmMeIG9hhVFeth1pL/oXsEkUroS/G9HjU=\r\n=8iYc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9748fa2e1dd5886715f422f644830717544192ec","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.d9f821042.0","@material/base":"15.0.0-canary.d9f821042.0","@material/shape":"15.0.0-canary.d9f821042.0","@material/theme":"15.0.0-canary.d9f821042.0","@material/ripple":"15.0.0-canary.d9f821042.0","@material/animation":"15.0.0-canary.d9f821042.0","@material/elevation":"15.0.0-canary.d9f821042.0","@material/typography":"15.0.0-canary.d9f821042.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.d9f821042.0_1675359571794_0.8879732036461441","host":"s3://npm-registry-packages"}},"15.0.0-canary.47c7deb19.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.47c7deb19.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.47c7deb19.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"46c807b9452e4330e9c2d9b1fb129b271f696b9c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.47c7deb19.0.tgz","fileCount":44,"integrity":"sha512-lJnbmQjuQZVtVUOqkQYagiHSoxCAF6HTbYVJ1RSsnxJsHKNHwjZurUask8KcEb41K8nsKFQ2P3KxxqbNFXejlQ==","signatures":[{"sig":"MEYCIQC8PNmstpParfP3qhaFjzaAhNTURFcZM5MQzBk0M6IEYQIhAPjf4QGxx7UwlbnXkuf16RLD7tiDjETLgKbbq3jAuUgF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3M9rACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoeNw/8C/Wffpr84ozHa7XDd0deNhZzsimjuzQWKWcJa0Skq0NWqtkC\r\nlR86lAJ3DGkw9MMmpxDEN2QbV1jSmW9p4po0kqTiQ9rdVxwbkpCApV4SWFPH\r\nRFa9zN9xz1NTIpfOMS39B1T6UzSiPHV6bHBP5Z0n4AXYdnZWptZuyXnHORZn\r\nXdvLChkD/DWLgDRhg9T5JqOJXGdgbNGeIbuGpGFc+O8ejCIAWL0WGpSMTJZB\r\nNTBhK079RqDLhMtcWFWkIiYDbyEiLPsk0gZ7IjYQ1iqbSA3a9PitnoWrwyvn\r\nEzrdj7uCSTaDXbWy+E4kbr4mHtCrGcYk4EKs/w3joQViLfxFRTeZ+OP5uVCq\r\nFCQX9B6omJTlBF9UawwnaQv+rMl4BQKYeyDYbEqMf6cDQo0Q4Fj4eM9hp0qs\r\nJVgF5JykJFrItOs4mbBPXRhEZXG2FjMK7vytYeIQFmzGHjmNLdYw+ZKlwOZh\r\nPZNgSJ+MFo9ia9ThdvfyhZt3qQ3juaMgnwHlC8zigKCkTlDs0Unn1Gfd4LrG\r\nq1INtkGjtRU1EmwX6tlcYDmpsW9HqzRSMIWJwnHmv94pSacj3/fNX82NZ3Qa\r\nsgBc8w2Z0cynjzBmHf1sW0U7vofVexKMbHvOTwsZf8E+GVtqLwFpj3xPzVMe\r\n5wen2NdvoTjLf4atr/El9t9VOE1b7CCUazk=\r\n=7jIJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d5a6886a0dce343fed87311107975111f62309bb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.47c7deb19.0","@material/base":"15.0.0-canary.47c7deb19.0","@material/shape":"15.0.0-canary.47c7deb19.0","@material/theme":"15.0.0-canary.47c7deb19.0","@material/ripple":"15.0.0-canary.47c7deb19.0","@material/animation":"15.0.0-canary.47c7deb19.0","@material/elevation":"15.0.0-canary.47c7deb19.0","@material/typography":"15.0.0-canary.47c7deb19.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.47c7deb19.0_1675415403560_0.07517140231926023","host":"s3://npm-registry-packages"}},"15.0.0-canary.a16dbd1a6.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a16dbd1a6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a16dbd1a6.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bc674a2769fa568e57d3f9ce0f437e93cb111f46","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a16dbd1a6.0.tgz","fileCount":44,"integrity":"sha512-YuNW17qki8xf3VjucvDRJcoiow/2bMwiEzeoIpjKedmXnzBvq/itpE040ngbizchrtzKXIcgseODZqCk0IVR2Q==","signatures":[{"sig":"MEUCIQD57dmz/i3il6RxXbWskk+BBsOfRq/PpoHzZ3X/FQMGsAIgJxZPfB4VwQPzw4ohiRktk/LoGTJcXF6WmJnrowlYAH4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3fgKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo4fg//Q0miyxJRIOIixo9Z+Z9aT2KdBorKm0TyCeymb3SZvinCCeHE\r\nfS1DVx2pycbD2eKc98ZDPLmO3pHPEIMu6ZckmuFwiaSZesLeh95t/LEDuZN/\r\nAsK0V4OxsggHqcXPsoXtMPW9+MCkhZHtxbg19bRhdpfSuteBlkRN+pLLBWii\r\nmlLySsWLgY7U9Vy2GXvaSYVrlf0pYg6AlNQsvscZKRzHjmwATQRyDizbV3hm\r\nOzQ/be8TdnSDXr0XGNDRDn3/procH/83A9wMEY0ixj60hDKP25ZDFz/5QgNl\r\njTHjutEBu5adjIQkcPHsgVM57sBRIQP4KyUR7b+CYgUC5WNAcR07qiHHWpPk\r\nBi3CJq3WstW3kVFkvGcRTOfPvW9XtmJdUbgILFTR0iJCRZjWXT0sF6JpljRF\r\nRHyaUmshSdPZkAlE3eKLMw5VpB1AyGZDazp3aJ9D8rHv+DyvklMFjkxd/1pL\r\nZEgJsuS5ugXMw2ziqMKJkxkOadC3g6A2etTawMGMYFvBzz4EodpGJYHP2KkZ\r\nyfrezmUEqPfPx1z0mrZ6ChUhOBaREGWA1vCE4Fuy9iuiOZeG1RRRMHxFQ8Xc\r\nk+P+k8J1eSt2gm+0TmyoDM9cmq6NWH3RNmpUzgDWTxxu8IoYV2m/Qg1F5iHw\r\nNL8kND2tF/nnr1OL4DCA9wiBtaxYAD542RQ=\r\n=ILZT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6b1923aa24f460ae50c61296787e46f524bcf15c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a16dbd1a6.0","@material/base":"15.0.0-canary.a16dbd1a6.0","@material/shape":"15.0.0-canary.a16dbd1a6.0","@material/theme":"15.0.0-canary.a16dbd1a6.0","@material/ripple":"15.0.0-canary.a16dbd1a6.0","@material/animation":"15.0.0-canary.a16dbd1a6.0","@material/elevation":"15.0.0-canary.a16dbd1a6.0","@material/typography":"15.0.0-canary.a16dbd1a6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a16dbd1a6.0_1675491337884_0.3621404813751574","host":"s3://npm-registry-packages"}},"15.0.0-canary.93416f87a.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.93416f87a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.93416f87a.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1e9995eb0200ff357b0fcfa9dc3ba491b016f68a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.93416f87a.0.tgz","fileCount":44,"integrity":"sha512-ZeV10PbHSvxCNZbqqhkg5g9rwSK87dD++6hyKldg1m7cyCgfbGxGouDIxjPHss0OKsyv+0nBV6mxzEHwLNNSVA==","signatures":[{"sig":"MEUCIF2+enq/gQB90VgvDll+0/oRjf6sZhbdn57eCdyZ/5k3AiEAuRpWj1mJ9mduoe6Gn2+aGwD6X82KcEY0yLQ2L6Oci+c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4lEWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrckhAAl/6sR2yX+dyNga80LhkUVy5vpEgaEKDaIBb2kPNSFLU+WOE9\r\ni5Njnj6ce3mulb4/NyrExiaGDlDBOd37ZVXgX/TKH30S9FJLvkr1kkRG0YBf\r\nG5CclG8e35aj1CRsA2EnF2KIZ1R/X9212PI9J9odYkLyRbzPEPuzdMvBbO+Q\r\nXl4g1BBtc9u8yLIDk8DxSDLhPC3mx+vkkdNQX6uD9iqAP1OqO18lonkgxv07\r\nooj7VK067nyx7g0+hLggL+lzB82z90kNjL42DrpIM4QZoZr5UrqaArSUo7Uc\r\ntj/qAcn08zpo8IlUkEE8Q3lEd9puF4NEEtouMcBrkOFs5RCjEJ+x1PI8+oeG\r\nWTTK2XP7ao3Tr335C1CuCZS6AvmvectPfREZE+WeXvdd7DFZCFmGnAjC4SSa\r\n8uWNyGHFMMCTLr9KaQOma7SIgd+l66q/iUo9iTKVRpwRl9nyCSW7tH+bdzWG\r\noLgkf4SB7SBvMDMAgDzd9A1WZ6JoaNrIZiBV2F5osh+XLRZnLQNLydLD7Rb7\r\nZ9b+nAcWLDD5MftEgjsxattvy+NLe3qsBiq4/whZuVTfSf6xueQpDxByQ7Dm\r\nGngok1tzGcmiLVWgjIL6RAqJAfwskInSkB49JtaBdr0UK9IS10y63OLzygtP\r\n2ahsZq4TZ75aMJFUJmGISjcEn96vvbc2mt4=\r\n=PiCa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b9f82375a462288f01ce4e4efe6047a3fdd9f9a9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.93416f87a.0","@material/base":"15.0.0-canary.93416f87a.0","@material/shape":"15.0.0-canary.93416f87a.0","@material/theme":"15.0.0-canary.93416f87a.0","@material/ripple":"15.0.0-canary.93416f87a.0","@material/animation":"15.0.0-canary.93416f87a.0","@material/elevation":"15.0.0-canary.93416f87a.0","@material/typography":"15.0.0-canary.93416f87a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.93416f87a.0_1675776278281_0.23247990695587073","host":"s3://npm-registry-packages"}},"15.0.0-canary.49b8e7442.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.49b8e7442.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.49b8e7442.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"188d350c8eb77c3e7d1dba6c23f31ba0e6653b88","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.49b8e7442.0.tgz","fileCount":44,"integrity":"sha512-tImI/23pvy/WmPrinYr8uSEDolNEK43ItAKFDr6boPIX4av3mplFBEXNDme307ETPUhS3kZYD3XdewFOtqZLQg==","signatures":[{"sig":"MEQCICO3z30+MjxCtw77l18MeiLT66zK8tgkN/CM2/H4kkWrAiA4kSl6Rvb9EOLSMXvtlq8nKQSJmUZ3DUueDYu0bIIfqw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4tpzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmra/A/9HcCH+BDY5a19u8o3EUe4lqkseDyrf3F6+UZxSoCpxo78C5RP\r\nO6vi7paaD8hLBfBxF66aOpl7FhbrILn3Sgq4YRv167JtrAaqAAf2zvy28Zrj\r\nv/UB5ZpN0RMVV9+2nGzmfXmGvlTyZasO2ysIZ3yzUnVVsqmyRBfWQxDNIHHR\r\neqcFtiZlvC7+4Ut1VKto3r+8W33Pxz8wpWU/97i5OAkrKclu1CfQ/BB3QArg\r\nBfxBoDCHF1hVVWVe3UBBTL2h7m4cFSqbWfKR0H1QRTZCrUUbTxEurm2GugPu\r\nbSFg1VhPoTX24kvjdLlstUgGfMOlND+yhVLz+uZ2kpFM5ZKoK/YEl96P+tng\r\nqDQWJEcgJBY+s9PlL2x0JSBKXVBF58iZ3pA/YpyNIvD0BoHzDDg7B6chJDya\r\n/hLIB5mAk4b2V9hIlHlW2kjMun5ayOwqbp8/IvHsW9WhlFov4CrdpQeefwXV\r\nBbzR/EO/Y4+hlVEK0p620hhNllOC52gZfopjUW3rGUs3tjy4jxLlY8c3XIFU\r\ndGdudxIrKCLQoHjAW2Xlhz4nzBOoYwOoPoQsumeiBnxnM2k7VReJ/KwYqOYL\r\nrqzrEZMnBmxHROLfkkBROyD7GROSlGGdej5hIcPYSsALDKqpZuAXeDwOay3v\r\ns4e4NuKwRdeODtypxt6cfi13WAHonaDzoFM=\r\n=wv5j\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0ab5eaa3ea130a4b79ba5511e4e46e1f99b9e662","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.49b8e7442.0","@material/base":"15.0.0-canary.49b8e7442.0","@material/shape":"15.0.0-canary.49b8e7442.0","@material/theme":"15.0.0-canary.49b8e7442.0","@material/ripple":"15.0.0-canary.49b8e7442.0","@material/animation":"15.0.0-canary.49b8e7442.0","@material/elevation":"15.0.0-canary.49b8e7442.0","@material/typography":"15.0.0-canary.49b8e7442.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.49b8e7442.0_1675811443480_0.12418457297374474","host":"s3://npm-registry-packages"}},"15.0.0-canary.de38de758.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.de38de758.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.de38de758.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"14cf956503a7e69ab8a253a65cae3618ec35940c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.de38de758.0.tgz","fileCount":44,"integrity":"sha512-1ZJC1dO1noPeU042uQASt18p/yow5IwhUioWnT10O80LEm7DCKKNc4/rAcgAiLsVEV9jX1kqwLzgRNOY2gNKhA==","signatures":[{"sig":"MEUCIQDWmkrvaid7OGldUNoZvrpDq1JBXDn7p/ssvK5c23uwQgIgex8UaBscxYjg1TQ+0d7n5dtLcxA7gbH+prcyWewvYaQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5RSpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqv2A//Xhcjil7vbnHW9eU2fPvfA8JoSNM8kjoQsqd2BuxDAWAt1Kgi\r\n6l8NWKoRFRZi6b3d0QAFRZdzJh0nEelRVvLOh5vCW5EVUt3HXcQGSME6HtQ9\r\nrGaRreIK7/Dd9Hq3VPQUysdM4VMI3uBjQqO2hdHvXSZ73i5hA4CfP+cCr8NQ\r\nPpvz8zEGMytwmJMGgjyYP9lUWoOih4FaA23pWtsYRUyNwD5dfnZZw0ailMhp\r\nUSTE3xe9qmqpI1WcHvQmq/NxFcQZlfQEMynOgpEfaN9CH+CNM0TPI+XbY3YI\r\nZHkxuS+t1EHZ3MsLiE3A1dF0hRuLub5+23gZphYBbBE3eoeQS/4upL7VH2DK\r\nrfn6425qg4+MpHzgE4sm/8g8dIyRaKrhE8HIveBcdlSOPnyIFa2mgs6vU1fx\r\nf8TkF5G8YmCuSZOGVrTm1Nic2z5PkWBiaLYR2RKy/NXEGxfyXc6D7SlCOaXr\r\n34ReQ5XA+xaRAgCcEZNOIXwDlUFaejEOP7hg3b1TTlnYQIYuJHZcvnyfkgBz\r\njOw9QL3A8nGDq/f2e/k4qK7mGWGZKTUl/tOu48jinrV+xz2BMs+iZIY3Hj2C\r\nl6JIkOg+ZMu3YAmUQCKhzvXHCqmSmGK8T+kMoV6oz2iIU2EayKU+wi+NC3fF\r\nWcbW4sNOFmCE2ZfCqeUMxUMmTe0iXkY7CSM=\r\n=UncH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"72df173af8eee38e00bf9af0ca5a77d5b780763e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.de38de758.0","@material/base":"15.0.0-canary.de38de758.0","@material/shape":"15.0.0-canary.de38de758.0","@material/theme":"15.0.0-canary.de38de758.0","@material/ripple":"15.0.0-canary.de38de758.0","@material/animation":"15.0.0-canary.de38de758.0","@material/elevation":"15.0.0-canary.de38de758.0","@material/typography":"15.0.0-canary.de38de758.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.de38de758.0_1675957417425_0.6880463955632532","host":"s3://npm-registry-packages"}},"15.0.0-canary.4d62de70c.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.4d62de70c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.4d62de70c.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4c1af12213c43ead504fb010eb429ff48e930d49","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.4d62de70c.0.tgz","fileCount":44,"integrity":"sha512-7kfJ0iFGWXB0Sqy44vIEtP7bDL+levz6E2eSLVDf5X5n/YxkBnpCYpATcKOnS1a5/7rfz5Wh4A8KMdyDb2+4fw==","signatures":[{"sig":"MEQCIB7GXeiffvBOCpvSvL4IDePO4SXuX7yce1wIZha9gU9LAiAGx7NltDfFUpwhNkqKHRTplDEZbpAFxe2cTZi28Is9lQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5W3cACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoROBAAoD+doszA1Ff281v9BwxdMGH3jKCRxZ3UuYBFa0wOJzVBp4yJ\r\nIs4X8wjz6JgE9O7cwKZyZJnpMDAFYohGvA5WD80ncmsKU8CByvc4mHwBvcuW\r\nYJmTwuBJ4WuzMUmcogywghxWhNq9gNmffQtJLCajhOcx6UPUm6t5QVjiLPv/\r\nCe5fwJuGCdRzw3uJYVLvXB8i4Dp2lKwwBFjzY7jTa/pYCJTgRGTlPtlCoS69\r\npUPH6wgYq31mhvv7V7qxiSdYiLMveeZhfTGX1ilx4aCQAYAEP1MG+M8EANzT\r\ng2190bNEJQ85rvnRUOoHpUHutLyRYkcktBWk18dMxZUs4atB+TNG4LlyinRV\r\nfe6nZiggRh0RYem6jrEIsrL2+A+qJiffseScpWU5V9SKDxBbYruRWVyuxEJb\r\nHTyu4BT0v9Ouk7QFeUI77TeXkgsJjIrMtnr1Y8jpcriE0WD6dWR1ceOeimzf\r\ni+lUryVD724f8XJPMPwHXIE4ATU0767FJueyf6AL2qmFXBubl7XUdahCrg/f\r\nBzY+NAYw3bbD1wL9DICrDzRhcqs0paeiJoPPKoeZBCXmG1LW375RM7mBUsj9\r\n5NlDk73ILI3D4dPbNuRh/BFZF2XJ7mi29WvNTKiAbbH26+6Y2X3BLAb40oYn\r\nWdls29lrdkxynvz4osPrI5/gAkRnCHMMTdQ=\r\n=pDf0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d2081b5045fc9871ff56b0d31ddacd235e2316d5","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.4d62de70c.0","@material/base":"15.0.0-canary.4d62de70c.0","@material/shape":"15.0.0-canary.4d62de70c.0","@material/theme":"15.0.0-canary.4d62de70c.0","@material/ripple":"15.0.0-canary.4d62de70c.0","@material/animation":"15.0.0-canary.4d62de70c.0","@material/elevation":"15.0.0-canary.4d62de70c.0","@material/typography":"15.0.0-canary.4d62de70c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.4d62de70c.0_1675980252497_0.40051644823989707","host":"s3://npm-registry-packages"}},"15.0.0-canary.6fcd8d418.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.6fcd8d418.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.6fcd8d418.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"00cd73a31ab30a824689828ae6978460f5dc542a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.6fcd8d418.0.tgz","fileCount":44,"integrity":"sha512-XDPRSaYgSBhUozZ28kKBzNweqBgAHYs9mEOfm4Ix681RgHpQYjFTA9s2ZlEgqb7wYkyhQmOPkfJ9VnXZC8+isQ==","signatures":[{"sig":"MEQCIBrnT4qSTPff5f/UY30D2ggn+QAk9bmBbzvda+DbaJtwAiBzBIt7HHHVIdp0aff8NkWyGIlsz3Up1umDC5L0K36HEw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6iQgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq14A/9GLzA/A4dQQXNxKOezggdANVmSE/HFrjrMLOnvPjyiR0v6cbK\r\nqyrifmgY6mC+s3MkeuIAl2rXdYBddAp/NkIj3jiFJhlG7G8HA1VSiUnnMbPs\r\nimIACiWZzOmgyML4pufNKY35CCv+xdqe+KJvpcd0YCWDfiavYUmrKDbeWzp0\r\nAZhUIyYhHb1pBI5FGQwl5+KVS9kMvK0EPhvOTRuwpPKc4wW0whSMWNC8Z4Or\r\nERndDCg7d9R7/MBaPgA5XxmrczfHhbp+vDmANsQt4wEyWc4TWQx8Vj3OZE0B\r\nr/YGb5YYz2JbWYhZAMhzYYvbyrzi4bPlt/QGGUkvKJpb1MvwB1fq1fcyCXnn\r\nVb5umBLYaw80+T/7Svb2M2r/coi4y1vEo/f8uSI73XJuMEEDgR7dVkE8l9KY\r\nCpr8iEmp7YB5GwkZ88VeIw6uE7nScKWuGym0fOTWJJasZXydDLFcmpF9jllX\r\nFYiyoKb4J1QJ2boe3fNF0lp0BcQZ162WmhH8t59666vpWuLz0PahYDoI4BB/\r\nLJmqZh7PLmzoG04a/Cs4qG4ihZ8WEj/JQEKV58a4aZcPUjbXleBB2u4c1JFQ\r\nfsSx+a4GU/okuArEc2bOOZ48ghdI8Q18sCvAYqG/zFD2l0YOe2znilxT3/Wi\r\nzj6dAsyNVCxelSNJxXLGxbB+taRHZI+ZMlY=\r\n=vZJ4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"39b4fd2a38e7ab9611f614a59dd1694de0b94cb9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.6fcd8d418.0","@material/base":"15.0.0-canary.6fcd8d418.0","@material/shape":"15.0.0-canary.6fcd8d418.0","@material/theme":"15.0.0-canary.6fcd8d418.0","@material/ripple":"15.0.0-canary.6fcd8d418.0","@material/animation":"15.0.0-canary.6fcd8d418.0","@material/elevation":"15.0.0-canary.6fcd8d418.0","@material/typography":"15.0.0-canary.6fcd8d418.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.6fcd8d418.0_1676289056456_0.5335384993551779","host":"s3://npm-registry-packages"}},"15.0.0-canary.066d9439b.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.066d9439b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.066d9439b.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bb17ef20e996138f7dfe84c8c94ab15f8bb98483","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.066d9439b.0.tgz","fileCount":44,"integrity":"sha512-y4IbXNeHZgT1NoZvKd9n6yNVnJOnUBxyVUPZuAQbq57XnV/q338R0Ofx9g6W2KrIjT+gKGxvnloNKN7vggAHMw==","signatures":[{"sig":"MEQCIHbI/lB/StTXq2BQ/OJ2u8o8hxndmlcdjRoUZnAjuiBGAiAv+3A3a4kHTco9P1rtP7Z3ycjKfFXOyRlalOs58dpqHQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7TmBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrOcw/9HN3l8Vi6H7UO/skYD3ClZ9tWHw+nj6OAeEFlFh3JDa0YSWrS\r\nJvUpOZucl36tS1DTDeNUCPMTbK9hnwnKztbGbG3s85x1nKhqe1Z1yooGaybs\r\nOeGipfL3WwXNFfD8Gf9N8kvFCc+XiBhBdZMoQI6mHI0IjuTAQfx5HG21es+B\r\nCPKqu6nxZsLNo6k2o1VB2qGS7V1fTAR2O9QeQjLNDH3QkDhgsN2bR3hk8+V9\r\na8ugZKmdwtsbl1z6JmoSCzfATFR9QhnF+F6Y0yZKZlKbcRcG+CpUnCKdWGw4\r\nMKSl7HF8l6loI4jl35+DVMV6UZu+3+XWpEcR9/kARPkz9f/ZjdBk57YK6kOD\r\nR5hQ/vBuZg7Lz9ItjYy5k5/xw9Vmw8T2dlcWaRWPEtDByYoJ1P4KGoiRt+aU\r\nt9tVtWzocWyp3CtTjf/8AL9fdRlH4vO66Q7oLndRXLWiXkaPWY9Zz7lZYkes\r\n49/ZhIyxbuhrB/ZT+qpIeCi8ZbWaMpBMpPd3W04+cuz1l4tqadCqhV+bwv8G\r\nX21Xpaf1354h+Fc3682ba/qtzBOvdnngWP7PG2rrGhjGmfWemqoOX4tpl0n8\r\nJ1ZSW2o9CTktjkWD1ycAr9YJaJJinU3SydiGY0Iba3fG6BR+SSANzm7ry56/\r\nUh29+96MFgXbUjnQFSh6rP6WAwzqPCJqiwk=\r\n=XrAk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cfeee3e63b3e6330deff033d8054adb710498810","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.066d9439b.0","@material/base":"15.0.0-canary.066d9439b.0","@material/shape":"15.0.0-canary.066d9439b.0","@material/theme":"15.0.0-canary.066d9439b.0","@material/ripple":"15.0.0-canary.066d9439b.0","@material/animation":"15.0.0-canary.066d9439b.0","@material/elevation":"15.0.0-canary.066d9439b.0","@material/typography":"15.0.0-canary.066d9439b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.066d9439b.0_1676491137662_0.9729448689247693","host":"s3://npm-registry-packages"}},"15.0.0-canary.7ab32468c.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.7ab32468c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.7ab32468c.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e5b37f40f74d498efef2f35d6d0ad8c6de4925ae","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.7ab32468c.0.tgz","fileCount":44,"integrity":"sha512-c6f2hGvgZx9zYDGRILMgNZ0T8mWhl/D4d7QToM6dypbAlavkhA3WQ0NPq5zRa4aaFiDGSKeSX6nfFXN1hVCOag==","signatures":[{"sig":"MEUCIQDyyGTtQCeca7JDIfc6VgSFXffv3tOF8WrtcFkmi6tlRgIgbMUvlGTP+yB4rQ4gJTeQeorHL2cGprDsrmuaYC3I3TE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9Q7jACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/TQ//XmwPc/ZX5v7eNNfsco72xDwXyJE8057eva2qoMbUs0iMhPY0\r\n/pFdFWsLMGGk+M5qQ4YwAoY+9ZcGliAZvX9VDKdOTk/xYn0GjhK9PT9ROpZk\r\nwO8XwqOwKeCmtchcI3ugSNhA3p0U8tF2wgibzgUBiTAsWJs8unOBB0nFH1N8\r\n70befrYR1WSemKZzmV1pM7kNfcF/UqXQEJBftfpj1fPuw6zRyInWH5q2qDIa\r\nAmpzl04ej6NiYnZJXo+CNN3lgS0NgfrO2xu3q23YeCYaMsMFpmK958MvMgzL\r\nCPMT285jlZsUUJAEODVUcwMLMZtw/SBRm2YD+Db8piftGoxBoXmC+rBFL81f\r\nAguWXV7u8oW8peti+KbJNkMPPuNe3E7Hq06bLawNUOCkDtZmNaZPTmMmK03z\r\nn80cAw8GJ9UX+fDdm0EqUX7bC7e23vfyVGfXHns9pePW8OiC54tdEZvTYCML\r\nTUT46LxxMesQD9dfrBQZkbF0fxunI/dVt10zzleLwjN0VD3GBJ+SeSWiSSax\r\n61jWst/FxIXcT2IR9UGTVFIPQ1nZyHWRb3v7Hfys0t6GQw149D3OGRTxTSoL\r\nM5wu0V2IMQOIpSjatOqpc/o+ZmlY7oyh7knQO0z1bowSTX5Ad/mBp2DbSrFJ\r\nkEp/vWgHl7lrcDXke2ecpzS+lJdQFtHN9+0=\r\n=6oSF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"08b12f363223d69b2eae5d2719e9ff0da773381a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.2+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.2","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.7ab32468c.0","@material/base":"15.0.0-canary.7ab32468c.0","@material/shape":"15.0.0-canary.7ab32468c.0","@material/theme":"15.0.0-canary.7ab32468c.0","@material/ripple":"15.0.0-canary.7ab32468c.0","@material/animation":"15.0.0-canary.7ab32468c.0","@material/elevation":"15.0.0-canary.7ab32468c.0","@material/typography":"15.0.0-canary.7ab32468c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.7ab32468c.0_1677004515519_0.03550654879658954","host":"s3://npm-registry-packages"}},"15.0.0-canary.fa27ba61d.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.fa27ba61d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.fa27ba61d.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c3aa3a1d66ef7c6afa39ac74988a104735c62793","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.fa27ba61d.0.tgz","fileCount":44,"integrity":"sha512-7uG0SJi5GunzJ67f/vIYI8l64x8xfDOL1f5yV6mLX4OcLcMuAVDnpaIR7fMM6mn/UnwDsDgQhQqgUpS/9PTYjA==","signatures":[{"sig":"MEQCIHDzg1UCofjqpx1psUCXaC9VIqihHVPYr2EUU/KxWqe3AiBq36BR1CHmx5UpRGc7/h2ML0gKox7ZEMxNzuFY3upV6Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/NhLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqfIxAAoWtnOX4QSrHvAmYrQraN0vEh3dvLz/97McgGHBA7140GGulH\r\nGFjTN6Ta3N908fhqyh2TtOoilHrjTdkQIYdl2v6D3JkhQo8Oz9krMPpwjnYN\r\npBgcxa7JkLli1sUS9UR/eODsycN5Y5r7lRO7E5mC+PTGFWRRBdJhJjQtEQLs\r\nodTm9wht32W2ZMOwJqiO8tn8XaTw7KPwQEy2yKeBCtm3Lsbyh+B3+jb4D/Ro\r\nJl2hivQfJbuMDxe1MU0LV88kp5ASq6fyiaw0HyyGEksQ4fzKzghKIAr7wQT0\r\nCLBrcbBoobojxi9ZaxUv++4kyE1h4B6+BgGN67/ZOCh5g76k4W747AfPB6C+\r\nJj0okN27UmPywX/yflcIj6jZQIcYFPa69p0K+csPMI/ZAdPDIRWnL1dyjDxp\r\nk2jlS2r3ncwHuT47Bg/91rx10OSLpjaqvEf1dTSLIB8t04J0Hb7VtGoGSmtq\r\nkvb6bkuClsyRUaJiC9JrUJVedn09Y8umuVLqXIiDWJwlgg+vspu/LarIZ8S9\r\naVfot9qZuSOydq+eGojjMsNhb+9cYvxutJhcPQPmZx2chp+kK/fWZbu2Nwqg\r\n6gKNubmBDDWbeJmNQ0FwcopS4H6etlKwvqg+2rGP7x75FrlaZIo90NzvxtSa\r\nB2aViAuMMGzu5z6wi+Eu2ha8yYDJ7yIVY+c=\r\n=/NOP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ed40c112543fe3ecfc009ace11a6f0c3f82fa26a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.fa27ba61d.0","@material/base":"15.0.0-canary.fa27ba61d.0","@material/shape":"15.0.0-canary.fa27ba61d.0","@material/theme":"15.0.0-canary.fa27ba61d.0","@material/ripple":"15.0.0-canary.fa27ba61d.0","@material/animation":"15.0.0-canary.fa27ba61d.0","@material/elevation":"15.0.0-canary.fa27ba61d.0","@material/typography":"15.0.0-canary.fa27ba61d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.fa27ba61d.0_1677514827153_0.9985564955281239","host":"s3://npm-registry-packages"}},"15.0.0-canary.311ab4d4a.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.311ab4d4a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.311ab4d4a.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b0abcb48927743ef648fb55b6ed3acc6f9c58a67","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.311ab4d4a.0.tgz","fileCount":44,"integrity":"sha512-Rzj1ebI7aswbb6bcBX4r7xaVpi6uJo6Ha76ObVNrW+BThgIFWV4wRGaSkNtCA88SnSeKe4QoTblsR0L0z4mzpg==","signatures":[{"sig":"MEUCIFLln7ItQmt3eI4eWK43zVArvX4/6cUP+kemOKg449aTAiEAgctylcQ6q9NgUqNHwvAI7SNe0VZ0vzr1hZYvHBX1650=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/N18ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoOTw//f1H1NZd5sI0Azlq3qTHt8NX9Ip21CHpTVoO58xeqI+nO1SA+\r\nTsB+bhmWvFO1m2ZI7bdIS84+dCsOZJRj2LJRO4wypUgMnZ76tu4ssYyI2oEC\r\n/pee/1NKRFKaCSbhydBDm0xuakBaueyeEDbNDxv2aIvht0E/Idpi8t8y3lfR\r\nLlrwt73vRSE7IRfjamTw96lGARmqTBgKM3BXcJY+CwI6cjfRu8JspEmltYVt\r\npAyY9ESEoZm0QBL/QN7KZiFEzuTNH9TmkypBCT5Fgmigir12V8mZcKoxU6Cv\r\nPPle536wNOb1y+M9YLSq+nkgNHhwx9PIlRrcH4trs7pOyN0vsg49sMjh8UZN\r\n+XDcXUO8JmB5hfJkoW59s8a9GgBzsQpq8Ei4sotC8q/1rjG0tDXJm2mG27Rp\r\nla/Bh0YFK+hMvzhIs4X3ONG/aieGAljSZvAqT6o/gmD3HqvgL08tztDhJNnR\r\nZd2ku9zIJZ1tDXl+BFs5mi0Ttra4+LQ+N6G5R9fEGgfW+tfqLeOXeP87hZre\r\nle5ovDrnjNynvfGqvEPNcTGHlPy9+YZYzjZ6Wh/sUPnzFTqUPwOVexBx3+we\r\nKv9nAdHbUf9luDLl9Drrmvois4YVqP/zx5DfNAPt84NLXiFw2eTqgCumwHXu\r\nnQkO9HI3xwM+tooQKhi9rG6db39lYBK5II4=\r\n=iLOw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"07f8d2f7bb4b2f30e60a6bd8739befd9d17bfbfc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.311ab4d4a.0","@material/base":"15.0.0-canary.311ab4d4a.0","@material/shape":"15.0.0-canary.311ab4d4a.0","@material/theme":"15.0.0-canary.311ab4d4a.0","@material/ripple":"15.0.0-canary.311ab4d4a.0","@material/animation":"15.0.0-canary.311ab4d4a.0","@material/elevation":"15.0.0-canary.311ab4d4a.0","@material/typography":"15.0.0-canary.311ab4d4a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.311ab4d4a.0_1677516155900_0.09142569683614732","host":"s3://npm-registry-packages"}},"15.0.0-canary.5cb8e2174.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.5cb8e2174.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.5cb8e2174.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2ff954010ed7127c5c84de4c80b3499380f548e0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.5cb8e2174.0.tgz","fileCount":44,"integrity":"sha512-76ce1+OsOY9xOwnhqCi/D+qCNopqrlKn6OA81DptGD3cAoHT1O6Hct8+fpSrkzkO8m8Jh0R6EcgpA8pOJV9B6g==","signatures":[{"sig":"MEUCIGds623H6zweLTLvDM6Yx8ahqD4QEGTxki0SJFOlcV7FAiEArFQkLxo+KrtQgOlQSfsR7wz9Dsjf1/RMku8NM+yca9w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/38oACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHdg//WXXXgWAKm9xmiJ0cgu8eUJCCmU1xvQaT/VmdhoSX+dIm/hi2\r\n+28Oz8mhMPCPucaame+nqoCwa7vS5iOtmd+gENRtIMMTTP689mGGmqcmyhy1\r\nl/teCiN0YW463HwDBihvyZ+FiX03uy/WMeU721H2heKAcKuARNA8fgbS/TDE\r\n8koURKZvj5+YpcM9FGycBi98Jqnpwn14tGEj0qVDggpZiRcfYXs1tGHmxJQC\r\n3YoQfnjubXQAOZa8z3omZSvXndIDI4dCZNn0sgHCkpE6I0PEb2FvG2lWJw2D\r\niCFvAqO6Saw/NLU2zo1GgV5jDFccv0oMrfwvtUaJyEb2eHofxzPAqCB1d+UA\r\noeEaaBz9xMoEr/bKH6eKQnG65usPR6DdTEOYWF5Zsz4JA91x+kBpisTQQIqT\r\nU1QyW+iU6CFQxwg7DA+6cGX3HZW4bdBnrplBSaEzBXjT9zIN/wmKI51lWNs0\r\nrP/yaDAGGgeCUoEJNXOVOKm+e4Ekc977fna6cyJ6752gNnGaprRPbbBPv+Qw\r\negYrRa1InCJvdFRpoo7aDYAcA2QqCri6aBjCCb8Rwiqx78n5bdSx24p6rPkl\r\njt5u5ah6wqRF09VGJ4nJdvDcs5CsuHCCA7UyXPLqgXKwcV5SDbrZuVgv8ygy\r\nWCdWGM1q3/xMCBzUZ+pdeD6GvpjlLdFrB9k=\r\n=4ujA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d57edaa5a3a3079c48ef7c804f0a642bbb682478","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.5cb8e2174.0","@material/base":"15.0.0-canary.5cb8e2174.0","@material/shape":"15.0.0-canary.5cb8e2174.0","@material/theme":"15.0.0-canary.5cb8e2174.0","@material/ripple":"15.0.0-canary.5cb8e2174.0","@material/animation":"15.0.0-canary.5cb8e2174.0","@material/elevation":"15.0.0-canary.5cb8e2174.0","@material/typography":"15.0.0-canary.5cb8e2174.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.5cb8e2174.0_1677688616565_0.9507246004951548","host":"s3://npm-registry-packages"}},"15.0.0-canary.f32339937.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.f32339937.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.f32339937.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"30d33b61630caaae63b62b4f4fadb2c5d032eb02","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.f32339937.0.tgz","fileCount":44,"integrity":"sha512-R5gfCm/xh0a4ES7pATxsm91lCHPVyShrof3kYnmjNcW2QWq75NdlDzMokyRsJ1yMvmR0kgRA/NOHapFuR3DdAg==","signatures":[{"sig":"MEYCIQCh3YhbH0lG7KX7voeZVHpd5+JxH1WI0rMK4WcrNWGkowIhANUaKtcxQpQ/BDg/8StkGRBIq/cWdhvnf8/mvxEvCN/l","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBgPeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoKFA//W5HtKX1B292E+31zhn2oO0imbFOfZ4Capi5bAuCZ8AUFUTQN\r\nofB+SRUHWtTuHEC3QkkdNVR3Z/csomE1/baY/Mm0i6i+SW0xfaE7Rl+G14JW\r\nOldP+DMC9pnIVkWUHDXsxNE1mQy5e5QRFXUH2clVAsh4Zze5ce5QBqIhSCbS\r\nr1/JFZnm6621APBpc4S7QtpMuHoi/k9iT7fcb97B11mHwOEgfdg9mhZb5OUC\r\nWM+8XpTxCyq3UWBRKxAro511GyHzcGzWRp/QatusaHPkeglyEuaS1dFE2gan\r\nter/X8ecJpaefBqj035rC+Pe8DcZbSWiv+c8egDzfsUma7Wex8KCfUEMQ31f\r\nIEH8aEuPW8UPbDo3g9c8dOmSdZS9MLghdnuo9J0EWrN4PJ3I72XKLUlwCOtz\r\ndapeJfPRN6BqoRugrlc3ef/mOjTMg6gMsihCP4g13YPsnvlRJKO5K2cBFVOp\r\nM0QCeY+0h5PAgdkKKmLf1c0BDnL6J+1dufjGt5LpJVEmbadM0mw3UyZ9n3cZ\r\n/MxucLBvXcdAph8IY6wGG8L3tNd2GrcoNtnU0R3ybCCRAZlk9ycP03N8La9Z\r\nVrTtlBsNG/aEAZ0VtI0A7EhB4cvCV6cGVn/qVtuamuo+yOmG9LvQW5LudmhH\r\nOwwLKh3DavF703rgBPkOf9oVmKHNxc3y1Cg=\r\n=K14D\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b6c5103b89138f008c28f70d93e0d3faed285061","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.f32339937.0","@material/base":"15.0.0-canary.f32339937.0","@material/shape":"15.0.0-canary.f32339937.0","@material/theme":"15.0.0-canary.f32339937.0","@material/ripple":"15.0.0-canary.f32339937.0","@material/animation":"15.0.0-canary.f32339937.0","@material/elevation":"15.0.0-canary.f32339937.0","@material/typography":"15.0.0-canary.f32339937.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.f32339937.0_1678115806083_0.4421829112407454","host":"s3://npm-registry-packages"}},"15.0.0-canary.7644d63d5.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.7644d63d5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.7644d63d5.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"49116f3dfbc5765d956a45a74e411c55cbbffc73","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.7644d63d5.0.tgz","fileCount":44,"integrity":"sha512-0JMWpNp9zuriytlTvQvz8FkK3IjzHpfBbkyBbxAFKTOVi1u9D0jNjl0+gCIsRMVCQ8VwLEBUBwIdF9ieXHMQtg==","signatures":[{"sig":"MEQCIEt4KiiGHfDUaH8IBxjmf4ySkA6k56akGeUOlGD15zGsAiAoMBl2EgYDj2HjxUP2o6lMk/de9FSvaVKC08dIoZdNkQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBmkTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpDKw/+L89F4glqS/dKfInp326yNsa4nIkFOkJrjenWBtBHKHzPajr3\r\nrdi633E+QcdHKtLJDdfJuSDQi9UgXit+LKDO719tjq/ZfzvbwFipvqIKw9wv\r\nKuSj5vWiMxzlWTt1KtYb6LZsR0g3iCb92BNt1Eh8D0A2+YGVDsfl7ZR7zuPJ\r\nWdAoMTh+fNSgbIMNUagFUpmOBrrefFwT1Dmy6eKB2axAClbZWmuPuhNdjetb\r\n7b4JSGdrHh4Tmw3hp4BEmclbHxQEVJKVd62Sp55dzRRbSOWITl51gGZh23QS\r\nUlhHz8aJAdHYRTixirQ9ZuZnsOYDDsnleD6m0vYNHL8j6f23n8K9+pmKx2gs\r\nirFQoyXOLOK+eyNta/aFMQiFLUpXuvBgBmeMjhONz6Rp9cy++SqHRzjFbrID\r\n2d1ZcOfGXu3W7mIZtypsRTuBFHDzFEcTdiXUh4QpYyeiA7GUn3foXIVnIjL+\r\nSlSxX6jBKbdKA1hLFXGclTIE0X4ag9UJh8kW/CyQKSHCvCxAKs4+9OhZMtfv\r\ne+JOrHEWo+g6rr4vp5kRgc8m2RFdmq0ykMaRF0c5sb/ZrnWxgSC6N+VUg1YG\r\n2G0H+EBtknmOmZyVOO6dgAaOZSC4yOUThp+BROoshTqFqofApSGRsivaMn1V\r\n5UzHYxIVYq575tNP667ufSEubn2RKIQonKA=\r\n=RvZ3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a0332d9af18b36becfa025c452efffd11be59943","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.7644d63d5.0","@material/base":"15.0.0-canary.7644d63d5.0","@material/shape":"15.0.0-canary.7644d63d5.0","@material/theme":"15.0.0-canary.7644d63d5.0","@material/ripple":"15.0.0-canary.7644d63d5.0","@material/animation":"15.0.0-canary.7644d63d5.0","@material/elevation":"15.0.0-canary.7644d63d5.0","@material/typography":"15.0.0-canary.7644d63d5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.7644d63d5.0_1678141715396_0.0642287610357235","host":"s3://npm-registry-packages"}},"15.0.0-canary.d96330c08.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.d96330c08.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.d96330c08.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"35fda2bdbb098df6c27630a20f8b59fb37dc4a4c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.d96330c08.0.tgz","fileCount":44,"integrity":"sha512-eXqA3Q8oQPrUjSg8HsoGzELKyMhz14VWbgu/hpJcjP3B3GuIsi1bKLGHOeRNaGC/8dccf3W8u5frYtaNLfKGGg==","signatures":[{"sig":"MEUCIQDdsxbYOQdvYONqi7PJqa+40WOTn3Fvd/l8dg/h1de+OwIgGaXymSnTJKhd+Mb8iSQihUM7dJ7+4Bn1exXKXrtVpMw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCHTBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/8xAAgX4uC0UDiMbYV6uGktOnxfT88rntwZ1qkdjkbYySyiwBdHwr\r\naBGvQ1FQz9z9ip1+9zCszCv18LtgMa5WHnUG+TYS3539V1MVtP8ZLFk0bRUS\r\nNpl9j4AcPR8obCpChI0tyB+gd7k+mKIHYK0/wrO8A9+QSSST/hP+4tHWP3Eo\r\ntFkf6BvGSY9MujqvE690f2WtXJ4yj2pzhLWkB2kqfNwxSaojSIzw7jl5Yolk\r\nvB/ylOi987gcK1PCHWwsAUA6LoBw2SvmlIxMMMiLq/fMstTGKS7AeA0I5u5+\r\nqRtSmpY+supxqI/miRvinIW+d+USo1++U4OGourmMHWyvdgZJviYGxwSJUY6\r\n0VBtQBn+eRHhBKP7o5JhSUGkz5RKn0CLwOMC2jbK+Et4mL1k70iVzL4EBPZW\r\n4YcxszwzqrniMkjAOHxIs8RcVt5yJhyvUf/qBE/0UooMI0xAKmeyGqFLIm0V\r\nPAhv4dnx/32mlWp4a9qo5DOGOz39SY6rno4ZoTUopnwo2bCfwx0HbAKDzpR5\r\nILVlesGXsfeem+HyLnWdfg9WtW1c+uBJipT6WC8R8kIwUdR/xagnhZIGD/8H\r\nsSoGCUEHh+i5s9hsid/53acgce8DCwKdiCAEW+8SreK+uxKD+V7YmTD+vqkI\r\n2DXHcpIrfj6Oc0+sPUTPYwkxSVag7HlU19I=\r\n=dYGM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6a6d53aa84a0c0a10bb15c3cfb596881140bddb2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.d96330c08.0","@material/base":"15.0.0-canary.d96330c08.0","@material/shape":"15.0.0-canary.d96330c08.0","@material/theme":"15.0.0-canary.d96330c08.0","@material/ripple":"15.0.0-canary.d96330c08.0","@material/animation":"15.0.0-canary.d96330c08.0","@material/elevation":"15.0.0-canary.d96330c08.0","@material/typography":"15.0.0-canary.d96330c08.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.d96330c08.0_1678275777081_0.7708630252310356","host":"s3://npm-registry-packages"}},"15.0.0-canary.c99cae77c.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.c99cae77c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.c99cae77c.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e05964a155340aa9a39070e4632e6e5e85a82dc2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.c99cae77c.0.tgz","fileCount":44,"integrity":"sha512-Yz8uj2WjTScnWYwDmPS3rczWLKgXOBuc/6TlB864gPQBwfOgGFvevnw2cV5HPfPF+CxwgPwx0PooN5Y1EHdMWA==","signatures":[{"sig":"MEUCIQDftxm/n3Xf1Go7AdzroAzAZeDPHF4PPE5jVdB1HyIwXgIgfB+RGwxcTzMPFKKlJbj6sfAoEsvDkp8qoJj9INmrkcI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCR3BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoDiw/8Dq0+wI6NF/LPUdc1U3lLBdsK8NFUnChLYBoxSHS7VuS78AcP\r\nnLqhC2sqrGUsiJm12CL+eCNWR8DPXARXF/VcSI0h+subD7FGKm5pfdS5gQmj\r\njILyCvqCi/FRSrmvur9am4cvFy16hnCQrF9ayXWbhRAHuSmGaybukJOivXg/\r\nwVqeNcjhSh60NnEeYB9nuiH67YuGdHvfZy5DT0lTtjTFSZJGc3rijHdJuaq5\r\nvONbgshX2obRz0ZMR5P1O2dyQwZmRkZ/KQa9lmrDxNnVNGqTjvmdf2770pZ7\r\nBcio/8k9c9Js1u+kzzCg/HjjAOvFZ1DDdEMykBgkNKVRwR6qmxom22XfZ574\r\nTjcXPc9rYSJNKtmp2q92OpnZg912HVn5jot7Aq1JEE/5M5woJJ1a+rgqfazx\r\nUINC98HFQx0fG0ksH80396F0GabZ8vv2MjPxE5ovfxP7EbJ+W5W7mJna5pZ/\r\nNsN477qcKsAhlbIz3y5luvqDAWsXovvo+ys60Dw3fL7rHx11zJkwipfsqjdE\r\n57kWLOy1IrQsg0j9GnyIeBO17fKwbLrAw82KeXdMDUMNYbI7lcHAAOil7n4+\r\ndZOwfLuXOEajenq5QP0/gcZtnJzvm+k/QF7xmW4RLm8Scy8ByYG3wPUN8rZs\r\ny15Mvio6uhTVxpyw/syhnqggmbsrifMwKZI=\r\n=slA2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5b6a7c1a1c133381bad395ae040de00c64b62e42","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.c99cae77c.0","@material/base":"15.0.0-canary.c99cae77c.0","@material/shape":"15.0.0-canary.c99cae77c.0","@material/theme":"15.0.0-canary.c99cae77c.0","@material/ripple":"15.0.0-canary.c99cae77c.0","@material/animation":"15.0.0-canary.c99cae77c.0","@material/elevation":"15.0.0-canary.c99cae77c.0","@material/typography":"15.0.0-canary.c99cae77c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.c99cae77c.0_1678319040903_0.5021414183942272","host":"s3://npm-registry-packages"}},"15.0.0-canary.6023b1cd3.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.6023b1cd3.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.6023b1cd3.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2422ea4cb9c62d18d1439583a4db94ac40afbfc0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.6023b1cd3.0.tgz","fileCount":44,"integrity":"sha512-xFDfYBLl7lgIIR2XQaACofCeEFzkpb5qhtK4oBr0esnGk+hySjRoFPrp3i4fmuTvF1ZiKhah/HkX7kG1EK6/QA==","signatures":[{"sig":"MEQCIGQKYssG7S64OU0sG2mbV2N/+lY7We3008s3smpL3MnpAiALUG1viPXah+bks9/YWqJtUCvUxpIuWwoq0rE6ktdYkg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCezPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrhyw//dBaMdPbZ3PfqWXYyK8WsOxigClCgX/c3VXocs6FZFrR4AZti\r\nrJjTP/xYDbEhpjXmwLgT3ACEa1qqESTGDbe+TlPt7Bz7xcWkaMxSTkLHrEqF\r\nyVgb008pZk5zwaQ/onL7jGAVv8Gyz82rAuw8O6S9IJIfK0Bw8+WBQgxaKvmS\r\nO/ISLb9PrrQothaMyIcOE7avLvAkvEJJg2uJg8BlWWWiUv947yjItWoipCga\r\nyV2/D0QPDyBG/8y7GICRGkOJSLIGb7ar2eOQomtw8ohXIR/LnEjVz+nXT6KN\r\nNHgPSocR8Zrp2ZBSnQ4NT+cPy0wSUkTRbqUBprE54nPONbaLxbo7gpuWbCBH\r\ndycTT4uuNSbSzJKM9XvOBea1TdXLjEHyXYCVMWKcTr2TnWTXeoynTDx8DnoK\r\nVMoRH6JJgyMTXi3mejcRuZxFYkBGd23e1XiS4YqS5fjZ4XJoTzdYPyRkHDuh\r\n7Oqqaxlfk+c3i5X9khg2/usXPKWvFelP/F9FqGoG9d6zqXu7xBrI60+PAAi8\r\nzy7vEv0pi60YToF0BwKiUtLxrcsKQmxIg0/xvoIreMcMZSW0LQ7IW5uA4Qvd\r\nKjzI0l668cfXa+a3b7ShweJtHh/lUpYvvnRPS5m62thBuNISskxjSiT/FjKu\r\nokJVHD/9z8PK6bag98Md0j2ftH1CXJX3Ja8=\r\n=Mqoc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4d11f175faeacd8e5fe534611afbad84efceae77","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.6023b1cd3.0","@material/base":"15.0.0-canary.6023b1cd3.0","@material/shape":"15.0.0-canary.6023b1cd3.0","@material/theme":"15.0.0-canary.6023b1cd3.0","@material/ripple":"15.0.0-canary.6023b1cd3.0","@material/animation":"15.0.0-canary.6023b1cd3.0","@material/elevation":"15.0.0-canary.6023b1cd3.0","@material/typography":"15.0.0-canary.6023b1cd3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.6023b1cd3.0_1678372046877_0.4497331387354926","host":"s3://npm-registry-packages"}},"15.0.0-canary.274610c77.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.274610c77.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.274610c77.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"999d19e072fc87e224864511aafcdbf646bedc34","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.274610c77.0.tgz","fileCount":44,"integrity":"sha512-9EgBaCB43DCYSN3ovUJmMiQBQ5cjB7tzznEz/5OeVeTYD9W205+Xny40btBF5XbCMooeGMXteoq6iLIp5QLFZw==","signatures":[{"sig":"MEUCIHCjNmS/9NxrOeNhkzdNe06ZmnNV4Qno7UHDiVNiEcCqAiEAm6MnerbT6k/a7fUXBzPRU620MhzMxxtJzkEvDss2lsE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCfRpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpHXQ/5AeRnBklgFxzIk4xHvfMamusJmC/mCJWoMCfZ3h6ZM8QrPwGx\r\nYoTHWkoL//hr7tg4qxKwQA+KYHkAsBisUq2dc6R0rqqLLcI9vb142I9lLjTH\r\nYnDOJT7o+N4/Cd1I3ecis/td5J6hfwZNHWGvY8Z4X0pOXuULFDuEFQ0Z2GUT\r\niJsl+GliaznneIV30sVmqtQsFfHZjatVK44xZgqiO8c8Bve+tUKu6dUW5/Ys\r\naHQVLyPOv/uQkZpiPzpHe9prcyvHe/Ka3LNa6Pn0I9SmAtVoL7N7nq5AGDYN\r\nH5yScDW7tTFAMmK/6+M2Djb0Tjau8Qblr9IXWddUFeR8LLWZkNMWHcVJL3Kj\r\naTV++DnZKuyJ01jWlUhziOMiH1euhp0riiDtmMcST6f7Gqc5Wea0imZZhFjo\r\nZMytXInTZEy3VGx2UggmCZQ51jYnxay4z+4SdQaIXVdpri5c8QziXyv/qC4R\r\nbR6YoH7mgOm6r1YRILltUd0p25mYFMfEL4ImYRqPqtMAOi6A2SyQeybJEVh3\r\nG/EVp0BKpZeJfjI5q9m/VRAFWwAccwJugyiOrzmpQGOHuO6I78UCPOlNl9cC\r\n3KFDMs3DXsr4gwYbmI+vXX8fYGewNjKXJGkLPLsX9vFb1TeRBb3DI1djKFty\r\n+IcJafmQ1LJrmV+91pieaayMFrsLI/wp8Pc=\r\n=nZ6I\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7a2b02c682ee73deba431503de1a6f1fef211c10","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.274610c77.0","@material/base":"15.0.0-canary.274610c77.0","@material/shape":"15.0.0-canary.274610c77.0","@material/theme":"15.0.0-canary.274610c77.0","@material/ripple":"15.0.0-canary.274610c77.0","@material/animation":"15.0.0-canary.274610c77.0","@material/elevation":"15.0.0-canary.274610c77.0","@material/typography":"15.0.0-canary.274610c77.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.274610c77.0_1678373993553_0.10072734301680208","host":"s3://npm-registry-packages"}},"15.0.0-canary.a274583b9.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a274583b9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a274583b9.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"278be8961913f058883c8a2391403b70e85071c1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a274583b9.0.tgz","fileCount":44,"integrity":"sha512-7wv6QWMA3o9DhgZQbsIYTijRcLoKxu4OBjx2p0OkyoryNOpaW3l91Z6AP++typZiTKMHhRgH1OP2LunoPXPnbA==","signatures":[{"sig":"MEUCIQDmhlTkHsmfIGL9ZgS834mO9xIWXcA6cffon0jN6Jz0MQIgTfecbm9QGBvfW1kNTQXIJ4gGPC9Jrh8Uumy751ZCopQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCjlIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoNMw/5AEquU7J2OAb85UuHCpmFwe0WCqKyzev4o6WW1S9eLOCS4jG7\r\nWgKsP3gCdGoqv+SzTsiXcKziPddQ/n9coMTW3nxJQsjjt/28F2dUCLEG9K27\r\nLQK9JFrFlOMLaWawY7fYsctq1CLX1P2KEwIMYD8ZDXcHqwYX+XZ/vgxA1Le0\r\nMW2k8cmOksLcaMmqsML73WlpLt5oX+BfjjIT5vHJgC7UaMB98THXRh+OQapU\r\njSKTuDxakSj0/Oeu5RYCy2TbjCH0XHH4OxB6NR4spQ6CcSxezSkyAWdvo7ua\r\ntjh4Apnx5s2/deavo2xrm51h4f69iONaUAwhNWJev8UJz5ok1SOATyMiOvez\r\n9icTtItHcBctkBqmq1cltxatoSANN2R+SgOP9wEyE66tZR5nHBKR7jH875ca\r\n0fNKeCbtkCkwMEynOnjiLZYuD2rWNiecKaZ2PI0HhJEfD63WNsYgSMODzr4q\r\nBtBUZZ149ShLv3ff+ZJydXwtJzHmVyatHwuzcJjon1gZeHENmd8xCNGl3Ta+\r\nGfggvVmaxprm0OAwrbXljxDb/SslMIZnUuCKQFIljFjg8XBHtlYOdA8uJTxo\r\ns67wk8S8oaDKk9/aicAK29pPM6YehcYOjIJSA2K7ex6pWxqcCPec0/TLqtQF\r\nb7Rs1DHovJTcxuGpRJvSALPDy4NtjrRXhpo=\r\n=C/AT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7a7c8184214014c45d0ba8b4723714d1fe91f266","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a274583b9.0","@material/base":"15.0.0-canary.a274583b9.0","@material/shape":"15.0.0-canary.a274583b9.0","@material/theme":"15.0.0-canary.a274583b9.0","@material/ripple":"15.0.0-canary.a274583b9.0","@material/animation":"15.0.0-canary.a274583b9.0","@material/elevation":"15.0.0-canary.a274583b9.0","@material/typography":"15.0.0-canary.a274583b9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a274583b9.0_1678391624359_0.45439355968129","host":"s3://npm-registry-packages"}},"15.0.0-canary.da22ca960.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.da22ca960.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.da22ca960.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bbdb6c25914d6223b94c32530ffda686150a5935","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.da22ca960.0.tgz","fileCount":44,"integrity":"sha512-bNMAxdc4cFGLfic//xZU6XA9AtOjDncmCFOVOgiazqQsIEgzalabBqg4B889QnX5QxxRusushS7fwMkX30/orw==","signatures":[{"sig":"MEUCIEzxC+VozM4mBk8ttu50MUyWuKCB+12rRJPl7f7MKaqIAiEAt0MjAt3BUdHNbuY/oGKyKprWEQxMABHISJl0tz4rplI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCj9QACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKSQ//ZPv3xqBbrilF1tmT4K94iQ92FtFez4ABITceXg/kXVzhT3nC\r\nRCezwqmZdWlT6ThvzVisAofzdntWvkQ0nf81YWiIYSG7KaohP7kuSFC17P59\r\nNeodGeQYqEiwZz25T+SrTJPX1pciwqAaGQD1YRQuzlj9xKtENYnHplZ6qrAq\r\nJgpotooKZ6y1Vh8Of/Qml74tjehRtSAUcr8Cb6d0QWqLmVdUhvEylSuMyFoU\r\ncGnaPTpxYIly99kJeVnOUy2FzxCGineLI5zFQVKqmk+Vq5XY7ofiNgIF06LH\r\nrcSufEHF/bzvZGWB/acyDoic8VUULE/02rEOQDQ7t5WQH8Q9F2WwF7lv7gwk\r\nLX4hOaUNGRuOXfJZdNfPoK+LUr7k3F+e8wrH8EBbvNuj0cX3C/xL7+f4zWc/\r\nxJh94Xz65SyRYuZgbE7O0tPunkh4larhm9aurbHsOA1liK3PVd8UnNm4m2c2\r\nudS4HWVyXqJ1oBQu0osL9v0BIzhs9OTpYfYb8e+GGBSKBRw4zyu/eknU5FqA\r\nnNeROYvPAtf3mxTUQ3TSb/+krdsmvVy0/WgpXkBfoQSX5lB/WcH5PcYyC66O\r\nswcyOCU25fCH1Be3ukn+G9FDEpiIfrbpRKvjM8VSgE7u6rkvuJ6OT0j+prjz\r\nEymD7prhn9sNqwyJ5NG68wkmkrRa5SS081I=\r\n=v2Po\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1b58f37865efc4ba8ba06e1190cef502dee9f902","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.da22ca960.0","@material/base":"15.0.0-canary.da22ca960.0","@material/shape":"15.0.0-canary.da22ca960.0","@material/theme":"15.0.0-canary.da22ca960.0","@material/ripple":"15.0.0-canary.da22ca960.0","@material/animation":"15.0.0-canary.da22ca960.0","@material/elevation":"15.0.0-canary.da22ca960.0","@material/typography":"15.0.0-canary.da22ca960.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.da22ca960.0_1678393168032_0.23996092312429873","host":"s3://npm-registry-packages"}},"15.0.0-canary.304a94e8b.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.304a94e8b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.304a94e8b.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8ca24529243e976aa89454f91046daa50e8fad34","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.304a94e8b.0.tgz","fileCount":44,"integrity":"sha512-lqpMcWysSDPShkp4LhDzNY9xYSbSydhXN18MIqEki4khkacNIw6bz3FfgkIMJFtiuoESRxV8vEPgPs1NDVxI7Q==","signatures":[{"sig":"MEYCIQDp+1dMNPl6OrLMfcKuYa/pa1S3gggchx6EnF7Rs27ubAIhANzRCUhHaxJfq6vm7hoZa+4Kc4NUEa7QVsRpeAVjE3QU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCkWMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpeWQ/+MvXVia7veVfRJG9wty/dVpF57hWq8GHql1VwyAmI1jHWfOOA\r\nhhwMpXh6FcaMCXN1ohD6lv841jw3oxqzgZiz5x8rNHeyI3cM2yLpIsm3tWh1\r\nhkTwYtPaypUo35QrOVxYoTTWUt7IVyfKhPkKB8xp3/s0RGt/5QMq6F3LwUgl\r\nZkEqoPAZuliLdd2x8nOTimIXXiemKzRZM2R5EXA4FhokDcitYz5+rek9jIvH\r\nxI9FACndcxIzMa8HTlfjmsY/7Yr3IG5yaimYOlS/FsBObJ3tQLvrhMQFFXXI\r\n6g4UzQUHGDlB6bKYjt8teA+wW3SxYzR3Ii58kkBRC9JFxXYgA0FjwoOoMWnP\r\nksik49HTSNAKS70MPjDQeqIO/vMcjeZFzcoY62gbGXPO4xTCEgDzRjZ62H0I\r\nVoMRtKeYh07eWgIEvkzU0Wmdeh0kpRBkeCaozah2X7fZeEkZR6/F+nwiuR47\r\nSPAEVNgaI4ZdqtlkTz4rHyXFMF5laTWENlitDzZQ7JLmQ8hs4mzZpl/6E2uS\r\nHujasjlzfsFr8Uj+vbUECbyBt3KkECcSWvfRR3+hyPKMxYaBJJ2GnRsMH+/R\r\nzvpjZ0qOnaTBqqSzE6ZDCdVJS4UGs/QheLpebdVcI2Bmsta9ONfDY5fW9Omr\r\nCDjZyhHg8iA7woeOa93iZSdbtUGnI1yPbfE=\r\n=/UB2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e7550e10d6a01c606a6dd78c58c4ee6e44c3f062","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.304a94e8b.0","@material/base":"15.0.0-canary.304a94e8b.0","@material/shape":"15.0.0-canary.304a94e8b.0","@material/theme":"15.0.0-canary.304a94e8b.0","@material/ripple":"15.0.0-canary.304a94e8b.0","@material/animation":"15.0.0-canary.304a94e8b.0","@material/elevation":"15.0.0-canary.304a94e8b.0","@material/typography":"15.0.0-canary.304a94e8b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.304a94e8b.0_1678394764386_0.49305097780824303","host":"s3://npm-registry-packages"}},"15.0.0-canary.6c265915c.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.6c265915c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.6c265915c.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"10d626a1c3f414c0569acd654bc6733962823a59","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.6c265915c.0.tgz","fileCount":44,"integrity":"sha512-b+zerjA1HHg2E80dxEVFhBPaeahBJjfIXLJmOUl/cvyM0bBUKZQsrVSVJ7Fy3W1tvpcUvrZ/jYSSvDWKML3lTw==","signatures":[{"sig":"MEUCIQDEjQnqcR+BhrmuFQXX58OUf26A3ZAgfKLxKecfv3kubwIgIu09WwnzYXB0KKgcCSH7Aeveirh+WQ4S+t5OhGCxC7Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkClQnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq7NRAAnQalqf+CxxLqkNkTF0ZRUBsyJKLt0E8K6nlGbWjRxRm+50VD\r\nJIrGcSFfLN10dGB/umb8AzLMKFEub2XGzmiUtsVDIcXWqnXPmhp9time1zRV\r\n8HSI10hoE/hqMvkO3Y1JJBwRRc7TGsSK8UOupcOztWtrJvZjpslZLeQLpnYz\r\nxOhUwqcr87AW/cZf4zek24N98opOabce9/UvEM/yfyPGuKefSdGS0Y2BoHJO\r\n0jHL42lGayUgV03uBsp9woSs25fmirlJNyZ/liqlRPdCRI6b3GzLA9A7gx6O\r\nHF0gwWqKYkxQ7eBBzel0ZD9Emjr5vfV9T3CzT++OVuDa5ipyeElA5TSJ1E7A\r\nlyWT6EaqZz1sZeNvmMEuW7AuQWaHSY/LSsTtxY/+XiAyyNy4SzUSubHgHc6M\r\nHSt+3DLf6LMQQzzW1Gn3vyUvrW7wQ/JkwoPP8bJIgJ/uTR85apsGnWabbPgC\r\nC8MgFM6ozA+JXjSIgnn6HMZfMuC1Gg8/fSJ2NiBDzyxwag0kJ1/aN5ZOOeRT\r\n0jKykbVwsgybzFaWxIDW3VZy871gLhyTIPW0t84dlwW13vmISHmFmZ8LXp4A\r\nzAf4Zl4SYzku+dNYWMFcG4KS2vj4+JghqhDsKwhP3Nxxalu+mtoC6ELwFsLg\r\n/wnYWNNotP/Qf4JrCaWF/fVWx9WEFTs9Rq0=\r\n=WKC4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2226d2e658d88eace91ac63729977eb6bd7a9af9","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.6c265915c.0","@material/base":"15.0.0-canary.6c265915c.0","@material/shape":"15.0.0-canary.6c265915c.0","@material/theme":"15.0.0-canary.6c265915c.0","@material/ripple":"15.0.0-canary.6c265915c.0","@material/animation":"15.0.0-canary.6c265915c.0","@material/elevation":"15.0.0-canary.6c265915c.0","@material/typography":"15.0.0-canary.6c265915c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.6c265915c.0_1678398503022_0.9634895866441153","host":"s3://npm-registry-packages"}},"15.0.0-canary.de5224633.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.de5224633.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.de5224633.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"71575ea200252284839f298870045e93054302c7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.de5224633.0.tgz","fileCount":44,"integrity":"sha512-cXdmAsfM1saWEivyLy9pfxpK7UN5Kxo0Ex9gFqVwoNEeX/0lvcKxWL+M4Ap8f+2hO03TDe7jDXCbeJThNpx+eg==","signatures":[{"sig":"MEQCICuROp0qpvkEQJYxOlt08qoel3M91OvKBWLVMrNB0WvwAiAX0bYf/mTKPZPyES4CtG07gcfvPJYtnsGbm12pxqI6zA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCnJAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6EQ/9HUMYJGXNXyHj1DD4Uv4S8jhTD/f3OV2ydrq3WPrGKveohTIn\r\nMWI9lppqAgiKhIelItzH92T1DnpP8ModNvAMGqQgwB/9jCgtY18FsGl0ZLZc\r\n8JBtK3YqllOI0ldxnORvKij75eRyExUaQCUa2ScYuG0sun461a7+mbqnTb5x\r\nPeXK5xLhfd1MRMtVydAg0RXzFMHABHnbHbencoMHdN8b5074AnEGge1VmKiT\r\nmxut3GRMTOUTIsYYGLv9zqRyoDKb4TMxtyg8QFvzm59HQCTUqCVHHH+UIzdI\r\nlT4jhcQXaZoqQDUQy+D1xJARWjv4mgwR+iCK/2IQihSmtbNB4PHrP6EwY1kf\r\nCuvrvQBu6kMzK0IR4oOZaAU9HORU5TZV26O+OrPZg0gZ9mremKy9iVeFlj8K\r\n4LX1QnC1NBc0mGJZzehMr2axJzBscT4MmrSDxp5ObMiNBp7QFQfFyPJ7aCva\r\nKF24pxiKSadF7mbrf9R6MC/7YiOGyfaMDBeS5hqeaBK2GUB7LYv/s2SylL6A\r\nA5r1Q6iZSNQnPQavZdbXTDdZHrcIorGOMqw1KoN/J3QejLXPPCMQyEPxSdeP\r\nHi8+hJBFd5ul5p8HzG2rBDMoCBqSi++QQPXettcBz0lxwkdYgQPOUCqYYCmQ\r\nuHC/Dv67Cw67kT8QrDEKyQm/BQh/ZEt0f/w=\r\n=w9IG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"994c620135276cf7948cc54b286c6c306c3ac01b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.de5224633.0","@material/base":"15.0.0-canary.de5224633.0","@material/shape":"15.0.0-canary.de5224633.0","@material/theme":"15.0.0-canary.de5224633.0","@material/ripple":"15.0.0-canary.de5224633.0","@material/animation":"15.0.0-canary.de5224633.0","@material/elevation":"15.0.0-canary.de5224633.0","@material/typography":"15.0.0-canary.de5224633.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.de5224633.0_1678406208048_0.8477975376373512","host":"s3://npm-registry-packages"}},"15.0.0-canary.8879557e6.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.8879557e6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.8879557e6.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9b5b0f05ea16819a7c57b9205ba1808775e2ef8d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.8879557e6.0.tgz","fileCount":44,"integrity":"sha512-E6nRmD3g4ZbYfCiMrQjs0MiXEQCCAuRXwqGOuy2MZtMq0y99qo8rXDx9agYnykGfOVUPMw1+9qQmYqZmF2q43w==","signatures":[{"sig":"MEYCIQDYX5gBmQOqqRD79MqcNibbNZRyMyAlFR0hoVMWa2BkeAIhAM5l8OaC8OO1DoHMlTRlTxOkILW/SsERnbPIbHZQuEKT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCzn7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo4rA/+KwR1/pRIxuXVC9iioAnq939KKcG4aTSHtu+FqoxaKbe8Kx5P\r\nu0iPlXDwUuWXEo1D5cKskaYqXK3ZyzdqWHZ8OPL522b8bQN0DFehFM/MFbkV\r\nzWmJSkXnGNAFlTMHmJV1MQqGksu4ni1TpIdbcCQ4TY0kRwJmzj1SM2xYpXeE\r\nauMUPQqMbv+lzRkcX3b860IXAFSiu4NL+ienRmOtyTBcy3Kv/JBC2bLnmseQ\r\n+qNjleLCNYjyy5BOp/Dx/Zo4NpFdLqJlpSGp0KOOEyjJaSx9Wv8b6CtO7tAi\r\n9aLwKz/L5etFkUCXR0MyJUlajkvSGC1Bn2E/ceEhxkvAdJ7Uy9mQA0xpvHI6\r\nC/EBp7P1KMRt0YyMcK0QT7ByYgAbdMdV2fPKX7EFwggeolVP+kxgFSLbP74E\r\nTbSvjdfjF25GomgfVaS0yiQ93iprwgouEfdg0u6VtN/QlNjdYOmR4zRZA8D0\r\nSAmMMdORyzXS6TVWFNcb+n3XgbPrqGjOeiZWZ9a/fQneoLx6OLFiKck0Udju\r\nPlSSRzlPOR7E1ZPEYUDixE6d97Id+blYM1F1kzwMvUoLhqVIaqJRe1XqAKsu\r\nwMT0+T1QvuO57gFHNTjnKCcbqErBHZ4gu/v4cso1KNqDAkTEq0yaBE/ZIG5O\r\nsHW985Me8v1hnQIv9cRLlBfjxCnUSXj1rSc=\r\n=Mdze\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"28f7c223e2bb4a686b970a425d14b1d1edd70546","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.8879557e6.0","@material/base":"15.0.0-canary.8879557e6.0","@material/shape":"15.0.0-canary.8879557e6.0","@material/theme":"15.0.0-canary.8879557e6.0","@material/ripple":"15.0.0-canary.8879557e6.0","@material/animation":"15.0.0-canary.8879557e6.0","@material/elevation":"15.0.0-canary.8879557e6.0","@material/typography":"15.0.0-canary.8879557e6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.8879557e6.0_1678457339450_0.056207822815776076","host":"s3://npm-registry-packages"}},"15.0.0-canary.23073a303.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.23073a303.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.23073a303.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1845e73cafe664235ff94d45a16a17c9e32d37ec","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.23073a303.0.tgz","fileCount":44,"integrity":"sha512-VJ4tzElIDTwi6S6LRn0WjLgbmztckMUlhcNGZGNAQ98h0NsD5lm5Mf+d1DXAddyqcnNV7dBgjTZZw3x+UX7+rA==","signatures":[{"sig":"MEYCIQD/kT7BWR0l4ymOEALd37f6s+N2cOrXHsw3vUmceuPINAIhAIGXWh9Vx20GcMcyNPOPvqzUosaWpyl38PYhmbZk5NFi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCzunACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqmCxAAn2IYdwiOSWzeC+gzRgx0L7LRb3bZ3Fonoj+LFIZx9SddNcRs\r\nASs93yGTbLqX5zhJ9xMbBtm8klI1s49I43rvRsEFiYdl09XqFEqWGSjb6Dfl\r\nv+bpBvThiIoxy8O+ShelvT35E3w38BegWVz4M0QDJQzw8ejqmMiECWIgQAwn\r\nI1Am8IbIpjmXJRmddSMMBH9m13UupKL2clwdC80OY2R00akGh3ZQqoWuO3go\r\nvjldLwE0+GfKsQkLfttFqYQ3NgPvMs4B1MilpBxbWQGyz95xpoyir9BJL5Vo\r\npTgzZnPe083omplboSwms+hFkO3Cw2EUf5oXUni1K65EZHL2UIHwkSW8yqGy\r\nEuIgPIDo12Ncbf+9BQWVlTgqqficzIwVY6ECvXpmClPyiUlHIeOIanFZN9Lx\r\nnZJNJScZykxJzH7QhrSxmswvZ1hMm75AUB8MHlcNhbB3+eubngESn6ahhbJn\r\nmefTtvxh256QwZrk3Kp9Wx+rvNbOeLbdqJHO2XP0nov9eNnwrV7qr/D9mvkg\r\nzsCfFEfRADg42fnkAh/6icESLgWBugZKUGgo66k2y58zRzG5fpB9lXkq75K3\r\ninVVgn+lL3kEL5/29AIpyQ/dPa6tDQlFcdlpxbaO0xoA0E+eCQItEyMFxWdA\r\nY9cAjlOXKZ4+XAp5UsxY/eTkmd00e6lwRvM=\r\n=ud+V\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2d7826e2ebf1c1fde12f47b603e66ec0df229a8f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.23073a303.0","@material/base":"15.0.0-canary.23073a303.0","@material/shape":"15.0.0-canary.23073a303.0","@material/theme":"15.0.0-canary.23073a303.0","@material/ripple":"15.0.0-canary.23073a303.0","@material/animation":"15.0.0-canary.23073a303.0","@material/elevation":"15.0.0-canary.23073a303.0","@material/typography":"15.0.0-canary.23073a303.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.23073a303.0_1678457766963_0.22650148531192227","host":"s3://npm-registry-packages"}},"15.0.0-canary.51c7d4014.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.51c7d4014.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.51c7d4014.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"094fdef0593f691ec9ab9011b8a171477a45b534","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.51c7d4014.0.tgz","fileCount":44,"integrity":"sha512-gGvNzdb3VdhTuB43EItTvm8DGQrAPT9PsqsleXwFqtNGocqUo7jweBr+teA0I0aDMW+eDOnFbCcOjgFKn8bB1Q==","signatures":[{"sig":"MEQCIEmqgyeDy7PQBfYnByjwkzadBTFCO8VxrjNEnT1Ow1dlAiAwN9jptnhPjRvPTC9lPYasBgng+53O9AcZqZ7oXkmS+w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC19fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqtVg//Xtt2Clq9R87vZThOEr/S1BFe92+75hSibW8oleKzOnzwgNnd\r\nO3ACwSvM3j5zRI6sIHR4/OMWq3pNDtGxDyfFN9RslGI27ZKfKexyivUTRPJk\r\nGYxhYxWnEKtYphootJ563XzvTsbHW0h6ciwIFkrgs/NHqKiZZBSQj5Nx78my\r\nPeNVswLxien9YUyeC/8bBq165vYG9Bv5BSE8yPuELdkvHJFktLSWyr8MFCGO\r\nwk4doMtKPwa3RhMfdEfwxk9sX6IcSGLIe5CiwqI/FeVc46Cs539gxSrcQsxE\r\nxA2sVg4uSctaDpBcicetpHkTSTip/6c/Ky6WYxT1mdp8KoRPVV72s7CRNF+r\r\nr2M2oMOXV8XTH+cXpRPP+9bJjGkVQlyTpaRvkSpxuv6tKONDBwiwlToXapTV\r\nimfg428jFK9uZ5QKSffKZUcnHuSKAAt+SmIRiK/f/jnYtx2v0r4/zzEYUS+u\r\nhcLUOUTxGC6lLFFIL/97husG1oyelUbTCagB4IVyCv+7cWfvR8MvSy1ypkua\r\ncrKQtq6QlqoewL0X9X1iauvz5ZTsqy1Hnw6bgC+Y2+lZwCYxXXQJomJSLcHr\r\nVAdvQKAZkDcsq204kMJ9UhRy+PBxsBTa+ILjmThU8mXjJJ9GllMlncnx4Oo5\r\nF5QXHehbKseEe5WqVyXsrmfbxTL+wU1fVo8=\r\n=wkuB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0485e6059d69163f12d83408c09b1d41f6cb8dba","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.51c7d4014.0","@material/base":"15.0.0-canary.51c7d4014.0","@material/shape":"15.0.0-canary.51c7d4014.0","@material/theme":"15.0.0-canary.51c7d4014.0","@material/ripple":"15.0.0-canary.51c7d4014.0","@material/animation":"15.0.0-canary.51c7d4014.0","@material/elevation":"15.0.0-canary.51c7d4014.0","@material/typography":"15.0.0-canary.51c7d4014.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.51c7d4014.0_1678466910802_0.8925685189739319","host":"s3://npm-registry-packages"}},"15.0.0-canary.1175a5be0.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.1175a5be0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.1175a5be0.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ad1882e0a6f64effc3264abe54f90d5733398176","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.1175a5be0.0.tgz","fileCount":44,"integrity":"sha512-iFlqzJJMlZwGYx13t9Qibe8GTyPJuZAfeNXlKHy1Kj09XLYxHHemdOfvHBB8ZuPDIrxSoNV7488xjUBd/m8wyA==","signatures":[{"sig":"MEQCIBt8nADCOkLnctwChKtKH0bTJyR9zrNa/wvv+XRwN2xYAiBDdNCEKb62tlcP/dI0XoTIGX0XZ+nS3FtqLdFAiszOew==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC5fBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmovZw/+Lz3joKU8WHgOAADUCsGRJa0jKAfSv6NLFxeKq7bhMgu69V0J\r\nbga/CA8umg2lK+VyZwNyYZPgCgcwUYA5dBRkPtY/hh3WxrLVLXLrB+qM9AHZ\r\niZ2ycwedscHfURNqV3qb4N4YKaQeLP/8sRppcfWSiLreTtBzhAbSirwNVbxs\r\nDp8xsFO41Yyp3/g1po5S3vjufM94OProhaAoiXVtP9GP2+gPQvj9CoRRz1Fp\r\nrp9+hEtTUb+J6PSJ+wJOoC/SmU8IfUFtN/hZ3d+EK32CbR5x1T+d5tntpz4L\r\n0HNIB+PvopAEJKG5Ghixpy5GSkM9Nw1RnlUUV+71aAn7KZvhYIIYR9cv0v3x\r\nduSjtNyJFqfYKsBVSZTxhIPZPo7aVChMzjf1ThNgK/y534u0ykswZllVJT4z\r\nJls1rBqYdkOuEd9TTJfjDQjrs7AgbdfP2G5+J5F+DGFlf7ch2EN5CUynI3Rv\r\n+cxDDm74BoSnOAiUX0VZLORH3zRSCXTy0kCnf6swLqBIlweqgbTuJHWOViAP\r\nFRMHEDmtnOchmkh7FiNmuk8qzzITX289v/EL2dz6HfcNqq6FFGXLj8if3qjs\r\n3ckUu0tdE71znycsLg2/54mtaVf2vXhZ+GS8AbZfIWmeJtt3QIeLXDE0UO4w\r\nlAaDwiorb+qmuDq8C8Y/go1GHZMdpyz5i8Y=\r\n=VCZz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1fcae3e4ba7c60c6a51ee8e61b01e26a324b1ab2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.1175a5be0.0","@material/base":"15.0.0-canary.1175a5be0.0","@material/shape":"15.0.0-canary.1175a5be0.0","@material/theme":"15.0.0-canary.1175a5be0.0","@material/ripple":"15.0.0-canary.1175a5be0.0","@material/animation":"15.0.0-canary.1175a5be0.0","@material/elevation":"15.0.0-canary.1175a5be0.0","@material/typography":"15.0.0-canary.1175a5be0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.1175a5be0.0_1678481345486_0.4559080820330821","host":"s3://npm-registry-packages"}},"15.0.0-canary.7adf3af80.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.7adf3af80.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.7adf3af80.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"560ad05a0d574eed2aed4971209d09b6727aa179","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.7adf3af80.0.tgz","fileCount":44,"integrity":"sha512-yBWZxlK1xghoTXfFSEQvrgLKKrbA6hW3q9RlV7t6CNRgOg89/kJpHHUD7Ewt7vGwMZgjL7j1sMTIdWCvzX3VKg==","signatures":[{"sig":"MEUCIBMw1aZd4LaAS2Lc2gMu8aQ4PVnaJ+UbSpdNR6J+swRxAiEA8MzERv3bJfP/MiA+6bpj6MnaMvz+CtFov3/39LZW4DQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC9irACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoc3xAAg4bfXDw4LgSdLldg+zD/SYDsXCiSJPG2QEW+5qfY0zJIw8QV\r\ncEgotvNDwHRXI4aFEjdgMuhMArx78Ms7il2/SErMh+FsWGIk2ggE/Ek0p8sD\r\nLv7NdNxTAh4ITGaGPMMfaCq2gPI/874zlOX8IuI+1UGgUcN3DeV5/f8LJR+C\r\nHZwWc2Djx+qk2uBzsbZ6HrWita4Aa2p+h9zJwFohq9kK/6xtL+oPbnCE2VKw\r\nZ83DJAtENu8cWiiyR1pp1oHICKUAulPIr4/pX2TzmmCflQcMB3i4aCWtFWZU\r\nfVE8206gH1Fh9ya/pS5AyFRXPyyBjtlt1DV1B0kFOZcuYMrmKjd22VQg2Nof\r\nVJV6yovlQ8ys+FDzd2cUSNQjXcBgIKPo0i3nsz/jWZ/5NrevynT5kdKxS1OU\r\ngMECqYr/W0IFNIpyG5UV/4H+86SZG/icFbUH1HD3EjZqOnpCxsaKJWRV0Fby\r\nq2U2iCt4v28kX/kmYIpf0vIIfObK/p1Owge6iw7bzj52TrSeWnkiWBFhXTTl\r\nDobSdrrNEQx8T4w9VbXDOC9692tf7v+JIWy+eu8BFlQPLnBMBcRIFmfQSz5E\r\nWoUW6Ejcik4Znys7caKo3WShU1a74b7JWJsLznKN+0CXwKWolihctlDSejp/\r\nXRrmrJYtqi6kaZljnljw4WatzOZOaIWHnJQ=\r\n=wGQm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"57b0835838a903c8ac3ba6c8edf79add958481d7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.7adf3af80.0","@material/base":"15.0.0-canary.7adf3af80.0","@material/shape":"15.0.0-canary.7adf3af80.0","@material/theme":"15.0.0-canary.7adf3af80.0","@material/ripple":"15.0.0-canary.7adf3af80.0","@material/animation":"15.0.0-canary.7adf3af80.0","@material/elevation":"15.0.0-canary.7adf3af80.0","@material/typography":"15.0.0-canary.7adf3af80.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.7adf3af80.0_1678497963220_0.800665947049304","host":"s3://npm-registry-packages"}},"15.0.0-canary.82554d770.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.82554d770.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.82554d770.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"67e98247b5c31892656b22ec12c541009e546c08","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.82554d770.0.tgz","fileCount":44,"integrity":"sha512-DBrkkyKJ5wdsanvyGlOG+HjLnraxarr0AyQ0jKAQxPG/IBC9OGll5cEOCe9mtTaLJlza8p692DF0vcpEtcMaIg==","signatures":[{"sig":"MEYCIQC6Pcy6rNr7C2s0gBnrxcCTRKD6UW6SIkD5rAmNgBvUJgIhALcwRk26bzMAsr1KKF9E5YHRfU622rQvKhagFYCIpTKR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC9uJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQ6hAAjalqGyEttgOHVMXPCCs3STYGVyaCGI5//bKPLGNVYiOagIum\r\nruA6KTmeaE2X1OJ9kApsF98XN4DWFQmGQXjH49LTgqdPYdxFDbKWAK75FuBa\r\nLQBzk/DFUb5BuHtSO8GjJB6JH7MiRk4PULX3Mg+aLKIaH+JtXp7QuCVXbTPa\r\np78Mjn/ouGMXokUPc3UP+E/mlkQoFH4I2qUA1eQQzNbO5TNKMOD/jyhD2oKS\r\noxxmruoLf0BXXyDXLAjfRRNev/21P4b0iDJ9WRfzDaSvOHUBImHgJUtLpBUy\r\ntx40L4qRIl/i7JuG7r8n/9oAX2XEB3tgF70TWMm4p6uq+88il5JIYfd/hfPg\r\ntapJ2KQ7Fh9n5SgM9Unk1ovzw7hJTIXlRH+MoZNS9d7ne5+SdLxLn9pUixqb\r\nvyoo7j08tvPFORUX+JzdVKRq8ose3We2yq0l1JNBf619VyvYfkHOLY0SZspR\r\n4GXdW2cbzhWliJevGO4IecR45XQmyhgz3baSOFKtAC7AKoQCgepYZehafkte\r\nY3IYywCQrf+iGuS9HJp59ZFOoXMguM0nPblNBJVrNF0NbLI3ArqfWNZhhtri\r\n1XIwjiGhBRTTgR6Wa27/dWFOupEuf0tgChJrAzFZBYjL4zwon/tZw+DCkIWG\r\n9WQVAqAMultvh0w6MbAibLkdobFlZmdBB1o=\r\n=SMfP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"500cec655918e97ee1edc3c86ebccdac24a28f56","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.82554d770.0","@material/base":"15.0.0-canary.82554d770.0","@material/shape":"15.0.0-canary.82554d770.0","@material/theme":"15.0.0-canary.82554d770.0","@material/ripple":"15.0.0-canary.82554d770.0","@material/animation":"15.0.0-canary.82554d770.0","@material/elevation":"15.0.0-canary.82554d770.0","@material/typography":"15.0.0-canary.82554d770.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.82554d770.0_1678498697678_0.528962003176251","host":"s3://npm-registry-packages"}},"15.0.0-canary.93fc524b7.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.93fc524b7.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.93fc524b7.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a94581dc772c4e9533a34af9eedb9a95e90e52f0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.93fc524b7.0.tgz","fileCount":44,"integrity":"sha512-2aik3hA+WfOxmvSQmaZ7DLkYBWCH+QFXt/ePHN9PvbiYA3qzHF81/iTiXKENDsiHOtx+cv5qzXwk7TB5fQmYDQ==","signatures":[{"sig":"MEYCIQD93v2G5q4B5HzqcSugXBSWs3vx/AU3CW+zHGiETVtN9QIhAL750cZiyxRjDhHODo3bAPvGDrREg16eCmWR8httAYcH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDuFiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmocbg/9FAh1w8GJdUsSe14qTX2CFRZco3nXaEseof2LCXpImwPermTR\r\nRqQqp3lX77GxC732i217bQlU7NW0DFsitPZIFs+RoIikbnTuW1PqPT/RSetG\r\nTIoNIWKpGJ5mvYs+/O2Px/iFtJc2zK1pHRTAwNu2AtS5bA4BJbothJ7fFhvZ\r\nwEnSFsElurft6y3uuGtFMDvUKZeBp92Z7GEE7jGlL/jEuXkt163s5vXXbDYD\r\nxVs+uxdV2YYSDG4MnYB/KOYD96dW2HrE4+DCxSYh5t5FAa8UGfN1jF8MIqVf\r\nHWWnJEplLO5quDWtQx/kWT0H5R/TkzyK4hFbZv+bdKYNRty3kL9bSKcgNzHX\r\n7RkuPfvz/JPJboc2tp5+KR7eaKjUaVDIr+7SWkBTjrr+0vsZ5qhe1wFLKwDU\r\n1wNyMAit+L93TzwtlFntTlGN4SVEBLYnnceJ/pBZOjRPKNmHoZErPs7M8sbO\r\nwufNy4AFueQyUFCEykXoFumx+gZI24yv5ZoVVQGaMIe5hjSu3sn4DwC9WcSc\r\nBMd3xXQXDkNr2Y/SMDmzKjCXL/v4mCZ/VY5Uk9QMJ+gMPYEYq6S8zp+5kDmA\r\nneSIODAJIOrrsci4JojaNeHIp2WcWKIVpm3OZXztsBV5RbXWKw6URIZE+JLY\r\nk0vq5VLrQ6KAUveC+On/6Qe2UwbXKEgOpSo=\r\n=lYZZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"338daa93529c874da1af6eeb4fafb935e014e096","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.93fc524b7.0","@material/base":"15.0.0-canary.93fc524b7.0","@material/shape":"15.0.0-canary.93fc524b7.0","@material/theme":"15.0.0-canary.93fc524b7.0","@material/ripple":"15.0.0-canary.93fc524b7.0","@material/animation":"15.0.0-canary.93fc524b7.0","@material/elevation":"15.0.0-canary.93fc524b7.0","@material/typography":"15.0.0-canary.93fc524b7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.93fc524b7.0_1678696802333_0.3730502231262949","host":"s3://npm-registry-packages"}},"15.0.0-canary.50be0fbae.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.50be0fbae.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.50be0fbae.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"65895e2b2a7f75329bc85d6831b83a421fba3700","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.50be0fbae.0.tgz","fileCount":44,"integrity":"sha512-38ukZysGZ6lMxkzfyMKHVefNlExnlfLppD/dpOnKrtcsBSOsf1I0J7eudJJ0rcjHoiq+QnA4u6wYUDyU28q5qg==","signatures":[{"sig":"MEQCIGCAhlV2CX8ZcHoU2iinReNeBaYtX4rU+uUUpEnG2vSnAiAUf8g6WbVn/kixBUqtyaSvYlzgA++04UDk5PSnc/uwwg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkD2EuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoMVw//QS6dzMKJcjd76c+YJK6Tn5OFGlToyUTl4wJzVTO5h0TJNLD5\r\n7FVr6nHDnauobH0djG2qq9QCRt6/xI0Fv3eV6yA5Yadoy1Xcsa8U1Q/eeyZ7\r\ndBv/MsrN7eyEh0d4oqhYSS3wWHn6FhQlUkzrwGssqFbpHFgn/atNuvKRfpyb\r\n0ZeXYQxgwUSa5+PJ6tD4mxdHACoHB9hbeUvZnmAQcjdEoJBINtkHK0q1bl8b\r\n6pT0A5+hMwQDodt7NNcb+VPbe4rB43osu9alUwHui7kHOlSIOpSVzIV74aO4\r\n6+QGxNQxtOEliiVKrFjpENg73oxOOeT2IrnNaOcIGqI2A90ynJ7AQTeTrO/T\r\nyie9zcqAqU9oixhIvoiNiGuIu1oR/a4ZqbhCM7KERUV0sUv0a8EEKDkxo0dv\r\nDZK1lmTSCtsMgctNoLd1q3dMSrIA6Ys0I1BexXC7UGHdPFEkUzYw+KTP0dRz\r\nUHEFBCsqaF/b2ET/FgVUijQA6t4KbeJnl5f/x3NrYMQC3xoeUJ+GPufmkF6S\r\nvUulrIN6ZraoaCAlHpofZITY747Mh5vQclU2fEGE3z/xSFeohbNQm1P7W/Vt\r\n89PKs7+JdNBhvxDXGnQb87L+z/Z7Dl+X1wczslOAy+Ial7QDNm+jvWiKhrN4\r\nhlYVXNA6msn4RgfeMZg9ZBZna5qwx8YXf2U=\r\n=jcQ0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"405d98c2882461cee8d47ab1b16a4666ccf7129c","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.50be0fbae.0","@material/base":"15.0.0-canary.50be0fbae.0","@material/shape":"15.0.0-canary.50be0fbae.0","@material/theme":"15.0.0-canary.50be0fbae.0","@material/ripple":"15.0.0-canary.50be0fbae.0","@material/animation":"15.0.0-canary.50be0fbae.0","@material/elevation":"15.0.0-canary.50be0fbae.0","@material/typography":"15.0.0-canary.50be0fbae.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.50be0fbae.0_1678729518279_0.24575376340496335","host":"s3://npm-registry-packages"}},"15.0.0-canary.6b5ffccd9.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.6b5ffccd9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.6b5ffccd9.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c7f8d9791aaf8154988e80b84be45c02dee58e96","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.6b5ffccd9.0.tgz","fileCount":44,"integrity":"sha512-Si0LUHsQCSnVZNfbs+kBkw9sninqvCk9AbY+uFnF+yMvbipB+HXocdmbQfjtjb8MJGSWNC7EIZo/FR43zck7gQ==","signatures":[{"sig":"MEQCIGNPsFATG0o2gNky9KIydDV/sSZd+XhWyecTPAtQAO0oAiAhocmY6YR1FKT5RykDG0GUi6N6slfK/84f3LLAfxgCjg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkD2H6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq71RAAmJyCKcFzfD0n+7AjYuWE6zI/Wg9QDRR9ntGc3r1HTu3bJ2Bu\r\ntNYiMNGijjKtdTkh4S5/w6/z3i45wwOxSrcUfsAXW1ZincsxzZvTh24vxE9E\r\nJyju46AdVw89borDv1ZI1YnCRjnjRV9LQ3pmOREWVDBQxphBQTHRmmexdQfi\r\nUnXVuN2LW6PD3b5dCOLou0N6ACMGPYqVGBD732gvRAwVB2UXV2hlN5kKXlQJ\r\nMIBEIGtLyBfm8Kp7kgm8XNg8tHdVfMDHV6g7RRfm/inSrGV0OkXAkLRGJOlt\r\n8RA+vJHJMVPfx2kQ3owpIdIYpvn/Pg0AHj15hY5qJNzIryBM7O2PjC2ANVT1\r\ndgjKpx6Y4bpWjEfwLY60NF82jS4lz8TxfyM75g/dGI6ANtiiq2RXntlcx5/r\r\nIknZ2QT54yzc0BNpx8U3R2lNYAelEdu01QRRw841sNm2hUOrfXqzm7SXuX27\r\nYgubYlgxBFhnj1khc8Fiz3tvNbR25HY06IeAxqQPVG6fAzc5FuoDWtgdyA0q\r\nlMZPo3vy8jQi3bRuoK27MEPKtR4UGa38ZYAfkQEb2dKgj39LOux2CovcMRAw\r\nKc5nnjU9oBhE+G/SPWYt3UQcxcHK1aShZSo8TA+/RF4zcgsRcIDhcEOWTeyC\r\nOxG4YmchbLSLCJzZUUgbai9Zt9LrJVxuLQY=\r\n=eHiJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"d30761453fd80caeae042d8999af672f9c3eaa28","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.6b5ffccd9.0","@material/base":"15.0.0-canary.6b5ffccd9.0","@material/shape":"15.0.0-canary.6b5ffccd9.0","@material/theme":"15.0.0-canary.6b5ffccd9.0","@material/ripple":"15.0.0-canary.6b5ffccd9.0","@material/animation":"15.0.0-canary.6b5ffccd9.0","@material/elevation":"15.0.0-canary.6b5ffccd9.0","@material/typography":"15.0.0-canary.6b5ffccd9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.6b5ffccd9.0_1678729721831_0.45752844818009253","host":"s3://npm-registry-packages"}},"15.0.0-canary.1c8013f4e.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.1c8013f4e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.1c8013f4e.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"88d9d03706f8903b4b8130580e6d02a613da9b01","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.1c8013f4e.0.tgz","fileCount":44,"integrity":"sha512-sMDFSsitt/sTHySLTCaZmuJNsnpHBhL/wHNPvQO7YW33j6rSs4YwvO3XWS+HXowaBP1nyXD4QOnEP73u/nRjeA==","signatures":[{"sig":"MEUCIFEcXzVxT8Tt6J66MSYcr1ZRWIAwtCAV1+VmQPWMXwYrAiEA6w4ippaZAy1J7PChrQWoWnwAjdLvnIIJ1GWOzkmUrTk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkD2WRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0Xg//UYsSOJdhixsMJsWpR8Z3ccKnW4DvqgHZB6m/tBS2qQV7Syz4\r\nQrtY107Da48iNoBnTsLGSc6HYETvqS1Zp+cCoVvo182ucygK5aI55pQ7Nlyt\r\nSIxZm3wkrbEgWr3psdqO+to3yW4E0a+uKURSxeT8o/iF1dc/2GNzmRZ4+IuP\r\nO0S1o8wj/bdWL112emZIY249iL4lqeqQWkZEKM5fu/bNBnCue1mi0cqoSbs5\r\n8r+4hsM/9XLn2Jorkujag75V4B2KvPBYvaxlANPDLRwdDMxyisZ1VY5GEi+j\r\nZC5CPcp1Lan7G7T4I+FMSJ+VNLBnd/Q/Ed8RBzq6MugllmRA0MEerqFxoP8s\r\naJJR0SF2qyYqjtvFRcr++w5n3Nd5wNJAK653bvu5eqYPGVE6nUFI2UbkYZ+M\r\nRC6J2uuOMvD1htJhqNjVlZ4q3Ww8FUOh5Gmxcv/NDbrBiOOu9bpyDV+fWEfY\r\nYya853VJpPSomciFnPj4NeqAZCbgesD31SvJMP3BAK49IybolF5f/3zFc9JM\r\n4+tx5HUrCXJG0yppqV5f74LqFE8Ms0pi7p4nJ4oi6/2WCMdIgi6hXLBeaSi1\r\n1z+Or5UQ4TQN88wJlXE/6mQe9Jjxt9dXG9sMZYn+eWzXhx8v3zQrs1vt06Uq\r\n/zWA/A6Ix4vgsL8AmxeCFUL/Xq4ZZMxXI1w=\r\n=xOci\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ce86f06ff0c2637e8cfa4965aa614efa6bb86046","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.1c8013f4e.0","@material/base":"15.0.0-canary.1c8013f4e.0","@material/shape":"15.0.0-canary.1c8013f4e.0","@material/theme":"15.0.0-canary.1c8013f4e.0","@material/ripple":"15.0.0-canary.1c8013f4e.0","@material/animation":"15.0.0-canary.1c8013f4e.0","@material/elevation":"15.0.0-canary.1c8013f4e.0","@material/typography":"15.0.0-canary.1c8013f4e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.1c8013f4e.0_1678730641326_0.5218120627705982","host":"s3://npm-registry-packages"}},"15.0.0-canary.112715df5.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.112715df5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.112715df5.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c4d73b5091eb4c5b74ba7291b1c71bfc7363f428","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.112715df5.0.tgz","fileCount":44,"integrity":"sha512-CKRfK2pg9/BNbXX3ZmK8LiqHfE/vAB7Lbq5bFZYJTBq7J9/DvHRsG3Nokxg1QlOTYkqviL2b+dRinYRRv6bS3Q==","signatures":[{"sig":"MEUCIEZfzmqxYfvVkvPPo47WRvnmiUtURBgC3tutPbIcFuGoAiEA9wqW0HNNIF6JhDX1ZQLiv8X9JrTtAnrZPDXHBghpClM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkD24WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoyZA//dWLuq5CFmiEk1p7nXcWDzyR7u/w5DSJr6ZSBhmbR3IoBbJQl\r\nWA4hFf+wbZhmxRUT3yhWkpl5Eca/NFhS3xUb8UIwm1GlpYiCOKkBI/awSWng\r\nSCQyoxMAd71/8Cyv9W8hlI+/PDekD5AX0mJsX7SaQFTfF4tNaTnQS2YNGXij\r\nUGhhSC6GPvJzg9eIt+5FcG+s/Kllgm7QpGn78PFxkfqPuKlI6aBfsZ74h2IW\r\n5YQ4XoacuOyeY/7OvQxZ8zsg2dgSukIjPnj76LcsrwUge+E2bcqmhgmQCJEc\r\n1K2QfJero2Vm4UOSokMUHyV+82Cy7CGrPoC55ycIHhtL+afWvb6IOMTDSR/W\r\nPiZAvJvkd9/gJ5pLMYExR7J83H34JVXSxzfRlaluuuV37KlzQB9XZYQiAqZX\r\nUyY9TYSCebD8tNv+39ISJZP6wca0PKnzhhdZtbyRmhzVLfKb7nWytkOZH8rT\r\nw/CEl27yRM7D5vDhjU8ndp4v+7vi/DbyJZOIoaeDmgsQScvPGHOWgYlX759m\r\nUo0/S3ztxwlLIwfF2PM0nj60QTviTE6fwJhAhtH5nUtTd2pJo4sJxjTCViNK\r\nMcd7HndW/i33IIbi+gQcLf/+kBU51Hn2cdo/YMBwMLh10u3zCP2uYVDzV1Ah\r\nrFL2VPDdbdRA+gqFiTY4DCY3VqWN3ufcxjE=\r\n=WFbO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3894873450b9dff1b92031fcd1d00ed1ec3ba9ce","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.112715df5.0","@material/base":"15.0.0-canary.112715df5.0","@material/shape":"15.0.0-canary.112715df5.0","@material/theme":"15.0.0-canary.112715df5.0","@material/ripple":"15.0.0-canary.112715df5.0","@material/animation":"15.0.0-canary.112715df5.0","@material/elevation":"15.0.0-canary.112715df5.0","@material/typography":"15.0.0-canary.112715df5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.112715df5.0_1678732822238_0.9501015360547611","host":"s3://npm-registry-packages"}},"15.0.0-canary.d250911f2.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.d250911f2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.d250911f2.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b9ff513b36c8dff7e02df4bba6e6a37714600c77","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.d250911f2.0.tgz","fileCount":44,"integrity":"sha512-BiERUlsQA57B+Tl4niD8BgL+v6d9gFTTLoa7M/NGufIVqv8YLQG9PbXpYXxImBuldsbNOTE6aDc5daXNcFL1Qw==","signatures":[{"sig":"MEYCIQCU6Pe/WMqamPJssq6wPUOzuCpfomo2rC4OE1mMIXN7zAIhAJtSMZOuYo0YaiY0GiH/KKBzEt1nWhzivOllWFmrqMtz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkD3pUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZhg/+MpNfF5a8jEkOHELenkKlx/9sNopgUnzJnC8DtuBZI7OWjFQY\r\n8jM1aCxPkH11EZ59WUqP70x8D5kwQ6YUooyp4UM9r/AQC1tZBbQV86Qd8n2u\r\nsUmS+n6pn/P3IjO/2/+kX7Hvqa5uONETEU4FmvBoPBTUz7Qzic52XM7I+3SF\r\nyFa7QiuN67l65ZexXvE0huQEmMnXo9zwXLOpUIlRJnsrigqBV3O38htBhnmQ\r\nrMfjwvGf6y4LSWVuxuRT16aaJH1dv96dq/PgP/hycgeqWUlvL9eJL9faV6Wc\r\ntvrSavYtWnhBeQWGZ/hb0V2km4Nzf6iwOC6Oo6umBLY4FVoOmPdL44vakqc8\r\nY/rpOGSWQRqQmOW+uPRynsO0U90pFqCWijriuJTcYW92KFTwnszNW4YYVkga\r\nSjgyY3X6ZbCjbj44ad3VO3mnAuPZ9eEvzsfikSF2RMN33TyMIM/nLIClLAHQ\r\nDZCO2+zKcp/YzJmDEENsJgqS39U0F0rTm+JUZXLs0IMq3mdxTFPGYi7sCbVj\r\ngiVSQh8JhIOtYvarL3vhSkk0vhRipV2r9AcXQZurVQfi/IY8j3FPrSOT6lio\r\nyF5Ldodxubj1DJFZTaXjuuNDd8wH17M0hkUT7pkjGAcUTT0nphz0qMvRV8Yo\r\n4F2VyD4bizkcatFiP5RIduMkpRGcSo/08GY=\r\n=DX9y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7b4ac246b31922fb4beb9ed168dba262e499c271","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.d250911f2.0","@material/base":"15.0.0-canary.d250911f2.0","@material/shape":"15.0.0-canary.d250911f2.0","@material/theme":"15.0.0-canary.d250911f2.0","@material/ripple":"15.0.0-canary.d250911f2.0","@material/animation":"15.0.0-canary.d250911f2.0","@material/elevation":"15.0.0-canary.d250911f2.0","@material/typography":"15.0.0-canary.d250911f2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.d250911f2.0_1678735955898_0.6615777092274888","host":"s3://npm-registry-packages"}},"15.0.0-canary.7cd925c12.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.7cd925c12.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.7cd925c12.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"09f1c4daaf49f72feca92ec5a2eb44713fce6b61","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.7cd925c12.0.tgz","fileCount":44,"integrity":"sha512-rZel5EWxwlQYumB1ixdcxLmzV/w6rSRxS2ViFQYtl9Mf4mVGt1TOiKRkxNEsNIXDltHHT5XT+S1/uKDKNT0L3A==","signatures":[{"sig":"MEQCIAizHzsld1XIb+alNWYQICyBd4dtJi7pVGSyto8WiMm4AiAb/C0XZxPGDXGO4R+GdOX8TWQlcIX/73+0AnOE9t91qA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkD3wcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1cQ/+KYNYAR6FQxrQumtvdirsWtPzrRmhB9VRnJODn5oRu6hrFSTJ\r\nasKOicRHTJdnMAoJzOFfnALO488dSp49V9+k7F8MjGeBnzIwCbgOYuSKzjuh\r\nPlBoKeAi2gyqYogLoTcW4twfuSwx9PDKG5V4KmGEVvvt1u4OBT/u073D2meb\r\n59Ah+jA6ucWk0MeDmjfhpLmTJJxONrhZrTcF31U2+2r33izz6kFRogUo7JMN\r\nnecQcpT+U/x+VUDP0O4DaiMacHEE1yIaKbEPob1xxYc+PM3Jo89rpj5pmOnh\r\nyc1JL0elyZ4xeIzr9d0Mcu1i7kFlaApgCMXGcYsRizKznE+OISLt2yU7GIwZ\r\n7aCmKAPxQMNRTwg8Cok2PvcVbCcIH/jwC5ufWAhkjb+GYna/efIGabINWfNG\r\nQMFms5TuQ3ZK7TBjL7tNvAGb2S23LiYwXiJaZ4I7MLCe9RcEuMAeUKtzHSI/\r\n12iheVT2n4EOrqmrxHvam/E8bdUU/IsTmBTm01BZfVfYdfbc+ppepVLdHH1Q\r\nNPAGHZm25FStyueGJy0GUqw92kc8oKQJvC2uRjiRA2bn05DhEnrwUrJoIJnw\r\nG1/IxJclYfEsonXJTqkTDydJnAA5JJOMbLWL7qvzydGBsiJ7qni1NAayPTgj\r\nMHadS4AOk3GNy2UvW6+kt+BAx2cEcGYUwiM=\r\n=LzPr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"96310a5c80e3e92695b6d6e2933e9b0c82e58a20","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.7cd925c12.0","@material/base":"15.0.0-canary.7cd925c12.0","@material/shape":"15.0.0-canary.7cd925c12.0","@material/theme":"15.0.0-canary.7cd925c12.0","@material/ripple":"15.0.0-canary.7cd925c12.0","@material/animation":"15.0.0-canary.7cd925c12.0","@material/elevation":"15.0.0-canary.7cd925c12.0","@material/typography":"15.0.0-canary.7cd925c12.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.7cd925c12.0_1678736412057_0.20267936388383911","host":"s3://npm-registry-packages"}},"15.0.0-canary.b2ddacf73.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.b2ddacf73.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.b2ddacf73.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8d6632fd3f949aaf5898617ec897bf2cabad5a71","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.b2ddacf73.0.tgz","fileCount":44,"integrity":"sha512-2Co/SN0+9WRubLj7ni8uAhEVMcs8orG42LSgV8Cwa1TaKaX3F6cnU7KR85d2H/x+rs4HmKlSqhbz1sbagN2TRQ==","signatures":[{"sig":"MEUCIQCRBd4q0RIj6fDi/NOMVHmbKTDdDgWfpxf2LY158c7KugIgXTLm2mlMN6AcPdG98zpjcHsdj24vkm7M51wO0whBoEE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkD30fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrv2RAAnLm4as/4iUDlJFxzHAKDuT7yeV6Esq1VoOT42/GwrrQTqzYW\r\nURqsw3w8+Z8dRmwYMN7yzqJqseW37IYGakbLNwQZYJDdwl4Fe7/UFBrQisMI\r\na03jB+gtx22QkB+Yhg+Zjd9O+kFG9r2Zj1vZWWVOpbQJ9PUKad4OER6N/Ru+\r\nNHBZ9J0aBiVbtEATerWTkvuStfafCVO252siD0MtO6Sp/TiztQNmKXb3eyxQ\r\naGCzJw2PqerBtiYMBNiDq+unlb1eQWU3dbUU2YqpumaOXujKpj96xzCAuQO0\r\nhwkOBbVsuyNEtn0HiwWDAvIpAZzGfV9uCdrY8E7VZbqTkt6xiMJrFpmfOHVD\r\nRATrlz9Rmj8YgfsWBTr1sZpOHc+U+nJ4PDojtKDs3t/xtB7c/udAv+JkfIVg\r\nxQtOgBKBlzFnisTbyHVV4ybv3aRAOGRy7sPRAUKegv1rRj1J/AyGPPSZVrMJ\r\n87dI5z4xLyjlLoXfLeDtX9v3502NstWdpIZntDiWpEehACkQXIVPAB6StlZA\r\nmqcnGqvp3TI+E5gs+a+q9G7sjWk74TTw3LzGYU0WKa1qdRngLGNYW/yqUgWL\r\na3YB+jPzDFzCWWZlSg8M3YspiyPwpSf9LAvTfH2qqZ0TXJJgGbthCwy3/Qaj\r\nigBwdYilqRhyh4MsSIM6vO2PXERKn7kLSSA=\r\n=qHK/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"860a6f0b439760b894931fa6cb354412764bd21f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.b2ddacf73.0","@material/base":"15.0.0-canary.b2ddacf73.0","@material/shape":"15.0.0-canary.b2ddacf73.0","@material/theme":"15.0.0-canary.b2ddacf73.0","@material/ripple":"15.0.0-canary.b2ddacf73.0","@material/animation":"15.0.0-canary.b2ddacf73.0","@material/elevation":"15.0.0-canary.b2ddacf73.0","@material/typography":"15.0.0-canary.b2ddacf73.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.b2ddacf73.0_1678736671448_0.4641074905915712","host":"s3://npm-registry-packages"}},"15.0.0-canary.989ae2ecc.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.989ae2ecc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.989ae2ecc.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"58e8842cfcdad8137bb85d50535c7fa0f36db6d4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.989ae2ecc.0.tgz","fileCount":44,"integrity":"sha512-iQDLci+BVvAsvpnGovN9S4AUqEggmrYJk2VCKQ97irXY0oy9mSbX+zNA3fuXgPyIKml+fpSDdXMWs9pFnHWp9A==","signatures":[{"sig":"MEQCIG8+qzsfg2VScDUCZ9s1Ckf1eT0lRM5xz8l38dIF0nz0AiAtwskdXtSP8NhdSpteS0ao6cgU/haWHl2DyvFH8Wpf8g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkD39KACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpocA/9GdmsYea15bbV9yXNtS0Rk1OMNtUhDBHf/GTYSB2YDAGvoRMF\r\nTZ1gDq35PgvCg4cQd71jY3Y30L9b0ll170v2KLm8kBN0dOO8FKMIMi4l+HaC\r\norvGAqiyt6VQLFwZq5M90vbEbeYHXzXW/DYwziGlW/mUeVWAwgZ6yN07p29p\r\n/smrcv5k3T4bh2GfgJtCasEu1UIG4ygTo2j5kBNBcueoS+sl3y+4nBfs/6Hu\r\nzUxqyAK1K7OuMG6TS8/+yX32ShskpVHCCIG+KY8xcljMtS7v1+0ouXRnmHQx\r\nMxwD2E130Epd8fDrsrkGt/Zi/f13WCMYrFTHrpXOKDdOtMuk97il1RF0+dvj\r\nO/HbUoPN6XA1d25opz0cS8yjoZ5iqYsubfmq7TS6CmU1GI5Sd1ZE2mpPGFF9\r\nxKifDgYm62GUAb+nTGnEWQdPsZuTE0mh36sxLQFq8qbiFLV8QL/7d48bg3gI\r\nW02K1YdDV62k37BNQoqcN+We87SvNs3UnZz/wHPYUAvQ5xynnKTMp6vdUqDI\r\ngvNV+T1mzyieXulg3GesMPO8r4WqTpf5fBD+QBGNXY9kgWeTjzVFQkdsNJXG\r\nbYm3+CPsstMBfOP87tT2Z+RfapDVMD07BCqoPhT8NrSDuDSyUt5nzfFVp8Gt\r\nLiD/JBcvuEUbgs4hxFDapQwQbmv94i35f50=\r\n=MD7A\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"52e0f05ff74ddff1d986b27e08df13644c056b63","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.989ae2ecc.0","@material/base":"15.0.0-canary.989ae2ecc.0","@material/shape":"15.0.0-canary.989ae2ecc.0","@material/theme":"15.0.0-canary.989ae2ecc.0","@material/ripple":"15.0.0-canary.989ae2ecc.0","@material/animation":"15.0.0-canary.989ae2ecc.0","@material/elevation":"15.0.0-canary.989ae2ecc.0","@material/typography":"15.0.0-canary.989ae2ecc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.989ae2ecc.0_1678737226697_0.8586647024432168","host":"s3://npm-registry-packages"}},"15.0.0-canary.89c66483a.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.89c66483a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.89c66483a.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2c26ee537efc798aae5b4cb8b40e75c3a6537c9a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.89c66483a.0.tgz","fileCount":44,"integrity":"sha512-GSb5AfCjnQ8TXnfZ8dYF/BEiziEdZeUWOTqmpS8C3/sZFbwpLNxsW05FMEpw1v+EzlNTaSjH3yTqmXGU2VBuww==","signatures":[{"sig":"MEUCIQCwz0GNGElh9PdgUCs4QWfE4glhnsfUgUMy2+EdMgfGYgIgCvNZ9hJAE/MHxoknYsGLT8j4JS/OdZkN4tiSjuxxCeM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkD4TbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpjIg/8Ci3iFnfJHEc+wCRwHZRNLj7udkoR/CkETAabJNs/AhHYCyDU\r\ncJ6fWClyADPnywe8Ng0yap4ccc90CaMV70KnK3xwEa1vbExlDuxMz6CapcFy\r\nYFC61YFIb41QPJeHmTNndYSg/Py70quGLpDaMYq5iYTnT3N6Q6LzxJl9WvML\r\nXMukm1oogPGr9MZhVkjBVG4mayij/hzIeTeJOcsg5x4N07doy9m7iST/Scud\r\nLAHPsfbj3kMKPvZj7WqqA7zfxaSALBUuNbSIrJ+Jf2x9qVeydviacJLLALl5\r\n26AKmq/G/mK5fkgMAE3yVm4fXP0q9jO7uLfWg7D7ihXw8osfz2VYbOLJXi3t\r\ntkgSnB7DktaKXkfP0ZKgp/O0LJkzF+lzFV8evVu6sGLuFXvCRwQ8fAKoWkK0\r\n1dhQJN8YOg95mGEN2lf8GdvqU0yKyzhC8Oo9bI5+GZr5SoGj+ZHvXW6eEyDF\r\nSGHphM3IcGrf/9Z4l+KnOvZFFb20bVi8tkeflh3wnvOugxamsuQTajmTjfrT\r\nJEVSbkRGaDGLRYhf8hZwDx01g76/hAqGu/JUD929vskgL1CZxnh18gjIYL56\r\naRVYBnwNEeB0BbiZYPIXNbKxd3qehwl4qCojpLPHU/slOLRxgkXexX9aBTR8\r\nRbI1cl9uAM1TQ9iSB8ZBQXb+zs80GEgTQ/I=\r\n=+yj7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1e255ddead4716271020e03e9b0b302eacbc4153","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.89c66483a.0","@material/base":"15.0.0-canary.89c66483a.0","@material/shape":"15.0.0-canary.89c66483a.0","@material/theme":"15.0.0-canary.89c66483a.0","@material/ripple":"15.0.0-canary.89c66483a.0","@material/animation":"15.0.0-canary.89c66483a.0","@material/elevation":"15.0.0-canary.89c66483a.0","@material/typography":"15.0.0-canary.89c66483a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.89c66483a.0_1678738650860_0.2920582867165289","host":"s3://npm-registry-packages"}},"15.0.0-canary.6a85742c2.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.6a85742c2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.6a85742c2.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bb77d9f900bf2c8776344eed8ddabe4b519279e2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.6a85742c2.0.tgz","fileCount":44,"integrity":"sha512-PW/3CID5FYey3bbGpR5UP/ZICZuizHubGWQPTk6IdfIKCeAGVuxq544WYKRHRkNxe1tk4w7THHi8TtZeix1erw==","signatures":[{"sig":"MEQCIDzW6tZPkjmxuKdexMCWpuT3V2bcHHmeYikEM2FtpvWZAiAetDF9lKEJbpEm3qa59MICD0pzCIHKyfzREBCzVLXnrw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkD+B5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFMQ//WoIAUW4jX29B2qWoXsx/oORa7CEenCpZ0BMR6P0sdDjb51rn\r\nzNffbQyU5DV/8BXiJ6Y0gUZI5Qi2nbd1HEfW9UNJistkqgKOjFArniSRJf3j\r\nxmwDGISvxmtuPh4GR64hZTyoBt+D7n6PQ50hFYZ77njzgt5RjtgLrVnC6NT2\r\nmdcy43P2Ut9QvMU/60KcmkHl39bQlERBMverRUP11vLUJoeuFbhRxpjsSN8H\r\nBUEPTs3B3BvkXI6fMKQ6e/AOBYd2AUJcFsOk2JIAqBog/Xw8NrDLS6wUou3y\r\nznFEhUkTakcwUcOSo0zjQjfQTmGrFHsccgNElI4DJI6oBCwU0ZTlKTCthAGK\r\nve0QI0rYJRbbVWF6AwC1TLWlS+5V1wrfVwe/xSEfLhmylWZsBT4BW2xFwOzK\r\nByAwJxkbWd2ormzdsQZ/mqwlLIL6uBgu7dK3fMKusDQKvfiLhWNZu7TcvUWB\r\nPHFyFXWAennuugWOhJJa+r/c8ltADbfjKZt8wBp4JYELyMLPuJTbgIyZuYcB\r\nknNSkHYW6sYs5YU3ng7Cg2J45vV2h0aXnXsmymLrHyxPtbH6Rak/L0GfEaeh\r\n9cbLQcDGcf4IFSfoLoNm+7fzQDijcz6O48w+ONpVA58At85CheoyA4a2/b39\r\nhTZMeqzllxacVeLQBuz12yuvvlQ8YwSUBwM=\r\n=L9du\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a2a15aaa59054337e585758eb160d9cab97224a2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.6a85742c2.0","@material/base":"15.0.0-canary.6a85742c2.0","@material/shape":"15.0.0-canary.6a85742c2.0","@material/theme":"15.0.0-canary.6a85742c2.0","@material/ripple":"15.0.0-canary.6a85742c2.0","@material/animation":"15.0.0-canary.6a85742c2.0","@material/elevation":"15.0.0-canary.6a85742c2.0","@material/typography":"15.0.0-canary.6a85742c2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.6a85742c2.0_1678762105361_0.20387731698491485","host":"s3://npm-registry-packages"}},"15.0.0-canary.bb6cd78d5.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.bb6cd78d5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.bb6cd78d5.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"86a92ec744f9cc92d0116aaa4efe5978fab3dd29","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.bb6cd78d5.0.tgz","fileCount":44,"integrity":"sha512-+uf1zVvIudBGgZBNVUSocHCwDyiAiW0lTm6jvhc58wCUDVxV/WNBxCuJjdR4+iijw7vd9gZkeew+wTXqI35f4w==","signatures":[{"sig":"MEQCIBX8aHVISs4ZCH9haIkZPVHUDBu8dozCIoy2Q0SlwX51AiBrjrPE8NbZk/izEgnjCVEgGFjW0OM7TLjKfg4Hn2fvqQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkELpWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpzfQ//RMQ/rxFehyUpT3YkC8ETtRTADmzImY9BDT0JzVtDL2mr/CrE\r\n3djB+LgaDCeUNikCJcJ2sgi7A7fQWKppQ0MRvT1JJykfL5FKeqXhf5zfrnBA\r\nmxMXlH7yOUbOWBiagUfhkABDuxyc8jWMkJ/KLyW0mWJl9vpWdFn9wY99b9cX\r\nqo4WBKKJX8glDUGXZzSx308TLsWopUmmf6FhdhQEldOfvwTypjEXkuOdr2B1\r\nfb5nUXlxg1czMGja8BOm5M0WJq61qzU7sKsVZieA+dEh9oK4jHpgiO0H9ur9\r\n/Hkb5KxP4Ck1tWbaQFLP21qSL1IYGSYVz/bncuej45FlgY0i0C6ta+srYljg\r\nUmylHWToD+1+2o1OW9+8wxM3ESa0pIDBS8aCR698Bq4lOORMwR4zw8Xh2iDM\r\nXqu/KrNDOA/t2pCE9VBS/PFM0WiXa7DNHJvJyYkYNV10KkXvKbd12ncQz6PM\r\nyNqSl3b608N+9le/rWO8Izi1ZyB+Q34rk51YK1qsz5bHpXyyjUHOi1JoBqN8\r\n7tzLbFnievm1OxWAi4/jyhWjz2WNsj2PvP0ynARO2qWdDjUP9LOI84Di5e40\r\n2SFmewX5Ih21WPNPTiWgsKAyV2RfJilx4W92Z+9zAIYONKtIrhR+sDcp6AgE\r\n1yBRQOiMgvf274hNd5NBKwMJi4tG5iIiaPY=\r\n=QrL4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fe016d599b297e4e276ef5b37b829b25f0607b93","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.bb6cd78d5.0","@material/base":"15.0.0-canary.bb6cd78d5.0","@material/shape":"15.0.0-canary.bb6cd78d5.0","@material/theme":"15.0.0-canary.bb6cd78d5.0","@material/ripple":"15.0.0-canary.bb6cd78d5.0","@material/animation":"15.0.0-canary.bb6cd78d5.0","@material/elevation":"15.0.0-canary.bb6cd78d5.0","@material/typography":"15.0.0-canary.bb6cd78d5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.bb6cd78d5.0_1678817878529_0.20532779351058128","host":"s3://npm-registry-packages"}},"15.0.0-canary.5f94aa37d.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.5f94aa37d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.5f94aa37d.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"f84280a14a60ec068e62adb0e9753b4364c1c9a4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.5f94aa37d.0.tgz","fileCount":44,"integrity":"sha512-6fcDBdyP9Bo+wmFqozjlbFrF4Bxb7jLv6GVFYRdjMOSrgAys8xYgqHpXuIyxdU3y6sCIllcfI2Fay28nsnJG9Q==","signatures":[{"sig":"MEUCIHXMOHB2HD3vCYSKvoHnd7ggnyeZLSQi6xsV7nX2NiojAiEA+Ke8GHuVMT9/prOKZnYH1EWB2N57I/H3JZvLZ3rX4lE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkELsbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1xQ/+J2MB/h8CG2NiCnCnX2Kuo+sVQz78rf/1Dto/NR/KKX+2Bm+v\r\n3fvDjQdZFoz2RAKuZVs5sTCAZjRgAsJKfn9+T7PvMUWuUo5cPuI6TNftTJeH\r\njE8nzhqJecI69Wr4aswU0kt9y0zRJOuXuqX0Wbj+PvR39FU0co/0Y/AOEBse\r\nJySLJiHLXJhquZ9b2zx3Gwll6zXZcuMWm9rwwdWl7zWlIFC8JX5KyB10VxY/\r\nOlB840atBJY9N2CB8GdIelPo+nXHvAuVgTr+dvw5jD7wReoKPyLD8g09/MxV\r\n09HUR4cnaLP1Dy2OUs0vukHuC8Nq7K+MLsjj6ScSpAxO9MnNMoUe747nh0cy\r\nkqsAv96mbQiquyTFWsACE9QxRYfgz31LY/wR8sxKTdRzZFziwnEI0Cfkk4xG\r\n/1jlJ0fjxYA6hXkYBv+CM17vuIV1QL3JTleo6ij6K3WTsG4hH4139lO3SGhT\r\nblf4RAGZh8MlZ95gR4Iw98zjTfB1voqGrVafOW22QlBIzCwB4d8+3Zhh10x4\r\n+MNpeqTRp8rNCMrNRqMFr0Dd/EBVVkU/0HqYReoIiORB9rC2SiQxCR92RDcz\r\nDnHv0fSfSIQ8uOYnXjUc26XHUH99xN3vRIfw2D3Zo+2uG0ezCMj9kziavCgT\r\nmDScU0S1YyxMMwBxZ49yJfxbgSrd509QuKc=\r\n=TEsn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"95db647ce856eab6b1eba2fb1794f3b0dbc3dd08","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.5f94aa37d.0","@material/base":"15.0.0-canary.5f94aa37d.0","@material/shape":"15.0.0-canary.5f94aa37d.0","@material/theme":"15.0.0-canary.5f94aa37d.0","@material/ripple":"15.0.0-canary.5f94aa37d.0","@material/animation":"15.0.0-canary.5f94aa37d.0","@material/elevation":"15.0.0-canary.5f94aa37d.0","@material/typography":"15.0.0-canary.5f94aa37d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.5f94aa37d.0_1678818074934_0.9538851240490984","host":"s3://npm-registry-packages"}},"15.0.0-canary.1bd317240.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.1bd317240.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.1bd317240.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5ee3dbffc8352c386cf0ccd0da93281cafb2bb85","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.1bd317240.0.tgz","fileCount":44,"integrity":"sha512-ac0Pfh3g7+C9ttNmbpdmEqEAJ8hRzWMmoS0RlbXlY258rzr7TwkZSU6h5MWIfZajeQFtaJdFJf7dCYlI8yHImA==","signatures":[{"sig":"MEQCIBTr2dbTEGSOyfRgFF1sBJ0dgbvphIY3pQpUmtTLBUxpAiBvqx0uG8BoYvnrLvVmAhn/qVdCyEhXlJRg9w7CIU7Lvg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkELwCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmppbA/+LRjoVz0yPm3jHCBNmzTLDH/dOepoBQphbkRMLnWe9CJkLg+V\r\n4MeONR47uFz2UQg67lreVykmGjg8OImC/aSKEvv4sp0g5exf1acJVWDrQnUW\r\n8UvXN8lmvcnOtrvrffcmKU9at2a2x2J2YxqfzsPRj7Bjvia4U50Ba/M28cU+\r\ntYKGb7qqoGWx9pJ4AqQ19bOJY6qLakSue9jP+AHxNlqxAL4JMVF6UYj98Hp5\r\nsr/+lIOdW0lXzypRw3mjGZIlGQsnpBQWZmZrlAFvV5lKKogGiEjRyYlC8Cx5\r\n6GORbbm/j8phbeIFuUpP7ecoghCKG8U8Kn1x14O0XegY7epfelf0N8RfB/3Y\r\nBG0Q92aJ+WQKvSEtj8/ZAhfjao9H27MLv1aXuWhIqT5Ni7WSZ3m6Ympz/Ns3\r\n20WTHhtNLPsb+sJtohkP3LCLAHbrsT/XFBKpqLhL2Xms9VYi24pTe43R0wHf\r\ntpUfHw8e512yfIs6omcUD134QidvURYeYnXeXe96GohddD1ixfe40t+PZecV\r\nDACDAh6JjRz6f58NOL7wyuT3WhlxLfaiir+0B6PyuUGp9MtY1bwLUANFuRKN\r\n9r3zua/x7ZcogAKIYWrpT50H3Q1UbkHb2SmUhP07OvUVSfT11mihb8qZLwoO\r\n78JGP8p+6yxXYbSYOFUbXvMqanTF8Rnh6nA=\r\n=Kt6H\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"eef3d63106c71dffbe823b04d07e86a84dfd4d42","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.1bd317240.0","@material/base":"15.0.0-canary.1bd317240.0","@material/shape":"15.0.0-canary.1bd317240.0","@material/theme":"15.0.0-canary.1bd317240.0","@material/ripple":"15.0.0-canary.1bd317240.0","@material/animation":"15.0.0-canary.1bd317240.0","@material/elevation":"15.0.0-canary.1bd317240.0","@material/typography":"15.0.0-canary.1bd317240.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.1bd317240.0_1678818306196_0.6631831476429146","host":"s3://npm-registry-packages"}},"15.0.0-canary.d441d2a2a.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.d441d2a2a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.d441d2a2a.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"bd3228fd9689a07f4e75a8ff1cc5b431db308a7e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.d441d2a2a.0.tgz","fileCount":44,"integrity":"sha512-9SZKr/owVIIJg6/XFjWMhN8vlnD/QEv2FpJUh+PLwURnHp7H9Zy1mUIhCNDD14Jtc9lhLr4jw2v1BOSXuYr5MA==","signatures":[{"sig":"MEYCIQCLwBCqppxa6McYDsnsAdyi2waspqUuM1Zgwq6tTyVrqwIhANEwvK6w35VsaHChKDfLoepG2PWKeX2a1sEJgkjY2P5v","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkELypACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrVwQ//cj7TasCdkiK44LrXMwiwq4pwnVMNPucU6SgCAQLrT1hZw4ur\r\nNElUY1YBfb44lJW7sQH9zrFx9K1kRFwKV8Kb1EW4z+agTDViuKYB22v4kD8J\r\nKOQKimL+lPC3ulOd2vunT7EzIaiOPKmcKz6d8ySqkarI79+icMJdaxefmRGl\r\nv4dZvX9vvcwPiDb4bjUZkumOKG0QknScaNlZZvUrho2hm9dWIzbDn2sis+AR\r\nNhJ6lDP91THWinYdOq0Za2MygnFsSCl5qOfNuqQ303Wvt8K1uSlim3KUt0NE\r\ndm5IsOmxG+eYIjjIwARuoJmlnsGzrRZljEd/Jt5MEBAI2XXWQnHblM8HfT/8\r\nXHz1sTNv2TGk9kx7Pm49mlUF30+++qDk94Z2QwN45JHIPtNschB6M6nJ+i/y\r\n3edtk19Eok5BxmJYRZJSN/2e2JlyK/Nn2D3BGCA25QIqbzmyse++qusOgABb\r\ngncDZFTDH39gmgqQzH4OrIQotvs0TwbLJlRCFNMTicHk92wMQ39TX8oTBq9m\r\ndbOq9CEc7s4fLLgqEpOP1v8UTDbIKhXeym25Ejf8V4VFw2Q6P8PWBLtKa/QD\r\n/lDCJAhfMzglB7a1j+UcusOvb65OABJRaDO8vnEXCJPjKPmY7dNZpuu9Kxxe\r\ni1XMcgPrd9kNwd1vlr9EPtKsJNkEXEmTbbQ=\r\n=sPE+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3a1d95c90b2fe34c5c04e44571f94badd66748b2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.d441d2a2a.0","@material/base":"15.0.0-canary.d441d2a2a.0","@material/shape":"15.0.0-canary.d441d2a2a.0","@material/theme":"15.0.0-canary.d441d2a2a.0","@material/ripple":"15.0.0-canary.d441d2a2a.0","@material/animation":"15.0.0-canary.d441d2a2a.0","@material/elevation":"15.0.0-canary.d441d2a2a.0","@material/typography":"15.0.0-canary.d441d2a2a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.d441d2a2a.0_1678818473320_0.45490817249720705","host":"s3://npm-registry-packages"}},"15.0.0-canary.fff4066c6.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.fff4066c6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.fff4066c6.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e9d70d7274db8b32a642011103728bd924c033f5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.fff4066c6.0.tgz","fileCount":44,"integrity":"sha512-bO1nSeFzwlbbkaUjSAlPHhUz7Ehx8Rv68a/RFOwep//2X3J1KpxjoFJZayYtsQp5UcY/Zi+fT5q0/qdlKmMeyQ==","signatures":[{"sig":"MEQCIGf5Tu/pH95YIGKq1gB1vdeIJzA0OqU4eWM7KEFX7/1QAiApmNPuGoFH5HI/vGlRgYuo3VxHHZlaGh/wIr+dpUDzaA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkELzOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoCoxAAj1QZ39+QrY+J8eQeJCfdKlScyWjgiMXzurph+HARrVogFAzG\r\nPMKozMQknqc1uUwuaEfZCdyE0OZeXFopefte4GG4l+mDdp7a+671448gItTq\r\nm4Mk6FPHyGxPCKLfVszClvh3e4kIB/fzcwwBArv4Xy+wXOwn93hmudx2GqtS\r\nalny0wKKNuzc18QZzyVxoar+ta1bEs4iNYleb1UPQjwDvan0EWmRHR2c0igf\r\nXv4nW3cxI1S43AV8wD6XI3ffZeXP9K9NEfD14iI7FWKl/2OJzRODaa4ad0uR\r\nC5k1vOk3prmpiAyVAh0QZLNIDjoi/JHy5nT8fVex7hgW5TlOuStY9NMi/Hvo\r\noiDh84P6JzMUQvWMxpToqmS/dImi79mKbAWGc0BwXjqigTtWBL82y5BgE6g9\r\nhP1g+zA80A2xEexdFCR+ixJWnXdgpJAV5Wac0J66hVsgMNj/8pu/9cn8unwI\r\n/oyuOoFz0twLU1duNcREN9IF/ZyXGCQUOTGaVsCZ80fxMSlFcDkUUNTr2stI\r\neU8/+LiLDWdOaRH5WqeBCCdgyJwpdihHzmcDxI4kpAE/5D+a9mMd+/kg1wCp\r\nGH2sJPxBRMsloqSTpn7IwxncaDM+NzpEAlk60brYKfNauemyMhBjLR4paaIB\r\ncaaGdH9EazIY4kkTuG+YGhrL68G0hmawCJc=\r\n=EjSx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9d24b185ab8c87061ad27f4e7791690a12e10135","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.fff4066c6.0","@material/base":"15.0.0-canary.fff4066c6.0","@material/shape":"15.0.0-canary.fff4066c6.0","@material/theme":"15.0.0-canary.fff4066c6.0","@material/ripple":"15.0.0-canary.fff4066c6.0","@material/animation":"15.0.0-canary.fff4066c6.0","@material/elevation":"15.0.0-canary.fff4066c6.0","@material/typography":"15.0.0-canary.fff4066c6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.fff4066c6.0_1678818510500_0.16389193861203433","host":"s3://npm-registry-packages"}},"15.0.0-canary.87809c710.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.87809c710.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.87809c710.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2a3776b3f4406b0862cfc159dd8ba55947ea7c24","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.87809c710.0.tgz","fileCount":44,"integrity":"sha512-tB28pOt+QQU2MQLwqVFqX9QaFdkfFuHgh91UOUmWpXtM6P3Fbn5LP2pNnE1SLRal2qT0sTl7JzoOgeBpX9zwJA==","signatures":[{"sig":"MEYCIQC/ZvkklwaWdqwKIZ8sWN648saJ9dssAYdjpPHHrpax1wIhAOqwzw4tPcTwsTXPg9j6aOY336mvPpUft4qI8GwhIDOi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEMCQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoAZA//RXeSz+5GK9N10OM0RESm48TpHg7hxmDEVPxTRUT1Td8G/grZ\r\nklKvnSQ5OU3Fv9PjL1tuWLrV4v5WMdjxJuXxiMIm3Se0St9MeB4jSEQ6lWi2\r\n9xHwrhksrAJHgowpEBsxJbVgup0bjItSV1ZfpSN8oSJ6iSjAjGXPriS1pQKw\r\numQX5OcX2RlIiLmptJe72UQ2uzWI4/b3CpxjABknSZp1bZMzjx1KIt1RVs2X\r\nHOfW0xdAvl+n5PsBySD4NFNvLsr2vPbuVkRmsRhCDCmj9cqDtMc/kgJiH9VM\r\n3iS+HzRjpgiM33Yt48xcScyiRtcHWhGQDYsx1bsSgEzi84dqENg0xZ7AMQc8\r\nc5JGR0hWVjkQx7Hdzxa6rb03hFfqC594j+vIVxZWgOpI8uzyhlOoIRNt1nDm\r\n1D/5KX4Md2EKxXq9dCSjhirkbYvG3TvoNQKUJTISw7Nf0lIHBAsJG0SiUIRF\r\nfcJDqkdUz4O0eWVc84wSHfoQpkHjv1T62PDGG2Fm6p/fr0TnPcwcp3hdhxUT\r\nBSUyEzXAgWsBq4w/dTgPaEjgMrHF9T4iQ4TCQWtrEo5pFDOrssTWdIRQA1VK\r\n/kpRc+5s/nhmwEi+9IyyGn0SeAFvMChkOFf9Lc6GbC4O/kxcBh4BarAq9LGN\r\nHe6H+MDFpoSqUChS5BgCmmP4wJoQdf3PXhE=\r\n=it/I\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ac65d4def7491c4e414883c6cab7e075c7374b4e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.87809c710.0","@material/base":"15.0.0-canary.87809c710.0","@material/shape":"15.0.0-canary.87809c710.0","@material/theme":"15.0.0-canary.87809c710.0","@material/ripple":"15.0.0-canary.87809c710.0","@material/animation":"15.0.0-canary.87809c710.0","@material/elevation":"15.0.0-canary.87809c710.0","@material/typography":"15.0.0-canary.87809c710.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.87809c710.0_1678819472050_0.323345142096763","host":"s3://npm-registry-packages"}},"15.0.0-canary.48d30012d.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.48d30012d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.48d30012d.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c1eb3be41483393ad3c3566eaaeec33b5ce6a412","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.48d30012d.0.tgz","fileCount":44,"integrity":"sha512-okNA7FJCeEzgnKkNsL73tGPZOk3DAVXFu83PpK7zW2eqYhzJHtJ5DZJ0pUI681HUYugzgTWUrAKeDPXeQmL7rw==","signatures":[{"sig":"MEYCIQDzmU/K8OMziCodaQCBBymZsjADMuAEvPZx1F64KnbutAIhAOgF1CI5LnCmIHLEMHSNfXznp/STOOHEfBRQ6KTcJ1gi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEMGTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRxg/9HyT/5d3D0jyfHkEbIU0oxkCvVXJWtN82AW3ZTx5DzKFtRNNr\r\nYRUaobgUWSmJffCWcGwCI2J85ddqOEYoYuLMr+wOpnaS0Y3URFHr7VCIQz99\r\nGHrRc/GeINNyvWhc7UlO0bL7KHcIHRYKPdS174e/VRy31YRA45ISruTgNKQM\r\n/abTLlWQjumZldsJ43T5WgwxWq9xK+RadBCtAfpGIYoydbt6swMC2PZJqBNu\r\nO9FRDfSFGc2RXl7CR+suAhQYNmJKttH9+pRi67CBNBCtDMQ9pJ0q6ZYyEPPL\r\nNRMKHjku2saIIpxRFQXMZIdwt0M/IyyiTEcEyVJArjx8vWa32j1nOQ95+yux\r\nsa46YeYNKbSo1DwCYlgqBpnlhgYHLgvMuXzco4SglE6mPFAn/3D2UoM8l5N5\r\nTOCE84ZFy7xleiHiIXewn4sgcDiAB7C64TcDiYas7Sm/IGf2zBB7s75tDGLP\r\nyO7OPqSUiRBu3GzCIFGyhC086ya7Vo8/RYLUBf3cqOisaEZBosSJ+nN0qjiW\r\nOMSJ0ttwcbb2SrONxQuqp51DRAc33dzkF3i+CYFA+P5pILMxrg6XumFNlifV\r\nCfaCtoOly5zPwqmZ+9EmKzy2v8ASXV4fxUHJgVG8L/o0l1GZwh4oQUpoYdBg\r\nx750daGYT7A5d71Jhrjg1QX9fJIEhEYw0sc=\r\n=6KAu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"f2e4b43d20ea58b52a223d31b8dcd3f813d1babf","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.48d30012d.0","@material/base":"15.0.0-canary.48d30012d.0","@material/shape":"15.0.0-canary.48d30012d.0","@material/theme":"15.0.0-canary.48d30012d.0","@material/ripple":"15.0.0-canary.48d30012d.0","@material/animation":"15.0.0-canary.48d30012d.0","@material/elevation":"15.0.0-canary.48d30012d.0","@material/typography":"15.0.0-canary.48d30012d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.48d30012d.0_1678819731089_0.6104399263273355","host":"s3://npm-registry-packages"}},"15.0.0-canary.419b23cc6.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.419b23cc6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.419b23cc6.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a13362ac7f5e959555a614f397e36727ca425ec0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.419b23cc6.0.tgz","fileCount":44,"integrity":"sha512-W87qWUabuFUbQibMZ64+QOWLekVI99iGC8aN0c+YFnhT+FvtNs3WDvnnEjFyavu5ZWJyJrKOGYemYeTecmZI5g==","signatures":[{"sig":"MEYCIQDtADMjC9lc5E+84WQStr2ShgX0tkKIkdfiX3fq0cbb5QIhALdRe+uSmb58rFv11Ah3G4h2+jBkvvW92tQbpccPxD4j","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEMQnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1pg//bgpy4t9PdAxOO56kMkOiOjyD+PSsmtkv/w81cAQDHbj/9pEi\r\nNfkLpHNbTUelKmSmAWQGXxqLBf9RIqXavXb1MuS4s4U/DpAEI9Aqtewr8GHs\r\nzLE9LcMfH2L+4/gDKCrBGEavYqr4DbrpPTlxbC8Z68ChRu+LB0F+8ek7M23u\r\nX5nnHB0KDsXba8auR++lyye0ZMZczoFdF9XpGaP9J5Fzp2ewv8SpEpqlHUsp\r\nJtxyDtXBBiHiEfhOI4pBrbm0LFZerfwD25tesf8jwSp0zPaA5DdDY1i3vhVx\r\nO+yuxGcdWoLDqSwiBf+TYtxRu/ondEX2830d9PZK60jp9QAI/pth9iiU+CwW\r\naBJHFctpdTfPyaHWPNs8Bx0bxV6V1O0M4VDwzanpvieiL4rf41PX/vEvCuyd\r\nEMbDH2F6Fw8ugbym7qucNzQxwh2EDH7zLxaRUjs8yjK3leEI6xHVvJEYXMnG\r\nurU4fR8uXbYAx2XLtEJCKw3SfWgQDb5DMXQfMdpiIc9GI6Omq9vrvX7mTS/8\r\nxw5lzR8m5XaX/noDABlUeFitOhSaaaoS0uWJVGyCHy+mIrJfZjqZXmSPiGdk\r\naMOhQftpqA8QXQ9LcYTbuv+XBamX64RfTEZ0qged3b/aQBzfW/baE0CLBn6r\r\npKn63afhZ5XwEbR5J0Plw/xI5Dl7ufU/h4U=\r\n=xAbE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3b1188210d22a02ba5ae948779bf92655e47aac3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.419b23cc6.0","@material/base":"15.0.0-canary.419b23cc6.0","@material/shape":"15.0.0-canary.419b23cc6.0","@material/theme":"15.0.0-canary.419b23cc6.0","@material/ripple":"15.0.0-canary.419b23cc6.0","@material/animation":"15.0.0-canary.419b23cc6.0","@material/elevation":"15.0.0-canary.419b23cc6.0","@material/typography":"15.0.0-canary.419b23cc6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.419b23cc6.0_1678820391478_0.5476626342892361","host":"s3://npm-registry-packages"}},"15.0.0-canary.bf86521f4.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.bf86521f4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.bf86521f4.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4affe5811dce5f8166407418b944be12f639fe1d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.bf86521f4.0.tgz","fileCount":44,"integrity":"sha512-R1xK/tHr7Mwuyq6Nlo4S3GM3NWpjBkRj8/tbedA8+0h5gmB6d7OLuDCbwxnC5rhUPIUCeWfa0K6y8CobOq7lPg==","signatures":[{"sig":"MEYCIQDz5HeQLx2+1mmMnGK4eeMl8XckNl8oGMpp1KNxe8n8DgIhANRft7ugHxx97ZOdPydt0i/laBa4q6pyU2xfORP+bhFg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEP/WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoc2w//fT1TwaZlpxDETTG/4y6r6ReMvUDLvDzPx9FIbJVFwMlQi9cJ\r\nbPuhgBpNQDNXKtHs7WJMLef2b0Bws4lhMT7MsJ0AoiKUfzFoM5/bKpiS/Wa5\r\n4abmQKI1KWiwdTgB/9tfJG6sMuPlFZnSdu42ZTdJtmAu4sjTWE5QhT4UHtac\r\nOhPP+uV3ltEVRvu5csjZFhVONGhvnKwxk5Gua6f5hcm0k02hwiGyOlXaC+ah\r\nUBbmqzASK/CJakQ3AujBog6GcCreqlKO4D9ut1GyqiG9FF9oYhrhkpiffUh/\r\nO3j+ie83dUEc67CUTcNI5tENC78gUSXxSuk2ZRb3Zb1JAhleO3ODtARMkSGC\r\nXnYuaBDLHk1oXSv5Jhlm0i0XQUA0j43USlh6eas9yvLON7oil6tr8/hUtGDE\r\nXWyhMlbje6U7a9PPGg3MndLeeLf/Y5qHgUL82FxMztE+tmbzT4NlTlRRZ1xN\r\nsV+I3Uqu32TyerIT/5HK/qDEzhlpNy7ug+sXAAhmQyrMV0F4JeMWj4TS9R+R\r\ncke6o0B52VpCEBJfebjrycYlxfdofak72rsavkbw1vCN49WeoXN7pjn0zT20\r\n+tJYGY8klJLIvQGsT6ZPW7POm0ctmQsNrR0J3d42ozFQkcpjuVEQloa+THUV\r\nmiuINbkMHw6bfD3Tc8DDiuHX1aDcx1/n24A=\r\n=0rTr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8f5c1bf1449cde9c918f51bd033762d247655b49","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.bf86521f4.0","@material/base":"15.0.0-canary.bf86521f4.0","@material/shape":"15.0.0-canary.bf86521f4.0","@material/theme":"15.0.0-canary.bf86521f4.0","@material/ripple":"15.0.0-canary.bf86521f4.0","@material/animation":"15.0.0-canary.bf86521f4.0","@material/elevation":"15.0.0-canary.bf86521f4.0","@material/typography":"15.0.0-canary.bf86521f4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.bf86521f4.0_1678835670509_0.36307578899550563","host":"s3://npm-registry-packages"}},"15.0.0-canary.11f3d280e.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.11f3d280e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.11f3d280e.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"40f766395b79be5f73eb5f1cd543e2c28838d81b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.11f3d280e.0.tgz","fileCount":44,"integrity":"sha512-yLPUllX5WcnbOwLZIdjXEmsXXSmV3MdWxznuIvDuRcMgNoaXdlaRmA5VLPx9jkU0bXQdsf0S5tI8MwKqr3jMZw==","signatures":[{"sig":"MEUCIBBh9hNo/EwI+w5mPOfCQPu6WKtNpdELRCd3Wj7zJssWAiEAjwBBplCN1p2HybsCWYCQgKBJbPP3YljSJmJibbvFkiw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEQ1nACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo18hAAmJkBO0OxzbGpevUdxSULPLuO1AoTBuNmpMzHjgqsGAAw2ra6\r\nhs6FSVhSNFI3ZIK06j75sXsSPCZZDwi45Ce1Bv1imsbSM2zdzMgSkY6nXqmG\r\nuDxO/FPRX0Qs0P2vtA8aAyC2flHclXX4MY38mqoUZan7CI8rh526etWECnYf\r\nFX0l+uuLyc6frWpjtT2EYPX/UD6OfROZuzXP/doTxhrKj8uFrEaI/FkRmfRn\r\nApCBVJF7Eac9tqBLr++hKejFTTz2R0NFQAt2Tzunby0pngLcaVDQPu7eAbmW\r\n3O7/CysWu3OFQwJB7C3WPfamP2hGqCUCsQOH0pae0FWAYU0q7WxNNsdi0O1b\r\nrWbmmt7GSaK46+Doo2nFCmbjasuqnsjRWeH+AregliUSiQPPheaGUH36svH3\r\nwMRGpZ/ROzxc48B5EHbj75QUlxwGr9rvoqJ7kV9ys1n17pQ7qzbJWOteGbGm\r\nWAImB2j6w/aqFVmGus/s1FNNB1fd4/VKSdqqQUTSWLYixfX7H9e+L0D13H3R\r\nMdnPg8fk0eoH2TuNUi7+L8TFwEugc6mNG2kEDGNC8StpQ2Rc/sDJErd11nlt\r\nZXCw1JCFBf0Cnxn5wiOfAtsF+HsBpuT2Sna7MdsQ2tJ6214VLlcJT3lgnEor\r\nr/cb6hGdA9nQyj6u0cxLNc7smXA4oxjbUjU=\r\n=Ge7G\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8e5a0971e8b535be016fdfe963b22dbcf1353e53","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.11f3d280e.0","@material/base":"15.0.0-canary.11f3d280e.0","@material/shape":"15.0.0-canary.11f3d280e.0","@material/theme":"15.0.0-canary.11f3d280e.0","@material/ripple":"15.0.0-canary.11f3d280e.0","@material/animation":"15.0.0-canary.11f3d280e.0","@material/elevation":"15.0.0-canary.11f3d280e.0","@material/typography":"15.0.0-canary.11f3d280e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.11f3d280e.0_1678839143101_0.5745312149453936","host":"s3://npm-registry-packages"}},"15.0.0-canary.b281a409a.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.b281a409a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.b281a409a.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"8a0e5ef9fc561023ddb5645cf202aeac555dca3e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.b281a409a.0.tgz","fileCount":44,"integrity":"sha512-C7aau7ZxL0vP2hPgQSJbDhOzD9cOSYEgCcannJpYtDZN3UKGlAmNOh6hg2UAxT8qxLBKgI60IYAVRmypZHqIbQ==","signatures":[{"sig":"MEQCIFBw6t9zV9rNPxP/C0P7ffzSikUrf642InkskH6TTnmrAiBKg88IOrYzE6NAQnWOJlrZaiHXAS2uMJsYqJ+2W097gQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGdBkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp79A/9Hmo1hTno6xOq9eBFFJAIcc4ckVm19ht4vYKeFOZzxHEOCjno\r\nXL9xTc1aVGGdFa8QuRAcQZ3H9KaWbFmR9SQQGHJBHX9yK/IOScdsJizhodkH\r\nJNDyKvVWuWsTusi/f7ibBoXewtln9/8BEgUir2k4UGWpNkrABaRCSlMSmVJ1\r\njBGRzlxLatY9ZvV7OvCYDRaomsPPd5Cu5GwkUK+aNBEHbJBTzJfxhxJvysDE\r\n1YzSw4kaft1fnyN+kSZIk0z8jOpvtxmjOuVEKjjpXVMquMQzc9+KsH7VplLN\r\nQ0HgLV5wCxI8/P+a70fCNdBvZsVqpDl5AZuyiTtD82lQJu8fi/ol+TXcp3L0\r\nZ6ej+Th68xIWbrcFBugYmPx3hyuGh/X9LDqt7v9KtB3Da0Ficjs63/ekXzuU\r\nKkj+gWMLVf6xm7zKLg2jMsax32JyKbv0CBJpGkW5XGDf4i9He7DrSQPwkEys\r\nKvGMvv1JEtbVECLd1AXpVZeX5MN1cLUgpqB3NV57vg2NDiQlhDjM1BMSTbNX\r\nhTigPNoYesWBHAqCZy0OTXzxHksCrUwxSRyB4g1jvJHhbc9wJwfXVTGa/4FL\r\nyw1kbM7+rbpRGjkgbHqHkkoG+n5T0uvNOYnAwgZ+wK1vsXU2/kNcma7f460A\r\nkEN2eyA4nva+ga9p1z4L3+Yslfrojuywc/o=\r\n=nyck\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b924c47aadd36bf60d7c29e466ab3899ae4085d6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.b281a409a.0","@material/base":"15.0.0-canary.b281a409a.0","@material/shape":"15.0.0-canary.b281a409a.0","@material/theme":"15.0.0-canary.b281a409a.0","@material/ripple":"15.0.0-canary.b281a409a.0","@material/animation":"15.0.0-canary.b281a409a.0","@material/elevation":"15.0.0-canary.b281a409a.0","@material/typography":"15.0.0-canary.b281a409a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.b281a409a.0_1679413348561_0.28624650135854757","host":"s3://npm-registry-packages"}},"15.0.0-canary.39e473690.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.39e473690.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.39e473690.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b447dbad12b7b916b112b6ea0ce525f74dbaf06f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.39e473690.0.tgz","fileCount":44,"integrity":"sha512-rF56E4oVuEU63T985McL5yHkkkVTjHaSpe2it1jgwk3JRiumSU7FtEigwaWQRA8GjHrQU7Ayy+juBs6xRhZSug==","signatures":[{"sig":"MEUCICsOGXl+lB76t4M93t3L+aFTOJ7gq3xdCILx1PlFrXueAiEAh4H2lzmMz0GqFNlyxhXagDkC75FtnfgBgrKYCYVvHgI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGe7jACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqgdBAAh5ojgOFv8Ojr8FeB8qT3jF1zpRoe1wflsFbhC7tgnx6cWPjZ\r\nLF9MDdIiPioq5IiM1jCJRvDohuuRx29QuCp8UBT8IBjTpo+Z/yvmfdxNtvKH\r\nUhYIB5Y3FctpJo2H5Ijsuzs1zFv2ajJf2rQ/jXP+Ylr9yU3Gda4x1w5QR6xO\r\ncb1bdV+eh/jU4eBuuaFvUnZ+Pj0nc7Nz6XjD6uC7nWghDtFL2le2rk3e/dA5\r\nSu8jXAsvDxrJ3rACtnNxc2zIc6EuWVE7NDB8FhI8hYRkZ8wlWz8/1QuOZNQi\r\nACA8rq7rs7i1xl6vtgaScTfmD3SrNKTnTGnoz9shNC1wKOVItrGiHlkJtme7\r\nFw/0kkkC/5zz+EaeqkSj37hM6b63ZXI/eijFw100iRoCdWnmcOcUdIp/JelA\r\noGfrXZXTyRwgCLyk2taCsaZ65HeJzK7GdOCIPEu7V3yG0fc8dIWYKEsW5Kde\r\nog1oiOtEg0zROtOuDld2tX7XmgYOmLvg4+b0A2KnYnz28XEieybCmlz0y2Jq\r\n1Cn2Un/VQb7hkVr+o7vtz0TzsCbFKt06NlMIgjUKl7dbk9eXGMAYLT6gKg2M\r\nWfOgu2M6LEAP03s4sSLFW1Myhvf/nP8neWZM6aOodPoXYpUaY2XHGPPWOS6+\r\nqXMdWNUrfL20DQ4u21M3aa75ZmGpQMW75D8=\r\n=ndT5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"2d372eedef7c583c60aff8d4cd51f8de971cb93d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.39e473690.0","@material/base":"15.0.0-canary.39e473690.0","@material/shape":"15.0.0-canary.39e473690.0","@material/theme":"15.0.0-canary.39e473690.0","@material/ripple":"15.0.0-canary.39e473690.0","@material/animation":"15.0.0-canary.39e473690.0","@material/elevation":"15.0.0-canary.39e473690.0","@material/typography":"15.0.0-canary.39e473690.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.39e473690.0_1679421155666_0.9518707001125195","host":"s3://npm-registry-packages"}},"15.0.0-canary.cedffb44c.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.cedffb44c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.cedffb44c.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4af93c3d47afbe33604efbfd80ce0923cf18656c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.cedffb44c.0.tgz","fileCount":44,"integrity":"sha512-CI8fps71tMUfUaPwg37za4rpcJ2aKk4G58Cnd21pPtegq87vboGiRw4x3WP482p2opU6lRxCKvU4nO2Fjv9i3A==","signatures":[{"sig":"MEYCIQCeiGCCkc6gFS44ybswmFk9Qdw0Q2zdGTSoGGRAX7nbLwIhAPBbCqdH/Fa+MuAbwbJuN/xnA+mZ2KyBkyNvvZwFWBem","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGfCGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpiRw//VsWajRlOJtLU7ET9aTUU2/j+eUVA0YwEknITczT8GOKfAmDZ\r\nMLkXxFvLUzy1GsPTpqH/chqR5Cg1V2YP9CW2De6Ez38bJgmWfB7i+2TNl7So\r\nNZ4h0xoDWA/v1hCWZcCUf5p6b92ShvVwPpmPRNya4At6z5zDktSuZsLJ+K8g\r\nlpANaTOG0+2k1HdIh98hpIhsoRG7TAO9bEjH4b3ALGoj2Cy5NdcB3VsWatwX\r\nC9wq+TpZuVIhpzgJGkBQx+y6JbK1pbNV9Ob+uTgnzXCQXPhr8s85TOaTR1I8\r\nYQ9cfL9Qtmkir1B1kBbm+OxKNMbgk6hUCAPT2JVywri3aZnfs1IWEiScZYYK\r\n/Qzu6yZH6sb82cc7tJ7Nd3WAHVpnw8bW3UVvjkknlbs8y4ds4pPPfw7fvns0\r\nrp6V1QGQ8kBVBzWJGiW5d1hKgpbjUXfQ+5AlGkaYsiP9+J6Lkh9e+KLfzs7c\r\nHEiaY048klSHt3VenzZgJM8qZ8xv7+8ddq7mpYNHWnnzdrQxV+aLTqOuuJXo\r\n6WFVquHtB9YVFUJWDz55t0ZHdJISgVvtxi7UAb1O9MNT5+qeaA0f9nLiTmJ0\r\nnOd8u/C2zXe4aTZVP4Y9i2rx+iOmhbxNmo1gdS/osl70Q7wbV+uR2yL4D933\r\n5BcCIbBuj1i9oSsOeU8WPqK13TOwFtlKCH0=\r\n=eg3d\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"37783644942291b0c5d41f7499a79b5f61bfcbfa","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.cedffb44c.0","@material/base":"15.0.0-canary.cedffb44c.0","@material/shape":"15.0.0-canary.cedffb44c.0","@material/theme":"15.0.0-canary.cedffb44c.0","@material/ripple":"15.0.0-canary.cedffb44c.0","@material/animation":"15.0.0-canary.cedffb44c.0","@material/elevation":"15.0.0-canary.cedffb44c.0","@material/typography":"15.0.0-canary.cedffb44c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.cedffb44c.0_1679421574398_0.5936924557793075","host":"s3://npm-registry-packages"}},"15.0.0-canary.36a4cba99.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.36a4cba99.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.36a4cba99.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"40b3620846d67b29c0a8c23b7e598d1ccfa895bf","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.36a4cba99.0.tgz","fileCount":44,"integrity":"sha512-fK1d4/3wuOMqXjWtL3Xfqgrs/wVjxQ2Gn3EQRNCAOsNN6Shz6ad0Wl2vGP6baFUR/soce/RSCsdho81usmkWuQ==","signatures":[{"sig":"MEYCIQCMWZBDxbYFehgsNad4e3xwMGN8HzopEO40FEp8qH+UQgIhAKDsBa3jfig3KXeWK0zreQfagKwRx8uEjPCM3h2zaNsy","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIykQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrOcBAAg0q7vVDVqL1QYawKWmhg4K5qdzTqGECdpuUX3W9Z0iHtPtGC\r\nRPfNwy1dS83sXl7NWifBGk/1yrPqQrN7Ggsm0N1FSSQdf5TYs4Sag4tlbOKC\r\nKnG70SUBGUAo9hPHq64B5rUvO/esn1TwnolqftNwMVLXARCpZ9Q2GpgCVivt\r\n/q4ox4U3lNmWH6VFpG4WIX1DQHGrxKPslcdpTity3OvAC2ff4VwzgY59TPzn\r\nSWTKJj+ZvBy03cTt+4c8uw+BDCouQbe7Uoo4SNcsoSXOlSydrn5PRyI1gngo\r\nPGF2dLtbgKB0Sr61Er7q1MkzeLgVz8h8tgIv5XoKjzj9jB0bWgeXFc2NkTuc\r\nsOt1AbBdJdtaF+QXpWhmmEihu+unGzEOHLPrBd0PfsFGDySfYXVD1iEl/Qe8\r\nuL8LZNLN/kCXlUis4A2NjW3MnhK9RKC7nis5ZQ+VasY+Z4NLk52Bxt9MtZm6\r\nQfPhGKBCeDBIgFzM1tv6negJtTyAfUkoFjgQYqTfcwtl4MHgbEViX4K7jg9f\r\nyrOqoDVYLGSpAamtdZkcfUnCmL8CtmHz+ZNSeG6MQl3J/KG6KKR8UTdmsfKK\r\noJLd7hYVc3gVE35lfJMAXVLb3BlrQ0B+glH+KlisWocGcl534sew5yOcfn/Q\r\ny4os+A1Uf/TGnKkW9jJklHp1tBxZvnAabQg=\r\n=eKv0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9895102e50a9e7eda73e0b0039246bc56c79a7bf","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.36a4cba99.0","@material/base":"15.0.0-canary.36a4cba99.0","@material/shape":"15.0.0-canary.36a4cba99.0","@material/theme":"15.0.0-canary.36a4cba99.0","@material/ripple":"15.0.0-canary.36a4cba99.0","@material/animation":"15.0.0-canary.36a4cba99.0","@material/elevation":"15.0.0-canary.36a4cba99.0","@material/typography":"15.0.0-canary.36a4cba99.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.36a4cba99.0_1680025872376_0.7164938099680775","host":"s3://npm-registry-packages"}},"15.0.0-canary.ed7e82ded.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.ed7e82ded.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.ed7e82ded.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3a4d48c256932cd30ab857f235a55a0373893ec7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.ed7e82ded.0.tgz","fileCount":44,"integrity":"sha512-lao0tX+rrYyHxsvGvh6KhoBigLNnEHECkJiLatwUUfEaiVHHPHuWMdZ3XQAsIwwipkQFV5rB6l+kNrmPp1KT7g==","signatures":[{"sig":"MEUCIQDX9Y9nwq/J/cgeE8KqDoeSfs3hOJIofMHPPDFevgTQ1wIgabHpN/bFKCPQ9A2wkvPoeAiM9CcsEHsT6uBaksvYNtQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkI0+nACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqAlg//XdhLe3Zp8sAGauMy9zs9HbDC3uVs0oM1VR+uMLZlLSHZpgxb\r\nWcp3QhFYyMmNIggWT8hScOq9kmSLalDVmC7t1oAFCUK1yWXaA0R+uwtY+JdD\r\n8fPrEVPwg/NQefKKLyOsaudjevULUtkAKpt+z+rHv+na54p9l69uhVdUBzW8\r\nr7tLiOseFmyieybCQaBDq74cyHFzKwIZeljxGJfBg9ljdg/HZiOFI5IFteXv\r\nvk39CinGnRNh1BilvxA3OFwYe3CSP9ixD4LqWG+PRH/02OjQK4BvN+G6/RLt\r\nTr3vTlVMRZB8ABWCBgbkAviKCtv4FBVHaXQQqtq5EVFZN5p3QdMq2Rb8ujsn\r\nSIoASVnjjHHpgPLCKep9QGrbHBbbifJXErhLTPULnHNz/BJHCYOi+VWz/zjN\r\noof5wTkaXrzAHvhIGJA4EUYYX7UM4rHKdbdVONfhF8ev20Oylj70pp92B1dv\r\nQiIXbmhQIzkDPRXeuiPtO9zBk0jBiusl09uewJ3HFV2xU31emwkCaGJdoz+q\r\nSVOmrvhFpPEVyx1jN5bQi31VUIKa9zsrTz7RdeDBevEGGVXDun5RUGi02ymS\r\nokPzdBR/4/XpbhyHCx31E5vrgSLd0PO2KwptY4AkCK8mNBQtx5fIh4bGGc2C\r\n6AeI/cc00J1tIBapkxFbkoquue8z4BXQMRU=\r\n=XZzg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"037c17ed14cf732acefb4bf7cb0a6c61f643b991","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.ed7e82ded.0","@material/base":"15.0.0-canary.ed7e82ded.0","@material/shape":"15.0.0-canary.ed7e82ded.0","@material/theme":"15.0.0-canary.ed7e82ded.0","@material/ripple":"15.0.0-canary.ed7e82ded.0","@material/animation":"15.0.0-canary.ed7e82ded.0","@material/elevation":"15.0.0-canary.ed7e82ded.0","@material/typography":"15.0.0-canary.ed7e82ded.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.ed7e82ded.0_1680035750869_0.41156614844448436","host":"s3://npm-registry-packages"}},"15.0.0-canary.55093ee1e.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.55093ee1e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.55093ee1e.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4cf805417a69401abfd2c0c3ca6dcdfb7840de23","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.55093ee1e.0.tgz","fileCount":44,"integrity":"sha512-HfYXc5c8/rIZ3/WaS38b0znVoOzsHH+MR1FF37+BKrmlL6JFpah8zyxDfRdPfcUamHbtK+iREvtwkG8NZnuEoQ==","signatures":[{"sig":"MEQCIAfiehO50j/IFKyMC1JuhLkx/TzwTZqFGHtKyE0XLn1XAiB2W8sMaBXsSKTLQWFMR8ZecmUqmDNkSq6lMfwyNtbcuA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJIhbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKbA/9Hjp9ohERAarIKtpsVOLrQZAbbUwwIh5smFlGuqkRkiTz71tT\r\nxKpQ6LZft+NxHywll9gUOr0v3RmGWSlUUs7wEK9pnK8Ys9Gf3YV+ow6t3Amn\r\nRZccq24Codrgwa8Z7g1xRI/SMSYJVJvSyanVvShZ9zXgzN3oo4dTzy4WIoPM\r\na6k34nRn5Nk6DwxXRUo2eECTtj6e7en6N4wgd964AMN1xSo66oTlUXWz4h8l\r\nvqYfXNmbVl2/GFQJkDVHeNzVfC7EBRUTzftocAZs6Jyf7+upA+t7LJgelhNl\r\npzsK4B5GQ+bfMdjfkk+BtoRnwAHD6bIr5Sz0QZa4Zw1oS6+a3RmhG7dxIbg6\r\n1YsTbxSVT/WLkHNIh6rvgAjS1BMz8eVQZfK18ipwcP/D71LvFSIXaVmXW9wb\r\nulXp8xTJs1Ass0P5Q5OLWxKmAr7YQZlfj50gFZEvIM3OQjxy3ZQSCJQeP70/\r\n91kCjC+FUNVZBML8dw8PBDYpgd4/sBW/tHP3s0rjQw3qKOBGAHc48aug6J9W\r\nR13JyFZ2cvIzLo4Ft5Q9nKhirbzZhF+B6JLWqZE11Ue11Wow3VgG7TRHvesk\r\nivv2ZmJQZekXtevfIhv9qA2MDtNfZpA4GB79GCVBts9WCIgEOKbi9rntPkoU\r\nJmZbu94iUvdPCAJ9L0kBIy9mLdLvtsrLCQw=\r\n=QVbx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"98de61151738b5091fc2b0e261c18efce05e87b8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.55093ee1e.0","@material/base":"15.0.0-canary.55093ee1e.0","@material/shape":"15.0.0-canary.55093ee1e.0","@material/theme":"15.0.0-canary.55093ee1e.0","@material/ripple":"15.0.0-canary.55093ee1e.0","@material/animation":"15.0.0-canary.55093ee1e.0","@material/elevation":"15.0.0-canary.55093ee1e.0","@material/typography":"15.0.0-canary.55093ee1e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.55093ee1e.0_1680115802905_0.21183797384958725","host":"s3://npm-registry-packages"}},"15.0.0-canary.0c53abc81.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.0c53abc81.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.0c53abc81.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2c2965b4b9063915654d172aa1342f5d26278427","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.0c53abc81.0.tgz","fileCount":44,"integrity":"sha512-ZJH2iX/t4pTeEgE+63oi4tEhuSpGiZHzY9+I400Qcl7tdRHt1DMD4W7GuRk1r606thu3p+ZiPOQLSz9U4GA7Lg==","signatures":[{"sig":"MEUCIDS/gDe8ha55fD1l23wPfQR6giAXE+t6HXbjQ5Pd7WttAiEA8lwLEjBad+rx8uljNXjfUj7Z3PFlj1ZWeb26w2e1KPQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkL3TwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqj9g/6AjF4Szg5BqP6OKnlJ75tsQO8BilJmRqZB/4UY3DITU6ya8uF\r\nQmy0Ph1fweE1w00C3NYfH3VVnxVSawh/CH5Hv/mIB5M5K22i187WJbh3b8Ou\r\nLqMQX8asgeuXLdatY8AVB+8ZxhV2qQ1lXvJspaniaeC2og/wg6dHNchRm+Vx\r\nkrNYddKSAIecruC057C5dkpehm2kb5rWtjylTZ0rHXSVC8qJsfolznlK2lnv\r\nahpWQbJV5jEZXC/G8woRQyTSBS1AMj4IP5fsdEnQPLCvqpCxZJk+sBvm1NP6\r\nFAEKCzAHuog/IkBJTj3hXzA8eIfxKkuL29T8Ohi8g+djLmM2stkhbqEC3ypi\r\npUB8Q2vjPQXSMtAWAvUnyfmefdsPkmX89PyHPeA7ZAtDdKrQyHnpRxFlHMZT\r\n4F/J9gVFimFdcdsjkukFOvHlfHBGid3WwTRCv3bHUbQyK4B3MwZgnCx+vhto\r\n5jVW/BP69pDQSEkh8UKqqEixlqYfQXUPg4FAh/lGFjz2VFkZoIBh4V8s36uN\r\nid4oVcz+WZLNJCM3IqJplNLUsr6hvANzzNBCITE8VQOSQo5bmGMCcyxWtzj4\r\n5IrkM+NelcU+SSvXGAWaDSwUkb1RbcvVeLh+LelU5SCMVBPioJGP0u2xjxPu\r\nsWuEcGArnQVguH5gA7vt440aSWkR3Bsa4/k=\r\n=77XO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6f7be5b2317c28dc06c5b0bf4a8cd44df591750d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.0c53abc81.0","@material/base":"15.0.0-canary.0c53abc81.0","@material/shape":"15.0.0-canary.0c53abc81.0","@material/theme":"15.0.0-canary.0c53abc81.0","@material/ripple":"15.0.0-canary.0c53abc81.0","@material/animation":"15.0.0-canary.0c53abc81.0","@material/elevation":"15.0.0-canary.0c53abc81.0","@material/typography":"15.0.0-canary.0c53abc81.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.0c53abc81.0_1680831727990_0.6193484573156087","host":"s3://npm-registry-packages"}},"15.0.0-canary.51311e69e.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.51311e69e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.51311e69e.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"eae03058c12b584b177766782859bd45ec7b3b79","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.51311e69e.0.tgz","fileCount":44,"integrity":"sha512-EpmwEuQ2Wf1tQMtRQLP5QmtPpnwjsk1CNhlnaHefCp1c7oic7m4mMhp8C5hvEGFCWFF+GS4gBZSvQK5/C2gbPA==","signatures":[{"sig":"MEYCIQClc0YqsE0nJmT6tP80cIyIVazGgTP+B1RWEgvgc8GvXQIhAJ73GYR6DjSYs4YPeI2Qi55DQBLxUQGaaNJzIj2Lx5Ka","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMFw1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo/DQ//YcLIW1OwtYDgAPKUyWLtQphfCAV+6lUWOBXJCSxeF5/cy7tP\r\nr/cz16G7Q8A7m4pjQGysZlsg+VwiELsP3idu+F/i6v+eWXKMZhsDFqM4AriN\r\nDEe56DfzBFCh7gvVqo+kB7v/6C3XR6oc2kCQCtPMJDoYWiPF9iRGfrSBRgEl\r\n61xgLzxj2PxNkpoQBY6J+WNV7IY/EfYA1FBl7UgTSywwya+1/k7NWa/CzC4e\r\njdiYJmhBjIbkcfkQEIifBdAzH9xWrK/AR6oXD1Xyi3pCE6Mt+jQ+d3hVKbRh\r\nYAxjK/0apxlfaiR02v0v1eT13MI3xAdIM4vzZcpUuyg9YtymE8t2rpo9ePue\r\nGowsP3IBPlkh/Vf05U4tq7GUnpOrUhWQ+Ip9gkh5Jl9wN2mRHsaLHam004eA\r\nxVFPDDoPm4+FmI/IM6egHgLOy/3g1BVQI/im0j7iCrdwHCuLO65jC83EK63c\r\nd2xT4hlw+S0uyL2xFYoAZOe+NaGaVrlBjGhrcDQ/L2qS6LmqOa8b498s5u5R\r\nrCBu8Pr547htw/ct+U8WUtpyfMzwgB6QL/bohPlWA6mdplguh5wNo0eQeIXc\r\nB0d4sKJwmj2yypD67IfqBn8Ylwtk3UGnK1pBu1WlHIepSI0niNSR0+Ku9m14\r\nrGl6qm+9UcDtp47/duov5ckB35kyEh1Xyk8=\r\n=C5E6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"20cdc4f9c3bc9046fb111c8b65ba3e9609585dce","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.51311e69e.0","@material/base":"15.0.0-canary.51311e69e.0","@material/shape":"15.0.0-canary.51311e69e.0","@material/theme":"15.0.0-canary.51311e69e.0","@material/ripple":"15.0.0-canary.51311e69e.0","@material/animation":"15.0.0-canary.51311e69e.0","@material/elevation":"15.0.0-canary.51311e69e.0","@material/typography":"15.0.0-canary.51311e69e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.51311e69e.0_1680890933593_0.30771922140739116","host":"s3://npm-registry-packages"}},"15.0.0-canary.113b1a38e.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.113b1a38e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.113b1a38e.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c0597110763c28012eccd3642577498b128d5d73","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.113b1a38e.0.tgz","fileCount":44,"integrity":"sha512-9FLcUknGMCqD5yaQK90PmN1IDTAypU6pnel2m2JUwi6TKzpj7Wu/gHkTuRhTCibzNvVmNb5P3+dQO1m1CWvU6w==","signatures":[{"sig":"MEYCIQC45nX2yHFKFvrqB/KPJd9HN429GuRmwxFgWBdyf12JXwIhAPOCGgFjSEcLUjmDwXrY+l/QCQ69Aiz8y0NwLVDvKxcO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNIWpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo61xAAmooJ3OvnfYdyTpa1U7Bu+mvU8EZJ5M08x2EHJP8zlpsODD1z\r\n+ITGhTbAhbqlciaLGplqSSlpq/Gw28FJjuIZl52OXnSLfhAfyd89U7oXbE6B\r\nO4FX7ZC5f9rwpFTIFj1JSpn5PUglxHHVcVNy7QLkHUeoV64jIdUIszryqEq8\r\nOQr1EBBqAIvclAKKUrDl7Dz4Fe0bcC6YCx4TCj5Yj3abdEpVITTfa0g3BLGD\r\nhCRi9Zawuw/9j7i97dOCY3ytg2RryAn/mISuzwPRsdw19q9VnsDyXkr1jcgw\r\nH+L5faQUGxFUL/jmzTu2S0Gas23Paf6cNHj9mdIPql9p2i8hepIfC37jthTN\r\nznvb721pKM/77MoSvPa9gUvVi6O0cq0ZhnpAbJ8mD+prrCYrc6NMjP5EZOAO\r\n59yE6ku//QFfo5AVQZpuwm2Ht/ii2iyFGUPz/fCwjdHr3j5/9lIJe5D2P2La\r\nnNFHzQfnTD7G9znkMpjPZZUjLvtHVSboinBylUiR6hccs/PJ+gd4A+aaW2bI\r\nGVSQZlzZCtdg0uF1Ky6cy+2rk1moFpX7oyBv9xgYMvgUI3r8OGXTuUXlhjCk\r\nSUpnwBc8CHDo8i24e79iiDJNMsNF7lvwxut3Gy0BlM5iuAQYDJdkP5HNfFpK\r\n2E2d1zXBYPCxqvJARQl4t6YhjPfxuN8/2VM=\r\n=rl80\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3613349b6481f716239e1a73c710c0d5fe44df72","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.113b1a38e.0","@material/base":"15.0.0-canary.113b1a38e.0","@material/shape":"15.0.0-canary.113b1a38e.0","@material/theme":"15.0.0-canary.113b1a38e.0","@material/ripple":"15.0.0-canary.113b1a38e.0","@material/animation":"15.0.0-canary.113b1a38e.0","@material/elevation":"15.0.0-canary.113b1a38e.0","@material/typography":"15.0.0-canary.113b1a38e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.113b1a38e.0_1681163689349_0.12738578646448118","host":"s3://npm-registry-packages"}},"15.0.0-canary.ea2191426.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.ea2191426.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.ea2191426.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"764d70c9087085f75c6a00466703b82133336e83","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.ea2191426.0.tgz","fileCount":44,"integrity":"sha512-2hHVoU63pPiKbeeagVpJW1/KKfjsA2cGvAjIAy5eVvz8opa8/0OI1O5OfkP7l5pt6HQun7HK2Wm6WOzG3LsRIA==","signatures":[{"sig":"MEYCIQCSuc/ZqOuU4Bz3ZmiJK5Tgl4go80MBJZQCMqnj74fhRQIhANPiuI7ggQQtEguzrKZZBE4SLbglyLXe2lS1LpRnlZJp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNdd2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp0+w/7BZzxiKMAKJEcd4RThhcQ0FRdpL/seb+uFDj+0ncZctHkN0fc\r\nUm2L9ywr5hPbYetb7D+j3U8aEjMLOcwZAhxY70zsCV3agn40fkFgF9g72Qyc\r\nTZ0xpsoqhIEXU650Yai3HI559nafvMTu6mYZA5ytTEwsPSUinX9qZPx+0O+8\r\n0n6szTy++6OB6VBxAAc/3gC4KvlVrcx5aHlMZ2XxDu/0+/MS7A3taxtN9J34\r\nz4L51rNOGWajxbEoGwOI27lhxvHF5udniKiUBXd4ZQ2GCaBx7am/IsVq8+LX\r\nxXnY29h9j7H7seE1D17xm/+fGgeCfsg24t0Lwtwi0SatkfwABF4zhUaQImt7\r\n9/LaHBcDzvoOAtSXfDzIdL/EDSNB/Jl8xx7Ec/oEJkkr2DOwz3HzcH6xPeSQ\r\ndKp9zUGJbY/UnKSq0dyN+PxJxwnA4dokwCc6L2Pck/bQhNkk2UXxPTcyaimW\r\n18dwBxI8OVa0r/z2Si5EbMw/VJUU16MQws/qo0AGbkR8GlBaLdlOiOOgyjcE\r\nD2M8A6fR5a9Deyo+Ga9AHIzttIJFVRWYRmZjptpZVYeMnggc56WN0KiOxHZ8\r\nEnJbW0HhxR+CBp9PBdiA1x+Yqluq2+/K1xo2vTwFf/Xr3/V3rM+cE/IJG0bK\r\nF+z+QLWJZZG+dyILaDcIem/JDO/fpSfyobc=\r\n=wCA0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8723a8c5fa13530d57b1651464ec28e9ed1d4bb2","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.ea2191426.0","@material/base":"15.0.0-canary.ea2191426.0","@material/shape":"15.0.0-canary.ea2191426.0","@material/theme":"15.0.0-canary.ea2191426.0","@material/ripple":"15.0.0-canary.ea2191426.0","@material/animation":"15.0.0-canary.ea2191426.0","@material/elevation":"15.0.0-canary.ea2191426.0","@material/typography":"15.0.0-canary.ea2191426.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.ea2191426.0_1681250166118_0.682071464225732","host":"s3://npm-registry-packages"}},"15.0.0-canary.5a5c38538.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.5a5c38538.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.5a5c38538.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0a44bb494002d7ac139f287a96258f67a6d5774a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.5a5c38538.0.tgz","fileCount":44,"integrity":"sha512-YknLgFzpNweU9wZNurCWYEb8gBT4yhNDxYYHlXRNsA4dGIFxQSOqanJSu5jOUVUmD7DWpgrJbcnnvopo3mXZ3w==","signatures":[{"sig":"MEYCIQD7ZeT+eYt0qxRoPt4r1vk1E+qbRFAU4i/fRmMPsZ6G0QIhAN6ZuNKFzOcmh6gikSEW2NcW0oa/Ggx3Sll8pp7A9Iyk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNd+4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmruHg/7Bnq7dvKTbOsoTcwONYigv0xThCB7XdJ2YMrX5k3w2VtrPJAu\r\nlwO1QLwjCvsw9X0yZ0qf3Rbbuqhz9A3/LmrOof//0TlVrK0srrqXEJ3ZY2P0\r\nu425SW97lsrMmB+Xb6PBDxzjlXZJ9bf+UqVA9Shx9dTkvjPOKZ7dYmS3tGhS\r\nCtYeOuxG6TsLD2SSxFJ9KMKKQ/dYnpiU5pZJVJRsNEhaSmozbjir4Ky3PxE6\r\na9tCqD+OuskgKSWwhsiUJDMzYBqXOQ6mfgrDUDgRNR6omEwmBl430HdgnxA8\r\nWHk/0x51/C0rmt63JnQxeBTA6SKer+rZ16rb8r64R79pMaG8kxLv9pF7Mwsd\r\n/he6XMNb/K4ovnPweo7R2p3eYr5uEXGlrcBGXt82B1wRFEDSj9rLr5PhUBk/\r\nZMX1GK9P6kebZqrPMJzneEFaTGvswKwM5UxhVRHcnPdxZatxOFNtpt4rOlFj\r\nomJW6GAqBnQrrXNkDxAxsjpE6KQ+j7iqkrmjOadqPJebPyta+3gfy0FJKpAm\r\n89k+gMBw/jzwy8z70rQCN+uaGprlEX48aCcraUGy38x0EcHXjHZP36ljiVbr\r\nPvqUP8fKVaXBU102fBg2hizcmqxD7iftwxqdx56qzcYizlZefGanNTUg/1G5\r\neE6trE5JfQwqCfTU0OZ7GQtUBgem7Z26CDE=\r\n=+669\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b05f00c0040fd0d1250297d4fa4236a5b6b00b9a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.5a5c38538.0","@material/base":"15.0.0-canary.5a5c38538.0","@material/shape":"15.0.0-canary.5a5c38538.0","@material/theme":"15.0.0-canary.5a5c38538.0","@material/ripple":"15.0.0-canary.5a5c38538.0","@material/animation":"15.0.0-canary.5a5c38538.0","@material/elevation":"15.0.0-canary.5a5c38538.0","@material/typography":"15.0.0-canary.5a5c38538.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.5a5c38538.0_1681252280023_0.19424337299571914","host":"s3://npm-registry-packages"}},"15.0.0-canary.e4b5ea7eb.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.e4b5ea7eb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.e4b5ea7eb.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0e67c1f7ca27af88f8afad98da013351c0e0e260","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.e4b5ea7eb.0.tgz","fileCount":44,"integrity":"sha512-j7ohmvM2O1rwTURx7yPgFEcN9e+IFlEG90PZwltqBCXqDbs0TuVi7Zw+TiUJVDN1ADY5MgNvcm95Umk/fyyN/w==","signatures":[{"sig":"MEUCIQDx7t94ruEfaX6XItNHN3aMW4vs+6y2vfjZhzFmgv8NrwIgNLvMwcGHsJ3cQBmm/HAg2UztIhSHOLulQTxI9nyEgu4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNee8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqWmg//ZXuN/YVL9HUcp320sqFZq8ht36/LoCvSxxPPF3HtZkIlPPFg\r\nBaCAjjNxpSGIfWsvuW1qdA7EBwssJNy6I2FBEok63O6ZGaoRcKkMli+Z0DFp\r\nyQQuEbZi943erQ2YIu6TCb3+hmMgSyElLWmT3g8CzNYsg9T3e3S7ozLe3AqO\r\nQvU3lmd6hkV6cif4QG87SI0LQy9Ro/jPEPdemiD2A910DCwQp6J+KmCcdtPZ\r\n5dnU4XLPujki6iUDJ4Tp+kXek2N0MR5KrZ5/L6ro1LZuixPtE6MK4bolgD84\r\nMgsP+IbR8qvrYToSx7VFTbHVxjwy83bP+d9n++EAS/tT0MNGeuU1qKiBQMRl\r\nQRUiizHHhk7NAUTU1DmvweqhikszyuKOkW7Ohbyy2z3TxRARwGW/gR7sBHBE\r\nhVPUkzoFdctrwj6/fO7sJvHtus0t1B+0hC0VYG7PWUp55Hcp/q/Dzch1GxNb\r\nA8bb2XOqDnfp/C78x3I0t4VsI/Kj8B2rBcxf63YKiHRU01uREPX34WcwRUkT\r\noBZ3+J3Q455epcmhgwDU5SskrZ8/v7p73Zk/jSz8kdlxmI/goa2E5yBUxXz0\r\nfMhMHlyJCxs1c7l59tUSDzTSbYZwGjIhAmVZfIAX2B6N655T83dkAbwDpzNQ\r\n7s6I/+h6FlsQk7ifDZ50qTJhoPfe+pkGxuA=\r\n=gjsu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cfe1a97277f39a7f96340673857504470245556e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.e4b5ea7eb.0","@material/base":"15.0.0-canary.e4b5ea7eb.0","@material/shape":"15.0.0-canary.e4b5ea7eb.0","@material/theme":"15.0.0-canary.e4b5ea7eb.0","@material/ripple":"15.0.0-canary.e4b5ea7eb.0","@material/animation":"15.0.0-canary.e4b5ea7eb.0","@material/elevation":"15.0.0-canary.e4b5ea7eb.0","@material/typography":"15.0.0-canary.e4b5ea7eb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.e4b5ea7eb.0_1681254331791_0.6851824263375954","host":"s3://npm-registry-packages"}},"15.0.0-canary.a094dd9c1.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a094dd9c1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a094dd9c1.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"424bdea455ffc0668249a72df89be752dffa9719","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a094dd9c1.0.tgz","fileCount":44,"integrity":"sha512-Oiq1/EFLjA+ARQr+kEEGxbhawyi0Mj/SSCCzMjYSCKihfZRIaachKkN1H3PwUlD/gun5cCgcYkSjVsdbpRfWTA==","signatures":[{"sig":"MEYCIQD8UqLKdaUfOqkH3moxlm+gsRsiGG/hWt6UozVBQG8VAQIhAJ1jMudDH4kWiYiY4VSzfcnu1swTR2iWnWJDPmrcqNHa","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOdcTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrxeRAAktSqZ52xB4opnyeXNVMvnh8MPM3R+D3ZncoxDp4bkWGYa1N5\r\nwR1NwaI/j5XzWVMShO6G+HdZIhbmJ1Q1XJBYAIGlqShNT5l2E6IoZkCs/UbL\r\nVN0NUU0LW+zCfwU+Qxs5hNqy4bs28zE48hYJSLeTm+9iQNgp72zVpGg2hpey\r\nYFr36HTUZg9QX9pr1yLNnwTRBQWurNG75TnTkKwPNtichr3OnKtMXl/X0Ok4\r\nDA36kpe37wD2liTR37MsQM90dKsKVS65hC9+v44vJR1qpmZPPTO8hJcDZ8mF\r\nIjeGf7Iw2NhEQdqY69+pDjSLcRfmoaDGQA2MvaSQ9nM3KWMc4zQgKSaYZApg\r\neuUNVsP0No+O7FEXzVu+BB1yNRdwMM61jpfy3ZKYovFF8xRddqS6vd8HiB2y\r\nFROB7rX9shhl3foOGu5bxx+gl3EsIt+8xyiMSP6dTpIUyCWdunLzhs8wYjZV\r\np5rW3N/pLdqEWD7u9ShF6+2xXxef/she9lpOGQd2rrmLIzpDj8thaFQg2pGz\r\n4mwRN6scO86gK4WSYZzhHphzn3EmgSSRsr+LMjFnAVSk1W0Qsa/pq+UIhbJV\r\nlApr4M3jsez1j5xYDsBZx/YkoXEizR6qzYAFnio6DdbQGVC7X+uFxixgpbxT\r\nlxUNITxkFNCm7j5wgLZ/qahT/w+ay9pChR0=\r\n=Ldwp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"aa5164e66f4afe6547ceeadc8a793bb4f489ff5f","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a094dd9c1.0","@material/base":"15.0.0-canary.a094dd9c1.0","@material/shape":"15.0.0-canary.a094dd9c1.0","@material/theme":"15.0.0-canary.a094dd9c1.0","@material/ripple":"15.0.0-canary.a094dd9c1.0","@material/animation":"15.0.0-canary.a094dd9c1.0","@material/elevation":"15.0.0-canary.a094dd9c1.0","@material/typography":"15.0.0-canary.a094dd9c1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a094dd9c1.0_1681512211099_0.15985968325167255","host":"s3://npm-registry-packages"}},"15.0.0-canary.f771b091c.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.f771b091c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.f771b091c.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"448ddf3b1315911c958d60ed6d16a54f632b6f68","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.f771b091c.0.tgz","fileCount":44,"integrity":"sha512-3LS4PZpF6/lOFXO1EKG/wYAqY9HQH4wFxxv592bdHdz+KWhQbPimRYVA3jT+oekGmxW4VDvsd5RqEBcZUcyucQ==","signatures":[{"sig":"MEQCIEh2undpVxnDXs+psAkHOKRpnNTjepMbuMtRoS6jjuwNAiArA67MswEwaBJdpEGYA38PBwYE0yyssLwefgS9N0e3bg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPWgwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo9IxAAhz9t5x5F89VEEtzdDb4Xg0gy/OzW3KjktZrF4h43ZCoXIWI8\r\nTi2wzWz75EtAzwlW6iNegSp2TzEYkKqKuYRe95VXQ076bL6cMJgij9eu7zfn\r\n64ED70JlrY0RZ5IERrlChdtODo1HDzqrxTap5SyJyQFvC2dzAxwCBuN0hxJV\r\nz5YvHt1vHPHfHBaaAk0E/1eWgrW0Xipvr1MQlctpSHQxOn7i9AWRcD6Z/4z0\r\npKA+/SmpwWJcUNk0gcUlcdUNtFChhmeQsdo4PCX1Cnk2D6ZNJwc9PO3FthV5\r\nf5XZ5iqwhC11YDNv76CiC4S+oE3R5Hzs2yIBn5eynNaSIqZ77gijblRQ65Kj\r\nPhAJnIyUboO/mxi3uFzpxM6r/00xwuh95uUx71Dz2cnobZ+dlgIWybQ0/zlb\r\nMRDRhPbLzmBL25s8YLKKWxrg/XHqBaiZC0fmSqT4zjUSaO7nVhnsBm8WUuMO\r\nEI90QfGsn+CDzOpaofJ7L0+IVYOvSpQrXpMyG9d+wT7sH3YVRURzn9wPwyNz\r\noAxookgk+H4VCYMkVdo+yVqYGlG3ESGcMQKhCbP/fjakVpuGb0ZBw4GoqQX2\r\n+cufjPdY6gIniYpeDq8rE2mjBSN33c4ZtBz4LLDbM1cuRN9MsyW6We8UkuKp\r\nwQFGNK08ONCoyEwo4LRDAhZXQrJGr2fH6ig=\r\n=6FCW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"de0e292c8ebcab887041fc4a59b3c0172f4d4310","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.f771b091c.0","@material/base":"15.0.0-canary.f771b091c.0","@material/shape":"15.0.0-canary.f771b091c.0","@material/theme":"15.0.0-canary.f771b091c.0","@material/ripple":"15.0.0-canary.f771b091c.0","@material/animation":"15.0.0-canary.f771b091c.0","@material/elevation":"15.0.0-canary.f771b091c.0","@material/typography":"15.0.0-canary.f771b091c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.f771b091c.0_1681745968141_0.33573720611682645","host":"s3://npm-registry-packages"}},"15.0.0-canary.79b1b612b.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.79b1b612b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.79b1b612b.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a75978f64ecc68d972c26dd3b51b40b80948fbd8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.79b1b612b.0.tgz","fileCount":44,"integrity":"sha512-eWbb+CypnQfQ4Vce7PrhjEbB4zXnAaOeEfzcC+9+3XqKHQKubeUBrImCbYpAfBuYkMPqHKLioBAeLyaOMWLz/Q==","signatures":[{"sig":"MEUCIQCDftE7TUHIwOFn8K+RQO1H2sVIkPctrEu2RfMTlr7kdgIgM0uzmqZJoJjzNz5Ix8LrzUFSOrXSt8XF26lyHW8uU3s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQHv2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrC5xAAnG+vllGP2zp+F9lLq8pDTM8u+zgrY6ikc58spZQObBY2HAOp\r\n4bm+Ox+DgT3kR/9hUAjtc/1wtaCtiR6EBZNyH5s4TwbzmDrIJaIKjyTl8qrp\r\n47IQYRF5dDD7dPykXKS/6rNdEuugfJLgLhNm+d+SvoiZ9TwWAChwKasgyNQB\r\naw1aJVjfiTDbLIdr26HiTPIP6vXZUe64WExuKxKrXZfoHD9Yf2JeFshxepdR\r\n6H1IKPOTYZwd3a02Q0dF8HrACxqYy/eSudayMCEWi1NyNQ9QUqe4mCaxYdHb\r\nWL3trtZo1eqbp/vx2tbH3+ffgyZK6n1WKbX6AEZx36Is73/p7TRrVV/KB6vO\r\nPuUApbX3jdbI+Osm+r4qkqWykgE1ts4jmpy9EKkb+Sy4kulefx18WPqU0ZxL\r\nj/3YBIYPr1IuC38tAXkx1ZpMJf9c7lcTgtb2t3nb3m5uvnny4utHQfA+HgYW\r\nGwg0GeucH0YzKpMDQ4a4rxICPwJo/FzzRbX3jVbbdrV9lYDb1sQvtzUJZKEI\r\nkpo6pGn1qmBDeTbFM09XW/agSPWE7RWNU0cwebC46svHa1zvzOenMN4IYnP1\r\ningnOGgAdvOdZmOVZbg0wfIxl1JEqGWELBelXbGzOr52QaWmd2C6kbemELND\r\n+O+845bmZxraQlA4aOeuTXDBv6KV4kTiQCI=\r\n=QqCs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c8248a1b49ee37b1782b19aaa49b5626c914916a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.79b1b612b.0","@material/base":"15.0.0-canary.79b1b612b.0","@material/shape":"15.0.0-canary.79b1b612b.0","@material/theme":"15.0.0-canary.79b1b612b.0","@material/ripple":"15.0.0-canary.79b1b612b.0","@material/animation":"15.0.0-canary.79b1b612b.0","@material/elevation":"15.0.0-canary.79b1b612b.0","@material/typography":"15.0.0-canary.79b1b612b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.79b1b612b.0_1681947637892_0.155336189247119","host":"s3://npm-registry-packages"}},"15.0.0-canary.6f50071e5.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.6f50071e5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.6f50071e5.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fd3d686e7e340cdcbea9ec5ae9589d00cc71c09f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.6f50071e5.0.tgz","fileCount":44,"integrity":"sha512-wRt1++pB+6Cm16wnd+XvuDLTAGEzch7XkwILeDmPXcwjICe82YGde92X2oyVqxYUX/oVvEXIl/UZUej0OkrtJw==","signatures":[{"sig":"MEUCIQDSL4U5t1x0xmWVNyeJfP0XuorZH99OOENe2ceTCshtxAIgTP65LjdCYfHeCuoQoXOpZhXjaXVl9grq73Z9R+nwdH4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQX32ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr8WA/9Gm0aKA+dWz7KMKlmiXYunrDtZ+eg09PvIH36Vg56+5SjzX92\r\nm8X+Mmt7xz9IIQvOGeHRu/n+Ac1LaCjG/QQPrsOZMnnSeHfnWr7mGRRvr3OG\r\nLlLff3iGDJM30yW5KUrIN93VYgIdU6YBUyPM1A3Y2q+dS6rFGP4vhVFAEKKD\r\nhR+Ys2Vu5xjKnmbvkSeh+0dmY9sdsvVSEOwDNGc/zZ+3A/XUKUgaeOQC3Fnp\r\nlDuO3xQVVZm9b2ieRc3zUGWI0deO/sLiohNbDrA1MI0SSV5zFqhaWOgYziPB\r\nBfrx+sGIH98fXPQmiSUJ4PbBGHlUUgc2BsC6Y2DgLI4ko+2pmC1Jf6vfmxv3\r\n44dusx+X22aAPmQb3r5PxIGxgycarSFGe6+34GUYpilZj64wTOJynkaMdsS8\r\n9tPVZnIUV2KM/x1LqWMwQKl1lg5nYFBj3DAycJ67od95Jrb1coVFd6SBceDA\r\nmUMNXyb2RwggcwDhY1L8qaWoxPF5L+bEebuq9jaTeFMgNv4OXhfRXFca36Mx\r\nvpfLDbBPsNIuBL4SspKaGTZvvlGGNlndjBVL+9STSzjRRO5stizwPztFNWKO\r\n+WKz8XBV2TDiE6OsyOBq8IbkoM8YGkfBxnpgSrh4HozSPEuQ9zeugKGb0wUe\r\nTEXhOvy/Iv28XpLlQZyc9kWQ2K8CxWbR1AQ=\r\n=Gm1Y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0a5eb7e7a96b7f207546983c0f79d6fdf23f5228","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.6f50071e5.0","@material/base":"15.0.0-canary.6f50071e5.0","@material/shape":"15.0.0-canary.6f50071e5.0","@material/theme":"15.0.0-canary.6f50071e5.0","@material/ripple":"15.0.0-canary.6f50071e5.0","@material/animation":"15.0.0-canary.6f50071e5.0","@material/elevation":"15.0.0-canary.6f50071e5.0","@material/typography":"15.0.0-canary.6f50071e5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.6f50071e5.0_1682013686145_0.772888954016022","host":"s3://npm-registry-packages"}},"15.0.0-canary.ef754381c.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.ef754381c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.ef754381c.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c36a140c81ae986680c8593646917654a39b2592","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.ef754381c.0.tgz","fileCount":44,"integrity":"sha512-eswXsMfph0+/nZS/pzONkS9BKJpe35yElAaC8CzxugLmy+dafNRLmmAQGYT7PUWutkooXDbGXZ78/3qk8iustQ==","signatures":[{"sig":"MEUCIQDgNnA+ec6ByknS3LVtfhLvl1hLuL6wY8m5r0Hv/V/jBwIgPvGKdf4LS/LCXmeM6BXwGvjvEsx/YsvsAgidpfGC22U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRuvuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmouaQ//aEOd+sXyh1QjzjlqCnKxKXnh5fxazupdOry6dfztnQ9bulSs\r\nS6zbpmqrAd9F72kctfUyPB0848PR1mG0eaAjLV6BlgiVNXA2MWlf47A2+kKA\r\ng96RiRQqmmuee8mp5ur8/JUUHdlO0zTkRV6rTsdwqcBNOkzceJY58CdwBFy9\r\nxMJppA6529GEqD0KLFifnqpC481nMqGTuLG/VaL3wQ7jmRt0Qmq5kAgPyJby\r\nPmEzb+FA4KNDzo8IbyJ7J2AqenuMGYUBrCrZmMn0dVMehEyp33zjmJ1rnnNr\r\n6MbhbsE4Fz5rRDh2/tWMYBLzemZxJYntcWUgA9JFW6Pw8u0PGN/9H9t54r64\r\nDfjK7seUs3ipUPpFRVhWcOZgEVZqw4lC5wOJbRU/5gS10ieMW7VE87Jjyfa7\r\nF5DKxThnW3JJegs9d3H7xLCF6TXbAIxhI0bdTZUeyVZePCQTLcjfS67Kg6mc\r\n20aTbontXDuuZtGITvBmOfjfc2EeQeyHoOCYskYTxBSO0sbxSTLoPlp3+Kg7\r\nbLdbYE9QaamfLcVhwxrthFMjen9MHpzRX0WeXV84w4n5pk6qe/YP9Fcpesn1\r\n5dJPtuCRNH4Zu9rNh4eED1d5zdbyCDx4nci4MqxXXu2P2nLrNg9VpV/Y4WGX\r\n3LVwkSjJvYZ8OUddZ+yV8Szk2MakNqoUAdc=\r\n=JZvK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"998bb9432e40056ce6ec836100d9a46f72ace249","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.ef754381c.0","@material/base":"15.0.0-canary.ef754381c.0","@material/shape":"15.0.0-canary.ef754381c.0","@material/theme":"15.0.0-canary.ef754381c.0","@material/ripple":"15.0.0-canary.ef754381c.0","@material/animation":"15.0.0-canary.ef754381c.0","@material/elevation":"15.0.0-canary.ef754381c.0","@material/typography":"15.0.0-canary.ef754381c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.ef754381c.0_1682369518438_0.5049741142697974","host":"s3://npm-registry-packages"}},"15.0.0-canary.69ebf61ea.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.69ebf61ea.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.69ebf61ea.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1d0416a4b4d841a4d9d42df9b8803c4f8717dab6","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.69ebf61ea.0.tgz","fileCount":44,"integrity":"sha512-6WoChLWMKLsQX1wsJj/I6Xpbe1dFb/can/xFNvR4IA3MgxJkMPZre3xZaCDn/D98xfjsM8ptxsqJFCIFa/NlFg==","signatures":[{"sig":"MEUCIQD7oyf+aHcRfSl1S87IxAa7BKDh+nslwHosWeg0e1JxhQIgCVVcsdqkXVoklhYdzjzDbaFzYfm39FVG4nmsPb6dA40=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSq9eACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqxOA//QrbRIImiwXhKJLdkcqAjvJ5+DowHNBOtuq9WxNtMxNFGgyI+\r\nrPmc5ZADWXhrgOlkV/mauwwwkc/Zi5ZYn2Ipv4zY5j+VWlSuIhnP53W+ChMN\r\nLRsz3W2HmzW4JsSbqj/KXSDCmvRuSghzhTKAF0Xv8++ZNgrOgHSuFB/vYgIH\r\nY2rVrx41rdpNOXPHCaO8mIdlyiG0RhGoor+YKReifelxNksTJvHgLOPvQY0b\r\nBh/xHbn8Rth8O7+DI4+CCBFVUtXcEvOfIvZfWcGCy/l1zjGwClbe9NL5QTfN\r\nk1TPsbwIL8PkcAI47GZXY0/GHxEy4GvhK/DXmC7uth+JUlgCc8uKaaDnBNPd\r\nDGa17kggJmt2oSUjfzE1caG+G9+P1WL1c32ZlwVd8vLdHZyx43pfiX4R0D0o\r\nYRPPgQprXOWlrVaQYBovQPQq/lGdx+EMfJBBLeQDTXrkrQcTB7KDSIZ0YGYv\r\nwmomQ6R9dYVG4/r6nTpbOWex8KKJbxK4wQ4s4dvbdx4W7n3rdvY0UwSaMa4w\r\nIwMPi57I27F/5KESlDEVPWoUFUsZ991rkaqWiEsdxXF9imtPYlT350EBCuyO\r\nStFCMJQ7sUEHPwK3dCI2LJ4vKKLuKWD4SntAJkOJnZGJArPEFTTdXcRp/SD7\r\n2ojHl1TUiEO2G4Q+atGHn94hm9w7m2EcyoE=\r\n=LMRg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e68ad025642429a51f137e9f3fc853364faf0622","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.69ebf61ea.0","@material/base":"15.0.0-canary.69ebf61ea.0","@material/shape":"15.0.0-canary.69ebf61ea.0","@material/theme":"15.0.0-canary.69ebf61ea.0","@material/ripple":"15.0.0-canary.69ebf61ea.0","@material/animation":"15.0.0-canary.69ebf61ea.0","@material/elevation":"15.0.0-canary.69ebf61ea.0","@material/typography":"15.0.0-canary.69ebf61ea.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.69ebf61ea.0_1682616158399_0.5869026453437838","host":"s3://npm-registry-packages"}},"15.0.0-canary.b90be86de.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.b90be86de.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.b90be86de.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"690b879ed1262b0057e9cab88459958bb321ddd1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.b90be86de.0.tgz","fileCount":44,"integrity":"sha512-L0KmDmYOXECN73aarRCxr3WJdnYq0BaX/O6ALUg+pXJkOiKS1cn89gpwihpOsRo89C0NwfwUG58vax/DrNZOXg==","signatures":[{"sig":"MEQCIFgamSB01ql2krMPQmfpu0pxaBW/vRSAUVy522j7Y9lPAiBbkV6GSnN4WHDDD1zZTH+p3WtNsfdFUoN4Ng4OBqWKqA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTGNQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpGnxAAonfsV7lf4RfUPVBsFX59V/gp4vcO7NDEnIGVF1nDiiKezbx4\r\nyFKAhIcFUZZon/aqaMglvemKCNd0RxQJpzMmoNSqVd8XAqIvhdOlN9Qtnb3n\r\nYSzC5MowAyHU2w/viDnSTinesS/qxyzYkc4vxnBU//mDKK2pESrWjTgvaZz2\r\n1dX+lsROh5sr4PQx2JHOdP2bpjTfDYGA6nBkOItVAsQyBC6S5H2nypMoa0Xj\r\nTFIPHP6WkCTL9Vc89vGc4+YvRdtxDlttaWl/BZJYBdNQ6NPTTal0M6NhMEof\r\nYmveVK0LHhQSNWVjB9dK7/5kss+C5DhMWv3iU6sABeB5zcCUX/DglxiB/7H5\r\n13gSO5nGzFQ7G8vjcpO5r1ixWsS6ZICpzXQsVDM89NLp9TYqhwFxIWQtwIfs\r\nrR6P0x+I9vlGkQ4zIzh+q5FEhCk9l4AkGLaCzuO+mKJMOhjUSMFv3xTnpmJ/\r\n3Et4ufoDn0yvLw3A06XD2A3lIs0PlskhHAsqi3A3U7QYaKS62ujOn37jWzUq\r\nCUdgwBETca6Ujl7bs3RTv73kWxpiSEEqE8ZSun1aYweTGIaRn9MDrCKv2WnC\r\n9uWM6V3cTEjGCH5jm9WhyVrbiQouesqj3hDPEMtqu9tamU/i9zNkft9e3tRu\r\nPaMqt8AJGV/8V5I6UZ8SffhW/cUfAId8P/0=\r\n=2KvE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"903a4c00d6c4501b4eae8ac0007164ef4a97ce0e","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.b90be86de.0","@material/base":"15.0.0-canary.b90be86de.0","@material/shape":"15.0.0-canary.b90be86de.0","@material/theme":"15.0.0-canary.b90be86de.0","@material/ripple":"15.0.0-canary.b90be86de.0","@material/animation":"15.0.0-canary.b90be86de.0","@material/elevation":"15.0.0-canary.b90be86de.0","@material/typography":"15.0.0-canary.b90be86de.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.b90be86de.0_1682727760130_0.3931539679056719","host":"s3://npm-registry-packages"}},"15.0.0-canary.51f9c0c28.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.51f9c0c28.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.51f9c0c28.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"669b4754d08e4bd5d7920e9f45e061e7ba1dc335","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.51f9c0c28.0.tgz","fileCount":44,"integrity":"sha512-ApTalnQcMMuoZ9r2wace2A3SUIfwOfHryFX/rzR00SG8VlXA+Hj4SFNeEQ7qQVPx0RL5supT3Ixz9MWaujdb3Q==","signatures":[{"sig":"MEQCICpPPCxvrI7mwOUgyAGXb7ObTXkwX4amSBTV9rXDFksLAiB7aYMaeWQ8Q3f94Gl8X7KAMyz48NW8CA1Trot9xkUYCA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTGWZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp0pg/8DmuzhY3YrotykI4hrboz/p7nqguVzxqXqeHCjyAdqtxiOCIJ\r\n6eRnkmqsS7sy6U0h1y7xz+AjWizXi4aTfBiFYJmGI1+9cC5vBtyFENeOca+n\r\nD5BljAjFP4elPrJoBSr6iyacxMb+IjSeejXUhkS1mK2pOIu2xlxyGW+376wF\r\nyqfQsU9lyyqs+Ka2I+d3k213yl7kwyZ/5RdquW8l95JuP0DvoYKw7rOaxgQK\r\nF8ZRRFoiJ9igl76kOnazAa5Yull71odhfW66ZSsPu79IBZeLRvUKJ2n5sK1A\r\nhjieowUutwNz66RLw3RPUHRAoajlDqXLwVAtQAkNG9VVonBXhcofwfhgMsFf\r\nvBVGD6723BYnKcVJ/84gBasoKBAYd3dXJ+N7PhOwyucD+HoUxgnHQZ0PR25K\r\nKM3Z3sZy2whXs13Zp7piBKkCFtQGpYIEASyn6S11iTslj6beQeDaZvacBNIJ\r\nLORlmllpis/z7rlyNUpt/WZRt5hIg85emd/bx/HoBuLmCBP3NRJcFbYoN0+K\r\ndqhmZLaZ22F3FRLbBV/OBMNDM2TG+fNOUJRyrmpORR4mn6eD5Yu0MlXPha4w\r\nlLcDHnECcA4PVg62jUfaWB1k1BnBOMswlpuJnld14jkhFM/kTts4EVoltP2g\r\nQ5RCV4V9gsX/ivH2g40b2vgiNitc5CbpfvU=\r\n=hp+g\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"87662f1719363ac8e600f73ed8a7795c25d8add6","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.51f9c0c28.0","@material/base":"15.0.0-canary.51f9c0c28.0","@material/shape":"15.0.0-canary.51f9c0c28.0","@material/theme":"15.0.0-canary.51f9c0c28.0","@material/ripple":"15.0.0-canary.51f9c0c28.0","@material/animation":"15.0.0-canary.51f9c0c28.0","@material/elevation":"15.0.0-canary.51f9c0c28.0","@material/typography":"15.0.0-canary.51f9c0c28.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.51f9c0c28.0_1682728345561_0.6819676303603319","host":"s3://npm-registry-packages"}},"15.0.0-canary.4e840d685.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.4e840d685.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.4e840d685.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a19940c33d67e233da8478616f798708e99a34f5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.4e840d685.0.tgz","fileCount":44,"integrity":"sha512-tXPg7bc1SJp9GNsQ36IRArZgfILTTKMOLgJlb+HwdHpu/4ZfnzxUs9YkAy0XEg2GP72vu+UhGu6ouJgBuIQk/Q==","signatures":[{"sig":"MEYCIQCqP5W47LvDRDFpVsoNrgzWHJ8WCe9FQeVqpxBl4+N4ewIhAKRmWVUPOOc+LGM+3NNQumFxW8AioTGecfHhrA0F55cZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"feb1f9f53257b520aff6dfe5dd1a15e319e73a40","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.4e840d685.0","@material/base":"15.0.0-canary.4e840d685.0","@material/shape":"15.0.0-canary.4e840d685.0","@material/theme":"15.0.0-canary.4e840d685.0","@material/ripple":"15.0.0-canary.4e840d685.0","@material/animation":"15.0.0-canary.4e840d685.0","@material/elevation":"15.0.0-canary.4e840d685.0","@material/typography":"15.0.0-canary.4e840d685.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.4e840d685.0_1683041683148_0.864486058024134","host":"s3://npm-registry-packages"}},"15.0.0-canary.10b8563e4.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.10b8563e4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.10b8563e4.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b3cc475baceeabc83468c61d52a1de12eb9b3fa3","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.10b8563e4.0.tgz","fileCount":44,"integrity":"sha512-py4y+NRKLOgtmEwNjxE7FNhW5mEJZQaGcbvyXUE7KZ011qHInKo6kFxtCEYPI2UIGc9JsnG6xW51IWnkV2L7mA==","signatures":[{"sig":"MEYCIQCT5ZLAucqpdQoMk8D1ndxKf38IkD3Bnv6jPN4eqsQLlQIhAOX5WlSe5B7E68qlEcRXHPfyCKyB84uYkYlFZQkDknvL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUZ/6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoQfBAAleU0TRCmF5RLsF5VAJ2vkeFTj94QdVNF6jAFBoLJbCO8SsZ1\r\nrXYrdAH1cVhu+zPls2bR2SlLHMCpGNXakwTAoCZ6qhrh3UnMmDH6vCUnBzbv\r\n/6piZpc+GMUbjHmhbHw1/3qwrc+YMpEVD0INzdykCsoNkttg87driUvfXICt\r\nwqsYwRCl+GfvZDEvmIxlHNW2NqLnx9uw5c1DOlE3d/a2yDiIylTgxME1cmo3\r\nAdKaVqBC/9MtL0xlA9kKsqJcAVAx/2oSIN2B3hmX5Py4YHHBocoIAGkBrCQD\r\nI1UCZiXF9hJBNuTBw3IHKmBC7EwhkNFijHg2X/xoIpDOYL8/tNnVzpfcL/IG\r\n5QNjpVWIGHWcX7Aw5eIi3rc+AMP2PjSOivmlLrfYzd4+hmJIg3hYAE+pDjkH\r\n9V8w4M7JtbqoOb+x8yC3OmSLA/qpVYmPj9K87M+42e/2ET2M859QE51c6X97\r\n16/n9b/AiOoHiUnJ96IYQOaoPlYz90mlbsi+QVrZxJ/DAbgwQYuxpxPLtFlA\r\n8rdFJfBgiQeRK4yiNaw7Kjk34N7cvrx4QhiQNY4aQpGIPUfMV9JItHdz4nKD\r\nGAqPCLO+kF/brlzezcqeozgVexTa3XH1jGGY5HQV4fTmdyh4eDSchzdHAwFc\r\nGlNrnt4m1KkaD3i5PJlqjPhh2mVDhVw2I5I=\r\n=6J8d\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5f71dcbe45f5245c72c0fabae0162af558c5c395","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.10b8563e4.0","@material/base":"15.0.0-canary.10b8563e4.0","@material/shape":"15.0.0-canary.10b8563e4.0","@material/theme":"15.0.0-canary.10b8563e4.0","@material/ripple":"15.0.0-canary.10b8563e4.0","@material/animation":"15.0.0-canary.10b8563e4.0","@material/elevation":"15.0.0-canary.10b8563e4.0","@material/typography":"15.0.0-canary.10b8563e4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.10b8563e4.0_1683070969739_0.6205188607406691","host":"s3://npm-registry-packages"}},"15.0.0-canary.736b7fda4.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.736b7fda4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.736b7fda4.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"d1a841521e97d134948fc2c4167d0f597db9a539","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.736b7fda4.0.tgz","fileCount":44,"integrity":"sha512-c6alAmRShHNiLBnMvhlzCGNvWviVE2JhcKX0f72ZDY/eXxAGnHmH/JFBR1m6YTHg/fzqHGCHTVKFXEWttHrgaA==","signatures":[{"sig":"MEYCIQD6BGKcXeSHLL5ur11GGE/y08X8icS0vfScIu8N90gQTAIhAN4Kxd0NL+11Wkl45dEvgbzkBiVQ0TuqaCVfyB/2nR5O","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUnlpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqXjxAAnMh7GZVQeVEF5MbhJ1cEZE+px8JzAyZ84gRIfg/toMd7YJPh\r\nsjkY/2+5a3UyH7R7vgMSwNje9D3jsP5aKKBnz1ymI5qTK4PmCBlsIsHn/BYr\r\nIIATC+Kpk1TN+YH90JAOgr4Io244zwvAl4BOD2BTBMjmOU1Hx/w98IXsUIIY\r\n3fVMrQjPsFDTaEVTLxC/TSxOPNWj3SsIJZbDXClNr/7bEzvJiYGJCya74YaI\r\nTx2Diw0LhfpdnM3sbO2V7f7ZeevB+hVxNWLM1t2JmH8P/5kLCQzVAPPIbyLm\r\nZT1kpjP7k+BUUIHAFS836It0BhHEPS6YUtHptLl0mRFlifhSUw7HYc8kIXTN\r\n2wgT+l9Qoxx7kEkZQGey9AugKzcHZvGyz6ME+Tj6ny61duwru4SffEUA7ScQ\r\n3qdSb+iwPhsvZYPt3lmmYv3un2dKvrbzzEm5et597vX2d01uBG2TwG845Zbc\r\nFXFHSi/Wa6zksWmWSkOgwW7b2bRgvqqvIvKP2UKSACIBxRCxnhiYvlgT4dEM\r\nOPPOIUYySUcoc5rtcv4iyPY8QbN99WE3gTWDOMPmTzo6fAGLzeNUedRu8kWe\r\ns8Y6LohtbgYpfKgQ+ZvQRiNMBuH0fyxJfvzm7HGrgC5G6prlDDwbje065lCy\r\niVPWpoXs/c9zSUTeu6YWzH44aa9zyF3SdKk=\r\n=FYbN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"b9ef54594aa8f93612aed085460f035d0aba61bd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.736b7fda4.0","@material/base":"15.0.0-canary.736b7fda4.0","@material/shape":"15.0.0-canary.736b7fda4.0","@material/theme":"15.0.0-canary.736b7fda4.0","@material/ripple":"15.0.0-canary.736b7fda4.0","@material/animation":"15.0.0-canary.736b7fda4.0","@material/elevation":"15.0.0-canary.736b7fda4.0","@material/typography":"15.0.0-canary.736b7fda4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.736b7fda4.0_1683126633125_0.6294251996437199","host":"s3://npm-registry-packages"}},"15.0.0-canary.0e533c5a1.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.0e533c5a1.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.0e533c5a1.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"1088d1a002ac48dc699574740e98ee63371e2304","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.0e533c5a1.0.tgz","fileCount":44,"integrity":"sha512-UTRlUt90/BDjsHui7yFQ0QOcaLYJN//QUC+aefrns4nJyeP7qkgvMfBtpieQR6eL852o+V1DJMiXn8H16uIQGA==","signatures":[{"sig":"MEYCIQCt1XZ65KbCICS+YSiaH17wqSMUorQP5u5VRtXCe/c3VwIhAIV20L/Xz7rg0Lv4OehBx1wi/4G0v7bPMlRoFyFQs7rx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6b9b4497cc6457c9e92ab3abdaad626c73e610a4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.0e533c5a1.0","@material/base":"15.0.0-canary.0e533c5a1.0","@material/shape":"15.0.0-canary.0e533c5a1.0","@material/theme":"15.0.0-canary.0e533c5a1.0","@material/ripple":"15.0.0-canary.0e533c5a1.0","@material/animation":"15.0.0-canary.0e533c5a1.0","@material/elevation":"15.0.0-canary.0e533c5a1.0","@material/typography":"15.0.0-canary.0e533c5a1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.0e533c5a1.0_1683305855472_0.15618374139760438","host":"s3://npm-registry-packages"}},"15.0.0-canary.5f01c15a2.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.5f01c15a2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.5f01c15a2.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9970413f0d566473fa08814a4f780db2fdeb1d5e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.5f01c15a2.0.tgz","fileCount":44,"integrity":"sha512-F45tp1039fPckWHlf+9rNIWETgHD40gjoRGHLDt0iZT/X2BxWiUH22YBkXi4Hpi+rPE0nB3izn+1LDutUGzOGA==","signatures":[{"sig":"MEUCIQDiGANzDZ7PM6iiAY4CcDDkUJ3b+RftatVCvFXWPmMSPwIgOHV9MS3Xjal2qhUMgE/j7Vxk8HeN0KlGixksLYjkk8Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7bb1c5dfc575b36654ae046d1f4ab3b27e8c8f9d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.5f01c15a2.0","@material/base":"15.0.0-canary.5f01c15a2.0","@material/shape":"15.0.0-canary.5f01c15a2.0","@material/theme":"15.0.0-canary.5f01c15a2.0","@material/ripple":"15.0.0-canary.5f01c15a2.0","@material/animation":"15.0.0-canary.5f01c15a2.0","@material/elevation":"15.0.0-canary.5f01c15a2.0","@material/typography":"15.0.0-canary.5f01c15a2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.5f01c15a2.0_1683307638334_0.3074080112437849","host":"s3://npm-registry-packages"}},"15.0.0-canary.3b5b55e31.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.3b5b55e31.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.3b5b55e31.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"66777cb8009e963b4da99f78869c311afbfbebe5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.3b5b55e31.0.tgz","fileCount":44,"integrity":"sha512-N8kJQtkZheUpDgtlr0GudAv5OnGiVhuWlk3IGgDAX06O1vvuV2negj7Il0NJ9YsKJ8t5ICKjlxsznskIbMSxmQ==","signatures":[{"sig":"MEUCIQCvqfTg8uo04XPnVP5FHU4vwoSo2svz48COVbXByFlWYAIgByLJZwZwt/PxvH7YUpJ7KufrEMN2HAxBaDqvFtrwOsA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"c262d9ee39655e869886d1584551a096ae56dabc","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.3b5b55e31.0","@material/base":"15.0.0-canary.3b5b55e31.0","@material/shape":"15.0.0-canary.3b5b55e31.0","@material/theme":"15.0.0-canary.3b5b55e31.0","@material/ripple":"15.0.0-canary.3b5b55e31.0","@material/animation":"15.0.0-canary.3b5b55e31.0","@material/elevation":"15.0.0-canary.3b5b55e31.0","@material/typography":"15.0.0-canary.3b5b55e31.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.3b5b55e31.0_1683312019541_0.9004719257567071","host":"s3://npm-registry-packages"}},"15.0.0-canary.d0788120f.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.d0788120f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.d0788120f.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"874a92f29a676eab9349bd2e284534cd8cae9aea","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.d0788120f.0.tgz","fileCount":44,"integrity":"sha512-RDTEjQOFwUTlHnzn2tZtggHAU/R1S4/MR2WRwiZ4tnVTm8Cpik3+8yF5LjFm6wQLIh2zuWLiBtq6kzccWum3vg==","signatures":[{"sig":"MEQCIBi8Fs0s8v2R+DOo9egfF1Rwz2IHdor691xGI9zMG+sAAiBh+T9VSKhb+bdCQD1wzSZklETsHk/ihyTZvPUF/7ZBCA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7eccbee262206623b89c40dadb4e11abe30d5e45","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.d0788120f.0","@material/base":"15.0.0-canary.d0788120f.0","@material/shape":"15.0.0-canary.d0788120f.0","@material/theme":"15.0.0-canary.d0788120f.0","@material/ripple":"15.0.0-canary.d0788120f.0","@material/animation":"15.0.0-canary.d0788120f.0","@material/elevation":"15.0.0-canary.d0788120f.0","@material/typography":"15.0.0-canary.d0788120f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.d0788120f.0_1683620657376_0.26572698027470687","host":"s3://npm-registry-packages"}},"15.0.0-canary.f52358dd0.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.f52358dd0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.f52358dd0.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3efc41fee4c17ea8cc70052d87e8d92167091185","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.f52358dd0.0.tgz","fileCount":44,"integrity":"sha512-x7bRZ3wZwubTATCnQC7Gw/mWnmzBwA+d9F6eCmxj3aS/w4orLaE3lWsKXwHCC6XgfgJXQi73KYCozgMcSaFF9A==","signatures":[{"sig":"MEYCIQCJJc+tvaVlY0otVom1QJjbK+SMF8rJZAzbJrhu42ljOQIhAKhfd1DPRySzaZBfT0YNAQ1X4jpvtEKWxt0ekChRNS8A","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a4baf07a9736a6e1fa40001f7198ae1865d67392","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.f52358dd0.0","@material/base":"15.0.0-canary.f52358dd0.0","@material/shape":"15.0.0-canary.f52358dd0.0","@material/theme":"15.0.0-canary.f52358dd0.0","@material/ripple":"15.0.0-canary.f52358dd0.0","@material/animation":"15.0.0-canary.f52358dd0.0","@material/elevation":"15.0.0-canary.f52358dd0.0","@material/typography":"15.0.0-canary.f52358dd0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.f52358dd0.0_1683901891153_0.535050299039642","host":"s3://npm-registry-packages"}},"15.0.0-canary.576d3d2c8.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.576d3d2c8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.576d3d2c8.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c569a2a9054f77e1266c9497e7517d4a31ee80d9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.576d3d2c8.0.tgz","fileCount":44,"integrity":"sha512-3GSVTPiK0dpexfIxImg7He8WWzTJ94Su+WuKhCHMBUsnc1jeMWD22fNBXo0HrEBK6+4U+4PxJXgrGE9xI3uzug==","signatures":[{"sig":"MEUCIQDRjPJdcVXcJkFlf7PNt9Rv+xszgZQiB4LTBb75WFqVBAIgf6x7JT9OsE2AKuNOr6KLmR8fxntJMDaptJepLMLw+Nk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6ace19a21b6654f14cad48fc007198859874c910","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.576d3d2c8.0","@material/base":"15.0.0-canary.576d3d2c8.0","@material/shape":"15.0.0-canary.576d3d2c8.0","@material/theme":"15.0.0-canary.576d3d2c8.0","@material/ripple":"15.0.0-canary.576d3d2c8.0","@material/animation":"15.0.0-canary.576d3d2c8.0","@material/elevation":"15.0.0-canary.576d3d2c8.0","@material/typography":"15.0.0-canary.576d3d2c8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.576d3d2c8.0_1684202463006_0.4850033155671867","host":"s3://npm-registry-packages"}},"15.0.0-canary.19bb36a46.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.19bb36a46.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.19bb36a46.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"19770e53dc07bedf9a807f6da61938a6cfc3c480","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.19bb36a46.0.tgz","fileCount":44,"integrity":"sha512-fQOqywuUo3EZacCaqgFoYi/vavg2W1SGiKGA0n/2kxABj/CiHUyBpg6IR/y7KF8nTnITUgv1OO/vfr3mc+VvhA==","signatures":[{"sig":"MEUCIQCrx8rd6/Jxzb4a7UmeLyWPKLdJNISn//cjw4KbUnel9gIgX8rrPEfbrwijO6tLJ15SzARblwBY6Hxv1Mtd0dHkIC0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"75157be315eeaa02f70ed69f97e44a7d40d53e42","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.19bb36a46.0","@material/base":"15.0.0-canary.19bb36a46.0","@material/shape":"15.0.0-canary.19bb36a46.0","@material/theme":"15.0.0-canary.19bb36a46.0","@material/ripple":"15.0.0-canary.19bb36a46.0","@material/animation":"15.0.0-canary.19bb36a46.0","@material/elevation":"15.0.0-canary.19bb36a46.0","@material/typography":"15.0.0-canary.19bb36a46.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.19bb36a46.0_1684266904188_0.7193035896522473","host":"s3://npm-registry-packages"}},"15.0.0-canary.aa5ac7fe5.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.aa5ac7fe5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.aa5ac7fe5.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b3c02f14ee5e6aadd377b662eed429ebe62b4bb8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.aa5ac7fe5.0.tgz","fileCount":44,"integrity":"sha512-PPEwqJV4z1GPJSvq27NjU2Fwwzdp7AYYfV0aBjoJPjJ5fsHUyAgQkBx5j8zpUr2/TyZMMH1IKvlfHBKGlCmQag==","signatures":[{"sig":"MEYCIQD6IlCDGGZgVBah0qkkrPgEGpqOTiSqnOaj0NTU5gPfIQIhAKQAAQhGeFrYyJewR+0SJoG4mW789RNyVPWTa4wsXgA/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"83e86542dd6facc8ffe487d31111412ee18b5bde","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.aa5ac7fe5.0","@material/base":"15.0.0-canary.aa5ac7fe5.0","@material/shape":"15.0.0-canary.aa5ac7fe5.0","@material/theme":"15.0.0-canary.aa5ac7fe5.0","@material/ripple":"15.0.0-canary.aa5ac7fe5.0","@material/animation":"15.0.0-canary.aa5ac7fe5.0","@material/elevation":"15.0.0-canary.aa5ac7fe5.0","@material/typography":"15.0.0-canary.aa5ac7fe5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.aa5ac7fe5.0_1684776411803_0.7210915390577743","host":"s3://npm-registry-packages"}},"15.0.0-canary.90291f2e2.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.90291f2e2.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.90291f2e2.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9695ce75ab589c3741b3fbcd8dbfe25c10d7c8f1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.90291f2e2.0.tgz","fileCount":44,"integrity":"sha512-ZiJjK4WpIsE0MZTWokP9r4C9/oDqzUhKRn3ef2WCeJEIU3Vjg4t0xBTnST2vIrcBGw1s7WP1gfaxb3DSXSxzpw==","signatures":[{"sig":"MEYCIQDPCBqfna0YW1FwTQSoHVC8BW6jxBsAEb5UOWKg6u/cVQIhAMMTlFORqhWhsIgQYsrpYrGe3SBjP8mn/yhPRKwfkG0u","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a1c306471717b15ae8f0b481703ed1b46162df25","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.90291f2e2.0","@material/base":"15.0.0-canary.90291f2e2.0","@material/shape":"15.0.0-canary.90291f2e2.0","@material/theme":"15.0.0-canary.90291f2e2.0","@material/ripple":"15.0.0-canary.90291f2e2.0","@material/animation":"15.0.0-canary.90291f2e2.0","@material/elevation":"15.0.0-canary.90291f2e2.0","@material/typography":"15.0.0-canary.90291f2e2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.90291f2e2.0_1684863830857_0.00024494138012642885","host":"s3://npm-registry-packages"}},"15.0.0-canary.446734f27.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.446734f27.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.446734f27.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3ffe16d4876780d32a915100ce22184f53374036","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.446734f27.0.tgz","fileCount":44,"integrity":"sha512-ImS2WSaJX+KyqB1So8SydHPJCSbDpk8ktdcPePwPDPk8pr+oo+//41CD5J9hyn4Uarwbke/3zReMmEKsbISTpA==","signatures":[{"sig":"MEUCIBMel5fBMnK0jikYRsSIKCRqfN4p90O6pTxC4rhGMwwjAiEAmYdnXqyAL7RFuDowYVv9BHEpaC5LsqWEqnGf/LK9/oE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a2536a849aada5f06aa85deaa7be06f44f620023","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.446734f27.0","@material/base":"15.0.0-canary.446734f27.0","@material/shape":"15.0.0-canary.446734f27.0","@material/theme":"15.0.0-canary.446734f27.0","@material/ripple":"15.0.0-canary.446734f27.0","@material/animation":"15.0.0-canary.446734f27.0","@material/elevation":"15.0.0-canary.446734f27.0","@material/typography":"15.0.0-canary.446734f27.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.446734f27.0_1685483354992_0.2802017601103426","host":"s3://npm-registry-packages"}},"15.0.0-canary.19de312d8.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.19de312d8.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.19de312d8.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ca07656ad39a6b56d51d35255481ee6bdc42a08f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.19de312d8.0.tgz","fileCount":44,"integrity":"sha512-5Au0SFR1Z6YkQzb7jKhSPzIffqdKyTpnrWQYY82IkDAlY5PjqWvRAuBPA6PvbDfcd6cUJKpg7nX/CDQsSIAYKw==","signatures":[{"sig":"MEQCICo0Bzf00FjDiicaRraOMYvWNENbfL5FW+9vsWauCSTOAiAudzMnyF1hwW0PKJAgJgRYW9MiItjBmXLJ41oME7Zy0w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"dc3811573a34ccafa5c09bcf14574bfb95373958","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.19de312d8.0","@material/base":"15.0.0-canary.19de312d8.0","@material/shape":"15.0.0-canary.19de312d8.0","@material/theme":"15.0.0-canary.19de312d8.0","@material/ripple":"15.0.0-canary.19de312d8.0","@material/animation":"15.0.0-canary.19de312d8.0","@material/elevation":"15.0.0-canary.19de312d8.0","@material/typography":"15.0.0-canary.19de312d8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.19de312d8.0_1686071970842_0.6280951611952019","host":"s3://npm-registry-packages"}},"15.0.0-canary.6081d829b.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.6081d829b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.6081d829b.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"61e284b3c536c11e273f62c7fbb795cb4b2232a0","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.6081d829b.0.tgz","fileCount":44,"integrity":"sha512-u9I3sQ2eSlpyCRrYEOPwqrdW3oZngv09gwGbjuryxsk6+RMZV6RNN4ByHzqQMhVnkhn4JNCIBoiKcgb9nb5Dzw==","signatures":[{"sig":"MEYCIQCePFFheFgKm1XOHVdvC8zWoIhINDhIDZ+t9MEIFnTlAgIhAKI2iiEqeIIegGNQzxbYgUK+OaPsCzwW7nJ+JrdeVYd6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"033569cc4deafe32dad2bf8cbd1de8789bc85668","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.6081d829b.0","@material/base":"15.0.0-canary.6081d829b.0","@material/shape":"15.0.0-canary.6081d829b.0","@material/theme":"15.0.0-canary.6081d829b.0","@material/ripple":"15.0.0-canary.6081d829b.0","@material/animation":"15.0.0-canary.6081d829b.0","@material/elevation":"15.0.0-canary.6081d829b.0","@material/typography":"15.0.0-canary.6081d829b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.6081d829b.0_1686100505625_0.7799804925532341","host":"s3://npm-registry-packages"}},"15.0.0-canary.b26c34a68.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.b26c34a68.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.b26c34a68.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5b31e4520c95d83c7880bb2e80ef61d10fb8b1c9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.b26c34a68.0.tgz","fileCount":44,"integrity":"sha512-NuHYpvH2p9QPD4lGChz2awYjnuOoKsKjPgZnXvZrb1RPnqxxHU/Te/qNbSig82XBn3ArZYE3HeQ5SSP3rKm9BQ==","signatures":[{"sig":"MEYCIQDGu52Un9LJ768ZtdRyRGgHaIJ0ikXtNWAnwrUz9th+XAIhAO1oYOxSxWyfO6tORG9zDasXO8dPqUZ6sr+h5uAzfmZP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"28919516866e588c52e4e6358c3c4d2523993b74","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.b26c34a68.0","@material/base":"15.0.0-canary.b26c34a68.0","@material/shape":"15.0.0-canary.b26c34a68.0","@material/theme":"15.0.0-canary.b26c34a68.0","@material/ripple":"15.0.0-canary.b26c34a68.0","@material/animation":"15.0.0-canary.b26c34a68.0","@material/elevation":"15.0.0-canary.b26c34a68.0","@material/typography":"15.0.0-canary.b26c34a68.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.b26c34a68.0_1686169167604_0.6292940557299438","host":"s3://npm-registry-packages"}},"15.0.0-canary.4fe911371.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.4fe911371.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.4fe911371.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cea383c973707a5361bc72ef8be810df5254cb6e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.4fe911371.0.tgz","fileCount":44,"integrity":"sha512-Un/Ju0SQFn5kqwVHx2aHaRA1iJ3Q0HvF2RzDBwGg3RBpxzWV5dKFRXefjfovsaHfIYkBzg1SfPOwtJX+vojLYQ==","signatures":[{"sig":"MEUCIQCDLcEAD2m/Ohr69HaLAskU+Kl6pcxnQcdFUivrYzvPhAIgRbIQC0/90jfGerfSWuuv12HY8K0BwC9mi6X4kXSQlbI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"a9de53a24d5e0f79f94310f061cdf2ab718df7f4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.4fe911371.0","@material/base":"15.0.0-canary.4fe911371.0","@material/shape":"15.0.0-canary.4fe911371.0","@material/theme":"15.0.0-canary.4fe911371.0","@material/ripple":"15.0.0-canary.4fe911371.0","@material/animation":"15.0.0-canary.4fe911371.0","@material/elevation":"15.0.0-canary.4fe911371.0","@material/typography":"15.0.0-canary.4fe911371.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.4fe911371.0_1686179227369_0.1337338002653592","host":"s3://npm-registry-packages"}},"15.0.0-canary.a9ff9866f.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a9ff9866f.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a9ff9866f.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ca5aa8a9a2d24676c580858cf53f5d77f4c43217","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a9ff9866f.0.tgz","fileCount":44,"integrity":"sha512-rtAPUMi2yX/AwZ10QhTH0zwZ5WKlsEPgDLCOcIe+wc8aN0h1zOxPCwV94daH+W6c1LZWH37yNZR590ZAt4O2gA==","signatures":[{"sig":"MEUCIDB2xhOvwo6vC+aV3qZqF8GJdbHU4LxHBoI+dvXQGTjNAiEA3xxOWdBDWeH4ZJohG87QAnCqwFDhar+nHLWYowmSbew=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5bed0ec6cdad0c38b52e8ac98994b2809d9c8f50","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a9ff9866f.0","@material/base":"15.0.0-canary.a9ff9866f.0","@material/shape":"15.0.0-canary.a9ff9866f.0","@material/theme":"15.0.0-canary.a9ff9866f.0","@material/ripple":"15.0.0-canary.a9ff9866f.0","@material/animation":"15.0.0-canary.a9ff9866f.0","@material/elevation":"15.0.0-canary.a9ff9866f.0","@material/typography":"15.0.0-canary.a9ff9866f.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a9ff9866f.0_1686656357602_0.2703173197946982","host":"s3://npm-registry-packages"}},"15.0.0-canary.b994146f6.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.b994146f6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.b994146f6.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"2fe6ef4cf1f19c6bca41eaed583e78032a49d86e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.b994146f6.0.tgz","fileCount":44,"integrity":"sha512-VHq0wX3OJE1TKvjO8Qtlu+rv5EGoqAhNLBcEjpUUGoqHH/gpd356FEuIqJId4pUh5jaWf8T4ZU9xVbQGMtntzw==","signatures":[{"sig":"MEUCIE8b60Anol/hawm5/eRI6pkL/Rt0KPuY4PE2Wfhq5PJMAiEAicgqzAwtyJ1KoXgRl8hvh62tWlV3nZ4a6oOxXbUwIBU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e537228a5d88e4fb9c651aa15b1d56bd81bc63bd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.b994146f6.0","@material/base":"15.0.0-canary.b994146f6.0","@material/shape":"15.0.0-canary.b994146f6.0","@material/theme":"15.0.0-canary.b994146f6.0","@material/ripple":"15.0.0-canary.b994146f6.0","@material/animation":"15.0.0-canary.b994146f6.0","@material/elevation":"15.0.0-canary.b994146f6.0","@material/typography":"15.0.0-canary.b994146f6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.b994146f6.0_1686776692603_0.931799709739672","host":"s3://npm-registry-packages"}},"15.0.0-canary.1fb4b1a06.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.1fb4b1a06.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.1fb4b1a06.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c19f4bc7ff5f57382d8dff78c1134b678518c934","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.1fb4b1a06.0.tgz","fileCount":44,"integrity":"sha512-xLOQp7s9qwiTGrOuvpXBcPXPXCIHVNqYJLYLs8TTvTDW+QutlGdAfd0jNRJ2kjJBBHvkWTSwxL1EfPDqPmw0aA==","signatures":[{"sig":"MEYCIQCVf5oxvpRdITDhY5M+Qn33PNArnvCbU3PCyqTeODw8WQIhAO8GaGpkxZjeDKL1nIV4Le3btheGkR9k4x140EmRLK99","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1d1b86822f3fc9f22a5fdfc1c381d5a4ae983829","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.1fb4b1a06.0","@material/base":"15.0.0-canary.1fb4b1a06.0","@material/shape":"15.0.0-canary.1fb4b1a06.0","@material/theme":"15.0.0-canary.1fb4b1a06.0","@material/ripple":"15.0.0-canary.1fb4b1a06.0","@material/animation":"15.0.0-canary.1fb4b1a06.0","@material/elevation":"15.0.0-canary.1fb4b1a06.0","@material/typography":"15.0.0-canary.1fb4b1a06.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.1fb4b1a06.0_1687892302128_0.5187174395822776","host":"s3://npm-registry-packages"}},"15.0.0-canary.c64a2776e.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.c64a2776e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.c64a2776e.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"97ddddcf0a25486e8f31c61e7eaf606a96ecaa3f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.c64a2776e.0.tgz","fileCount":44,"integrity":"sha512-0ottN5r4QIbSQjBLK9+lpdKpFJP4cZUgO/37o95ePSw/i5y9bVUG+QzxHEWcWkuQ6yNQrtywCpVH/MW2bIq10w==","signatures":[{"sig":"MEYCIQDQBhz55x6U9XzweLEwRn5jK8PfQQHgN5wcRpRxE8zEZQIhAKtYjtICL5lGPuchQM06zUMCx0eTvLw4Tz/T7zTDm5Im","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"271b0c446646af573f67960820b6b2a86a9bda88","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.c64a2776e.0","@material/base":"15.0.0-canary.c64a2776e.0","@material/shape":"15.0.0-canary.c64a2776e.0","@material/theme":"15.0.0-canary.c64a2776e.0","@material/ripple":"15.0.0-canary.c64a2776e.0","@material/animation":"15.0.0-canary.c64a2776e.0","@material/elevation":"15.0.0-canary.c64a2776e.0","@material/typography":"15.0.0-canary.c64a2776e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.c64a2776e.0_1687897069388_0.9095982229803712","host":"s3://npm-registry-packages"}},"15.0.0-canary.b05d9eb7c.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.b05d9eb7c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.b05d9eb7c.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"423685037b2e64c40ab519ffa149cef9bc7fa9d7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.b05d9eb7c.0.tgz","fileCount":44,"integrity":"sha512-N4kten+SQvE1BNzGGzZVrBPqrK1ukc9spY4B5FZ7MnK0wcWGKhzaLbkR0CF9/1gNkCZsFepe2QzZnCj9yX5tuw==","signatures":[{"sig":"MEUCIQDgYmwQDHh+gyIHQTFKvNhEdM1IiZshC4zw4W79Wkb4SwIgY4UrgDbn5BCpclC7ZxXxbcJuwI8Ew+6FKcvk0c1rSG4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"854245f23fe0f7b3dd1163ecefd940b26718c134","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.b05d9eb7c.0","@material/base":"15.0.0-canary.b05d9eb7c.0","@material/shape":"15.0.0-canary.b05d9eb7c.0","@material/theme":"15.0.0-canary.b05d9eb7c.0","@material/ripple":"15.0.0-canary.b05d9eb7c.0","@material/animation":"15.0.0-canary.b05d9eb7c.0","@material/elevation":"15.0.0-canary.b05d9eb7c.0","@material/typography":"15.0.0-canary.b05d9eb7c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.b05d9eb7c.0_1688055890093_0.48038592518611334","host":"s3://npm-registry-packages"}},"15.0.0-canary.2a9697dc5.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.2a9697dc5.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.2a9697dc5.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c724277988185d173b09d3c739824252cb92a09a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.2a9697dc5.0.tgz","fileCount":44,"integrity":"sha512-EleX1YkSYaI11kiuwsHHASLTvDC0l2Y+jSZCL4wsGday7BAF9p9IrGXWtQRDkWGYsKLAQaIJs563FnXCg1ENGQ==","signatures":[{"sig":"MEYCIQDqgqMc/cZBbt9pVDdRMrKeDB7IYn5WryX+pa78a1eGbQIhAP0DyzQvb+T8Wcic20Fp8sukJf8hfJF5+BmihDHJndtg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"fad1e5223c83a5b7a83a6ef81f7ebdc83a85672a","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.2a9697dc5.0","@material/base":"15.0.0-canary.2a9697dc5.0","@material/shape":"15.0.0-canary.2a9697dc5.0","@material/theme":"15.0.0-canary.2a9697dc5.0","@material/ripple":"15.0.0-canary.2a9697dc5.0","@material/animation":"15.0.0-canary.2a9697dc5.0","@material/elevation":"15.0.0-canary.2a9697dc5.0","@material/typography":"15.0.0-canary.2a9697dc5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.2a9697dc5.0_1688163297165_0.11383635866079977","host":"s3://npm-registry-packages"}},"15.0.0-canary.0c52adeab.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.0c52adeab.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.0c52adeab.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"599b479160e0799616a6aa0ba64f00ebe43f9420","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.0c52adeab.0.tgz","fileCount":44,"integrity":"sha512-EHIok3qQC8cvIy1WG4ViqBupuwoFon/IoCFoM1PEhVTOz+4HSB6NzjYrVGzr5NUu1spTMemf51PF3Kq0xcqf9A==","signatures":[{"sig":"MEUCIQCTk6BTFoSEEPFF7qeHRpYf5F7eZ8CRO7YD8PjHMMiuZQIgSDo5aclL2Zgt3Ctl4dYlDFuL7aPNrMBi7yf0DlsiCyU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"972024dd57885ff944ec073de0cd956353bfa7e3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.0c52adeab.0","@material/base":"15.0.0-canary.0c52adeab.0","@material/shape":"15.0.0-canary.0c52adeab.0","@material/theme":"15.0.0-canary.0c52adeab.0","@material/ripple":"15.0.0-canary.0c52adeab.0","@material/animation":"15.0.0-canary.0c52adeab.0","@material/elevation":"15.0.0-canary.0c52adeab.0","@material/typography":"15.0.0-canary.0c52adeab.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.0c52adeab.0_1688574418424_0.5867463597035831","host":"s3://npm-registry-packages"}},"15.0.0-canary.83355c322.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.83355c322.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.83355c322.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"690991b29c1c4eb904be5e52352b83d594c95b4a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.83355c322.0.tgz","fileCount":44,"integrity":"sha512-SIN4hcc+QH3B0UpwZGCG/eIAZl7w0VQIYuPNzOfEF36HPxRDwwSTVefF03gtfWfjjHNfieIRBl5Gt4kW6OFm/g==","signatures":[{"sig":"MEQCIFscUKq/OIzBInKspp18RiTtGATnYte1Lbf3zpeDLXfQAiBsDtab1aMhaq8dQ08sf9nbFgt8qD0ZNWGxZ3jY0kKzWg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"173401c2dd65fb3babae5b8e998c0a0032ff819d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.83355c322.0","@material/base":"15.0.0-canary.83355c322.0","@material/shape":"15.0.0-canary.83355c322.0","@material/theme":"15.0.0-canary.83355c322.0","@material/ripple":"15.0.0-canary.83355c322.0","@material/animation":"15.0.0-canary.83355c322.0","@material/elevation":"15.0.0-canary.83355c322.0","@material/typography":"15.0.0-canary.83355c322.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.83355c322.0_1689001609064_0.7219944553851827","host":"s3://npm-registry-packages"}},"15.0.0-canary.bc9ae6c9c.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.bc9ae6c9c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.bc9ae6c9c.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e996435725f36991a6ca80604e032d21527e076d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.bc9ae6c9c.0.tgz","fileCount":44,"integrity":"sha512-vJWjsvqtdSD5+yQ/9vgoBtBSCvPJ5uF/DVssv8Hdhgs1PYaAcODUi77kdi0+sy/TaWyOsTkQixqmwnFS16zesA==","signatures":[{"sig":"MEYCIQDWCpw1QzrSz4bxYb8ZBCtyGJ3kT12Fzmi4y3my1p/5RQIhAJxYBRt0EjZmpRf93Su3OIx3A3MR8CMQev/QT2kTwH41","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"9f0b9b80c267d99daa258e635481fecc4cbf0acd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.bc9ae6c9c.0","@material/base":"15.0.0-canary.bc9ae6c9c.0","@material/shape":"15.0.0-canary.bc9ae6c9c.0","@material/theme":"15.0.0-canary.bc9ae6c9c.0","@material/ripple":"15.0.0-canary.bc9ae6c9c.0","@material/animation":"15.0.0-canary.bc9ae6c9c.0","@material/elevation":"15.0.0-canary.bc9ae6c9c.0","@material/typography":"15.0.0-canary.bc9ae6c9c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.bc9ae6c9c.0_1691097756955_0.7815530908563744","host":"s3://npm-registry-packages"}},"15.0.0-canary.3c44cd956.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.3c44cd956.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.3c44cd956.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cb8b2cb01df0730b8b2a0d8b22f5a2cf59748970","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.3c44cd956.0.tgz","fileCount":44,"integrity":"sha512-IdTFqtpCcXz4bqj1gwmxW7TKPm1Euqf9VyHVnBm8jZpLs8mUyky6Zk07O1do2Hqp++JDAz/6NHuNeukY5Gr82A==","signatures":[{"sig":"MEUCIHQKzfldGYaKZNMczG4CNMFhbSVtmaLQOHlc55NWoJfeAiEA15uOrVjEDqYEa77Z+nayvK8YTvVQc8/gqhHAcS0zbHo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6e39da189328fcabc7040a629e312efe5f7cea80","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.3c44cd956.0","@material/base":"15.0.0-canary.3c44cd956.0","@material/shape":"15.0.0-canary.3c44cd956.0","@material/theme":"15.0.0-canary.3c44cd956.0","@material/ripple":"15.0.0-canary.3c44cd956.0","@material/animation":"15.0.0-canary.3c44cd956.0","@material/elevation":"15.0.0-canary.3c44cd956.0","@material/typography":"15.0.0-canary.3c44cd956.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.3c44cd956.0_1691430555365_0.4696988180679589","host":"s3://npm-registry-packages"}},"15.0.0-canary.02702296e.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.02702296e.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.02702296e.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"a0139aa990d5b69ec8b7feef6d5e7f057c10a17c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.02702296e.0.tgz","fileCount":44,"integrity":"sha512-QovravVcMDTyGQQlHEiYlCh/twEaDUFEerNlRS74JNXqeVgHB0yN1mYXgNo9pCFEQ2kiw1EQKEytUbP7hQaM5A==","signatures":[{"sig":"MEQCIGQ8CekGOol6UHFnhPyFEZKe1zPgeyiZwKIdKKjcTEySAiAE8u3t5GSC/lB4JLAlSH+F2DP1d05qkwvEfdiT2ZLRag==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"22335673bc742932498b2538321ed9dcfd692879","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.02702296e.0","@material/base":"15.0.0-canary.02702296e.0","@material/shape":"15.0.0-canary.02702296e.0","@material/theme":"15.0.0-canary.02702296e.0","@material/ripple":"15.0.0-canary.02702296e.0","@material/animation":"15.0.0-canary.02702296e.0","@material/elevation":"15.0.0-canary.02702296e.0","@material/typography":"15.0.0-canary.02702296e.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.02702296e.0_1692965173748_0.8686292291600684","host":"s3://npm-registry-packages"}},"15.0.0-canary.872b65832.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.872b65832.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.872b65832.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3e199eb3a4b2753819aaf518ac40fd32c9daa3e9","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.872b65832.0.tgz","fileCount":44,"integrity":"sha512-8+kTf09wRwgXAcxtARnrcM5ekcUZNlIvk+lWdtnQhzF/vUSphuvr/vkDLJ56Pf2GEZYpNUXEsJsnOnwb2iSzjg==","signatures":[{"sig":"MEYCIQCnaNeD8qxX/lEQJxVVVuBr1QwENyKNdWrsEWV2llq4XgIhAJquzka2ME+MGCAlKUsdcOnmZaiPddeWbNbcCU2Tdt69","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"be0901c091f812355b2d192c49bd051d8daf7a98","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.872b65832.0","@material/base":"15.0.0-canary.872b65832.0","@material/shape":"15.0.0-canary.872b65832.0","@material/theme":"15.0.0-canary.872b65832.0","@material/ripple":"15.0.0-canary.872b65832.0","@material/animation":"15.0.0-canary.872b65832.0","@material/elevation":"15.0.0-canary.872b65832.0","@material/typography":"15.0.0-canary.872b65832.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.872b65832.0_1693397680915_0.8244081335609412","host":"s3://npm-registry-packages"}},"15.0.0-canary.89b2e4122.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.89b2e4122.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.89b2e4122.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9102ed55960999157963c9c47a54f1968f5ceefd","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.89b2e4122.0.tgz","fileCount":44,"integrity":"sha512-ga7lnNa0eOv6Q91SHTMwCvxZM+0A3P3E/dHGz2Qo50DHiM64Ipf3GMe5Gw0ipOGoigbm/OU1xqjzQECxsS8hIw==","signatures":[{"sig":"MEQCIFUTRRa7iVJgaj5GU8gagEz2ZOVhW+sMejoeuC59dtB6AiBWjla5FpmNxk8x87UFmd9BFQzlDU3pE5HsTTqVYVksyA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"68bd55db9489546e515443239f477836e16db19b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.89b2e4122.0","@material/base":"15.0.0-canary.89b2e4122.0","@material/shape":"15.0.0-canary.89b2e4122.0","@material/theme":"15.0.0-canary.89b2e4122.0","@material/ripple":"15.0.0-canary.89b2e4122.0","@material/animation":"15.0.0-canary.89b2e4122.0","@material/elevation":"15.0.0-canary.89b2e4122.0","@material/typography":"15.0.0-canary.89b2e4122.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.89b2e4122.0_1693498079720_0.437722383086222","host":"s3://npm-registry-packages"}},"15.0.0-canary.7a3942e7a.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.7a3942e7a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.7a3942e7a.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"087779c8c47f57bbd55716ee96899be87dbb00e7","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.7a3942e7a.0.tgz","fileCount":44,"integrity":"sha512-x0JkwlG/BlgdRI3e60JTsvV+wg/tZf9rZ9U57ROnuD2SboKMMp3/zkzpTIJdRpueNxn57MGSrxY8b/EhREUa9A==","signatures":[{"sig":"MEYCIQD+jEVSO/km9Irgeqp2WwMIygYDyYa+ZYdp9vduRj+/awIhAILMgOu234G1OazRnn+SrOpxopnTLonyRLR9L19eF/91","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e61dc0a16a5b376c778548e5a6cecb56f5c5704d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.7a3942e7a.0","@material/base":"15.0.0-canary.7a3942e7a.0","@material/shape":"15.0.0-canary.7a3942e7a.0","@material/theme":"15.0.0-canary.7a3942e7a.0","@material/ripple":"15.0.0-canary.7a3942e7a.0","@material/animation":"15.0.0-canary.7a3942e7a.0","@material/elevation":"15.0.0-canary.7a3942e7a.0","@material/typography":"15.0.0-canary.7a3942e7a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.7a3942e7a.0_1693507250910_0.8559656447995143","host":"s3://npm-registry-packages"}},"15.0.0-canary.54feb3020.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.54feb3020.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.54feb3020.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b4d1c8f53fe3bfdf234a5163447cba8785fb16c5","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.54feb3020.0.tgz","fileCount":44,"integrity":"sha512-VZyfGfUrCWANTxagrycW7st66HIckUS6ja7pGV+zUZwyqrifYlrStBVEQlLhpb5ReKvRnu5NeeJVJdQ+pxDvDw==","signatures":[{"sig":"MEUCIQDVWbNJ0O0uBsmrdy8yH9n3YGPVX8kGgejr328p3cWVmAIgPXcvnj4QxkTTReJ2Ho2pJw+63QrCBfHeUhrrTLGEIlY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"5dc5cb94463af21f898ddd58cc4d9e4fbf803222","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.54feb3020.0","@material/base":"15.0.0-canary.54feb3020.0","@material/shape":"15.0.0-canary.54feb3020.0","@material/theme":"15.0.0-canary.54feb3020.0","@material/ripple":"15.0.0-canary.54feb3020.0","@material/animation":"15.0.0-canary.54feb3020.0","@material/elevation":"15.0.0-canary.54feb3020.0","@material/typography":"15.0.0-canary.54feb3020.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.54feb3020.0_1694466374280_0.2079837527265349","host":"s3://npm-registry-packages"}},"15.0.0-canary.6cda3ce8d.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.6cda3ce8d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.6cda3ce8d.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7c330836f308a6818dd23a68227d836bacb8fe86","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.6cda3ce8d.0.tgz","fileCount":44,"integrity":"sha512-aGdOxorJWtfCRuv4HHsuUn7DEmiRXlB0kKBuJbwS3XySMtbCzGJpuUWO9/k00ccMEQNexo9TCSPgc/xSVNoMuw==","signatures":[{"sig":"MEUCIQCS2aPMM4MXUxq3w8+Gd4K1a9BRbUKHo3yKvnJHAHBd6AIgPgS0Yi/ftSJUdBdYA3BZ5xyUr64yOsk0a6mXZZ7DzXk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"adb36c6339e7bf37fe1e8ca96526a9673ca602e7","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.6cda3ce8d.0","@material/base":"15.0.0-canary.6cda3ce8d.0","@material/shape":"15.0.0-canary.6cda3ce8d.0","@material/theme":"15.0.0-canary.6cda3ce8d.0","@material/ripple":"15.0.0-canary.6cda3ce8d.0","@material/animation":"15.0.0-canary.6cda3ce8d.0","@material/elevation":"15.0.0-canary.6cda3ce8d.0","@material/typography":"15.0.0-canary.6cda3ce8d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.6cda3ce8d.0_1694483183371_0.8443955387283479","host":"s3://npm-registry-packages"}},"15.0.0-canary.205b20b36.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.205b20b36.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.205b20b36.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5e86fd760e16243a89e932661280d7af99f6ad6c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.205b20b36.0.tgz","fileCount":44,"integrity":"sha512-n+Tt8R99SHJpDgJBI75D/sRF42zXo4b1wWc7AJzeqGAFIzP77f8+dxBQRCoWzI/eTHYONtFprYDL++AE9E876g==","signatures":[{"sig":"MEUCIQCz3LhGoopmCkjJ7npOVODPh3gns0djisFYS/9WEOCAEAIgcu2UNE4DG8WovnwNY7ee1ifDka+MU5RXH244jMXRuIE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"00fdcf619c34c502844acb0f2485e99595aa138d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.205b20b36.0","@material/base":"15.0.0-canary.205b20b36.0","@material/shape":"15.0.0-canary.205b20b36.0","@material/theme":"15.0.0-canary.205b20b36.0","@material/ripple":"15.0.0-canary.205b20b36.0","@material/animation":"15.0.0-canary.205b20b36.0","@material/elevation":"15.0.0-canary.205b20b36.0","@material/typography":"15.0.0-canary.205b20b36.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.205b20b36.0_1694625473664_0.7183994340813276","host":"s3://npm-registry-packages"}},"15.0.0-canary.22bf82024.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.22bf82024.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.22bf82024.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"93631820cc4a22b53641ffce2ee9f82cb000df1b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.22bf82024.0.tgz","fileCount":44,"integrity":"sha512-v97coSMX4PZVmh4RjlbNGSdbQQHiz46c8KTjRmrJQ7fm4Z2ZFgPq9dRtIpiW5IONqf9bOTPE1CF3Ez2py4iRVw==","signatures":[{"sig":"MEQCIHGOqR2NjaCBo2UP/zce15T0d2oEd+Gc4wkQuoS0949SAiASfwgSkwmF0jBKK6gKj8cKx2hCnn+cNDtAohPufmX1Dg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439708},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"eda4fad2a8a727b69db60b828bd92df7a8956143","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.22bf82024.0","@material/base":"15.0.0-canary.22bf82024.0","@material/shape":"15.0.0-canary.22bf82024.0","@material/theme":"15.0.0-canary.22bf82024.0","@material/ripple":"15.0.0-canary.22bf82024.0","@material/animation":"15.0.0-canary.22bf82024.0","@material/elevation":"15.0.0-canary.22bf82024.0","@material/typography":"15.0.0-canary.22bf82024.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.22bf82024.0_1695028380109_0.4254927005973661","host":"s3://npm-registry-packages"}},"15.0.0-canary.a246a4439.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a246a4439.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a246a4439.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5ca10581940fec75c0da84bb232dc6bb421a3ab2","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a246a4439.0.tgz","fileCount":44,"integrity":"sha512-twQchmCa1In/FFrALPYojgeM8vmV7KH96wRY9NmPSJ046ANgPCicLBgLuSzrLETCFqAwbztqzxSG4xMBL81rYg==","signatures":[{"sig":"MEYCIQCgnwHpmS6i6fpwVPpwq548igAN7fF2SlZo2DLClV2MLgIhAP4hHtT00r700CoBnU5NBtnEBciPdM1WzphVCnHqJYz9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439964},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"40201df8b7e53b61aead4acdfa34b48fb1d155b8","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a246a4439.0","@material/base":"15.0.0-canary.a246a4439.0","@material/shape":"15.0.0-canary.a246a4439.0","@material/theme":"15.0.0-canary.a246a4439.0","@material/ripple":"15.0.0-canary.a246a4439.0","@material/animation":"15.0.0-canary.a246a4439.0","@material/elevation":"15.0.0-canary.a246a4439.0","@material/typography":"15.0.0-canary.a246a4439.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a246a4439.0_1695059232558_0.704722247671109","host":"s3://npm-registry-packages"}},"15.0.0-canary.d153db62b.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.d153db62b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.d153db62b.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"49c0143c673ae8f704b2bf4d625f5c6083eb16da","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.d153db62b.0.tgz","fileCount":44,"integrity":"sha512-UBHuE7lNi+fNcptdMWLvy3escakiwpC2rWbbcG4rfkjyP4aJeQqvvUpqG/Zmk3jPN+S2zW+w12lP+WQdDCcbmA==","signatures":[{"sig":"MEUCIQDFlGnIe6+PWFXUD5Opn07FCcQqiolnOrxnh2ZokeXIZAIgTzrabowF7U0wfJPEEPYfAnT+j7i84Wqa1G4h7ZXccEU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439964},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4ca05c144c691cd06cd5926fe0bc54818e462202","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.d153db62b.0","@material/base":"15.0.0-canary.d153db62b.0","@material/shape":"15.0.0-canary.d153db62b.0","@material/theme":"15.0.0-canary.d153db62b.0","@material/ripple":"15.0.0-canary.d153db62b.0","@material/animation":"15.0.0-canary.d153db62b.0","@material/elevation":"15.0.0-canary.d153db62b.0","@material/typography":"15.0.0-canary.d153db62b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.d153db62b.0_1695150972654_0.6287376644478393","host":"s3://npm-registry-packages"}},"15.0.0-canary.2528c1c3b.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.2528c1c3b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.2528c1c3b.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"94ed55075c3f664441f327edd76aa3bcab99baca","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.2528c1c3b.0.tgz","fileCount":44,"integrity":"sha512-NtCjJe+/Mxx9Ncw48IvlK36eZOTL+cGfPTv1yGTCyBu1hKjUdVsPbQhq2e11VH2L4q1cDYQ33R6W5hKMuOs+xg==","signatures":[{"sig":"MEUCIFUdOvFmDEvuXAuY+ehWZenaGyMKE0DEVfKLrllVMgQlAiEAiJ2BpDiOj3sA63SdKgfUjZQPfTFBHTzKcjpG2nkQYtQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1439964},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"98b5b57bd5356f48610a254e8c4acff388d5fb7b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.2528c1c3b.0","@material/base":"15.0.0-canary.2528c1c3b.0","@material/shape":"15.0.0-canary.2528c1c3b.0","@material/theme":"15.0.0-canary.2528c1c3b.0","@material/ripple":"15.0.0-canary.2528c1c3b.0","@material/animation":"15.0.0-canary.2528c1c3b.0","@material/elevation":"15.0.0-canary.2528c1c3b.0","@material/typography":"15.0.0-canary.2528c1c3b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.2528c1c3b.0_1695233265859_0.8007568629816173","host":"s3://npm-registry-packages"}},"15.0.0-canary.1728a6dcf.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.1728a6dcf.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.1728a6dcf.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"0249ca308a14ac620327a764882cffb2e3689058","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.1728a6dcf.0.tgz","fileCount":44,"integrity":"sha512-a2xiG6Mc3HQEa+jaJZYAX8nW2AOzeh2ydXshOtWMpojXT1ofMjnzV605NlZiUWgIuR1A/SLZBQqmDUIHpS+yxw==","signatures":[{"sig":"MEUCIGPG/LtQbDVc3KvXLDJVNH/7HIzuv382hHlzwLbGS45kAiEAr+21cLMDHYWdZmhWX2lRnE9jW/l7IfCUFn3mbNWWYYI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1441365},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"3828aedf4f344a948780a69956ca4f069cef3daa","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.1728a6dcf.0","@material/base":"15.0.0-canary.1728a6dcf.0","@material/shape":"15.0.0-canary.1728a6dcf.0","@material/theme":"15.0.0-canary.1728a6dcf.0","@material/ripple":"15.0.0-canary.1728a6dcf.0","@material/animation":"15.0.0-canary.1728a6dcf.0","@material/elevation":"15.0.0-canary.1728a6dcf.0","@material/typography":"15.0.0-canary.1728a6dcf.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.1728a6dcf.0_1695691454595_0.9140864863092011","host":"s3://npm-registry-packages"}},"15.0.0-canary.ebb636f3d.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.ebb636f3d.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.ebb636f3d.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fc4bea2f87f013d00d23d6d1aeff85e2f84aabd8","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.ebb636f3d.0.tgz","fileCount":44,"integrity":"sha512-Cq5QN42GQIgfbAZ4U8lYwwUZ6hKX81VbOsVkAcTKAyQ2EiGbtqyfsHTJsfioCLuhAd5lfMbduyc5YPWbv3J21g==","signatures":[{"sig":"MEYCIQCTUW2xCMUnePN/xNERVMJm1CvuaOpxxR1gsaqQ3IgD5QIhAKYkpUmVlRpmxgP7L2J/H5JrZx/dLcUCW2JU9zE0IVsp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1441365},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"6f62607a00dd885ebbe422b247dc4acc1ded22cb","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.ebb636f3d.0","@material/base":"15.0.0-canary.ebb636f3d.0","@material/shape":"15.0.0-canary.ebb636f3d.0","@material/theme":"15.0.0-canary.ebb636f3d.0","@material/ripple":"15.0.0-canary.ebb636f3d.0","@material/animation":"15.0.0-canary.ebb636f3d.0","@material/elevation":"15.0.0-canary.ebb636f3d.0","@material/typography":"15.0.0-canary.ebb636f3d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.ebb636f3d.0_1696016723680_0.8291204290208609","host":"s3://npm-registry-packages"}},"15.0.0-canary.c0d21ecc9.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.c0d21ecc9.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.c0d21ecc9.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"29fa2e1e355397d1abb0f0aed94dc968171a0669","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.c0d21ecc9.0.tgz","fileCount":44,"integrity":"sha512-hLkDg7HUrZoqaIIlEW76gkMy8TyXEFL7N9Nau6d3JdHk7zRNcGPnXtOg+cda1PN7jTrG3+wugB2Vgdf0LQynZw==","signatures":[{"sig":"MEYCIQCRvxmFTG2ojAE8C2PD4872KYkZY5hXQlsmxKnhomqyVwIhAM0pBFLHvPoHulFfRkfs7vCvQh455ilcanMZ9DtMpKTf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1441365},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0a932ea790a12d359ce4ec7c5c4c7aec7edf565d","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.c0d21ecc9.0","@material/base":"15.0.0-canary.c0d21ecc9.0","@material/shape":"15.0.0-canary.c0d21ecc9.0","@material/theme":"15.0.0-canary.c0d21ecc9.0","@material/ripple":"15.0.0-canary.c0d21ecc9.0","@material/animation":"15.0.0-canary.c0d21ecc9.0","@material/elevation":"15.0.0-canary.c0d21ecc9.0","@material/typography":"15.0.0-canary.c0d21ecc9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.c0d21ecc9.0_1696880268723_0.37181586054877513","host":"s3://npm-registry-packages"}},"15.0.0-canary.127a44b28.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.127a44b28.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.127a44b28.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"7ad7ff502b1c9e319b7707834e0f9eb9ccbf676a","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.127a44b28.0.tgz","fileCount":44,"integrity":"sha512-mn1bf2fMFntlp1wXFjsZ4B2V2AQYN7aQGSlslHvEEsvaX5PGkSzUn4wDEZm7xObOlHu1PT4Y3ht6i06v/Go5yA==","signatures":[{"sig":"MEUCIFlDl9M+P4MSr0sVgTvWZyg6hhwAUaw//kYYPVPnydXbAiEAmRVH4D7cvw6F9QeU5XIsFTWXSNC9Z+8US/c9BKrYzt4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1444000},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"88d1fc2c5354e751ea3ab567d26bb1886ee152d3","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.127a44b28.0","@material/base":"15.0.0-canary.127a44b28.0","@material/shape":"15.0.0-canary.127a44b28.0","@material/theme":"15.0.0-canary.127a44b28.0","@material/ripple":"15.0.0-canary.127a44b28.0","@material/animation":"15.0.0-canary.127a44b28.0","@material/elevation":"15.0.0-canary.127a44b28.0","@material/typography":"15.0.0-canary.127a44b28.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.127a44b28.0_1697140897785_0.8728227879222628","host":"s3://npm-registry-packages"}},"15.0.0-canary.0ad128337.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.0ad128337.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.0ad128337.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"e91f3bf73cef2b14c0a35dcd2eb086cf75f0da35","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.0ad128337.0.tgz","fileCount":44,"integrity":"sha512-UWJrKZnpIZmHCt2Vrp4hjx1/K4ws1h1/iOQKg7LHfJuDaIEfRNGftPLX4KI8Q/u2D0Csxvjg6TuwXC2KBpx2vg==","signatures":[{"sig":"MEUCIQDRaWfVySDASumAftgAu6bqbOquUp9B3JfgLff4Y0KQmQIgbdMrK7FkAn0wY018eLc7pK+m7IXRr6YRjCNMAx58Xxk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1444000},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"bb76f531b61a52aae34c7a1efa45824fd32e49f4","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.0ad128337.0","@material/base":"15.0.0-canary.0ad128337.0","@material/shape":"15.0.0-canary.0ad128337.0","@material/theme":"15.0.0-canary.0ad128337.0","@material/ripple":"15.0.0-canary.0ad128337.0","@material/animation":"15.0.0-canary.0ad128337.0","@material/elevation":"15.0.0-canary.0ad128337.0","@material/typography":"15.0.0-canary.0ad128337.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.0ad128337.0_1697741592669_0.15852006940111663","host":"s3://npm-registry-packages"}},"15.0.0-canary.9cec94097.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.9cec94097.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.9cec94097.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"16e42b42b95f6695018a38f4fffdeb4d0caeb954","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.9cec94097.0.tgz","fileCount":44,"integrity":"sha512-GEnClDR+5l0bC+RVjdtT6xrNh5ZPEjLv0178gsfhHBBZdp6pcAo+3FngbDp2+uSXHdB5kSTouOUz7kEwytWpVw==","signatures":[{"sig":"MEYCIQCP9U0PoDVl8xkppcs6nad85vpmT7U+hk3+H5m1dymxIgIhALMxsQlmueevdnzrxAq8ZRV21LanuQLz+ZM0tSDnDLF+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1444000},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1a8019402daf97efb72456551503dfb3fa31466b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.9cec94097.0","@material/base":"15.0.0-canary.9cec94097.0","@material/shape":"15.0.0-canary.9cec94097.0","@material/theme":"15.0.0-canary.9cec94097.0","@material/ripple":"15.0.0-canary.9cec94097.0","@material/animation":"15.0.0-canary.9cec94097.0","@material/elevation":"15.0.0-canary.9cec94097.0","@material/typography":"15.0.0-canary.9cec94097.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.9cec94097.0_1697757027125_0.6024667476258063","host":"s3://npm-registry-packages"}},"15.0.0-canary.c51a0bbcc.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.c51a0bbcc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.c51a0bbcc.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"25547556223c360ba521c0a429a9b58f3e4a8b8f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.c51a0bbcc.0.tgz","fileCount":44,"integrity":"sha512-OXAqippAL27lz9tRQ/ZJJseVIhCN5aKkBhp785Owy2LzM9eF115xKcImKqQ2hbgUBQEcPmruO2YuRw5ug8xd1Q==","signatures":[{"sig":"MEYCIQCXTHQcZnAJuY3GNZc3EUwVS63KW572O8xKIOhJors6GwIhAMPUatopiAo8Wuyx55H2+fgIKtivSYeKUzMAfRULQ+vo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1443951},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e65c7fe6dcc6d6069f00d4d2f8c55e61710d046b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.c51a0bbcc.0","@material/base":"15.0.0-canary.c51a0bbcc.0","@material/shape":"15.0.0-canary.c51a0bbcc.0","@material/theme":"15.0.0-canary.c51a0bbcc.0","@material/ripple":"15.0.0-canary.c51a0bbcc.0","@material/animation":"15.0.0-canary.c51a0bbcc.0","@material/elevation":"15.0.0-canary.c51a0bbcc.0","@material/typography":"15.0.0-canary.c51a0bbcc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.c51a0bbcc.0_1700081946926_0.6670078425542683","host":"s3://npm-registry-packages"}},"15.0.0-canary.d76666ad4.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.d76666ad4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.d76666ad4.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"9b7d3f79ec4816be567b42193cbc6daca5f3c980","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.d76666ad4.0.tgz","fileCount":44,"integrity":"sha512-a//0mmWHIvhYvnzYr4WKqQwf32hmZKDdTOiZB6fH3sP/tEuNfF/IOQRUyej7kBOu0Hk45do/BEtsXguW5nlj+Q==","signatures":[{"sig":"MEQCIGhx0nGwlqJ9bLp43kDFQzYxJ3R0MKxOjKMqa1NoXlhWAiAkLf1Ed9m+kE9Tr8POKOlF2xAVlm8eK5cACFgOfjCKtA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1443951},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"8fc3640e389fda0098b42091a9a1ab8653fc6470","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.d76666ad4.0","@material/base":"15.0.0-canary.d76666ad4.0","@material/shape":"15.0.0-canary.d76666ad4.0","@material/theme":"15.0.0-canary.d76666ad4.0","@material/ripple":"15.0.0-canary.d76666ad4.0","@material/animation":"15.0.0-canary.d76666ad4.0","@material/elevation":"15.0.0-canary.d76666ad4.0","@material/typography":"15.0.0-canary.d76666ad4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.d76666ad4.0_1701123211838_0.40150965446649955","host":"s3://npm-registry-packages"}},"15.0.0-canary.8656bf0e0.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.8656bf0e0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.8656bf0e0.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"31d542a3425b3e9a3f9fe704bbdbc1fb9bafe390","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.8656bf0e0.0.tgz","fileCount":44,"integrity":"sha512-DZ/t8kSFimhqqfphraM0wV8SbIouUgt7j/YH81BkWYIZVwDLbq96hTNKD7lyzilVzo24IUeflRNAZNqmIwXUFQ==","signatures":[{"sig":"MEYCIQDWoYGHbPn/B3V52Xoy0PR4E948wDPO3HlLdvpIFg9xhgIhALlBgEZ0/DW8qOhPKrgdEGPHkbvVi6HceYlTYxgSGyKK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1443951},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"36cab37e468233da3044a10c1df388f634163cc1","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.8656bf0e0.0","@material/base":"15.0.0-canary.8656bf0e0.0","@material/shape":"15.0.0-canary.8656bf0e0.0","@material/theme":"15.0.0-canary.8656bf0e0.0","@material/ripple":"15.0.0-canary.8656bf0e0.0","@material/animation":"15.0.0-canary.8656bf0e0.0","@material/elevation":"15.0.0-canary.8656bf0e0.0","@material/typography":"15.0.0-canary.8656bf0e0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.8656bf0e0.0_1702415943045_0.5817245584449504","host":"s3://npm-registry-packages"}},"15.0.0-canary.7f224ddd4.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.7f224ddd4.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.7f224ddd4.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ac042d558f0763e8e9f8e48504eac7062882f353","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.7f224ddd4.0.tgz","fileCount":44,"integrity":"sha512-SARR5/ClYT4CLe9qAXakbr0i0cMY0V3V4pe3ElIJPfL2Z2c4wGR1mTR8m2LxU1MfGKK8aRoUdtfKaxWejp+eNA==","signatures":[{"sig":"MEYCIQDcknmjVNs9BQQomW3upnEJoLw186VWOtje7Rcm/vLQAQIhAPIYtQonsfrVO33xA32skdQ8GcdAytDLeIA33ej+BIgq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1443951},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ff8ff3ce455054f1532d1ae0983f40634a524886","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.7f224ddd4.0","@material/base":"15.0.0-canary.7f224ddd4.0","@material/shape":"15.0.0-canary.7f224ddd4.0","@material/theme":"15.0.0-canary.7f224ddd4.0","@material/ripple":"15.0.0-canary.7f224ddd4.0","@material/animation":"15.0.0-canary.7f224ddd4.0","@material/elevation":"15.0.0-canary.7f224ddd4.0","@material/typography":"15.0.0-canary.7f224ddd4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.7f224ddd4.0_1703743777535_0.6753818391001698","host":"s3://npm-registry-packages"}},"15.0.0-canary.a0b8a90c0.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.a0b8a90c0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.a0b8a90c0.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"17351198f22ec3dad65637354fbda8501aa50099","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.a0b8a90c0.0.tgz","fileCount":44,"integrity":"sha512-SBRCtExXA/t7Gx1egDLvO8vL9jXZr8FKHUkoDukIjzhrnDxN6D43bqQJBg67Hs5J9GfoB6E3V6odShYu5gIcPg==","signatures":[{"sig":"MEUCIEnIFOt6jqo97fq5h2sPx+sfnQAhQtC86ri1XH8AGSqMAiEAipj4XkUfxFILiesHCejJtZEZ2FILCi3Iry6WIYEPqIA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1443951},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"85d5965379b080c9f852ecbbd95031e363636dfd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.a0b8a90c0.0","@material/base":"15.0.0-canary.a0b8a90c0.0","@material/shape":"15.0.0-canary.a0b8a90c0.0","@material/theme":"15.0.0-canary.a0b8a90c0.0","@material/ripple":"15.0.0-canary.a0b8a90c0.0","@material/animation":"15.0.0-canary.a0b8a90c0.0","@material/elevation":"15.0.0-canary.a0b8a90c0.0","@material/typography":"15.0.0-canary.a0b8a90c0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.a0b8a90c0.0_1707333595152_0.8049539024155998","host":"s3://npm-registry-packages"}},"15.0.0-canary.e50b478eb.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.e50b478eb.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.e50b478eb.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"15b24c287b79d4fb12f6544b29aaf4add87c0b7f","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.e50b478eb.0.tgz","fileCount":44,"integrity":"sha512-ejl9Gd82dz4vZDCg03iwyxhJhnYNhTwDlh4ngkSn1Sjs6cSakG2Vky9r7eEXhQ+Bkw8Sgz+YRBpMZgJmIi+37w==","signatures":[{"sig":"MEYCIQDu1PmwIEX7cfTI07szmnqmjAti+8fLH3W5pQ8McVguSgIhAKK1Jl+WQNi6gdDzd5jYlQwbzdnUCJTy3gRICxfdNYwa","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1443951},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"4691455eaee76f99b18be70913c9fefb7cf3c2ae","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.e50b478eb.0","@material/base":"15.0.0-canary.e50b478eb.0","@material/shape":"15.0.0-canary.e50b478eb.0","@material/theme":"15.0.0-canary.e50b478eb.0","@material/ripple":"15.0.0-canary.e50b478eb.0","@material/animation":"15.0.0-canary.e50b478eb.0","@material/elevation":"15.0.0-canary.e50b478eb.0","@material/typography":"15.0.0-canary.e50b478eb.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.e50b478eb.0_1707415709971_0.7286521347170825","host":"s3://npm-registry-packages"}},"15.0.0-canary.c43b3438b.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.c43b3438b.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.c43b3438b.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"fac4a79a5c41303946c72b996f9f24775fcea961","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.c43b3438b.0.tgz","fileCount":44,"integrity":"sha512-/twBTZM1GIvoWzcjJfLxp2pJmQDAEjn5RwT1XfOByyixYH0flNYaOkAFv3lAts94XrjF4OO+NfYvHX8os75bXg==","signatures":[{"sig":"MEQCIFVThLAPjvrUZ7HYKlm4KLayZn8AqxzJjgvpGLTtmDM/AiA++4/e0Hs2NCstLou+BrlUmq7D1rw0YYl/+0PrczOCpQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1443951},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"e69adcf897de97b302f026f07bbc2571b1a488ca","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.c43b3438b.0","@material/base":"15.0.0-canary.c43b3438b.0","@material/shape":"15.0.0-canary.c43b3438b.0","@material/theme":"15.0.0-canary.c43b3438b.0","@material/ripple":"15.0.0-canary.c43b3438b.0","@material/animation":"15.0.0-canary.c43b3438b.0","@material/elevation":"15.0.0-canary.c43b3438b.0","@material/typography":"15.0.0-canary.c43b3438b.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.c43b3438b.0_1708719482451_0.5234716782601763","host":"s3://npm-registry-packages"}},"15.0.0-canary.819498d8c.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.819498d8c.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.819498d8c.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5b8d6b352069a90239e6f8fa81b725240b0fe69e","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.819498d8c.0.tgz","fileCount":44,"integrity":"sha512-KdrdNN76okD+c5UWstWhnAH98gopBKBHqZj4ELm1M6ErhuB13o3US6MByDDXy8WVVhL0qJJ4tI1zYsu5KBC4KA==","signatures":[{"sig":"MEUCIQCxXA2g2BUnn37tV6rggRSBm1C3ptQ4+0MN5dHd5yv+3QIgL+aNtO4y70IxukRCsJzi9MdfRNxxQOUP2YAYJUSJXHo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1443951},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"886876a8252aacefe1942b13ba9251af9204bcdd","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.819498d8c.0","@material/base":"15.0.0-canary.819498d8c.0","@material/shape":"15.0.0-canary.819498d8c.0","@material/theme":"15.0.0-canary.819498d8c.0","@material/ripple":"15.0.0-canary.819498d8c.0","@material/animation":"15.0.0-canary.819498d8c.0","@material/elevation":"15.0.0-canary.819498d8c.0","@material/typography":"15.0.0-canary.819498d8c.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.819498d8c.0_1710515731266_0.7015688025095836","host":"s3://npm-registry-packages"}},"15.0.0-canary.453a6248a.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.453a6248a.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.453a6248a.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6ecb096cda75bd2a78813574bed501bcda12e41d","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.453a6248a.0.tgz","fileCount":44,"integrity":"sha512-+Lv7KN1U7bE9vRzjsuwRIrKlcfSAU/9GYnz6ah/A0DoAP0XzL26ZvOUjRGyQW+RNYo2OPima9a5eUqfOJ92ouw==","signatures":[{"sig":"MEUCIGtZ/8P+/e6ch7eC960CzhVTJRAR/+XgyteyaUUlfQwBAiEA2DNvgeQxZWnnrX8a9rBdW6bTX3O/2tvAy0iaUXxR82I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1443951},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1eea6443d63f2bc64fe8f6f86664b54266c41244","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.453a6248a.0","@material/base":"15.0.0-canary.453a6248a.0","@material/shape":"15.0.0-canary.453a6248a.0","@material/theme":"15.0.0-canary.453a6248a.0","@material/ripple":"15.0.0-canary.453a6248a.0","@material/animation":"15.0.0-canary.453a6248a.0","@material/elevation":"15.0.0-canary.453a6248a.0","@material/typography":"15.0.0-canary.453a6248a.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.453a6248a.0_1711386842463_0.2186100567746223","host":"s3://npm-registry-packages"}},"15.0.0-canary.68edc03c6.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.68edc03c6.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.68edc03c6.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"6185daff9489008da6e06c98515e350249a041cf","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.68edc03c6.0.tgz","fileCount":44,"integrity":"sha512-JVm/xpCLh3XNIEOGGY9znDdrlhH4rc+aKofR7aJUAsoRlgfJsxnsu6cd2+QPisH3Kapa3kMq0ybmX1Gewmp70A==","signatures":[{"sig":"MEUCIQCWTMKUdT7pNM9YAffU+HEIKOxYdjsHFQsV+dOU3CCSTgIgLurXzNnU3L2ufqv3+729uUVHuqeYXpNxZF2HmZsQ9DE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1443951},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"04046ad51f4d581f93e797ec929d219422dd0235","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.68edc03c6.0","@material/base":"15.0.0-canary.68edc03c6.0","@material/shape":"15.0.0-canary.68edc03c6.0","@material/theme":"15.0.0-canary.68edc03c6.0","@material/ripple":"15.0.0-canary.68edc03c6.0","@material/animation":"15.0.0-canary.68edc03c6.0","@material/elevation":"15.0.0-canary.68edc03c6.0","@material/typography":"15.0.0-canary.68edc03c6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.68edc03c6.0_1712603209106_0.8464664976516945","host":"s3://npm-registry-packages"}},"15.0.0-canary.5bebc0064.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.5bebc0064.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.5bebc0064.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"be4960b079a8bea6e9f2db4cbf0713f2a9b2acf4","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.5bebc0064.0.tgz","fileCount":44,"integrity":"sha512-RsseO9ox+n/WdwgXSZKP1zXsUBPyrN98QRHChusomGo8qieZmeqNvxCwZSNE4BVCVCJjEjayLQGHQ7ZjWeZrzw==","signatures":[{"sig":"MEQCIBbobI/qEw7YYG1NrRrL2+o9jSvu98g4FrzpH5Ji7HdjAiAxDQNqCQNFxT/0VQs+uGzjOZfYxaRRU1Cb6Gi7sGHlIA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1443951},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"ff39e65972de013a29dd14429e111139bc616366","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.5bebc0064.0","@material/base":"15.0.0-canary.5bebc0064.0","@material/shape":"15.0.0-canary.5bebc0064.0","@material/theme":"15.0.0-canary.5bebc0064.0","@material/ripple":"15.0.0-canary.5bebc0064.0","@material/animation":"15.0.0-canary.5bebc0064.0","@material/elevation":"15.0.0-canary.5bebc0064.0","@material/typography":"15.0.0-canary.5bebc0064.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.5bebc0064.0_1712871699922_0.9705748579506284","host":"s3://npm-registry-packages"}},"15.0.0-canary.311f29a60.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.311f29a60.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.311f29a60.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"daf6fd6d966c1fc917bae81bd5ab5bceff787b1b","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.311f29a60.0.tgz","fileCount":44,"integrity":"sha512-2zM1Z16Xdzx0bcrVu7WAaf+k14S9CHJWAgffSqaRZMmKjHSlEtZBeWtLC0nm4YscN6bZCjdUZceNGvKlhFtbvg==","signatures":[{"sig":"MEUCIEvvVD2x0PJ7SVdPCIpEqOc++0hLIj0nedi9fjVJq5GNAiEAgMgUaUgOalKj+wQiSjGyV72/xoyZoRWdVWXrZXqhGug=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1443951},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"7bc0264e163e842f0f96c1dbf7a468c022db1497","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.311f29a60.0","@material/base":"15.0.0-canary.311f29a60.0","@material/shape":"15.0.0-canary.311f29a60.0","@material/theme":"15.0.0-canary.311f29a60.0","@material/ripple":"15.0.0-canary.311f29a60.0","@material/animation":"15.0.0-canary.311f29a60.0","@material/elevation":"15.0.0-canary.311f29a60.0","@material/typography":"15.0.0-canary.311f29a60.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.311f29a60.0_1713895244076_0.526776292052263","host":"s3://npm-registry-packages"}},"15.0.0-canary.65c10a622.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.65c10a622.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.65c10a622.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cba9c4c4d72bcc7725569109dbec18ed9ee06795","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.65c10a622.0.tgz","fileCount":44,"integrity":"sha512-SQSLmpmn8Rf9JRTFXrshY/l2P07ysIMgANgiFNGqw4JFeT2gKRg3zRphf5WNqlHyas/b2zBxNJL/gB2pG4cNEw==","signatures":[{"sig":"MEUCIQCvOP31SB7+IEU+born52d2YRaG6YyFiaFVvtd0kyXb5QIgQcE8DcrMjl4cqdO47GYoemPFLYBV3+omyXVmGIll/44=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1443951},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"1f3126503c812250084b65b6edbb26f25ef4a174","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.65c10a622.0","@material/base":"15.0.0-canary.65c10a622.0","@material/shape":"15.0.0-canary.65c10a622.0","@material/theme":"15.0.0-canary.65c10a622.0","@material/ripple":"15.0.0-canary.65c10a622.0","@material/animation":"15.0.0-canary.65c10a622.0","@material/elevation":"15.0.0-canary.65c10a622.0","@material/typography":"15.0.0-canary.65c10a622.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.65c10a622.0_1714070964187_0.8335309710314587","host":"s3://npm-registry-packages"}},"15.0.0-canary.4b35cb7d0.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.4b35cb7d0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.4b35cb7d0.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"838b7514e4eaf2842136f1709460802f2bc3e533","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.4b35cb7d0.0.tgz","fileCount":44,"integrity":"sha512-qHB3nJPx6aR+gRAP5JV01pMeeh9mMXeOySfds9uMi0u/6sNfWKGJb8/Spj8pcaMGBoZ9QcD2ZyAJe4X+sJOaZQ==","signatures":[{"sig":"MEQCIC1IV7/SuFn4boPBQaPW5rYcNyrhKKcaPtCVQJCMKe58AiBj7XdeoeoG1WWdDHPgh7XmJUP4EOfTxblf0Z0t/4Z6cg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1443951},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"cba29aaa21c1bc2b1f1a02e5ddfa4a5110d9ef63","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.4b35cb7d0.0","@material/base":"15.0.0-canary.4b35cb7d0.0","@material/shape":"15.0.0-canary.4b35cb7d0.0","@material/theme":"15.0.0-canary.4b35cb7d0.0","@material/ripple":"15.0.0-canary.4b35cb7d0.0","@material/animation":"15.0.0-canary.4b35cb7d0.0","@material/elevation":"15.0.0-canary.4b35cb7d0.0","@material/typography":"15.0.0-canary.4b35cb7d0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.4b35cb7d0.0_1714651409164_0.8926427432263659","host":"s3://npm-registry-packages"}},"15.0.0-canary.f80ac92b0.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.f80ac92b0.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.f80ac92b0.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"c0a38def2135a9c5b7129c37377eb30d2f7d4e2c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.f80ac92b0.0.tgz","fileCount":44,"integrity":"sha512-mzX0jH6y08ux9vhq4ug6INHwjsyKBBfLUFjWyrn6sZfSr/CKAKeKfhth1Vd9jRuXcMktGlPKN/fn2zzaR+j5NQ==","signatures":[{"sig":"MEQCICAqArrwgBiGOAJ4HjydWIijaxMq1bZZmiQ7TSf1PubAAiAqo/19R1fbiEHnYsjteWTWlfAwOdwZstH5xKBdHIwK6A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1443951},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"514a3afe9efc5bcebf1ace1e335357184ee1a9e0","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.f80ac92b0.0","@material/base":"15.0.0-canary.f80ac92b0.0","@material/shape":"15.0.0-canary.f80ac92b0.0","@material/theme":"15.0.0-canary.f80ac92b0.0","@material/ripple":"15.0.0-canary.f80ac92b0.0","@material/animation":"15.0.0-canary.f80ac92b0.0","@material/elevation":"15.0.0-canary.f80ac92b0.0","@material/typography":"15.0.0-canary.f80ac92b0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.f80ac92b0.0_1714652017918_0.30958178512845547","host":"s3://npm-registry-packages"}},"15.0.0-canary.2f5b899bc.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.2f5b899bc.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.2f5b899bc.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ab8fea91a0b8d57bd15a490a21d84ca03ffe58d1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.2f5b899bc.0.tgz","fileCount":44,"integrity":"sha512-qJjyyFBQW5VQ7238IoQOBkPWvJrI3O9HAWZ80w7UKOjA5cZwzP+Igb1FeyimJ+f2uJn7NC2T2UQDhXye6+NGZQ==","signatures":[{"sig":"MEYCIQCL/TpQ9pZkZ7baenM53FpOeeOOgzLETSWj5lCA549hiQIhAM9r+8GdRZLpJh9NxvWiRNO0U+1/YES6f2u7QivGeUrz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1443951},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"751553ca74ad43074c963487257a8862de87844b","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.2f5b899bc.0","@material/base":"15.0.0-canary.2f5b899bc.0","@material/shape":"15.0.0-canary.2f5b899bc.0","@material/theme":"15.0.0-canary.2f5b899bc.0","@material/ripple":"15.0.0-canary.2f5b899bc.0","@material/animation":"15.0.0-canary.2f5b899bc.0","@material/elevation":"15.0.0-canary.2f5b899bc.0","@material/typography":"15.0.0-canary.2f5b899bc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.2f5b899bc.0_1716213337802_0.07498723995083467","host":"s3://npm-registry-packages"}},"15.0.0-canary.cfec83c74.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.cfec83c74.0","keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","_id":"@material/top-app-bar@15.0.0-canary.cfec83c74.0","maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"5ee01b8f3c4ce4c29ce54838d8dd42145947d58c","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.cfec83c74.0.tgz","fileCount":44,"integrity":"sha512-DRAQSa63FWBTG4zN0877aB/E6cGXhe15a/Rx/puodreEd38D8gtkRpofqHKxzLd1+eVW97oFEo6uBnPyH+W1eg==","signatures":[{"sig":"MEYCIQDSuH6+SZBCFBaVEVB2lZrN610wPk9Mb3JovgyWEL3iEQIhAOQBhpQcxmZW1XeGYaRDFMoAIrLaSKy24GdNGYQuuEfQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1443951},"main":"dist/mdc.topAppBar.js","module":"index.js","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","gitHead":"0ec8b129344ebbe45f00b6ad892b682b054ea892","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","description":"The Material Components for the web top app bar component","directories":{},"sideEffects":false,"_nodeVersion":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.cfec83c74.0","@material/base":"15.0.0-canary.cfec83c74.0","@material/shape":"15.0.0-canary.cfec83c74.0","@material/theme":"15.0.0-canary.cfec83c74.0","@material/ripple":"15.0.0-canary.cfec83c74.0","@material/animation":"15.0.0-canary.cfec83c74.0","@material/elevation":"15.0.0-canary.cfec83c74.0","@material/typography":"15.0.0-canary.cfec83c74.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/top-app-bar_15.0.0-canary.cfec83c74.0_1716231438292_0.8993373944794278","host":"s3://npm-registry-packages"}},"15.0.0-canary.423edc3dc.0":{"name":"@material/top-app-bar","version":"15.0.0-canary.423edc3dc.0","description":"The Material Components for the web top app bar component","license":"MIT","main":"dist/mdc.topAppBar.js","module":"index.js","sideEffects":false,"repository":{"type":"git","url":"git+https://github.com/material-components/material-components-web.git","directory":"packages/mdc-top-app-bar"},"keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"dependencies":{"@material/animation":"15.0.0-canary.423edc3dc.0","@material/base":"15.0.0-canary.423edc3dc.0","@material/elevation":"15.0.0-canary.423edc3dc.0","@material/ripple":"15.0.0-canary.423edc3dc.0","@material/rtl":"15.0.0-canary.423edc3dc.0","@material/shape":"15.0.0-canary.423edc3dc.0","@material/theme":"15.0.0-canary.423edc3dc.0","@material/typography":"15.0.0-canary.423edc3dc.0","tslib":"^2.1.0"},"publishConfig":{"access":"public"},"gitHead":"19b2c5a95782b4928b3aecb29a1075c42aee53e5","readme":"<!--docs:\ntitle: \"Top App Bar\"\nlayout: detail\nsection: components\nexcerpt: \"A container for items such as application title, navigation icon, and action items.\"\niconId: toolbar\npath: /catalog/top-app-bar/\n-->\n\n# Top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\nThere are two types of top app bar:\n\n1. [Regular top app bar](#regular-top-app-bar)\n1. [Contextual action bar](#contextual-action-bar)\n\nA regular top app bar can transform into a contextual action bar.\n\n![Regular app bar: purple background, white text and icons](images/regular-app-bar.png)\n![Contextual app bar: black background, white text and icons](images/contextual-app-bar.png)\n\n## Using the top app bar\n\n### Installation\n\n```\nnpm install @material/top-app-bar\n```\n\n### Styles\n\n```scss\n@use \"@material/icon-button\";\n@use \"@material/top-app-bar/mdc-top-app-bar\";\n\n@include icon-button.core-styles;\n```\n\n### JavaScript Instantiation\n\n```js\nimport {MDCTopAppBar} from '@material/top-app-bar';\n\n// Instantiation\nconst topAppBarElement = document.querySelector('.mdc-top-app-bar');\nconst topAppBar = new MDCTopAppBar(topAppBarElement);\n```\n\n**Note: See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.**\n\n## Regular top app bar\n\nThe top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.\n\n### Regular top app bar example\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Open navigation menu\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Page title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Favorite\">favorite</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Search\">search</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Options\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n#### Menu icons\n\nTop app bars can contain action items which are placed on the side opposite the navigation icon. You must also attach the `mdc-icon-button` class to both the `mdc-top-app-bar__navigation-icon` and the `mdc-top-app-bar__action-item` elements in order to get the correct styles applied. \n\nFor further documentation on icons, please see the [mdc-icon-button docs](../mdc-icon-button/README.md).\n\n## Contextual action bar\n\nA top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.\n\nWhen a top app bar transforms into a contextual action bar, the following changes occur:\n\n* The bar color changes\n* Navigation icon is replaced with a close icon\n* Top app bar title text converts to contextual action bar text\n* Top app bar actions are replaced with contextual actions\n* Upon closing, the contextual action bar transforms back into a top app bar.\n\n### Contextual action bar example\n\nThe following example shows a contextual action bar with a contextual title, a close icon, two contextual action icons, and an overflow menu:\n\n```html\n<header class=\"mdc-top-app-bar\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\" aria-label=\"Close\">close</button>\n      <span class=\"mdc-top-app-bar__title\">Contextual title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Share\">share</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Delete\">delete</button>\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Open menu\">more_vert</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n````\n\n## Other Variants\n\n### Short\n\nShort top app bars are top app bars that can collapse to the navigation icon side when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short\">\n  <div class=\"mdc-top-app-bar__row\">\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-start\">\n      <button class=\"material-icons mdc-top-app-bar__navigation-icon mdc-icon-button\">menu</button>\n      <span class=\"mdc-top-app-bar__title\">Title</span>\n    </section>\n    <section class=\"mdc-top-app-bar__section mdc-top-app-bar__section--align-end\" role=\"toolbar\">\n      <button class=\"material-icons mdc-top-app-bar__action-item mdc-icon-button\" aria-label=\"Bookmark this page\">bookmark</button>\n    </section>\n  </div>\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n**Note: Short top app bars should be used with no more than 1 action item.**\n\n### Short - always closed\n\nShort top app bars can be configured to always appear collapsed by applying the `mdc-top-app-bar--short-collapsed` before instantiating the component :\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--short mdc-top-app-bar--short-collapsed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--short-fixed-adjust\">\n  App content\n</main>\n```\n\n### Fixed\n\nFixed top app bars stay at the top of the page and elevate above the content when scrolled.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--fixed\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--fixed-adjust\">\n  App content\n</main>\n```\n\n### Prominent\n\nThe prominent top app bar is taller.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--prominent\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--prominent-fixed-adjust\">\n  App content\n</main>\n```\n\n### Dense\n\nThe dense top app bar is shorter.\n\n```html\n<header class=\"mdc-top-app-bar mdc-top-app-bar--dense\">\n  ...\n</header>\n<main class=\"mdc-top-app-bar--dense-fixed-adjust\">\n  App content\n</main>\n```\n\n## Style customization\n\n### CSS classes\n\nClass | Description\n--- | ---\n`mdc-top-app-bar` | Mandatory.\n`mdc-top-app-bar--fixed` | Class used to style the top app bar as a fixed top app bar.\n`mdc-top-app-bar--fixed-adjust` | Class used to style the content below the top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--prominent` | Class used to style the top app bar as a prominent top app bar.\n`mdc-top-app-bar--prominent-fixed-adjust` | Class used to style the content below the prominent top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense` | Class used to style the top app bar as a dense top app bar.\n`mdc-top-app-bar--dense-fixed-adjust` | Class used to style the content below the dense top app bar to prevent the top app bar from covering it.\n`mdc-top-app-bar--dense-prominent-fixed-adjust` | Class used to style the content below the top app bar when styled as both dense and prominent, to prevent the top app bar from covering it.\n`mdc-top-app-bar--short` | Class used to style the top app bar as a short top app bar.\n`mdc-top-app-bar--short-collapsed` | Class used to indicate the short top app bar is collapsed.\n`mdc-top-app-bar--short-fixed-adjust` | Class used to style the content below the short top app bar to prevent the top app bar from covering it.\n\n### Sass mixins\n\nMixin | Description\n--- | ---\n`ink-color($color)` | Sets the ink color of the top app bar.\n`icon-ink-color($color)` | Sets the ink color of the top app bar icons.\n`fill-color($color)` | Sets the fill color of the top app bar.\n`fill-color-accessible($color)` | Sets the fill color of the top app bar and automatically sets a high-contrast ink color.\n`short-shape-radius($radius, $rtl-reflexive)` | Sets the rounded shape to short top app bar variant (when it is collapsed) with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to true.\n\n## `MDCTopAppBar` properties and methods\n\nMethod Signature | Description\n--- | ---\n`setScrollTarget(target: element) => void` | Sets scroll target to different DOM node (default is window).\n\n### Events\n\nEvent Name | Event Data Structure | Description\n--- | --- | ---\n`MDCTopAppBar:nav` | None | Emits when the navigation icon is clicked.\n\n## Usage within web frameworks\n\nIf you are using a JavaScript framework, such as React or Angular, you can create a Top App Bar for your framework. Depending on your needs, you can use the _Simple Approach: Wrapping MDC Web Vanilla Components_, or the _Advanced Approach: Using Foundations and Adapters_. Please follow the instructions [here](../../docs/integrating-into-frameworks.md).\n\n### `MDCTopAppBarAdapter`\n\nMethod Signature | Description\n--- | ---\n`addClass(className: string) => void` | Adds a class to the root element of the component.\n`removeClass(className: string) => void` | Removes a class from the root element of the component.\n`hasClass(className: string) => boolean` | Checks if the root element of the component has the given className.\n`setStyle(property: string, value: string) => void` | Sets the specified CSS property to the given value on the root element.\n`getTopAppBarHeight() => number` | Gets the height in px of the top app bar.\n`getViewportScrollY() => number` | Gets the number of pixels that the content of body is scrolled from the top of the page.\n`getTotalActionItems() => number` | Gets the number of action items in the top app bar.\n`notifyNavigationIconClicked() => void` | Emits a custom event `MDCTopAppBar:nav` when the navigation icon is clicked.\n\n### Foundations\n\n#### `MDCTopAppBarBaseFoundation`, `MDCTopAppBarFoundation`, `MDCFixedTopAppBarFoundation` and `MDCShortTopAppBarFoundation`\n\nAll foundations provide the following methods:\n\nMethod Signature | Description\n--- | ---\n`handleTargetScroll() => void` | Handles `scroll` event on specified scrollTarget (defaults to `window`).\n`handleWindowResize() => void` | Handles `resize` event on window.\n`handleNavigationClick() => void` | Handles `click` event on navigation icon.\n\n#### `MDCShortTopAppBarFoundation`\n\nIn addition to the methods above, the short variant provides the following public methods and properties:\n\nMethod Signature | Description\n--- | ---\n`setAlwaysCollapsed(value: boolean) => void` | When `value` is `true`, sets the short top app bar to always be collapsed.\n`getAlwaysCollapsed() => boolean` | Gets if the short top app bar is in the \"always collapsed\" state.\n\nProperty | Value Type | Description\n--- | --- | ---\n`isCollapsed` | `boolean` (read-only) | Indicates whether the short top app bar is in the collapsed state.\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"homepage":"https://github.com/material-components/material-components-web#readme","_id":"@material/top-app-bar@15.0.0-canary.423edc3dc.0","_nodeVersion":"14.21.3","_npmVersion":"lerna/3.20.2/node@v14.21.3+x64 (linux)","dist":{"integrity":"sha512-1IUYo9XvEjBsq/SLTL89O9BSQ8PNVdVDTn3+zqZHy60ewUSaBQDPDD/X9O7wsKQ2HwhfMPyAXdxVktFE8nVhGw==","shasum":"9966bdf6a9b97c5f1254b573cf08042788ad20e1","tarball":"https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.423edc3dc.0.tgz","fileCount":44,"unpackedSize":1443951,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD01JahwD94StryRDELQi2wpAjC6jfvQ8Si3PuSbGwFywIgbIBgQxAXaSETg9Rjt3etRlgERHR382RTQTFcgW3JFAM="}]},"_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/top-app-bar_15.0.0-canary.423edc3dc.0_1719425522892_0.1415294018602229"},"_hasShrinkwrap":false}},"time":{"created":"2018-03-05T22:08:52.977Z","modified":"2024-06-26T18:12:03.714Z","0.32.0":"2018-03-05T22:08:53.232Z","0.33.0":"2018-03-19T16:40:14.031Z","0.34.0":"2018-04-02T21:52:10.846Z","0.34.1":"2018-04-03T23:39:53.033Z","0.35.0":"2018-04-23T22:41:00.834Z","0.35.1":"2018-05-03T20:51:39.252Z","0.35.2":"2018-05-21T21:54:24.549Z","0.36.0-0":"2018-05-29T15:23:58.211Z","0.36.0":"2018-06-04T15:38:34.369Z","0.36.1":"2018-06-18T15:40:47.539Z","0.37.0":"2018-07-02T22:14:32.224Z","0.37.1":"2018-07-16T21:20:01.563Z","0.38.0":"2018-07-30T17:07:35.103Z","0.38.1":"2018-08-13T20:39:22.599Z","0.39.0-0":"2018-08-16T15:16:33.984Z","0.39.0":"2018-08-27T17:41:02.823Z","0.39.1":"2018-08-31T21:36:49.130Z","0.39.2":"2018-09-11T16:55:25.102Z","0.39.3":"2018-09-11T17:19:19.408Z","0.40.0":"2018-09-24T20:01:55.598Z","0.40.1":"2018-10-08T20:54:54.305Z","0.41.0":"2018-10-29T20:22:20.331Z","0.42.0":"2018-12-04T22:55:07.135Z","0.43.0":"2019-01-07T19:49:28.577Z","0.44.0":"2019-02-04T18:24:22.522Z","0.44.1":"2019-02-19T23:03:09.292Z","1.0.0-0":"2019-02-27T23:59:58.470Z","1.0.0-1":"2019-03-04T23:33:45.167Z","1.0.0":"2019-03-06T21:08:35.258Z","1.0.1":"2019-03-11T22:07:47.694Z","1.1.0":"2019-03-26T19:26:19.956Z","1.1.1":"2019-04-08T20:14:10.885Z","2.0.0":"2019-04-29T17:40:23.345Z","2.1.0":"2019-05-06T15:33:41.884Z","2.1.1":"2019-05-10T17:25:31.509Z","2.3.0":"2019-05-28T21:24:09.992Z","3.0.0-alpha.0":"2019-06-12T04:07:16.019Z","3.0.0-alpha.1":"2019-06-12T19:02:33.645Z","3.0.0":"2019-06-25T22:28:12.783Z","3.1.0-alpha.0":"2019-07-16T13:29:31.749Z","3.1.0":"2019-07-22T22:02:57.459Z","4.0.0-alpha.0":"2019-08-07T21:09:56.281Z","4.0.0-canary.0":"2019-09-05T04:38:11.312Z","4.0.0-canary.1":"2019-09-09T20:21:06.958Z","3.2.0":"2019-09-12T21:53:51.173Z","4.0.0-canary.79d881baf.0":"2019-09-13T02:21:54.013Z","4.0.0-canary.e851d4f40.0":"2019-09-13T04:07:46.445Z","4.0.0-canary.905884690.0":"2019-09-16T23:48:30.453Z","4.0.0-canary.199534d61.0":"2019-09-27T18:58:20.028Z","4.0.0-canary.22d7ad2fb.0":"2019-10-15T18:57:34.675Z","4.0.0-canary.735147131.0":"2019-10-16T01:24:03.944Z","4.0.0-canary.062ade5c0.0":"2019-10-17T01:01:57.395Z","4.0.0-canary.774ad4f8.0":"2019-10-17T04:05:14.126Z","4.0.0-canary.5916d18c.0":"2019-10-18T20:09:18.394Z","4.0.0-canary.d4141c95.0":"2019-10-24T01:38:54.345Z","4.0.0-canary.2b878b3e.0":"2019-10-25T02:11:28.926Z","4.0.0-canary.b06c0efe.0":"2019-10-26T01:35:44.498Z","4.0.0-canary.01628efa.0":"2019-10-29T00:03:43.622Z","4.0.0-canary.b5c6d66b.0":"2019-10-29T17:57:34.616Z","4.0.0-canary.cdf858ea.0":"2019-11-01T17:59:31.646Z","4.0.0-canary.719b57e1.0":"2019-11-01T20:02:13.125Z","4.0.0-canary.97cbbdc2.0":"2019-11-01T20:29:52.455Z","4.0.0-canary.8e36b3b7.0":"2019-11-01T21:02:09.424Z","4.0.0-canary.62d3a09b.0":"2019-11-01T21:11:31.159Z","4.0.0":"2019-11-02T18:12:08.107Z","5.0.0-canary.b5eb51e94.0":"2019-11-07T18:34:22.867Z","5.0.0-canary.58500806e.0":"2019-11-08T15:36:23.970Z","5.0.0-canary.66299b646.0":"2019-11-08T20:34:21.575Z","5.0.0-canary.821871e04.0":"2019-11-08T21:28:51.973Z","5.0.0-canary.491fddc31.0":"2019-11-08T22:07:55.559Z","5.0.0-canary.b0cecf145.0":"2019-11-09T18:42:59.478Z","5.0.0-canary.afe0dd1bc.0":"2019-11-11T15:38:23.669Z","5.0.0-canary.b4cfdc40b.0":"2019-11-14T15:59:28.006Z","5.0.0-canary.525989b5d.0":"2019-11-14T23:31:32.311Z","5.0.0-canary.7084b403a.0":"2019-11-15T01:06:51.055Z","5.0.0-canary.3cbee6dac.0":"2019-11-15T22:33:29.800Z","5.0.0-canary.591a6ad44.0":"2019-11-18T23:49:14.096Z","5.0.0-canary.5729943ba.0":"2019-11-20T05:20:03.859Z","5.0.0-canary.e89750dc7.0":"2019-11-27T02:10:33.255Z","5.0.0-canary.3e560b33a.0":"2019-11-27T02:11:19.970Z","5.0.0-canary.7fd17ce5e.0":"2019-11-27T02:11:42.951Z","5.0.0-canary.ec729683b.0":"2019-11-27T15:55:55.030Z","5.0.0-canary.b8bc4a26e.0":"2019-11-27T19:17:25.954Z","5.0.0-canary.f978109c3.0":"2019-12-02T17:08:09.661Z","5.0.0-canary.ad9dfe706.0":"2019-12-03T23:18:50.717Z","5.0.0-canary.5e45d77f3.0":"2019-12-03T23:20:43.179Z","5.0.0-canary.d10e8cdf3.0":"2019-12-03T23:21:10.174Z","5.0.0-canary.a5dbd8a2a.0":"2019-12-03T23:55:45.007Z","5.0.0-canary.ba879b68b.0":"2019-12-04T20:23:24.432Z","5.0.0-canary.aa0eba489.0":"2019-12-06T01:59:47.331Z","5.0.0-canary.cb7b71a86.0":"2019-12-06T23:56:41.215Z","5.0.0-canary.50f110a6c.0":"2019-12-10T17:00:31.686Z","5.0.0-canary.878a08b7c.0":"2019-12-11T20:17:07.430Z","5.0.0-canary.397905b4e.0":"2019-12-12T02:47:59.081Z","5.0.0-canary.1fbf5bd1d.0":"2019-12-12T18:59:58.290Z","5.0.0-canary.b723dfa78.0":"2019-12-12T20:10:51.219Z","5.0.0-canary.1c494e567.0":"2019-12-12T23:37:47.825Z","5.0.0-canary.c9e98a125.0":"2019-12-17T18:11:12.054Z","5.0.0-canary.5ffe8f7e3.0":"2019-12-17T22:34:14.388Z","5.0.0-canary.47949b08e.0":"2019-12-18T17:41:19.807Z","5.0.0-canary.b240bcc1b.0":"2019-12-18T19:17:43.902Z","5.0.0-canary.391674a26.0":"2019-12-18T19:18:08.671Z","5.0.0-canary.c4837746c.0":"2019-12-18T19:35:52.085Z","5.0.0-canary.e41a70425.0":"2019-12-18T23:21:12.930Z","5.0.0-canary.bac43eb43.0":"2019-12-18T23:24:56.568Z","5.0.0-canary.2e491de55.0":"2019-12-19T10:51:08.947Z","5.0.0-canary.ae101c144.0":"2019-12-19T16:25:53.262Z","5.0.0-canary.a51c31f26.0":"2019-12-19T17:15:14.742Z","5.0.0-canary.21fc4e13b.0":"2019-12-19T21:27:53.712Z","5.0.0-canary.d2ae6e17d.0":"2019-12-19T22:24:56.105Z","5.0.0-canary.ba30399ad.0":"2019-12-20T01:10:39.193Z","5.0.0-canary.a08ccec35.0":"2019-12-20T23:27:49.523Z","5.0.0-canary.a2f75105e.0":"2019-12-23T19:48:30.924Z","5.0.0-canary.c054a24c7.0":"2019-12-23T21:50:52.077Z","5.0.0-canary.c6808c51c.0":"2019-12-23T21:55:19.678Z","5.0.0-canary.7bce9cf77.0":"2019-12-26T18:46:24.171Z","5.0.0-canary.c92f038c3.0":"2019-12-30T22:03:56.746Z","5.0.0-canary.1f1ac7558.0":"2020-01-02T20:54:48.428Z","5.0.0-canary.ec26e799c.0":"2020-01-02T21:43:01.891Z","5.0.0-canary.0a40ced40.0":"2020-01-03T17:10:35.936Z","5.0.0-canary.3adf84899.0":"2020-01-03T18:23:22.330Z","5.0.0-canary.0d42ee650.0":"2020-01-03T21:37:42.567Z","5.0.0-canary.847dd1ada.0":"2020-01-06T19:27:04.620Z","5.0.0-canary.39df7e5df.0":"2020-01-07T00:56:15.473Z","5.0.0-canary.f1a2581ab.0":"2020-01-07T15:00:40.018Z","5.0.0-canary.7c7ddf347.0":"2020-01-07T15:17:28.384Z","5.0.0-canary.a1c84d4b5.0":"2020-01-07T18:11:11.174Z","5.0.0-canary.ec9f16578.0":"2020-01-07T19:40:26.535Z","5.0.0-canary.b602226ce.0":"2020-01-07T20:15:57.183Z","5.0.0-canary.b2d2dc08c.0":"2020-01-07T21:26:50.039Z","5.0.0-canary.61f2d7580.0":"2020-01-07T21:40:18.598Z","5.0.0-canary.d1be53a2e.0":"2020-01-07T22:17:59.248Z","5.0.0-canary.9b0d06e32.0":"2020-01-07T22:20:01.473Z","5.0.0-canary.730c807a0.0":"2020-01-07T22:21:34.619Z","5.0.0-canary.2213152cd.0":"2020-01-08T17:22:55.045Z","5.0.0-canary.5750f7169.0":"2020-01-08T17:57:40.610Z","5.0.0-canary.f7abc7a43.0":"2020-01-08T18:28:51.736Z","5.0.0-canary.bf7b4a061.0":"2020-01-08T18:42:18.649Z","5.0.0-canary.784fa7903.0":"2020-01-08T19:11:19.523Z","5.0.0-canary.823c050ba.0":"2020-01-08T20:11:35.125Z","5.0.0-canary.70c708dee.0":"2020-01-08T20:23:03.750Z","5.0.0-canary.5ed9d13d0.0":"2020-01-08T21:43:21.866Z","5.0.0-canary.4819cc7e5.0":"2020-01-08T21:59:04.427Z","5.0.0-canary.fe3ffd2c3.0":"2020-01-08T22:17:02.651Z","5.0.0-canary.c0e850090.0":"2020-01-08T22:23:50.348Z","5.0.0-canary.615f86f38.0":"2020-01-08T22:41:01.494Z","5.0.0-canary.1eb032637.0":"2020-01-08T23:00:49.989Z","5.0.0-canary.5bc5ebfea.0":"2020-01-08T23:01:47.561Z","5.0.0-canary.1112b8def.0":"2020-01-09T22:11:01.007Z","5.0.0-canary.aab102017.0":"2020-01-10T00:13:02.960Z","5.0.0-canary.426913342.0":"2020-01-10T01:45:00.442Z","5.0.0-canary.d4ea9a706.0":"2020-01-10T17:26:06.847Z","5.0.0-canary.7d4ee2996.0":"2020-01-10T17:57:37.680Z","5.0.0-canary.981ec9b6f.0":"2020-01-10T19:28:02.629Z","5.0.0-canary.737da83fc.0":"2020-01-10T21:19:34.427Z","5.0.0-canary.aca8e6c18.0":"2020-01-13T19:33:22.131Z","5.0.0-canary.c38d84e21.0":"2020-01-13T22:14:28.246Z","5.0.0-canary.a4db5fbad.0":"2020-01-14T02:16:03.917Z","5.0.0-canary.faa9af310.0":"2020-01-14T16:54:12.662Z","5.0.0-canary.60354c577.0":"2020-01-14T22:46:47.815Z","5.0.0-canary.d07c78daa.0":"2020-01-14T23:39:44.524Z","5.0.0-canary.8ddd5c6dc.0":"2020-01-15T01:43:51.147Z","5.0.0-canary.a9511d870.0":"2020-01-15T19:11:05.011Z","5.0.0-canary.7c8583c4c.0":"2020-01-15T22:48:35.479Z","5.0.0-canary.5d4b82bac.0":"2020-01-15T22:48:57.916Z","5.0.0-canary.57d0186e4.0":"2020-01-16T18:17:58.347Z","5.0.0-canary.071a6ab70.0":"2020-01-16T18:24:32.640Z","5.0.0-canary.22e0cb618.0":"2020-01-16T18:47:31.528Z","5.0.0-canary.f16f15b8f.0":"2020-01-17T00:07:35.942Z","5.0.0-canary.aa8e43e9a.0":"2020-01-17T00:37:13.869Z","5.0.0-canary.fe1f3ca07.0":"2020-01-17T01:00:51.842Z","5.0.0-canary.d405af26b.0":"2020-01-17T18:17:53.253Z","5.0.0-canary.6e857aae2.0":"2020-01-17T18:21:15.025Z","5.0.0-canary.e2e764f7c.0":"2020-01-17T18:36:35.579Z","5.0.0-canary.7ef986a87.0":"2020-01-17T19:31:19.523Z","5.0.0-canary.29402e2d4.0":"2020-01-17T20:40:26.810Z","5.0.0-canary.2b3ec563c.0":"2020-01-17T23:12:08.066Z","5.0.0-canary.e8a993677.0":"2020-01-21T16:50:28.582Z","5.0.0-canary.cd4903304.0":"2020-01-21T21:37:48.739Z","5.0.0-canary.7e4b04b25.0":"2020-01-21T22:46:52.064Z","5.0.0-canary.ebc296937.0":"2020-01-21T23:45:30.775Z","5.0.0-canary.cf33f113d.0":"2020-01-22T01:23:08.605Z","5.0.0-canary.e1d5f1be5.0":"2020-01-22T16:56:11.680Z","5.0.0-canary.6b6a4ff92.0":"2020-01-22T17:58:14.858Z","5.0.0-canary.6092f71ee.0":"2020-01-22T21:17:31.341Z","5.0.0-canary.d8d95020f.0":"2020-01-22T23:09:56.398Z","5.0.0-canary.b7facc628.0":"2020-01-23T18:13:07.334Z","5.0.0-canary.63f357dbf.0":"2020-01-23T21:55:52.876Z","5.0.0-canary.f2426d26e.0":"2020-01-23T23:55:41.497Z","5.0.0-canary.7f5e0c23f.0":"2020-01-24T16:48:05.359Z","5.0.0-canary.3fc3ab520.0":"2020-01-24T17:21:38.326Z","5.0.0-canary.80a4d326f.0":"2020-01-24T20:46:26.196Z","5.0.0-canary.ef7de4def.0":"2020-01-24T21:32:58.306Z","5.0.0-canary.93e2288b6.0":"2020-01-28T16:56:32.013Z","5.0.0-canary.34ef15f67.0":"2020-01-28T17:24:45.201Z","5.0.0-canary.d3d176ba5.0":"2020-01-28T17:29:50.591Z","5.0.0-canary.32c1df133.0":"2020-01-28T19:43:50.670Z","5.0.0-canary.f3adce86f.0":"2020-01-28T21:49:24.965Z","5.0.0-canary.a4423f890.0":"2020-01-29T21:10:16.601Z","5.0.0-canary.9351f167d.0":"2020-01-29T21:56:13.720Z","5.0.0-canary.29b89dbc1.0":"2020-01-29T22:17:00.290Z","5.0.0-canary.45985457b.0":"2020-01-29T23:33:37.432Z","5.0.0-canary.a1a0deb3e.0":"2020-01-30T17:37:47.798Z","5.0.0-canary.181486643.0":"2020-01-30T20:56:41.624Z","5.0.0-canary.3a85313ac.0":"2020-01-31T16:23:44.656Z","5.0.0-canary.b6c7f624b.0":"2020-01-31T17:03:32.600Z","5.0.0-canary.b3f70ebde.0":"2020-01-31T20:10:47.292Z","5.0.0-canary.3e782d8f8.0":"2020-02-02T01:13:06.382Z","5.0.0-canary.535398572.0":"2020-02-03T18:12:34.935Z","5.0.0-canary.5ff33802c.0":"2020-02-04T18:04:21.315Z","5.0.0-canary.1eb29491c.0":"2020-02-04T21:01:35.595Z","5.0.0-canary.4c7154b26.0":"2020-02-05T16:04:29.002Z","5.0.0-canary.ab5f49a2c.0":"2020-02-05T23:33:50.881Z","5.0.0-canary.c541ebe15.0":"2020-02-06T22:30:18.060Z","5.0.0-canary.98f7faa05.0":"2020-02-07T19:21:40.645Z","5.0.0-canary.b4727e43a.0":"2020-02-07T19:55:53.166Z","5.0.0-canary.91d9d5a65.0":"2020-02-07T22:59:56.702Z","5.0.0-canary.d5c006ed1.0":"2020-02-10T16:49:15.360Z","5.0.0-canary.559f1a570.0":"2020-02-10T17:25:40.753Z","5.0.0-canary.ad3bbf782.0":"2020-02-10T19:12:02.826Z","5.0.0-canary.570d8e49c.0":"2020-02-10T20:43:54.144Z","5.0.0-canary.48b06b89a.0":"2020-02-11T18:43:36.612Z","5.0.0-canary.612443dfb.0":"2020-02-11T19:49:43.274Z","5.0.0-canary.8c11ea2a3.0":"2020-02-12T08:52:02.380Z","5.0.0-canary.b2f3d311e.0":"2020-02-13T21:44:28.719Z","5.0.0-canary.4f488d0ee.0":"2020-02-13T23:06:41.247Z","6.0.0-canary.fe79de07d.0":"2020-02-13T23:24:08.743Z","5.0.0":"2020-02-14T00:09:21.814Z","6.0.0-canary.5e313b1f2.0":"2020-02-14T23:48:37.598Z","6.0.0-canary.6a56f387c.0":"2020-02-18T19:44:15.191Z","6.0.0-canary.bdfd52632.0":"2020-02-19T20:23:02.744Z","6.0.0-canary.ad2e4376a.0":"2020-02-20T23:16:39.023Z","6.0.0-canary.765caef18.0":"2020-02-21T17:33:31.725Z","6.0.0-canary.949562303.0":"2020-02-21T20:38:17.479Z","6.0.0-canary.7ec96974e.0":"2020-02-24T18:58:34.184Z","6.0.0-canary.265ecbad5.0":"2020-02-25T21:01:13.848Z","5.1.0":"2020-02-25T21:38:37.898Z","6.0.0-canary.2cf87456f.0":"2020-02-25T21:39:14.647Z","6.0.0-canary.781434a92.0":"2020-02-25T23:28:31.163Z","6.0.0-canary.d6f60c98b.0":"2020-02-28T22:04:13.488Z","6.0.0-canary.69edc6e28.0":"2020-02-28T22:12:40.538Z","6.0.0-canary.9372e4939.0":"2020-03-03T19:11:01.753Z","6.0.0-canary.9cf5e9842.0":"2020-03-03T23:26:33.746Z","6.0.0-canary.3657f8863.0":"2020-03-04T17:44:39.772Z","6.0.0-canary.98b843417.0":"2020-03-05T18:31:28.140Z","6.0.0-canary.17b9699c4.0":"2020-03-05T19:22:45.281Z","6.0.0-canary.6ee035572.0":"2020-03-09T16:47:43.469Z","6.0.0-canary.bd33cb56b.0":"2020-03-09T17:22:45.651Z","6.0.0-canary.26c049afa.0":"2020-03-10T17:03:07.687Z","6.0.0-canary.1db5c9fc8.0":"2020-03-10T20:37:40.703Z","6.0.0-canary.4971637f4.0":"2020-03-10T22:59:07.001Z","6.0.0-canary.1ae8130ce.0":"2020-03-10T23:05:52.540Z","6.0.0-canary.8639c2690.0":"2020-03-11T06:33:46.850Z","6.0.0-canary.d5808057f.0":"2020-03-11T16:26:04.473Z","6.0.0-canary.b3f58203d.0":"2020-03-11T19:38:31.928Z","6.0.0-canary.bec065920.0":"2020-03-12T20:20:54.094Z","6.0.0-canary.776291ef0.0":"2020-03-17T19:21:24.464Z","6.0.0-canary.ece19f3dd.0":"2020-03-17T22:01:41.051Z","6.0.0-canary.4dc45af6c.0":"2020-03-18T01:48:24.862Z","6.0.0-canary.6b48781bf.0":"2020-03-18T15:35:18.834Z","6.0.0-canary.a88c8e4dc.0":"2020-03-19T17:36:21.378Z","6.0.0-canary.cafe18860.0":"2020-03-20T14:53:55.664Z","6.0.0-canary.35a32aaea.0":"2020-03-20T19:59:38.905Z","6.0.0-canary.e75deb854.0":"2020-03-20T22:15:44.945Z","6.0.0-canary.2cc6966f6.0":"2020-03-24T18:44:03.018Z","6.0.0-canary.8707953b6.0":"2020-03-24T18:47:43.286Z","6.0.0-canary.10af6cf39.0":"2020-03-25T18:18:53.647Z","6.0.0-canary.7d8f9c8d7.0":"2020-03-27T18:05:27.458Z","6.0.0-canary.d6315efe2.0":"2020-03-27T19:56:56.380Z","6.0.0-canary.a3016368d.0":"2020-03-27T21:20:02.986Z","6.0.0-canary.4b45b6620.0":"2020-03-31T15:56:52.109Z","6.0.0-canary.e84b9c8.0":"2020-04-01T16:56:35.897Z","6.0.0-canary.e33c49e.0":"2020-04-02T00:10:04.098Z","6.0.0-canary.f1f8e60.0":"2020-04-02T19:14:35.445Z","6.0.0-canary.1e17c49b3.0":"2020-04-03T18:04:37.330Z","6.0.0-canary.6a40ef217.0":"2020-04-03T19:25:13.870Z","6.0.0-canary.5f24faacb.0":"2020-04-08T15:37:14.030Z","6.0.0-canary.82fa986b9.0":"2020-04-08T15:42:19.964Z","6.0.0-canary.9930d9cc5.0":"2020-04-08T19:33:00.833Z","6.0.0-canary.6601d24af.0":"2020-04-09T00:30:27.298Z","6.0.0-canary.05f5e1583.0":"2020-04-09T00:47:51.741Z","6.0.0-canary.bce00e186.0":"2020-04-09T15:23:43.336Z","6.0.0-canary.927fa902c.0":"2020-04-09T18:47:04.036Z","6.0.0-canary.eb28b6ecc.0":"2020-04-10T19:31:40.179Z","6.0.0-canary.816a43b42.0":"2020-04-10T20:53:17.279Z","6.0.0-canary.008c4d319.0":"2020-04-13T16:34:38.566Z","6.0.0-canary.cbb3f28ca.0":"2020-04-14T05:06:33.284Z","6.0.0-canary.f172b0f90.0":"2020-04-14T23:10:56.628Z","6.0.0-canary.c02642273.0":"2020-04-15T16:18:05.632Z","6.0.0-canary.8a299b568.0":"2020-04-15T22:43:51.925Z","6.0.0-canary.490fbdc09.0":"2020-04-16T06:00:17.665Z","6.0.0-canary.f838c6e55.0":"2020-04-16T14:27:18.056Z","6.0.0-canary.ce6cb7024.0":"2020-04-16T17:19:48.012Z","6.0.0-canary.0ab62a65b.0":"2020-04-16T18:55:05.925Z","6.0.0-canary.ca61b656f.0":"2020-04-16T20:00:40.744Z","6.0.0-canary.45a6615e3.0":"2020-04-16T20:33:27.535Z","6.0.0-canary.4b04cdb0f.0":"2020-04-17T17:41:56.040Z","6.0.0-canary.b273afa93.0":"2020-04-17T23:03:29.115Z","6.0.0-canary.b70bc601e.0":"2020-04-17T23:22:04.305Z","6.0.0-canary.c4b4bba96.0":"2020-04-18T00:18:31.099Z","6.0.0-canary.6c1ebc721.0":"2020-04-20T19:59:00.129Z","6.0.0-canary.9cff4318f.0":"2020-04-20T20:56:39.351Z","6.0.0-canary.7b4482402.0":"2020-04-20T22:20:53.739Z","6.0.0-canary.deda86d8c.0":"2020-04-21T01:15:31.591Z","6.0.0-canary.d10412cb2.0":"2020-04-21T18:19:08.551Z","6.0.0-canary.c141801d5.0":"2020-04-21T19:42:41.694Z","6.0.0-canary.28d10a96e.0":"2020-04-22T22:07:55.532Z","7.0.0-canary.8540808be.0":"2020-04-23T17:26:41.371Z","6.0.0":"2020-04-23T17:27:14.173Z","7.0.0-canary.2673adb74.0":"2020-04-23T22:46:18.939Z","7.0.0-canary.b10d0d7f1.0":"2020-04-24T00:21:43.288Z","7.0.0-canary.3bd8c1bac.0":"2020-04-24T21:06:38.333Z","7.0.0-canary.b83c8dc22.0":"2020-04-24T21:19:25.572Z","7.0.0-canary.1b3dd846d.0":"2020-04-25T00:44:29.201Z","7.0.0-canary.29debfea7.0":"2020-04-27T12:32:55.167Z","7.0.0-canary.28d32f8e0.0":"2020-04-27T14:07:52.592Z","7.0.0-canary.af71cfdd6.0":"2020-04-28T23:18:02.015Z","7.0.0-canary.99d2fc961.0":"2020-04-29T10:44:39.599Z","7.0.0-canary.0e052b24f.0":"2020-04-30T01:30:18.207Z","7.0.0-canary.ff4bc632a.0":"2020-04-30T08:28:26.844Z","7.0.0-canary.b0f83d2fd.0":"2020-04-30T14:33:31.986Z","7.0.0-canary.e59906a57.0":"2020-05-01T15:42:59.700Z","7.0.0-canary.c02712b59.0":"2020-05-01T18:26:24.286Z","7.0.0-canary.15d65448e.0":"2020-05-01T19:23:16.961Z","7.0.0-canary.142b1549e.0":"2020-05-01T22:36:25.687Z","7.0.0-canary.524b7b812.0":"2020-05-03T20:48:06.970Z","7.0.0-canary.bd8ca9678.0":"2020-05-04T17:19:42.108Z","7.0.0-canary.2553e86fe.0":"2020-05-04T17:31:52.543Z","7.0.0-canary.03dec929e.0":"2020-05-04T23:34:42.103Z","7.0.0-canary.d92d8c93e.0":"2020-05-05T16:59:54.640Z","7.0.0-canary.09f591967.0":"2020-05-05T21:05:06.699Z","7.0.0-canary.3846ce311.0":"2020-05-06T14:10:07.070Z","7.0.0-canary.ed7f32463.0":"2020-05-06T16:08:30.675Z","7.0.0-canary.8135cc085.0":"2020-05-06T19:55:41.808Z","7.0.0-canary.deb212de4.0":"2020-05-06T22:19:19.229Z","7.0.0-canary.f83e00898.0":"2020-05-07T16:50:02.595Z","7.0.0-canary.047e6b337.0":"2020-05-08T18:39:01.167Z","7.0.0-canary.119e21426.0":"2020-05-08T20:23:09.545Z","7.0.0-canary.2f052d824.0":"2020-05-08T21:08:05.645Z","7.0.0-canary.e84444387.0":"2020-05-08T21:32:10.324Z","7.0.0-canary.893eb1876.0":"2020-05-11T14:13:51.758Z","7.0.0-canary.a5aeb3001.0":"2020-05-11T14:29:55.503Z","7.0.0-canary.610c68d97.0":"2020-05-11T19:33:13.920Z","7.0.0-canary.ed52af767.0":"2020-05-11T20:27:52.847Z","7.0.0-canary.058cfd23c.0":"2020-05-11T21:25:43.762Z","7.0.0-canary.0a371b4fe.0":"2020-05-12T23:18:52.913Z","7.0.0-canary.2139200b3.0":"2020-05-13T14:48:01.579Z","7.0.0-canary.744d751a0.0":"2020-05-14T04:43:25.458Z","7.0.0-canary.ad0c0c103.0":"2020-05-14T14:52:05.504Z","7.0.0-canary.fd8f8f2b7.0":"2020-05-18T17:54:12.301Z","7.0.0-canary.730920fbb.0":"2020-05-18T19:44:44.915Z","7.0.0-canary.bcdad99bb.0":"2020-05-19T03:18:39.862Z","7.0.0-canary.4497b86ed.0":"2020-05-19T03:51:23.523Z","7.0.0-canary.2e60575da.0":"2020-05-19T16:09:58.495Z","7.0.0-canary.e3eacefcc.0":"2020-05-19T17:38:46.101Z","7.0.0-canary.b065a4d2b.0":"2020-05-20T14:37:34.374Z","7.0.0-canary.4ebce8d78.0":"2020-05-20T20:51:09.107Z","7.0.0-canary.b0fdca492.0":"2020-05-20T23:03:23.464Z","7.0.0-canary.c67667e8e.0":"2020-05-21T14:13:23.220Z","7.0.0-canary.62b5f37db.0":"2020-05-21T16:41:57.096Z","7.0.0-canary.2e218dbf8.0":"2020-05-21T17:02:41.888Z","7.0.0-canary.7fd792bb9.0":"2020-05-21T17:15:16.249Z","7.0.0-canary.a66493cd8.0":"2020-05-21T17:18:44.441Z","7.0.0-canary.da05f66e1.0":"2020-05-21T17:20:41.164Z","7.0.0-canary.740860e78.0":"2020-05-21T17:27:15.679Z","7.0.0-canary.5cea2610f.0":"2020-05-21T17:29:21.786Z","7.0.0-canary.cf7747ef7.0":"2020-05-21T17:29:46.493Z","7.0.0-canary.862d0d7bc.0":"2020-05-21T17:32:20.408Z","7.0.0-canary.0008c8a91.0":"2020-05-21T19:33:44.189Z","7.0.0-canary.541638fa2.0":"2020-05-21T19:48:41.945Z","7.0.0-canary.6167cd075.0":"2020-05-21T20:21:40.354Z","7.0.0-canary.863ac1b0f.0":"2020-05-21T21:00:28.750Z","7.0.0-canary.d30a214ac.0":"2020-05-21T21:04:38.533Z","7.0.0-canary.62abbc8d7.0":"2020-05-21T21:29:16.348Z","7.0.0-canary.49bf31d5c.0":"2020-05-21T21:32:39.064Z","7.0.0-canary.8e17857d0.0":"2020-05-21T21:33:35.100Z","7.0.0-canary.c113fc942.0":"2020-05-21T22:47:02.661Z","7.0.0-canary.912d9021d.0":"2020-05-26T18:45:59.324Z","7.0.0-canary.68a2af131.0":"2020-05-26T19:08:09.071Z","7.0.0-canary.01de07011.0":"2020-05-26T19:53:07.721Z","7.0.0-canary.51d4535fe.0":"2020-05-26T21:35:54.229Z","7.0.0-canary.b86d826b7.0":"2020-05-26T22:14:15.457Z","7.0.0-canary.d91794c7e.0":"2020-05-26T23:55:26.127Z","7.0.0-canary.8c6d7e076.0":"2020-05-27T19:00:08.104Z","7.0.0-canary.5b5f62f93.0":"2020-05-27T19:17:14.331Z","7.0.0-canary.d9972abb1.0":"2020-05-27T20:21:23.882Z","7.0.0-canary.6556eda2b.0":"2020-05-27T20:30:43.149Z","7.0.0-canary.32aa23641.0":"2020-05-27T21:38:51.802Z","7.0.0-canary.654934dfa.0":"2020-05-28T00:37:40.440Z","7.0.0-canary.41910b8b8.0":"2020-05-28T00:51:50.645Z","7.0.0-canary.d66d22bf9.0":"2020-05-28T19:55:57.098Z","7.0.0-canary.8904f3cbe.0":"2020-05-29T16:50:56.068Z","7.0.0-canary.51512a4ac.0":"2020-05-29T19:15:45.750Z","7.0.0-canary.0743288fb.0":"2020-05-29T20:05:37.800Z","7.0.0-canary.06ef147b5.0":"2020-05-29T20:41:17.513Z","7.0.0-canary.8073a20a9.0":"2020-05-29T23:26:09.974Z","7.0.0-canary.72ff42330.0":"2020-06-01T16:44:54.849Z","7.0.0-canary.9ea52070f.0":"2020-06-01T16:49:38.521Z","7.0.0-canary.d86ad3b60.0":"2020-06-01T17:49:23.590Z","7.0.0-canary.b9776b1d0.0":"2020-06-01T18:26:42.867Z","7.0.0-canary.ba6f7c294.0":"2020-06-02T17:03:21.151Z","7.0.0-canary.cf3b664ab.0":"2020-06-02T18:24:11.390Z","7.0.0-canary.4ba3c9a31.0":"2020-06-02T23:53:18.662Z","7.0.0-canary.388b042c7.0":"2020-06-03T13:47:19.719Z","7.0.0-canary.cca1ca84d.0":"2020-06-03T16:03:51.111Z","7.0.0-canary.9b0b5f2e0.0":"2020-06-03T18:58:39.872Z","7.0.0-canary.0a7895f4d.0":"2020-06-03T21:09:46.336Z","7.0.0-canary.7461aad68.0":"2020-06-03T22:13:15.756Z","7.0.0-canary.a0dc2b5c4.0":"2020-06-04T21:15:03.219Z","7.0.0-canary.2b420c5b3.0":"2020-06-08T16:15:10.100Z","7.0.0-canary.8fa22aacc.0":"2020-06-08T18:05:12.348Z","7.0.0-canary.21c4e4ed8.0":"2020-06-08T18:44:57.016Z","7.0.0-canary.dfde46516.0":"2020-06-08T19:42:38.384Z","7.0.0-canary.05cc5c206.0":"2020-06-08T20:57:53.030Z","7.0.0-canary.3ee488f1c.0":"2020-06-09T14:54:36.449Z","7.0.0-canary.b83d720ee.0":"2020-06-09T17:26:55.056Z","7.0.0-canary.afb1c11a9.0":"2020-06-09T20:17:09.864Z","7.0.0-canary.39e6f71e2.0":"2020-06-09T23:40:24.378Z","7.0.0-canary.d4c66dc7d.0":"2020-06-11T17:47:22.088Z","7.0.0-canary.be4a19f9f.0":"2020-06-12T06:09:07.456Z","7.0.0-canary.a6ac8f629.0":"2020-06-15T21:31:24.425Z","7.0.0-canary.9833dc287.0":"2020-06-16T19:50:00.623Z","7.0.0-canary.3aa33998e.0":"2020-06-16T20:22:07.652Z","7.0.0-canary.d2b54d183.0":"2020-06-18T01:16:22.020Z","7.0.0-canary.f2a488e95.0":"2020-06-18T15:05:00.752Z","7.0.0-canary.bd8d1aafa.0":"2020-06-18T15:17:08.635Z","7.0.0-canary.1321eb968.0":"2020-06-19T19:22:06.221Z","7.0.0-canary.db5cc0382.0":"2020-06-19T19:28:27.923Z","7.0.0-canary.6ac9bf031.0":"2020-06-19T19:49:01.114Z","7.0.0-canary.c21b5c367.0":"2020-06-19T20:11:27.624Z","7.0.0-canary.bfdd7fd39.0":"2020-06-19T20:20:38.965Z","7.0.0-canary.10b505785.0":"2020-06-19T20:22:06.255Z","7.0.0-canary.6483d3f44.0":"2020-06-19T20:38:18.087Z","7.0.0-canary.30a74e921.0":"2020-06-19T20:40:33.262Z","7.0.0-canary.c20727498.0":"2020-06-19T20:43:25.301Z","7.0.0-canary.4e360ae94.0":"2020-06-19T21:00:08.200Z","7.0.0-canary.8550fa53b.0":"2020-06-19T21:02:36.532Z","7.0.0-canary.93ade142e.0":"2020-06-19T21:03:43.203Z","7.0.0-canary.a0032f5bb.0":"2020-06-19T21:28:53.619Z","7.0.0-canary.3f342e721.0":"2020-06-19T21:31:05.200Z","7.0.0-canary.ff89457cc.0":"2020-06-19T21:32:06.098Z","7.0.0-canary.4a1855cf8.0":"2020-06-19T21:34:44.344Z","7.0.0-canary.8602f1b4d.0":"2020-06-22T17:24:26.497Z","7.0.0-canary.69f9f0982.0":"2020-06-22T21:15:20.447Z","7.0.0-canary.369a293f0.0":"2020-06-22T21:18:04.286Z","7.0.0-canary.f1432b5c6.0":"2020-06-22T21:25:55.882Z","7.0.0-canary.4757a16b4.0":"2020-06-22T21:54:09.206Z","7.0.0-canary.f8f472762.0":"2020-06-22T21:58:06.717Z","7.0.0-canary.7e4d55c34.0":"2020-06-22T22:30:03.806Z","7.0.0-canary.bd1dbc91f.0":"2020-06-23T14:28:57.611Z","7.0.0-canary.31523bc62.0":"2020-06-23T14:34:35.017Z","7.0.0-canary.a96b6d4d6.0":"2020-06-23T14:43:01.817Z","7.0.0-canary.ef3a09533.0":"2020-06-23T14:49:00.703Z","7.0.0-canary.080965f39.0":"2020-06-23T15:18:19.811Z","7.0.0-canary.1bd67b65d.0":"2020-06-23T16:00:48.318Z","7.0.0-canary.18ca31248.0":"2020-06-23T18:25:46.083Z","7.0.0-canary.39cf00836.0":"2020-06-23T18:48:42.105Z","7.0.0-canary.1bfda9e05.0":"2020-06-23T19:01:07.972Z","7.0.0-canary.08731bd95.0":"2020-06-23T19:03:39.346Z","7.0.0":"2020-06-23T19:11:38.224Z","8.0.0-canary.a3212b209.0":"2020-06-23T19:12:31.755Z","8.0.0-canary.15e81fe98.0":"2020-06-23T19:41:59.591Z","8.0.0-canary.004c9d392.0":"2020-06-23T22:56:38.802Z","8.0.0-canary.03bde00f5.0":"2020-06-24T00:32:18.857Z","8.0.0-canary.599b8c319.0":"2020-06-24T14:57:39.540Z","8.0.0-canary.87e3be418.0":"2020-06-24T17:54:02.863Z","8.0.0-canary.035cf2a6f.0":"2020-06-24T18:39:19.720Z","8.0.0-canary.2fed2c12f.0":"2020-06-25T20:02:30.742Z","8.0.0-canary.38197b443.0":"2020-06-25T21:23:18.473Z","8.0.0-canary.69a35e80c.0":"2020-06-26T17:39:26.207Z","8.0.0-canary.df7154fb3.0":"2020-06-26T18:17:34.229Z","8.0.0-canary.d5618602a.0":"2020-06-26T21:48:57.541Z","8.0.0-canary.e590b376b.0":"2020-06-26T23:24:22.610Z","8.0.0-canary.0c9d6bd2d.0":"2020-06-29T17:15:59.729Z","8.0.0-canary.c1fec4246.0":"2020-06-29T17:31:29.272Z","8.0.0-canary.c678a9d34.0":"2020-06-29T17:52:35.367Z","8.0.0-canary.521afaf6e.0":"2020-06-30T15:06:20.536Z","8.0.0-canary.a2ad48839.0":"2020-06-30T19:15:14.194Z","8.0.0-canary.ec2385881.0":"2020-06-30T21:47:49.076Z","8.0.0-canary.610c26c4a.0":"2020-07-01T14:57:04.130Z","8.0.0-canary.e2ea4a99e.0":"2020-07-01T19:27:54.180Z","8.0.0-canary.a78ceb112.0":"2020-07-01T19:39:38.437Z","8.0.0-canary.b0c456d33.0":"2020-07-06T22:42:12.354Z","8.0.0-canary.2e5711e04.0":"2020-07-08T16:48:56.221Z","8.0.0-canary.811fc5d24.0":"2020-07-08T17:16:36.872Z","8.0.0-canary.6ed717ddd.0":"2020-07-08T19:44:53.977Z","8.0.0-canary.d850de590.0":"2020-07-09T18:06:18.503Z","8.0.0-canary.e07a70841.0":"2020-07-09T18:36:02.239Z","8.0.0-canary.37947ed6c.0":"2020-07-09T20:37:03.096Z","8.0.0-canary.5d443afec.0":"2020-07-09T20:52:28.883Z","8.0.0-canary.9ac1ed914.0":"2020-07-09T21:21:23.004Z","8.0.0-canary.1e7cb6198.0":"2020-07-09T22:13:14.305Z","8.0.0-canary.843f636c0.0":"2020-07-10T17:43:35.689Z","8.0.0-canary.b2edaeead.0":"2020-07-10T18:07:59.408Z","8.0.0-canary.5dac1f624.0":"2020-07-13T16:35:05.218Z","8.0.0-canary.4497acef8.0":"2020-07-14T14:20:57.826Z","8.0.0-canary.e6e23019d.0":"2020-07-14T20:11:26.722Z","8.0.0-canary.d548d7a92.0":"2020-07-14T21:13:49.738Z","8.0.0-canary.58ce529cc.0":"2020-07-14T21:15:53.327Z","8.0.0-canary.a0f1202dc.0":"2020-07-14T21:35:21.541Z","8.0.0-canary.ad4df58c1.0":"2020-07-15T00:10:10.797Z","8.0.0-canary.01db89053.0":"2020-07-16T16:40:26.957Z","8.0.0-canary.fb5a4cdeb.0":"2020-07-20T19:20:46.056Z","8.0.0-canary.8df0f517c.0":"2020-07-20T23:56:28.182Z","8.0.0-canary.abcdbcfeb.0":"2020-07-21T00:51:00.622Z","8.0.0-canary.7bd5075de.0":"2020-07-21T18:48:01.989Z","8.0.0-canary.405a29a20.0":"2020-07-22T22:24:08.242Z","8.0.0-canary.f3693ac4c.0":"2020-07-22T22:34:32.273Z","8.0.0-canary.12a109680.0":"2020-07-22T23:04:20.097Z","8.0.0-canary.bbd06696e.0":"2020-07-22T23:53:48.336Z","8.0.0-canary.4951e7651.0":"2020-07-23T01:50:32.439Z","8.0.0-canary.75deebbef.0":"2020-07-23T17:48:01.262Z","8.0.0-canary.95aff33ee.0":"2020-07-23T18:48:17.032Z","8.0.0-canary.9d9f47473.0":"2020-07-23T19:59:37.355Z","8.0.0-canary.00dfbf6be.0":"2020-07-23T21:00:29.597Z","8.0.0-canary.b87e522d2.0":"2020-07-23T21:24:26.776Z","8.0.0-canary.5b3e150e5.0":"2020-07-24T01:24:50.339Z","8.0.0-canary.f0ae11786.0":"2020-07-24T01:44:32.710Z","8.0.0-canary.fb4ee66c0.0":"2020-07-24T02:11:34.369Z","8.0.0-canary.5511e0aeb.0":"2020-07-24T16:57:35.811Z","8.0.0-canary.8388a9bf6.0":"2020-07-24T20:14:13.335Z","8.0.0-canary.ac405eae1.0":"2020-07-27T15:07:21.420Z","8.0.0-canary.75553837c.0":"2020-07-27T15:13:18.735Z","8.0.0-canary.b96fbfc7a.0":"2020-07-27T15:38:53.581Z","8.0.0-canary.61f1a8d85.0":"2020-07-27T15:48:02.090Z","8.0.0-canary.81dc33377.0":"2020-07-27T16:00:07.509Z","8.0.0-canary.ffd9ede58.0":"2020-07-27T16:33:29.273Z","8.0.0-canary.52dc55acf.0":"2020-07-27T17:09:23.979Z","8.0.0-canary.d4274ff05.0":"2020-07-27T19:51:58.779Z","8.0.0-canary.b82d0696d.0":"2020-07-27T19:58:59.696Z","8.0.0-canary.c2852000d.0":"2020-07-27T20:59:12.982Z","8.0.0-canary.f86f83f54.0":"2020-07-27T21:54:53.439Z","8.0.0-canary.41eb1684c.0":"2020-07-28T17:51:20.660Z","8.0.0-canary.9e2f6c450.0":"2020-07-28T22:40:08.393Z","8.0.0-canary.e6950b55a.0":"2020-07-28T22:53:39.576Z","8.0.0-canary.5e51ee38e.0":"2020-07-28T23:16:51.116Z","8.0.0-canary.a3898ffcf.0":"2020-07-29T00:37:15.692Z","8.0.0-canary.bc5cc6c96.0":"2020-07-29T00:50:04.673Z","8.0.0-canary.9bdeaf928.0":"2020-07-29T01:21:41.884Z","8.0.0-canary.fde2c1f9d.0":"2020-07-29T01:35:53.634Z","8.0.0-canary.6b3876d5d.0":"2020-07-29T01:39:45.670Z","8.0.0-canary.30ce17873.0":"2020-07-29T17:15:51.944Z","8.0.0-canary.f6bb43bf0.0":"2020-07-29T18:26:23.584Z","8.0.0-canary.6af75f6ab.0":"2020-07-30T00:02:22.889Z","8.0.0-canary.42d7a65aa.0":"2020-07-30T00:11:29.832Z","8.0.0-canary.85abdabb7.0":"2020-07-30T00:16:10.191Z","8.0.0-canary.49fb20ca3.0":"2020-07-30T01:28:28.179Z","8.0.0-canary.962d4abbb.0":"2020-07-30T16:11:09.470Z","8.0.0-canary.2fcee40cb.0":"2020-07-30T17:22:19.033Z","8.0.0-canary.bd5987f5a.0":"2020-07-30T17:47:04.865Z","8.0.0-canary.005e86a9b.0":"2020-07-30T18:01:00.393Z","8.0.0-canary.e309c7c68.0":"2020-07-30T18:09:35.776Z","8.0.0-canary.935a51cc0.0":"2020-07-30T18:21:14.975Z","8.0.0-canary.74839da7b.0":"2020-07-30T18:32:22.078Z","8.0.0-canary.f041a48c9.0":"2020-07-30T23:00:39.999Z","8.0.0-canary.fbb1381e1.0":"2020-07-31T15:51:17.297Z","8.0.0-canary.7f61d5785.0":"2020-07-31T17:23:48.605Z","8.0.0-canary.e1bc84d10.0":"2020-08-03T17:51:42.858Z","8.0.0-canary.096a7a066.0":"2020-08-03T17:54:44.426Z","8.0.0-canary.aa3a3e5a4.0":"2020-08-03T17:55:30.475Z","8.0.0-canary.5903d39af.0":"2020-08-03T17:55:43.698Z","8.0.0-canary.72258f898.0":"2020-08-04T01:18:15.614Z","8.0.0-canary.1b44b43c8.0":"2020-08-04T16:49:22.272Z","8.0.0-canary.e9d2e2f96.0":"2020-08-04T20:25:05.269Z","8.0.0-canary.b9dff0a19.0":"2020-08-05T03:49:47.998Z","8.0.0-canary.2bd09a706.0":"2020-08-05T03:54:58.617Z","8.0.0-canary.e0560522f.0":"2020-08-05T17:20:51.581Z","8.0.0-canary.08ca4d0ec.0":"2020-08-05T17:40:13.062Z","8.0.0-canary.08090126b.0":"2020-08-06T19:33:28.280Z","8.0.0-canary.e8bf5b2ac.0":"2020-08-06T21:50:58.811Z","8.0.0-canary.e3b746208.0":"2020-08-06T22:27:37.792Z","8.0.0-canary.96a640534.0":"2020-08-06T22:42:22.794Z","8.0.0-canary.9f9aac825.0":"2020-08-07T20:52:11.998Z","8.0.0-canary.fc65fd00b.0":"2020-08-10T15:21:48.678Z","8.0.0-canary.02e372c5f.0":"2020-08-10T15:49:37.255Z","8.0.0-canary.66669e3b6.0":"2020-08-10T15:53:28.110Z","8.0.0-canary.6d1ea9761.0":"2020-08-11T14:31:45.971Z","8.0.0-canary.79414bf9f.0":"2020-08-11T19:02:53.756Z","8.0.0-canary.85a5272df.0":"2020-08-11T20:09:03.484Z","8.0.0-canary.fda053eb8.0":"2020-08-12T20:05:03.604Z","8.0.0-canary.760873445.0":"2020-08-12T21:44:05.849Z","8.0.0-canary.2f4711a30.0":"2020-08-12T21:54:07.510Z","8.0.0-canary.2d72f3659.0":"2020-08-12T22:01:41.612Z","8.0.0-canary.1fee70a5e.0":"2020-08-12T23:29:31.645Z","8.0.0-canary.023f3fa34.0":"2020-08-13T01:13:16.618Z","8.0.0-canary.80f3a9e5d.0":"2020-08-13T01:30:00.658Z","8.0.0-canary.a1dcfe97c.0":"2020-08-13T08:51:26.309Z","8.0.0-canary.af332d5be.0":"2020-08-13T21:18:25.408Z","8.0.0-canary.7dd4567c4.0":"2020-08-14T00:51:56.493Z","8.0.0-canary.ff870005a.0":"2020-08-14T01:17:03.930Z","8.0.0-canary.150f427a0.0":"2020-08-14T13:30:53.915Z","8.0.0-canary.bcc58290a.0":"2020-08-14T23:23:19.896Z","8.0.0-canary.4f55400bb.0":"2020-08-17T16:39:25.634Z","8.0.0-canary.000d64815.0":"2020-08-17T17:05:11.602Z","8.0.0-canary.defa599a8.0":"2020-08-17T20:32:47.591Z","8.0.0-canary.66b8ed7e6.0":"2020-08-18T18:37:43.367Z","8.0.0-canary.e2b1033df.0":"2020-08-19T18:43:02.301Z","8.0.0-canary.2e8c3dd2e.0":"2020-08-19T19:24:47.883Z","8.0.0-canary.b2e80a5d9.0":"2020-08-19T22:21:54.491Z","8.0.0-canary.ff88df637.0":"2020-08-19T22:33:55.635Z","8.0.0-canary.32fb314cd.0":"2020-08-20T10:38:33.867Z","8.0.0-canary.546277d32.0":"2020-08-20T16:44:46.273Z","8.0.0-canary.da72839f4.0":"2020-08-20T18:00:56.837Z","8.0.0-canary.346069ccb.0":"2020-08-20T18:19:28.475Z","8.0.0-canary.e27c5802f.0":"2020-08-20T19:15:59.749Z","8.0.0-canary.f4532b9c8.0":"2020-08-20T19:58:33.223Z","8.0.0-canary.fbf73c2a6.0":"2020-08-20T21:07:21.824Z","8.0.0-canary.cf800124f.0":"2020-08-20T21:53:36.978Z","8.0.0-canary.95e4eeea7.0":"2020-08-20T23:29:42.593Z","8.0.0-canary.91ab1c62a.0":"2020-08-21T15:12:38.396Z","8.0.0-canary.58eaa9f02.0":"2020-08-21T20:01:14.830Z","8.0.0-canary.238216fc4.0":"2020-08-24T15:41:42.700Z","8.0.0-canary.a1c65593d.0":"2020-08-25T03:04:41.950Z","8.0.0-canary.708cc09c4.0":"2020-08-25T15:57:15.957Z","8.0.0-canary.19bea2ad3.0":"2020-08-26T18:50:15.151Z","8.0.0-canary.911014711.0":"2020-08-27T16:09:01.161Z","8.0.0-canary.d3387f54c.0":"2020-09-03T20:56:49.587Z","8.0.0-canary.2ccf996cc.0":"2020-09-03T20:57:05.257Z","8.0.0-canary.744bfe5d8.0":"2020-09-03T20:58:13.556Z","8.0.0-canary.78da96eaf.0":"2020-09-08T19:13:43.614Z","8.0.0-canary.b0ed593cc.0":"2020-09-09T06:16:53.648Z","8.0.0-canary.85a1fa9ea.0":"2020-09-10T21:11:32.021Z","8.0.0-canary.0bc41a9c7.0":"2020-09-11T17:50:46.192Z","8.0.0-canary.fc0eb5013.0":"2020-09-11T19:56:33.935Z","8.0.0-canary.319bf66de.0":"2020-09-11T23:11:14.223Z","8.0.0-canary.5bfc305ec.0":"2020-09-13T23:01:06.425Z","8.0.0-canary.83d83f131.0":"2020-09-14T00:33:38.126Z","8.0.0-canary.d52b165b5.0":"2020-09-15T14:55:21.220Z","8.0.0-canary.a831d4799.0":"2020-09-15T17:52:46.968Z","8.0.0-canary.a306aa488.0":"2020-09-17T00:59:43.831Z","8.0.0-canary.fd608ff66.0":"2020-09-17T14:26:51.607Z","8.0.0-canary.3e435ba57.0":"2020-09-17T14:44:08.640Z","8.0.0-canary.c250ec52a.0":"2020-09-17T20:11:26.408Z","8.0.0-canary.e34e411b1.0":"2020-09-17T20:18:46.536Z","8.0.0-canary.4e9343929.0":"2020-09-17T20:44:07.263Z","8.0.0-canary.4e5c350c2.0":"2020-09-21T21:15:08.891Z","8.0.0-canary.16c563ef7.0":"2020-09-22T19:47:16.627Z","8.0.0-canary.fd8af3d43.0":"2020-09-23T19:33:18.086Z","8.0.0-canary.d4cd83a85.0":"2020-09-25T00:37:03.428Z","8.0.0-canary.199aecdfb.0":"2020-09-25T15:52:25.347Z","8.0.0-canary.38ef4501f.0":"2020-09-30T18:25:38.131Z","8.0.0-canary.774dcfc8e.0":"2020-10-01T09:55:20.254Z","8.0.0-canary.0f60323a8.0":"2020-10-08T21:11:06.169Z","8.0.0-canary.d71622574.0":"2020-10-09T16:32:52.153Z","8.0.0-canary.7a9afaf4b.0":"2020-10-09T22:55:05.253Z","8.0.0-canary.8a39352c8.0":"2020-10-12T17:47:30.743Z","8.0.0-canary.790ca85fd.0":"2020-10-12T21:57:46.698Z","8.0.0-canary.174c0becf.0":"2020-10-14T02:16:40.230Z","8.0.0-canary.c71ebfa02.0":"2020-10-14T04:18:43.235Z","8.0.0-canary.2ab716cbd.0":"2020-10-16T00:05:22.344Z","8.0.0-canary.43c1c5e2f.0":"2020-10-19T14:09:16.092Z","8.0.0-canary.ccc64eea3.0":"2020-10-26T22:52:37.898Z","8.0.0-canary.a79cdd019.0":"2020-10-27T16:32:45.878Z","8.0.0-canary.596e98424.0":"2020-10-28T16:04:44.649Z","8.0.0-canary.05d5facc2.0":"2020-10-28T16:13:26.676Z","8.0.0-canary.291b3553d.0":"2020-10-28T17:46:08.788Z","8.0.0-canary.dbc449b09.0":"2020-10-28T18:13:54.917Z","8.0.0-canary.4794b25da.0":"2020-10-28T18:42:22.663Z","8.0.0-canary.c61db90a5.0":"2020-10-28T19:01:06.664Z","8.0.0-canary.6d9648ab2.0":"2020-10-29T20:33:46.312Z","8.0.0-canary.5511c5254.0":"2020-10-30T18:01:16.883Z","8.0.0-canary.bd6e302a4.0":"2020-11-02T17:05:58.687Z","9.0.0-canary.d6b5cd418.0":"2020-11-02T23:00:29.040Z","8.0.0":"2020-11-02T23:00:43.893Z","9.0.0-canary.fdf9a2634.0":"2020-11-03T23:22:33.267Z","9.0.0-canary.4a86f30a0.0":"2020-11-03T23:29:20.670Z","9.0.0-canary.fc8b045f1.0":"2020-11-03T23:38:12.824Z","9.0.0-canary.a0b2db26b.0":"2020-11-04T00:10:27.456Z","9.0.0-canary.419e03572.0":"2020-11-04T01:34:05.652Z","9.0.0-canary.a432ad542.0":"2020-11-06T01:46:51.528Z","9.0.0-canary.e2e8aef1e.0":"2020-11-06T02:06:21.463Z","9.0.0-canary.ec6b68b34.0":"2020-11-06T18:57:40.168Z","9.0.0-canary.b39094d14.0":"2020-11-06T21:17:06.510Z","9.0.0-canary.8648b8258.0":"2020-11-12T10:45:45.551Z","9.0.0-canary.240c5f74f.0":"2020-11-12T20:21:56.659Z","9.0.0-canary.6cf6ba4f4.0":"2020-11-16T18:50:54.756Z","9.0.0-canary.07f3e01b7.0":"2020-11-16T21:46:48.750Z","9.0.0-canary.23491cf85.0":"2020-11-17T00:18:17.496Z","9.0.0-canary.b659d4fc3.0":"2020-11-17T00:26:07.218Z","9.0.0-canary.d8a3aed67.0":"2020-11-17T15:28:36.259Z","9.0.0-canary.482ff9091.0":"2020-11-17T17:59:11.024Z","9.0.0-canary.99cfb6bd5.0":"2020-11-18T18:45:05.579Z","9.0.0-canary.b98d15d90.0":"2020-11-18T22:35:51.750Z","9.0.0-canary.30c11bfc2.0":"2020-11-19T01:27:08.008Z","9.0.0-canary.1b731d51b.0":"2020-11-19T18:53:23.886Z","9.0.0-canary.4ae94ff78.0":"2020-11-19T18:56:24.883Z","9.0.0-canary.7ad038e1d.0":"2020-11-19T19:19:29.067Z","9.0.0-canary.a41527604.0":"2020-11-19T20:01:16.834Z","9.0.0-canary.7b0e2b377.0":"2020-11-20T22:56:58.206Z","9.0.0-canary.c927a5d05.0":"2020-11-23T19:48:43.501Z","9.0.0-canary.b349b5185.0":"2020-11-24T17:10:03.809Z","9.0.0-canary.9083b7d61.0":"2020-11-24T21:16:41.380Z","9.0.0-canary.eff7b46ac.0":"2020-11-24T23:32:09.276Z","9.0.0-canary.ae27b44b0.0":"2020-11-25T15:35:23.092Z","9.0.0-canary.2fbba2554.0":"2020-11-30T17:41:22.954Z","9.0.0-canary.6d8574fe1.0":"2020-11-30T17:52:20.408Z","9.0.0-canary.fd22355f7.0":"2020-11-30T23:00:37.938Z","9.0.0-canary.c4ab98722.0":"2020-12-02T00:57:54.211Z","9.0.0-canary.977585650.0":"2020-12-02T14:43:23.088Z","9.0.0-canary.c7edfc7b6.0":"2020-12-02T14:50:36.471Z","9.0.0-canary.4f3347306.0":"2020-12-02T15:08:33.612Z","9.0.0-canary.37fbae10d.0":"2020-12-02T18:17:29.500Z","9.0.0-canary.11da3c0db.0":"2020-12-02T20:23:30.878Z","9.0.0-canary.489d4c219.0":"2020-12-03T15:30:47.062Z","9.0.0-canary.6557a69d9.0":"2020-12-03T15:42:33.152Z","9.0.0-canary.4ea1b7c69.0":"2020-12-03T15:59:42.196Z","9.0.0-canary.eaeb78ce3.0":"2020-12-03T17:02:32.192Z","9.0.0-canary.1c156d69d.0":"2020-12-03T20:46:20.286Z","9.0.0-canary.832668d33.0":"2020-12-04T18:07:00.155Z","9.0.0-canary.4321323e4.0":"2020-12-07T11:29:58.442Z","9.0.0-canary.2d5f32d41.0":"2020-12-07T16:43:04.214Z","9.0.0-canary.8239afc64.0":"2020-12-07T19:50:34.664Z","9.0.0-canary.6871336f1.0":"2020-12-08T16:02:36.958Z","9.0.0-canary.9f718da94.0":"2020-12-08T16:14:21.889Z","9.0.0-canary.1fccb1418.0":"2020-12-08T16:29:20.101Z","9.0.0-canary.afb68894e.0":"2020-12-08T16:33:22.388Z","9.0.0-canary.fd88d40c2.0":"2020-12-08T16:47:03.183Z","9.0.0-canary.ba9e3109c.0":"2020-12-08T19:06:29.106Z","9.0.0-canary.1085c3b2d.0":"2020-12-09T19:12:07.996Z","9.0.0-canary.c5dda809d.0":"2020-12-09T20:51:14.924Z","9.0.0-canary.f5f1bd86a.0":"2020-12-09T21:08:49.048Z","9.0.0-canary.00f38200f.0":"2020-12-11T15:47:17.021Z","9.0.0-canary.ac41a5729.0":"2020-12-11T16:29:32.700Z","9.0.0-canary.7fe0e4f05.0":"2020-12-11T17:06:39.884Z","9.0.0-canary.9244508bd.0":"2020-12-11T19:08:26.565Z","9.0.0-canary.384a8eeb1.0":"2020-12-16T17:02:49.658Z","9.0.0-canary.eabf9d5c2.0":"2020-12-16T18:28:42.894Z","9.0.0-canary.30fdfd06e.0":"2020-12-16T19:08:31.106Z","9.0.0-canary.9590a8f90.0":"2020-12-22T17:43:07.464Z","9.0.0-canary.f89d8b8f2.0":"2020-12-22T23:06:06.735Z","9.0.0-canary.fb194dd35.0":"2020-12-28T20:46:34.105Z","9.0.0-canary.64f36e287.0":"2020-12-28T21:09:29.412Z","9.0.0-canary.b7bbe7022.0":"2020-12-29T18:48:54.696Z","9.0.0":"2020-12-29T19:47:07.467Z","10.0.0-canary.776c18681.0":"2020-12-30T00:41:07.166Z","10.0.0-canary.671d72d95.0":"2020-12-30T20:12:56.364Z","10.0.0-canary.b4f5a1c9e.0":"2020-12-30T21:47:23.866Z","10.0.0-canary.a94bd8deb.0":"2020-12-30T22:05:17.461Z","10.0.0-canary.5d128511b.0":"2020-12-30T22:10:39.422Z","10.0.0-canary.365c69360.0":"2021-01-05T17:49:20.520Z","10.0.0-canary.700a8261a.0":"2021-01-05T21:01:40.937Z","10.0.0-canary.766981c15.0":"2021-01-05T22:41:19.265Z","10.0.0-canary.b28c576d9.0":"2021-01-05T22:50:58.713Z","10.0.0-canary.968735356.0":"2021-01-06T15:52:04.248Z","10.0.0-canary.c5e18b020.0":"2021-01-06T19:45:17.312Z","10.0.0-canary.bcff8a66a.0":"2021-01-06T20:27:29.776Z","10.0.0-canary.79328c9ff.0":"2021-01-07T02:35:15.835Z","10.0.0-canary.121e1f303.0":"2021-01-07T23:20:52.128Z","10.0.0-canary.abdd10065.0":"2021-01-08T17:52:32.714Z","10.0.0-canary.089de519c.0":"2021-01-08T22:21:35.478Z","10.0.0-canary.163119837.0":"2021-01-08T23:46:21.992Z","10.0.0-canary.b8a1a58e4.0":"2021-01-11T16:25:25.114Z","10.0.0-canary.7584267ff.0":"2021-01-12T01:13:26.029Z","10.0.0-canary.251ac04c0.0":"2021-01-12T19:56:26.363Z","10.0.0-canary.772cc1068.0":"2021-01-14T00:08:09.678Z","10.0.0-canary.fe13dd130.0":"2021-01-14T01:11:16.237Z","10.0.0-canary.c7c5da28f.0":"2021-01-14T01:35:07.585Z","10.0.0-canary.b2faa116a.0":"2021-01-19T19:27:39.252Z","10.0.0-canary.0c95c9f7b.0":"2021-01-19T22:54:58.414Z","10.0.0-canary.5268222c4.0":"2021-01-20T19:20:29.178Z","10.0.0-canary.2ed2d829b.0":"2021-01-20T23:09:09.894Z","10.0.0-canary.df00c2b30.0":"2021-01-21T19:56:08.573Z","10.0.0-canary.fd61b0476.0":"2021-01-21T20:10:44.828Z","10.0.0-canary.3fb3a0265.0":"2021-01-22T00:05:59.056Z","10.0.0-canary.07deaec27.0":"2021-01-22T16:57:32.142Z","10.0.0-canary.d2959b16c.0":"2021-01-22T18:53:14.397Z","10.0.0-canary.75f3bfe7c.0":"2021-01-22T22:52:38.210Z","10.0.0-canary.b9adb7a0f.0":"2021-01-22T23:37:02.581Z","10.0.0-canary.d29ec2862.0":"2021-01-25T16:25:15.282Z","10.0.0-canary.96be07c68.0":"2021-01-26T00:11:19.905Z","10.0.0-canary.e383944e9.0":"2021-01-26T01:46:04.096Z","10.0.0-canary.623af861e.0":"2021-01-26T03:46:18.078Z","10.0.0-canary.6863fd43a.0":"2021-01-26T21:34:32.739Z","10.0.0-canary.ea55b87ca.0":"2021-01-26T23:47:14.798Z","10.0.0-canary.e902ff05f.0":"2021-01-27T00:05:21.249Z","10.0.0-canary.2c9fc538a.0":"2021-01-27T00:28:27.195Z","10.0.0-canary.6bf56aaa4.0":"2021-01-27T01:21:25.417Z","10.0.0-canary.994873795.0":"2021-01-27T14:52:13.699Z","10.0.0-canary.96878e1d0.0":"2021-01-27T18:03:32.254Z","10.0.0-canary.3c117cdcc.0":"2021-01-27T18:33:41.931Z","10.0.0-canary.b411e7033.0":"2021-01-27T22:04:54.422Z","10.0.0-canary.a9ac16b4a.0":"2021-01-27T23:04:48.642Z","10.0.0-canary.fec7b42ca.0":"2021-01-28T19:15:54.388Z","10.0.0-canary.8e66dbfee.0":"2021-02-01T23:21:38.543Z","10.0.0-canary.637d15da6.0":"2021-02-02T18:50:30.102Z","10.0.0-canary.fb793939e.0":"2021-02-02T23:44:12.982Z","10.0.0-canary.15a4d40dd.0":"2021-02-03T02:19:37.140Z","10.0.0-canary.7a003acf0.0":"2021-02-04T02:35:11.485Z","10.0.0-canary.05f249666.0":"2021-02-04T17:51:26.873Z","10.0.0-canary.1a3a39629.0":"2021-02-04T18:44:30.142Z","10.0.0-canary.8b1cdb1be.0":"2021-02-04T22:36:04.598Z","10.0.0-canary.8271f00f7.0":"2021-02-04T23:01:44.583Z","10.0.0-canary.533092a90.0":"2021-02-05T03:47:51.433Z","11.0.0-canary.633a9fc7a.0":"2021-02-05T16:18:48.470Z","10.0.0":"2021-02-05T16:20:08.275Z","11.0.0-canary.b5227247d.0":"2021-02-05T17:43:18.003Z","11.0.0-canary.95322b11e.0":"2021-02-05T23:32:48.956Z","11.0.0-canary.1f318ff0f.0":"2021-02-06T00:06:04.123Z","11.0.0-canary.ab12cf7a3.0":"2021-02-08T15:04:51.929Z","11.0.0-canary.98db2c5ec.0":"2021-02-08T15:35:58.016Z","11.0.0-canary.1f86b9f6d.0":"2021-02-08T17:18:38.650Z","11.0.0-canary.aac8f5d9a.0":"2021-02-08T18:01:36.277Z","11.0.0-canary.750e18fc7.0":"2021-02-08T21:42:27.352Z","11.0.0-canary.b62b1266d.0":"2021-02-09T21:53:52.491Z","11.0.0-canary.a6b3101fb.0":"2021-02-11T23:18:05.586Z","11.0.0-canary.ed88df700.0":"2021-02-12T00:08:04.944Z","11.0.0-canary.d30efe6b4.0":"2021-02-12T02:43:01.679Z","11.0.0-canary.0393bdc4b.0":"2021-02-12T04:32:05.326Z","11.0.0-canary.7cd26af4d.0":"2021-02-12T16:00:36.781Z","11.0.0-canary.71fe9a067.0":"2021-02-12T16:32:01.235Z","11.0.0-canary.0fd56a86b.0":"2021-02-13T00:12:51.008Z","11.0.0-canary.f19bbc4af.0":"2021-02-16T22:17:24.331Z","11.0.0-canary.f9cac96cc.0":"2021-02-17T16:11:12.826Z","11.0.0-canary.79ce0878b.0":"2021-02-17T19:26:13.481Z","11.0.0-canary.d6e507b5b.0":"2021-02-17T19:59:11.308Z","11.0.0-canary.f2658381b.0":"2021-02-17T22:45:59.063Z","11.0.0-canary.97c4d4035.0":"2021-02-18T02:36:05.504Z","11.0.0-canary.f5bb4648c.0":"2021-02-18T16:06:46.332Z","11.0.0-canary.302c7a960.0":"2021-02-18T18:39:24.337Z","11.0.0-canary.aa0aaf026.0":"2021-02-18T19:24:39.774Z","11.0.0-canary.07ff0c452.0":"2021-02-18T19:43:44.832Z","11.0.0-canary.bed7ecd3e.0":"2021-02-18T23:28:42.263Z","11.0.0-canary.06dead2d6.0":"2021-02-19T00:38:07.810Z","11.0.0-canary.cddb03553.0":"2021-02-19T03:14:14.415Z","11.0.0-canary.d6d8d0476.0":"2021-02-19T05:37:46.574Z","11.0.0-canary.0b4a4b2eb.0":"2021-02-19T15:47:01.337Z","11.0.0-canary.3201cae47.0":"2021-02-19T23:01:50.060Z","11.0.0-canary.f1b1fd5d3.0":"2021-02-22T19:50:30.146Z","11.0.0-canary.7899e0fe0.0":"2021-02-22T22:46:53.277Z","11.0.0-canary.f19c86d13.0":"2021-02-22T23:31:45.792Z","11.0.0-canary.60e892d79.0":"2021-02-23T01:15:20.297Z","11.0.0-canary.c96bfa495.0":"2021-02-23T19:34:19.637Z","11.0.0-canary.fa9b59f67.0":"2021-02-23T19:35:35.546Z","11.0.0-canary.869e3497c.0":"2021-02-23T19:36:02.228Z","11.0.0-canary.8ecd7c9a9.0":"2021-02-23T19:51:46.242Z","11.0.0-canary.9c85d505b.0":"2021-02-23T22:16:45.754Z","11.0.0-canary.9f2e85fb8.0":"2021-02-24T01:49:25.006Z","11.0.0-canary.19c4f29ef.0":"2021-02-25T19:23:34.478Z","11.0.0-canary.63df6e9bf.0":"2021-02-25T19:38:14.111Z","11.0.0-canary.981ad970a.0":"2021-02-26T00:09:07.997Z","11.0.0-canary.f9c9e39d6.0":"2021-02-26T18:39:54.325Z","11.0.0-canary.c97d7d881.0":"2021-03-01T20:54:11.743Z","11.0.0-canary.bf670dad7.0":"2021-03-03T00:22:12.889Z","11.0.0-canary.c7d98fcde.0":"2021-03-03T20:33:16.858Z","11.0.0-canary.4fef8bc1e.0":"2021-03-03T23:25:14.684Z","11.0.0-canary.afae3a3ec.0":"2021-03-03T23:43:11.770Z","11.0.0-canary.0a0b10f22.0":"2021-03-04T00:02:02.618Z","11.0.0-canary.6f678a91a.0":"2021-03-04T18:41:09.512Z","11.0.0-canary.f5f1b613c.0":"2021-03-04T20:50:32.000Z","11.0.0-canary.606e767ef.0":"2021-03-04T21:46:46.949Z","11.0.0-canary.f77a4dd1a.0":"2021-03-06T04:40:59.350Z","11.0.0-canary.2d6ba2c23.0":"2021-03-08T22:45:11.506Z","11.0.0-canary.7522dcaca.0":"2021-03-09T00:28:34.238Z","11.0.0-canary.5c0ab7401.0":"2021-03-09T22:53:28.766Z","11.0.0-canary.59010b6dc.0":"2021-03-10T16:58:29.956Z","11.0.0-canary.9e52f5544.0":"2021-03-10T23:26:07.679Z","11.0.0-canary.a678806f5.0":"2021-03-11T01:50:49.338Z","11.0.0-canary.b2d22df5b.0":"2021-03-11T17:03:56.869Z","11.0.0-canary.81911b707.0":"2021-03-11T18:24:21.747Z","11.0.0-canary.9eeb35c38.0":"2021-03-11T19:37:53.832Z","11.0.0-canary.12be3e95a.0":"2021-03-11T20:02:31.303Z","11.0.0-canary.e683bdf4a.0":"2021-03-11T20:10:05.368Z","11.0.0-canary.a07b6d486.0":"2021-03-11T20:34:21.970Z","11.0.0-canary.1e0653477.0":"2021-03-11T20:41:28.989Z","11.0.0-canary.148e8cfcc.0":"2021-03-11T22:45:20.913Z","11.0.0-canary.73a227194.0":"2021-03-12T00:25:08.755Z","11.0.0-canary.f8579b7ea.0":"2021-03-13T02:04:04.624Z","11.0.0-canary.d2a39d300.0":"2021-03-16T00:36:05.753Z","11.0.0-canary.7cf67823e.0":"2021-03-16T18:21:11.914Z","11.0.0-canary.67d780c79.0":"2021-03-16T19:48:57.679Z","11.0.0-canary.0f358ddae.0":"2021-03-16T22:13:30.905Z","11.0.0-canary.67eb0df80.0":"2021-03-16T22:40:41.728Z","11.0.0-canary.941ca3b3c.0":"2021-03-16T22:42:26.678Z","11.0.0-canary.3344d12ad.0":"2021-03-17T10:02:46.590Z","11.0.0-canary.6072ed604.0":"2021-03-17T23:00:28.346Z","11.0.0-canary.d3a6862af.0":"2021-03-18T16:21:03.426Z","11.0.0-canary.40dd242d5.0":"2021-03-18T21:18:13.431Z","11.0.0-canary.ec8f8465f.0":"2021-03-18T21:45:05.311Z","11.0.0-canary.da38969ec.0":"2021-03-18T22:18:46.989Z","11.0.0-canary.f5246264d.0":"2021-03-19T00:39:36.865Z","11.0.0-canary.03d34bbad.0":"2021-03-19T00:52:24.774Z","11.0.0-canary.cbc57c600.0":"2021-03-19T01:00:41.727Z","11.0.0-canary.d6c5bcf37.0":"2021-03-19T01:13:33.008Z","11.0.0-canary.fefc668d7.0":"2021-03-19T01:34:56.181Z","11.0.0-canary.faa7d3226.0":"2021-03-19T17:45:14.254Z","11.0.0-canary.c60449bc8.0":"2021-03-19T18:06:08.724Z","11.0.0-canary.5f0fc444a.0":"2021-03-19T18:38:41.952Z","11.0.0-canary.4567a750d.0":"2021-03-20T02:08:54.423Z","11.0.0-canary.0cde52f5a.0":"2021-03-23T00:03:52.884Z","11.0.0-canary.48f4b67fb.0":"2021-03-23T19:55:15.547Z","11.0.0-canary.0b8cff734.0":"2021-03-23T20:05:37.426Z","11.0.0-canary.8943b991f.0":"2021-03-23T20:30:38.035Z","11.0.0-canary.3955d8d3d.0":"2021-03-24T19:17:37.154Z","11.0.0-canary.23ea2d85e.0":"2021-03-25T17:33:46.751Z","11.0.0-canary.e3ec22f45.0":"2021-03-25T17:58:59.829Z","11.0.0-canary.4ceb42220.0":"2021-03-26T07:58:29.164Z","11.0.0-canary.dc9c84023.0":"2021-03-30T17:49:24.298Z","11.0.0-canary.56fc26962.0":"2021-03-31T00:21:41.498Z","11.0.0-canary.bc318250e.0":"2021-03-31T01:34:39.151Z","11.0.0-canary.edaee19aa.0":"2021-03-31T02:12:32.226Z","11.0.0-canary.24609b822.0":"2021-03-31T20:57:51.705Z","11.0.0-canary.b6cddc2b7.0":"2021-04-01T15:06:12.870Z","11.0.0-canary.94937c78c.0":"2021-04-01T21:01:49.080Z","11.0.0-canary.e7202cb57.0":"2021-04-01T22:48:11.191Z","11.0.0-canary.1f636b205.0":"2021-04-02T22:25:04.554Z","11.0.0-canary.94f50b260.0":"2021-04-05T15:06:00.213Z","11.0.0-canary.a4009b80a.0":"2021-04-05T22:01:23.767Z","11.0.0-canary.15604bd0d.0":"2021-04-05T22:43:02.898Z","11.0.0-canary.76da7876c.0":"2021-04-07T01:45:38.864Z","11.0.0-canary.6bcb6cbd2.0":"2021-04-07T18:54:47.111Z","11.0.0-canary.c91e8d141.0":"2021-04-07T18:58:47.217Z","11.0.0-canary.f77c50860.0":"2021-04-08T15:36:42.947Z","11.0.0-canary.367d88bdb.0":"2021-04-08T16:39:34.279Z","11.0.0-canary.0ec437d3b.0":"2021-04-08T19:36:16.064Z","11.0.0-canary.b2fa996a1.0":"2021-04-09T15:12:00.221Z","11.0.0-canary.24255c408.0":"2021-04-09T20:13:21.415Z","11.0.0-canary.7d6a4bb72.0":"2021-04-09T22:54:29.542Z","11.0.0-canary.352b295c1.0":"2021-04-12T18:16:33.392Z","11.0.0-canary.ab99b8064.0":"2021-04-13T14:44:23.391Z","11.0.0-canary.8f0a11e32.0":"2021-04-14T20:03:54.739Z","11.0.0-canary.f5c6db8fc.0":"2021-04-15T18:05:02.758Z","11.0.0-canary.3793a3143.0":"2021-04-15T18:32:17.607Z","11.0.0-canary.bc104bae7.0":"2021-04-15T19:47:07.428Z","12.0.0-canary.3f342c3f4.0":"2021-04-15T22:55:07.824Z","11.0.0":"2021-04-15T22:59:16.815Z","12.0.0-canary.2ebfc5374.0":"2021-04-16T20:46:01.122Z","12.0.0-canary.5631828e1.0":"2021-04-17T07:47:51.049Z","12.0.0-canary.bd685395b.0":"2021-04-19T18:42:12.743Z","12.0.0-canary.b52196498.0":"2021-04-19T19:58:44.422Z","12.0.0-canary.8ba3e298c.0":"2021-04-21T14:09:33.964Z","12.0.0-canary.c629eab71.0":"2021-04-21T19:58:07.060Z","12.0.0-canary.8ace3b810.0":"2021-04-21T20:38:48.460Z","12.0.0-canary.70beaf42d.0":"2021-04-21T20:50:19.551Z","12.0.0-canary.cad489689.0":"2021-04-22T16:50:27.545Z","12.0.0-canary.d928692b5.0":"2021-04-23T17:35:29.208Z","12.0.0-canary.8f68de8f3.0":"2021-04-23T18:14:11.673Z","12.0.0-canary.05753cf77.0":"2021-04-23T23:44:07.035Z","12.0.0-canary.ef43e6d96.0":"2021-04-23T23:50:23.075Z","12.0.0-canary.197f64fa2.0":"2021-04-26T17:10:51.129Z","12.0.0-canary.55ad2d7d8.0":"2021-04-27T01:20:50.910Z","12.0.0-canary.ec4ac5234.0":"2021-04-27T07:59:34.711Z","12.0.0-canary.b0579acdb.0":"2021-04-27T08:37:28.986Z","12.0.0-canary.81e2d4ff3.0":"2021-04-27T20:58:51.989Z","12.0.0-canary.c8edee52c.0":"2021-04-27T21:47:07.544Z","12.0.0-canary.f5b6110d6.0":"2021-04-27T22:08:21.660Z","12.0.0-canary.cee9b9e22.0":"2021-04-28T00:13:48.621Z","12.0.0-canary.96e83fca7.0":"2021-04-28T02:48:53.200Z","12.0.0-canary.4c497bd19.0":"2021-04-28T17:54:38.997Z","12.0.0-canary.105b15b96.0":"2021-04-28T21:45:48.872Z","12.0.0-canary.6e20259e3.0":"2021-04-28T21:50:16.905Z","12.0.0-canary.0f79a5d74.0":"2021-04-28T22:44:05.235Z","12.0.0-canary.84f3db9ed.0":"2021-04-29T14:19:05.112Z","12.0.0-canary.8fc29273c.0":"2021-04-29T21:24:49.295Z","12.0.0-canary.c50d20bab.0":"2021-04-29T23:03:00.241Z","12.0.0-canary.474836ad0.0":"2021-05-01T03:38:42.281Z","12.0.0-canary.f5ad92287.0":"2021-05-03T18:23:18.345Z","12.0.0-canary.af453daf8.0":"2021-05-03T18:54:34.800Z","12.0.0-canary.1f1918c24.0":"2021-05-03T19:23:46.493Z","12.0.0-canary.33148231f.0":"2021-05-03T19:39:48.100Z","12.0.0-canary.06b76fa74.0":"2021-05-03T19:46:48.997Z","12.0.0-canary.7c5000473.0":"2021-05-03T22:42:41.273Z","12.0.0-canary.de997644b.0":"2021-05-04T17:29:17.543Z","12.0.0-canary.d4d7f1cc2.0":"2021-05-04T17:56:14.243Z","12.0.0-canary.be999eb08.0":"2021-05-04T18:01:19.717Z","12.0.0-canary.eda1705fc.0":"2021-05-04T19:11:28.879Z","12.0.0-canary.718c90178.0":"2021-05-04T19:28:48.082Z","12.0.0-canary.0e3917299.0":"2021-05-04T19:31:31.765Z","12.0.0-canary.836b3c7db.0":"2021-05-04T20:34:59.523Z","12.0.0-canary.53d4e6d59.0":"2021-05-04T20:50:37.578Z","12.0.0-canary.18d147e27.0":"2021-05-04T20:59:06.839Z","12.0.0-canary.b9984794e.0":"2021-05-04T23:04:04.045Z","12.0.0-canary.b76f5fc9d.0":"2021-05-04T23:07:34.693Z","12.0.0-canary.055d4f10a.0":"2021-05-04T23:22:48.358Z","12.0.0-canary.5b6a46016.0":"2021-05-05T16:17:23.118Z","12.0.0-canary.33c9a737a.0":"2021-05-05T17:28:20.746Z","12.0.0-canary.9bc0effaf.0":"2021-05-05T21:01:09.405Z","12.0.0-canary.a1e0f2af5.0":"2021-05-05T21:42:06.775Z","12.0.0-canary.06930c96b.0":"2021-05-05T23:40:12.899Z","12.0.0-canary.03f525f9f.0":"2021-05-06T00:31:13.637Z","12.0.0-canary.e82ba2a26.0":"2021-05-06T15:57:35.473Z","12.0.0-canary.fc7c4e5ce.0":"2021-05-06T17:30:28.950Z","12.0.0-canary.65c04514d.0":"2021-05-06T18:44:47.288Z","12.0.0-canary.c97779ca6.0":"2021-05-06T21:44:20.861Z","12.0.0-canary.869d890d4.0":"2021-05-07T15:19:50.348Z","12.0.0-canary.ec22e1da9.0":"2021-05-10T18:24:35.715Z","12.0.0-nightly.7427449f0.0":"2021-05-10T18:45:14.631Z","12.0.0-canary.957cc3bf5.0":"2021-05-10T21:57:53.528Z","12.0.0-canary.88a33cd70.0":"2021-05-11T00:09:58.216Z","12.0.0-canary.d20dc6dba.0":"2021-05-11T00:25:49.668Z","12.0.0-canary.0ce2fdb02.0":"2021-05-11T00:59:45.417Z","12.0.0-canary.cb162da37.0":"2021-05-11T01:59:47.300Z","12.0.0-canary.573dc7ffd.0":"2021-05-11T02:18:32.225Z","12.0.0-canary.d5f6ad3fe.0":"2021-05-11T23:23:37.547Z","12.0.0-canary.25751d2ed.0":"2021-05-12T16:21:00.564Z","12.0.0-canary.a23ecb682.0":"2021-05-12T18:24:20.393Z","12.0.0-canary.33a954852.0":"2021-05-13T15:08:49.830Z","12.0.0-canary.a4484849b.0":"2021-05-13T15:32:09.852Z","12.0.0-canary.b4c3f513e.0":"2021-05-13T16:09:04.151Z","12.0.0-canary.1a8d06483.0":"2021-05-13T16:14:51.571Z","12.0.0-canary.8e6081836.0":"2021-05-14T21:41:45.303Z","12.0.0-canary.a2b0f4cee.0":"2021-05-14T21:55:00.493Z","12.0.0-canary.e8e39ad19.0":"2021-05-18T20:14:14.457Z","12.0.0-canary.4bb5eea2b.0":"2021-05-19T15:29:29.105Z","12.0.0-canary.ccce99cd6.0":"2021-05-20T00:57:54.791Z","12.0.0-canary.14767a8db.0":"2021-05-20T20:52:05.957Z","12.0.0-canary.22c6dcff9.0":"2021-05-24T15:19:46.439Z","12.0.0-canary.fadab3372.0":"2021-05-24T16:06:57.643Z","12.0.0-canary.caa73aeee.0":"2021-05-25T14:15:31.688Z","12.0.0-canary.ec31ae1ed.0":"2021-05-25T20:36:34.124Z","12.0.0-canary.8530d3514.0":"2021-05-27T16:05:57.973Z","12.0.0-canary.00b5899dc.0":"2021-06-01T22:46:42.143Z","12.0.0-canary.f1525ea3e.0":"2021-06-03T13:55:32.770Z","12.0.0-canary.464a00286.0":"2021-06-03T14:47:19.037Z","12.0.0-canary.474de7878.0":"2021-06-03T15:15:19.197Z","12.0.0-canary.b87ebf74d.0":"2021-06-03T17:47:23.057Z","12.0.0-canary.2daa49b35.0":"2021-06-04T16:15:17.099Z","12.0.0-canary.08db3d737.0":"2021-06-04T19:42:40.562Z","12.0.0-canary.5823407a7.0":"2021-06-08T00:49:30.882Z","12.0.0-canary.23b0c5e22.0":"2021-06-08T16:23:19.223Z","12.0.0-canary.2952c6a76.0":"2021-06-08T17:41:56.743Z","12.0.0-canary.f12425f88.0":"2021-06-10T01:07:27.591Z","12.0.0-canary.e543628c3.0":"2021-06-10T01:08:25.711Z","12.0.0-canary.e0c346286.0":"2021-06-10T16:36:52.126Z","12.0.0-canary.f43af5633.0":"2021-06-10T20:36:48.791Z","12.0.0-canary.8415ae585.0":"2021-06-11T16:06:54.629Z","12.0.0-canary.598fcccc8.0":"2021-06-11T21:47:20.395Z","12.0.0-canary.5d0605188.0":"2021-06-14T17:40:19.505Z","12.0.0-canary.f147a2271.0":"2021-06-14T19:19:12.428Z","12.0.0-canary.33579e00b.0":"2021-06-15T00:23:07.686Z","12.0.0-canary.a6909c0e6.0":"2021-06-15T18:31:07.155Z","12.0.0-canary.c18b5925b.0":"2021-06-15T21:04:40.471Z","12.0.0-canary.271fff902.0":"2021-06-15T22:52:06.925Z","12.0.0-canary.7ea2e830d.0":"2021-06-15T22:53:08.055Z","12.0.0-canary.d96f0a1e0.0":"2021-06-16T21:07:27.967Z","12.0.0-canary.a6183801a.0":"2021-06-16T22:06:32.970Z","12.0.0-canary.940550232.0":"2021-06-17T19:41:20.277Z","12.0.0-canary.f705e8048.0":"2021-06-18T15:25:36.704Z","12.0.0-canary.08d791f37.0":"2021-06-18T21:12:48.149Z","12.0.0-canary.e38d7440f.0":"2021-06-21T17:41:38.761Z","12.0.0-canary.75900a5a9.0":"2021-06-21T18:38:10.531Z","12.0.0-canary.33e6f50e9.0":"2021-06-23T00:13:08.906Z","12.0.0-canary.8c685301d.0":"2021-06-23T18:25:41.557Z","12.0.0-canary.8c7d994ae.0":"2021-06-23T19:28:31.313Z","12.0.0-canary.4ccd39bdd.0":"2021-06-24T16:16:02.292Z","12.0.0-canary.17553e9f8.0":"2021-06-28T22:53:38.088Z","12.0.0-canary.4c80072fd.0":"2021-06-29T18:42:00.774Z","12.0.0-canary.796811db7.0":"2021-07-01T00:04:24.239Z","12.0.0-canary.70e1efdca.0":"2021-07-01T17:07:41.994Z","12.0.0-canary.435866d32.0":"2021-07-02T18:22:16.920Z","12.0.0-canary.d0f9f3f2e.0":"2021-07-03T00:01:10.098Z","12.0.0-canary.adeac0549.0":"2021-07-08T15:10:41.805Z","12.0.0-canary.068fd5028.0":"2021-07-08T19:04:53.429Z","12.0.0-canary.5dfec7a14.0":"2021-07-12T20:05:11.405Z","12.0.0-canary.07a73750c.0":"2021-07-12T20:26:35.470Z","12.0.0-canary.3e4c6dca1.0":"2021-07-13T01:52:32.909Z","12.0.0-canary.ea77795b1.0":"2021-07-13T15:50:31.960Z","12.0.0-canary.15a179fad.0":"2021-07-13T18:10:37.159Z","12.0.0-canary.c73142a1b.0":"2021-07-13T18:45:28.578Z","12.0.0-canary.d923db73a.0":"2021-07-13T20:55:01.615Z","12.0.0-canary.22d29cbb4.0":"2021-07-13T22:51:50.789Z","12.0.0-canary.2749604bc.0":"2021-07-14T16:23:38.109Z","12.0.0-canary.e1703bed9.0":"2021-07-14T21:49:17.412Z","12.0.0-canary.de48eff0d.0":"2021-07-15T17:09:16.564Z","12.0.0-canary.4f060adc5.0":"2021-07-15T19:23:03.497Z","12.0.0-canary.bd25779b2.0":"2021-07-15T20:43:26.494Z","12.0.0-canary.9f68a932e.0":"2021-07-15T22:08:12.214Z","12.0.0-canary.4eecdeaf0.0":"2021-07-16T14:59:09.055Z","12.0.0-canary.7239684d4.0":"2021-07-16T16:00:13.627Z","12.0.0-canary.d5f1f7c72.0":"2021-07-16T16:15:02.347Z","12.0.0-canary.4d95812f9.0":"2021-07-16T19:44:11.717Z","12.0.0-canary.38d1846cc.0":"2021-07-19T18:43:07.995Z","12.0.0-canary.3f691eccf.0":"2021-07-20T16:10:13.663Z","12.0.0-canary.ebb5c73bb.0":"2021-07-20T16:57:58.360Z","12.0.0-nightly.778a0e8a.0":"2021-07-20T21:06:37.977Z","12.0.0-canary.791311bba.0":"2021-07-20T22:08:41.467Z","12.0.0-canary.85e9a6ac3.0":"2021-07-21T15:37:08.343Z","12.0.0-canary.6b0442278.0":"2021-07-21T18:51:01.372Z","12.0.0-canary.5f00e454a.0":"2021-07-22T17:07:30.254Z","12.0.0-canary.90e08fc6b.0":"2021-07-22T23:39:20.466Z","12.0.0-canary.cf5b9eb86.0":"2021-07-23T18:13:16.320Z","12.0.0-canary.3f36ac75c.0":"2021-07-23T18:33:17.355Z","12.0.0-canary.ea1e1b850.0":"2021-07-24T20:56:53.438Z","12.0.0-canary.22f390c43.0":"2021-07-27T19:01:01.021Z","12.0.0":"2021-07-27T19:51:08.974Z","13.0.0-canary.ae85f7eba.0":"2021-07-27T19:52:40.870Z","13.0.0-canary.5981207f7.0":"2021-07-27T23:19:21.999Z","13.0.0-canary.83bdd0222.0":"2021-07-28T17:27:02.432Z","13.0.0-canary.28656298a.0":"2021-07-29T18:14:06.837Z","13.0.0-canary.9e797daaf.0":"2021-07-29T18:36:23.304Z","13.0.0-canary.adb9f1ad8.0":"2021-07-30T19:06:08.637Z","13.0.0-canary.cc5377458.0":"2021-07-30T21:34:29.059Z","13.0.0-canary.a395972cf.0":"2021-08-03T21:24:30.716Z","13.0.0-canary.7c96e6b98.0":"2021-08-03T22:14:58.465Z","13.0.0-canary.a80c8b2c2.0":"2021-08-05T00:00:55.510Z","13.0.0-canary.3dd611091.0":"2021-08-05T03:57:40.398Z","13.0.0-canary.5dee37ff6.0":"2021-08-05T17:43:29.482Z","13.0.0-canary.bf405d22a.0":"2021-08-05T20:19:15.807Z","13.0.0-canary.b47dd37a6.0":"2021-08-05T20:51:04.169Z","13.0.0-canary.6c82b965b.0":"2021-08-06T16:16:01.051Z","13.0.0-canary.4ca11fe76.0":"2021-08-06T17:08:31.468Z","13.0.0-canary.510cf90f2.0":"2021-08-09T17:18:30.334Z","13.0.0-canary.17580ebf7.0":"2021-08-09T18:18:49.198Z","13.0.0-canary.7249a3060.0":"2021-08-09T18:22:38.733Z","13.0.0-canary.4c405863b.0":"2021-08-10T17:42:01.237Z","13.0.0-canary.f4241a42a.0":"2021-08-11T17:00:41.580Z","13.0.0-canary.0ad12ed3c.0":"2021-08-11T21:29:56.521Z","13.0.0-canary.077dcfcfe.0":"2021-08-12T17:56:24.917Z","13.0.0-canary.e3346766f.0":"2021-08-13T19:46:24.757Z","13.0.0-canary.2fb068fb0.0":"2021-08-13T19:49:39.461Z","13.0.0-canary.fb76c5069.0":"2021-08-16T20:09:17.930Z","13.0.0-canary.457d89aad.0":"2021-08-17T15:23:01.767Z","13.0.0-canary.0de2f2edc.0":"2021-08-17T20:55:17.665Z","13.0.0-canary.1f9259b9d.0":"2021-08-17T22:15:20.788Z","13.0.0-canary.3b9290351.0":"2021-08-18T05:25:10.899Z","13.0.0-canary.43d2eed2a.0":"2021-08-18T16:03:24.618Z","13.0.0-canary.0a9069300.0":"2021-08-19T16:18:50.940Z","13.0.0-canary.7da413ed8.0":"2021-08-20T15:50:01.536Z","13.0.0-canary.e1e69fd8e.0":"2021-08-20T19:33:24.905Z","13.0.0-canary.f5afc16df.0":"2021-08-20T20:27:44.129Z","13.0.0-canary.28d0d75bb.0":"2021-08-20T22:21:23.284Z","13.0.0-canary.21ece5360.0":"2021-08-20T23:45:26.293Z","13.0.0-canary.8de07c02a.0":"2021-08-23T15:27:46.063Z","13.0.0-canary.65aa63b0c.0":"2021-08-24T15:29:54.621Z","13.0.0-canary.15981e9d9.0":"2021-08-24T16:18:14.451Z","13.0.0-canary.fa7520f62.0":"2021-08-24T22:29:01.726Z","13.0.0-canary.ce25bc3ec.0":"2021-08-24T22:49:36.484Z","13.0.0-canary.12f5622e1.0":"2021-08-24T23:19:19.998Z","13.0.0-canary.d97f8f133.0":"2021-08-25T18:34:21.009Z","13.0.0-canary.d86fb6fac.0":"2021-08-25T18:54:57.242Z","13.0.0-canary.e8554dbbf.0":"2021-08-25T22:00:31.585Z","13.0.0-canary.877e3fb0d.0":"2021-08-26T15:39:27.241Z","13.0.0-canary.6236f3576.0":"2021-08-26T16:07:03.823Z","13.0.0-canary.1d19158a1.0":"2021-08-26T17:10:25.271Z","13.0.0-canary.6adc9e83f.0":"2021-08-30T22:45:30.343Z","13.0.0-canary.d082790f0.0":"2021-09-01T21:55:26.266Z","13.0.0-canary.e2c4f0196.0":"2021-09-02T02:12:32.260Z","13.0.0-canary.611db508e.0":"2021-09-02T03:16:26.990Z","13.0.0-canary.d4706933f.0":"2021-09-02T15:38:56.534Z","13.0.0-canary.c16fe03ce.0":"2021-09-02T17:45:54.573Z","13.0.0-canary.9203a958a.0":"2021-09-02T23:47:06.546Z","13.0.0-canary.fddd5ae93.0":"2021-09-03T07:30:44.803Z","13.0.0-canary.117599a8b.0":"2021-09-03T07:32:19.679Z","13.0.0-canary.e4180d07b.0":"2021-09-03T07:32:48.799Z","13.0.0-canary.42d175efc.0":"2021-09-03T15:43:33.516Z","13.0.0-canary.72464476c.0":"2021-09-07T15:34:56.759Z","13.0.0-canary.37d4db866.0":"2021-09-09T14:34:11.358Z","13.0.0-canary.6df682e74.0":"2021-09-09T15:43:54.548Z","13.0.0-canary.b49359c35.0":"2021-09-09T17:36:12.837Z","13.0.0-canary.470bd34e8.0":"2021-09-09T18:01:53.557Z","13.0.0-canary.d48a01771.0":"2021-09-09T18:11:04.098Z","13.0.0-canary.13db34b34.0":"2021-09-09T18:26:05.754Z","13.0.0-canary.864798678.0":"2021-09-09T18:37:31.583Z","13.0.0-canary.d04bda3fb.0":"2021-09-10T15:22:21.951Z","13.0.0-canary.5533f73d3.0":"2021-09-13T23:04:20.590Z","13.0.0-canary.08398f880.0":"2021-09-13T23:35:00.618Z","13.0.0-canary.818f4ee93.0":"2021-09-15T17:51:00.742Z","13.0.0-canary.8355e14dc.0":"2021-09-15T19:13:00.172Z","13.0.0-canary.d4e16a6c4.0":"2021-09-15T21:59:44.061Z","13.0.0-canary.65125b3a6.0":"2021-09-16T21:18:03.337Z","13.0.0-canary.80a583365.0":"2021-09-17T20:36:12.134Z","13.0.0-canary.83900936a.0":"2021-09-17T23:24:41.974Z","13.0.0-canary.860ad06a1.0":"2021-09-17T23:36:21.418Z","13.0.0-canary.3b8d4429e.0":"2021-09-20T17:47:57.010Z","13.0.0-canary.2da3606b9.0":"2021-09-20T19:38:03.732Z","13.0.0-canary.e8c598d1e.0":"2021-09-20T21:12:14.828Z","13.0.0-canary.1340ee9f7.0":"2021-09-22T17:58:17.146Z","13.0.0-canary.65084baff.0":"2021-09-23T21:25:52.180Z","13.0.0-canary.c79aa0cdd.0":"2021-09-24T13:42:18.544Z","13.0.0":"2021-09-24T19:46:14.079Z","14.0.0-canary.198431fcd.0":"2021-09-24T19:46:58.340Z","14.0.0-canary.9a02b6ef8.0":"2021-09-25T13:11:23.598Z","14.0.0-canary.758ce31d9.0":"2021-09-27T17:29:37.276Z","14.0.0-canary.86b50ef74.0":"2021-09-28T17:43:23.871Z","14.0.0-canary.b2fe3528b.0":"2021-09-29T22:57:16.719Z","14.0.0-canary.586e740dd.0":"2021-09-30T16:31:40.791Z","14.0.0-canary.2ac92d766.0":"2021-10-05T19:28:53.891Z","14.0.0-canary.353ca7e9f.0":"2021-10-08T18:47:18.072Z","14.0.0-canary.c78ff0429.0":"2021-10-11T17:22:27.453Z","14.0.0-canary.261f2db59.0":"2021-10-20T17:00:01.994Z","14.0.0-canary.9803d2dc1.0":"2021-10-20T19:22:13.659Z","14.0.0-canary.348665978.0":"2021-10-21T14:51:08.307Z","14.0.0-canary.b2b979a8a.0":"2021-10-28T15:12:44.441Z","14.0.0-canary.1af7c1c4a.0":"2021-10-28T17:53:12.941Z","14.0.0-canary.4afd353cd.0":"2021-10-29T15:01:56.579Z","14.0.0-canary.a986df922.0":"2021-10-29T21:35:24.125Z","14.0.0-canary.c3cdff07b.0":"2021-11-09T19:06:16.706Z","14.0.0-canary.468392606.0":"2021-11-11T19:40:30.365Z","14.0.0-canary.828f9803b.0":"2021-11-11T19:51:12.140Z","14.0.0-canary.8795cba87.0":"2021-11-11T19:57:08.313Z","14.0.0-canary.cd7f8cace.0":"2021-11-11T19:58:53.575Z","14.0.0-canary.207230eb8.0":"2021-11-11T22:24:54.182Z","14.0.0-canary.991fb99f7.0":"2021-11-11T22:36:49.404Z","14.0.0-canary.15db4f164.0":"2021-11-12T17:30:09.968Z","14.0.0-canary.8fcad5a3c.0":"2021-11-12T19:14:12.846Z","14.0.0-canary.f81fb1d23.0":"2021-11-12T22:40:40.269Z","14.0.0-canary.783f6fd5a.0":"2021-11-16T05:50:34.552Z","14.0.0-canary.d57ec74c7.0":"2021-11-16T16:17:08.999Z","14.0.0-canary.554c71829.0":"2021-11-16T16:19:57.089Z","14.0.0-canary.3ef470efe.0":"2021-11-16T16:24:46.245Z","14.0.0-canary.61a28b2b5.0":"2021-11-17T18:59:50.745Z","14.0.0-canary.fae6c652d.0":"2021-11-18T16:25:34.080Z","14.0.0-canary.978a3b5bb.0":"2021-11-19T19:39:54.242Z","14.0.0-canary.e6f43cf44.0":"2021-11-22T17:35:43.055Z","14.0.0-canary.39cf14bc3.0":"2021-11-22T23:05:06.935Z","14.0.0-canary.93134d453.0":"2021-11-23T15:39:49.508Z","14.0.0-canary.bbd11268f.0":"2021-11-23T22:32:53.722Z","14.0.0-canary.3db9c4d3d.0":"2021-11-24T15:37:59.759Z","14.0.0-canary.78305b6d5.0":"2021-11-24T19:51:16.224Z","14.0.0-canary.43d08ba77.0":"2021-11-30T22:56:37.894Z","14.0.0-canary.17a072535.0":"2021-12-02T18:05:52.940Z","14.0.0-canary.5d809696c.0":"2021-12-08T17:45:02.396Z","14.0.0-canary.b6510c8c1.0":"2021-12-08T18:07:15.443Z","14.0.0-canary.f460e23da.0":"2021-12-10T15:25:58.578Z","14.0.0-canary.7d8ea4624.0":"2021-12-10T19:29:49.262Z","14.0.0-canary.8fffcb5dd.0":"2021-12-14T08:55:44.453Z","14.0.0-canary.21e1cb9be.0":"2021-12-14T19:40:26.604Z","14.0.0-canary.ba78e8724.0":"2021-12-15T22:13:36.585Z","14.0.0-canary.e3e073c00.0":"2021-12-20T21:10:19.646Z","14.0.0-canary.3366a71d7.0":"2021-12-22T12:33:01.189Z","14.0.0-canary.c047f7c19.0":"2022-01-05T16:46:30.340Z","14.0.0-canary.05db65ec0.0":"2022-01-06T17:14:50.663Z","14.0.0-canary.6ca8b8f85.0":"2022-01-07T16:01:48.921Z","14.0.0-canary.173ee7a7a.0":"2022-01-10T16:54:56.218Z","14.0.0-canary.b704e4dfc.0":"2022-01-10T18:33:40.178Z","14.0.0-canary.c14e977ee.0":"2022-01-11T15:50:18.097Z","14.0.0-canary.b094eaa4e.0":"2022-01-14T18:43:00.066Z","14.0.0-canary.390220e42.0":"2022-01-17T16:46:49.497Z","14.0.0-canary.4b5391f8b.0":"2022-01-19T23:53:22.547Z","14.0.0-canary.cef6bc623.0":"2022-01-20T00:18:08.590Z","14.0.0-canary.0379179c4.0":"2022-01-20T18:55:01.120Z","14.0.0-canary.e62f3dabf.0":"2022-01-21T23:04:00.797Z","14.0.0-canary.3e20c1de8.0":"2022-01-25T15:32:35.874Z","14.0.0-canary.9f9d928b2.0":"2022-01-27T18:13:48.715Z","14.0.0-canary.a2bcb065c.0":"2022-01-28T19:37:40.704Z","14.0.0-canary.4e66fb2e1.0":"2022-01-28T19:42:02.663Z","14.0.0-canary.9736ddce9.0":"2022-01-29T09:50:28.960Z","14.0.0-canary.cc4ed13cc.0":"2022-02-04T18:23:26.160Z","14.0.0-canary.dcba26fe1.0":"2022-02-04T21:57:50.043Z","14.0.0-canary.ec54d9046.0":"2022-02-07T15:47:21.959Z","14.0.0-canary.ea9b5b463.0":"2022-02-09T17:54:21.883Z","14.0.0-canary.96ea061c1.0":"2022-02-09T18:59:49.187Z","14.0.0-canary.e00181e59.0":"2022-02-10T20:07:09.657Z","14.0.0-canary.037285f9b.0":"2022-02-11T18:30:07.538Z","14.0.0-canary.1aaa68dda.0":"2022-02-16T19:49:37.677Z","14.0.0-canary.ab4aba1af.0":"2022-02-17T18:16:52.395Z","14.0.0-canary.e58552c6e.0":"2022-02-18T18:04:37.781Z","14.0.0-canary.868793776.0":"2022-02-22T19:36:32.862Z","14.0.0-canary.fdc37a445.0":"2022-02-28T18:46:38.254Z","14.0.0-canary.43c7d87dc.0":"2022-03-01T15:33:39.149Z","14.0.0-canary.23043acd0.0":"2022-03-02T20:27:52.986Z","14.0.0-canary.6505e61c5.0":"2022-03-03T20:01:11.208Z","14.0.0-canary.16c166154.0":"2022-03-08T23:22:50.149Z","14.0.0-canary.bdf1d3771.0":"2022-03-14T14:29:05.172Z","14.0.0-canary.cf4292778.0":"2022-03-15T00:30:03.487Z","14.0.0-canary.bbd43e0e0.0":"2022-03-16T20:50:31.397Z","14.0.0-canary.1b6afad86.0":"2022-03-16T21:04:03.207Z","14.0.0-canary.bdf9d4af9.0":"2022-03-16T21:18:19.573Z","14.0.0-canary.32b391398.0":"2022-03-17T17:59:42.669Z","14.0.0-canary.ae8a6a3a3.0":"2022-03-18T16:39:41.225Z","14.0.0-canary.cbd9358a6.0":"2022-03-18T22:52:27.692Z","14.0.0-canary.dcfe49c98.0":"2022-03-21T18:44:32.179Z","14.0.0-canary.f31a833fa.0":"2022-03-23T00:51:16.143Z","14.0.0-canary.4b92e210a.0":"2022-03-24T20:19:01.270Z","14.0.0-canary.a657abb61.0":"2022-03-24T20:40:23.526Z","14.0.0-canary.443f63f50.0":"2022-03-25T23:05:03.274Z","14.0.0-canary.eb382f318.0":"2022-03-29T17:35:23.181Z","14.0.0-canary.344d52823.0":"2022-03-29T18:43:43.977Z","14.0.0-canary.4e372fb49.0":"2022-04-07T20:33:24.477Z","14.0.0-canary.3e30054fb.0":"2022-04-13T22:14:43.619Z","14.0.0-canary.8c4da223a.0":"2022-04-19T15:24:40.466Z","14.0.0-canary.7de8965cc.0":"2022-04-19T20:23:51.528Z","14.0.0-canary.641ed0851.0":"2022-04-20T16:06:11.961Z","14.0.0-canary.e88f83024.0":"2022-04-20T17:48:10.047Z","14.0.0-canary.7321d6254.0":"2022-04-20T20:11:47.112Z","14.0.0-canary.3ab956515.0":"2022-04-25T15:02:21.564Z","14.0.0-canary.53b3cad2f.0":"2022-04-27T12:45:51.074Z","14.0.0":"2022-04-28T16:56:25.665Z","15.0.0-canary.432c815e5.0":"2022-04-28T16:57:31.047Z","15.0.0-canary.a0f01f669.0":"2022-05-06T20:15:08.998Z","15.0.0-canary.276cb39a4.0":"2022-05-06T21:31:59.800Z","15.0.0-canary.4fe98ed70.0":"2022-05-06T21:56:30.195Z","15.0.0-canary.58b130a3d.0":"2022-05-06T21:58:49.778Z","15.0.0-canary.ae278a2fe.0":"2022-05-09T15:25:20.484Z","15.0.0-canary.bebf5bfdf.0":"2022-05-11T02:40:49.795Z","15.0.0-canary.e6072cd6a.0":"2022-05-11T20:18:57.740Z","15.0.0-canary.5b40eb988.0":"2022-05-12T02:44:43.500Z","15.0.0-canary.6a61d62f6.0":"2022-05-12T20:27:22.740Z","15.0.0-canary.05930a453.0":"2022-05-13T18:47:58.682Z","15.0.0-canary.c0a11ef0d.0":"2022-05-18T22:01:30.116Z","15.0.0-canary.2f9b268c0.0":"2022-05-20T19:33:12.226Z","15.0.0-canary.7741345b8.0":"2022-05-20T20:03:15.581Z","15.0.0-canary.f807e793f.0":"2022-05-20T22:22:20.799Z","15.0.0-canary.9f53d4a8a.0":"2022-05-23T14:58:16.830Z","15.0.0-canary.77cf00e37.0":"2022-05-31T17:40:36.175Z","15.0.0-canary.3c7b844c2.0":"2022-06-07T22:21:34.768Z","15.0.0-canary.df47894db.0":"2022-06-13T17:09:03.170Z","15.0.0-canary.b18a873dc.0":"2022-06-14T06:30:14.561Z","15.0.0-canary.ba9c29637.0":"2022-06-14T18:57:52.352Z","15.0.0-canary.9bfd12f01.0":"2022-06-22T19:23:00.861Z","15.0.0-canary.764de225d.0":"2022-06-29T16:27:32.944Z","15.0.0-canary.31e517cea.0":"2022-07-01T18:28:51.969Z","15.0.0-canary.9ea4e8e9c.0":"2022-07-01T22:55:27.161Z","15.0.0-canary.cd5bafabb.0":"2022-07-06T17:54:55.717Z","15.0.0-canary.a02fe49d3.0":"2022-07-06T18:51:33.217Z","15.0.0-canary.826a3d8be.0":"2022-07-06T19:31:30.918Z","15.0.0-canary.ef276aa93.0":"2022-07-07T17:03:07.847Z","15.0.0-canary.59cf61d6b.0":"2022-07-07T17:31:53.834Z","15.0.0-canary.8647092f7.0":"2022-07-07T20:39:07.910Z","15.0.0-canary.02ecd4d85.0":"2022-07-11T16:39:46.720Z","15.0.0-canary.63d3a146e.0":"2022-07-12T11:37:32.611Z","15.0.0-canary.88db01990.0":"2022-07-12T11:40:32.433Z","15.0.0-canary.6432d8fd7.0":"2022-07-14T07:29:25.889Z","15.0.0-canary.085f9b25c.0":"2022-07-14T16:35:27.457Z","15.0.0-canary.39f9424b3.0":"2022-07-14T17:05:44.792Z","15.0.0-canary.ae9fce587.0":"2022-07-14T18:08:36.079Z","15.0.0-canary.1ebddc343.0":"2022-07-15T08:49:49.687Z","15.0.0-canary.c5018840c.0":"2022-07-18T09:43:38.892Z","15.0.0-canary.551b40d18.0":"2022-07-18T10:01:33.345Z","15.0.0-canary.cf9f12371.0":"2022-07-18T10:05:32.682Z","15.0.0-canary.2797ff8b6.0":"2022-07-19T00:24:38.646Z","15.0.0-canary.110fafa17.0":"2022-07-20T07:47:10.577Z","15.0.0-canary.386ef1d2f.0":"2022-07-20T18:20:14.059Z","15.0.0-canary.c3924efef.0":"2022-07-20T18:30:09.004Z","15.0.0-canary.cf5c5907c.0":"2022-07-20T21:22:16.631Z","15.0.0-canary.0617e2319.0":"2022-07-20T21:40:32.058Z","15.0.0-canary.a743b7967.0":"2022-07-20T21:57:33.595Z","15.0.0-canary.69fd619d0.0":"2022-07-20T22:09:41.324Z","15.0.0-canary.2a6ddc1cf.0":"2022-07-29T16:05:04.203Z","15.0.0-canary.86efd56f6.0":"2022-08-02T14:46:01.237Z","15.0.0-canary.ccfc24d19.0":"2022-08-03T18:13:59.243Z","15.0.0-canary.e4570146f.0":"2022-08-03T18:41:10.114Z","15.0.0-canary.6683a36cb.0":"2022-08-03T19:21:09.969Z","15.0.0-canary.10196647d.0":"2022-08-03T21:54:10.339Z","15.0.0-canary.b20d3d73c.0":"2022-08-04T22:43:21.480Z","15.0.0-canary.47c0c6b1e.0":"2022-08-09T15:20:58.414Z","15.0.0-canary.0e3dc8e38.0":"2022-08-11T18:46:21.925Z","15.0.0-canary.d5a11f1c8.0":"2022-08-30T23:01:42.515Z","15.0.0-canary.bac992a95.0":"2022-09-01T07:06:03.694Z","15.0.0-canary.d25f3404c.0":"2022-09-01T09:45:04.579Z","15.0.0-canary.920d8a79e.0":"2022-09-01T20:21:23.703Z","15.0.0-canary.c363f267b.0":"2022-09-01T21:18:42.149Z","15.0.0-canary.a4eb4937a.0":"2022-09-06T18:20:11.335Z","15.0.0-canary.4299717da.0":"2022-09-07T16:16:06.772Z","15.0.0-canary.fa7d8d44b.0":"2022-09-07T19:19:20.421Z","15.0.0-canary.a40e3c768.0":"2022-09-09T20:04:20.400Z","15.0.0-canary.18cdc9a00.0":"2022-09-12T21:03:23.040Z","15.0.0-canary.7ab3cd3c8.0":"2022-09-13T22:39:36.170Z","15.0.0-canary.2860d244d.0":"2022-09-16T22:55:14.570Z","15.0.0-canary.e8726533c.0":"2022-09-20T20:18:05.586Z","15.0.0-canary.00d8de0aa.0":"2022-09-21T15:20:53.528Z","15.0.0-canary.271aedc30.0":"2022-09-21T15:36:24.850Z","15.0.0-canary.9f17ff2cb.0":"2022-09-21T18:08:39.198Z","15.0.0-canary.d3344c16f.0":"2022-09-22T09:24:49.308Z","15.0.0-canary.94f20ccb8.0":"2022-09-22T20:48:06.042Z","15.0.0-canary.81e4cb7b2.0":"2022-09-23T15:08:28.264Z","15.0.0-canary.aa85f9413.0":"2022-09-26T17:56:42.754Z","15.0.0-canary.7134a7752.0":"2022-09-26T21:57:54.079Z","15.0.0-canary.70b8ac16e.0":"2022-09-27T22:45:09.614Z","15.0.0-canary.c20d74405.0":"2022-09-27T23:31:30.462Z","15.0.0-canary.f033fc8d1.0":"2022-09-27T23:57:35.669Z","15.0.0-canary.8d7ae912a.0":"2022-09-28T07:56:20.338Z","15.0.0-canary.db414b864.0":"2022-09-28T14:52:58.533Z","15.0.0-canary.28cc6791f.0":"2022-09-28T18:07:10.150Z","15.0.0-canary.a515a2d18.0":"2022-09-28T18:56:01.371Z","15.0.0-canary.ce9523167.0":"2022-09-29T20:31:27.094Z","15.0.0-canary.b2310f7dc.0":"2022-09-30T00:14:04.497Z","15.0.0-canary.a44241e54.0":"2022-09-30T08:21:20.691Z","15.0.0-canary.0ce81e115.0":"2022-09-30T18:18:27.036Z","15.0.0-canary.3cc30f6ad.0":"2022-10-04T17:19:36.220Z","15.0.0-canary.d9cf98e60.0":"2022-10-04T19:04:00.877Z","15.0.0-canary.d71935c8b.0":"2022-10-06T08:15:06.745Z","15.0.0-canary.49c56a25d.0":"2022-10-06T18:51:10.076Z","15.0.0-canary.07acddef3.0":"2022-10-07T21:38:35.171Z","15.0.0-canary.1c74eb2c0.0":"2022-10-07T21:55:35.470Z","15.0.0-canary.dadfb713e.0":"2022-10-08T05:06:45.534Z","15.0.0-canary.395f1ce61.0":"2022-10-08T05:08:46.033Z","15.0.0-canary.e741b5c82.0":"2022-10-10T17:39:10.237Z","15.0.0-canary.582f3cc1c.0":"2022-10-11T04:50:04.927Z","15.0.0-canary.b1a6e3e88.0":"2022-10-12T12:03:20.793Z","15.0.0-canary.c9b1a31e4.0":"2022-10-12T16:59:33.375Z","15.0.0-canary.13e9b0d1f.0":"2022-10-12T19:22:13.140Z","15.0.0-canary.1dc797e7f.0":"2022-10-14T09:42:36.094Z","15.0.0-canary.ed4009397.0":"2022-10-14T16:52:11.436Z","15.0.0-canary.95ef196bc.0":"2022-10-14T23:14:53.058Z","15.0.0-canary.13eea1b2d.0":"2022-10-17T03:52:29.443Z","15.0.0-canary.ef9b2babb.0":"2022-10-17T09:19:04.665Z","15.0.0-canary.cec7fb987.0":"2022-10-17T10:57:16.179Z","15.0.0-canary.4fff58b08.0":"2022-10-17T15:23:35.133Z","15.0.0-canary.587d8f871.0":"2022-10-17T15:58:01.048Z","15.0.0-canary.edf4b98d0.0":"2022-10-17T16:41:23.846Z","15.0.0-canary.024ac5f16.0":"2022-10-17T22:43:17.024Z","15.0.0-canary.c8bdf6144.0":"2022-10-18T18:24:20.448Z","15.0.0-canary.bacda4885.0":"2022-10-18T18:43:44.222Z","15.0.0-canary.92b2556cf.0":"2022-10-19T01:14:20.378Z","15.0.0-canary.cc804509a.0":"2022-10-19T01:18:04.953Z","15.0.0-canary.982bedae9.0":"2022-10-19T01:38:06.845Z","15.0.0-canary.ee40081f4.0":"2022-10-19T20:12:50.139Z","15.0.0-canary.98f1b54e2.0":"2022-10-20T22:57:40.648Z","15.0.0-canary.e74b7ba7e.0":"2022-10-21T17:06:43.123Z","15.0.0-canary.ab55c07d2.0":"2022-10-22T18:20:04.650Z","15.0.0-canary.fc539db34.0":"2022-10-24T19:00:05.134Z","15.0.0-canary.e340b04c5.0":"2022-10-25T23:45:58.330Z","15.0.0-canary.2c1a8f8fd.0":"2022-10-26T17:31:35.124Z","15.0.0-canary.ecfee946f.0":"2022-10-26T20:16:18.359Z","15.0.0-canary.73ca9dbb0.0":"2022-10-31T17:33:25.542Z","15.0.0-canary.357f2e5f1.0":"2022-10-31T18:50:28.463Z","15.0.0-canary.eb103d4b5.0":"2022-10-31T19:57:22.913Z","15.0.0-canary.af5f01223.0":"2022-11-01T18:37:48.907Z","15.0.0-canary.58733ef41.0":"2022-11-02T18:11:41.774Z","15.0.0-canary.909b48215.0":"2022-11-03T04:08:53.369Z","15.0.0-canary.7f17127d5.0":"2022-11-03T18:20:09.149Z","15.0.0-canary.da95e2a05.0":"2022-11-04T17:00:03.456Z","15.0.0-canary.4832e2750.0":"2022-11-04T20:58:00.949Z","15.0.0-canary.215506426.0":"2022-11-05T01:06:56.929Z","15.0.0-canary.4cf917476.0":"2022-11-05T18:05:01.351Z","15.0.0-canary.eef14bd32.0":"2022-11-06T17:25:30.751Z","15.0.0-canary.6faa29fe9.0":"2022-11-07T03:14:20.198Z","15.0.0-canary.9af09b967.0":"2022-11-07T18:28:50.020Z","15.0.0-canary.0f54fbb93.0":"2022-11-08T21:57:30.136Z","15.0.0-canary.a8d47f9fe.0":"2022-11-09T04:18:57.962Z","15.0.0-canary.66a1e75e6.0":"2022-11-09T09:36:30.132Z","15.0.0-canary.5e5c2afc0.0":"2022-11-09T11:54:13.517Z","15.0.0-canary.3e3f43359.0":"2022-11-09T20:03:51.370Z","15.0.0-canary.3f667fac6.0":"2022-11-09T22:07:05.502Z","15.0.0-canary.faa28c1c5.0":"2022-11-11T16:36:49.493Z","15.0.0-canary.a868c7866.0":"2022-11-11T16:37:36.373Z","15.0.0-canary.602fe8efa.0":"2022-11-11T17:12:48.623Z","15.0.0-canary.558c2be62.0":"2022-11-11T22:46:11.807Z","15.0.0-canary.b5c13a7a8.0":"2022-11-14T15:59:33.240Z","15.0.0-canary.a6e1c0702.0":"2022-11-14T17:28:00.471Z","15.0.0-canary.b6f8a06de.0":"2022-11-15T09:29:26.141Z","15.0.0-canary.0163f3ba5.0":"2022-11-15T18:03:09.219Z","15.0.0-canary.66c5cbb94.0":"2022-11-15T19:31:09.780Z","15.0.0-canary.b01136063.0":"2022-11-16T00:16:53.342Z","15.0.0-canary.01da0cabb.0":"2022-11-16T09:14:16.115Z","15.0.0-canary.4ac393164.0":"2022-11-16T16:16:36.122Z","15.0.0-canary.6048fb563.0":"2022-11-16T16:18:39.785Z","15.0.0-canary.f7f56fff7.0":"2022-11-16T19:56:59.790Z","15.0.0-canary.7c73f6134.0":"2022-11-16T20:00:22.051Z","15.0.0-canary.f1e037150.0":"2022-11-16T20:06:24.771Z","15.0.0-canary.40b18d043.0":"2022-11-16T22:59:49.988Z","15.0.0-canary.86bde5c06.0":"2022-11-16T23:09:58.833Z","15.0.0-canary.bb7751002.0":"2022-11-17T00:01:11.346Z","15.0.0-canary.63aca9af6.0":"2022-11-17T19:01:51.168Z","15.0.0-canary.56482dc2e.0":"2022-11-17T21:55:45.231Z","15.0.0-canary.953e689f3.0":"2022-11-17T22:05:42.548Z","15.0.0-canary.b5606a793.0":"2022-11-18T10:22:09.387Z","15.0.0-canary.8c5675942.0":"2022-11-18T15:17:21.959Z","15.0.0-canary.697fbdebd.0":"2022-11-18T17:01:59.035Z","15.0.0-canary.d58410453.0":"2022-11-18T19:26:08.349Z","15.0.0-canary.7971d6ad5.0":"2022-11-19T08:46:12.052Z","15.0.0-canary.a0ae73b0e.0":"2022-11-21T10:55:00.971Z","15.0.0-canary.96f472604.0":"2022-11-21T12:53:45.632Z","15.0.0-canary.18b8f31e1.0":"2022-11-21T16:03:29.423Z","15.0.0-canary.912f33ce4.0":"2022-11-21T17:55:06.127Z","15.0.0-canary.1e1b1c369.0":"2022-11-23T19:01:47.535Z","15.0.0-canary.a2ec49244.0":"2022-11-23T19:32:00.123Z","15.0.0-canary.a7458ba0b.0":"2022-11-23T20:17:31.360Z","15.0.0-canary.7c35e5036.0":"2022-11-24T08:40:29.390Z","15.0.0-canary.4356e05c5.0":"2022-11-24T09:57:49.741Z","15.0.0-canary.cb605f8af.0":"2022-11-24T10:16:57.984Z","15.0.0-canary.05fb07f9f.0":"2022-11-24T17:14:46.372Z","15.0.0-canary.a911b386b.0":"2022-11-28T16:48:25.085Z","15.0.0-canary.2aa8050b4.0":"2022-11-28T19:12:45.603Z","15.0.0-canary.323904a9f.0":"2022-11-29T15:34:29.392Z","15.0.0-canary.168a629a4.0":"2022-11-29T16:49:37.317Z","15.0.0-canary.65c411674.0":"2022-11-29T17:39:45.110Z","15.0.0-canary.a86d36fd2.0":"2022-11-30T02:15:20.304Z","15.0.0-canary.3a1f46c66.0":"2022-11-30T12:08:48.747Z","15.0.0-canary.32d8a9648.0":"2022-12-01T17:30:21.020Z","15.0.0-canary.03618ab70.0":"2022-12-01T20:55:29.923Z","15.0.0-canary.68aaed940.0":"2022-12-01T21:25:23.435Z","15.0.0-canary.f0a0bbc75.0":"2022-12-02T09:02:24.356Z","15.0.0-canary.dd99c8764.0":"2022-12-02T14:02:08.382Z","15.0.0-canary.fabdcca3a.0":"2022-12-02T15:08:01.010Z","15.0.0-canary.2d26722d2.0":"2022-12-02T16:27:44.933Z","15.0.0-canary.eaa0c3a86.0":"2022-12-02T17:43:48.261Z","15.0.0-canary.79a613bbd.0":"2022-12-06T14:26:18.491Z","15.0.0-canary.c871fe61e.0":"2022-12-07T07:52:59.113Z","15.0.0-canary.9eaee7936.0":"2022-12-07T20:04:12.708Z","15.0.0-canary.1d37bf601.0":"2022-12-07T20:42:26.642Z","15.0.0-canary.a5fe069d5.0":"2022-12-09T18:45:37.114Z","15.0.0-canary.ce8b5326f.0":"2022-12-09T23:31:54.931Z","15.0.0-canary.43f5323bc.0":"2022-12-12T16:46:56.482Z","15.0.0-canary.5490e32e7.0":"2022-12-12T17:03:24.670Z","15.0.0-canary.817002c29.0":"2022-12-13T21:55:14.481Z","15.0.0-canary.313a1326a.0":"2022-12-14T10:30:03.420Z","15.0.0-canary.a69c14e10.0":"2022-12-14T11:19:41.793Z","15.0.0-canary.f43e0ceb5.0":"2022-12-14T16:46:01.326Z","15.0.0-canary.34767110.0":"2022-12-14T17:23:02.165Z","15.0.0-canary.1f99f3c50.0":"2022-12-15T14:26:43.263Z","15.0.0-canary.cfd69490f.0":"2022-12-16T20:09:45.414Z","15.0.0-canary.94ad8d986.0":"2022-12-19T19:28:22.610Z","15.0.0-canary.604264203.0":"2022-12-21T21:41:56.537Z","15.0.0-canary.85bcff6af.0":"2022-12-22T10:25:57.024Z","15.0.0-canary.ece3e8d21.0":"2022-12-22T17:13:22.846Z","15.0.0-canary.278ad53d1.0":"2022-12-27T17:06:19.825Z","15.0.0-canary.a7d8389e1.0":"2022-12-27T19:05:07.585Z","15.0.0-canary.8175d5eff.0":"2022-12-28T01:52:50.105Z","15.0.0-canary.e21dcb86d.0":"2022-12-29T14:03:23.475Z","15.0.0-canary.20ab6f5a8.0":"2022-12-29T19:42:10.106Z","15.0.0-canary.b9806f623.0":"2022-12-29T23:07:07.966Z","15.0.0-canary.50c9f550e.0":"2023-01-03T15:48:50.964Z","15.0.0-canary.af490a848.0":"2023-01-03T15:58:54.713Z","15.0.0-canary.7cf487c98.0":"2023-01-03T17:39:57.400Z","15.0.0-canary.a52be2d5e.0":"2023-01-03T19:14:18.618Z","15.0.0-canary.e38ba17c5.0":"2023-01-03T22:33:08.522Z","15.0.0-canary.49041a6c3.0":"2023-01-04T15:18:59.250Z","15.0.0-canary.c492898c2.0":"2023-01-04T17:37:56.631Z","15.0.0-canary.d7a2277de.0":"2023-01-04T21:36:54.065Z","15.0.0-canary.fd95ca7ef.0":"2023-01-05T01:04:01.850Z","15.0.0-canary.1eb44faf9.0":"2023-01-05T09:10:30.432Z","15.0.0-canary.adcdb7db9.0":"2023-01-05T16:22:27.405Z","15.0.0-canary.067af7eff.0":"2023-01-06T23:17:13.133Z","15.0.0-canary.21d1196a7.0":"2023-01-09T10:43:51.745Z","15.0.0-canary.8d2d8d3c4.0":"2023-01-09T22:25:11.949Z","15.0.0-canary.fc6ee6c32.0":"2023-01-10T16:29:19.027Z","15.0.0-canary.73537ab0f.0":"2023-01-10T18:12:43.890Z","15.0.0-canary.684e33d25.0":"2023-01-10T19:19:44.085Z","15.0.0-canary.0e89aab6b.0":"2023-01-11T16:18:24.738Z","15.0.0-canary.b0103d10a.0":"2023-01-11T19:13:06.155Z","15.0.0-canary.50e7a5312.0":"2023-01-11T20:55:24.687Z","15.0.0-canary.202823f54.0":"2023-01-11T21:36:55.392Z","15.0.0-canary.199fe2a2a.0":"2023-01-11T21:56:54.550Z","15.0.0-canary.8c0786d6f.0":"2023-01-12T14:37:33.827Z","15.0.0-canary.8a74f7c6d.0":"2023-01-17T19:25:48.218Z","15.0.0-canary.b4687fdc1.0":"2023-01-19T19:50:46.649Z","15.0.0-canary.b836b9892.0":"2023-01-24T22:40:22.931Z","15.0.0-canary.e8912fd37.0":"2023-01-26T18:30:56.684Z","15.0.0-canary.16fbd30ff.0":"2023-01-26T18:35:27.744Z","15.0.0-canary.033ae083a.0":"2023-01-26T19:28:05.485Z","15.0.0-canary.3a705fa1d.0":"2023-01-27T22:44:41.335Z","15.0.0-canary.d6bea2ff2.0":"2023-01-31T15:31:15.475Z","15.0.0-canary.0c94182c8.0":"2023-02-01T17:45:18.682Z","15.0.0-canary.15b221540.0":"2023-02-01T17:53:49.873Z","15.0.0-canary.6a4b3f834.0":"2023-02-01T18:59:36.295Z","15.0.0-canary.b177b40e2.0":"2023-02-02T03:35:25.509Z","15.0.0-canary.d9f821042.0":"2023-02-02T17:39:32.120Z","15.0.0-canary.47c7deb19.0":"2023-02-03T09:10:03.907Z","15.0.0-canary.a16dbd1a6.0":"2023-02-04T06:15:38.124Z","15.0.0-canary.93416f87a.0":"2023-02-07T13:24:38.559Z","15.0.0-canary.49b8e7442.0":"2023-02-07T23:10:43.677Z","15.0.0-canary.de38de758.0":"2023-02-09T15:43:37.723Z","15.0.0-canary.4d62de70c.0":"2023-02-09T22:04:12.844Z","15.0.0-canary.6fcd8d418.0":"2023-02-13T11:50:56.698Z","15.0.0-canary.066d9439b.0":"2023-02-15T19:58:57.957Z","15.0.0-canary.7ab32468c.0":"2023-02-21T18:35:15.764Z","15.0.0-canary.fa27ba61d.0":"2023-02-27T16:20:27.424Z","15.0.0-canary.311ab4d4a.0":"2023-02-27T16:42:36.103Z","15.0.0-canary.5cb8e2174.0":"2023-03-01T16:36:56.738Z","15.0.0-canary.f32339937.0":"2023-03-06T15:16:46.282Z","15.0.0-canary.7644d63d5.0":"2023-03-06T22:28:35.577Z","15.0.0-canary.d96330c08.0":"2023-03-08T11:42:57.326Z","15.0.0-canary.c99cae77c.0":"2023-03-08T23:44:01.111Z","15.0.0-canary.6023b1cd3.0":"2023-03-09T14:27:27.111Z","15.0.0-canary.274610c77.0":"2023-03-09T14:59:53.803Z","15.0.0-canary.a274583b9.0":"2023-03-09T19:53:44.584Z","15.0.0-canary.da22ca960.0":"2023-03-09T20:19:28.333Z","15.0.0-canary.304a94e8b.0":"2023-03-09T20:46:04.543Z","15.0.0-canary.6c265915c.0":"2023-03-09T21:48:23.393Z","15.0.0-canary.de5224633.0":"2023-03-09T23:56:48.269Z","15.0.0-canary.8879557e6.0":"2023-03-10T14:08:59.757Z","15.0.0-canary.23073a303.0":"2023-03-10T14:16:07.207Z","15.0.0-canary.51c7d4014.0":"2023-03-10T16:48:30.986Z","15.0.0-canary.1175a5be0.0":"2023-03-10T20:49:05.824Z","15.0.0-canary.7adf3af80.0":"2023-03-11T01:26:03.419Z","15.0.0-canary.82554d770.0":"2023-03-11T01:38:17.925Z","15.0.0-canary.93fc524b7.0":"2023-03-13T08:40:02.767Z","15.0.0-canary.50be0fbae.0":"2023-03-13T17:45:18.465Z","15.0.0-canary.6b5ffccd9.0":"2023-03-13T17:48:42.129Z","15.0.0-canary.1c8013f4e.0":"2023-03-13T18:04:01.545Z","15.0.0-canary.112715df5.0":"2023-03-13T18:40:22.444Z","15.0.0-canary.d250911f2.0":"2023-03-13T19:32:36.159Z","15.0.0-canary.7cd925c12.0":"2023-03-13T19:40:12.340Z","15.0.0-canary.b2ddacf73.0":"2023-03-13T19:44:31.686Z","15.0.0-canary.989ae2ecc.0":"2023-03-13T19:53:46.956Z","15.0.0-canary.89c66483a.0":"2023-03-13T20:17:31.054Z","15.0.0-canary.6a85742c2.0":"2023-03-14T02:48:25.550Z","15.0.0-canary.bb6cd78d5.0":"2023-03-14T18:17:58.814Z","15.0.0-canary.5f94aa37d.0":"2023-03-14T18:21:15.136Z","15.0.0-canary.1bd317240.0":"2023-03-14T18:25:06.456Z","15.0.0-canary.d441d2a2a.0":"2023-03-14T18:27:53.500Z","15.0.0-canary.fff4066c6.0":"2023-03-14T18:28:30.776Z","15.0.0-canary.87809c710.0":"2023-03-14T18:44:32.276Z","15.0.0-canary.48d30012d.0":"2023-03-14T18:48:51.338Z","15.0.0-canary.419b23cc6.0":"2023-03-14T18:59:51.733Z","15.0.0-canary.bf86521f4.0":"2023-03-14T23:14:30.769Z","15.0.0-canary.11f3d280e.0":"2023-03-15T00:12:23.371Z","15.0.0-canary.b281a409a.0":"2023-03-21T15:42:28.818Z","15.0.0-canary.39e473690.0":"2023-03-21T17:52:35.836Z","15.0.0-canary.cedffb44c.0":"2023-03-21T17:59:34.609Z","15.0.0-canary.36a4cba99.0":"2023-03-28T17:51:12.603Z","15.0.0-canary.ed7e82ded.0":"2023-03-28T20:35:51.186Z","15.0.0-canary.55093ee1e.0":"2023-03-29T18:50:03.273Z","15.0.0-canary.0c53abc81.0":"2023-04-07T01:42:08.256Z","15.0.0-canary.51311e69e.0":"2023-04-07T18:08:53.913Z","15.0.0-canary.113b1a38e.0":"2023-04-10T21:54:49.710Z","15.0.0-canary.ea2191426.0":"2023-04-11T21:56:06.379Z","15.0.0-canary.5a5c38538.0":"2023-04-11T22:31:20.394Z","15.0.0-canary.e4b5ea7eb.0":"2023-04-11T23:05:32.024Z","15.0.0-canary.a094dd9c1.0":"2023-04-14T22:43:31.301Z","15.0.0-canary.f771b091c.0":"2023-04-17T15:39:28.427Z","15.0.0-canary.79b1b612b.0":"2023-04-19T23:40:38.228Z","15.0.0-canary.6f50071e5.0":"2023-04-20T18:01:26.389Z","15.0.0-canary.ef754381c.0":"2023-04-24T20:51:58.689Z","15.0.0-canary.69ebf61ea.0":"2023-04-27T17:22:38.676Z","15.0.0-canary.b90be86de.0":"2023-04-29T00:22:40.404Z","15.0.0-canary.51f9c0c28.0":"2023-04-29T00:32:25.780Z","15.0.0-canary.4e840d685.0":"2023-05-02T15:34:43.374Z","15.0.0-canary.10b8563e4.0":"2023-05-02T23:42:50.013Z","15.0.0-canary.736b7fda4.0":"2023-05-03T15:10:33.428Z","15.0.0-canary.0e533c5a1.0":"2023-05-05T16:57:35.676Z","15.0.0-canary.5f01c15a2.0":"2023-05-05T17:27:18.578Z","15.0.0-canary.3b5b55e31.0":"2023-05-05T18:40:19.867Z","15.0.0-canary.d0788120f.0":"2023-05-09T08:24:17.580Z","15.0.0-canary.f52358dd0.0":"2023-05-12T14:31:31.514Z","15.0.0-canary.576d3d2c8.0":"2023-05-16T02:01:03.179Z","15.0.0-canary.19bb36a46.0":"2023-05-16T19:55:04.477Z","15.0.0-canary.aa5ac7fe5.0":"2023-05-22T17:26:52.070Z","15.0.0-canary.90291f2e2.0":"2023-05-23T17:43:51.246Z","15.0.0-canary.446734f27.0":"2023-05-30T21:49:15.338Z","15.0.0-canary.19de312d8.0":"2023-06-06T17:19:31.155Z","15.0.0-canary.6081d829b.0":"2023-06-07T01:15:05.979Z","15.0.0-canary.b26c34a68.0":"2023-06-07T20:19:27.778Z","15.0.0-canary.4fe911371.0":"2023-06-07T23:07:07.652Z","15.0.0-canary.a9ff9866f.0":"2023-06-13T11:39:17.855Z","15.0.0-canary.b994146f6.0":"2023-06-14T21:04:52.838Z","15.0.0-canary.1fb4b1a06.0":"2023-06-27T18:58:22.412Z","15.0.0-canary.c64a2776e.0":"2023-06-27T20:17:49.737Z","15.0.0-canary.b05d9eb7c.0":"2023-06-29T16:24:50.373Z","15.0.0-canary.2a9697dc5.0":"2023-06-30T22:14:57.453Z","15.0.0-canary.0c52adeab.0":"2023-07-05T16:26:58.733Z","15.0.0-canary.83355c322.0":"2023-07-10T15:06:49.348Z","15.0.0-canary.bc9ae6c9c.0":"2023-08-03T21:22:37.271Z","15.0.0-canary.3c44cd956.0":"2023-08-07T17:49:15.650Z","15.0.0-canary.02702296e.0":"2023-08-25T12:06:14.062Z","15.0.0-canary.872b65832.0":"2023-08-30T12:14:41.191Z","15.0.0-canary.89b2e4122.0":"2023-08-31T16:07:59.918Z","15.0.0-canary.7a3942e7a.0":"2023-08-31T18:40:51.317Z","15.0.0-canary.54feb3020.0":"2023-09-11T21:06:14.534Z","15.0.0-canary.6cda3ce8d.0":"2023-09-12T01:46:23.672Z","15.0.0-canary.205b20b36.0":"2023-09-13T17:17:53.930Z","15.0.0-canary.22bf82024.0":"2023-09-18T09:13:00.441Z","15.0.0-canary.a246a4439.0":"2023-09-18T17:47:13.013Z","15.0.0-canary.d153db62b.0":"2023-09-19T19:16:12.987Z","15.0.0-canary.2528c1c3b.0":"2023-09-20T18:07:46.389Z","15.0.0-canary.1728a6dcf.0":"2023-09-26T01:24:14.959Z","15.0.0-canary.ebb636f3d.0":"2023-09-29T19:45:23.956Z","15.0.0-canary.c0d21ecc9.0":"2023-10-09T19:37:49.026Z","15.0.0-canary.127a44b28.0":"2023-10-12T20:01:38.169Z","15.0.0-canary.0ad128337.0":"2023-10-19T18:53:13.173Z","15.0.0-canary.9cec94097.0":"2023-10-19T23:10:27.443Z","15.0.0-canary.c51a0bbcc.0":"2023-11-15T20:59:07.187Z","15.0.0-canary.d76666ad4.0":"2023-11-27T22:13:32.074Z","15.0.0-canary.8656bf0e0.0":"2023-12-12T21:19:03.412Z","15.0.0-canary.7f224ddd4.0":"2023-12-28T06:09:37.762Z","15.0.0-canary.a0b8a90c0.0":"2024-02-07T19:19:55.394Z","15.0.0-canary.e50b478eb.0":"2024-02-08T18:08:30.305Z","15.0.0-canary.c43b3438b.0":"2024-02-23T20:18:02.681Z","15.0.0-canary.819498d8c.0":"2024-03-15T15:15:31.427Z","15.0.0-canary.453a6248a.0":"2024-03-25T17:14:02.743Z","15.0.0-canary.68edc03c6.0":"2024-04-08T19:06:49.341Z","15.0.0-canary.5bebc0064.0":"2024-04-11T21:41:40.195Z","15.0.0-canary.311f29a60.0":"2024-04-23T18:00:44.332Z","15.0.0-canary.65c10a622.0":"2024-04-25T18:49:24.494Z","15.0.0-canary.4b35cb7d0.0":"2024-05-02T12:03:29.429Z","15.0.0-canary.f80ac92b0.0":"2024-05-02T12:13:38.121Z","15.0.0-canary.2f5b899bc.0":"2024-05-20T13:55:38.043Z","15.0.0-canary.cfec83c74.0":"2024-05-20T18:57:18.539Z","15.0.0-canary.423edc3dc.0":"2024-06-26T18:12:03.151Z"},"maintainers":[{"name":"yefim","email":"hi@yef.im"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-top-app-bar"},"keywords":["material components","material design","top app bar","top-app-bar","topappbar"],"license":"MIT","homepage":"https://github.com/material-components/material-components-web#readme","bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"readme":"","readmeFilename":""}